summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-arcade')
-rw-r--r--games-arcade/abe/Manifest1
-rw-r--r--games-arcade/abe/abe-1.1.ebuild49
-rw-r--r--games-arcade/abe/files/abe-1.1-settings.patch12
-rw-r--r--games-arcade/abe/metadata.xml8
-rw-r--r--games-arcade/afternoonstalker/Manifest1
-rw-r--r--games-arcade/afternoonstalker/afternoonstalker-1.1.5.ebuild36
-rw-r--r--games-arcade/afternoonstalker/metadata.xml9
-rw-r--r--games-arcade/alienwave/Manifest1
-rw-r--r--games-arcade/alienwave/alienwave-0.3.0.ebuild28
-rw-r--r--games-arcade/alienwave/files/alienwave-0.3.0-gentoo.patch22
-rw-r--r--games-arcade/alienwave/metadata.xml5
-rw-r--r--games-arcade/amphetamine/Manifest2
-rw-r--r--games-arcade/amphetamine/amphetamine-0.8.10.ebuild39
-rw-r--r--games-arcade/amphetamine/files/amphetamine-0.8.10-64bit.patch72
-rw-r--r--games-arcade/amphetamine/files/amphetamine-0.8.10-build.patch33
-rw-r--r--games-arcade/amphetamine/metadata.xml8
-rw-r--r--games-arcade/aop/Manifest1
-rw-r--r--games-arcade/aop/aop-0.6.ebuild33
-rw-r--r--games-arcade/aop/files/aop-0.6-as-needed.patch9
-rw-r--r--games-arcade/aop/metadata.xml5
-rw-r--r--games-arcade/apricots/Manifest1
-rw-r--r--games-arcade/apricots/apricots-0.2.6-r1.ebuild65
-rw-r--r--games-arcade/apricots/files/apricots-0.2.6-freealut.patch65
-rw-r--r--games-arcade/apricots/files/apricots-0.2.6-ldflags.patch20
-rw-r--r--games-arcade/apricots/metadata.xml5
-rw-r--r--games-arcade/aquaria/Manifest1
-rw-r--r--games-arcade/aquaria/aquaria-1.1.3-r1.ebuild53
-rw-r--r--games-arcade/aquaria/metadata.xml5
-rw-r--r--games-arcade/ascii-invaders/Manifest1
-rw-r--r--games-arcade/ascii-invaders/ascii-invaders-0.1b.ebuild35
-rw-r--r--games-arcade/ascii-invaders/metadata.xml10
-rw-r--r--games-arcade/asteroid/Manifest1
-rw-r--r--games-arcade/asteroid/asteroid-1.1.ebuild30
-rw-r--r--games-arcade/asteroid/files/asteroid-1.1-include.patch11
-rw-r--r--games-arcade/asteroid/metadata.xml8
-rw-r--r--games-arcade/balloonchase/Manifest1
-rw-r--r--games-arcade/balloonchase/balloonchase-0.9.6.ebuild36
-rw-r--r--games-arcade/balloonchase/files/0.9.6-gentoo.patch183
-rw-r--r--games-arcade/balloonchase/metadata.xml5
-rw-r--r--games-arcade/barbarian-bin/Manifest1
-rw-r--r--games-arcade/barbarian-bin/barbarian-bin-1.01-r1.ebuild48
-rw-r--r--games-arcade/barbarian-bin/metadata.xml5
-rw-r--r--games-arcade/batrachians/Manifest1
-rw-r--r--games-arcade/batrachians/batrachians-0.1.6.ebuild45
-rw-r--r--games-arcade/batrachians/files/batrachians-0.1.6-makefile.patch35
-rw-r--r--games-arcade/batrachians/metadata.xml9
-rw-r--r--games-arcade/berusky/Manifest3
-rw-r--r--games-arcade/berusky/berusky-1.7.1.ebuild62
-rw-r--r--games-arcade/berusky/files/berusky-1.7.1-gentoo.patch71
-rw-r--r--games-arcade/berusky/metadata.xml16
-rw-r--r--games-arcade/betna/Manifest1
-rw-r--r--games-arcade/betna/betna-0.9.7.ebuild47
-rw-r--r--games-arcade/betna/metadata.xml5
-rw-r--r--games-arcade/blobby/Manifest1
-rw-r--r--games-arcade/blobby/blobby-0.9c.ebuild49
-rw-r--r--games-arcade/blobby/files/blobby-0.9c-gcc47.patch66
-rw-r--r--games-arcade/blobby/metadata.xml8
-rw-r--r--games-arcade/bloboats/Manifest1
-rw-r--r--games-arcade/bloboats/bloboats-1.0.2.ebuild47
-rw-r--r--games-arcade/bloboats/files/bloboats-1.0.2-warnings.patch24
-rw-r--r--games-arcade/bloboats/metadata.xml5
-rw-r--r--games-arcade/blobwars/Manifest1
-rw-r--r--games-arcade/blobwars/blobwars-1.19.ebuild75
-rw-r--r--games-arcade/blobwars/files/blobwars-1.19-ldflags.patch22
-rw-r--r--games-arcade/blobwars/files/blobwars-1.19-linking-order.patch36
-rw-r--r--games-arcade/blobwars/files/blobwars-1.19-zlib-1.2.5.2.patch22
-rw-r--r--games-arcade/blobwars/metadata.xml12
-rw-r--r--games-arcade/blockrage/Manifest1
-rw-r--r--games-arcade/blockrage/blockrage-0.2.3.ebuild27
-rw-r--r--games-arcade/blockrage/files/blockrage-0.2.3-config.patch30
-rw-r--r--games-arcade/blockrage/metadata.xml11
-rw-r--r--games-arcade/bomns/Manifest1
-rw-r--r--games-arcade/bomns/bomns-0.99.2.ebuild52
-rw-r--r--games-arcade/bomns/files/bomns-0.99.2-fpe.patch14
-rw-r--r--games-arcade/bomns/metadata.xml11
-rw-r--r--games-arcade/briquolo/Manifest1
-rw-r--r--games-arcade/briquolo/briquolo-0.5.7.ebuild56
-rw-r--r--games-arcade/briquolo/files/briquolo-0.5.7-gcc43.patch81
-rw-r--r--games-arcade/briquolo/files/briquolo-0.5.7-libpng14.patch31
-rw-r--r--games-arcade/briquolo/metadata.xml5
-rw-r--r--games-arcade/bub-n-bros/Manifest1
-rw-r--r--games-arcade/bub-n-bros/bub-n-bros-1.6.2.ebuild70
-rw-r--r--games-arcade/bub-n-bros/files/bub-n-bros-1.6.2-home.patch51
-rw-r--r--games-arcade/bub-n-bros/metadata.xml8
-rw-r--r--games-arcade/bumprace/Manifest1
-rw-r--r--games-arcade/bumprace/bumprace-1.5.3.ebuild28
-rw-r--r--games-arcade/bumprace/metadata.xml5
-rw-r--r--games-arcade/burgerspace/Manifest1
-rw-r--r--games-arcade/burgerspace/burgerspace-1.9.2.ebuild48
-rw-r--r--games-arcade/burgerspace/metadata.xml8
-rw-r--r--games-arcade/cavezofphear/Manifest1
-rw-r--r--games-arcade/cavezofphear/cavezofphear-0.5.1.ebuild37
-rw-r--r--games-arcade/cavezofphear/files/cavezofphear-0.5.1-gentoo.patch36
-rw-r--r--games-arcade/cavezofphear/metadata.xml5
-rw-r--r--games-arcade/cdogs-sdl/Manifest2
-rw-r--r--games-arcade/cdogs-sdl/cdogs-sdl-0.4-r1.ebuild58
-rw-r--r--games-arcade/cdogs-sdl/files/cdogs-sdl-0.4-64bit.patch48
-rw-r--r--games-arcade/cdogs-sdl/metadata.xml11
-rw-r--r--games-arcade/ceferino/Manifest1
-rw-r--r--games-arcade/ceferino/ceferino-0.97.8.ebuild55
-rw-r--r--games-arcade/ceferino/files/ceferino-0.97.8-gcc44.patch11
-rw-r--r--games-arcade/ceferino/metadata.xml5
-rw-r--r--games-arcade/circuslinux/Manifest1
-rw-r--r--games-arcade/circuslinux/circuslinux-1.0.3.ebuild39
-rw-r--r--games-arcade/circuslinux/metadata.xml5
-rw-r--r--games-arcade/cob/Manifest1
-rw-r--r--games-arcade/cob/cob-0.9.ebuild29
-rw-r--r--games-arcade/cob/files/cob-0.9-gcc43.patch26
-rw-r--r--games-arcade/cob/files/cob-0.9-gcc44.patch30
-rw-r--r--games-arcade/cob/metadata.xml5
-rw-r--r--games-arcade/commandergenius/Manifest1
-rw-r--r--games-arcade/commandergenius/commandergenius-1.8.0.0.ebuild92
-rw-r--r--games-arcade/commandergenius/files/commandergenius-1.8.0.0-install.patch20
-rw-r--r--games-arcade/commandergenius/files/commandergenius-wrapper18
-rw-r--r--games-arcade/commandergenius/metadata.xml14
-rw-r--r--games-arcade/conveysdl/Manifest1
-rw-r--r--games-arcade/conveysdl/conveysdl-1.3.ebuild55
-rw-r--r--games-arcade/conveysdl/files/conveysdl-1.3-arrays.patch29
-rw-r--r--games-arcade/conveysdl/files/conveysdl-1.3-speed.patch56
-rw-r--r--games-arcade/conveysdl/metadata.xml5
-rw-r--r--games-arcade/cosmosmash/Manifest1
-rw-r--r--games-arcade/cosmosmash/cosmosmash-1.4.7.ebuild37
-rw-r--r--games-arcade/cosmosmash/metadata.xml9
-rw-r--r--games-arcade/crack-attack/Manifest1
-rw-r--r--games-arcade/crack-attack/crack-attack-1.1.14-r1.ebuild45
-rw-r--r--games-arcade/crack-attack/files/crack-attack-1.1.14-gcc43.patch10
-rw-r--r--games-arcade/crack-attack/files/crack-attack-1.1.14-glut.patch14
-rw-r--r--games-arcade/crack-attack/metadata.xml5
-rw-r--r--games-arcade/criticalmass/Manifest1
-rw-r--r--games-arcade/criticalmass/criticalmass-1.0.2.ebuild53
-rw-r--r--games-arcade/criticalmass/files/criticalmass-1.0.2-cflags.patch27
-rw-r--r--games-arcade/criticalmass/files/criticalmass-1.0.2-gcc43.patch101
-rw-r--r--games-arcade/criticalmass/files/criticalmass-1.0.2-libpng14.patch11
-rw-r--r--games-arcade/criticalmass/files/criticalmass-1.0.2-libpng15.patch31
-rw-r--r--games-arcade/criticalmass/files/criticalmass-1.0.2-system_curl.patch33
-rw-r--r--games-arcade/criticalmass/metadata.xml8
-rw-r--r--games-arcade/defendguin/Manifest1
-rw-r--r--games-arcade/defendguin/defendguin-0.0.12.ebuild40
-rw-r--r--games-arcade/defendguin/metadata.xml5
-rw-r--r--games-arcade/diameter/Manifest1
-rw-r--r--games-arcade/diameter/diameter-0.4.0.3-r1.ebuild48
-rw-r--r--games-arcade/diameter/metadata.xml14
-rw-r--r--games-arcade/digger/Manifest1
-rw-r--r--games-arcade/digger/digger-20140423.ebuild31
-rw-r--r--games-arcade/digger/files/digger-20140423-ldflags.patch21
-rw-r--r--games-arcade/digger/metadata.xml5
-rw-r--r--games-arcade/dynamitejack/Manifest1
-rw-r--r--games-arcade/dynamitejack/dynamitejack-1.0.23-r1.ebuild68
-rw-r--r--games-arcade/dynamitejack/metadata.xml6
-rw-r--r--games-arcade/emilia-pinball/Manifest1
-rw-r--r--games-arcade/emilia-pinball/emilia-pinball-0.3.1-r1.ebuild61
-rw-r--r--games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-gcc46.patch30
-rw-r--r--games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-glibc210.patch13
-rw-r--r--games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-libtool.patch64
-rw-r--r--games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-parallel.patch11
-rw-r--r--games-arcade/emilia-pinball/metadata.xml8
-rw-r--r--games-arcade/epiar/Manifest1
-rw-r--r--games-arcade/epiar/epiar-0.5-r1.ebuild51
-rw-r--r--games-arcade/epiar/files/0.5-gentoo-paths.patch59
-rw-r--r--games-arcade/epiar/files/epiar-0.5-Makefile.linux.patch20
-rw-r--r--games-arcade/epiar/files/epiar-0.5-gcc41.patch10
-rw-r--r--games-arcade/epiar/files/epiar-0.5-paths.patch86
-rw-r--r--games-arcade/epiar/files/epiar-0.5-underlink.patch10
-rw-r--r--games-arcade/epiar/metadata.xml18
-rw-r--r--games-arcade/excido/Manifest1
-rw-r--r--games-arcade/excido/excido-0.1.5c-r2.ebuild43
-rw-r--r--games-arcade/excido/files/excido-0.1.5c-build.patch29
-rw-r--r--games-arcade/excido/files/excido-0.1.5c-freealut.patch38
-rw-r--r--games-arcade/excido/metadata.xml5
-rw-r--r--games-arcade/fishsupper/Manifest1
-rw-r--r--games-arcade/fishsupper/files/fishsupper-0.1.6-asneeded.patch11
-rw-r--r--games-arcade/fishsupper/files/fishsupper-0.1.6-ovflfix.patch11
-rw-r--r--games-arcade/fishsupper/fishsupper-0.1.6.ebuild36
-rw-r--r--games-arcade/fishsupper/metadata.xml8
-rw-r--r--games-arcade/frozen-bubble/Manifest1
-rw-r--r--games-arcade/frozen-bubble/files/frozen-bubble-2.2.1_beta1-Werror.patch15
-rw-r--r--games-arcade/frozen-bubble/frozen-bubble-2.2.1_beta1.ebuild87
-rw-r--r--games-arcade/frozen-bubble/metadata.xml12
-rw-r--r--games-arcade/funnyboat/Manifest1
-rw-r--r--games-arcade/funnyboat/funnyboat-1.5-r1.ebuild56
-rw-r--r--games-arcade/funnyboat/metadata.xml8
-rw-r--r--games-arcade/gav/Manifest8
-rw-r--r--games-arcade/gav/files/gav-0.9.0-gcc43.patch10
-rw-r--r--games-arcade/gav/files/gav-0.9.0-ldflags.patch26
-rw-r--r--games-arcade/gav/gav-0.9.0.ebuild70
-rw-r--r--games-arcade/gav/metadata.xml8
-rw-r--r--games-arcade/gish-demo/Manifest1
-rwxr-xr-xgames-arcade/gish-demo/files/gish-wrapper4
-rw-r--r--games-arcade/gish-demo/gish-demo-1.6.ebuild37
-rw-r--r--games-arcade/gish-demo/metadata.xml5
-rw-r--r--games-arcade/gnake/Manifest1
-rw-r--r--games-arcade/gnake/gnake-0.94b.ebuild31
-rw-r--r--games-arcade/gnake/metadata.xml5
-rw-r--r--games-arcade/gnome-nibbles/Manifest2
-rw-r--r--games-arcade/gnome-nibbles/gnome-nibbles-3.14.1.ebuild32
-rw-r--r--games-arcade/gnome-nibbles/gnome-nibbles-3.16.1.ebuild32
-rw-r--r--games-arcade/gnome-nibbles/metadata.xml5
-rw-r--r--games-arcade/gnome-robots/Manifest2
-rw-r--r--games-arcade/gnome-robots/gnome-robots-3.14.2.ebuild34
-rw-r--r--games-arcade/gnome-robots/gnome-robots-3.16.1.ebuild30
-rw-r--r--games-arcade/gnome-robots/metadata.xml5
-rw-r--r--games-arcade/gnujump/Manifest1
-rw-r--r--games-arcade/gnujump/gnujump-1.0.8.ebuild36
-rw-r--r--games-arcade/gnujump/metadata.xml5
-rw-r--r--games-arcade/grande-KXL/Manifest1
-rw-r--r--games-arcade/grande-KXL/files/grande-KXL-0.6-cflags.patch17
-rw-r--r--games-arcade/grande-KXL/files/grande-KXL-0.6-configure.in.patch17
-rw-r--r--games-arcade/grande-KXL/grande-KXL-0.6.ebuild33
-rw-r--r--games-arcade/grande-KXL/metadata.xml5
-rw-r--r--games-arcade/gunocide2ex/Manifest1
-rw-r--r--games-arcade/gunocide2ex/files/gunocide2ex-1.0-build.patch178
-rw-r--r--games-arcade/gunocide2ex/files/gunocide2ex-1.0-glibc2.10.patch14
-rw-r--r--games-arcade/gunocide2ex/gunocide2ex-1.0.ebuild64
-rw-r--r--games-arcade/gunocide2ex/metadata.xml8
-rw-r--r--games-arcade/holotz-castle/Manifest1
-rw-r--r--games-arcade/holotz-castle/files/holotz-castle-1.3.14-build.patch71
-rw-r--r--games-arcade/holotz-castle/files/holotz-castle-1.3.14-gcc44.patch11
-rw-r--r--games-arcade/holotz-castle/files/holotz-castle-1.3.14-underlink.patch11
-rw-r--r--games-arcade/holotz-castle/holotz-castle-1.3.14.ebuild52
-rw-r--r--games-arcade/holotz-castle/metadata.xml5
-rw-r--r--games-arcade/insaneodyssey/Manifest1
-rw-r--r--games-arcade/insaneodyssey/files/insaneodyssey-000311-datafiles.patch55
-rw-r--r--games-arcade/insaneodyssey/insaneodyssey-000311.ebuild59
-rw-r--r--games-arcade/insaneodyssey/metadata.xml5
-rw-r--r--games-arcade/jardinains/Manifest1
-rw-r--r--games-arcade/jardinains/files/strings-pt.patch303
-rw-r--r--games-arcade/jardinains/jardinains-2.0-r1.ebuild63
-rw-r--r--games-arcade/jardinains/metadata.xml10
-rw-r--r--games-arcade/jumpnbump/Manifest2
-rw-r--r--games-arcade/jumpnbump/jumpnbump-1.50-r1.ebuild54
-rw-r--r--games-arcade/jumpnbump/metadata.xml8
-rw-r--r--games-arcade/jvgs/Manifest1
-rw-r--r--games-arcade/jvgs/files/jvgs-0.5-flags.patch14
-rw-r--r--games-arcade/jvgs/jvgs-0.5.ebuild57
-rw-r--r--games-arcade/jvgs/metadata.xml8
-rw-r--r--games-arcade/kajaani-kombat/Manifest1
-rw-r--r--games-arcade/kajaani-kombat/files/0.7-makefile.patch22
-rw-r--r--games-arcade/kajaani-kombat/files/kajaani-kombat-0.7-ldflags.patch11
-rw-r--r--games-arcade/kajaani-kombat/kajaani-kombat-0.7.ebuild44
-rw-r--r--games-arcade/kajaani-kombat/metadata.xml5
-rw-r--r--games-arcade/kobodeluxe/Manifest1
-rw-r--r--games-arcade/kobodeluxe/files/kobodeluxe-0.5.1-glibc2.10.patch11
-rw-r--r--games-arcade/kobodeluxe/files/kobodeluxe-0.5.1-glibc29.patch83
-rw-r--r--games-arcade/kobodeluxe/kobodeluxe-0.5.1.ebuild55
-rw-r--r--games-arcade/kobodeluxe/metadata.xml5
-rw-r--r--games-arcade/komi/Manifest1
-rw-r--r--games-arcade/komi/files/1.04-DESTDIR.patch36
-rw-r--r--games-arcade/komi/files/komi-1.04-install.patch11
-rw-r--r--games-arcade/komi/komi-1.04.ebuild44
-rw-r--r--games-arcade/komi/metadata.xml8
-rw-r--r--games-arcade/late/Manifest1
-rw-r--r--games-arcade/late/files/late-0.1.0-gcc43.patch11
-rw-r--r--games-arcade/late/files/late-0.1.0-gcc46.patch11
-rw-r--r--games-arcade/late/late-0.1.0.ebuild36
-rw-r--r--games-arcade/late/metadata.xml8
-rw-r--r--games-arcade/lbreakout/Manifest1
-rw-r--r--games-arcade/lbreakout/lbreakout-010315.ebuild32
-rw-r--r--games-arcade/lbreakout/metadata.xml8
-rw-r--r--games-arcade/lbreakout2/Manifest3
-rw-r--r--games-arcade/lbreakout2/files/lbreakout2-2.6.4-gentoo.patch67
-rw-r--r--games-arcade/lbreakout2/lbreakout2-2.6.4.ebuild93
-rw-r--r--games-arcade/lbreakout2/metadata.xml11
-rw-r--r--games-arcade/marbleblast-demo/Manifest1
-rw-r--r--games-arcade/marbleblast-demo/marbleblast-demo-1.3.ebuild35
-rw-r--r--games-arcade/marbleblast-demo/metadata.xml28
-rw-r--r--games-arcade/marbleblastgold-demo/Manifest1
-rw-r--r--games-arcade/marbleblastgold-demo/marbleblastgold-demo-1.4.1.ebuild41
-rw-r--r--games-arcade/marbleblastgold-demo/metadata.xml33
-rw-r--r--games-arcade/mari0/Manifest2
-rw-r--r--games-arcade/mari0/mari0-1.6.ebuild63
-rw-r--r--games-arcade/mari0/metadata.xml17
-rw-r--r--games-arcade/metadata.xml35
-rw-r--r--games-arcade/methane/Manifest1
-rw-r--r--games-arcade/methane/files/methane-1.5.1-gentoo.patch62
-rw-r--r--games-arcade/methane/metadata.xml8
-rw-r--r--games-arcade/methane/methane-1.5.1.ebuild43
-rw-r--r--games-arcade/missile/Manifest1
-rw-r--r--games-arcade/missile/files/missile-1.0.1-ldflags.patch15
-rw-r--r--games-arcade/missile/metadata.xml8
-rw-r--r--games-arcade/missile/missile-1.0.1.ebuild54
-rw-r--r--games-arcade/moleinvasion/Manifest2
-rw-r--r--games-arcade/moleinvasion/files/moleinvasion-0.4-opengl.patch18
-rw-r--r--games-arcade/moleinvasion/files/moleinvasion-0.4-underlink.patch11
-rw-r--r--games-arcade/moleinvasion/metadata.xml8
-rw-r--r--games-arcade/moleinvasion/moleinvasion-0.4-r1.ebuild45
-rw-r--r--games-arcade/monkey-bubble/Manifest1
-rw-r--r--games-arcade/monkey-bubble/files/monkey-bubble-0.4.0-asneeded.patch30
-rw-r--r--games-arcade/monkey-bubble/files/monkey-bubble-0.4.0-glib-single-include.patch45
-rw-r--r--games-arcade/monkey-bubble/files/monkey-bubble-0.4.0-gnome-doc.patch38
-rw-r--r--games-arcade/monkey-bubble/files/monkey-bubble-0.4.0-noesound.patch19
-rw-r--r--games-arcade/monkey-bubble/metadata.xml9
-rw-r--r--games-arcade/monkey-bubble/monkey-bubble-0.4.0.ebuild44
-rw-r--r--games-arcade/monster-masher/Manifest1
-rw-r--r--games-arcade/monster-masher/files/monster-masher-1.8.1-desktop.patch16
-rw-r--r--games-arcade/monster-masher/files/monster-masher-1.8.1-libcanberra.patch85
-rw-r--r--games-arcade/monster-masher/metadata.xml5
-rw-r--r--games-arcade/monster-masher/monster-masher-1.8.1-r2.ebuild46
-rw-r--r--games-arcade/mrrescue/Manifest2
-rw-r--r--games-arcade/mrrescue/metadata.xml8
-rw-r--r--games-arcade/mrrescue/mrrescue-1.02b.ebuild51
-rw-r--r--games-arcade/netris/Manifest2
-rw-r--r--games-arcade/netris/metadata.xml5
-rw-r--r--games-arcade/netris/netris-0.52.ebuild67
-rw-r--r--games-arcade/nibbles/Manifest1
-rw-r--r--games-arcade/nibbles/files/nibbles-0.0.4-as-needed.patch24
-rw-r--r--games-arcade/nibbles/metadata.xml5
-rw-r--r--games-arcade/nibbles/nibbles-0.0.4.ebuild49
-rw-r--r--games-arcade/ninvaders/Manifest1
-rw-r--r--games-arcade/ninvaders/metadata.xml8
-rw-r--r--games-arcade/ninvaders/ninvaders-0.1.1.ebuild29
-rw-r--r--games-arcade/njam/Manifest1
-rw-r--r--games-arcade/njam/files/njam-1.25-gcc45.patch24
-rw-r--r--games-arcade/njam/metadata.xml8
-rw-r--r--games-arcade/njam/njam-1.25.ebuild47
-rw-r--r--games-arcade/notpacman/Manifest2
-rw-r--r--games-arcade/notpacman/metadata.xml13
-rw-r--r--games-arcade/notpacman/notpacman-1.0.4.ebuild52
-rw-r--r--games-arcade/nottetris2/Manifest1
-rw-r--r--games-arcade/nottetris2/metadata.xml14
-rw-r--r--games-arcade/nottetris2/nottetris2-1.ebuild36
-rw-r--r--games-arcade/openbubbles/Manifest1
-rw-r--r--games-arcade/openbubbles/files/openbubbles-1.2-glibc2.10.patch20
-rw-r--r--games-arcade/openbubbles/metadata.xml19
-rw-r--r--games-arcade/openbubbles/openbubbles-1.2.ebuild28
-rw-r--r--games-arcade/openmortal/Manifest1
-rw-r--r--games-arcade/openmortal/files/openmortal-0.7-freetype.patch15
-rw-r--r--games-arcade/openmortal/files/openmortal-0.7-gcc41.patch11
-rw-r--r--games-arcade/openmortal/metadata.xml8
-rw-r--r--games-arcade/openmortal/openmortal-0.7-r1.ebuild40
-rw-r--r--games-arcade/opensonic/Manifest1
-rw-r--r--games-arcade/opensonic/files/opensonic-0.1.4-r1-cmake.patch107
-rw-r--r--games-arcade/opensonic/metadata.xml5
-rw-r--r--games-arcade/opensonic/opensonic-0.1.4-r1.ebuild64
-rw-r--r--games-arcade/opentyrian/Manifest5
-rw-r--r--games-arcade/opentyrian/files/2.1.20130907-cflag-idiocy.diff15
-rw-r--r--games-arcade/opentyrian/files/2.1.20130907-datapath.diff26
-rw-r--r--games-arcade/opentyrian/files/20090702-datapath.diff23
-rw-r--r--games-arcade/opentyrian/files/20091025-cflag-idiocy.diff12
-rw-r--r--games-arcade/opentyrian/files/20091025-datapath.diff26
-rw-r--r--games-arcade/opentyrian/files/20110517-cflag-idiocy.diff15
-rw-r--r--games-arcade/opentyrian/files/20110517-datapath.diff26
-rw-r--r--games-arcade/opentyrian/metadata.xml9
-rw-r--r--games-arcade/opentyrian/opentyrian-2.1.20130907.ebuild46
-rw-r--r--games-arcade/opentyrian/opentyrian-20090702.ebuild47
-rw-r--r--games-arcade/opentyrian/opentyrian-20091025.ebuild45
-rw-r--r--games-arcade/opentyrian/opentyrian-20110517-r1.ebuild47
-rw-r--r--games-arcade/opentyrian/opentyrian-20110517.ebuild42
-rw-r--r--games-arcade/orthorobot/Manifest1
-rw-r--r--games-arcade/orthorobot/metadata.xml8
-rw-r--r--games-arcade/orthorobot/orthorobot-0.ebuild50
-rw-r--r--games-arcade/pachi/Manifest1
-rw-r--r--games-arcade/pachi/files/1.0-autotools.patch46
-rw-r--r--games-arcade/pachi/metadata.xml9
-rw-r--r--games-arcade/pachi/pachi-1.0.ebuild38
-rw-r--r--games-arcade/pacmanarena/Manifest2
-rw-r--r--games-arcade/pacmanarena/files/pacmanarena-0.15-underlink.patch10
-rw-r--r--games-arcade/pacmanarena/metadata.xml8
-rw-r--r--games-arcade/pacmanarena/pacmanarena-0.15.ebuild54
-rw-r--r--games-arcade/penguin-command/Manifest1
-rw-r--r--games-arcade/penguin-command/metadata.xml8
-rw-r--r--games-arcade/penguin-command/penguin-command-1.6.11.ebuild27
-rw-r--r--games-arcade/pengupop/Manifest1
-rw-r--r--games-arcade/pengupop/files/pengupop-2.2.5-underlink.patch20
-rw-r--r--games-arcade/pengupop/metadata.xml8
-rw-r--r--games-arcade/pengupop/pengupop-2.2.5.ebuild56
-rw-r--r--games-arcade/performous/Manifest5
-rw-r--r--games-arcade/performous/files/performous-1.0-gentoo.patch12
-rw-r--r--games-arcade/performous/files/performous-1.0-include.patch10
-rw-r--r--games-arcade/performous/files/performous-1.0-libav.patch19
-rw-r--r--games-arcade/performous/files/performous-1.0-linguas.patch18
-rw-r--r--games-arcade/performous/metadata.xml18
-rw-r--r--games-arcade/performous/performous-1.0.ebuild113
-rw-r--r--games-arcade/primateplunge/Manifest1
-rw-r--r--games-arcade/primateplunge/files/primateplunge-1.1-AC_SUBST.patch26
-rw-r--r--games-arcade/primateplunge/metadata.xml5
-rw-r--r--games-arcade/primateplunge/primateplunge-1.1-r1.ebuild33
-rw-r--r--games-arcade/pycadia/Manifest1
-rw-r--r--games-arcade/pycadia/metadata.xml5
-rw-r--r--games-arcade/pycadia/pycadia-0.5.1.ebuild45
-rw-r--r--games-arcade/pydance-songs/Manifest1
-rw-r--r--games-arcade/pydance-songs/metadata.xml5
-rw-r--r--games-arcade/pydance-songs/pydance-songs-20040410.ebuild23
-rw-r--r--games-arcade/pydance/Manifest1
-rw-r--r--games-arcade/pydance/metadata.xml5
-rw-r--r--games-arcade/pydance/pydance-1.1.0.ebuild54
-rw-r--r--games-arcade/retrobattle/Manifest1
-rw-r--r--games-arcade/retrobattle/files/retrobattle-1.0.0-build.patch30
-rw-r--r--games-arcade/retrobattle/files/retrobattle-1.0.0-sound.patch17
-rw-r--r--games-arcade/retrobattle/metadata.xml6
-rw-r--r--games-arcade/retrobattle/retrobattle-1.0.0.ebuild41
-rw-r--r--games-arcade/ri-li/Manifest1
-rw-r--r--games-arcade/ri-li/files/ri-li-2.0.1-gcc43.patch291
-rw-r--r--games-arcade/ri-li/metadata.xml8
-rw-r--r--games-arcade/ri-li/ri-li-2.0.1.ebuild35
-rw-r--r--games-arcade/rockdodger/Manifest1
-rw-r--r--games-arcade/rockdodger/files/0.6.0a-sec.patch20
-rw-r--r--games-arcade/rockdodger/files/rockdodger-0.6.0a-gcc41.patch18
-rw-r--r--games-arcade/rockdodger/files/rockdodger-0.6.0a-underlink.patch11
-rw-r--r--games-arcade/rockdodger/metadata.xml8
-rw-r--r--games-arcade/rockdodger/rockdodger-0.6.0a-r1.ebuild58
-rw-r--r--games-arcade/rocksndiamonds/Manifest11
-rw-r--r--games-arcade/rocksndiamonds/files/rocksndiamonds-3.3.1.2-parallel-build.patch12
-rw-r--r--games-arcade/rocksndiamonds/files/rocksndiamonds-3.3.1.2-perms.patch29
-rw-r--r--games-arcade/rocksndiamonds/metadata.xml5
-rw-r--r--games-arcade/rocksndiamonds/rocksndiamonds-3.3.1.2.ebuild110
-rw-r--r--games-arcade/sable/Manifest2
-rw-r--r--games-arcade/sable/files/sable-1.0-gentoo.patch57
-rw-r--r--games-arcade/sable/metadata.xml15
-rw-r--r--games-arcade/sable/sable-1.0.ebuild41
-rw-r--r--games-arcade/sdb/Manifest1
-rw-r--r--games-arcade/sdb/files/sdb-1.0.2-endian.patch275
-rw-r--r--games-arcade/sdb/files/sdb-1.0.2-gcc43.patch10
-rw-r--r--games-arcade/sdb/files/sdb-1.0.2-ldflags.patch11
-rw-r--r--games-arcade/sdb/metadata.xml5
-rw-r--r--games-arcade/sdb/sdb-1.0.2.ebuild50
-rw-r--r--games-arcade/sdl-sopwith/Manifest1
-rw-r--r--games-arcade/sdl-sopwith/files/sdl-sopwith-1.7.5-nogtk.patch42
-rw-r--r--games-arcade/sdl-sopwith/files/sdl-sopwith-1.7.5-video-fix.patch24
-rw-r--r--games-arcade/sdl-sopwith/metadata.xml8
-rw-r--r--games-arcade/sdl-sopwith/sdl-sopwith-1.7.5-r1.ebuild40
-rw-r--r--games-arcade/sdlroids/Manifest1
-rw-r--r--games-arcade/sdlroids/files/1.3.4-sound.patch15
-rw-r--r--games-arcade/sdlroids/metadata.xml8
-rw-r--r--games-arcade/sdlroids/sdlroids-1.3.4-r3.ebuild34
-rw-r--r--games-arcade/sdlsasteroids/Manifest1
-rw-r--r--games-arcade/sdlsasteroids/files/sdlsasteroids-3.0.1-gcc43.patch11
-rw-r--r--games-arcade/sdlsasteroids/files/sdlsasteroids-3.0.1-ldflags.patch11
-rw-r--r--games-arcade/sdlsasteroids/metadata.xml8
-rw-r--r--games-arcade/sdlsasteroids/sdlsasteroids-3.0.1.ebuild56
-rw-r--r--games-arcade/skystreets/Manifest1
-rw-r--r--games-arcade/skystreets/files/0.2.4-gl.patch10
-rw-r--r--games-arcade/skystreets/files/skystreets-0.2.4-as-needed.patch11
-rw-r--r--games-arcade/skystreets/metadata.xml8
-rw-r--r--games-arcade/skystreets/skystreets-0.2.4.ebuild33
-rw-r--r--games-arcade/slimevolley/Manifest1
-rw-r--r--games-arcade/slimevolley/files/slimevolley-2.4.2-nodatalocal.patch23
-rw-r--r--games-arcade/slimevolley/files/slimevolley-2.4.2-underlink.patch10
-rw-r--r--games-arcade/slimevolley/metadata.xml8
-rw-r--r--games-arcade/slimevolley/slimevolley-2.4.2.ebuild48
-rw-r--r--games-arcade/smc/Manifest2
-rw-r--r--games-arcade/smc/files/smc-1.9-boost150.patch101
-rw-r--r--games-arcade/smc/files/smc-1.9-underlink.patch25
-rw-r--r--games-arcade/smc/metadata.xml11
-rw-r--r--games-arcade/smc/smc-1.9.ebuild55
-rw-r--r--games-arcade/snake3d/Manifest1
-rw-r--r--games-arcade/snake3d/files/snake3d-0.9-amd64.patch37
-rw-r--r--games-arcade/snake3d/files/snake3d-0.9-build.patch24
-rw-r--r--games-arcade/snake3d/metadata.xml13
-rw-r--r--games-arcade/snake3d/snake3d-0.9.ebuild38
-rw-r--r--games-arcade/solarwolf/Manifest1
-rw-r--r--games-arcade/solarwolf/metadata.xml5
-rw-r--r--games-arcade/solarwolf/solarwolf-1.5.ebuild33
-rw-r--r--games-arcade/spacerider/Manifest1
-rw-r--r--games-arcade/spacerider/files/spacerider-0.13-font.patch14
-rw-r--r--games-arcade/spacerider/files/spacerider-0.13-gcc41.patch10
-rw-r--r--games-arcade/spacerider/files/spacerider-0.13-gcc49.patch22
-rw-r--r--games-arcade/spacerider/files/spacerider-0.13-gentoo.patch27
-rw-r--r--games-arcade/spacerider/files/spacerider-0.13-ovflfix.patch11
-rw-r--r--games-arcade/spacerider/metadata.xml8
-rw-r--r--games-arcade/spacerider/spacerider-0.13.ebuild43
-rw-r--r--games-arcade/spout/Manifest1
-rw-r--r--games-arcade/spout/metadata.xml8
-rw-r--r--games-arcade/spout/spout-1.3.ebuild44
-rw-r--r--games-arcade/stardork/Manifest1
-rw-r--r--games-arcade/stardork/metadata.xml8
-rw-r--r--games-arcade/stardork/stardork-0.7.ebuild33
-rw-r--r--games-arcade/supertransball2/Manifest2
-rw-r--r--games-arcade/supertransball2/files/supertransball2-1.5-ldflags.patch11
-rw-r--r--games-arcade/supertransball2/metadata.xml13
-rw-r--r--games-arcade/supertransball2/supertransball2-1.5.ebuild69
-rw-r--r--games-arcade/supertux/Manifest1
-rw-r--r--games-arcade/supertux/files/supertux-0.1.3-desktop.patch21
-rw-r--r--games-arcade/supertux/files/supertux-0.1.3-gcc41.patch12
-rw-r--r--games-arcade/supertux/files/supertux-0.1.3-ndebug.patch16
-rw-r--r--games-arcade/supertux/metadata.xml5
-rw-r--r--games-arcade/supertux/supertux-0.1.3.ebuild43
-rw-r--r--games-arcade/syobon/Manifest1
-rw-r--r--games-arcade/syobon/metadata.xml12
-rw-r--r--games-arcade/syobon/syobon-1.0.1.ebuild41
-rw-r--r--games-arcade/tecnoballz/Manifest1
-rw-r--r--games-arcade/tecnoballz/files/tecnoballz-0.92-automake.patch116
-rw-r--r--games-arcade/tecnoballz/files/tecnoballz-0.92-gcc43.patch11
-rw-r--r--games-arcade/tecnoballz/metadata.xml12
-rw-r--r--games-arcade/tecnoballz/tecnoballz-0.92.ebuild44
-rw-r--r--games-arcade/thinktanks-demo/Manifest1
-rw-r--r--games-arcade/thinktanks-demo/metadata.xml40
-rw-r--r--games-arcade/thinktanks-demo/thinktanks-demo-1.1-r2.ebuild47
-rw-r--r--games-arcade/tomatoes/Manifest2
-rw-r--r--games-arcade/tomatoes/files/tomatoes-1.55-c_str.patch24
-rw-r--r--games-arcade/tomatoes/files/tomatoes-1.55-gcc43.patch14
-rw-r--r--games-arcade/tomatoes/files/tomatoes-1.55-underlink.patch38
-rw-r--r--games-arcade/tomatoes/metadata.xml8
-rw-r--r--games-arcade/tomatoes/tomatoes-1.55-r2.ebuild63
-rw-r--r--games-arcade/trailblazer/Manifest1
-rw-r--r--games-arcade/trailblazer/files/trailblazer-0.9-ldflags.patch11
-rw-r--r--games-arcade/trailblazer/files/trailblazer-0.9-underlink.patch11
-rw-r--r--games-arcade/trailblazer/metadata.xml5
-rw-r--r--games-arcade/trailblazer/trailblazer-0.9.ebuild45
-rw-r--r--games-arcade/triplexinvaders/Manifest1
-rw-r--r--games-arcade/triplexinvaders/files/triplexinvaders-1.08-gentoo.patch62
-rw-r--r--games-arcade/triplexinvaders/metadata.xml9
-rw-r--r--games-arcade/triplexinvaders/triplexinvaders-1.08.ebuild40
-rw-r--r--games-arcade/tuxanci/Manifest1
-rw-r--r--games-arcade/tuxanci/metadata.xml13
-rw-r--r--games-arcade/tuxanci/tuxanci-20110429.ebuild73
-rw-r--r--games-arcade/tuxanci/tuxanci-99999999.ebuild73
-rw-r--r--games-arcade/tuxdash/Manifest1
-rw-r--r--games-arcade/tuxdash/files/tuxdash-0.8-ldflags.patch8
-rw-r--r--games-arcade/tuxdash/metadata.xml5
-rw-r--r--games-arcade/tuxdash/tuxdash-0.8.ebuild51
-rw-r--r--games-arcade/tuxpuck/Manifest1
-rw-r--r--games-arcade/tuxpuck/files/tuxpuck-0.8.2-ldflags.patch11
-rw-r--r--games-arcade/tuxpuck/files/tuxpuck-0.8.2-parallel.patch58
-rw-r--r--games-arcade/tuxpuck/files/tuxpuck-0.8.2-png15.patch63
-rw-r--r--games-arcade/tuxpuck/metadata.xml5
-rw-r--r--games-arcade/tuxpuck/tuxpuck-0.8.2-r1.ebuild55
-rw-r--r--games-arcade/vor/Manifest1
-rw-r--r--games-arcade/vor/files/vor-0.5.5-underlink.patch26
-rw-r--r--games-arcade/vor/metadata.xml5
-rw-r--r--games-arcade/vor/vor-0.5.5.ebuild47
-rw-r--r--games-arcade/watermelons/Manifest1
-rw-r--r--games-arcade/watermelons/metadata.xml5
-rw-r--r--games-arcade/watermelons/watermelons-1.1.1-r1.ebuild57
-rw-r--r--games-arcade/whichwayisup/Manifest1
-rw-r--r--games-arcade/whichwayisup/files/whichwayisup-32.xpm67
-rw-r--r--games-arcade/whichwayisup/metadata.xml8
-rw-r--r--games-arcade/whichwayisup/whichwayisup-0.7.9-r1.ebuild60
-rw-r--r--games-arcade/wop/Manifest2
-rw-r--r--games-arcade/wop/files/wop-0.4.3-Makefile.patch54
-rw-r--r--games-arcade/wop/files/wop-0.4.3-gcc43.patch32
-rw-r--r--games-arcade/wop/metadata.xml5
-rw-r--r--games-arcade/wop/wop-0.4.3-r1.ebuild58
-rw-r--r--games-arcade/xbill/Manifest1
-rw-r--r--games-arcade/xbill/files/xbill-2.1-gentoo.patch353
-rw-r--r--games-arcade/xbill/files/xbill-2.1-gtk2.patch18
-rw-r--r--games-arcade/xbill/metadata.xml5
-rw-r--r--games-arcade/xbill/xbill-2.1-r2.ebuild41
-rw-r--r--games-arcade/xboing/Manifest2
-rw-r--r--games-arcade/xboing/files/xboing-2.4-buffer.patch12
-rw-r--r--games-arcade/xboing/files/xboing-2.4-sleep.patch13
-rw-r--r--games-arcade/xboing/metadata.xml5
-rw-r--r--games-arcade/xboing/xboing-2.4-r2.ebuild61
-rw-r--r--games-arcade/xbubble/Manifest1
-rw-r--r--games-arcade/xbubble/files/xbubble-0.5.8-libpng14.patch13
-rw-r--r--games-arcade/xbubble/files/xbubble-0.5.8-locale.patch10
-rw-r--r--games-arcade/xbubble/files/xbubble-0.5.8-png15.patch20
-rw-r--r--games-arcade/xbubble/files/xbubble-0.5.8-xpaths.patch11
-rw-r--r--games-arcade/xbubble/metadata.xml5
-rw-r--r--games-arcade/xbubble/xbubble-0.5.8.ebuild48
-rw-r--r--games-arcade/xevil/Manifest2
-rw-r--r--games-arcade/xevil/files/xevil-2.02_p2-glibc-2.10.patch20
-rw-r--r--games-arcade/xevil/metadata.xml5
-rw-r--r--games-arcade/xevil/xevil-2.02_p2-r1.ebuild44
-rw-r--r--games-arcade/xgalaga/Manifest1
-rw-r--r--games-arcade/xgalaga/metadata.xml8
-rw-r--r--games-arcade/xgalaga/xgalaga-2.1.1.0.ebuild55
-rw-r--r--games-arcade/xjump/Manifest2
-rw-r--r--games-arcade/xjump/files/xjump-2.7.5-ldflags.patch11
-rw-r--r--games-arcade/xjump/metadata.xml5
-rw-r--r--games-arcade/xjump/xjump-2.7.5.ebuild56
-rw-r--r--games-arcade/xrick/Manifest1
-rw-r--r--games-arcade/xrick/files/xrick-021212-exit.patch23
-rw-r--r--games-arcade/xrick/files/xrick-021212-fullscreen.patch21
-rw-r--r--games-arcade/xrick/files/xrick-021212-zlib.patch13
-rw-r--r--games-arcade/xrick/metadata.xml5
-rw-r--r--games-arcade/xrick/xrick-021212-r1.ebuild55
-rw-r--r--games-arcade/xscavenger/Manifest1
-rw-r--r--games-arcade/xscavenger/files/1.4.4-gentoo.patch200
-rw-r--r--games-arcade/xscavenger/metadata.xml5
-rw-r--r--games-arcade/xscavenger/xscavenger-1.4.4.ebuild47
-rw-r--r--games-arcade/xsfcave/Manifest1
-rw-r--r--games-arcade/xsfcave/metadata.xml13
-rw-r--r--games-arcade/xsfcave/xsfcave-0.5.ebuild23
-rw-r--r--games-arcade/xtux/Manifest1
-rw-r--r--games-arcade/xtux/files/xtux-20030306-ldflags.patch22
-rw-r--r--games-arcade/xtux/files/xtux-20030306-particles.patch30
-rw-r--r--games-arcade/xtux/metadata.xml8
-rw-r--r--games-arcade/xtux/xtux-20030306.ebuild51
-rw-r--r--games-arcade/yarsrevenge/Manifest1
-rw-r--r--games-arcade/yarsrevenge/files/0.99-math.patch6
-rw-r--r--games-arcade/yarsrevenge/files/yarsrevenge-0.99-gcc43.patch10
-rw-r--r--games-arcade/yarsrevenge/files/yarsrevenge-0.99-gcc44.patch10
-rw-r--r--games-arcade/yarsrevenge/metadata.xml12
-rw-r--r--games-arcade/yarsrevenge/yarsrevenge-0.99.ebuild30
584 files changed, 14502 insertions, 0 deletions
diff --git a/games-arcade/abe/Manifest b/games-arcade/abe/Manifest
new file mode 100644
index 000000000000..f15233b25dc2
--- /dev/null
+++ b/games-arcade/abe/Manifest
@@ -0,0 +1 @@
+DIST abe-1.1.tar.gz 3321075 SHA256 dfc4ea74c04c92175abc5c9d65cfa6aad218209854d87d87758878e303b677f7 SHA512 6106fce9c72554596ac3f94551326381e98c0d40f7a5aa8ae7aeadaa234c113733e8df717bd1b18d2ba835f689982e859607c9d88ab2d59790ec00833a4e48c7 WHIRLPOOL 63cc3554fa9fe5cde344f1a9973dd8d4765e5fb31de26de3d608975efd5cb9de2ef8ee23414ce422a36d87bfbe231b31ba3cc72f2418cc0af46d6792bdd547de
diff --git a/games-arcade/abe/abe-1.1.ebuild b/games-arcade/abe/abe-1.1.ebuild
new file mode 100644
index 000000000000..cfb65f4db97c
--- /dev/null
+++ b/games-arcade/abe/abe-1.1.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+inherit eutils toolchain-funcs games
+
+DESCRIPTION="A scrolling, platform-jumping, key-collecting, ancient pyramid exploring game"
+HOMEPAGE="http://abe.sourceforge.net/"
+SRC_URI="mirror://sourceforge/abe/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86 ~x86-fbsd"
+IUSE=""
+
+DEPEND="media-libs/libsdl
+ x11-libs/libXi
+ media-libs/sdl-mixer[vorbis]"
+RDEPEND="${DEPEND}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ unpack ./images/images.tar
+}
+
+src_prepare() {
+ sed -i \
+ -e "/^TR_CFLAGS/d" \
+ -e "/^TR_CXXFLAGS/d" \
+ configure \
+ || die "sed failed"
+ epatch "${FILESDIR}"/${P}-settings.patch
+}
+
+src_configure() {
+ egamesconf --with-data-dir="${GAMES_DATADIR}"/${PN}
+}
+
+src_install() {
+ dogamesbin src/abe
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r images sounds maps
+ newicon tom1.bmp abe.bmp
+ make_desktop_entry abe "Abe's Amazing Adventure" /usr/share/pixmaps/abe.bmp
+ dodoc AUTHORS ChangeLog README
+ prepgamesdirs
+}
diff --git a/games-arcade/abe/files/abe-1.1-settings.patch b/games-arcade/abe/files/abe-1.1-settings.patch
new file mode 100644
index 000000000000..ea5809f7386a
--- /dev/null
+++ b/games-arcade/abe/files/abe-1.1-settings.patch
@@ -0,0 +1,12 @@
+diff -Naur --exclude '*.swp' abe-1.1/src/Menu.c abe-1.1.new/src/Menu.c
+--- abe-1.1/src/Menu.c 2005-03-05 08:20:04.000000000 -0800
++++ abe-1.1.new/src/Menu.c 2006-04-02 15:04:37.000000000 -0700
+@@ -116,7 +116,7 @@
+ if(n == SOUND_ENABLED || n == MUSIC_ENABLED)
+ return sound_loaded;
+ else
+- return 0;
++ return 1;
+ }
+
+ void
diff --git a/games-arcade/abe/metadata.xml b/games-arcade/abe/metadata.xml
new file mode 100644
index 000000000000..e94a66c0dd94
--- /dev/null
+++ b/games-arcade/abe/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>games</herd>
+ <upstream>
+ <remote-id type="sourceforge">abe</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-arcade/afternoonstalker/Manifest b/games-arcade/afternoonstalker/Manifest
new file mode 100644
index 000000000000..e2a986e6f174
--- /dev/null
+++ b/games-arcade/afternoonstalker/Manifest
@@ -0,0 +1 @@
+DIST afternoonstalker-1.1.5.tar.gz 202663 SHA256 cb9896e00654057edc1ef8843c6c7f5bbcc0b5313e06227ae6e73d0c1d689097 SHA512 ff08cc72385deddfaffabf98c3cc67f72f8c6db77de1feb4e19d2d3dcf6ca1018a71d6e052d2e2373dc758e119a4c068a3f4195cb6fbf1b01900bdedf193a7e0 WHIRLPOOL 1d9f88ecccd448e8b1de34acfa725f16e394a3a29b0b46adb08a7e20d9ddddb0b3e999908968acf5a4a8387899dfbd0a1f9e679aee881c05062de9e0562d6a47
diff --git a/games-arcade/afternoonstalker/afternoonstalker-1.1.5.ebuild b/games-arcade/afternoonstalker/afternoonstalker-1.1.5.ebuild
new file mode 100644
index 000000000000..4264a0285703
--- /dev/null
+++ b/games-arcade/afternoonstalker/afternoonstalker-1.1.5.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+inherit autotools games
+
+DESCRIPTION="Clone of the 1981 Night Stalker video game by Mattel Electronics"
+HOMEPAGE="http://perso.b2b2c.ca/sarrazip/dev/afternoonstalker.html"
+SRC_URI="http://perso.b2b2c.ca/sarrazip/dev/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86 ~x86-fbsd"
+IUSE=""
+
+RDEPEND=">=dev-games/flatzebra-0.1.6"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ sed -i \
+ -e "/^pkgsounddir/ s:sounds.*:\$(PACKAGE)/sounds:" \
+ -e "/^desktopentrydir/ s:=.*:=/usr/share/applications:" \
+ -e "/^pixmapdir/ s:=.*:=/usr/share/pixmaps:" \
+ src/Makefile.am \
+ || die
+ eautoreconf
+}
+
+src_install() {
+ emake -C src DESTDIR="${D}" install
+ doman doc/${PN}.6
+ dodoc AUTHORS NEWS README THANKS
+ prepgamesdirs
+}
diff --git a/games-arcade/afternoonstalker/metadata.xml b/games-arcade/afternoonstalker/metadata.xml
new file mode 100644
index 000000000000..112b2c3dc17e
--- /dev/null
+++ b/games-arcade/afternoonstalker/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+<longdescription lang="en">
+Afternoon Stalker, a clone of the 1981 Night Stalker video game by Mattel
+Electronics.
+</longdescription>
+</pkgmetadata>
diff --git a/games-arcade/alienwave/Manifest b/games-arcade/alienwave/Manifest
new file mode 100644
index 000000000000..d4fea03ef668
--- /dev/null
+++ b/games-arcade/alienwave/Manifest
@@ -0,0 +1 @@
+DIST alienwave-0.3.0.tar.gz 22046 SHA256 89902193bc6d5dc13ea4acee26f5a0f72a561e9bbadd0f82e098d770d38f83ae SHA512 b02b28256edde96676acb0e731b8ba6056466eba01ebc3e3d433439c009f7860f2a4f9d0253cc5b1eca758eaba8bc780c5484bb8948c4bb5c085e5c0d9924f2b WHIRLPOOL 1f795d463a78e9feda25a77b7ae1d068412c3c7baae2a1aa65ce30f79a6d2fd187ef1ecd65404ace006efd49c78911304fb10c68d46f7093abdc50dfaae2342b
diff --git a/games-arcade/alienwave/alienwave-0.3.0.ebuild b/games-arcade/alienwave/alienwave-0.3.0.ebuild
new file mode 100644
index 000000000000..4745ebd3399b
--- /dev/null
+++ b/games-arcade/alienwave/alienwave-0.3.0.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+inherit eutils games
+
+DESCRIPTION="An ncurses-based Xenon clone"
+HOMEPAGE="http://www.alessandropira.org/alienwave/aw.html"
+SRC_URI="http://www.alessandropira.org/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc sparc x86 ~x86-fbsd"
+IUSE=""
+
+DEPEND="sys-libs/ncurses"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${PN}
+
+PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
+
+src_install() {
+ dogamesbin alienwave
+ dodoc TO_DO README STORY
+ prepgamesdirs
+}
diff --git a/games-arcade/alienwave/files/alienwave-0.3.0-gentoo.patch b/games-arcade/alienwave/files/alienwave-0.3.0-gentoo.patch
new file mode 100644
index 000000000000..1b71f1cf1838
--- /dev/null
+++ b/games-arcade/alienwave/files/alienwave-0.3.0-gentoo.patch
@@ -0,0 +1,22 @@
+--- Makefile.old 2009-01-30 16:04:16.000000000 +0100
++++ Makefile 2009-01-30 16:07:04.000000000 +0100
+@@ -1,9 +1,7 @@
+ # This file is part of Alienwave, a game by Alessandro Pira
+
+-CC = gcc
+ OBJS = main.o blit.o aliens.o xzarna.o fire.o shield.o levels.o util.o
+ # CFLAGS = -c -O2 -Wall -DDEBUG_LEV
+-CFLAGS = -c -O2 -Wall
+ LIB = -lncurses
+
+ # Uncomment this if you want random waves
+@@ -16,8 +14,7 @@
+
+
+ alienwave: $(OBJS)
+- $(CC) $(LIB) $(OBJS) -o alienwave
+- strip alienwave
++ $(CC) $(OBJS) $(LDFLAGS) $(LIB) -o alienwave
+
+ main.o: main.c
+
diff --git a/games-arcade/alienwave/metadata.xml b/games-arcade/alienwave/metadata.xml
new file mode 100644
index 000000000000..cad5a2aa1773
--- /dev/null
+++ b/games-arcade/alienwave/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>games</herd>
+</pkgmetadata>
diff --git a/games-arcade/amphetamine/Manifest b/games-arcade/amphetamine/Manifest
new file mode 100644
index 000000000000..ce51d856f7f8
--- /dev/null
+++ b/games-arcade/amphetamine/Manifest
@@ -0,0 +1,2 @@
+DIST amphetamine-0.8.10.tar.bz2 72324 SHA256 6cf7542d7a6b1c3f3cc660164961aa3fecd90fc3ebd7f9b640bf73dfca6aa677 SHA512 eb3106df6070e207ffb3293ac4701bba8222603c0e399667505bad29b6f6433dc9ec008499b5180f713a724d3b686fead15536a20927195bc57780be16a860ef WHIRLPOOL a9b2706c0b8418d14fb87ad8451a2ea6a72c8e8ad1ecceaf72fa34458f3368b21541aaadafb24cf11f7128373679c70e9cc7e79ef420c0145896f8222ecc5c11
+DIST amphetamine-data-0.8.6.tar.bz2 928775 SHA256 b51a0edaf3271008a5e0b3061556898e3d0e27a554803d53caaaec14ecb730aa SHA512 0feb86f420b4816064594756bb30bb6e02ae5062f03ef175b3262a8f30043340933f6f1b1894e2b2cfad70befc76d3ed1e0d2777c2dc2f7461459e8a93efeaf1 WHIRLPOOL 09fab6986514a13d3341cccdc557a4110714a66bd352e9166f8c7f935aeb20eb3f2f3cac84400384cb640f9a53451845ffd6c8b653ba8f1c06c4c69bf43090f4
diff --git a/games-arcade/amphetamine/amphetamine-0.8.10.ebuild b/games-arcade/amphetamine/amphetamine-0.8.10.ebuild
new file mode 100644
index 000000000000..73d9b27173cc
--- /dev/null
+++ b/games-arcade/amphetamine/amphetamine-0.8.10.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+inherit eutils games
+
+DESCRIPTION="a cool Jump'n Run game offering some unique visual effects"
+HOMEPAGE="http://homepage.hispeed.ch/loehrer/amph/amph.html"
+SRC_URI="http://homepage.hispeed.ch/loehrer/amph/files/${P}.tar.bz2
+ http://homepage.hispeed.ch/loehrer/amph/files/${PN}-data-0.8.6.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86 ~x86-fbsd"
+IUSE=""
+
+DEPEND="media-libs/libsdl[sound,video]
+ x11-libs/libXpm"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-build.patch
+ "${FILESDIR}"/${P}-64bit.patch
+)
+
+src_compile() {
+ emake INSTALL_DIR="${GAMES_DATADIR}"/${PN}
+}
+
+src_install() {
+ newgamesbin amph ${PN}
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r ../amph/*
+ newicon amph.xpm ${PN}.xpm
+ make_desktop_entry ${PN} Amphetamine ${PN}
+ dodoc BUGS ChangeLog NEWS README
+ prepgamesdirs
+}
diff --git a/games-arcade/amphetamine/files/amphetamine-0.8.10-64bit.patch b/games-arcade/amphetamine/files/amphetamine-0.8.10-64bit.patch
new file mode 100644
index 000000000000..b7588face714
--- /dev/null
+++ b/games-arcade/amphetamine/files/amphetamine-0.8.10-64bit.patch
@@ -0,0 +1,72 @@
+--- amphetamine-0.8.10.orig/src/Shape.cpp
++++ amphetamine-0.8.10/src/Shape.cpp
+@@ -56,12 +56,12 @@
+ */
+ #ifdef __OPT_MEM_ACCESS__
+
+-#define GET_LONG(adr) *(unsigned long *)adr
+-#define SET_LONG(adr, l) *(unsigned long *)adr = l
++#define GET_LONG(adr) *(uint32_t *)adr
++#define SET_LONG(adr, l) *(uint32_t *)adr = l
+
+ #else
+
+-#define GET_LONG(adr) ((long)((unsigned char *)(adr))[0] << 24) + ((long)((unsigned char *)(adr))[1] << 16) + ((long)((unsigned char *)(adr))[2] << 8) + ((long)((unsigned char *)(adr))[3])
++#define GET_LONG(adr) ((uint32_t)((unsigned char *)(adr))[0] << 24) + ((uint32_t)((unsigned char *)(adr))[1] << 16) + ((uint32_t)((unsigned char *)(adr))[2] << 8) + ((uint32_t)((unsigned char *)(adr))[3])
+ #define SET_LONG(adr, l) ((unsigned char *)adr)[0] = (unsigned char)((l) >> 24); \
+ ((unsigned char *)adr)[1] = (unsigned char)((l) >> 16); \
+ ((unsigned char *)adr)[2] = (unsigned char)((l) >> 8); \
+@@ -116,7 +116,7 @@
+ {
+ // store the location of this line start
+ lineStartPtr = destPtr;
+- destPtr += sizeof( unsigned long );
++ destPtr += sizeof( uint32_t );
+
+ // at the beginning of each row we are not in any run
+ drawRunFlag = kFalse;
+@@ -160,7 +160,7 @@
+ // create the skip token
+ //*( ( unsigned long * )destPtr ) = ( kSkipPixelsToken << 24 ) + runCounter;
+ SET_LONG(destPtr, ( kSkipPixelsToken << 24 ) + runCounter);
+- destPtr += sizeof( unsigned long );
++ destPtr += sizeof( uint32_t );
+ }
+
+ // are we in a draw run
+@@ -179,7 +179,7 @@
+
+ // save the location of the token (so we can fill it in later)
+ runTokenPtr = destPtr;
+- destPtr += sizeof( unsigned long );
++ destPtr += sizeof( uint32_t );
+
+ // copy the pixel
+ *destPtr = *srcPtr;
+@@ -215,7 +215,7 @@
+
+ // create the end of shape token
+ SET_LONG(destPtr, kEndShapeToken << 24);
+- destPtr += sizeof( unsigned long );
++ destPtr += sizeof( uint32_t );
+
+ // Resize the handle to match the real size of the shape
+ //SetHandleSize( shapeHandle, destPtr - ( unsigned char * )( *shapeHandle ) );
+@@ -280,7 +280,7 @@
+ // get a token
+ tokenOp = GET_LONG(srcPtr ) >> 24;
+ tokenData = GET_LONG(srcPtr ) & 0x00ffffff;
+- srcPtr += sizeof( unsigned long );
++ srcPtr += sizeof( uint32_t );
+
+ // depending on the token
+ switch( tokenOp )
+@@ -435,7 +435,7 @@
+ // get a token
+ tokenOp = GET_LONG(srcPtr) >> 24;
+ tokenData = GET_LONG(srcPtr) & 0x00ffffff;
+- srcPtr += sizeof( unsigned long );
++ srcPtr += sizeof( uint32_t );
+
+ // depending on the token
+ switch( tokenOp )
diff --git a/games-arcade/amphetamine/files/amphetamine-0.8.10-build.patch b/games-arcade/amphetamine/files/amphetamine-0.8.10-build.patch
new file mode 100644
index 000000000000..2c0185f3ff01
--- /dev/null
+++ b/games-arcade/amphetamine/files/amphetamine-0.8.10-build.patch
@@ -0,0 +1,33 @@
+--- Makefile
++++ Makefile
+@@ -26,8 +26,8 @@
+
+ # makemake variables
+
+-LINKER := g++
+-DEPENDFLAGS := -g ${SEARCHDIRS}
++LINKER = $(CXX) $(CXXFLAGS)
++DEPENDFLAGS := ${SEARCHDIRS}
+ TOUCHHEADERS := ${MYCODEDIR}/*.h
+
+ # C
+@@ -37,8 +37,8 @@
+
+ # C++
+
+-CXX := g++
+-CXXFLAGS = ${DEPENDFLAGS} -O9 -funroll-loops -fomit-frame-pointer -ffast-math -Wcast-align
++CXX ?= g++
++CXXFLAGS += ${DEPENDFLAGS}
+
+ %.o : %.cpp
+ ${CXX} ${CPPFLAGS} -c $< ${CXXFLAGS} -o $@
+@@ -66,7 +66,7 @@
+ LOADLIBES := $(LOADLIBES) -lXpm -lXt
+ endif
+
+-LDFLAGS = -L/usr/lib -L/usr/local/lib -L/usr/X11R6/lib
++LDFLAGS += -L/usr/lib -L/usr/local/lib -L/usr/X11R6/lib
+
+ .PHONY : default
+ default : amph
diff --git a/games-arcade/amphetamine/metadata.xml b/games-arcade/amphetamine/metadata.xml
new file mode 100644
index 000000000000..65706f28dade
--- /dev/null
+++ b/games-arcade/amphetamine/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+<longdescription lang="en">
+Amphetamine is a cool Jump'n Run game offering some unique visual effects.
+</longdescription>
+</pkgmetadata>
diff --git a/games-arcade/aop/Manifest b/games-arcade/aop/Manifest
new file mode 100644
index 000000000000..5371e7509995
--- /dev/null
+++ b/games-arcade/aop/Manifest
@@ -0,0 +1 @@
+DIST aop-0.6.tar.gz 11811 SHA256 68a8b6b8f08216b31895d536f7dc4beb137a787fd17096da2d46fd863497f65a SHA512 0ce37647a0832b17e23df409633952f902e02666fa536cc4393a35bf91b245a501feeb4f14fd16d1a1d5c4f39682dad18a8e671e107e96cf5ba9c89965f8a77c WHIRLPOOL 8c8c358e465bd667fe9ac95573da1746f0267cb4be8f3d35919c097bf58051e52eebf9626aa48de3ecbe92e164b79f88d02d93f98a9fc7980bca19224eedbb9f
diff --git a/games-arcade/aop/aop-0.6.ebuild b/games-arcade/aop/aop-0.6.ebuild
new file mode 100644
index 000000000000..d4368231ec85
--- /dev/null
+++ b/games-arcade/aop/aop-0.6.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="Ambassador of Pain is a curses based game with only 64 lines of code"
+HOMEPAGE="http://raffi.at/view/code/aop"
+SRC_URI="http://www.raffi.at/code/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc ppc64 ~sparc x86 ~x86-fbsd"
+IUSE=""
+
+RDEPEND="sys-libs/ncurses"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ sed -i \
+ -e "s#/usr/local/share#${GAMES_DATADIR}#" \
+ aop.c || die
+ epatch "${FILESDIR}"/${P}-as-needed.patch
+}
+
+src_install() {
+ dogamesbin aop
+ insinto "${GAMES_DATADIR}/${PN}"
+ doins aop-level-*.txt
+ prepgamesdirs
+}
diff --git a/games-arcade/aop/files/aop-0.6-as-needed.patch b/games-arcade/aop/files/aop-0.6-as-needed.patch
new file mode 100644
index 000000000000..5d70e2b01af4
--- /dev/null
+++ b/games-arcade/aop/files/aop-0.6-as-needed.patch
@@ -0,0 +1,9 @@
+--- Makefile.old 2009-01-30 17:00:58.000000000 +0100
++++ Makefile 2009-01-30 17:01:15.000000000 +0100
+@@ -1,5 +1,5 @@
+
+-LDFLAGS = -lncurses
++LDLIBS := $(shell pkg-config ncurses --libs)
+
+ aop: aop.c
+
diff --git a/games-arcade/aop/metadata.xml b/games-arcade/aop/metadata.xml
new file mode 100644
index 000000000000..d3c2cc926f0b
--- /dev/null
+++ b/games-arcade/aop/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+</pkgmetadata>
diff --git a/games-arcade/apricots/Manifest b/games-arcade/apricots/Manifest
new file mode 100644
index 000000000000..b61ec221d08b
--- /dev/null
+++ b/games-arcade/apricots/Manifest
@@ -0,0 +1 @@
+DIST apricots-0.2.6.tar.gz 768568 SHA256 9c408722abbb0cb925384f12a65fe4f6e2b3373d5ce5d0e5afe3aeb738b9cd8f SHA512 cf8a988d316382469e4b13a86315c760b702b3d490398cf2fe96f119ba743c1ff707c09228dbbf4eb601189fece708913a621b04c44e9d93162639ccbd502cf5 WHIRLPOOL e45b924f86494e16ea4340a292aabb624a0632801044250b082e6b449311b47a89c23386eb88c507053c3629af4ecb8db4bc4d7096887fa884d5395474f3e946
diff --git a/games-arcade/apricots/apricots-0.2.6-r1.ebuild b/games-arcade/apricots/apricots-0.2.6-r1.ebuild
new file mode 100644
index 000000000000..20093ee5eee1
--- /dev/null
+++ b/games-arcade/apricots/apricots-0.2.6-r1.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit autotools eutils games
+
+DESCRIPTION="Fly a plane around bomb/shoot the enemy. Port of Planegame from Amiga"
+HOMEPAGE="http://www.fishies.org.uk/apricots.html"
+SRC_URI="http://www.fishies.org.uk/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc ~sparc x86 ~x86-fbsd"
+IUSE=""
+
+DEPEND="media-libs/libsdl[sound,video]
+ media-libs/openal
+ media-libs/freealut"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-freealut.patch \
+ "${FILESDIR}"/${P}-ldflags.patch
+
+ cp admin/acinclude.m4.in acinclude.m4
+
+ sed -i \
+ -e 's:-DAP_PATH=\\\\\\"$prefix.*":-DAP_PATH=\\\\\\"${GAMES_DATADIR}/${PN}/\\\\\\"":' \
+ -e 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' \
+ configure.in || die
+ sed -i \
+ -e "s:filename(AP_PATH):filename(\"${GAMES_SYSCONFDIR}/${PN}/\"):" \
+ ${PN}/init.cpp || die
+ sed -i \
+ -e "s:apricots.cfg:${GAMES_SYSCONFDIR}/${PN}/apricots.cfg:" \
+ README apricots.html || die
+ sed -i \
+ -e 's/-Wmissing-prototypes//' \
+ acinclude.m4 || die
+ eautoreconf
+}
+
+src_compile() {
+ emake LIBTOOL="/usr/bin/libtool"
+}
+
+src_install() {
+ dodoc AUTHORS README TODO ChangeLog
+ dohtml apricots.html
+ cd ${PN}
+ dogamesbin apricots
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins *.wav *.psf *.shapes
+ insinto "${GAMES_SYSCONFDIR}"/${PN}
+ doins apricots.cfg
+ make_desktop_entry ${PN} Apricots
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ elog "You can change the game options by editing:"
+ elog "${GAMES_SYSCONFDIR}/${PN}/apricots.cfg"
+}
diff --git a/games-arcade/apricots/files/apricots-0.2.6-freealut.patch b/games-arcade/apricots/files/apricots-0.2.6-freealut.patch
new file mode 100644
index 000000000000..4f663071340a
--- /dev/null
+++ b/games-arcade/apricots/files/apricots-0.2.6-freealut.patch
@@ -0,0 +1,65 @@
+--- apricots/apricots.cpp
++++ apricots/apricots.cpp
+@@ -16,6 +16,7 @@
+ int main(int, char**){
+ #endif
+
++atexit(SDL_Quit);
+ // Initialize data
+ gamedata g;
+ init_data(g);
+
+--- apricots/sampleio.cpp
++++ apricots/sampleio.cpp
+@@ -74,12 +74,9 @@
+ alListenerfv(AL_ORIENTATION, front );
+
+ // Load in samples
+- ALvoid* data = malloc(5 * (512 * 3) * 1024);
+ alGenBuffers(numsamples, samples);
+
+ for (int i = 0; i < numsamples; i++){
+- ALsizei freq;
+- ALboolean fileok;
+ // Evil OpenAL portability fix done here
+ #ifdef _WIN32
+ ALenum format;
+@@ -87,15 +84,12 @@
+ alutLoadWAVFile(filenames[i],&format,&data,&filelen,&freq,&trash);
+ fileok = (alGetError() == AL_NO_ERROR);
+ #else
+- ALsizei format;
+- ALsizei trash;
+- fileok = alutLoadWAV(filenames[i],&data,&format,&filelen,&trash,&freq);
++ samples[i] = alutCreateBufferFromFile(filenames[i]);
+ #endif
+- if (!fileok){
++ if (samples[i] == AL_NONE){
+ cerr << "sampleio: could not open " << filenames[i] << endl;
+ exit(1);
+ }
+- alBufferData(samples[i], format, data, filelen, freq);
+ }
+
+ // Generate Sources
+@@ -107,7 +101,6 @@
+ alSourcefv(sources[j], AL_ORIENTATION, back );
+ }
+
+- free(data);
+
+ }
+
+
+--- configure.in
++++ configure.in
+@@ -100,7 +100,8 @@
+
+ dnl Check for OpenAL
+ AC_CHECK_HEADER(AL/al.h,[CXXFLAGS="$CXXFLAGS -DAP_AUDIO_OPENAL"])
+-AC_CHECK_LIB( openal, alutInit)
++AC_CHECK_LIB( openal, alGetError)
++AC_CHECK_LIB( alut, alutInit)
+
+ KDE_CHECK_EXTRA_LIBS
+ all_libraries="$all_libraries $USER_LDFLAGS"
diff --git a/games-arcade/apricots/files/apricots-0.2.6-ldflags.patch b/games-arcade/apricots/files/apricots-0.2.6-ldflags.patch
new file mode 100644
index 000000000000..5a2a34490b7e
--- /dev/null
+++ b/games-arcade/apricots/files/apricots-0.2.6-ldflags.patch
@@ -0,0 +1,20 @@
+--- apricots/Makefile.am.old 2010-10-11 15:58:18.000000000 +0200
++++ apricots/Makefile.am 2010-10-11 15:59:21.000000000 +0200
+@@ -4,7 +4,8 @@
+ ## INCLUDES were found outside kdevelop specific part
+
+ apricots_SOURCES = SDLfont.cpp shape.cpp setup.cpp sampleio.cpp init.cpp game.cpp finish.cpp fall.cpp drawall.cpp drak.cpp collide.cpp apricots.cpp all.cpp ai.cpp
+-apricots_LDADD =
++apricots_LDADD = $(all_libraries)
++
+
+ SUBDIRS = docs
+
+@@ -68,7 +69,3 @@
+ ####### kdevelop will overwrite this part!!! (end)############
+ # set the include path found by configure
+ INCLUDES= $(all_includes)
+-
+-# the library search path.
+-apricots_LDFLAGS = $(all_libraries)
+-
diff --git a/games-arcade/apricots/metadata.xml b/games-arcade/apricots/metadata.xml
new file mode 100644
index 000000000000..d3c2cc926f0b
--- /dev/null
+++ b/games-arcade/apricots/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+</pkgmetadata>
diff --git a/games-arcade/aquaria/Manifest b/games-arcade/aquaria/Manifest
new file mode 100644
index 000000000000..e6ce16cfe7e3
--- /dev/null
+++ b/games-arcade/aquaria/Manifest
@@ -0,0 +1 @@
+DIST aquaria-lnx-humble-bundle.mojo.run 209499691 SHA256 1001a5bbc66cd72e64963afbb3f866432ca1b6e880d9da969ebd5fd224202fdd
diff --git a/games-arcade/aquaria/aquaria-1.1.3-r1.ebuild b/games-arcade/aquaria/aquaria-1.1.3-r1.ebuild
new file mode 100644
index 000000000000..eee55b17b05f
--- /dev/null
+++ b/games-arcade/aquaria/aquaria-1.1.3-r1.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit unpacker eutils games
+
+DESCRIPTION="A 2D scroller set in a massive ocean world"
+HOMEPAGE="http://www.bit-blot.com/aquaria/"
+SRC_URI="aquaria-lnx-humble-bundle.mojo.run"
+
+LICENSE="all-rights-reserved"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE=""
+RESTRICT="strip fetch bindist"
+
+DEPEND="app-arch/unzip"
+RDEPEND="
+ >=media-libs/libsdl-1.2.15-r4[abi_x86_32(-)]
+ >=media-libs/openal-1.15.1[abi_x86_32(-)]"
+
+S=${WORKDIR}/data
+
+pkg_nofetch() {
+ echo
+ elog "Download ${SRC_URI} from ${HOMEPAGE} and place it in ${DISTDIR}"
+ echo
+}
+
+src_unpack() {
+ unpack_zip ${A}
+}
+
+src_install() {
+ local dir="${GAMES_PREFIX_OPT}/${PN}"
+
+ insinto "${dir}"
+ exeinto "${dir}"
+
+ doins -r *.xml */
+ doexe "${PN}"
+ doicon "${PN}.png"
+
+ dodoc README-linux.txt
+ mv "${ED}/${dir}"/docs "${ED}/usr/share/doc/${PF}/html" || die
+ dosym /usr/share/doc/${PF}/html "${dir}"/docs
+
+ games_make_wrapper "${PN}" "./${PN}" "${dir}"
+ make_desktop_entry "${PN}" "Aquaria"
+
+ prepgamesdirs
+}
diff --git a/games-arcade/aquaria/metadata.xml b/games-arcade/aquaria/metadata.xml
new file mode 100644
index 000000000000..d3c2cc926f0b
--- /dev/null
+++ b/games-arcade/aquaria/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+</pkgmetadata>
diff --git a/games-arcade/ascii-invaders/Manifest b/games-arcade/ascii-invaders/Manifest
new file mode 100644
index 000000000000..5d961e68402c
--- /dev/null
+++ b/games-arcade/ascii-invaders/Manifest
@@ -0,0 +1 @@
+DIST invaders0.1b.tgz 14597 SHA256 7ac51a5737da34b32de190683a3f73ea0b6bab4a5e81297a056036a796a92346
diff --git a/games-arcade/ascii-invaders/ascii-invaders-0.1b.ebuild b/games-arcade/ascii-invaders/ascii-invaders-0.1b.ebuild
new file mode 100644
index 000000000000..e3b3c1aaa99f
--- /dev/null
+++ b/games-arcade/ascii-invaders/ascii-invaders-0.1b.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit games
+
+DESCRIPTION="Space invaders clone, using ncurses library"
+HOMEPAGE="http://packages.gentoo.org/package/games-arcade/ascii-invaders"
+SRC_URI="mirror://gentoo/invaders${PV}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 ~mips ppc ppc64 sparc x86 ~x86-fbsd ~ppc-macos"
+IUSE=""
+
+RDEPEND="sys-libs/ncurses"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+S=${WORKDIR}/invaders
+
+src_prepare() {
+ rm -f Makefile
+}
+
+src_compile() {
+ emake LDLIBS="$(pkg-config ncurses --libs)" invaders
+}
+
+src_install() {
+ newgamesbin invaders ${PN}
+ dodoc TODO
+ prepgamesdirs
+}
diff --git a/games-arcade/ascii-invaders/metadata.xml b/games-arcade/ascii-invaders/metadata.xml
new file mode 100644
index 000000000000..f8b1597439de
--- /dev/null
+++ b/games-arcade/ascii-invaders/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+<longdescription>
+Ascii-Invaders is a clone of Space Invaders for text-terminals using the
+curses library. It compiles and runs on MacOS X, GNU/Linux and probably
+any other system with a curses implementation.
+</longdescription>
+</pkgmetadata>
diff --git a/games-arcade/asteroid/Manifest b/games-arcade/asteroid/Manifest
new file mode 100644
index 000000000000..1ed2f97214b7
--- /dev/null
+++ b/games-arcade/asteroid/Manifest
@@ -0,0 +1 @@
+DIST asteroid-1.1.tar.bz2 386177 SHA256 0619eb1797dd667f90ae48e070938e3d195758a522abf4bdda192fc1704fa0db SHA512 f3acae27a7c3296b6b9e9fc9aabf8c101cd020bfbf2065d2b4f5fabf14f7555c70b2e4543c2c661f0e4410b8128936eb1e0db930d7376c3a3bb3a898ce4ed4e4 WHIRLPOOL f1704078559bf1072d7f8bc3b2452942be004f0c13d82642ec0c821a4a5b6c294c87d419452abf6e2546260dad0df534fd2b49a7e41cc93cdcd184048cc1e5dd
diff --git a/games-arcade/asteroid/asteroid-1.1.ebuild b/games-arcade/asteroid/asteroid-1.1.ebuild
new file mode 100644
index 000000000000..5e951998fcee
--- /dev/null
+++ b/games-arcade/asteroid/asteroid-1.1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+inherit eutils games
+
+DESCRIPTION="A modern version of the arcade classic that uses OpenGL"
+HOMEPAGE="http://chaoslizard.sourceforge.net/asteroid/"
+SRC_URI="mirror://sourceforge/chaoslizard/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86 ~x86-fbsd"
+IUSE=""
+
+DEPEND="virtual/opengl
+ media-libs/freeglut
+ virtual/glu
+ media-libs/libsdl
+ media-libs/sdl-mixer"
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}"/${P}-include.patch )
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc asteroid-{authors,changes,readme}.txt
+ prepgamesdirs
+}
diff --git a/games-arcade/asteroid/files/asteroid-1.1-include.patch b/games-arcade/asteroid/files/asteroid-1.1-include.patch
new file mode 100644
index 000000000000..9eca5f83f2c8
--- /dev/null
+++ b/games-arcade/asteroid/files/asteroid-1.1-include.patch
@@ -0,0 +1,11 @@
+--- src/hiscore.c
++++ src/hiscore.c
+@@ -35,6 +35,8 @@
+
+ #include <stdio.h>
+ #include <ctype.h>
++#include <stdlib.h>
++#include <string.h>
+
+ #include "main.h"
+ #include "hiscore.h"
diff --git a/games-arcade/asteroid/metadata.xml b/games-arcade/asteroid/metadata.xml
new file mode 100644
index 000000000000..aa0fd15ec698
--- /dev/null
+++ b/games-arcade/asteroid/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>games</herd>
+ <upstream>
+ <remote-id type="sourceforge">chaoslizard</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-arcade/balloonchase/Manifest b/games-arcade/balloonchase/Manifest
new file mode 100644
index 000000000000..591a10553eeb
--- /dev/null
+++ b/games-arcade/balloonchase/Manifest
@@ -0,0 +1 @@
+DIST balloonchase-0.9.6.tar.bz2 523085 SHA256 6bf3e3db80a9b38941cace397232e33c8f00597e32c0036abbe927590d04d86c SHA512 ab5617713c96187564926fd5ecbdbf5186f78c23cfb43b26b28b9d18e71330efd77700cf7cd02e04be7fd8e33f2d30bf59f64954135ac82802d1d839dc2e7767 WHIRLPOOL 2033b329a5529d5f2d995de99f4848419d85c942eedbaee307000b797253b5c3b96cb043dc79130b2e736737ce5d074f5aa11d7ff0a09663838e13c829066505
diff --git a/games-arcade/balloonchase/balloonchase-0.9.6.ebuild b/games-arcade/balloonchase/balloonchase-0.9.6.ebuild
new file mode 100644
index 000000000000..cfc96f81a0cd
--- /dev/null
+++ b/games-arcade/balloonchase/balloonchase-0.9.6.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+inherit eutils toolchain-funcs games
+
+DESCRIPTION="Fly a hot air balloon and try to blow the other player out of the screen"
+HOMEPAGE="http://koti.mbnet.fi/makegho/c/bchase/"
+SRC_URI="http://koti.mbnet.fi/makegho/c/bchase/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ~sparc x86"
+IUSE=""
+
+DEPEND="media-libs/libsdl"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PV}-gentoo.patch
+ sed -i "s:g++:$(tc-getCXX):" Makefile || die "sed failed"
+ sed -i \
+ -e "s:GENTOODIR:${GAMES_DATADIR}/${PN}:" src/main.c \
+ || die 'sed failed'
+}
+
+src_install() {
+ dogamesbin ${PN}
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r images
+ newicon images/kp2b.bmp ${PN}.bmp
+ make_desktop_entry ${PN} "Balloon Chase" /usr/share/pixmaps/${PN}.bmp
+ dodoc README
+ prepgamesdirs
+}
diff --git a/games-arcade/balloonchase/files/0.9.6-gentoo.patch b/games-arcade/balloonchase/files/0.9.6-gentoo.patch
new file mode 100644
index 000000000000..55e978850bbe
--- /dev/null
+++ b/games-arcade/balloonchase/files/0.9.6-gentoo.patch
@@ -0,0 +1,183 @@
+--- Makefile
++++ Makefile
+@@ -1,4 +1,3 @@
+-LDFLAGS= -lSDL -lpthread -s
+ CFLAGS= -Wall # -DDEBUG
+ PKG_BCDIR=balloonchase-`cat src/ver`
+ PKG_BCVER=`cat src/ver`
+@@ -9,8 +8,8 @@
+ clean:
+ rm balloonchase src/*.o
+ main: src/main.c
+- g++ -c -o src/main.o `sdl-config --cflags` src/main.c
+- g++ -o balloonchase src/main.o `sdl-config --libs`
++ g++ $(CXXFLAGS) -c -o src/main.o `sdl-config --cflags` src/main.c
++ g++ $(LDFLAGS) -o balloonchase src/main.o `sdl-config --libs`
+ pkg:
+ @echo $(PKG_BCVERSION) >VERSION
+ rm balloonchase src/*.o
+--- src/main.c
++++ src/main.c
+@@ -333,47 +333,47 @@
+
+ int InitImages()
+ {
+- back = SDL_LoadBMP("images/back.bmp");
++ back = SDL_LoadBMP("GENTOODIR/images/back.bmp");
+
+- num3 = SDL_LoadBMP("images/num3.bmp");
++ num3 = SDL_LoadBMP("GENTOODIR/images/num3.bmp");
+ SDL_SetColorKey(num3, SDL_SRCCOLORKEY, SDL_MapRGB(num3->format, 0xFF, 0xFF, 0xFF));
+- num2 = SDL_LoadBMP("images/num2.bmp");
++ num2 = SDL_LoadBMP("GENTOODIR/images/num2.bmp");
+ SDL_SetColorKey(num2, SDL_SRCCOLORKEY, SDL_MapRGB(num2->format, 0xFF, 0xFF, 0xFF));
+- num1 = SDL_LoadBMP("images/num1.bmp");
++ num1 = SDL_LoadBMP("GENTOODIR/images/num1.bmp");
+ SDL_SetColorKey(num1, SDL_SRCCOLORKEY, SDL_MapRGB(num1->format, 0xFF, 0xFF, 0xFF));
+- num0 = SDL_LoadBMP("images/num0.bmp");
++ num0 = SDL_LoadBMP("GENTOODIR/images/num0.bmp");
+ SDL_SetColorKey(num0, SDL_SRCCOLORKEY, SDL_MapRGB(num0->format, 0xFF, 0xFF, 0xFF));
+- numv = SDL_LoadBMP("images/num-.bmp");
++ numv = SDL_LoadBMP("GENTOODIR/images/num-.bmp");
+ SDL_SetColorKey(numv, SDL_SRCCOLORKEY, SDL_MapRGB(numv->format, 0xFF, 0xFF, 0xFF));
+
+- menu = SDL_LoadBMP("images/menu.bmp");
+- menu_onoff = SDL_LoadBMP("images/menu_onoff.bmp");
++ menu = SDL_LoadBMP("GENTOODIR/images/menu.bmp");
++ menu_onoff = SDL_LoadBMP("GENTOODIR/images/menu_onoff.bmp");
+
+
+-// arrow[0] = SDL_LoadBMP("images/down.bmp");
++// arrow[0] = SDL_LoadBMP("GENTOODIR/images/down.bmp");
+ // SDL_SetColorKey(arrow[0], SDL_SRCCOLORKEY, SDL_MapRGB(arrow[0]->format, 0x00, 0x00, 0x00));
+-// arrow[1] = SDL_LoadBMP("images/down.bmp");
++// arrow[1] = SDL_LoadBMP("GENTOODIR/images/down.bmp");
+ // SDL_SetColorKey(arrow[1], SDL_SRCCOLORKEY, SDL_MapRGB(arrow[1]->format, 0x00, 0x00, 0x00));
+
+- kp1 = SDL_LoadBMP("images/kp1.bmp");
++ kp1 = SDL_LoadBMP("GENTOODIR/images/kp1.bmp");
+ SDL_SetColorKey(kp1, SDL_SRCCOLORKEY, SDL_MapRGB(kp1->format, 0xFF, 0xFF, 0xFF));
+- kp1b = SDL_LoadBMP("images/kp1b.bmp");
++ kp1b = SDL_LoadBMP("GENTOODIR/images/kp1b.bmp");
+ SDL_SetColorKey(kp1b, SDL_SRCCOLORKEY, SDL_MapRGB(kp1b->format, 0xFF, 0xFF, 0xFF));
+
+- kp2 = SDL_LoadBMP("images/kp2.bmp");
++ kp2 = SDL_LoadBMP("GENTOODIR/images/kp2.bmp");
+ SDL_SetColorKey(kp2, SDL_SRCCOLORKEY, SDL_MapRGB(kp2->format, 0xFF, 0xFF, 0xFF));
+- kp2b = SDL_LoadBMP("images/kp2b.bmp");
++ kp2b = SDL_LoadBMP("GENTOODIR/images/kp2b.bmp");
+ SDL_SetColorKey(kp2b, SDL_SRCCOLORKEY, SDL_MapRGB(kp2b->format, 0xFF, 0xFF, 0xFF));
+
+- font2 = SDL_LoadBMP("images/font.bmp");
++ font2 = SDL_LoadBMP("GENTOODIR/images/font.bmp");
+ font = SDL_CreateRGBSurface(SDL_SWSURFACE, 1288, 100, 32, 0xFF000000, 0x00FF0000, 0x0000FF00, 0x000000FF);
+ SDL_SetColorKey(font, SDL_SRCCOLORKEY, SDL_MapRGB(font->format, 0x00, 0x00, 0x00));
+ DrawIMG (font, font2, 0, 0);
+
+- blobtrox = SDL_LoadBMP("images/blobtrox.bmp");
++ blobtrox = SDL_LoadBMP("GENTOODIR/images/blobtrox.bmp");
+ //SDL_SetColorKey(blobtrox, SDL_SRCCOLORKEY, SDL_MapRGB(blobtrox->format, 0x01, 0x01, 0x01));
+
+- balloonchase = SDL_LoadBMP("images/balloonchase.bmp");
++ balloonchase = SDL_LoadBMP("GENTOODIR/images/balloonchase.bmp");
+
+ TMP = SDL_CreateRGBSurface(SDL_SWSURFACE, 259, 200, 32, 0xFF000000, 0x00FF0000, 0x0000FF00, 0x000000FF);
+ blursurface = SDL_CreateRGBSurface(SDL_SWSURFACE, 640, 480, 32, 0x00000000, 0x00000000, 0x00000000, 0x00000000);
+@@ -578,7 +578,7 @@
+
+ void createdat(int winsneed, int option_wave_effect)
+ {
+- FILE *OPTFILE=fopen ("balloonchase.dat", "w+");
++ FILE *OPTFILE=fopen (".balloonchaserc", "w+");
+ char datmsg[60];
+ sprintf (datmsg, "Balloon Chase settings file -- Do not edit manually!");
+ char tmp2;
+@@ -588,52 +588,32 @@
+ }
+ fputc (winsneed, OPTFILE);
+ fputc (option_wave_effect+2, OPTFILE);
+- fprintf (stderr, "Saved configuration to balloonchase.dat\n");
++ fprintf (stderr, "Saved configuration to .balloonchaserc\n");
+ fclose (OPTFILE);
+ }
+
+ void checkfiles()
+ {
+- char found=0;
+- #ifdef WIN32
+- WIN32_FIND_DATA fileinfo;
+- BOOL rc = 0;
+- HANDLE hFile;
+- hFile = FindFirstFile("*", &fileinfo);
+- while(rc)
+- {
+- rc = FindNextFile(hFile, &fileinfo);
+- if (strcmp (fileinfo.cFileName, "balloonchase.dat")==0)
+- {
+- fprintf(stderr, "Found balloonchase.dat\n");
+- found = 1;
+- _findclose(hFile);
+- #endif
+- #ifndef WIN32
+- struct dirent *filelist[255];
+- int i=0;
+- int j=0;
+ DIR *dp;
+- dp=opendir("./");
+- int filenum=0;
+- while( filelist[filenum]=readdir(dp) )
+- filenum++;
+- closedir(dp);
+- if (filenum>=2)
+- for (i=0;i<filenum;i++)
+- {
+- if (strcmp(filelist[i]->d_name,"balloonchase.dat")==0)
+- {
+- fprintf (stderr, "Found balloonchase.dat\n");
+- found=1;
+- }
++
++ if (getenv("HOME")) {
++ chdir(getenv("HOME"));
++ }
++ if ((dp = opendir("./"))) {
++ struct dirent *f;
++
++ while(f=readdir(dp)) {
++ if (strcmp(f->d_name, ".balloonchaserc") == 0) {
++ fprintf (stderr, "Found .balloonchaserc\n");
++ closedir(dp);
++ return;
+ }
+- #endif
+- if (found==0)
+- {
+- fprintf (stderr, "Balloonchase.dat not found!\nCreating new...\n");
+- if (found==0) createdat(2, 1);
+ }
++ closedir(dp);
++ fprintf (stderr,
++ "Balloonchase.dat not found!\nCreating new...\n");
++ createdat(2, 1);
++ }
+ }
+
+ Uint32 rgb(Uint8 r, Uint8 g, Uint8 b)
+@@ -1257,7 +1237,7 @@
+ SDL_WM_SetCaption ("Balloon Chase", 0);
+ checkfiles();
+
+- FILE *OPTFILE=fopen ("balloonchase.dat", "r");
++ FILE *OPTFILE=fopen (".balloonchaserc", "r");
+ char datmsg[60];
+ char varmistus[60];
+
+@@ -1275,7 +1255,7 @@
+ {
+ winsneeded=fgetc(OPTFILE);
+ option_wave_effect=fgetc(OPTFILE)-2;
+- fprintf (stderr, "Successfully loaded balloonchase.dat\n");
++ fprintf (stderr, "Successfully loaded .balloonchaserc\n");
+ }
+ else
+ {
diff --git a/games-arcade/balloonchase/metadata.xml b/games-arcade/balloonchase/metadata.xml
new file mode 100644
index 000000000000..d3c2cc926f0b
--- /dev/null
+++ b/games-arcade/balloonchase/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+</pkgmetadata>
diff --git a/games-arcade/barbarian-bin/Manifest b/games-arcade/barbarian-bin/Manifest
new file mode 100644
index 000000000000..1670f0c41cb2
--- /dev/null
+++ b/games-arcade/barbarian-bin/Manifest
@@ -0,0 +1 @@
+DIST barbarian101_linux.zip 925199 SHA256 0a559b2d930b9ceb54f32e5e1adc5be176290c025a2228d3372fa5bf413322c6 SHA512 9b46c75666359ed5102a89d29e8b6afacf07ccfa6175f6df27b5acc48b0e0119106f1c1376b124ff761d373bf04145e804659b81503b2834ba09ac05fad5c4f4 WHIRLPOOL a1e42954e52e1b26ad85b928ee92a9a137f982b194b5d0d71066be0428097b721d2d38bb78767edf5ecfaf4962046f38ff1a24f85fdf7ef4edd9f977e5f79562
diff --git a/games-arcade/barbarian-bin/barbarian-bin-1.01-r1.ebuild b/games-arcade/barbarian-bin/barbarian-bin-1.01-r1.ebuild
new file mode 100644
index 000000000000..4b648b4a7570
--- /dev/null
+++ b/games-arcade/barbarian-bin/barbarian-bin-1.01-r1.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils games
+
+MY_PN=${PN/-bin/}
+DESCRIPTION="Save Princess Mariana through one-on-one battles with demonic barbarians"
+HOMEPAGE="http://www.tdbsoft.com/"
+SRC_URI="http://www.pcpages.com/tomberrr/downloads/${MY_PN}${PV/./}_linux.zip"
+
+LICENSE="CC-BY-NC-ND-2.0"
+SLOT="0"
+KEYWORDS="-* amd64 x86"
+RESTRICT="strip"
+IUSE=""
+
+DEPEND="app-arch/unzip"
+RDEPEND="sys-libs/libstdc++-v3:5
+ amd64? ( sys-libs/libstdc++-v3:5[multilib] )
+ >=media-libs/libsdl-1.2.15-r4[abi_x86_32(-)]"
+
+game_dest="${GAMES_PREFIX_OPT}/${MY_PN}"
+QA_PREBUILT="${game_dest:1}/Barbarian"
+
+S=${WORKDIR}
+
+src_install() {
+ dodir "${game_dest}"
+ cp -r gfx sounds "${D}${game_dest}/" || die
+
+ exeinto "${game_dest}"
+ doexe Barbarian
+
+ dohtml Barbarian.html
+
+ games_make_wrapper barbarian ./Barbarian "${game_dest}"
+
+ # High-score file
+ dodir "${GAMES_STATEDIR}"
+ touch "${D}${GAMES_STATEDIR}/heroes.hoh"
+ fperms 660 "${GAMES_STATEDIR}/heroes.hoh"
+ dosym "${GAMES_STATEDIR}/heroes.hoh" "${game_dest}/heroes.hoh"
+ newicon gfx/sprites/player_attack_2_1.bmp barbarian.bmp
+ make_desktop_entry barbarian "Barbarian" /usr/share/pixmaps/barbarian.bmp
+ prepgamesdirs
+}
diff --git a/games-arcade/barbarian-bin/metadata.xml b/games-arcade/barbarian-bin/metadata.xml
new file mode 100644
index 000000000000..d3c2cc926f0b
--- /dev/null
+++ b/games-arcade/barbarian-bin/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+</pkgmetadata>
diff --git a/games-arcade/batrachians/Manifest b/games-arcade/batrachians/Manifest
new file mode 100644
index 000000000000..ad7555a6cb6a
--- /dev/null
+++ b/games-arcade/batrachians/Manifest
@@ -0,0 +1 @@
+DIST batrachians-0.1.6.tar.gz 198088 SHA256 6511a939e9b3e0c5d0683f2a33389e6da9ff4d9c15e1d27ebcc4e2ba55868e18 SHA512 d3022712627061f9828e1f3baa7207053884f1f4c0348768d4ac073673ff1bcf14c95cedf01031b8bd36a6b684bf239af0f381df41aa18d49218320a8bea3b68 WHIRLPOOL 100d31b7153575507fb88e1e97b9df2606158391d2dba1e8ba7bfc549eda778f82c026be6352495784a4cb016261db52e1ac0854afc0463afc32e22bbef2e70f
diff --git a/games-arcade/batrachians/batrachians-0.1.6.ebuild b/games-arcade/batrachians/batrachians-0.1.6.ebuild
new file mode 100644
index 000000000000..dfafd81f0f4a
--- /dev/null
+++ b/games-arcade/batrachians/batrachians-0.1.6.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit autotools eutils gnome2-utils games
+
+DESCRIPTION="A fly-eating frog video game"
+HOMEPAGE="http://perso.b2b2c.ca/sarrazip/dev/batrachians.html"
+SRC_URI="http://perso.b2b2c.ca/sarrazip/dev/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND=">=dev-games/flatzebra-0.1.5"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-makefile.patch
+ eautoreconf
+}
+
+src_install() {
+ emake -C src DESTDIR="${D}" install
+ doman doc/${PN}.6
+ dodoc AUTHORS NEWS README THANKS
+ prepgamesdirs
+}
+
+pkg_preinst() {
+ games_pkg_preinst
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/games-arcade/batrachians/files/batrachians-0.1.6-makefile.patch b/games-arcade/batrachians/files/batrachians-0.1.6-makefile.patch
new file mode 100644
index 000000000000..f01fdfb0da8d
--- /dev/null
+++ b/games-arcade/batrachians/files/batrachians-0.1.6-makefile.patch
@@ -0,0 +1,35 @@
+diff -ru batrachians-0.1.6.orig/src/Makefile.am batrachians-0.1.6/src/Makefile.am
+--- batrachians-0.1.6.orig/src/Makefile.am 2011-04-18 21:25:53.000000000 -0400
++++ batrachians-0.1.6/src/Makefile.am 2014-10-27 23:19:58.292260669 -0400
+@@ -20,7 +20,7 @@
+ -DPACKAGE_FULL_NAME_EN=\"$(PACKAGE_FULL_NAME_EN)\" \
+ -DPKGSOUNDDIR=\"$(pkgsounddir)\"
+
+-pkgsounddir = $(datadir)/sounds/$(PACKAGE)
++pkgsounddir = $(datadir)/$(PACKAGE)/sounds
+ pkgsound_DATA = \
+ sounds/game-starts.wav \
+ sounds/game-ends.wav \
+@@ -29,18 +29,18 @@
+ sounds/frog-jumps.wav \
+ sounds/tongue-out.wav
+
+-desktopentrydir = $(datadir)/applications
++desktopentrydir =/usr/share/applications
+ desktopentry_DATA = $(PACKAGE).desktop
+
+-pixmapdir = $(datadir)/pixmaps
++pixmapdir =/usr/share/icons/hicolor/48x48/apps/
+ pixmap_DATA = images/$(PACKAGE).png
+
+
+ check: all
+ if HAVE_GETOPT_LONG
+ test "`./$(PACKAGE) --version`" = "$(PACKAGE) $(VERSION)"
+- ./$(PACKAGE) --version >& /dev/null
+- ./$(PACKAGE) --help >& /dev/null
++ ./$(PACKAGE) --version > /dev/null 2>&1
++ ./$(PACKAGE) --help > /dev/null 2>&1
+ endif
+
+
diff --git a/games-arcade/batrachians/metadata.xml b/games-arcade/batrachians/metadata.xml
new file mode 100644
index 000000000000..112b2c3dc17e
--- /dev/null
+++ b/games-arcade/batrachians/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+<longdescription lang="en">
+Afternoon Stalker, a clone of the 1981 Night Stalker video game by Mattel
+Electronics.
+</longdescription>
+</pkgmetadata>
diff --git a/games-arcade/berusky/Manifest b/games-arcade/berusky/Manifest
new file mode 100644
index 000000000000..158f1941be35
--- /dev/null
+++ b/games-arcade/berusky/Manifest
@@ -0,0 +1,3 @@
+DIST berusky-1.7.1.tar.gz 483794 SHA256 8382218ae37669e457fd552bf4690ad3b2b91d8a52701655a457e191d3da4e74 SHA512 0b0c4d736bfd9b0b62accf11d932271e355cbcbf911e35adb0ccd0bb1b45e06c392d60830bddef04a24689ccfcee7302f2653f6357474ccceba4fd66c44d4383 WHIRLPOOL 7fb845b391512218d2d0fb05f56ea7ad6890e33f1b5c3d025417202b455f96bcff93ef05db962864f374bbc39eb9f9941955af161130324823141e7dfc70118a
+DIST berusky-data-1.7.tar.gz 5366663 SHA256 be6d99f40d65341b32b381c004f32885e3dc114b76a95efbc4c5057ea524401e SHA512 1ccae352b8033df0dd8fe6f09b1daa83b0e25a67999d41a0f21019014620825551a4e22827f96bc28ccdf0958df85c9f3cfd2e8f1e83dd7edac5b0479413d438 WHIRLPOOL 492f5707b5675679c5d8dd42d55835c36c31a5dcab6ade5e40a127f1957268a4a1231d9f68b330e09206cc3ff6987369d8e867f201c82b7278beaec1ef3e07d5
+DIST berusky.png 1714 SHA256 47c8a35366b144f86520e9b52eed372a5c8a3b576f69b45f75d65b2f8937a519 SHA512 a8a5f7f8dca8d686bc05239adda10673e937361514b1aea07dc9fe66f2e009ae7c20b75ab63fd4db8ed206026a009d8620af3471bbb966b5e9b576ce89f66e54 WHIRLPOOL 8ddee6fbcec079a5d47070f8a0d7fd153bb895e993b8fe8023aac412cfb441f53d88db27ec40c254a0cd9d6950e1d9e4d281008382238de5b0cdbd564b1edc39
diff --git a/games-arcade/berusky/berusky-1.7.1.ebuild b/games-arcade/berusky/berusky-1.7.1.ebuild
new file mode 100644
index 000000000000..ab7f99aef548
--- /dev/null
+++ b/games-arcade/berusky/berusky-1.7.1.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit autotools eutils gnome2-utils games
+
+DATAFILE=${PN}-data-1.7
+DESCRIPTION="free logic game based on an ancient puzzle named Sokoban"
+HOMEPAGE="http://anakreon.cz/?q=node/1"
+SRC_URI="http://www.anakreon.cz/download/${P}.tar.gz
+ http://www.anakreon.cz/download/${DATAFILE}.tar.gz
+ http://dev.gentoo.org/~hasufell/distfiles/${PN}.png"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND="media-libs/libsdl[X,video]
+ media-libs/sdl-image[png]
+ x11-libs/gtk+:2"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ mv ../${DATAFILE}/{berusky.ini,GameData,Graphics,Levels} . || die
+ epatch "${FILESDIR}"/${P}-gentoo.patch
+ sed -i \
+ -e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}/${PN}:" \
+ -e "s:@GENTOO_BINDIR@:${GAMES_BINDIR}:" \
+ src/defines.h berusky.ini \
+ || die
+ sed -i \
+ -e "/AC_INIT/s/configure.in/${PN}, ${PV}/" \
+ configure.in || die
+ mv configure.in configure.ac || die
+ eautoreconf
+}
+
+src_install() {
+ default
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r berusky.ini GameData Graphics Levels
+ doicon -s 32 "${DISTDIR}"/${PN}.png
+ make_desktop_entry ${PN}
+ prepgamesdirs
+}
+
+pkg_preinst() {
+ games_pkg_preinst
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/games-arcade/berusky/files/berusky-1.7.1-gentoo.patch b/games-arcade/berusky/files/berusky-1.7.1-gentoo.patch
new file mode 100644
index 000000000000..f26c233c39e0
--- /dev/null
+++ b/games-arcade/berusky/files/berusky-1.7.1-gentoo.patch
@@ -0,0 +1,71 @@
+--- Makefile.am
++++ Makefile.am
+@@ -5,8 +5,7 @@
+
+ SUBDIRS = po src data
+
+-beruskydocdir = ${prefix}/doc/berusky
+-beruskydoc_DATA = \
++EXTRA_DIST = \
+ README\
+ COPYING\
+ AUTHORS\
+@@ -15,10 +14,6 @@
+ NEWS\
+ TODO
+
+-EXTRA_DIST = $(beruskydoc_DATA)
+-
+-
+-
+ # Copy all the spec files. Of cource, only one is actually used.
+ dist-hook:
+ for specfile in *.spec; do \
+--- data/Makefile.am
++++ data/Makefile.am
+@@ -3,10 +3,3 @@
+ ## Created by Anjuta - will be overwritten
+ ## If you don't want it to overwrite it,
+ ## Please disable it in the Anjuta project configuration
+-
+-berusky_datadir = $(prefix)/@NO_PREFIX_PACKAGE_DATA_DIR@/@PACKAGE@
+-
+-berusky_data_DATA = \
+- berusky.ini
+-
+-EXTRA_DIST = $(berusky_data_DATA)
+--- berusky.ini
++++ berusky.ini
+@@ -1,9 +1,9 @@
+ # Configuration for berusky game
+
+ # Game data location
+-level_data = /usr/share/berusky/Levels
+-game_data = /usr/share/berusky/GameData
+-graphics_data = /usr/share/berusky/Graphics
++level_data = @GENTOO_DATADIR@/Levels
++game_data = @GENTOO_DATADIR@/GameData
++graphics_data = @GENTOO_DATADIR@/Graphics
+
+ # Graphics settings for game and editor
+ # game runs in 640x480
+@@ -17,7 +17,7 @@
+
+ # Game binary & tmp dir
+ # they're used by editor for "run level" command
+-game_binary = /usr/bin/berusky
++game_binary = @GENTOO_BINDIR@/berusky
+ tmp_data = /var/tmp
+
+ # Dir for users levels (it's the default level dir for level editor)
+--- src/defines.h
++++ src/defines.h
+@@ -446,7 +446,7 @@
+ #define INI_USER_DIRECTORY "~/.berusky"
+ #define INI_USER_LEVELS "~/.berusky/User"
+ #define INI_USER_PROFILES "~/.berusky/Profiles"
+-#define INI_FILE_GLOBAL "/var/games/berusky/"INI_FILE_NAME
++#define INI_FILE_GLOBAL "@GENTOO_DATADIR@/"INI_FILE_NAME
+ #define INI_FILE_USER "~/.berusky/"INI_FILE_NAME
+ #define INI_FILE_LOCAL "./"INI_FILE_NAME
+ #elif WINDOWS
diff --git a/games-arcade/berusky/metadata.xml b/games-arcade/berusky/metadata.xml
new file mode 100644
index 000000000000..2dc670913f47
--- /dev/null
+++ b/games-arcade/berusky/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+<longdescription lang="en">
+Berusky is a free logic game, published under GNU Public License and it's based
+on an ancient puzzle named Sokoban.
+
+An old idea of moving boxes in a maze has been expanded with new logic items
+such as explosives, stones, special gates and so on. In addition, up to five
+bugs can cooperate and be controlled by the player.
+
+In order to leave each level (there's about 120 levels in the game) it is
+necessary to own five keys and also to have a free way to the exit.
+</longdescription>
+</pkgmetadata>
diff --git a/games-arcade/betna/Manifest b/games-arcade/betna/Manifest
new file mode 100644
index 000000000000..f9f2408d49df
--- /dev/null
+++ b/games-arcade/betna/Manifest
@@ -0,0 +1 @@
+DIST betna-0.9.7.tgz 684723 SHA256 312267ab2f727e91343673b832d243c9d8a16a744d1d104c4bbe8502268beff4 SHA512 01a979b3bd5adf1581293db8a066a4db1b4818f5986d8954d0da5d1e1eb394201c2affcee8c679b7cd23b4d255f718619dc00183b59fe7be280f18db0c0548d5 WHIRLPOOL b4ff9b2c3890775460e6f35fee3436d587884088d1ee4267ec0f44b92d68f6703c3bc2c175aad1ba56f656069033f8ec3346dafd86bc73bfc8f92a81a1e03ac6
diff --git a/games-arcade/betna/betna-0.9.7.ebuild b/games-arcade/betna/betna-0.9.7.ebuild
new file mode 100644
index 000000000000..d34055d8f8ff
--- /dev/null
+++ b/games-arcade/betna/betna-0.9.7.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+inherit eutils games
+
+DESCRIPTION="Defend your volcano from the attacking ants by firing rocks/bullets at them"
+HOMEPAGE="http://koti.mbnet.fi/makegho/c/betna/"
+SRC_URI="http://koti.mbnet.fi/makegho/c/betna/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ~sparc x86 ~x86-fbsd"
+IUSE=""
+
+DEPEND="media-libs/libsdl[video]"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ sed -i \
+ -e '/blobprintf.*char msg/s/char msg/const char msg/' \
+ -e "s:images/:${GAMES_DATADIR}/${PN}/:" \
+ src/main.cpp || die
+
+ sed -i \
+ -e '/^LDFLAGS/d' \
+ -e '/--libs/s/-o/$(LDFLAGS) -o/' \
+ -e 's:-O2:$(CXXFLAGS):g' \
+ -e 's/g++/$(CXX)/' \
+ Makefile || die
+}
+
+src_compile() {
+ emake clean
+ emake
+}
+
+src_install() {
+ dogamesbin betna
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins images/*
+ newicon images/target.bmp ${PN}.bmp
+ make_desktop_entry ${PN} Betna /usr/share/pixmaps/${PN}.bmp
+ dodoc README Q\&A
+ prepgamesdirs
+}
diff --git a/games-arcade/betna/metadata.xml b/games-arcade/betna/metadata.xml
new file mode 100644
index 000000000000..d3c2cc926f0b
--- /dev/null
+++ b/games-arcade/betna/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+</pkgmetadata>
diff --git a/games-arcade/blobby/Manifest b/games-arcade/blobby/Manifest
new file mode 100644
index 000000000000..6ddf0d43217a
--- /dev/null
+++ b/games-arcade/blobby/Manifest
@@ -0,0 +1 @@
+DIST blobby2-linux-0.9c.tar.gz 2290384 SHA256 e3ed8f92c70e16d24f109b6f0f4dccc25656a88780eb1a348d1223edcb7fc937 SHA512 741eed708f6688af179e19cecc17cb1e0cdbd6a9e2680fbfd8093ca171c0593474ec1bd11c1704e6e275ae8693c72c8f2f93fdc9ec7863dcda5999a76b0002e2 WHIRLPOOL 04e5b7786290cd43abcfd25099c9dd338a4405e5fd8c796c366b6a8e456bbcc2930a906a8a4c6cb796aacf9f4716f3913b70f7ccdc35b025c0e924a30ccc4f63
diff --git a/games-arcade/blobby/blobby-0.9c.ebuild b/games-arcade/blobby/blobby-0.9c.ebuild
new file mode 100644
index 000000000000..4128a0d5f763
--- /dev/null
+++ b/games-arcade/blobby/blobby-0.9c.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+inherit cmake-utils eutils games
+
+DESCRIPTION="A beach ball game with blobs of goo"
+HOMEPAGE="http://sourceforge.net/projects/blobby/"
+SRC_URI="mirror://sourceforge/${PN}/${PN}2-linux-${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND=">=dev-games/physfs-2[zip]
+ media-libs/libsdl[sound,joystick,opengl,video,X]
+ virtual/opengl"
+DEPEND="${RDEPEND}
+ dev-libs/boost
+ virtual/pkgconfig
+ app-arch/zip" #406667
+
+S=${WORKDIR}/${PN}-beta-${PV}
+
+src_prepare() {
+ sed -i -e "s:share/${PN}:${GAMES_DATADIR}/${PN}:" data/CMakeLists.txt || die
+ sed -i -e "s:share/${PN}:${GAMES_DATADIR/\/usr\/}/${PN}:" src/main.cpp || die
+ sed -i -e "/DESTINATION/s:bin:${GAMES_BINDIR}:" src/CMakeLists.txt || die
+ epatch "${FILESDIR}"/${P}-gcc47.patch
+}
+
+src_configure() {
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+}
+
+src_install() {
+ DOCS="AUTHORS ChangeLog README TODO" cmake-utils_src_install
+
+ newicon data/Icon.bmp ${PN}.bmp
+ make_desktop_entry ${PN} "Blobby Volley" /usr/share/pixmaps/${PN}.bmp
+
+ prepgamesdirs
+}
diff --git a/games-arcade/blobby/files/blobby-0.9c-gcc47.patch b/games-arcade/blobby/files/blobby-0.9c-gcc47.patch
new file mode 100644
index 000000000000..be873b7af0d1
--- /dev/null
+++ b/games-arcade/blobby/files/blobby-0.9c-gcc47.patch
@@ -0,0 +1,66 @@
+--- src/raknet/BinarySearchTree.h.old 2012-06-21 09:09:08.389412319 +0200
++++ src/raknet/BinarySearchTree.h 2012-06-21 09:10:39.830991876 +0200
+@@ -338,12 +338,12 @@
+ if ( current->left == 0 )
+ left_height = 0;
+ else
+- left_height = height( current->left );
++ left_height = this->height( current->left );
+
+ if ( current->right == 0 )
+ right_height = 0;
+ else
+- right_height = height( current->right );
++ right_height = this->height( current->right );
+
+ if ( right_height - left_height == 2 )
+ {
+@@ -371,7 +371,7 @@
+ if ( current == this->root )
+ break;
+
+- current = find_parent( *( current->item ) );
++ current = this->find_parent( *( current->item ) );
+
+ }
+ }
+@@ -400,7 +400,7 @@
+ if ( A == 0 )
+ return false;
+
+- return height( A->right ) > height( A->left );
++ return this->height( A->right ) > this->height( A->left );
+ }
+
+ template <class BinarySearchTreeType>
+@@ -409,7 +409,7 @@
+ if ( A == 0 )
+ return false;
+
+- return height( A->left ) > height( A->right );
++ return this->height( A->left ) > this->height( A->right );
+ }
+
+ template <class BinarySearchTreeType>
+@@ -446,8 +446,8 @@
+
+ */
+
+- B = find_parent( *( C->item ) );
+- A = find_parent( *( B->item ) );
++ B = this->find_parent( *( C->item ) );
++ A = this->find_parent( *( B->item ) );
+ D = C->right;
+
+ if ( A )
+@@ -510,8 +510,8 @@
+
+ */
+
+- B = find_parent( *( C->item ) );
+- A = find_parent( *( B->item ) );
++ B = this->find_parent( *( C->item ) );
++ A = this->find_parent( *( B->item ) );
+ D = C->left;
+
+ if ( A )
diff --git a/games-arcade/blobby/metadata.xml b/games-arcade/blobby/metadata.xml
new file mode 100644
index 000000000000..54fc8e0db93d
--- /dev/null
+++ b/games-arcade/blobby/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>games</herd>
+ <upstream>
+ <remote-id type="sourceforge">blobby</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-arcade/bloboats/Manifest b/games-arcade/bloboats/Manifest
new file mode 100644
index 000000000000..fd490b075606
--- /dev/null
+++ b/games-arcade/bloboats/Manifest
@@ -0,0 +1 @@
+DIST bloboats-1.0.2.tar.gz 7592902 SHA256 4aa5cbba7bae4471daefc6ba058cf6a84c62a4c06cd104a525f9ea1108787ccd SHA512 456339557270440ed4efc5b5cc217c1d1f967ba8ea630f5d9557afe4f4a6cafed749a38596bec0c5daec60cb87e9e8cf72c3a73c604e7777b804d07ff352f1c2 WHIRLPOOL a137be75f50045d34c66e1f14e10c59d8b1109813fa0a48f14e6232b6c8065be59bbbe8b52cc70b1b5b9b9a5c1745736cad452b386f3cfb64e6a99e0d1be5489
diff --git a/games-arcade/bloboats/bloboats-1.0.2.ebuild b/games-arcade/bloboats/bloboats-1.0.2.ebuild
new file mode 100644
index 000000000000..024b65e42a71
--- /dev/null
+++ b/games-arcade/bloboats/bloboats-1.0.2.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="arcade-like boat racing game combining platform jumpers and elastomania / x-moto like games"
+HOMEPAGE="http://bloboats.dy.fi/"
+SRC_URI="http://mirror.kapsi.fi/bloboats.dy.fi/${P}.tar.gz"
+
+LICENSE="GPL-2 CC-Sampling-Plus-1.0"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="media-libs/libsdl[opengl,video]
+ media-libs/sdl-mixer[vorbis]
+ media-libs/sdl-image[png]
+ media-libs/sdl-net
+ virtual/opengl
+ virtual/glu
+ media-libs/libvorbis"
+REDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-warnings.patch
+ sed -i \
+ -e "/PREFIX/s://:${D}:" \
+ -e "/DATADIR/s:/usr/games/bloboats/data:${GAMES_DATADIR}/${PN}:" \
+ -e "/BINARYDIR/s:/usr/bin:${GAMES_BINDIR}:" \
+ -e "/CONFIGDIR/s:/etc:${GAMES_SYSCONFDIR}:" \
+ -e "/CXXFLAGS_DEFAULT/s:-O2:${CXXFLAGS} \$(LDFLAGS):" \
+ -e "/^CXX[ _]/d" \
+ -e '/STRIP/d' \
+ Makefile || die
+}
+
+src_install() {
+ dogamesbin bin/bloboats
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r data/*
+ insinto "$GAMES_SYSCONFDIR"
+ doins bloboats.dirs
+ dodoc readme.txt
+ prepgamesdirs
+}
diff --git a/games-arcade/bloboats/files/bloboats-1.0.2-warnings.patch b/games-arcade/bloboats/files/bloboats-1.0.2-warnings.patch
new file mode 100644
index 000000000000..d05f2dd9bdc1
--- /dev/null
+++ b/games-arcade/bloboats/files/bloboats-1.0.2-warnings.patch
@@ -0,0 +1,24 @@
+diff -ru bloboats-1.0.2.orig/src/menu.cpp bloboats-1.0.2/src/menu.cpp
+--- bloboats-1.0.2.orig/src/menu.cpp 2010-08-25 17:55:26.000000000 -0400
++++ bloboats-1.0.2/src/menu.cpp 2010-11-28 01:19:57.664406227 -0500
+@@ -118,7 +118,7 @@
+ bool used=false;
+
+ if (fgets(nick, NICK_MAXLEN+2, fp)) {
+- if (nick && strlen(nick)>1 ) {
++ if (strlen(nick)>1 ) {
+ nick[strlen(nick)-1]='\0';
+ used=true;
+ Player[i].setnick(nick);
+diff -ru bloboats-1.0.2.orig/src/path.cpp bloboats-1.0.2/src/path.cpp
+--- bloboats-1.0.2.orig/src/path.cpp 2006-08-02 18:05:36.000000000 -0400
++++ bloboats-1.0.2/src/path.cpp 2010-11-28 01:19:19.385415683 -0500
+@@ -111,7 +111,7 @@
+ }
+
+ if (type>0) {
+- if (d2) {
++ if (*d2) {
+ char *ps = new char[p.size()+1];
+ strncpy (ps, p.c_str(), p.size()+1);
+
diff --git a/games-arcade/bloboats/metadata.xml b/games-arcade/bloboats/metadata.xml
new file mode 100644
index 000000000000..d3c2cc926f0b
--- /dev/null
+++ b/games-arcade/bloboats/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+</pkgmetadata>
diff --git a/games-arcade/blobwars/Manifest b/games-arcade/blobwars/Manifest
new file mode 100644
index 000000000000..4c62d27a5b11
--- /dev/null
+++ b/games-arcade/blobwars/Manifest
@@ -0,0 +1 @@
+DIST blobwars-1.19.tar.gz 67019647 SHA256 f9bafe59ead9e370ceaba4aae3d280241bf05fa06c8ae006eec0322c2fe9e2ed SHA512 d31dcf5aae13bed849f701923cef7e829a43f199b8cde8dc9c28b283c8f7da6c5c8052387fae9add9f1bfb0c857c5be339b6049b6b19ff4c6c5ccbb6233e2643 WHIRLPOOL 4f4a31e80648696ee564be7b4aafddea666dd9cd7239e6310c03f873cb284a59beb40abaa4e8edd3da9e2dbb4dbf9f88cc1db3232b22aeadfda3cad5f473eea4
diff --git a/games-arcade/blobwars/blobwars-1.19.ebuild b/games-arcade/blobwars/blobwars-1.19.ebuild
new file mode 100644
index 000000000000..db013b19f276
--- /dev/null
+++ b/games-arcade/blobwars/blobwars-1.19.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+inherit eutils gnome2-utils games
+
+DESCRIPTION="Platform game about a blob and his quest to rescue MIAs from an alien invader"
+HOMEPAGE="http://sourceforge.net/projects/blobwars/ https://sourceforge.net/apps/mediawiki/blobwars/index.php?title=Main_Page"
+SRC_URI="mirror://sourceforge/blobwars/${P}.tar.gz"
+
+LICENSE="BSD CC-BY-SA-3.0 CC-BY-3.0 GPL-2 LGPL-2.1 fairuse public-domain"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND="media-libs/libsdl
+ media-libs/sdl-mixer
+ media-libs/sdl-ttf
+ media-libs/sdl-image
+ media-libs/sdl-net
+ sys-libs/zlib
+ virtual/libintl"
+DEPEND="${RDEPEND}
+ sys-devel/gettext"
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${PN}-1.19-linking-order.patch \
+ "${FILESDIR}"/${PN}-1.19-ldflags.patch \
+ "${FILESDIR}"/${PN}-1.19-zlib-1.2.5.2.patch
+
+ sed -i -e "/-Werror/d" makefile || die
+}
+
+src_compile() {
+ emake \
+ USEPAK="1" \
+ DATADIR="${GAMES_DATADIR}/${PN}/" \
+ DOCDIR="/usr/share/doc/${PF}/html/" \
+ LOCALEDIR="/usr/share/locale/"
+}
+
+src_install() {
+ emake \
+ USEPAK="1" \
+ DESTDIR="${D}" \
+ BINDIR="${GAMES_BINDIR}/" \
+ DATADIR="${GAMES_DATADIR}/${PN}/" \
+ DOCDIR="/usr/share/doc/${PF}/html/" \
+ ICONDIR="/usr/share/icons/hicolor/" \
+ DESKTOPDIR="/usr/share/applications/" \
+ LOCALEDIR="/usr/share/locale/" \
+ install
+
+ mv -vf \
+ "${D}"/usr/share/doc/${PF}/html/{changes,hacking,porting,readme} \
+ "${D}"/usr/share/doc/${PF}/
+
+ prepgamesdirs
+}
+
+pkg_preinst() {
+ games_pkg_preinst
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/games-arcade/blobwars/files/blobwars-1.19-ldflags.patch b/games-arcade/blobwars/files/blobwars-1.19-ldflags.patch
new file mode 100644
index 000000000000..8b006f1003a8
--- /dev/null
+++ b/games-arcade/blobwars/files/blobwars-1.19-ldflags.patch
@@ -0,0 +1,22 @@
+--- makefile~ 2011-08-29 20:32:22.000000000 +0200
++++ makefile 2011-08-29 20:33:27.052159159 +0200
+@@ -82,16 +82,16 @@
+
+ # linking the program.
+ $(PROG): $(GAMEOBJS)
+- $(CXX) $(GAMEOBJS) -o $(PROG) $(LIBS)
++ $(CXX) $(LDFLAGS) $(GAMEOBJS) -o $(PROG) $(LIBS)
+
+ pak: $(PAKOBJS)
+- $(CXX) $(PAKOBJS) -o pak $(LIBS)
++ $(CXX) $(LDFLAGS) $(PAKOBJS) -o pak $(LIBS)
+
+ %.mo: %.po
+ msgfmt -c -o $@ $<
+
+ mapeditor: $(MAPOBJS)
+- $(CXX) $(MAPOBJS) -o mapeditor $(LIBS)
++ $(CXX) $(LDFLAGS) $(MAPOBJS) -o mapeditor $(LIBS)
+
+ # cleaning everything that can be automatically recreated with "make".
+ clean:
diff --git a/games-arcade/blobwars/files/blobwars-1.19-linking-order.patch b/games-arcade/blobwars/files/blobwars-1.19-linking-order.patch
new file mode 100644
index 000000000000..6b0010138652
--- /dev/null
+++ b/games-arcade/blobwars/files/blobwars-1.19-linking-order.patch
@@ -0,0 +1,36 @@
+From 896cde549eeb254cc4960f20f54cab845e95b061 Mon Sep 17 00:00:00 2001
+From: Andreas Moog <amoog@ubuntu.com>
+Date: Sun, 19 Jun 2011 22:03:10 +0200
+Subject: [PATCH] LIBS go after objects to allow linking with ld --as-needed
+
+---
+ makefile | 6 +++---
+ 1 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/makefile b/makefile
+index 0a9cc94..509c2ff 100755
+--- a/makefile
++++ b/makefile
+@@ -82,16 +82,16 @@ all: $(ALL)
+
+ # linking the program.
+ $(PROG): $(GAMEOBJS)
+- $(CXX) $(LIBS) $(GAMEOBJS) -o $(PROG)
++ $(CXX) $(GAMEOBJS) -o $(PROG) $(LIBS)
+
+ pak: $(PAKOBJS)
+- $(CXX) $(LIBS) $(PAKOBJS) -o pak
++ $(CXX) $(PAKOBJS) -o pak $(LIBS)
+
+ %.mo: %.po
+ msgfmt -c -o $@ $<
+
+ mapeditor: $(MAPOBJS)
+- $(CXX) $(LIBS) $(MAPOBJS) -o mapeditor
++ $(CXX) $(MAPOBJS) -o mapeditor $(LIBS)
+
+ # cleaning everything that can be automatically recreated with "make".
+ clean:
+--
+1.7.5.4
+
diff --git a/games-arcade/blobwars/files/blobwars-1.19-zlib-1.2.5.2.patch b/games-arcade/blobwars/files/blobwars-1.19-zlib-1.2.5.2.patch
new file mode 100644
index 000000000000..cf101170e26c
--- /dev/null
+++ b/games-arcade/blobwars/files/blobwars-1.19-zlib-1.2.5.2.patch
@@ -0,0 +1,22 @@
+http://bugs.gentoo.org/408459
+
+--- src/pak.cpp
++++ src/pak.cpp
+@@ -119,7 +119,7 @@
+ {
+ printf("Couldn't open %s for reading!\n", filename);
+ closedir(dirp);
+- gzclose(pak);
++ gzclose((gzFile)pak);
+ exit(1);
+ }
+
+@@ -141,7 +141,7 @@
+ {
+ printf("Couldn't open %s for reading!\n", filename);
+ closedir(dirp);
+- gzclose(pak);
++ gzclose((gzFile)pak);
+ exit(1);
+ }
+ else
diff --git a/games-arcade/blobwars/metadata.xml b/games-arcade/blobwars/metadata.xml
new file mode 100644
index 000000000000..6e3e4b851f2a
--- /dev/null
+++ b/games-arcade/blobwars/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>games</herd>
+ <maintainer>
+ <email>pacho@gentoo.org</email>
+ <name>Pacho Ramos</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">blobwars</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-arcade/blockrage/Manifest b/games-arcade/blockrage/Manifest
new file mode 100644
index 000000000000..29a1ccd326f5
--- /dev/null
+++ b/games-arcade/blockrage/Manifest
@@ -0,0 +1 @@
+DIST blockrage-0.2.3.tar.gz 75620 SHA256 f9722e519fb74be2ecb9377fd2470c94382088a67df33acea215fd0a5a0b4cb6 SHA512 20ad63cb75f6f3afe482b54c5dc0487615ed9ac9a43fa3819b1da43f343c8dde6c3eb817b46b586bbfdca6ad9c9e9cb3c220f5ab536397e407250daf9fd61aa2 WHIRLPOOL 897bb7ea402ca0b79cf1246bc157853575664f22219518d905418bf838e47c31531e64a508028e3e22319e49a4cd2534482abe8affeaa4caf38875e2510a7366
diff --git a/games-arcade/blockrage/blockrage-0.2.3.ebuild b/games-arcade/blockrage/blockrage-0.2.3.ebuild
new file mode 100644
index 000000000000..abe431660f4f
--- /dev/null
+++ b/games-arcade/blockrage/blockrage-0.2.3.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+inherit eutils games
+
+DESCRIPTION="Falling-blocks arcade game with a 2-player hotseat mode"
+HOMEPAGE="http://blockrage.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE=""
+
+DEPEND="media-libs/libsdl"
+RDEPEND="${DEPEND}"
+
+# Removing error due to wrong detection of cross-compile mode
+PATCHES=( "${FILESDIR}/${P}"-config.patch )
+DOCS=( ChangeLog KNOWN_BUGS README TODO )
+
+src_install() {
+ default
+ prepgamesdirs
+}
diff --git a/games-arcade/blockrage/files/blockrage-0.2.3-config.patch b/games-arcade/blockrage/files/blockrage-0.2.3-config.patch
new file mode 100644
index 000000000000..dc1875fc28e8
--- /dev/null
+++ b/games-arcade/blockrage/files/blockrage-0.2.3-config.patch
@@ -0,0 +1,30 @@
+--- configure
++++ configure
+@@ -40,7 +40,7 @@
+ SOUND_OPT=
+
+ MYCC=gcc
+-MYCFLAGS='-s -O2 -Wall `sdl-config --cflags`'" $SOUND_OPT -DSYSCONFDIR=\\\"\${sysconfdir}/\${progname}\\\""
++MYCFLAGS='-Wall `sdl-config --cflags`'" $SOUND_OPT -DSYSCONFDIR=\\\"\${sysconfdir}/\${progname}\\\""
+
+ if test -z "$CC" ; then
+ CC="$MYCC";
+@@ -75,7 +75,6 @@
+ --build=*) build_alias="$cfg_optarg";;
+ --host=*) if test ."$build_alias" != ."$cfg_optarg" ; then
+ printf "configure: cross-compiling not supported\n" >&2
+- exit 1
+ fi;;
+
+ --bindir=*) bindir="$cfg_optarg";;
+--- src/Makefile.in
++++ src/Makefile.in
+@@ -1,7 +1,7 @@
+ OBJS = main.o gfxout.o gfxlib.o menus.o keyboard.o bg.o sound.o global.o timer.o
+
+ $(progname)$(XSUF): $(OBJS)
+- gcc -s -o $(progname)$(XSUF) $(OBJS) $(LIBS)
++ $(CC) $(CFLAGS) -o $(progname)$(XSUF) $(OBJS) $(LIBS) $(LDFLAGS)
+
+ bg.o: bg.c bg.h global.h main.h
+ gfxlib.o: gfxlib.c gfxlib.h global.h gfxout.h
diff --git a/games-arcade/blockrage/metadata.xml b/games-arcade/blockrage/metadata.xml
new file mode 100644
index 000000000000..9f40ff536fad
--- /dev/null
+++ b/games-arcade/blockrage/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>games</herd>
+ <longdescription lang="en">
+An arcade game with addictive gameplay and a 2-player hotseat mode.
+</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">blockrage</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-arcade/bomns/Manifest b/games-arcade/bomns/Manifest
new file mode 100644
index 000000000000..bffb8486461a
--- /dev/null
+++ b/games-arcade/bomns/Manifest
@@ -0,0 +1 @@
+DIST bomns-0.99.2.tar.gz 1079850 SHA256 e292bec8ec8ca3b0ffe40b7b09f9fe5cce4d506e35425ee8de2d13ecf754ea5f SHA512 db4a2352af0cb220dc0c12de8796d17bbfb71e1aa7de1743dfe534fe4f54c38217f893f0fcaef1dc97509198eec7446d352e92077644664d4bf48acbc2a7897f WHIRLPOOL aa9e91a9be4fa07912c711bba1a11125f23387247a9bed01a80ad23be19b7d9ff4667cf6fdb65b26b486b2a0a9c4fe55628aa34c56c89e9d8c8e1916b5d37cab
diff --git a/games-arcade/bomns/bomns-0.99.2.ebuild b/games-arcade/bomns/bomns-0.99.2.ebuild
new file mode 100644
index 000000000000..83010e39529e
--- /dev/null
+++ b/games-arcade/bomns/bomns-0.99.2.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+inherit autotools flag-o-matic games
+
+DESCRIPTION="A fast-paced multiplayer deathmatch arcade game"
+HOMEPAGE="http://greenridge.sourceforge.net"
+SRC_URI="mirror://sourceforge/greenridge/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86 ~x86-fbsd"
+IUSE="gtk editor"
+
+DEPEND="media-libs/libsdl[video]
+ media-libs/sdl-mixer
+ gtk? ( x11-libs/gtk+:2 )"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ sed -i \
+ -e "/appicondir/s:\$(prefix):/usr:" \
+ -e "/desktopdir/s:\$(prefix):/usr:" \
+ $(find icons -name Makefile.am) \
+ Makefile.am \
+ || die "sed failed"
+ sed -i \
+ -e "s:\$*[({]prefix[})]/share:${GAMES_DATADIR}:" \
+ configure.in \
+ graphics/Makefile.am \
+ levels/Makefile.am \
+ sounds/Makefile.am \
+ || die "sed failed"
+ epatch "${FILESDIR}"/${P}-fpe.patch
+ eautoreconf
+}
+
+src_configure() {
+ filter-flags -fforce-addr
+ egamesconf \
+ --disable-dependency-tracking \
+ --disable-launcher1 \
+ $(use_enable gtk launcher2) \
+ $(use_enable editor)
+}
+
+src_install() {
+ default
+ prepgamesdirs
+}
diff --git a/games-arcade/bomns/files/bomns-0.99.2-fpe.patch b/games-arcade/bomns/files/bomns-0.99.2-fpe.patch
new file mode 100644
index 000000000000..3a9e39c241af
--- /dev/null
+++ b/games-arcade/bomns/files/bomns-0.99.2-fpe.patch
@@ -0,0 +1,14 @@
+--- src/bomns.cpp.old 2015-01-03 18:44:59.947689613 +0100
++++ src/bomns.cpp 2015-01-03 18:47:29.854777276 +0100
+@@ -432,7 +432,10 @@
+ if(g_bShowFps)
+ {
+ dwFpsTimer = SDL_GetTicks() - dwFpsTimer;
+- nFps = 1000l / dwFpsTimer;
++ if (dwFpsTimer)
++ nFps = 1000l / dwFpsTimer;
++ else
++ nFps = 1000l;
+ }
+
+
diff --git a/games-arcade/bomns/metadata.xml b/games-arcade/bomns/metadata.xml
new file mode 100644
index 000000000000..42a753fb437a
--- /dev/null
+++ b/games-arcade/bomns/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>games</herd>
+ <use>
+ <flag name="editor">enables building the level editor</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">greenridge</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-arcade/briquolo/Manifest b/games-arcade/briquolo/Manifest
new file mode 100644
index 000000000000..7d196e889668
--- /dev/null
+++ b/games-arcade/briquolo/Manifest
@@ -0,0 +1 @@
+DIST briquolo-0.5.7.tar.bz2 2588084 SHA256 061055dba524a784d6569fd74f3e4490db264da1356b53d68aae5523416f8f11 SHA512 4ef78193c80ac3554b72149b8da9b5cfd5b8fd68932e5b52666d74642e94a7a3a596dbb6d2865cba526929dd6d9be89743847d5e77b6fbc687c32394bc3be3d2 WHIRLPOOL d1c5f2a2502a6b8621f71d2034d5a34b12e45b6c6b2ce6baf83209c2806a306de6e183493193643d9224a86b0634fc9e2f31186131125ab15d3802a594aa7b51
diff --git a/games-arcade/briquolo/briquolo-0.5.7.ebuild b/games-arcade/briquolo/briquolo-0.5.7.ebuild
new file mode 100644
index 000000000000..2690ebcf66e1
--- /dev/null
+++ b/games-arcade/briquolo/briquolo-0.5.7.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+inherit eutils games
+
+DESCRIPTION="Breakout with 3D representation based on OpenGL"
+HOMEPAGE="http://briquolo.free.fr/en/index.html"
+SRC_URI="http://briquolo.free.fr/download/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="nls"
+
+RDEPEND="virtual/opengl
+ virtual/glu
+ media-libs/libsdl
+ media-libs/sdl-mixer
+ media-libs/sdl-ttf
+ media-libs/libpng
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-gcc43.patch \
+ "${FILESDIR}"/${P}-libpng14.patch
+ # no thanks we'll take care of it.
+ sed -i \
+ -e '/^SUBDIRS/s/desktop//' \
+ Makefile.in \
+ || die "sed Makefile.in failed"
+ sed -i \
+ -e "/CXXFLAGS/s:-O3:${CXXFLAGS}:" \
+ -e 's:=.*share/locale:=/usr/share/locale:' \
+ configure \
+ || die "sed configure failed"
+ sed -i \
+ -e 's:$(datadir)/locale:/usr/share/locale:' \
+ po/Makefile.in.in \
+ || die "sed Makefile.in.in failed"
+}
+
+src_configure() {
+ egamesconf \
+ $(use_enable nls)
+}
+
+src_install() {
+ default
+ doicon desktop/briquolo.svg
+ make_desktop_entry briquolo Briquolo
+ prepgamesdirs
+}
diff --git a/games-arcade/briquolo/files/briquolo-0.5.7-gcc43.patch b/games-arcade/briquolo/files/briquolo-0.5.7-gcc43.patch
new file mode 100644
index 000000000000..13e932a1c69e
--- /dev/null
+++ b/games-arcade/briquolo/files/briquolo-0.5.7-gcc43.patch
@@ -0,0 +1,81 @@
+diff -ru src.orig/Constante.cpp src/Constante.cpp
+--- src.orig/Constante.cpp 2008-03-22 05:40:33.000000000 -0400
++++ src/Constante.cpp 2008-06-11 23:16:46.000000000 -0400
+@@ -27,6 +27,7 @@
+ #define DATADIR_BRIQUOLO "./"
+ #define PACKAGE "briquolo"
+ #endif
++#include <cstdlib>
+
+ #ifdef WIN32
+ #define WIN32_LEAN_AND_MEAN
+diff -ru src.orig/MOGL/MOGL_EnsembleObjet.cpp src/MOGL/MOGL_EnsembleObjet.cpp
+--- src.orig/MOGL/MOGL_EnsembleObjet.cpp 2008-03-24 09:12:36.000000000 -0400
++++ src/MOGL/MOGL_EnsembleObjet.cpp 2008-06-11 23:17:11.000000000 -0400
+@@ -24,7 +24,8 @@
+ #include "MOGL_Armature.h"
+ #include "MOGL_Peau.h"
+ //#include
+-#include <stdio.h>
++#include <cstdio>
++#include <cstring>
+
+ //#include <mmsystem.h>
+
+diff -ru src.orig/MOGL/MOGL_GestionnaireObjet.cpp src/MOGL/MOGL_GestionnaireObjet.cpp
+--- src.orig/MOGL/MOGL_GestionnaireObjet.cpp 2008-03-24 08:56:13.000000000 -0400
++++ src/MOGL/MOGL_GestionnaireObjet.cpp 2008-06-11 23:18:45.000000000 -0400
+@@ -21,6 +21,7 @@
+ *****************************************************************************/
+ #include "../I18n.h"
+ #include "MOGL_GestionnaireObjet.h"
++#include <cstring>
+
+ bool MOGL_GestionnaireObjet::ChargerObjetASCTriangle(const char * p_NomFichier, const MOGL_GestionnaireTexture & p_GM,
+ MOGL_Objet & p_Objet)
+diff -ru src.orig/MOGL/MOGL_GestionnaireObjet.h src/MOGL/MOGL_GestionnaireObjet.h
+--- src.orig/MOGL/MOGL_GestionnaireObjet.h 2006-03-07 15:31:24.000000000 -0500
++++ src/MOGL/MOGL_GestionnaireObjet.h 2008-06-11 23:20:07.000000000 -0400
+@@ -24,7 +24,8 @@
+
+ #include <vector>
+ #include <iostream>
+-#include <stdio.h>
++#include <cstdio>
++#include <cstring>
+
+ #include "MOGL_Triangle.h"
+ #include "MOGL_Objet.h"
+diff -ru src.orig/MOGL/MOGL_Image.h src/MOGL/MOGL_Image.h
+--- src.orig/MOGL/MOGL_Image.h 2006-03-07 15:53:11.000000000 -0500
++++ src/MOGL/MOGL_Image.h 2008-06-11 23:20:51.000000000 -0400
+@@ -24,6 +24,7 @@
+
+ #include "MOGL_Structure.h"
+ #include <string>
++#include <cstring>
+
+ using namespace std;
+
+diff -ru src.orig/MOGL/MOGL_Objet.cpp src/MOGL/MOGL_Objet.cpp
+--- src.orig/MOGL/MOGL_Objet.cpp 2006-03-07 15:31:24.000000000 -0500
++++ src/MOGL/MOGL_Objet.cpp 2008-06-11 23:21:05.000000000 -0400
+@@ -20,6 +20,7 @@
+ *
+ *****************************************************************************/
+ #include "MOGL_Objet.h"
++#include <cstdlib>
+
+ //MOGL_Objet::MOGL_Objet(): MOGL_ObjetAbstrait(), MOGL_ElementArbre()
+ MOGL_Objet::MOGL_Objet(): MOGL_Noeud(), _ModifieTriangle(true), _ModifieStrip(true),
+diff -ru src.orig/MOGL/MOGL_Peau.cpp src/MOGL/MOGL_Peau.cpp
+--- src.orig/MOGL/MOGL_Peau.cpp 2006-03-07 15:31:24.000000000 -0500
++++ src/MOGL/MOGL_Peau.cpp 2008-06-11 23:21:17.000000000 -0400
+@@ -20,6 +20,7 @@
+ *
+ *****************************************************************************/
+ #include "MOGL_Peau.h"
++#include <cstdlib>
+
+ MOGL_Peau::MOGL_Peau(): MOGL_Noeud(), _ModifieTriangle(true)
+ {
diff --git a/games-arcade/briquolo/files/briquolo-0.5.7-libpng14.patch b/games-arcade/briquolo/files/briquolo-0.5.7-libpng14.patch
new file mode 100644
index 000000000000..d325bac02578
--- /dev/null
+++ b/games-arcade/briquolo/files/briquolo-0.5.7-libpng14.patch
@@ -0,0 +1,31 @@
+http://bugs.gentoo.org/show_bug.cgi?id=308667
+
+--- src/MOGL/MOGL_Image.cpp
++++ src/MOGL/MOGL_Image.cpp
+@@ -183,7 +183,7 @@ bool MOGL_Image::ChargerPNG(const char *
+ info_ptr = png_create_info_struct(png_ptr);
+ if (info_ptr == NULL)
+ {
+- png_destroy_read_struct(&png_ptr, png_infopp_NULL, png_infopp_NULL);
++ png_destroy_read_struct(&png_ptr, NULL, NULL);
+ return false;
+ }
+
+@@ -191,7 +191,7 @@ bool MOGL_Image::ChargerPNG(const char *
+ if (setjmp(png_jmpbuf(png_ptr)))
+ {
+ // On libère la mémoire
+- png_destroy_read_struct(&png_ptr, &info_ptr, png_infopp_NULL);
++ png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
+ return false;
+ }
+
+@@ -235,7 +235,7 @@ bool MOGL_Image::ChargerPNG(const char *
+ /* Expand grayscale images to the full 8 bits from 1, 2, or 4 bits/pixel */
+ if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8)
+ {
+- png_set_gray_1_2_4_to_8(png_ptr);
++ png_set_expand_gray_1_2_4_to_8(png_ptr);
+ }
+
+ /* Expand paletted or RGB images with transparency to full alpha channels
diff --git a/games-arcade/briquolo/metadata.xml b/games-arcade/briquolo/metadata.xml
new file mode 100644
index 000000000000..d3c2cc926f0b
--- /dev/null
+++ b/games-arcade/briquolo/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+</pkgmetadata>
diff --git a/games-arcade/bub-n-bros/Manifest b/games-arcade/bub-n-bros/Manifest
new file mode 100644
index 000000000000..69c73305b4d1
--- /dev/null
+++ b/games-arcade/bub-n-bros/Manifest
@@ -0,0 +1 @@
+DIST bubbros-1.6.2.tar.gz 11568771 SHA256 0ad8a359c4632071a9c85c2684bae32aa0fa278632c49f092dc4078cfb9858c4 SHA512 a05fca8e31655e4bade60cd085f29796d789b349f005c715bf0e37e51f0bacb9d8b9650f3b10470917ee25421d32443e01132816a2f508e359302aa2c6d18ddb WHIRLPOOL 6ed0f68cab694399aef4c75ab0633c9c355cbc5328c72fffacd20612c6cf0cc67b06db65dc808307bd036caba19f1d7e35fedd6c756104e9c1c5ce1054b8a43f
diff --git a/games-arcade/bub-n-bros/bub-n-bros-1.6.2.ebuild b/games-arcade/bub-n-bros/bub-n-bros-1.6.2.ebuild
new file mode 100644
index 000000000000..6988c1a5bfc3
--- /dev/null
+++ b/games-arcade/bub-n-bros/bub-n-bros-1.6.2.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+inherit eutils python-single-r1 games
+
+MY_P=${P/-n-}
+DESCRIPTION="A multiplayer clone of the famous Bubble Bobble game"
+HOMEPAGE="http://bub-n-bros.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="MIT Artistic-2"
+SLOT="0"
+KEYWORDS="~alpha amd64 ppc ~sparc x86 ~x86-fbsd"
+IUSE=""
+
+DEPEND="dev-python/pygame[${PYTHON_USEDEP}]
+ ${PYTHON_DEPS}"
+RDEPEND=${DEPEND}
+
+REQUIRED_USE=${PYTHON_REQUIRED_USE}
+
+S=${WORKDIR}/${MY_P}
+
+pkg_setup() {
+ python-single-r1_pkg_setup
+ games_pkg_setup
+}
+
+src_prepare() {
+ ecvs_clean
+ epatch "${FILESDIR}"/${P}-home.patch
+ python_fix_shebang .
+}
+
+src_compile() {
+ # Compile the "statesaver" extension module to enable the Clock bonus
+ cd "${S}"/bubbob
+ ${EPYTHON} setup.py build_ext -i || die
+
+ # Compile the extension module required for the X Window client
+ cd "${S}"/display
+ ${EPYTHON} setup.py build_ext -i || die
+
+ # Build images
+ cd "${S}"/bubbob/images
+ ${EPYTHON} buildcolors.py || die
+}
+
+src_install() {
+ local dir=$(games_get_libdir)/${PN}
+
+ exeinto "${dir}"
+ doexe *.py
+
+ insinto "${dir}"
+ doins -r bubbob common display java http2 metaserver
+
+ dodir "${GAMES_BINDIR}"
+ dosym "${dir}"/BubBob.py "${GAMES_BINDIR}"/bubnbros
+
+ python_optimize "${D}${dir}"
+
+ newicon http2/data/bob.png ${PN}.png
+ make_desktop_entry bubnbros Bub-n-Bros
+
+ prepgamesdirs
+}
diff --git a/games-arcade/bub-n-bros/files/bub-n-bros-1.6.2-home.patch b/games-arcade/bub-n-bros/files/bub-n-bros-1.6.2-home.patch
new file mode 100644
index 000000000000..4d2cc317aba3
--- /dev/null
+++ b/games-arcade/bub-n-bros/files/bub-n-bros-1.6.2-home.patch
@@ -0,0 +1,51 @@
+--- bubbob/images.py 2007-09-08 17:03:41.000000000 +0200
++++ bubbob/images.py 2007-09-08 17:57:45.000000000 +0200
+@@ -454,7 +454,6 @@
+ # check and maybe regenerate the colored image files
+ file = os.path.join('images', 'buildcolors.py')
+ g = {'__name__': '__auto__', '__file__': file}
+- execfile(file, g)
+ # replace the entries 'filename_%d.ppm' by a family of entries,
+ # one for each color
+ sprmap = {}
+--- display/pclient.py 2007-09-08 17:03:41.000000000 +0200
++++ display/pclient.py 2007-09-08 17:57:45.000000000 +0200
+@@ -162,8 +162,8 @@
+ if mode[-1].has_key('cfgfile'):
+ self.trackcfgfile = mode[-1]['cfgfile']
+ else:
+- self.trackcfgfile = os.path.join(DataChunk.SOURCEDIR,
+- 'http2', 'config.txt')
++ self.trackcfgfile = os.path.join(os.environ.get('HOME'),
++ '.bubnbros')
+ self.udpsock = None
+ self.udpsock_low = None
+ self.udpsock2 = None
+--- http2/httppages.py 2007-09-08 17:03:41.000000000 +0200
++++ http2/httppages.py 2007-09-08 17:57:45.000000000 +0200
+@@ -38,7 +38,7 @@
+
+
+ class PageServer:
+- CONFIGFILE = 'config.txt'
++ CONFIGFILE = '.bubnbros'
+ localservers = None
+
+ def __init__(self, Game):
+@@ -46,7 +46,7 @@
+ self.seed = hex(random.randrange(0x1000, 0x10000))
+ #self.unique_actions = {}
+ self.localhost = gamesrv.HOSTNAME
+- self.filename = os.path.join(LOCALDIR, self.CONFIGFILE)
++ self.filename = os.path.join(os.environ.get('HOME'), self.CONFIGFILE)
+ data = self.loadoptionfile()
+ self.globaloptions = Options(data.get('*', {}))
+ self.localoptions = Options(data.get(self.localhost, {}))
+@@ -333,7 +333,6 @@
+ 'buildcolors.py')
+ if os.path.exists(file):
+ g = {'__name__': '__auto__', '__file__': file}
+- execfile(file, g)
+
+ if port:
+ address = '%s:%s' % (host, port)
diff --git a/games-arcade/bub-n-bros/metadata.xml b/games-arcade/bub-n-bros/metadata.xml
new file mode 100644
index 000000000000..a24d22ec375b
--- /dev/null
+++ b/games-arcade/bub-n-bros/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>games</herd>
+ <upstream>
+ <remote-id type="sourceforge">bub-n-bros</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-arcade/bumprace/Manifest b/games-arcade/bumprace/Manifest
new file mode 100644
index 000000000000..295d5d091258
--- /dev/null
+++ b/games-arcade/bumprace/Manifest
@@ -0,0 +1 @@
+DIST bumprace-1.5.3.tar.gz 906459 SHA256 000fe3fe517546c84a9173b37bafa511be1662d758559035a20372c141ed1b3e SHA512 35bc35e82f587dce9f096f68b74f4fe0c0020f7ee2f972f9c0a99473a2dfbd9e61412c030a93194165d9d5968f6b68a6d1656f8e77dd46352f00a53e47ad94c6 WHIRLPOOL 28b4e4c10be88faa76235b6260c27a040418e7093e29422834c6eba0a1d1fe4e56f6d1115247166a0ad8ae6b1053dde8799be4ba2aed7c2d84eec701f93475ee
diff --git a/games-arcade/bumprace/bumprace-1.5.3.ebuild b/games-arcade/bumprace/bumprace-1.5.3.ebuild
new file mode 100644
index 000000000000..eda218b4c496
--- /dev/null
+++ b/games-arcade/bumprace/bumprace-1.5.3.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="simple arcade racing game"
+HOMEPAGE="http://www.linux-games.com/bumprace/"
+SRC_URI="http://user.cs.tu-berlin.de/~karlb/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc ~sparc x86"
+IUSE=""
+
+DEPEND="media-libs/libsdl[sound,video]
+ media-libs/sdl-mixer[mod]
+ virtual/jpeg:0
+ sys-libs/zlib
+ media-libs/sdl-image[gif,jpeg,png]"
+RDEPEND=${DEPEND}
+
+src_install() {
+ default
+ make_desktop_entry bumprace BumpRace
+ prepgamesdirs
+}
diff --git a/games-arcade/bumprace/metadata.xml b/games-arcade/bumprace/metadata.xml
new file mode 100644
index 000000000000..d3c2cc926f0b
--- /dev/null
+++ b/games-arcade/bumprace/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+</pkgmetadata>
diff --git a/games-arcade/burgerspace/Manifest b/games-arcade/burgerspace/Manifest
new file mode 100644
index 000000000000..458d0ab61f77
--- /dev/null
+++ b/games-arcade/burgerspace/Manifest
@@ -0,0 +1 @@
+DIST burgerspace-1.9.2.tar.gz 505314 SHA256 34b0feccf543b11f9f9a182203d67cd453675255fed4b745e4e74c121b211bf2 SHA512 b2af53d6fcf1d52164870147aa8a5b08941ecb62f3d9bbce5c2872885923057481c21bc34f1e19b8aeb8a76acadd9a11c11fa7b6304438610e8a23e043b7deee WHIRLPOOL a164c6a8a6c7e0aaad1e427bd88103a03260fa77b4d05ee8d9af72d468f7744c7cf212f2e8431b7529c82106ce3334eaff75983e7a437fa5658f1d9d7d96010d
diff --git a/games-arcade/burgerspace/burgerspace-1.9.2.ebuild b/games-arcade/burgerspace/burgerspace-1.9.2.ebuild
new file mode 100644
index 000000000000..637ac3cc3a02
--- /dev/null
+++ b/games-arcade/burgerspace/burgerspace-1.9.2.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit autotools games
+
+DESCRIPTION="Clone of the 1982 BurgerTime video game by Data East"
+HOMEPAGE="http://perso.b2b2c.ca/sarrazip/dev/burgerspace.html"
+SRC_URI="http://perso.b2b2c.ca/sarrazip/dev/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86 ~x86-fbsd"
+IUSE="network"
+RESTRICT="test" # doesn't really test anything
+
+RDEPEND=">=dev-games/flatzebra-0.1.6"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ sed -i \
+ -e "/^pkgsounddir/ s:sounds.*:\$(PACKAGE)/sounds:" \
+ -e "/^desktopentrydir/ s:=.*:=/usr/share/applications:" \
+ -e "/^pixmapdir/ s:=.*:=/usr/share/pixmaps:" \
+ src/Makefile.am \
+ || die
+ sed -i \
+ -e "/Categories/s:Application;::" \
+ -e "/Icon/s:\..*::" \
+ -e "/Terminal/s:0:false:" \
+ src/burgerspace.desktop.in \
+ || die
+ eautoreconf
+}
+
+src_configure() {
+ egamesconf \
+ $(use_with network)
+}
+
+src_install() {
+ emake -C src DESTDIR="${D}" install
+ doman doc/${PN}.6
+ dodoc AUTHORS NEWS README THANKS
+ prepgamesdirs
+}
diff --git a/games-arcade/burgerspace/metadata.xml b/games-arcade/burgerspace/metadata.xml
new file mode 100644
index 000000000000..4d4304ba05a8
--- /dev/null
+++ b/games-arcade/burgerspace/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+ <use>
+ <flag name="network">Enable client-server support</flag>
+ </use>
+</pkgmetadata>
diff --git a/games-arcade/cavezofphear/Manifest b/games-arcade/cavezofphear/Manifest
new file mode 100644
index 000000000000..17a59039d63e
--- /dev/null
+++ b/games-arcade/cavezofphear/Manifest
@@ -0,0 +1 @@
+DIST phear-0.5.1.tar.bz2 25750 SHA256 9af83c2246dc05531e3d1d11ea931fe38e7086b513fb8e295c7e95b54c68e687 SHA512 23326a63acc06e77a1dd3505345940f8ef31b671282e00f623b181fe1cdbdf1b7e4b37a6e91ea430348a02239ed1450736dc075ea3af3eee0e8acb115aa89f3b WHIRLPOOL 4891f223c91728164e785b781ec957f0c65b31d2e2b32a3db68d3952695e68728bbec566a5b07847ae6157ee0075edd19b7f84fbee8ee458f1690670dc0e9683
diff --git a/games-arcade/cavezofphear/cavezofphear-0.5.1.ebuild b/games-arcade/cavezofphear/cavezofphear-0.5.1.ebuild
new file mode 100644
index 000000000000..764940f77366
--- /dev/null
+++ b/games-arcade/cavezofphear/cavezofphear-0.5.1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="A boulder dash / digger-like game for console using ncurses"
+HOMEPAGE="http://www.x86.no/cavezofphear/"
+SRC_URI="http://www.x86.no/${PN}/${P/cavezof}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 ppc ppc64 ~sparc x86 ~x86-fbsd"
+IUSE=""
+
+RDEPEND=">=sys-libs/ncurses-5"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+S=${WORKDIR}/${P/cavezof/}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-gentoo.patch
+ sed -i \
+ -e "s:get_data_dir(.):\"${GAMES_DATADIR}/${PN}/\":" \
+ src/{chk.c,main.c,gplot.c} \
+ || die
+}
+
+src_install() {
+ dogamesbin src/phear
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r data/*
+ dodoc ChangeLog README* TODO
+ prepgamesdirs
+}
diff --git a/games-arcade/cavezofphear/files/cavezofphear-0.5.1-gentoo.patch b/games-arcade/cavezofphear/files/cavezofphear-0.5.1-gentoo.patch
new file mode 100644
index 000000000000..fbf79af44519
--- /dev/null
+++ b/games-arcade/cavezofphear/files/cavezofphear-0.5.1-gentoo.patch
@@ -0,0 +1,36 @@
+diff -ru phear-0.5.1.orig/Makefile phear-0.5.1/Makefile
+--- phear-0.5.1.orig/Makefile 2007-02-27 06:21:55.000000000 -0500
++++ phear-0.5.1/Makefile 2013-01-18 02:09:56.403224104 -0500
+@@ -2,7 +2,7 @@
+ DESTDIR_DATA = /usr/local/share
+
+ make:
+- cd src && make
++ $(MAKE) -C src phear
+ clean:
+ rm -f phear editor
+ install:
+diff -ru phear-0.5.1.orig/src/Makefile phear-0.5.1/src/Makefile
+--- phear-0.5.1.orig/src/Makefile 2011-12-12 07:26:03.000000000 -0500
++++ phear-0.5.1/src/Makefile 2013-01-18 02:10:48.218423433 -0500
+@@ -2,10 +2,8 @@
+
+ DESTDIR = ..
+
+-CC = gcc
+ INSTALL = install
+-CFLAGS ?= -s -Wall -O2
+-LDFLAGS += -lncurses
++LDLIBS = `pkg-config ncurses --libs`
+
+ all: phear install clean
+
+@@ -13,7 +11,7 @@
+ $(CC) $(CFLAGS) -c $^ -o $@
+
+ phear: $(OBJS)
+- $(CC) $(CFLAGS) -o $@ $^ ${LDFLAGS}
++ $(CC) $(CFLAGS) -o $@ $^ ${LDFLAGS} $(LDLIBS)
+
+ install: install-game
+
diff --git a/games-arcade/cavezofphear/metadata.xml b/games-arcade/cavezofphear/metadata.xml
new file mode 100644
index 000000000000..d3c2cc926f0b
--- /dev/null
+++ b/games-arcade/cavezofphear/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+</pkgmetadata>
diff --git a/games-arcade/cdogs-sdl/Manifest b/games-arcade/cdogs-sdl/Manifest
new file mode 100644
index 000000000000..bf9fbba53866
--- /dev/null
+++ b/games-arcade/cdogs-sdl/Manifest
@@ -0,0 +1,2 @@
+DIST cdogs-data-2007-07-06.tar.bz2 218810 SHA256 6c5a10dee1a131f353853223fddf9208c0695f076d4e18a22e9f82800a94ebdc SHA512 9e645d64bcc0b99df9fb113f7103590eb8045ca9439700279c8ea55a6277d10fc38aff38bb1137887bc5697c505fe18e15d6c62eaf2790c065b1261fa7418a84 WHIRLPOOL aa5be5e797849ffeae01990462c8793bfd01b49685e2279239400904b9edb96759dbd4b33ee5759b99bdb9b2fdc76a2607d0cb9a34fe972ceb0fc6e669937865
+DIST cdogs-sdl-0.4.tar.bz2 164804 SHA256 63b7cabf6040c939735b4776e3f0fa90df711ee5a94b2387afca2d07b9876fd6 SHA512 69fbac533207e38c85cf0f71db47df50405a5ff220a6662f7e186d1f54c4181ee56e1ff8049a427acec7fcf0529b8df66db36a693978bb0aa04eb0594a8b5adc WHIRLPOOL 3d615585ee3d3cc8296d68fee91c160c70e891eebbee6a951a04f8a6e049d056bc312975977a51efe6e4d5bf15010eb9c60d269747f93b3143137405ef14338f
diff --git a/games-arcade/cdogs-sdl/cdogs-sdl-0.4-r1.ebuild b/games-arcade/cdogs-sdl/cdogs-sdl-0.4-r1.ebuild
new file mode 100644
index 000000000000..ec3c7898a736
--- /dev/null
+++ b/games-arcade/cdogs-sdl/cdogs-sdl-0.4-r1.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+inherit eutils games
+
+CDOGS_DATA="cdogs-data-2007-07-06"
+DESCRIPTION="A port of the old DOS arcade game C-Dogs"
+HOMEPAGE="http://lumaki.com/code/cdogs"
+SRC_URI="http://icculus.org/cdogs-sdl/files/src/${P}.tar.bz2
+ http://icculus.org/cdogs-sdl/files/data/${CDOGS_DATA}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="media-libs/libsdl
+ media-libs/sdl-mixer"
+
+S=${WORKDIR}/${P}/src
+
+src_unpack() {
+ unpack ${A}
+ mv ${CDOGS_DATA} ${P}/data || die "Failed moving data around"
+}
+
+src_prepare() {
+ sed -i \
+ -e "/^CF_OPT/d" \
+ -e "/^CC/d" \
+ Makefile \
+ || die "sed failed"
+ sed -i \
+ -e "/\bopen(/s/)/, 0666)/" \
+ files.c \
+ || die "sed failed"
+ epatch "${FILESDIR}"/${P}-64bit.patch
+}
+
+src_compile() {
+ emake I_AM_CONFIGURED=yes \
+ SYSTEM="\"linux\"" \
+ STRIP=true \
+ DATADIR="${GAMES_DATADIR}/${PN}" \
+ cdogs
+}
+
+src_install() {
+ dogamesbin cdogs
+ insinto "${GAMES_DATADIR}/${PN}"
+ doins -r ../data/*
+ newicon ../data/cdogs_icon.png ${PN}.png
+ dodoc ../doc/{README,AUTHORS,ChangeLog,README_DATA,TODO,original_readme.txt}
+ make_desktop_entry "cdogs -fullscreen" C-Dogs
+ prepgamesdirs
+}
diff --git a/games-arcade/cdogs-sdl/files/cdogs-sdl-0.4-64bit.patch b/games-arcade/cdogs-sdl/files/cdogs-sdl-0.4-64bit.patch
new file mode 100644
index 000000000000..bcab13c0ebfd
--- /dev/null
+++ b/games-arcade/cdogs-sdl/files/cdogs-sdl-0.4-64bit.patch
@@ -0,0 +1,48 @@
+--- src/grafx.c
++++ src/grafx.c
+@@ -216,12 +216,6 @@
+ SDL_VideoQuit();
+ }
+
+-typedef struct _Pic {
+- short int w;
+- short int h;
+- char *data;
+-} Pic;
+-
+ int ReadPics(const char *filename, void **pics, int maxPics,
+ color * palette)
+ {
+@@ -241,12 +235,12 @@
+ fread(&size, sizeof(size), 1, f);
+ swap16(&size);
+ if (size) {
+- Pic *p = sys_mem_alloc(size);
++ unsigned char *p = sys_mem_alloc(size);
+
+- f_read16(f, &p->w, 2);
+- f_read16(f, &p->h, 2);
++ f_read16(f, &p[0], 2); // w
++ f_read16(f, &p[2], 2); // h
+
+- f_read(f, &p->data, size - 4);
++ f_read(f, &p[4], size - 4); // data
+
+ pics[i] = p;
+
+@@ -278,11 +272,11 @@
+ fread(&size, sizeof(size), 1, f);
+ swap16(&size);
+ if (size) {
+- Pic *p = sys_mem_alloc(size);
++ unsigned char *p = sys_mem_alloc(size);
+
+- f_read16(f, &p->w, 2);
+- f_read16(f, &p->h, 2);
+- f_read(f, &p->data, size - 4);
++ f_read16(f, &p[0], 2); // w
++ f_read16(f, &p[2], 2); // h
++ f_read(f, &p[4], size - 4); // data
+
+ pics[i] = p;
+
diff --git a/games-arcade/cdogs-sdl/metadata.xml b/games-arcade/cdogs-sdl/metadata.xml
new file mode 100644
index 000000000000..0999c6a1d83a
--- /dev/null
+++ b/games-arcade/cdogs-sdl/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+<longdescription lang="en">
+C-Dogs is an arcade shoot-em-up which lets players work alone and
+cooperatively during missions or fight against each other in the "dogfight"
+deathmatch mode. The DOS version of C-Dogs came with severla built in missions
+and dogfight maps. This version does too.
+</longdescription>
+</pkgmetadata>
diff --git a/games-arcade/ceferino/Manifest b/games-arcade/ceferino/Manifest
new file mode 100644
index 000000000000..361afea91679
--- /dev/null
+++ b/games-arcade/ceferino/Manifest
@@ -0,0 +1 @@
+DIST ceferino-0.97.8.tar.gz 2380632 SHA256 6f0f2674a8a968950498570b89123e341dca50499d255e7bcdf3703a85aa3074 SHA512 459e5b5e19ff9cfc8bd82af856dea68d5f8694ff2b4a04e35c1b3fa1d065c8d8c60025b5e9ea1918eae4bf12a9ca354187513a3cb2813a55d39ef57deb2a7d05 WHIRLPOOL f989e81fc032ea6c65486d07ce80834052aa7ac31b3aceebe1580212817a3f59f6e0bb2b9fd1fa0fe1d14c11af164965675d164b836b7c032a0ddce21c39d3d4
diff --git a/games-arcade/ceferino/ceferino-0.97.8.ebuild b/games-arcade/ceferino/ceferino-0.97.8.ebuild
new file mode 100644
index 000000000000..21615df9a159
--- /dev/null
+++ b/games-arcade/ceferino/ceferino-0.97.8.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="Super-Pang clone (destroy bouncing balloons with your grapnel)"
+HOMEPAGE="http://www.loosersjuegos.com.ar/juegos/ceferino"
+SRC_URI="http://www.loosersjuegos.com.ar/juegos/ceferino/descargas/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86"
+IUSE="nls"
+
+RDEPEND=">=media-libs/libsdl-1.2
+ >=media-libs/sdl-image-1.2
+ >=media-libs/sdl-mixer-1.2
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-gcc44.patch
+ sed -i \
+ -e '/^\(gnu\)\?localedir /s:= .*:= /usr/share/locale:' \
+ po/Makefile.in.in \
+ || die "sed failed"
+ sed -i \
+ -e '/^INCLUDES/s:\$(datadir)/locale:/usr/share/locale:' \
+ src/Makefile.in \
+ || die "sed failed"
+}
+
+src_configure() {
+ egamesconf $(use_enable nls)
+}
+
+src_install() {
+ default
+ newicon data/ima/icono.png ${PN}.png
+ make_desktop_entry ceferino "Don Ceferino Hazaña"
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ if ! has_version "media-libs/sdl-mixer[mod]" ; then
+ ewarn
+ ewarn "To hear music, you will have to rebuild media-libs/sdl-mixer"
+ ewarn "with the \"mod\" USE flag turned on."
+ ewarn
+ fi
+}
diff --git a/games-arcade/ceferino/files/ceferino-0.97.8-gcc44.patch b/games-arcade/ceferino/files/ceferino-0.97.8-gcc44.patch
new file mode 100644
index 000000000000..96944dd382bb
--- /dev/null
+++ b/games-arcade/ceferino/files/ceferino-0.97.8-gcc44.patch
@@ -0,0 +1,11 @@
+--- src/nivel.h
++++ src/nivel.h
+@@ -34,7 +34,7 @@
+ class nivel
+ {
+ public:
+- void iniciar(juego *_pjuego, grafico *grafico, grafico *pfondos, SDL_Surface *fondo);
++ void iniciar(juego *_pjuego, grafico *_grafico, grafico *pfondos, SDL_Surface *fondo);
+ int avanzar_nivel(int salto = 1);
+ int reiniciar_nivel(void);
+ int get_dist_suelo(int x, int y, int max);
diff --git a/games-arcade/ceferino/metadata.xml b/games-arcade/ceferino/metadata.xml
new file mode 100644
index 000000000000..d3c2cc926f0b
--- /dev/null
+++ b/games-arcade/ceferino/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+</pkgmetadata>
diff --git a/games-arcade/circuslinux/Manifest b/games-arcade/circuslinux/Manifest
new file mode 100644
index 000000000000..a9c89b263ed3
--- /dev/null
+++ b/games-arcade/circuslinux/Manifest
@@ -0,0 +1 @@
+DIST circuslinux-1.0.3.tar.gz 1253839 SHA256 bf9550ebd598a9e7d93a20d80ff466475122f8b023314bb1e07c31e8c608ce8a SHA512 292bcaad39342ad69862f1add36b11505ca5f2601637a8db6fad438c5a4b32d7801bc7e6c08b903b0fb8bf68dcb3ec8d968fb913cde65941b9b9ac64b5a5266f WHIRLPOOL 735d87965107297f139971bcdcb5bb10bd996f5a355062c207f656c65089b305eb96bfc1c76a9a1c61a9a1a0d092ab386b8fc87b359470e8eec58fe9925fe4a3
diff --git a/games-arcade/circuslinux/circuslinux-1.0.3.ebuild b/games-arcade/circuslinux/circuslinux-1.0.3.ebuild
new file mode 100644
index 000000000000..1ead4fc8861a
--- /dev/null
+++ b/games-arcade/circuslinux/circuslinux-1.0.3.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="clone of the Atari 2600 game \"Circus Atari\""
+SRC_URI="ftp://ftp.sonic.net/pub/users/nbs/unix/x/circus-linux/${P}.tar.gz"
+HOMEPAGE="http://www.newbreedsoftware.com/circus-linux/"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha amd64 ppc ~sparc x86"
+IUSE=""
+
+DEPEND="media-libs/libsdl
+ media-libs/sdl-image[png]
+ media-libs/sdl-mixer[mod]"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ sed -i \
+ -e "/^install-data-am/d" \
+ Makefile.in \
+ || die
+ sed -i \
+ -e 's/\$(pkgdatadir)/$(DESTDIR)&/' \
+ data/Makefile.in \
+ || die
+}
+
+src_install () {
+ emake DESTDIR="${D}" install
+ newicon data/images/${PN}-icon.xpm ${PN}.xpm
+ make_desktop_entry ${PN} "Circus Linux!"
+ dodoc *.txt
+ prepgamesdirs
+}
diff --git a/games-arcade/circuslinux/metadata.xml b/games-arcade/circuslinux/metadata.xml
new file mode 100644
index 000000000000..d3c2cc926f0b
--- /dev/null
+++ b/games-arcade/circuslinux/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+</pkgmetadata>
diff --git a/games-arcade/cob/Manifest b/games-arcade/cob/Manifest
new file mode 100644
index 000000000000..cf7ef0b556fc
--- /dev/null
+++ b/games-arcade/cob/Manifest
@@ -0,0 +1 @@
+DIST cob-0.9.tar.gz 712618 SHA256 e065bc5a3dabb7c4709cbfc4c44e683c815b95c2a0c4d80d26feb3e4833cf60e SHA512 1a329bb06a25137c1dc9d65cff949ed1b0ca7445ecf897375be71581c35f0bc563008fc7607d650a660a405f2282b0329148487bd29b6a053478b61d932bdf4d WHIRLPOOL 58932942761cec6cf8df27bea86b84786c6655c263fb58c55dcb826901879f0e3501dbf010d7784c2780c881574a0995e1a705f90fcce7fb4286099949f43fd1
diff --git a/games-arcade/cob/cob-0.9.ebuild b/games-arcade/cob/cob-0.9.ebuild
new file mode 100644
index 000000000000..b1812b28dc82
--- /dev/null
+++ b/games-arcade/cob/cob-0.9.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="Cruising on Broadway: a painting-type game"
+HOMEPAGE="http://www.autismuk.freeserve.co.uk/"
+SRC_URI="http://www.autismuk.freeserve.co.uk/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha amd64 ppc ~sparc x86 ~x86-fbsd"
+IUSE=""
+
+DEPEND="media-libs/libsdl[joystick,sound,video]"
+RDEPEND=${DEPEND}
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-gcc43.patch \
+ "${FILESDIR}"/${P}-gcc44.patch
+}
+
+src_install() {
+ default
+ prepgamesdirs
+}
diff --git a/games-arcade/cob/files/cob-0.9-gcc43.patch b/games-arcade/cob/files/cob-0.9-gcc43.patch
new file mode 100644
index 000000000000..6b1f574628df
--- /dev/null
+++ b/games-arcade/cob/files/cob-0.9-gcc43.patch
@@ -0,0 +1,26 @@
+--- cob/menu.cpp
++++ cob/menu.cpp
+@@ -16,6 +16,7 @@
+ ***************************************************************************/
+
+ #include "cob.hxx"
++#include <cstring>
+
+ // **************************************************************************************************************************
+ //
+--- cob/sdw.hxx
++++ cob/sdw.hxx
+@@ -19,6 +19,7 @@
+
+ #include <iostream>
+ #include <string>
++#include <cstdlib>
+
+ namespace SDLWrapper // It's all nicely in a namespace SDLWrapper
+ {
+@@ -192,4 +193,4 @@
+ AudioNoise(int l) : AudioBeep(0,l) { }
+ };
+
+-};
++}
diff --git a/games-arcade/cob/files/cob-0.9-gcc44.patch b/games-arcade/cob/files/cob-0.9-gcc44.patch
new file mode 100644
index 000000000000..dd90b388e6d8
--- /dev/null
+++ b/games-arcade/cob/files/cob-0.9-gcc44.patch
@@ -0,0 +1,30 @@
+--- cob/game.cpp
++++ cob/game.cpp
+@@ -15,6 +15,7 @@
+ * *
+ ***************************************************************************/
+
++#include <cstdio>
+ #include "cob.hxx"
+
+ // **************************************************************************************************************************
+--- cob/main.cpp
++++ cob/main.cpp
+@@ -15,6 +15,7 @@
+ * *
+ ***************************************************************************/
+
++#include <cstdio>
+ #include "cob.hxx"
+
+ // **************************************************************************************************************************
+--- cob/map.cpp
++++ cob/map.cpp
+@@ -15,6 +15,7 @@
+ * *
+ ***************************************************************************/
+
++#include <cstdio>
+ #include "cob.hxx"
+
+ // **************************************************************************************************************************
diff --git a/games-arcade/cob/metadata.xml b/games-arcade/cob/metadata.xml
new file mode 100644
index 000000000000..d3c2cc926f0b
--- /dev/null
+++ b/games-arcade/cob/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+</pkgmetadata>
diff --git a/games-arcade/commandergenius/Manifest b/games-arcade/commandergenius/Manifest
new file mode 100644
index 000000000000..b2b9fc037f1b
--- /dev/null
+++ b/games-arcade/commandergenius/Manifest
@@ -0,0 +1 @@
+DIST CGenius-1.8.0.0-Release-Source.tar.gz 22863637 SHA256 131cbc12d711d1c168baf89f1f9e0e4e9560049c21f42399d913c09c619e6153 SHA512 4e4dc91a5cfabfcace9db2fa85fe2d3dbe91396760cdf37372a12270782ac29906cbeb05b7e48bdf3a64eb042d3b7e209d3370f20ad8b8dfbc1d8c59a95abba9 WHIRLPOOL e8c3068a956fc62ecbd6d134cc4d16e96249555463b41e4193cf6796229a5ecc3e02398914d34ac8cc481978d6df0107c70d6ace635f05e3ae742efd3150ee17
diff --git a/games-arcade/commandergenius/commandergenius-1.8.0.0.ebuild b/games-arcade/commandergenius/commandergenius-1.8.0.0.ebuild
new file mode 100644
index 000000000000..2e3466b7c7b1
--- /dev/null
+++ b/games-arcade/commandergenius/commandergenius-1.8.0.0.ebuild
@@ -0,0 +1,92 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+CMAKE_IN_SOURCE_BUILD=1
+inherit cmake-utils eutils games
+
+MY_P=CGenius-${PV}-Release-Source
+DESCRIPTION="Open Source Commander Keen clone (needs original game files)"
+HOMEPAGE="http://clonekeenplus.sourceforge.net"
+SRC_URI="mirror://sourceforge/clonekeenplus/CGenius/V${PV:0:3}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="opengl tremor"
+RESTRICT="mirror" # contains keen files, but we do not install them
+
+RDEPEND="media-libs/libsdl2[X,opengl?,sound,video]
+ media-libs/sdl2-image
+ opengl? ( virtual/opengl )
+ tremor? ( media-libs/tremor )
+ !tremor? ( media-libs/libvorbis )"
+DEPEND="${RDEPEND}
+ dev-libs/boost
+ virtual/pkgconfig"
+
+S=${WORKDIR}/CGenius-${PV}-Release-Source
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-install.patch
+
+ rm -rf vfsroot || die
+
+ cat <<-EOF > version.h
+ #ifndef __CG__VERSION_H__
+ #define __CG__VERSION_H__
+
+ #define CGVERSION "${PV}-Release"
+
+ #endif
+ EOF
+
+ sed -i \
+ -e '/INCLUDE(package.cmake)/d' \
+ CMakeLists.txt || die
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DAPPDIR="${GAMES_BINDIR}"
+ -DSHAREDIR="/usr/share"
+ -DGAMES_SHAREDIR="${GAMES_DATADIR}"
+ -DDOCDIR="/usr/share/doc/${PF}"
+ -DBUILD_TARGET="LINUX"
+ $(cmake-utils_use opengl OPENGL)
+ $(cmake-utils_use tremor TREMOR)
+ $(cmake-utils_use !tremor OGG)
+ -DUSE_SDL2=1
+ )
+
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+}
+
+src_install() {
+ cmake-utils_src_install
+ newicon CGLogo.png ${PN}.png
+ newgamesbin "${FILESDIR}"/commandergenius-wrapper commandergenius
+ if [[ -e "${ED}${GAMES_BINDIR}"/CGeniusExe ]] ; then
+ mv "${ED}${GAMES_BINDIR}"/CGeniusExe \
+ "${ED}${GAMES_BINDIR}"/CommanderGenius || die
+ fi
+
+ make_desktop_entry commandergenius
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ elog "Check your settings in ~/.CommanderGenius/cgenius.cfg"
+ elog "after you have started the game for the first time."
+ use opengl && elog "You may also want to set \"OpenGL = true\""
+ elog
+ elog "Run the game via:"
+ elog " 'commandergenius [path-to-keen-data]'"
+ elog "or add your keen data dir to the search paths in cgenius.cfg"
+}
diff --git a/games-arcade/commandergenius/files/commandergenius-1.8.0.0-install.patch b/games-arcade/commandergenius/files/commandergenius-1.8.0.0-install.patch
new file mode 100644
index 000000000000..ea502bdde9bb
--- /dev/null
+++ b/games-arcade/commandergenius/files/commandergenius-1.8.0.0-install.patch
@@ -0,0 +1,20 @@
+--- CGenius-1.8.0.0-Release-Source.orig/src/install.cmake
++++ CGenius-1.8.0.0-Release-Source/src/install.cmake
+@@ -22,7 +22,7 @@
+
+ # This will copy the resources files to the proper directory
+ IF(IS_DIRECTORY "${CMAKE_SOURCE_DIR}/vfsroot")
+- INSTALL(DIRECTORY vfsroot/
++ INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}vfsroot/
+ DESTINATION ${DATADIR})
+ ENDIF(IS_DIRECTORY "${CMAKE_SOURCE_DIR}/vfsroot")
+
+@@ -31,7 +31,7 @@
+ DESTINATION ${DOCDIR})
+
+ # This will copy the readme file.
+-INSTALL(FILES changelog.txt
++INSTALL(FILES ${CMAKE_SOURCE_DIR}/changelog.txt
+ DESTINATION ${DOCDIR})
+
+ # Windows might not have those dlls so we ship them with the packages
diff --git a/games-arcade/commandergenius/files/commandergenius-wrapper b/games-arcade/commandergenius/files/commandergenius-wrapper
new file mode 100644
index 000000000000..0fa5243a5df0
--- /dev/null
+++ b/games-arcade/commandergenius/files/commandergenius-wrapper
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+# CommanderGenius by default searches pwd for keen data which can cause
+# massive load/lag depending on which dir you are currently in.
+# This wrapper cd's into ~/.CommanderGenius unless you pass a directory
+# on the command line which is used as additional search path then.
+#
+# use: commandergenius [path-to-keen-dir]
+
+if [ -z $1 ] ; then
+ SEARCHDIR=~/.CommanderGenius
+else
+ SEARCHDIR="$1"
+fi
+
+cd ${SEARCHDIR}
+
+exec CommanderGenius "$@"
diff --git a/games-arcade/commandergenius/metadata.xml b/games-arcade/commandergenius/metadata.xml
new file mode 100644
index 000000000000..7fb3a298b1c0
--- /dev/null
+++ b/games-arcade/commandergenius/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>games</herd>
+ <use>
+ <flag name="tremor">
+ Use <pkg>media-libs/tremor</pkg> as ogg decoder
+ instead of <pkg>media-libs/libvorbis</pkg>
+ </flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">clonekeenplus</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-arcade/conveysdl/Manifest b/games-arcade/conveysdl/Manifest
new file mode 100644
index 000000000000..3dc75202c658
--- /dev/null
+++ b/games-arcade/conveysdl/Manifest
@@ -0,0 +1 @@
+DIST conveysdl.1.3.tar 429568 SHA256 d0de3f8435b6189d2f40fbe5a28f903fbd46d94b53daf10efa53b879346c81cf SHA512 fe6f91cdd63ae1019cb99613618e44ceeddb4080ad5e50bd8ce0abf27e057617d3658a29b2faf668cbc3b0887f1a4a05cadadb060f69d850c3d85c9e7190dd8a WHIRLPOOL 3a4de5f5305f44626afd9aef5365b1048fb4972593cf31d3ccff3d9d57acd0fe4304eeaec7b4dd0b005064ef038d87a0a2eb3041fb994df53de534ef997b0f8c
diff --git a/games-arcade/conveysdl/conveysdl-1.3.ebuild b/games-arcade/conveysdl/conveysdl-1.3.ebuild
new file mode 100644
index 000000000000..76e33015e9e6
--- /dev/null
+++ b/games-arcade/conveysdl/conveysdl-1.3.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils toolchain-funcs games
+
+DESCRIPTION="Guide the blob along the conveyer belt collecting the red blobs"
+HOMEPAGE="http://www.cloudsprinter.com/software/conveysdl/"
+SRC_URI="http://www.cloudsprinter.com/software/conveysdl/${P/-/.}.tar"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86 ~x86-fbsd"
+IUSE=""
+
+DEPEND="media-libs/libsdl[sound,video]
+ media-libs/sdl-mixer"
+RDEPEND=${DEPEND}
+
+S=${WORKDIR}
+
+src_prepare() {
+ # Incomplete readme
+ sed -i \
+ -e 's:I k:use -nosound to disable sound\n\nI k:' \
+ readme || die
+
+ sed -i \
+ -e 's:SDL_Mi:SDL_mi:' \
+ main.c || die
+
+ epatch \
+ "${FILESDIR}"/${P}-arrays.patch \
+ "${FILESDIR}"/${P}-speed.patch
+}
+
+src_compile() {
+ emake main \
+ CC="$(tc-getCC)" \
+ CFLAGS="${CFLAGS} $(sdl-config --cflags) \
+ -DDATA_PREFIX=\\\"${GAMES_DATADIR}/${PN}/\\\" \
+ -DENABLE_SOUND" \
+ LDLIBS="-lSDL_mixer $(sdl-config --libs)"
+}
+
+src_install() {
+ newgamesbin main ${PN}
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r gfx sounds levels
+ newicon gfx/jblob.bmp ${PN}.bmp
+ make_desktop_entry ${PN} Convey /usr/share/pixmaps/${PN}.bmp
+ dodoc readme
+ prepgamesdirs
+}
diff --git a/games-arcade/conveysdl/files/conveysdl-1.3-arrays.patch b/games-arcade/conveysdl/files/conveysdl-1.3-arrays.patch
new file mode 100644
index 000000000000..a3894e58d3d3
--- /dev/null
+++ b/games-arcade/conveysdl/files/conveysdl-1.3-arrays.patch
@@ -0,0 +1,29 @@
+--- main.c.org 2010-07-28 13:16:20.552161148 +0300
++++ main.c 2010-07-29 20:43:14.714543259 +0300
+@@ -22,7 +22,7 @@
+
+ SDL_Surface *bletters;
+ SDL_Surface *letters[100];
+-SDL_Surface *tiles[9];
++SDL_Surface *tiles[10];
+ SDL_Surface *btiles;
+ SDL_Surface *blob;
+ SDL_Surface *jblob;
+@@ -51,7 +51,7 @@
+ FILE *file_ptr;
+
+
+-int bpointx,bpointy,pointx,pointy,jug,death,goose,jump,jumpf,blibs,spr[1000][8],leveldone,level,lives,totallevels,blobx[7],bloby[7],blobp[7],score,bak,bok,buk,bik,start,blibo,blibs,die,jumpoo=12,speed=4,arse,highscore;
++int bpointx,bpointy,pointx,pointy,jug,death,goose,jump,jumpf,blibs,spr[1000][8],leveldone,level,lives,totallevels,blobx[8],bloby[8],blobp[8],score,bak,bok,buk,bik,start,blibo,blibs,die,jumpoo=12,speed=4,arse,highscore;
+ /* Keys */
+ int quit = 0;
+ int spacebar = 0;
+@@ -452,7 +452,7 @@
+ static void info(void)
+ {
+ int monkey=70,munk;
+- char scoremonkey[10];
++ char scoremonkey[16];
+ if (lives>1) {
+ for (munk=1 ; munk<lives ; munk++ )
+ {
diff --git a/games-arcade/conveysdl/files/conveysdl-1.3-speed.patch b/games-arcade/conveysdl/files/conveysdl-1.3-speed.patch
new file mode 100644
index 000000000000..2b5a6205650c
--- /dev/null
+++ b/games-arcade/conveysdl/files/conveysdl-1.3-speed.patch
@@ -0,0 +1,56 @@
+--- org/main.c 2010-07-30 10:41:21.392783010 +0300
++++ main.c 2010-07-30 10:44:35.791690958 +0300
+@@ -52,6 +52,7 @@
+
+
+ int bpointx,bpointy,pointx,pointy,jug,death,goose,jump,jumpf,blibs,spr[1000][8],leveldone,level,lives,totallevels,blobx[8],bloby[8],blobp[8],score,bak,bok,buk,bik,start,blibo,blibs,die,jumpoo=12,speed=4,arse,highscore;
++int realspeed;
+ /* Keys */
+ int quit = 0;
+ int spacebar = 0;
+@@ -140,6 +141,7 @@
+ char path[256],jib[50];
+ int lvspx,lvspy;
+ bpointx=200;bpointy=400;pointx=200;pointy=400;jug=1;death=0;jump=0;jumpf=0;jug=0;blibs=0;blibo=0;die=0;speed=4;
++ realspeed=speed;
+ strcpy(path, DATA_PREFIX);
+ sprintf(jib,"levels/level%d",level);
+ strcat(path, jib);
+@@ -212,15 +214,16 @@
+ if (jumpf==jumpoo) { jump=0; }
+ if (jumpf==jumpoo*2) { jumpf=0; }
+ }
+- score+=speed;
++ score+=realspeed;
+ /*crap*/
+ }
+
+ static void plotfloor(void)
+ {
++ if (bpointy==400) realspeed=speed;
+ int nob,nx,nobx=48,ek,ej,el;
+- bpointx-=speed*2;
+- bpointy+=speed;
++ bpointx-=realspeed*2;
++ bpointy+=realspeed;
+ pointx=bpointx;
+ pointy=bpointy;
+ imageplot(bb, blobx[6], bloby[6] );
+@@ -542,7 +545,7 @@
+ }
+ while ( jump_down==0 );
+ leveldone=3;
+- speed=4;
++ speed=4; realspeed=speed;
+ blankscreen();
+ }
+
+@@ -563,7 +566,7 @@
+ if (quit>0) break;
+ }
+ while ( jump_down==0 );
+- speed=4;
++ speed=4; realspeed=speed;
+ lives+=1;
+ level+=1;
+ getlevel();
diff --git a/games-arcade/conveysdl/metadata.xml b/games-arcade/conveysdl/metadata.xml
new file mode 100644
index 000000000000..d3c2cc926f0b
--- /dev/null
+++ b/games-arcade/conveysdl/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+</pkgmetadata>
diff --git a/games-arcade/cosmosmash/Manifest b/games-arcade/cosmosmash/Manifest
new file mode 100644
index 000000000000..bce3b2a91b03
--- /dev/null
+++ b/games-arcade/cosmosmash/Manifest
@@ -0,0 +1 @@
+DIST cosmosmash-1.4.7.tar.gz 906213 SHA256 3f0af3355e31fef9413d3c318f02b64ad6c427f0048d6e15868e51a5ac22b14b SHA512 1eaf8b05550c6f96e6392f6ba4565700cd4a9cac66dd57d634569caf9b4dfaf4917b3b9973153d4e6e0ddcd65c68d5242faae7c4f516c07c2e07d1b2f3b838b9 WHIRLPOOL 7234288c3e6a90b5625e203c221e7c662ac6ef7968134c6c1f963d6405812bfbef986179db93c1914010406e1f02312f3059a9722214324f41a2ddbd33c2b668
diff --git a/games-arcade/cosmosmash/cosmosmash-1.4.7.ebuild b/games-arcade/cosmosmash/cosmosmash-1.4.7.ebuild
new file mode 100644
index 000000000000..758438090bab
--- /dev/null
+++ b/games-arcade/cosmosmash/cosmosmash-1.4.7.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit autotools games
+
+DESCRIPTION="A space rock shooting video game"
+HOMEPAGE="http://perso.b2b2c.ca/sarrazip/dev/cosmosmash.html"
+SRC_URI="http://perso.b2b2c.ca/sarrazip/dev/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+RESTRICT="test" # uses the sound card which portage user might not be available.
+
+RDEPEND=">=dev-games/flatzebra-0.1.6"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ sed -i \
+ -e "/^pkgsounddir/ s:sounds.*:\$(PACKAGE)/sounds:" \
+ -e "/^desktopentrydir/ s:=.*:=/usr/share/applications:" \
+ -e "/^pixmapdir/ s:=.*:=/usr/share/pixmaps:" \
+ src/Makefile.am \
+ || die
+ eautoreconf
+}
+
+src_install() {
+ emake -C src DESTDIR="${D}" install
+ doman doc/${PN}.6
+ dodoc AUTHORS NEWS README THANKS
+ prepgamesdirs
+}
diff --git a/games-arcade/cosmosmash/metadata.xml b/games-arcade/cosmosmash/metadata.xml
new file mode 100644
index 000000000000..112b2c3dc17e
--- /dev/null
+++ b/games-arcade/cosmosmash/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+<longdescription lang="en">
+Afternoon Stalker, a clone of the 1981 Night Stalker video game by Mattel
+Electronics.
+</longdescription>
+</pkgmetadata>
diff --git a/games-arcade/crack-attack/Manifest b/games-arcade/crack-attack/Manifest
new file mode 100644
index 000000000000..de9cb9a28c5c
--- /dev/null
+++ b/games-arcade/crack-attack/Manifest
@@ -0,0 +1 @@
+DIST crack-attack-1.1.14.tar.bz2 801404 SHA256 1e23e019f8740cd01fb3fbbb7903137b1e8971a8e9d0692da069106b8a0382e8 SHA512 1afc1a59e25359a82cabc33a1f999e1166dcf74c031c29a366f8414989bc7c32b9a40e467ee40a37901f2bd08f4569fed25c4d3021b1a75254614840410a7bfa WHIRLPOOL f0509c015e779bffae0ed7c4ac370fa5d9aa10d9e6546a14468c45f84a9d1de8457cc2b7c45fc479d06101f4424e6d699174b40375ebd6c5c224a707f31df731
diff --git a/games-arcade/crack-attack/crack-attack-1.1.14-r1.ebuild b/games-arcade/crack-attack/crack-attack-1.1.14-r1.ebuild
new file mode 100644
index 000000000000..369b2cedb050
--- /dev/null
+++ b/games-arcade/crack-attack/crack-attack-1.1.14-r1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="Addictive OpenGL-based block game"
+HOMEPAGE="http://www.nongnu.org/crack-attack/"
+SRC_URI="http://savannah.nongnu.org/download/crack-attack/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 arm hppa ia64 ppc sparc x86"
+IUSE="gtk sdl"
+
+RDEPEND="media-libs/freeglut
+ sdl? ( media-libs/libsdl
+ media-libs/sdl-mixer )
+ gtk? ( >=x11-libs/gtk+-2.6:2 )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-glut.patch \
+ "${FILESDIR}"/${P}-gcc43.patch
+ sed -i 's/-lXmu//' src/gtk-gui/Makefile.in src/Makefile.in || die
+ touch -r . * */*
+}
+
+src_configure() {
+ egamesconf \
+ --disable-binreloc \
+ $(use_enable sdl sound) \
+ $(use_enable gtk)
+}
+
+src_install() {
+ default
+ dohtml -A xpm doc/*
+ doicon data/crack-attack.xpm
+ make_desktop_entry crack-attack Crack-attack
+ prepgamesdirs
+}
diff --git a/games-arcade/crack-attack/files/crack-attack-1.1.14-gcc43.patch b/games-arcade/crack-attack/files/crack-attack-1.1.14-gcc43.patch
new file mode 100644
index 000000000000..009d062f2eac
--- /dev/null
+++ b/games-arcade/crack-attack/files/crack-attack-1.1.14-gcc43.patch
@@ -0,0 +1,10 @@
+--- src/Game.h
++++ src/Game.h
+@@ -34,6 +34,7 @@
+ #include <climits>
+ #include <cstdlib>
+ #include <cmath>
++#include <cstring>
+
+ #ifdef __MINGW32__
+ # include <windows.h>
diff --git a/games-arcade/crack-attack/files/crack-attack-1.1.14-glut.patch b/games-arcade/crack-attack/files/crack-attack-1.1.14-glut.patch
new file mode 100644
index 000000000000..fc16c1b8bc4e
--- /dev/null
+++ b/games-arcade/crack-attack/files/crack-attack-1.1.14-glut.patch
@@ -0,0 +1,14 @@
+Fix from upstream to work with newer freegluts.
+
+http://bugs.gentoo.org/97954
+
+--- src/Attack.cxx
++++ src/Attack.cxx
+@@ -83,6 +83,7 @@
+ int height = -1, width = -1;
+
+ player_name[0] = '\0';
++ glutInit(&argc, argv);
+ parseCommandLine(argc, argv, mode, port, host_name, player_name, height, width);
+ run_crack_attack(mode, port, host_name, player_name, height, width);
+
diff --git a/games-arcade/crack-attack/metadata.xml b/games-arcade/crack-attack/metadata.xml
new file mode 100644
index 000000000000..d3c2cc926f0b
--- /dev/null
+++ b/games-arcade/crack-attack/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+</pkgmetadata>
diff --git a/games-arcade/criticalmass/Manifest b/games-arcade/criticalmass/Manifest
new file mode 100644
index 000000000000..ce4717f7622d
--- /dev/null
+++ b/games-arcade/criticalmass/Manifest
@@ -0,0 +1 @@
+DIST CriticalMass-1.0.2.tar.bz2 5122126 SHA256 846db2d30d39e559612328594084a7aef980169948b2cfaee9fddec8ffdef724 SHA512 af3200adc4b6ed9f24eaa89ef5b2f31e8d09e402d0c2eef8db604afcbb2d36bad48e76c3c11c1b2410d2d4e0ffd8554e2e9749a8c8cc4752b4636b8919a66037 WHIRLPOOL 647dc5b82069cb1c26335f3b590f9fe675e319310933f83799c1b4ab2319ba51285c6dc260c110f0e61b76e8f4cf9b3e0ede4bb8f90a49b0cfa31c83b64ed273
diff --git a/games-arcade/criticalmass/criticalmass-1.0.2.ebuild b/games-arcade/criticalmass/criticalmass-1.0.2.ebuild
new file mode 100644
index 000000000000..2864aacd9f3a
--- /dev/null
+++ b/games-arcade/criticalmass/criticalmass-1.0.2.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit autotools eutils games
+
+DESCRIPTION="SDL/OpenGL space shoot'em up game"
+HOMEPAGE="http://criticalmass.sourceforge.net/"
+SRC_URI="mirror://sourceforge/criticalmass/CriticalMass-${PV}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE=""
+
+DEPEND="media-libs/sdl-mixer
+ media-libs/sdl-image[png]
+ media-libs/libpng:0
+ virtual/opengl
+ net-misc/curl"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/CriticalMass-${PV}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-gcc43.patch \
+ "${FILESDIR}"/${P}-system_curl.patch \
+ "${FILESDIR}"/${P}-libpng14.patch \
+ "${FILESDIR}"/${P}-cflags.patch \
+ "${FILESDIR}"/${P}-libpng15.patch
+ rm -rf curl
+ eautoreconf
+}
+
+src_install() {
+ default
+ rm -f "${D}${GAMES_BINDIR}/Packer"
+ dohtml Readme.html
+ newicon critter.png ${PN}.png
+ make_desktop_entry critter "Critical Mass"
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ if ! has_version "media-libs/sdl-mixer[mod]" ; then
+ ewarn
+ ewarn "To hear music, you will have to rebuild media-libs/sdl-mixer"
+ ewarn "with the \"mod\" USE flag turned on."
+ ewarn
+ fi
+}
diff --git a/games-arcade/criticalmass/files/criticalmass-1.0.2-cflags.patch b/games-arcade/criticalmass/files/criticalmass-1.0.2-cflags.patch
new file mode 100644
index 000000000000..8b801e51c2cb
--- /dev/null
+++ b/games-arcade/criticalmass/files/criticalmass-1.0.2-cflags.patch
@@ -0,0 +1,27 @@
+--- configure.in.orig 2011-07-20 11:23:19.849122541 -0400
++++ configure.in 2011-07-20 11:24:28.169713094 -0400
+@@ -35,9 +35,6 @@
+ AM_CONDITIONAL(APPLE,test "x$TARGET" = xAPPLE)
+ AM_CONDITIONAL(WIN32,test "x$TARGET" = xWIN32)
+
+-CFLAGS=""
+-CXXFLAGS=""
+-
+ if test "x$GCC" = xyes; then
+ CFLAGS="$CFLAGS -W -Wall"
+ CXXFLAGS="$CXXFLAGS -W -Wall -fno-exceptions"
+@@ -51,14 +48,6 @@
+ CXXFLAGS="$CXXFLAGS -g"
+ fi
+
+-AC_ARG_ENABLE(optimize,
+-[ --enable-optimize=level Enable optimization [default=2]],
+- enable_optmize=$enableval, enable_optimize=2)
+-if test "x$enable_optimize" != "xno" ; then
+- CFLAGS="$CFLAGS -O$enable_optimize"
+- CXXFLAGS="$CXXFLAGS -O$enable_optimize"
+-fi
+-
+ AC_ARG_ENABLE(dyngl,
+ [ --enable-dyngl Load GL library dynamically [default=off]],
+ enable_dyngl=$enableval, enable_dyngl=off)
diff --git a/games-arcade/criticalmass/files/criticalmass-1.0.2-gcc43.patch b/games-arcade/criticalmass/files/criticalmass-1.0.2-gcc43.patch
new file mode 100644
index 000000000000..e57c11f5af28
--- /dev/null
+++ b/games-arcade/criticalmass/files/criticalmass-1.0.2-gcc43.patch
@@ -0,0 +1,101 @@
+--- CriticalMass-1.0.0.orig/tinyxml/tinyxml.cpp 2003-03-03 03:34:58.000000000 +0100
++++ CriticalMass-1.0.0/tinyxml/tinyxml.cpp 2008-04-18 19:40:35.000000000 +0200
+@@ -21,10 +21,12 @@
+ distribution.
+ */
+
+ #include "tinyxml.h"
+
++#include <cstring>
++
+
+ TiXmlNode::TiXmlNode( NodeType _type )
+ {
+ parent = 0;
+ type = _type;
+--- CriticalMass-1.0.0.orig/tinyxml/tinyxml.h 2003-03-03 03:34:58.000000000 +0100
++++ CriticalMass-1.0.0/tinyxml/tinyxml.h 2008-04-18 19:40:35.000000000 +0200
+@@ -28,10 +28,11 @@
+ #ifdef _MSC_VER
+ #pragma warning( disable : 4530 )
+ #pragma warning( disable : 4786 )
+ #endif
+
++#include <cstdlib>
+ #include <string>
+ #include <stdio.h>
+ #include <assert.h>
+
+ class TiXmlDocument;
+--- CriticalMass-1.0.0.orig/tinyxml/tinyxmlparser.cpp 2003-03-03 03:34:58.000000000 +0100
++++ CriticalMass-1.0.0/tinyxml/tinyxmlparser.cpp 2008-04-18 19:40:35.000000000 +0200
+@@ -23,10 +23,12 @@
+
+
+ #include "tinyxml.h"
+ #include <ctype.h>
+
++#include <cstring>
++
+ const char* TiXmlBase::SkipWhiteSpace( const char* p )
+ {
+ while ( p && *p &&
+ ( isspace( *p ) || *p == '\n' || *p == '\r' ) )
+ p++;
+--- CriticalMass-1.0.0.orig/utils/ResourceManager.cpp 2005-01-02 03:59:29.000000000 +0100
++++ CriticalMass-1.0.0/utils/ResourceManager.cpp 2008-04-18 19:40:35.000000000 +0200
+@@ -20,10 +20,12 @@
+ #include <ResourceManager.hpp>
+ #include <FindHash.hpp>
+ #include <Endian.hpp>
+ #include <WalkDirectory.hpp>
+
++#include <cstring>
++
+ #ifdef WIN32
+ const char PATH_SEPERATOR = '\\';
+ #else
+ const char PATH_SEPERATOR = '/';
+ #endif
+--- CriticalMass-1.0.0.orig/utils/Value.hpp 2004-12-18 03:41:24.000000000 +0100
++++ CriticalMass-1.0.0/utils/Value.hpp 2008-04-18 19:40:35.000000000 +0200
+@@ -13,10 +13,11 @@
+ // FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details
+ //
+ #ifndef _Value_hpp_
+ #define _Value_hpp_
+
++#include <cstdlib>
+ #include <stdio.h>
+ #include <string>
+
+ #include <Trace.hpp>
+
+--- CriticalMass-1.0.0.orig/utils/zStreamBufferImplZLib.cpp 2005-07-31 22:06:14.000000000 +0200
++++ CriticalMass-1.0.0/utils/zStreamBufferImplZLib.cpp 2008-04-18 19:40:35.000000000 +0200
+@@ -10,10 +10,11 @@
+ //
+ // This program is distributed in the hope that it will be useful, but WITHOUT
+ // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ // FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details
+ //
++#include <cstdlib>
+ #include <Trace.hpp>
+ #include <zStreamBufferImplZLib.hpp>
+
+ bool ziStreamBufferImplZLib::init( void)
+ {
+--- CriticalMass-1.0.0.orig/utils/zStream.cpp 2005-07-31 22:06:14.000000000 +0200
++++ CriticalMass-1.0.0/utils/zStream.cpp 2008-04-18 19:40:35.000000000 +0200
+@@ -10,10 +10,11 @@
+ //
+ // This program is distributed in the hope that it will be useful, but WITHOUT
+ // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ // FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details
+ //
++#include <cstdlib>
+ #include <Trace.hpp>
+ #include <Endian.hpp>
+ #include <zStream.hpp>
+ #include <zStreamBufferImplLZMA.hpp>
+ #include <zStreamBufferImplZLib.hpp>
diff --git a/games-arcade/criticalmass/files/criticalmass-1.0.2-libpng14.patch b/games-arcade/criticalmass/files/criticalmass-1.0.2-libpng14.patch
new file mode 100644
index 000000000000..882869b43a14
--- /dev/null
+++ b/games-arcade/criticalmass/files/criticalmass-1.0.2-libpng14.patch
@@ -0,0 +1,11 @@
+--- configure.in
++++ configure.in
+@@ -99,7 +99,7 @@ if test "x$TARGET" = xWIN32; then
+ else
+ LIBS="-L/usr/local/lib -L/usr/X11R6/lib $LIBS"
+ CXXFLAGS="$CXXFLAGS -I/usr/X11R6/include"
+- AC_CHECK_LIB(png12, main,, AC_MSG_ERROR(libpng is needed))
++ AC_CHECK_LIB(png, main,, AC_MSG_ERROR(libpng is needed))
+ AC_CHECK_LIB(z, main,, AC_MSG_ERROR(libz is needed))
+ if test "x$TARGET" = xUNIX; then
+ if test "x$enable_dyngl" = xoff; then
diff --git a/games-arcade/criticalmass/files/criticalmass-1.0.2-libpng15.patch b/games-arcade/criticalmass/files/criticalmass-1.0.2-libpng15.patch
new file mode 100644
index 000000000000..ac1b8c0c617f
--- /dev/null
+++ b/games-arcade/criticalmass/files/criticalmass-1.0.2-libpng15.patch
@@ -0,0 +1,31 @@
+--- game/main.cpp
++++ game/main.cpp
+@@ -28,6 +28,8 @@
+ #include <sys/stat.h>
+ #include <sys/types.h>
+
++#include <zlib.h>
++
+ void migrateConfig( void)
+ {
+ //if onlineCheck is not set, default it to true
+--- utilssdl/PNG.cpp
++++ utilssdl/PNG.cpp
+@@ -45,7 +45,7 @@
+ {
+ png_size_t check;
+
+- check = fwrite( data, 1, length, (FILE *)(png->io_ptr));
++ check = fwrite( data, 1, length, (FILE *)(png_get_io_ptr(png)));
+ if( check != length)
+ {
+ png_error( png, "Write Error");
+@@ -72,7 +72,7 @@
+ return false;
+ }
+
+- if( setjmp(_png->jmpbuf))
++ if( setjmp(png_jmpbuf(_png)))
+ {
+ fclose( fp);
+ png_destroy_write_struct(&_png, (png_infopp)NULL);
diff --git a/games-arcade/criticalmass/files/criticalmass-1.0.2-system_curl.patch b/games-arcade/criticalmass/files/criticalmass-1.0.2-system_curl.patch
new file mode 100644
index 000000000000..02307ad7d8fc
--- /dev/null
+++ b/games-arcade/criticalmass/files/criticalmass-1.0.2-system_curl.patch
@@ -0,0 +1,33 @@
+--- configure.in
++++ configure.in
+@@ -115,8 +115,6 @@ fi
+ AC_CHECK_LIB(m, sin,,
+ AC_MSG_ERROR(libm is needed))
+
+-AC_CONFIG_SUBDIRS(curl)
+-
+ AC_OUTPUT(Makefile utils/Makefile utilssdl/Makefile utilsgl/Makefile game/Makefile tools/Makefile data/Makefile data/music/Makefile tinyxml/Makefile)
+
+ echo "Configuration:
+--- game/Makefile.am
++++ game/Makefile.am
+@@ -41,7 +41,7 @@ critter_SOURCES = \
+ main.cpp
+
+ LDADD = \
+- ../curl/lib/libcurl.a \
++ -lcurl \
+ ../utils/libutils.a \
+ ../utilssdl/libutilssdl.a \
+ ../utilsgl/libutilsgl.a \
+--- Makefile.am
++++ Makefile.am
+@@ -4,7 +4,7 @@
+ AUTOMAKE_OPTIONS = 1.4
+
+ ## Any directories that you want built and installed should go here.
+-SUBDIRS = curl tinyxml utils utilssdl utilsgl tools data game
++SUBDIRS = tinyxml utils utilssdl utilsgl tools data game
+
+ ## Any directories you want a part of the distribution should be listed
+ ## here, as well as have a Makefile generated at the end of configure.in
diff --git a/games-arcade/criticalmass/metadata.xml b/games-arcade/criticalmass/metadata.xml
new file mode 100644
index 000000000000..8b6d907abada
--- /dev/null
+++ b/games-arcade/criticalmass/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>games</herd>
+ <upstream>
+ <remote-id type="sourceforge">criticalmass</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-arcade/defendguin/Manifest b/games-arcade/defendguin/Manifest
new file mode 100644
index 000000000000..686dee5e871b
--- /dev/null
+++ b/games-arcade/defendguin/Manifest
@@ -0,0 +1 @@
+DIST defendguin-0.0.12.tar.gz 2235694 SHA256 3c248bed480b291901b7509525dc952be6d28dfa47fd6f8e3fb9873f46017330 SHA512 3a62c7ac62b016eeb6fc63655e8a8c1ac6c5c7cae7eee03c4ab0b9951ba605c7634336d94adb538e94ccbf1d9f927ac530f58da87413a4b1555b2684681e4167 WHIRLPOOL bf47e55ff09d396342df42233ae68f3a66fb968d825aec92d7de534b075e45921b12dc44d07571c3d59b637dfe325552ff06ac881a45948fb82520f143737e4b
diff --git a/games-arcade/defendguin/defendguin-0.0.12.ebuild b/games-arcade/defendguin/defendguin-0.0.12.ebuild
new file mode 100644
index 000000000000..8f5d2f1cca75
--- /dev/null
+++ b/games-arcade/defendguin/defendguin-0.0.12.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="A clone of the arcade game Defender, but with a Linux theme"
+HOMEPAGE="http://www.newbreedsoftware.com/defendguin/"
+SRC_URI="ftp://ftp.tuxpaint.org/unix/x/${PN}/src/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc ~sparc x86 ~x86-fbsd"
+IUSE=""
+
+DEPEND="media-libs/sdl-mixer[mod]
+ media-libs/libsdl[video]"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ sed -i \
+ -e "s:\$(DATA_PREFIX):${GAMES_DATADIR}/${PN}/:" \
+ -e '/^CFLAGS=.*-O2/d' \
+ -e '/^CFLAGS=/s:=:+= $(LDFLAGS) :' \
+ Makefile \
+ || die
+ rm -f data/images/*.sh
+}
+
+src_install() {
+ dogamesbin ${PN}
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r ./data/*
+ newicon data/images/ufo/ufo0.bmp ${PN}.bmp
+ make_desktop_entry ${PN} Defendguin /usr/share/pixmaps/${PN}.bmp
+ doman src/${PN}.6
+ dodoc docs/{AUTHORS,CHANGES,README,TODO}.txt
+ prepgamesdirs
+}
diff --git a/games-arcade/defendguin/metadata.xml b/games-arcade/defendguin/metadata.xml
new file mode 100644
index 000000000000..d3c2cc926f0b
--- /dev/null
+++ b/games-arcade/defendguin/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+</pkgmetadata>
diff --git a/games-arcade/diameter/Manifest b/games-arcade/diameter/Manifest
new file mode 100644
index 000000000000..3c0d19d749c7
--- /dev/null
+++ b/games-arcade/diameter/Manifest
@@ -0,0 +1 @@
+DIST diameter-0.4.0.3.tar.bz2 4729201 SHA256 553f6402b81d2a7c79862830b9cee5a93c1e8197f6597835486f8d79cc57bce0 SHA512 74491d49b233f16b44e4ea7c477fe5c6d71bc88c34b815f7992ea881558e2b4de98b10c5041cff6d0a6098dc4f440291825fb1746ff0282e3f538fac4ee4975d WHIRLPOOL fe06ed6b502e9281de4be94fde73a91c42c7498dae69f44b56a50f503c53a2864d6427881fe5bc3946943c0dce5b2c379c1ec25f53c56b95e6781b7d330f7481
diff --git a/games-arcade/diameter/diameter-0.4.0.3-r1.ebuild b/games-arcade/diameter/diameter-0.4.0.3-r1.ebuild
new file mode 100644
index 000000000000..fab59946eeec
--- /dev/null
+++ b/games-arcade/diameter/diameter-0.4.0.3-r1.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+inherit python-any-r1 eutils autotools games
+
+DESCRIPTION="Arcade game with elements of economy and adventure"
+HOMEPAGE="http://gamediameter.sourceforge.net/"
+SRC_URI="mirror://sourceforge/gamediameter/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND=">=dev-games/guichan-0.8[opengl,sdl]
+ media-libs/libpng:0=
+ virtual/opengl
+ virtual/glu
+ media-libs/libsdl[video]
+ media-libs/sdl-image[gif,jpeg,png]
+ media-libs/sdl-mixer[mod]
+ ${PYTHON_DEPS}"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+S=${WORKDIR}/gamediameter
+
+src_prepare() {
+ sed -i \
+ -e "s:gamediameter:diameter:" \
+ configure.in || die
+ mv configure.in configure.ac || die
+ # bug #336812
+ sed -i \
+ -e '/gui nebular3.gif/s/gui//' \
+ data/texture/Makefile.am || die
+ eautoreconf
+}
+
+src_install() {
+ default
+ newicon data/texture/gui/eng/main/logo.png ${PN}.png
+ make_desktop_entry ${PN} Diameter
+ prepgamesdirs
+}
diff --git a/games-arcade/diameter/metadata.xml b/games-arcade/diameter/metadata.xml
new file mode 100644
index 000000000000..359e555a56b2
--- /dev/null
+++ b/games-arcade/diameter/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>games</herd>
+ <longdescription lang="en">
+"Diameter" - is an arcade-style game with elements of economy and adventure.
+Project's main objective is to make a distinctive game with a storm gameplay and
+simultaneously alluring with its world. Plus, the main mood will be funny, but
+thus be serious.
+</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">gamediameter</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-arcade/digger/Manifest b/games-arcade/digger/Manifest
new file mode 100644
index 000000000000..a25169b14b59
--- /dev/null
+++ b/games-arcade/digger/Manifest
@@ -0,0 +1 @@
+DIST digger-20140423.tar.gz 117375 SHA256 44a77e1b88409f7427bd2958d1f18648b18a1e9631d0e78fee90957e5ad5cfa0 SHA512 9277c6dc4d7f74aeede379b42aeeef881d8fd927ef0e6f6c0e1a5f76be257244c4353758557209647812b942d215dd992939b190ef11f854b41ee2ceaab7eece WHIRLPOOL 15d08563b32e766f8f18888136c004a263a1951ea56f4d0a666d222cad966d8647f3d4ecebfa2d960fc6b0ae7fdf8538c7bfe432f03baec4352d0a99f676437b
diff --git a/games-arcade/digger/digger-20140423.ebuild b/games-arcade/digger/digger-20140423.ebuild
new file mode 100644
index 000000000000..694857006016
--- /dev/null
+++ b/games-arcade/digger/digger-20140423.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="Digger Remastered"
+HOMEPAGE="http://www.digger.org/"
+SRC_URI="https://gitorious.org/digger/digger/archive/8d5769c59d68b37a5b30aa7a9cbfa5a9e15e7ed3.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ~ppc64 ~sparc x86 ~x86-fbsd"
+
+DEPEND="media-libs/libsdl[X,video]
+ x11-libs/libX11"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${PN}-${PN}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-ldflags.patch
+}
+
+src_install() {
+ dogamesbin digger
+ dodoc digger.txt
+ make_desktop_entry digger Digger
+ prepgamesdirs
+}
diff --git a/games-arcade/digger/files/digger-20140423-ldflags.patch b/games-arcade/digger/files/digger-20140423-ldflags.patch
new file mode 100644
index 000000000000..fd1e9953b634
--- /dev/null
+++ b/games-arcade/digger/files/digger-20140423-ldflags.patch
@@ -0,0 +1,21 @@
+diff -ru digger-digger.orig/Makefile digger-digger/Makefile
+--- digger-digger.orig/Makefile 2013-10-11 04:56:41.000000000 -0400
++++ digger-digger/Makefile 2014-04-24 13:11:58.749211920 -0400
+@@ -26,7 +26,7 @@
+ ifeq ($(ARCH),"LINUX")
+ OBJS += fbsd_sup.o # strup()
+ RCFLAGS += -DLINUX $(shell sdl-config --cflags)
+-LIBS += $(shell sdl-config --libs) -lz
++LIBS += $(shell sdl-config --libs) -lX11 -lz
+ ESUFFIX =
+ endif
+
+@@ -40,7 +40,7 @@
+ all: digger$(ESUFFIX)
+
+ digger$(ESUFFIX): $(OBJS)
+- $(CC) -o digger$(ESUFFIX) $(OBJS) $(LIBS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o digger$(ESUFFIX) $(OBJS) $(LIBS)
+
+ $(OBJS): %.o: %.c
+ $(CC) -c $(RCFLAGS) $(CFLAGS) $< -o $@
diff --git a/games-arcade/digger/metadata.xml b/games-arcade/digger/metadata.xml
new file mode 100644
index 000000000000..d3c2cc926f0b
--- /dev/null
+++ b/games-arcade/digger/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+</pkgmetadata>
diff --git a/games-arcade/dynamitejack/Manifest b/games-arcade/dynamitejack/Manifest
new file mode 100644
index 000000000000..19448ceb83bb
--- /dev/null
+++ b/games-arcade/dynamitejack/Manifest
@@ -0,0 +1 @@
+DIST dynamitejack-1.0.23.tgz 54195417 SHA256 aa5fbc27d6931753373e7af99a9521e335a4a5b38a7be0fc8e82c2191b3302e2 SHA512 57897194244ded8d41ef0e7704fd973a58fe52dbc01b7dceed2a47694f7cc3e75d732547532bc7be4dd7d510572dedb85188da413b5857f52182799427243c4d WHIRLPOOL 78d09068461ff8d11cb1a73ec94d160e085636f3d6f1933f0210b12505319c74a0d23daf66814fc23ad0c1c6e1a1dc6cb45adf783376d5573a949d5c3f9a1f4d
diff --git a/games-arcade/dynamitejack/dynamitejack-1.0.23-r1.ebuild b/games-arcade/dynamitejack/dynamitejack-1.0.23-r1.ebuild
new file mode 100644
index 000000000000..9f2e49b3cc49
--- /dev/null
+++ b/games-arcade/dynamitejack/dynamitejack-1.0.23-r1.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+# TODO: icon
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="A stealth game with bombs in glorious 2D"
+HOMEPAGE="http://www.galcon.com/dynamitejack/"
+SRC_URI="${P}.tgz"
+
+LICENSE="all-rights-reserved"
+SLOT="0"
+KEYWORDS="-* amd64 x86"
+IUSE=""
+RESTRICT="bindist fetch splitdebug"
+
+MYGAMEDIR=${GAMES_PREFIX_OPT}/${PN}
+QA_PREBUILT="${MYGAMEDIR#/}/bin/*"
+
+# linked to pulseaudio
+RDEPEND="
+ >=virtual/opengl-7.0-r1[abi_x86_32(-)]
+ >=media-libs/alsa-lib-1.0.27.2[abi_x86_32(-)]
+ >=media-libs/flac-1.2.1-r5[abi_x86_32(-)]
+ >=media-libs/libogg-1.3.0[abi_x86_32(-)]
+ >=media-libs/libsdl-1.2.15-r4[X,sound,joystick,opengl,video,abi_x86_32(-)]
+ >=media-libs/libsndfile-1.0.25[abi_x86_32(-)]
+ >=media-libs/libvorbis-1.3.3-r1[abi_x86_32(-)]
+ >=media-sound/pulseaudio-2.1-r1[abi_x86_32(-)]
+ >=virtual/glu-9.0-r1[abi_x86_32(-)]
+ >=x11-libs/libICE-1.0.8-r1[abi_x86_32(-)]
+ >=x11-libs/libSM-1.2.1-r1[abi_x86_32(-)]
+ >=x11-libs/libX11-1.6.2[abi_x86_32(-)]
+ >=x11-libs/libXau-1.0.7-r1[abi_x86_32(-)]
+ >=x11-libs/libxcb-1.9.1[abi_x86_32(-)]
+ >=x11-libs/libXdmcp-1.1.1-r1[abi_x86_32(-)]
+ >=x11-libs/libXext-1.3.2[abi_x86_32(-)]
+ >=x11-libs/libXi-1.7.2[abi_x86_32(-)]
+ >=x11-libs/libXtst-1.2.1-r1[abi_x86_32(-)]"
+
+S=${WORKDIR}/${PN}
+
+pkg_nofetch() {
+ einfo "Please buy & download ${SRC_URI} from:"
+ einfo " ${HOMEPAGE}"
+ einfo "and move it to ${DISTDIR}"
+}
+
+src_prepare() {
+ rm run_me || die
+ mv LINUX.txt "${T}"/ || die
+}
+
+src_install() {
+ dodoc "${T}"/LINUX.txt
+
+ insinto "${MYGAMEDIR}"
+ doins -r *
+
+ games_make_wrapper ${PN} "./main" "${MYGAMEDIR}/bin"
+ make_desktop_entry ${PN}
+
+ fperms +x "${MYGAMEDIR}"/bin/main
+ prepgamesdirs
+}
diff --git a/games-arcade/dynamitejack/metadata.xml b/games-arcade/dynamitejack/metadata.xml
new file mode 100644
index 000000000000..01a746edb196
--- /dev/null
+++ b/games-arcade/dynamitejack/metadata.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>games</herd>
+</pkgmetadata>
+
diff --git a/games-arcade/emilia-pinball/Manifest b/games-arcade/emilia-pinball/Manifest
new file mode 100644
index 000000000000..05892b8bd7f5
--- /dev/null
+++ b/games-arcade/emilia-pinball/Manifest
@@ -0,0 +1 @@
+DIST pinball-0.3.1.tar.gz 6082982 SHA256 ba47989f7fb6e294faa95285563220c8b01c3dbb9aa1bc29828eb7e832855cb8 SHA512 d54f2635f583be8a7e4bf3463c69c1ab368e1c069dd7c4edffb95df0448faf7e82ddb8f8607d22a7336e2db176134555ca65b613e9d008b38fecb8ad5a818498 WHIRLPOOL 1a0e0a5aa3e890a5f05e106fe53af67eb2692c7ad4e84f8eeb6ae97d014444616a7cdbb3d5ff4ac34671a307bbef01de215dba2f104d1e2c9a2eb9101efd0c59
diff --git a/games-arcade/emilia-pinball/emilia-pinball-0.3.1-r1.ebuild b/games-arcade/emilia-pinball/emilia-pinball-0.3.1-r1.ebuild
new file mode 100644
index 000000000000..0778efd94d9a
--- /dev/null
+++ b/games-arcade/emilia-pinball/emilia-pinball-0.3.1-r1.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit autotools eutils games
+
+MY_PN=${PN/emilia-/}
+MY_P=${MY_PN}-${PV}
+DESCRIPTION="SDL OpenGL pinball game"
+HOMEPAGE="http://pinball.sourceforge.net/"
+SRC_URI="mirror://sourceforge/pinball/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc ~sparc x86"
+IUSE=""
+
+# Drop the libtool dep once libltdl goes stable.
+RDEPEND="virtual/opengl
+ x11-libs/libSM
+ media-libs/libsdl[joystick,opengl,video,X]
+ media-libs/sdl-image[png]
+ media-libs/sdl-mixer[vorbis]
+ || ( dev-libs/libltdl:0 <sys-devel/libtool-2.4.3-r2:2 )"
+DEPEND="${RDEPEND}
+ x11-libs/libXt"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ sed -i -e '/dnl/d' {src,test}/Makefile.am || die #334899
+ epatch "${FILESDIR}"/${P}-glibc210.patch \
+ "${FILESDIR}"/${P}-libtool.patch \
+ "${FILESDIR}"/${P}-gcc46.patch \
+ "${FILESDIR}"/${P}-parallel.patch
+ rm -rf libltdl
+ eautoreconf
+}
+
+src_configure() {
+ egamesconf --with-x
+}
+
+src_compile() {
+ emake CXXFLAGS="${CXXFLAGS}"
+}
+
+src_install() {
+ default
+ dosym "${GAMES_BINDIR}"/pinball "${GAMES_BINDIR}"/emilia-pinball
+ mv "${D}/${GAMES_PREFIX}/include" "${D}/usr/" || die
+ dodir /usr/bin
+ mv "${D}/${GAMES_BINDIR}/pinball-config" "${D}/usr/bin/" || die
+ sed -i \
+ -e 's:-I${prefix}/include/pinball:-I/usr/include/pinball:' \
+ "${D}"/usr/bin/pinball-config || die
+ newicon data/pinball.xpm ${PN}.xpm
+ make_desktop_entry emilia-pinball "Emilia pinball"
+ prepgamesdirs
+}
diff --git a/games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-gcc46.patch b/games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-gcc46.patch
new file mode 100644
index 000000000000..d78779197fce
--- /dev/null
+++ b/games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-gcc46.patch
@@ -0,0 +1,30 @@
+--- base/SignalSender.cpp.old 2011-04-26 09:39:24.303339444 +0200
++++ base/SignalSender.cpp 2011-04-26 09:39:51.261063162 +0200
+@@ -11,6 +11,7 @@
+ #include "SignalSender.h"
+ #include "Group.h"
+ #include "Behavior.h"
++#include <cstddef>
+
+ SignalSender * SignalSender::p_SignalSender = NULL;
+
+--- base/Behavior.cpp.old 2011-04-26 09:36:27.129006665 +0200
++++ base/Behavior.cpp 2011-04-26 09:36:48.855396752 +0200
+@@ -9,6 +9,7 @@
+ #include "Private.h"
+ #include "Behavior.h"
+ #include "Group.h"
++#include <cstddef>
+
+ Behavior::Behavior() {
+ //EM_COUT("Behavior::Behavior", 1);
+--- base/BehaviorVisitor.cpp.old 2011-04-26 09:37:39.759653248 +0200
++++ base/BehaviorVisitor.cpp 2011-04-26 09:37:54.481594952 +0200
+@@ -9,6 +9,7 @@
+ #include "BehaviorVisitor.h"
+ #include "Behavior.h"
+ #include "Group.h"
++#include <cstddef>
+
+ BehaviorVisitor * BehaviorVisitor::p_BehaviorVisitor = NULL;
+
diff --git a/games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-glibc210.patch b/games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-glibc210.patch
new file mode 100644
index 000000000000..800dbeae21a7
--- /dev/null
+++ b/games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-glibc210.patch
@@ -0,0 +1,13 @@
+--- base/Config.cpp
++++ base/Config.cpp
+@@ -423,8 +423,8 @@
+ m_sDataDir = string(EM_DATADIR) + "/";
+ m_sExeDir = "./";
+ if ( *( m_sDataDir.c_str() ) != '/' ) {
+- char* ptr=0;
+- char* ptrw = 0;
++ const char* ptr=0;
++ const char* ptrw = 0;
+ //cout<<"relative to exe file"<<endl;
+ ptr = (strrchr(argv0,'/')); // unix /cygwin / check win32
+ #ifdef WIN32
diff --git a/games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-libtool.patch b/games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-libtool.patch
new file mode 100644
index 000000000000..437e4eb684a4
--- /dev/null
+++ b/games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-libtool.patch
@@ -0,0 +1,64 @@
+diff -ur pinball-0.3.1.orig/configure.ac pinball-0.3.1/configure.ac
+--- pinball-0.3.1.orig/configure.ac 2003-11-21 09:40:18.000000000 +0200
++++ pinball-0.3.1/configure.ac 2010-03-05 20:41:24.000000000 +0200
+@@ -14,18 +14,13 @@
+ CFLAGS="-g -W -Wall -O2"
+ CXXFLAGS="-g -W -Wall -O2"
+
+-AC_CONFIG_SUBDIRS(libltdl)
+-
+ dnl Checks for programs.
+ AC_PROG_CC
+ AC_PROG_CXX
+ AC_PROG_INSTALL
+-AC_LIBTOOL_DLOPEN
+-AC_LIBLTDL_CONVENIENCE
+-AC_PROG_LIBTOOL
+
+-AC_SUBST(INCLTDL)
+-AC_SUBST(LIBLTDL)
++LT_PREREQ([2.2.6])
++LT_INIT([dlopen])
+
+ dnl *******************************************
+ dnl PATHS AND DIRS ****************************
+diff -ur pinball-0.3.1.orig/Makefile.am pinball-0.3.1/Makefile.am
+--- pinball-0.3.1.orig/Makefile.am 2003-12-10 12:15:35.000000000 +0200
++++ pinball-0.3.1/Makefile.am 2010-03-05 20:36:48.000000000 +0200
+@@ -1,6 +1,6 @@
+ AUTOMAKE_OPTIONS = gnu
+
+-SUBDIRS = libltdl addon base data src test
++SUBDIRS = addon base data src test
+
+ EXTRA_DIST = bootstrap pinball.spec clean pinball.desktop
+
+diff -ur pinball-0.3.1.orig/src/Makefile.am pinball-0.3.1/src/Makefile.am
+--- pinball-0.3.1.orig/src/Makefile.am 2003-11-20 18:46:17.000000000 +0200
++++ pinball-0.3.1/src/Makefile.am 2010-03-05 20:37:08.000000000 +0200
+@@ -7,9 +7,9 @@
+
+ pinlib_LIBRARIES = libemilia_pin.a
+
+-INCLUDES = -I../base -I../addon @INCLTDL@
++INCLUDES = -I../base -I../addon
+
+-pinball_LDADD = ../src/libemilia_pin.a ../addon/libemilia_addon.a ../base/libemilia_base.a @LIBLTDL@
++pinball_LDADD = ../src/libemilia_pin.a ../addon/libemilia_addon.a ../base/libemilia_base.a -lltdl
+ pinball_LDFLAGS = -export-dynamic
+
+ pinball_SOURCES = Pinball.cpp
+diff -ur pinball-0.3.1.orig/test/Makefile.am pinball-0.3.1/test/Makefile.am
+--- pinball-0.3.1.orig/test/Makefile.am 2003-11-20 18:46:17.000000000 +0200
++++ pinball-0.3.1/test/Makefile.am 2010-03-05 20:36:38.000000000 +0200
+@@ -6,8 +6,8 @@
+ noinst_PROGRAMS = scale simple light texture load explode collision signal billboard font thread menu joy sound trans math misc varray unittest
+ dnl noinst_PROGRAMS = unittest
+
+-INCLUDES = -I../base -I../addon -I../src @INCLTDL@
+-LDADD = ../src/libemilia_pin.a ../addon/libemilia_addon.a ../base/libemilia_base.a @LIBLTDL@
++INCLUDES = -I../base -I../addon -I../src
++LDADD = ../src/libemilia_pin.a ../addon/libemilia_addon.a ../base/libemilia_base.a -lltdl
+
+ testlib_LTLIBRARIES = libModuleTest.la
+
diff --git a/games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-parallel.patch b/games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-parallel.patch
new file mode 100644
index 000000000000..3dfef56090c9
--- /dev/null
+++ b/games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-parallel.patch
@@ -0,0 +1,11 @@
+--- src/Makefile.am.old 2011-04-26 10:46:05.102070461 +0200
++++ src/Makefile.am 2011-04-26 10:46:16.872813136 +0200
+@@ -9,7 +9,7 @@
+
+ INCLUDES = -I../base -I../addon
+
+-pinball_LDADD = ../src/libemilia_pin.a ../addon/libemilia_addon.a ../base/libemilia_base.a -lltdl
++pinball_LDADD = libemilia_pin.a ../addon/libemilia_addon.a ../base/libemilia_base.a -lltdl
+ pinball_LDFLAGS = -export-dynamic
+
+ pinball_SOURCES = Pinball.cpp
diff --git a/games-arcade/emilia-pinball/metadata.xml b/games-arcade/emilia-pinball/metadata.xml
new file mode 100644
index 000000000000..169596646163
--- /dev/null
+++ b/games-arcade/emilia-pinball/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>games</herd>
+ <upstream>
+ <remote-id type="sourceforge">pinball</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-arcade/epiar/Manifest b/games-arcade/epiar/Manifest
new file mode 100644
index 000000000000..9269c568669a
--- /dev/null
+++ b/games-arcade/epiar/Manifest
@@ -0,0 +1 @@
+DIST epiar-0.5.0-src.zip 8809392 SHA256 ec81babd5e5149d1104264fe218bebf83b84e1819c50066d17f71fb2184b21a4
diff --git a/games-arcade/epiar/epiar-0.5-r1.ebuild b/games-arcade/epiar/epiar-0.5-r1.ebuild
new file mode 100644
index 000000000000..c80f7b4ae0fc
--- /dev/null
+++ b/games-arcade/epiar/epiar-0.5-r1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit flag-o-matic eutils games
+
+DESCRIPTION="A space adventure/combat game"
+HOMEPAGE="http://epiar.net/"
+SRC_URI="mirror://sourceforge/epiar/${P}.0-src.zip"
+
+LICENSE="GPL-2 LGPL-2.1"
+SLOT="0"
+KEYWORDS="ppc x86 ~x86-fbsd"
+IUSE=""
+
+RDEPEND="media-libs/libsdl[video]
+ media-libs/sdl-image[png]"
+DEPEND="${RDEPEND}
+ x11-libs/libX11
+ virtual/opengl
+ app-arch/unzip"
+
+S=${WORKDIR}
+
+src_prepare() {
+ sed -i \
+ -e "/^CFLAGS/s:-pg -g:${CFLAGS} ${LDFLAGS}:" \
+ Makefile.linux || die
+ epatch \
+ "${FILESDIR}"/${P}-paths.patch \
+ "${FILESDIR}"/${P}-gcc41.patch \
+ "${FILESDIR}"/${P}-Makefile.linux.patch \
+ "${FILESDIR}"/${P}-underlink.patch
+ sed -i \
+ -e "s:GENTOO_DATADIR:${GAMES_DATADIR}/${PN}/:" \
+ src/main.c || die
+}
+
+src_compile() {
+ emake -f Makefile.linux
+}
+
+src_install() {
+ dogamesbin epiar
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r missions *.eaf
+ keepdir "${GAMES_DATADIR}"/${PN}/plugins
+ dodoc AUTHORS ChangeLog README
+ prepgamesdirs
+}
diff --git a/games-arcade/epiar/files/0.5-gentoo-paths.patch b/games-arcade/epiar/files/0.5-gentoo-paths.patch
new file mode 100644
index 000000000000..b46f56195aa7
--- /dev/null
+++ b/games-arcade/epiar/files/0.5-gentoo-paths.patch
@@ -0,0 +1,59 @@
+--- src/system/path.c.orig 2004-03-28 04:42:23.329963224 -0500
++++ src/system/path.c 2004-03-28 04:42:47.375307776 -0500
+@@ -187,6 +187,7 @@
+ free(stripped);
+ if (argv)
+ free(argv);
++ goto portage_path;
+ return (0);
+ }
+
+@@ -212,6 +213,11 @@
+ free(stripped);
+ if (argv)
+ free(argv);
++
++portage_path:
++ if (game_path) free(game_path);
++ game_path = (char *)malloc(sizeof(char) * strlen("/usr/share/games/epiar/\0"));
++ sprintf(game_path, "/usr/share/games/epiar/");
+
+ return (0);
+ }
+--- src/input/input.c.orig 2004-03-28 04:48:49.925191816 -0500
++++ src/input/input.c 2004-03-28 04:52:57.184602672 -0500
+@@ -240,7 +240,10 @@
+ *
+ ******************************************************************************/
+ int load_input_cfg(void) {
+- FILE *fp = fopen("./.epiar-input.ecf", "rb");
++ char filename[1024];
++ FILE *fp;
++ snprintf(filename, 1000, "%s/.epiar-input.ecf", getenv("HOME"));
++ fp = fopen(filename, "rb");
+
+ /* make sure all keys are enabled */
+ unlock_keys();
+@@ -282,7 +285,7 @@
+ } else {
+ float file_version = 0.0f;
+ /* read the file into the struct */
+- fp = fopen("./.epiar-input.ecf", "rb");
++ fp = fopen(filename, "rb");
+
+ if (fp == NULL) {
+ fprintf(stdout, "Could not open \"./.epiar-input.ecf\" for reading, assuming default bindings.\n");
+@@ -472,10 +475,12 @@
+ }
+
+ void save_keybindings(void) {
++ char filename[1024];
+ float file_version = 0.2f;
+ FILE *fp;
+
+- fp = fopen("./.epiar-input.ecf", "wb");
++ snprintf(filename, 1000, "%s/.epiar-input.ecf", getenv("HOME"));
++ fp = fopen(filename, "wb");
+ if (fp == NULL) {
+ fprintf(stdout, "Could not create '~/.epiar-input.ecf' to save keybindings\n");
+ return;
diff --git a/games-arcade/epiar/files/epiar-0.5-Makefile.linux.patch b/games-arcade/epiar/files/epiar-0.5-Makefile.linux.patch
new file mode 100644
index 000000000000..3086bd13ef9a
--- /dev/null
+++ b/games-arcade/epiar/files/epiar-0.5-Makefile.linux.patch
@@ -0,0 +1,20 @@
+--- Makefile.linux.old 2007-04-05 16:42:30 +0000
++++ Makefile.linux 2007-04-05 16:42:47 +0000
+@@ -24,7 +24,7 @@
+ @echo Building Epiar 0.5.0 ...
+ @$(CC) $(CFLAGS) -I/usr/X11R6/lib/ $(OBJS) -o epiar $(LIBS)
+ @echo Building plugins ...
+- @make -f Makefile.linux plugin
++ @$(MAKE) -f Makefile.linux plugin
+ @echo Epiar 0.5.0 build complete.
+ @echo
+ @echo Type './epiar' to play.
+@@ -33,7 +33,7 @@
+ @echo Building Epiar 0.5.0 and linking statically ...
+ @$(CC) $(CFLAGS) -L/usr/X11R6/lib -L/opt/gnome-2.1/lib $(OBJS) -o epiar $(STATIC_LIBS)
+ @echo Building plugins ...
+- @make plugin
++ @$(MAKE) plugin
+ @echo Epiar 0.5.0 build complete.
+ @echo
+ @echo Type './epiar' to play.
diff --git a/games-arcade/epiar/files/epiar-0.5-gcc41.patch b/games-arcade/epiar/files/epiar-0.5-gcc41.patch
new file mode 100644
index 000000000000..65f08b2691d1
--- /dev/null
+++ b/games-arcade/epiar/files/epiar-0.5-gcc41.patch
@@ -0,0 +1,10 @@
+--- src/game/game.h.old 2006-04-23 22:13:36.000000000 +0200
++++ src/game/game.h 2006-04-23 22:13:50.000000000 +0200
+@@ -2,7 +2,6 @@
+ #include "includes.h"
+
+ extern Uint32 average_loop_time;
+-extern Uint32 game_start_time;
+ extern Uint32 total_play_time, total_frames_drawn;
+ extern float average_session_fps, current_fps;
+
diff --git a/games-arcade/epiar/files/epiar-0.5-paths.patch b/games-arcade/epiar/files/epiar-0.5-paths.patch
new file mode 100644
index 000000000000..41266c7272b1
--- /dev/null
+++ b/games-arcade/epiar/files/epiar-0.5-paths.patch
@@ -0,0 +1,86 @@
+--- src/input/input.c
++++ src/input/input.c
+@@ -240,7 +240,10 @@
+ *
+ ******************************************************************************/
+ int load_input_cfg(void) {
+- FILE *fp = fopen("./.epiar-input.ecf", "rb");
++ char filename[PATH_MAX];
++ FILE *fp;
++ snprintf(filename, sizeof(filename), "%s/.epiar-input.ecf", getenv("HOME"));
++ fp = fopen(filename, "rb");
+
+ /* make sure all keys are enabled */
+ unlock_keys();
+@@ -282,7 +285,7 @@
+ } else {
+ float file_version = 0.0f;
+ /* read the file into the struct */
+- fp = fopen("./.epiar-input.ecf", "rb");
++ fp = fopen(filename, "rb");
+
+ if (fp == NULL) {
+ fprintf(stdout, "Could not open \"./.epiar-input.ecf\" for reading, assuming default bindings.\n");
+@@ -472,10 +475,12 @@
+ }
+
+ void save_keybindings(void) {
++ char filename[PATH_MAX];
+ float file_version = 0.2f;
+ FILE *fp;
+
+- fp = fopen("./.epiar-input.ecf", "wb");
++ snprintf(filename, sizeof(filename), "%s/.epiar-input.ecf", getenv("HOME"));
++ fp = fopen(filename, "wb");
+ if (fp == NULL) {
+ fprintf(stdout, "Could not create '~/.epiar-input.ecf' to save keybindings\n");
+ return;
+--- src/main.c
++++ src/main.c
+@@ -16,7 +16,7 @@
+ unsigned char view_mode = 0;
+ int ship_to_follow = 0;
+ int desired_bpp = 16;
+-char *game_path;
++const char * const game_path = "GENTOO_DATADIR";
+ unsigned char use_ogl = 0;
+ unsigned char skip_intro = 0;
+ FILE *epiar_eaf = NULL, *main_eaf = NULL;
+@@ -78,8 +78,6 @@
+
+ parse_commandline(argc, argv);
+
+- get_absolute_path(argv[0]);
+-
+ init(desired_bpp);
+
+ menu();
+--- src/main.h
++++ src/main.h
+@@ -1,2 +1,2 @@
+ extern char epiar_version[6];
+-extern char *game_path;
++extern const char * const game_path;
+--- src/system/init.c
++++ src/system/init.c
+@@ -89,9 +89,6 @@
+ main_eaf = NULL;
+ }
+
+- assert(game_path != NULL);
+- free(game_path);
+- game_path = NULL;
+
+ if (average_loop_time == 0) average_loop_time = 18; /* in case they quit on menu */
+ #ifndef NDEBUG
+--- src/system/path.c
++++ src/system/path.c
+@@ -45,7 +45,7 @@
+ }
+ #endif
+
+-#ifdef LINUX
++#if 0
+ char *strip_path_of_binary(char *argv) {
+ int len = 0, i, blen = 0;
+ char *stripped = NULL;
diff --git a/games-arcade/epiar/files/epiar-0.5-underlink.patch b/games-arcade/epiar/files/epiar-0.5-underlink.patch
new file mode 100644
index 000000000000..13146cb68b27
--- /dev/null
+++ b/games-arcade/epiar/files/epiar-0.5-underlink.patch
@@ -0,0 +1,10 @@
+--- Makefile.linux.old 2011-06-22 15:15:50.000000000 +0200
++++ Makefile.linux 2011-06-22 15:17:01.000000000 +0200
+@@ -1,6 +1,6 @@
+ CFLAGS=-W -Wall `sdl-config --cflags` -Isrc/ -DLINUX -DDEVEL -export-dynamic -I/usr/include/SDL -I/usr/local/include/SDL -DBLIT_METHOD_2 -DNAUDIO -O2 -march=pentium4 -pipe -mfpmath=sse -ggdb -Wl,-O1 -Wl,--as-needed
+
+-LIBS=-lm `sdl-config --libs` -lSDL_image
++LIBS=-lm `sdl-config --libs` -lSDL_image -ldl
+ STATIC_LIBS=-lm /usr/local/lib/libSDL.a /usr/local/lib/libSDL_image.a /usr/local/lib/libSDL_ttf.a /usr/local/lib/libopenal.a /usr/local/lib/libvorbisfile.a /usr/local/lib/libvorbis.a /usr/local/lib/libogg.a /usr/lib/libpng.a /usr/lib/libz.a -lpthread -ldl -lfreetype /usr/lib/libjpeg.a -lX11 -lXext -lesd
+
+ OBJS=main.o init.o video.o backbuffer.o debug.o audio.o linux_video.o \
diff --git a/games-arcade/epiar/metadata.xml b/games-arcade/epiar/metadata.xml
new file mode 100644
index 000000000000..a48c9cd9695c
--- /dev/null
+++ b/games-arcade/epiar/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>games</herd>
+ <longdescription>
+Epiar is a space adventure/combat game written in C with SDL
+(Simple DirectMedia Layer). It is absolutely free (released
+under the General Public License v2).
+In Epiar, you begin as a shuttle pilot in a galaxy generally
+ruled by anarchy, with few stable governments and numerous
+rebel factions. You start your adventure off doing whatever
+you want, but generally trying to save up money for a new
+starship, and your adventure takes off from there ...
+</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">epiar</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-arcade/excido/Manifest b/games-arcade/excido/Manifest
new file mode 100644
index 000000000000..109adaf35683
--- /dev/null
+++ b/games-arcade/excido/Manifest
@@ -0,0 +1 @@
+DIST excido-0.1.5c-src.tar.bz2 2981629 SHA256 d53bcaf4e18265ece7c4206c91cdf26682ff1aeba917cb9d5bd2f4218ce364ef SHA512 9e1b98ed31eac735087f451c466d0e0d1b885ad5336f7994abf8f844b1c27cc24e90048306ffd62864fa5ab2bada6744b4b54991c6eb9b22624af20c645e02d7 WHIRLPOOL b85063e7b934953c3302bcc7ba1abc6c54263554b304844d059060c03a3fa486f21d9f7c3f1e96ad3441955b09e3ca2dd30b3bf3b4580f2007afaf11b74dc891
diff --git a/games-arcade/excido/excido-0.1.5c-r2.ebuild b/games-arcade/excido/excido-0.1.5c-r2.ebuild
new file mode 100644
index 000000000000..daf4feaa722a
--- /dev/null
+++ b/games-arcade/excido/excido-0.1.5c-r2.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="A fast paced action game"
+HOMEPAGE="http://icculus.org/excido/"
+SRC_URI="http://icculus.org/excido/${P}-src.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE=""
+
+DEPEND="dev-games/physfs
+ media-libs/libsdl[opengl]
+ media-libs/sdl-mixer
+ media-libs/sdl-ttf
+ media-libs/sdl-image[png]
+ media-libs/openal
+ media-libs/freealut"
+RDEPEND=${DEPEND}
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-freealut.patch \
+ "${FILESDIR}"/${P}-build.patch
+}
+
+src_compile() {
+ emake DATADIR="${GAMES_DATADIR}"/${PN}/
+}
+
+src_install() {
+ dogamesbin ${PN}
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins data/*
+ dodoc BUGS CHANGELOG HACKING README TODO \
+ keyguide.txt data/CREDITS data/*.txt
+ prepgamesdirs
+}
diff --git a/games-arcade/excido/files/excido-0.1.5c-build.patch b/games-arcade/excido/files/excido-0.1.5c-build.patch
new file mode 100644
index 000000000000..779d9c3f4066
--- /dev/null
+++ b/games-arcade/excido/files/excido-0.1.5c-build.patch
@@ -0,0 +1,29 @@
+--- Makefile
++++ Makefile
+@@ -1,8 +1,8 @@
+-CC=g++
+-CFLAGS=`sdl-config --cflags` #-g -Wall #-O2
++CXX?=g++
++CXXFLAGS+=$(shell sdl-config --cflags) #-g -Wall #-O2
+ #CFLAGS=`sdl-config --cflags` -I./physfs#-g -Wall #-O2
+ OBJS := ${patsubst %.cpp, %.o, ${wildcard src/*.cpp}}
+-LIBS = -s -Bstatic `sdl-config --static-libs` -lSDL_image -lSDL_ttf -L. -lphysfs -lopenal -Bdynamic -lGL -lGLU
++LIBS = $(shell sdl-config --libs) -lSDL_image -lSDL_ttf -lphysfs -lopenal -lalut -lGL -lGLU
+ #LIBS = -s -Bstatic `sdl-config --static-libs` SDL_image/*.o SDL_ttf/*.o -L. physfs/*.o openal/*.o -ljpeg -lpng -ltiff -lfreetype -Bdynamic -lGL -lGLU
+ PREFIX=/usr/local
+ BINDIR=$(PREFIX)/bin/
+@@ -16,12 +16,12 @@
+
+
+ .cpp.o:
+- $(CC) $(CFLAGS) $(DEFINES) -o ${patsubst %.cpp, %.o, $<} -c $<
++ $(CXX) $(CXXFLAGS) $(DEFINES) -o ${patsubst %.cpp, %.o, $<} -c $<
+
+ all: $(TARGET)
+
+ $(TARGET): $(OBJS)
+- $(CC) $(CFLAGS) -o $(TARGET) $(LIBS) $(OBJS)
++ $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $(TARGET) $(OBJS) $(LIBS)
+
+ clean:
+ rm -f $(OBJS) $(TARGET)
diff --git a/games-arcade/excido/files/excido-0.1.5c-freealut.patch b/games-arcade/excido/files/excido-0.1.5c-freealut.patch
new file mode 100644
index 000000000000..d0538083af1f
--- /dev/null
+++ b/games-arcade/excido/files/excido-0.1.5c-freealut.patch
@@ -0,0 +1,38 @@
+--- src/SoundCore.cpp
++++ src/SoundCore.cpp
+@@ -352,32 +352,13 @@
+
+ PHYSFS_close(filehandle);
+
+- ALenum format;
+- ALvoid *data;
+- ALsizei size,freq;
+- ALboolean loop=AL_FALSE;
+ ALenum error;
+
+ alGetError();
+
+- alGenBuffers(1,&newsample.alid);
+- if((error=alGetError())!=AL_NO_ERROR){
+- fprintf(stderr,"SoundCore::LoadSample: Error on alGenBuffers\n");
+- PrintALError(error);
+- }
+- alutLoadWAVMemory((ALbyte*)filedata,&format,&data,&size,&freq,&loop);
+- if((error=alGetError())!=AL_NO_ERROR){
+- fprintf(stderr,"SoundCore::LoadSample: Error on alutLoadWAVMemory\n");
+- PrintALError(error);
+- }
+- alBufferData(newsample.alid,format,data,size,freq);
+- if((error=alGetError())!=AL_NO_ERROR){
+- fprintf(stderr,"SoundCore::LoadSample: Error on alBufferData\n");
+- PrintALError(error);
+- }
+- alutUnloadWAV(format,data,size,freq);
+- if((error=alGetError())!=AL_NO_ERROR){
+- fprintf(stderr,"SoundCore::LoadSample: Error on alutUnloadWAV\n");
++ newsample.alid=alutCreateBufferFromFileImage(filedata, filesize);
++ if(((error=alGetError())!=AL_NO_ERROR)||(newsample.alid==AL_NONE)){
++ fprintf(stderr,"SoundCore::LoadSample: Error on alutCreateBufferFromFileImage\n");
+ PrintALError(error);
+ }
+
diff --git a/games-arcade/excido/metadata.xml b/games-arcade/excido/metadata.xml
new file mode 100644
index 000000000000..d3c2cc926f0b
--- /dev/null
+++ b/games-arcade/excido/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+</pkgmetadata>
diff --git a/games-arcade/fishsupper/Manifest b/games-arcade/fishsupper/Manifest
new file mode 100644
index 000000000000..ede8fd89bcd3
--- /dev/null
+++ b/games-arcade/fishsupper/Manifest
@@ -0,0 +1 @@
+DIST fishsupper-0.1.6.tar.gz 1136893 SHA256 d2d026ce9567fd6a86cb1c81458b540fd511d269d1af37c9e29df145091da3a8 SHA512 a6b3df47010e8ac186ff4446db3659fd9173e9e3fc973ab376eed46da9cd13f7a4c0c02b25f3427232252e7fe5728036fa91ea773affe0948387a56f617fc7af WHIRLPOOL 5bc48a1cbd0a41b45cb905de9e6592ea3fd52cb5426bcc0c224cb6f0bbcb3489454e06154f614d2df5db4af0c12b526acf7c05ee7361407f97fa463448ea1095
diff --git a/games-arcade/fishsupper/files/fishsupper-0.1.6-asneeded.patch b/games-arcade/fishsupper/files/fishsupper-0.1.6-asneeded.patch
new file mode 100644
index 000000000000..2aba6f099e88
--- /dev/null
+++ b/games-arcade/fishsupper/files/fishsupper-0.1.6-asneeded.patch
@@ -0,0 +1,11 @@
+--- src/Makefile.am.old 2012-06-24 18:47:58.947143638 +0200
++++ src/Makefile.am 2012-06-24 18:51:35.738921904 +0200
+@@ -1,7 +1,7 @@
+ AM_CPPFLAGS = -DPKG_DATA_DIR=\"$(pkgdatadir)\" \
+ @SDL_CFLAGS@ \
+ -Wall
+-AM_LDFLAGS = @SDL_LIBS@
++LDADD = @SDL_LIBS@
+
+ bin_PROGRAMS = fishsupper
+
diff --git a/games-arcade/fishsupper/files/fishsupper-0.1.6-ovflfix.patch b/games-arcade/fishsupper/files/fishsupper-0.1.6-ovflfix.patch
new file mode 100644
index 000000000000..4d5185dae7e9
--- /dev/null
+++ b/games-arcade/fishsupper/files/fishsupper-0.1.6-ovflfix.patch
@@ -0,0 +1,11 @@
+--- src/main.cpp.old 2012-06-24 18:35:27.661894094 +0200
++++ src/main.cpp 2012-06-24 18:35:41.041954632 +0200
+@@ -293,7 +293,7 @@
+
+ if (!ok)
+ {
+- fs_dir = new char[ strlen(".") ];
++ fs_dir = new char[ strlen(".") + 1];
+ strcpy(fs_dir, ".");
+ } // if ... else
+
diff --git a/games-arcade/fishsupper/fishsupper-0.1.6.ebuild b/games-arcade/fishsupper/fishsupper-0.1.6.ebuild
new file mode 100644
index 000000000000..667fd00a28f9
--- /dev/null
+++ b/games-arcade/fishsupper/fishsupper-0.1.6.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils autotools games
+
+DESCRIPTION="A simple arcade/puzzle game, loosely based on the retro classic Frogger"
+HOMEPAGE="http://sourceforge.net/projects/fishsupper/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="CC-BY-SA-2.5 GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND="media-libs/libsdl[sound,video,opengl,X]
+ media-libs/sdl-image[png]
+ media-libs/sdl-mixer[wav]
+ virtual/opengl"
+DEPEND="${RDEPEND}
+ dev-libs/boost"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-ovflfix.patch \
+ "${FILESDIR}"/${P}-asneeded.patch
+ eautoreconf
+}
+
+src_install() {
+ default
+ newicon data/images/fs_sprite_042.png ${PN}.png
+ make_desktop_entry ${PN} "Fish Supper"
+
+ prepgamesdirs
+}
diff --git a/games-arcade/fishsupper/metadata.xml b/games-arcade/fishsupper/metadata.xml
new file mode 100644
index 000000000000..6f7bdf45da78
--- /dev/null
+++ b/games-arcade/fishsupper/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>games</herd>
+ <upstream>
+ <remote-id type="sourceforge">fishsupper</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-arcade/frozen-bubble/Manifest b/games-arcade/frozen-bubble/Manifest
new file mode 100644
index 000000000000..060e8a4faa03
--- /dev/null
+++ b/games-arcade/frozen-bubble/Manifest
@@ -0,0 +1 @@
+DIST frozen-bubble-2.2.1-beta1.tar.bz2 22424798 SHA256 c5be403ccb71543dab1aeb7d5ae311e18693f79937fb9159469cdad0abf18ac4 SHA512 a5d1432195bc41b2823678986fe71223acf5c740636a871758e6337072c74a84bca7aa7088af7b299586e4e261521ae0b3341805692ab684d93e85f52174b1ac WHIRLPOOL 7b2782c8fe4a1dc8e77d5eba0d3e1cae12435e82d2c623ca0de6d5c91822bf07855a6f643b9f711eccba7232e7c80872add3296ee1915da518a154340fcd92dc
diff --git a/games-arcade/frozen-bubble/files/frozen-bubble-2.2.1_beta1-Werror.patch b/games-arcade/frozen-bubble/files/frozen-bubble-2.2.1_beta1-Werror.patch
new file mode 100644
index 000000000000..d891d8e71a63
--- /dev/null
+++ b/games-arcade/frozen-bubble/files/frozen-bubble-2.2.1_beta1-Werror.patch
@@ -0,0 +1,15 @@
+From: Julian Ospald <hasufell@gentoo.org>
+Date: Sun Feb 10 14:48:58 UTC 2013
+Subject: remove Werror compiler flag wrt #456654
+
+--- inc/My/Builder.pm
++++ inc/My/Builder.pm
+@@ -123,7 +123,7 @@
+ push @ofiles, $cbuilder->compile(
+ source => catfile($server_directory, $cfile),
+ extra_compiler_flags => [
+- qw(-g -Wall -Werror -pipe), # verbatim from Makefile
++ qw(-Wall), # verbatim from Makefile
+ '-I' . $server_directory, # does not seem to be necessary
+ $cbuilder->split_like_shell(`pkg-config glib-2.0 --cflags`),
+ $cbuilder->split_like_shell(`pkg-config glib-2.0 --libs`),
diff --git a/games-arcade/frozen-bubble/frozen-bubble-2.2.1_beta1.ebuild b/games-arcade/frozen-bubble/frozen-bubble-2.2.1_beta1.ebuild
new file mode 100644
index 000000000000..33595b80a0d4
--- /dev/null
+++ b/games-arcade/frozen-bubble/frozen-bubble-2.2.1_beta1.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+MY_P=${P/_/-}
+inherit eutils gnome2-utils perl-module toolchain-funcs games
+
+DESCRIPTION="A Puzzle Bubble clone written in perl (now with network support)"
+HOMEPAGE="http://www.frozen-bubble.org/"
+SRC_URI="http://www.frozen-bubble.org/data/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND=">=dev-lang/perl-5.12
+ >=dev-libs/glib-2
+ >=dev-perl/Alien-SDL-1.413
+ dev-perl/Compress-Bzip2
+ dev-perl/File-ShareDir
+ dev-perl/File-Slurp
+ dev-perl/File-Which
+ dev-perl/IPC-System-Simple
+ >=dev-perl/SDL-2.511
+ media-libs/sdl-image[gif,png]
+ media-libs/sdl-mixer[vorbis]
+ media-libs/sdl-pango
+ media-libs/sdl-ttf
+ virtual/libiconv
+ virtual/perl-Getopt-Long
+ virtual/perl-IO"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ dev-perl/Locale-Maketext-Lexicon
+ virtual/perl-ExtUtils-CBuilder
+ virtual/perl-ExtUtils-ParseXS
+ dev-perl/Module-Build"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ perl-module_src_prepare
+ epatch "${FILESDIR}"/${P}-Werror.patch
+}
+
+src_configure() {
+ LD=$(tc-getCC) perl-module_src_configure
+}
+
+src_compile() {
+ LD=$(tc-getCC) perl-module_src_compile
+}
+
+src_install() {
+ mydoc="AUTHORS Changes HISTORY README" perl-module_src_install
+
+ dodir "${GAMES_BINDIR}"
+ mv -vf "${D}"/usr/bin/f* "${D}/${GAMES_BINDIR}" || die
+
+ newdoc server/README README.server
+ newdoc server/init/README README.server.init
+
+ local res
+ for res in 16 32 48 64; do
+ newicon -s ${res} share/icons/frozen-bubble-icon-${res}x${res}.png ${PN}.png
+ done
+
+ make_desktop_entry ${PN} Frozen-Bubble
+
+ prepgamesdirs
+}
+
+pkg_preinst() {
+ games_pkg_preinst
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/games-arcade/frozen-bubble/metadata.xml b/games-arcade/frozen-bubble/metadata.xml
new file mode 100644
index 000000000000..a8fe22f9e560
--- /dev/null
+++ b/games-arcade/frozen-bubble/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+<longdescription>
+Full-featured, colorful animated penguin eyecandy, 100 levels of 1p game, hours and hours of
+2p game, a level-editor, 3 professional quality 20-channels music tracks, 15 stereo sound
+effects, 7 unique graphical transition effects.
+
+You need this game.
+</longdescription>
+</pkgmetadata>
diff --git a/games-arcade/funnyboat/Manifest b/games-arcade/funnyboat/Manifest
new file mode 100644
index 000000000000..9626106dc1bd
--- /dev/null
+++ b/games-arcade/funnyboat/Manifest
@@ -0,0 +1 @@
+DIST funnyboat-1.5-src.zip 3839990 SHA256 de001d17f0e380df89bf5000392db75b385851a3cd200b3b87a8a9b66502f016 SHA512 7d38070e73825602d6f0a82e810fe8937fe919ce12f6e802ee25147ca1a2333c2b90821d92e20b8e071070505099bf9ec562e8c7b8cd8d241c3021b840e707cc WHIRLPOOL ad350d8d16276a830e9ac1d42a3ced1572c79260bf247d26235e0f67c2ff4324e8b332eb4f5d12e3e87a56c8e19bb90ef5fd49bee0dbb46efd96bddac55f6f31
diff --git a/games-arcade/funnyboat/funnyboat-1.5-r1.ebuild b/games-arcade/funnyboat/funnyboat-1.5-r1.ebuild
new file mode 100644
index 000000000000..3dd158532c60
--- /dev/null
+++ b/games-arcade/funnyboat/funnyboat-1.5-r1.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+inherit eutils gnome2-utils python-single-r1 games
+
+DESCRIPTION="A side scrolling shooter game starring a steamboat on the sea"
+HOMEPAGE="http://funnyboat.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}-src.zip"
+
+LICENSE="GPL-2 MIT"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86 ~x86-fbsd"
+IUSE=""
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+DEPEND="${PYTHON_DEPS}"
+RDEPEND="${DEPEND}
+ >=dev-python/pygame-1.6.2[${PYTHON_USEDEP}]"
+DEPEND="${DEPEND}
+ app-arch/unzip"
+
+S=${WORKDIR}/${PN}
+
+pkg_setup() {
+ python-single-r1_pkg_setup
+ games_pkg_setup
+}
+
+src_install() {
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r data *.py
+ python_optimize "${ED%/}/${GAMES_DATADIR}"/${PN}
+
+ dodoc *.txt
+ games_make_wrapper ${PN} "${EPYTHON} main.py" "${GAMES_DATADIR}"/${PN}
+ newicon -s 32 data/kuvake.png ${PN}.png
+ make_desktop_entry ${PN} "Trip on the Funny Boat"
+ prepgamesdirs
+}
+
+pkg_preinst() {
+ games_pkg_preinst
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/games-arcade/funnyboat/metadata.xml b/games-arcade/funnyboat/metadata.xml
new file mode 100644
index 000000000000..f665da6a8949
--- /dev/null
+++ b/games-arcade/funnyboat/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>games</herd>
+ <upstream>
+ <remote-id type="sourceforge">funnyboat</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-arcade/gav/Manifest b/games-arcade/gav/Manifest
new file mode 100644
index 000000000000..cf81911bcd4d
--- /dev/null
+++ b/games-arcade/gav/Manifest
@@ -0,0 +1,8 @@
+DIST fabeach.tgz 163750 SHA256 e479d25c3624ebb432d6ea272ce60d4f4de4deb47a9c4325ebd4b77b3a4ab9ab SHA512 c0ce8e20a2bece7beeb66a036abcffa1394fcddc0aa255fe244e86548b2c0d7ec4a72a903f2108a44e84590d9986ee6729d67e5ec103b867bbde01772d524978 WHIRLPOOL d672402e2ea087de1aea5193dba2f483dc4391062da9e57c8dd7ee86a642b222ce0b67558e7872384462c3561d86148a23a71e88180bd1e25b0e6c06505836ab
+DIST florindo.tgz 175052 SHA256 d622ce2054a5f19243d7429dccfd036e51f8a7489cf692fb5181c670ef129a3e SHA512 91a42c209d9370f42a7918ea0b6b63ed9c2dcacdbf3051dc2535293b2e2a9b1b53795a7db476fd5c7b3da9682b5ddaf8a2ceab50bc4bdeefde33416de82197dc WHIRLPOOL b1907538fa56c8ebbee2cd6c5f062899d78133dc84de72f72f5d61da308fca4def64d0a17301ad1fe193d77fd6f7c96a3199c15d8b4c7234032b3bf6308bc68f
+DIST gav-0.9.0.tar.gz 137729 SHA256 8f0deb8b2cd775b339229054f4f282583a4cfbcba9d27a6213cf910bab944f3e SHA512 e702269371dc8ed4ce4415a24a703ef6c3604af69f2e0c548a48f282d812b4f3f76f74cb36a6036889b9e3628b844d2fa41e2cfde5b0fe647bceadc64c087a9f WHIRLPOOL 6ffb0ff88869ce2c171faa3f4e69d1c2bfa0fc35a4333928342d7f6c437d57b3f417bef532cc90f13da77bc0cc93d067b54668d75ed78425914715032a5c9692
+DIST inverted.tgz 35554 SHA256 aa34407321c567183a10197e22aa1ff6b031313ac2c84fd9cd3b371e8e6c2852 SHA512 a05bf4d580dcf509cfacf7bf8c8ab12e363dfcf646f24761daffd251bdaa15bc1df087b9d6618f70e1e6b17ac8bdbcaca18d6fe982938df2016dc4eaaafe0c04 WHIRLPOOL 076d9e3f1455e1b1b074a6999671fb04ddfe61e6685dfd1c1be6b35abcde0671d4e8fa5e567fe89eabecddeb8f15441d0a1011d1e4d3a9606ebd39ecac94a910
+DIST naive.tgz 80169 SHA256 4692c7ea7d17b0a75fee5ba56eb5f93c26531537898fdcaa2bc376d520c150d9 SHA512 c962b4fa1dac20f1f1af46e816ed5fc1d46b58438391f1f496a24960a464b515ed296490bf113e5f6c428ea7f740e0bbc9d4343088f5a9da4c00909a5d584c9a WHIRLPOOL 76e0db07bb5c188dd59e8f65bf89366e6042787241d1023188bea7a223157967e2b0ca24a4db0e6c0e4f1f003f7c682dda0a03ba29bb7c433b53851fba408f66
+DIST unnamed.tgz 156406 SHA256 e51f5ecf3046b29da3745713a7a9cd6af037bbf297e8bbe403d68ed9e0feec00 SHA512 530084b5e49e40447cb68545fb4b01f837e74efa3bfb9a110f13037a7f6c135e23f9ed49837abe918a8b393226f90a2d206e5bfd2f4e60335ebf7bc4e8341673 WHIRLPOOL 45a9ff55ca8e598ffb82ac6ee9b529e89178798b22ea6d761ea1455318bb739cba7d1527373053be49db523bf2ac3acc5c4c5b4c17ff6d38500c71a2976e19e0
+DIST yisus.tgz 131021 SHA256 952e162a75ff235743ef89f8b90dde456a3494e245364b52a9c6092725a99dd2 SHA512 2494e10998bf73c369e6591edeca4c466dfdba1901ca69d96838e0310eb36c94690b9fd6df3c0aa91e0ac611ec414acf402f532145eb795a43e15406aed4c604 WHIRLPOOL de18992cd902ce32bbca6d753da44d02a5756b60a09691281f02c4d3853b12ac863a233bda6510047057760043c30e4e3dd455650baf52c5f9babd09786cfcb4
+DIST yisus2.tgz 117923 SHA256 60939602a3ee52316204f64eb167839161aac4aff7b8f409e88d2543ebe733fc SHA512 a063908230e9085536322481bf511cc3f3df3997d27dd83e9f976762670e2bdbebc634c2566549fe856ddc93302422cf8676147937d2cbbcf7262e722c999f4d WHIRLPOOL b8cf0995af8fd76404d7e8348e1556e11be90fbe6773e7fbc13da01b52b96e6513e7a95fc67e6e8bac6afd127bf445f090edcf898ce4c060ef33880a85c7866c
diff --git a/games-arcade/gav/files/gav-0.9.0-gcc43.patch b/games-arcade/gav/files/gav-0.9.0-gcc43.patch
new file mode 100644
index 000000000000..06bc1a5d2542
--- /dev/null
+++ b/games-arcade/gav/files/gav-0.9.0-gcc43.patch
@@ -0,0 +1,10 @@
+--- Configuration.cpp
++++ Configuration.cpp
+@@ -25,6 +25,7 @@
+ #include <stdlib.h>
+ #include <string>
+ #include <iostream>
++#include <cstring>
+ #include "Configuration.h"
+ #include "ControlsArray.h"
+
diff --git a/games-arcade/gav/files/gav-0.9.0-ldflags.patch b/games-arcade/gav/files/gav-0.9.0-ldflags.patch
new file mode 100644
index 000000000000..04188320ac4b
--- /dev/null
+++ b/games-arcade/gav/files/gav-0.9.0-ldflags.patch
@@ -0,0 +1,26 @@
+--- CommonHeader.old 2010-10-12 13:08:23.000000000 +0200
++++ CommonHeader 2010-10-12 13:08:48.000000000 +0200
+@@ -31,9 +31,9 @@
+ endif
+
+ ifdef NET
+-LDFLAGS= `sdl-config --libs` -lSDL_image -lSDL_net -lm
++LDLIBS= `sdl-config --libs` -lSDL_image -lSDL_net -lm
+ else
+-LDFLAGS= `sdl-config --libs` -lSDL_image -lm
++LDLIBS= `sdl-config --libs` -lSDL_image -lm
+ endif
+
+ SRCS = $(wildcard *.cpp)
+--- Makefile.Linux.old 2010-10-12 14:36:47.000000000 +0200
++++ Makefile.Linux 2010-10-12 14:37:02.000000000 +0200
+@@ -38,8 +38,7 @@
+ $(MAKE) -C $(@D:%_module.o=%)
+
+ gav: $(ALL_OBJ) $(OFILES)
+- $(CXX) -o gav $(OFILES) $(ALL_OBJ) $(LDFLAGS)
+- strip gav
++ $(CXX) $(LDFLAGS) -o gav $(OFILES) $(ALL_OBJ) $(LDLIBS)
+
+ clean:
+ for i in $(SUBDIRS) ; do \
diff --git a/games-arcade/gav/gav-0.9.0.ebuild b/games-arcade/gav/gav-0.9.0.ebuild
new file mode 100644
index 000000000000..d78377ac07ec
--- /dev/null
+++ b/games-arcade/gav/gav-0.9.0.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="GPL Arcade Volleyball"
+HOMEPAGE="http://gav.sourceforge.net/"
+# the themes are behind a lame php-counter script.
+SRC_URI="mirror://sourceforge/gav/${P}.tar.gz
+ mirror://gentoo/fabeach.tgz
+ mirror://gentoo/florindo.tgz
+ mirror://gentoo/inverted.tgz
+ mirror://gentoo/naive.tgz
+ mirror://gentoo/unnamed.tgz
+ mirror://gentoo/yisus.tgz
+ mirror://gentoo/yisus2.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc sparc x86 ~x86-fbsd"
+IUSE=""
+
+DEPEND="media-libs/sdl-image[jpeg,png]
+ media-libs/sdl-net
+ media-libs/libsdl[joystick,video]"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ local d
+
+ epatch "${FILESDIR}"/${P}-ldflags.patch
+
+ for d in . automa menu net ; do
+ cp ${d}/Makefile.Linux ${d}/Makefile || die "cp ${d}/Makefile failed"
+ done
+
+ epatch "${FILESDIR}"/${P}-gcc43.patch
+ sed -i \
+ -e "s:/usr/bin:${GAMES_BINDIR}:" \
+ Makefile \
+ || die "sed failed"
+ sed -i \
+ -e "/^CXXFLAGS=/s: -g : ${CXXFLAGS} :" CommonHeader \
+ || die "sed failed"
+
+ # Now, move the additional themes in the proper directory
+ mv ../{fabeach,florindo,inverted,naive,unnamed,yisus,yisus2} themes
+
+ # no reason to have executable files in the themes
+ find themes -type f -exec chmod a-x \{\} \;
+}
+
+src_compile() {
+ # bug #41530 - doesn't like the hot parallel make action.
+ emake -C automa
+ emake -C menu
+ emake -C net
+ emake
+}
+
+src_install() {
+ dodir "${GAMES_BINDIR}"
+ emake ROOT="${D}" install
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r sounds
+ dodoc CHANGELOG README
+ prepgamesdirs
+}
diff --git a/games-arcade/gav/metadata.xml b/games-arcade/gav/metadata.xml
new file mode 100644
index 000000000000..08ee7f8ae0db
--- /dev/null
+++ b/games-arcade/gav/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>games</herd>
+ <upstream>
+ <remote-id type="sourceforge">gav</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-arcade/gish-demo/Manifest b/games-arcade/gish-demo/Manifest
new file mode 100644
index 000000000000..f32d1c97ec02
--- /dev/null
+++ b/games-arcade/gish-demo/Manifest
@@ -0,0 +1 @@
+DIST gish-demo-1.6.tar.gz 12712912 SHA256 335e28ae5b9f91ebb9487e341d9bb9cf679083a0a3ed5a49daaa27f2b3e3908d SHA512 2d6f37b8a7971ada524c75bafcbe7e92fd3dbb96677774b0295aad2553e6094027f9b43da8318f20071679412f95dd66ab9738178ffec4f853cf1845d536a0a6 WHIRLPOOL d3fb001f01f52df78f39d23994cd6d57558c76c0a94944a3202285860cea5cf0d1eb4ad3f48465d5b3b85e47453a558f66d647ce153cd332d7be429ef0d0ec3e
diff --git a/games-arcade/gish-demo/files/gish-wrapper b/games-arcade/gish-demo/files/gish-wrapper
new file mode 100755
index 000000000000..7f9f4ad53e48
--- /dev/null
+++ b/games-arcade/gish-demo/files/gish-wrapper
@@ -0,0 +1,4 @@
+#!/bin/sh
+export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:."
+export LD_PRELOAD=/usr/lib/libalut.so.0
+exec ./gish "$@"
diff --git a/games-arcade/gish-demo/gish-demo-1.6.ebuild b/games-arcade/gish-demo/gish-demo-1.6.ebuild
new file mode 100644
index 000000000000..9a4e2b67f40c
--- /dev/null
+++ b/games-arcade/gish-demo/gish-demo-1.6.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="Play as an amorphous ball of tar that rolls and squishes around"
+HOMEPAGE="http://www.chroniclogic.com/gish.htm"
+SRC_URI="http://s159260531.onlinehome.us/demos/gishdemo.tar.gz -> ${P}.tar.gz"
+
+LICENSE="all-rights-reserved"
+SLOT="0"
+KEYWORDS="-* amd64 x86"
+IUSE=""
+RESTRICT="mirror bindist strip"
+QA_PREBUILT="${GAMES_PREFIX_OPT:1}/${PN}/gish"
+
+RDEPEND="media-libs/libsdl
+ media-libs/libvorbis
+ virtual/opengl
+ x11-libs/libX11
+ >=media-libs/openal-1.6.372"
+
+S=${WORKDIR}/gishdemo
+
+src_install() {
+ local dir=${GAMES_PREFIX_OPT}/${PN}
+ local gishbin=gishdemo
+ use amd64 && gishbin=gishdemo_64
+
+ insinto "${dir}"
+ doins -r *
+ fperms +x "${dir}"/${gishbin}
+ games_make_wrapper gish ./${gishbin} "${dir}"
+ prepgamesdirs
+}
diff --git a/games-arcade/gish-demo/metadata.xml b/games-arcade/gish-demo/metadata.xml
new file mode 100644
index 000000000000..d3c2cc926f0b
--- /dev/null
+++ b/games-arcade/gish-demo/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+</pkgmetadata>
diff --git a/games-arcade/gnake/Manifest b/games-arcade/gnake/Manifest
new file mode 100644
index 000000000000..431f648c3098
--- /dev/null
+++ b/games-arcade/gnake/Manifest
@@ -0,0 +1 @@
+DIST Gnake.0.94b.tar.gz 6656 SHA256 0a969e09f2dd60cdad56174728f13e4bf6056173f2d566312e06935e13b3d827 SHA512 c5fb84cd8dc0a1b88f9eb6139f898515d109e2de0786284a4fa85f5efc0967ef02c2458d0e7f783d31fbd9a41e0f4114f7bd00717042ac9b2ca9ce4dc18e7fb7 WHIRLPOOL bdcab4ff459c84d7250404170a0282a69cf861168617ba66e3d683baa76a6ad2feebb2c0a793c7c24d4e778b6296de500e85941a50eff54dd4db0df6ff5ad487
diff --git a/games-arcade/gnake/gnake-0.94b.ebuild b/games-arcade/gnake/gnake-0.94b.ebuild
new file mode 100644
index 000000000000..ddd9308d85c1
--- /dev/null
+++ b/games-arcade/gnake/gnake-0.94b.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit games
+
+DESCRIPTION="An ncurses-based Nibbles clone"
+HOMEPAGE="http://lightless.org/gnake"
+SRC_URI="mirror://gentoo/Gnake.${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86 ~x86-fbsd"
+IUSE=""
+
+RDEPEND="sys-libs/ncurses"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+S=${WORKDIR}/${PN}
+
+src_compile() {
+ emake LDLIBS="$(pkg-config ncurses --libs)" gnake
+}
+
+src_install() {
+ dogamesbin gnake
+ dodoc README
+ prepgamesdirs
+}
diff --git a/games-arcade/gnake/metadata.xml b/games-arcade/gnake/metadata.xml
new file mode 100644
index 000000000000..d3c2cc926f0b
--- /dev/null
+++ b/games-arcade/gnake/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+</pkgmetadata>
diff --git a/games-arcade/gnome-nibbles/Manifest b/games-arcade/gnome-nibbles/Manifest
new file mode 100644
index 000000000000..9fffc5a44025
--- /dev/null
+++ b/games-arcade/gnome-nibbles/Manifest
@@ -0,0 +1,2 @@
+DIST gnome-nibbles-3.14.1.tar.xz 1718444 SHA256 cfdccdf7c4c81a589040ff72b6ef426e8c7506157bdbb1521d9b5a45829446b8 SHA512 a48fd845fa5df2a6a16150bf065b2427766e3fc6810312c18b6964d0f91289cf11cbb1a7834bce8ff782cc3485558e90b78b9e69cf62983d130041c88beee0a0 WHIRLPOOL 9371792e089b9362c9453a399f781e1716e129d7701c72547ed1ae7fc51298ed65dc697d13f0c8457f868ace4fa37ba0d82ff7040f0aeb56eabb37b5f42b27a2
+DIST gnome-nibbles-3.16.1.tar.xz 1642908 SHA256 bddaa055cac27cb90d9821b24048c2d5cb60a06481dfc0ea94218ebe0f83048d SHA512 a3b95723512facc28832d29ee13aed5035a710d65d1dd50996eeb4b8388d77b27ac9315c30ad735ac86979e2a229d9eb9d581062df221671317e3f7d70458d9c WHIRLPOOL c10ea818e09e7a1995029029bedad51d7eb18873bc0a5e99f8102f946c3614a4d1c99f3d0ebb4de582aa83fefb93d26192059de584bbb74742903e894be0d144
diff --git a/games-arcade/gnome-nibbles/gnome-nibbles-3.14.1.ebuild b/games-arcade/gnome-nibbles/gnome-nibbles-3.14.1.ebuild
new file mode 100644
index 000000000000..55f9b79e45d1
--- /dev/null
+++ b/games-arcade/gnome-nibbles/gnome-nibbles-3.14.1.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+GCONF_DEBUG="no"
+
+inherit gnome-games
+
+DESCRIPTION="Nibbles clone for Gnome"
+HOMEPAGE="https://wiki.gnome.org/Apps/Nibbles"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="amd64 ~arm x86"
+IUSE=""
+
+RDEPEND="
+ dev-libs/glib:2
+ >=gnome-base/librsvg-2.32:2
+ >=media-libs/clutter-1.14.4:1.0
+ >=media-libs/clutter-gtk-1.2:1.0
+ >=media-libs/libcanberra-0.26[gtk3]
+ >=x11-libs/gtk+-3.12:3
+"
+DEPEND="${RDEPEND}
+ app-text/yelp-tools
+ dev-util/appdata-tools
+ >=dev-util/intltool-0.50
+ sys-devel/gettext
+ virtual/pkgconfig
+"
diff --git a/games-arcade/gnome-nibbles/gnome-nibbles-3.16.1.ebuild b/games-arcade/gnome-nibbles/gnome-nibbles-3.16.1.ebuild
new file mode 100644
index 000000000000..c1e031fadedf
--- /dev/null
+++ b/games-arcade/gnome-nibbles/gnome-nibbles-3.16.1.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+GCONF_DEBUG="no"
+
+inherit gnome-games
+
+DESCRIPTION="Nibbles clone for Gnome"
+HOMEPAGE="https://wiki.gnome.org/Apps/Nibbles"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE=""
+
+RDEPEND="
+ dev-libs/glib:2
+ >=gnome-base/librsvg-2.32:2
+ >=media-libs/clutter-1.14.4:1.0
+ >=media-libs/clutter-gtk-1.2:1.0
+ >=media-libs/libcanberra-0.26[gtk3]
+ >=x11-libs/gtk+-3.15:3
+"
+DEPEND="${RDEPEND}
+ app-text/yelp-tools
+ dev-libs/appstream-glib
+ >=dev-util/intltool-0.50
+ sys-devel/gettext
+ virtual/pkgconfig
+"
diff --git a/games-arcade/gnome-nibbles/metadata.xml b/games-arcade/gnome-nibbles/metadata.xml
new file mode 100644
index 000000000000..da6fd63d0085
--- /dev/null
+++ b/games-arcade/gnome-nibbles/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>gnome</herd>
+</pkgmetadata>
diff --git a/games-arcade/gnome-robots/Manifest b/games-arcade/gnome-robots/Manifest
new file mode 100644
index 000000000000..a13cd25e2c3f
--- /dev/null
+++ b/games-arcade/gnome-robots/Manifest
@@ -0,0 +1,2 @@
+DIST gnome-robots-3.14.2.tar.xz 1638328 SHA256 812b7908c0a5a44348cc92c87737ec38542f0e569f88fb9c0984baafbe6d1851 SHA512 8ffbe432d0434af228300081c169acb295a16bd912b56501ebc8b8d15a472786f0b2551e8c9418c08a14adc3766da446aae253eb7ba129de284601e0b7767ebb WHIRLPOOL c0cbb2b539cff1a6d8f7dc9053002f5532772ccf7d0d940e63216361b4018005e77cba03a6e60164bcc4e3b8efba472e37358c81c97497f216a50ea9344d2809
+DIST gnome-robots-3.16.1.tar.xz 1589712 SHA256 dd9e202dea07e864a9cb92ae6003079f296278d49d0239f4b8da130b73a01f36 SHA512 91609f20082bb1314573d31220f59fe38468d7d0246fc29a561bd8e5302814885c240cf654eabe9127481def9376dda083465e5afcc6a5e8dc8872614aaddc02 WHIRLPOOL b26ad6ade1550f377514fceeb136bf2fafea8abf95984adf674e541844f61eb64d388d670333b73b6fe3d8d88f4f170318e5f90aba0b4da0f7fcb168fb8d40c7
diff --git a/games-arcade/gnome-robots/gnome-robots-3.14.2.ebuild b/games-arcade/gnome-robots/gnome-robots-3.14.2.ebuild
new file mode 100644
index 000000000000..9d0dd2d000df
--- /dev/null
+++ b/games-arcade/gnome-robots/gnome-robots-3.14.2.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+GCONF_DEBUG="no"
+
+inherit gnome-games
+
+DESCRIPTION="Avoid the robots and make them crash into each other"
+HOMEPAGE="https://wiki.gnome.org/Apps/Robots"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="amd64 ~arm x86"
+IUSE=""
+
+RDEPEND="
+ >=dev-libs/glib-2.32:2
+ >=gnome-base/librsvg-2.36.2:2
+ >=media-libs/libcanberra-0.26[gtk3]
+ >=x11-libs/gtk+-3.12:3
+"
+DEPEND="${RDEPEND}
+ app-text/yelp-tools
+ dev-util/appdata-tools
+ >=dev-util/intltool-0.50
+ sys-devel/gettext
+ virtual/pkgconfig
+"
+
+src_configure() {
+ gnome-games_src_configure APPDATA_VALIDATE=$(type -P true)
+}
diff --git a/games-arcade/gnome-robots/gnome-robots-3.16.1.ebuild b/games-arcade/gnome-robots/gnome-robots-3.16.1.ebuild
new file mode 100644
index 000000000000..4531af901fe9
--- /dev/null
+++ b/games-arcade/gnome-robots/gnome-robots-3.16.1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+GCONF_DEBUG="no"
+
+inherit gnome-games
+
+DESCRIPTION="Avoid the robots and make them crash into each other"
+HOMEPAGE="https://wiki.gnome.org/Apps/Robots"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE=""
+
+RDEPEND="
+ >=dev-libs/glib-2.32:2
+ >=gnome-base/librsvg-2.36.2:2
+ >=media-libs/libcanberra-0.26[gtk3]
+ >=x11-libs/gtk+-3.15:3
+"
+DEPEND="${RDEPEND}
+ app-text/yelp-tools
+ dev-libs/appstream-glib
+ >=dev-util/intltool-0.50
+ sys-devel/gettext
+ virtual/pkgconfig
+"
diff --git a/games-arcade/gnome-robots/metadata.xml b/games-arcade/gnome-robots/metadata.xml
new file mode 100644
index 000000000000..da6fd63d0085
--- /dev/null
+++ b/games-arcade/gnome-robots/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>gnome</herd>
+</pkgmetadata>
diff --git a/games-arcade/gnujump/Manifest b/games-arcade/gnujump/Manifest
new file mode 100644
index 000000000000..ee7f1cd4dde4
--- /dev/null
+++ b/games-arcade/gnujump/Manifest
@@ -0,0 +1 @@
+DIST gnujump-1.0.8.tar.gz 2508641 SHA256 13c3fe5f430eb0c010560c7e438123a573ca61a55c6708aa750cfbf56bf25e17 SHA512 fb8a06e17f700ea1e8c264b23a9f286d595cf48cc78efbe60ffdad298bc33ff0ecb2035a1db8281886614fbc8280d2b0c86a2099d55e31bff970f3b3c3caa421 WHIRLPOOL cca935d2a752b0b9354082230d61717554dd6ec77c6986ca852a6c11809c4ac9631f3baf577d6f378552402730f806af9c435332bdc7dec0b27a41f03383fb8c
diff --git a/games-arcade/gnujump/gnujump-1.0.8.ebuild b/games-arcade/gnujump/gnujump-1.0.8.ebuild
new file mode 100644
index 000000000000..5119d8abd61d
--- /dev/null
+++ b/games-arcade/gnujump/gnujump-1.0.8.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils flag-o-matic games
+
+DESCRIPTION="Xjump clone with added features"
+HOMEPAGE="http://gnujump.es.gnu.org"
+SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86"
+IUSE=""
+
+DEPEND="media-libs/libsdl[sound,video]
+ media-libs/sdl-image[png]
+ media-libs/sdl-mixer[vorbis]
+ virtual/opengl
+ x11-libs/libX11"
+RDEPEND=${DEPEND}
+
+src_prepare() {
+ append-libs -lm
+}
+
+src_install() {
+ DOCS=( AUTHORS ChangeLog README )
+ default
+
+ newicon skins/xjump/hero1.0.png ${PN}.png
+ make_desktop_entry ${PN} "GNUjump"
+
+ prepgamesdirs
+}
diff --git a/games-arcade/gnujump/metadata.xml b/games-arcade/gnujump/metadata.xml
new file mode 100644
index 000000000000..d3c2cc926f0b
--- /dev/null
+++ b/games-arcade/gnujump/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+</pkgmetadata>
diff --git a/games-arcade/grande-KXL/Manifest b/games-arcade/grande-KXL/Manifest
new file mode 100644
index 000000000000..c21f5ed6c8d0
--- /dev/null
+++ b/games-arcade/grande-KXL/Manifest
@@ -0,0 +1 @@
+DIST grande-KXL-0.6.tar.gz 240869 SHA256 5f85f2f5026f815eb68b58aa3e29615f5ed393ad207c33ef3617c934c07257e4 SHA512 17916e54b2b2bad25d789bc3d4f182f3f104fd4e5cf7b745bb9613f76ec04a2a3d2740ca89b507ecdb653f1d42b793115e76b5b34d53b96fec3d55574632b980 WHIRLPOOL d24954b838d4fa6aaa8ac55bfe274bcb7b14ba34b308f17153193741bab485c8e3d01e14600e592a716a9e24931fde790d56df17be8f583eb779dc5efd282bbe
diff --git a/games-arcade/grande-KXL/files/grande-KXL-0.6-cflags.patch b/games-arcade/grande-KXL/files/grande-KXL-0.6-cflags.patch
new file mode 100644
index 000000000000..ff51e562bcb3
--- /dev/null
+++ b/games-arcade/grande-KXL/files/grande-KXL-0.6-cflags.patch
@@ -0,0 +1,17 @@
+From: Julian Ospald <hasufell@gentoo.org>
+Date: Wed Aug 8 19:37:19 UTC 2012
+Subject: build system
+
+respect CFLAGS
+
+--- src/Makefile.am
++++ src/Makefile.am
+@@ -8,7 +8,7 @@
+
+ SUBDIRS = bmp wav stg
+
+-CFLAGS = @X_CFLAGS@ @KXL_CFLAGS@ @INST_FLAG@ @SCORE_FLAG@
++AM_CFLAGS = @X_CFLAGS@ @KXL_CFLAGS@ @INST_FLAG@ @SCORE_FLAG@
+ LIBS = @X_LIBS@ -lX11 @KXL_LIBS@ -lKXL
+
+ install-data-local:
diff --git a/games-arcade/grande-KXL/files/grande-KXL-0.6-configure.in.patch b/games-arcade/grande-KXL/files/grande-KXL-0.6-configure.in.patch
new file mode 100644
index 000000000000..80cdcd83b898
--- /dev/null
+++ b/games-arcade/grande-KXL/files/grande-KXL-0.6-configure.in.patch
@@ -0,0 +1,17 @@
+--- configure.in
++++ configure.in
+@@ -17,12 +17,8 @@
+ AC_CHECK_HEADERS(unistd.h)
+
+ dnl installation & score path
+-if test "x${prefix}" = "xNONE"; then
+- inst_path="${ac_default_prefix}/games/grande"
+-else
+- inst_path="${prefix}/games/grande"
+-fi
+-score_path="/var/games"
++inst_path="${datadir}/grande"
++score_path="${localstatedir}"
+
+ dnl check if installation was disabled
+ AC_ARG_ENABLE( install,
diff --git a/games-arcade/grande-KXL/grande-KXL-0.6.ebuild b/games-arcade/grande-KXL/grande-KXL-0.6.ebuild
new file mode 100644
index 000000000000..46417cc1a673
--- /dev/null
+++ b/games-arcade/grande-KXL/grande-KXL-0.6.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI=5
+inherit autotools eutils games
+
+DESCRIPTION="ZANAC type game"
+HOMEPAGE="http://triring.net/ps2linux/games/kxl/kxlgames.html"
+SRC_URI="mirror://gentoo/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86"
+IUSE=""
+
+DEPEND="dev-games/KXL"
+RDEPEND="${DEPEND}
+ media-fonts/font-adobe-100dpi"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-{configure.in,cflags}.patch
+ mv configure.{in,ac}
+ rm aclocal.m4
+ eautoreconf
+}
+
+src_install() {
+ dodir "${GAMES_STATEDIR}"
+ default
+ newicon src/bmp/boss1.bmp ${PN}.bmp
+ make_desktop_entry grande Grande /usr/share/pixmaps/${PN}.bmp
+ prepgamesdirs
+}
diff --git a/games-arcade/grande-KXL/metadata.xml b/games-arcade/grande-KXL/metadata.xml
new file mode 100644
index 000000000000..d3c2cc926f0b
--- /dev/null
+++ b/games-arcade/grande-KXL/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+</pkgmetadata>
diff --git a/games-arcade/gunocide2ex/Manifest b/games-arcade/gunocide2ex/Manifest
new file mode 100644
index 000000000000..a432066044a5
--- /dev/null
+++ b/games-arcade/gunocide2ex/Manifest
@@ -0,0 +1 @@
+DIST g2ex-setup.run 30844481 SHA256 85cf7ff402b73271e24867c7b0c162b258d61a69065d6a848ea0b74c301a4fbe SHA512 e3c861843d88c3b09fa2e579d1be4b0590c04b7b401c7d592cf6b7150fc395445056ba599c0bc6f72ba7044cfc097070751d32bb66aa790e72e2b1c45407f2b2 WHIRLPOOL 3cc496a0eb508432a525ba6a13c48328df8ceceb6038d43a9caf420514b49db0526c87ff622f0e60484c9d7cf78fd0e85bd457cf018315a40dcf650c595502dd
diff --git a/games-arcade/gunocide2ex/files/gunocide2ex-1.0-build.patch b/games-arcade/gunocide2ex/files/gunocide2ex-1.0-build.patch
new file mode 100644
index 000000000000..9abce6c01a2b
--- /dev/null
+++ b/games-arcade/gunocide2ex/files/gunocide2ex-1.0-build.patch
@@ -0,0 +1,178 @@
+diff -ur work.orig/src/cEffects.cpp work/src/cEffects.cpp
+--- work.orig/src/cEffects.cpp 2002-01-12 16:19:00.000000000 -0500
++++ work/src/cEffects.cpp 2009-06-10 18:14:27.000000000 -0400
+@@ -180,7 +180,6 @@
+ {
+ if(!i->update())
+ i=lEffects.erase(i);
+- if(i==NULL)break;
+ }
+
+ for(p=lParticles.begin();p!=lParticles.end();++p)
+@@ -190,8 +189,6 @@
+ if(!p->active())
+ {
+ p=lParticles.erase(p);
+- if(p==NULL)
+- break;
+ }
+ }
+
+diff -ur work.orig/src/cFont.cpp work/src/cFont.cpp
+--- work.orig/src/cFont.cpp 2002-01-02 07:57:46.000000000 -0500
++++ work/src/cFont.cpp 2009-06-10 18:19:15.000000000 -0400
+@@ -62,7 +62,7 @@
+ }
+
+ ///lädt einen TTF-Font ein
+-bool cFont::load(char *path,int size)
++bool cFont::load(const char *path,int size)
+ {
+ font = TTF_OpenFont(path,size);
+ if(font==NULL)
+diff -ur work.orig/src/cFont.h work/src/cFont.h
+--- work.orig/src/cFont.h 2002-01-02 07:57:46.000000000 -0500
++++ work/src/cFont.h 2009-06-10 18:19:27.000000000 -0400
+@@ -34,7 +34,7 @@
+ static void delInstance();
+ static bool initttf();
+
+- bool load(char *path,int size);
++ bool load(const char *path,int size);
+ void setcolor(int r,int g,int b);
+ void setshader(int r,int g,int b);
+ void print(SDL_Surface *screen,int posx,int posy,const char *fmt, ...);
+diff -ur work.orig/src/cParticleSys.cpp work/src/cParticleSys.cpp
+--- work.orig/src/cParticleSys.cpp 2002-01-02 07:57:46.000000000 -0500
++++ work/src/cParticleSys.cpp 2009-06-10 18:14:27.000000000 -0400
+@@ -81,9 +81,6 @@
+ if(time-p->getstarttime()>p->getlifetime())
+ {
+ p=lParticles.erase(p);
+- if(p==NULL)
+- break;
+-
+ }
+ }
+
+diff -ur work.orig/src/cSound.cpp work/src/cSound.cpp
+--- work.orig/src/cSound.cpp 2002-01-12 16:27:34.000000000 -0500
++++ work/src/cSound.cpp 2009-06-10 18:17:44.000000000 -0400
+@@ -92,7 +92,7 @@
+ }
+
+ ///spielt eine ogg-datei ab
+-bool cSound::playogg(char *path)
++bool cSound::playogg(const char *path)
+ {
+ if(!sound_on)
+ return true;
+diff -ur work.orig/src/cSound.h work/src/cSound.h
+--- work.orig/src/cSound.h 2002-01-08 12:30:57.000000000 -0500
++++ work/src/cSound.h 2009-06-10 18:17:50.000000000 -0400
+@@ -35,7 +35,7 @@
+
+ bool init();
+ void close();
+- bool playogg(char *path);
++ bool playogg(const char *path);
+ void stopogg();
+ bool loadwav(int index,char *path);
+ void playwav(int index);
+diff -ur work.orig/src/cSprite.cpp work/src/cSprite.cpp
+--- work.orig/src/cSprite.cpp 2002-01-02 07:57:46.000000000 -0500
++++ work/src/cSprite.cpp 2009-06-10 18:18:34.000000000 -0400
+@@ -29,7 +29,7 @@
+
+ ///lädt ein BMP in das image-Surface
+ ///gibt false zurück falls es schief geht
+-bool cSprite::loadBMP(char *path)
++bool cSprite::loadBMP(const char *path)
+ {
+ image=SDL_LoadBMP(path);
+ if(!image)
+@@ -73,4 +73,4 @@
+ int cSprite::getheight()
+ {
+ return image->h;
+-}
+\ No newline at end of file
++}
+diff -ur work.orig/src/cSprite.h work/src/cSprite.h
+--- work.orig/src/cSprite.h 2002-01-02 07:57:46.000000000 -0500
++++ work/src/cSprite.h 2009-06-10 18:18:44.000000000 -0400
+@@ -26,7 +26,7 @@
+ cSprite();
+ ~cSprite();
+
+- bool loadBMP(char *path);
++ bool loadBMP(const char *path);
+ void render(SDL_Surface *screen,int x,int y);
+ void setColorKey(int r,int g,int b);
+
+diff -ur work.orig/src/cSpriteAnim.cpp work/src/cSpriteAnim.cpp
+--- work.orig/src/cSpriteAnim.cpp 2002-01-02 07:57:46.000000000 -0500
++++ work/src/cSpriteAnim.cpp 2009-06-10 18:20:09.000000000 -0400
+@@ -145,7 +145,7 @@
+ }
+
+ ///einladen einer Animation aus einer Datei
+-bool cSpriteAnim::load(char *path)
++bool cSpriteAnim::load(const char *path)
+ {
+ FILE *file;
+ char buffer[512];
+@@ -248,4 +248,4 @@
+ {
+ if(anim==NULL)return -1;
+ return gfx_sprite[anim->getAct()].getwidth();
+-}
+\ No newline at end of file
++}
+diff -ur work.orig/src/cSpriteAnim.h work/src/cSpriteAnim.h
+--- work.orig/src/cSpriteAnim.h 2002-01-02 07:57:46.000000000 -0500
++++ work/src/cSpriteAnim.h 2009-06-10 18:20:16.000000000 -0400
+@@ -53,7 +53,7 @@
+ cSpriteAnim();
+ ~cSpriteAnim();
+
+- bool load(char *path);
++ bool load(const char *path);
+ void setColorKey(int r,int g,int b);
+ void render(SDL_Surface *screen,cAnim *anim,int x,int y);
+ int getMaxNum();
+diff -ur work.orig/src/cUtil.cpp work/src/cUtil.cpp
+--- work.orig/src/cUtil.cpp 2002-01-02 07:57:46.000000000 -0500
++++ work/src/cUtil.cpp 2009-06-10 18:16:29.000000000 -0400
+@@ -85,7 +85,7 @@
+ }
+
+ ///liest einen wert aus einer config-datei
+-char* cUtil::getconfigvalue(char *path,char *value)
++char* cUtil::getconfigvalue(const char *path,const char *value)
+ {
+ FILE *file;
+ char buffer[512];
+diff -ur work.orig/src/cUtil.h work/src/cUtil.h
+--- work.orig/src/cUtil.h 2002-01-02 07:57:46.000000000 -0500
++++ work/src/cUtil.h 2009-06-10 18:16:39.000000000 -0400
+@@ -31,7 +31,7 @@
+
+ void updatetime();
+ float sync(float Faktor);
+- char* getconfigvalue(char *path,char *value);
++ char* getconfigvalue(const char *path,const char *value);
+ void drawpixel(SDL_Surface *screen, int x, int y,Uint8 R, Uint8 G,Uint8 B);
+ bool collision(SDL_Rect objekt1,SDL_Rect objekt2);
+
+diff -ur work.orig/src/mmgr.cpp work/src/mmgr.cpp
+--- work.orig/src/mmgr.cpp 2002-01-02 07:57:46.000000000 -0500
++++ work/src/mmgr.cpp 2009-06-10 18:14:23.000000000 -0400
+@@ -59,6 +59,7 @@
+ #include <time.h>
+ #include <stdarg.h>
+ #include <new>
++using namespace std;
+
+ #ifndef WIN32
+ #include <unistd.h>
diff --git a/games-arcade/gunocide2ex/files/gunocide2ex-1.0-glibc2.10.patch b/games-arcade/gunocide2ex/files/gunocide2ex-1.0-glibc2.10.patch
new file mode 100644
index 000000000000..6b659c76a82d
--- /dev/null
+++ b/games-arcade/gunocide2ex/files/gunocide2ex-1.0-glibc2.10.patch
@@ -0,0 +1,14 @@
+--- src/mmgr.cpp
++++ src/mmgr.cpp
+@@ -228,9 +228,9 @@
+
+ static const char *sourceFileStripper(const char *sourceFile)
+ {
+- char *ptr = strrchr(sourceFile, '\\');
++ char *ptr = strrchr((char *)sourceFile, '\\');
+ if (ptr) return ptr + 1;
+- ptr = strrchr(sourceFile, '/');
++ ptr = strrchr((char *)sourceFile, '/');
+ if (ptr) return ptr + 1;
+ return sourceFile;
+ }
diff --git a/games-arcade/gunocide2ex/gunocide2ex-1.0.ebuild b/games-arcade/gunocide2ex/gunocide2ex-1.0.ebuild
new file mode 100644
index 000000000000..9e2b4ca330cc
--- /dev/null
+++ b/games-arcade/gunocide2ex/gunocide2ex-1.0.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils unpacker toolchain-funcs games
+
+DESCRIPTION="fast-paced 2D shoot'em'up"
+HOMEPAGE="http://g2ex.sourceforge.net/"
+SRC_URI="mirror://sourceforge/g2ex/g2ex-setup.run"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="ppc x86 ~x86-fbsd"
+IUSE=""
+
+DEPEND="media-libs/libsdl[video]
+ media-libs/sdl-ttf
+ media-libs/sdl-mixer[vorbis]"
+RDEPEND=${DEPEND}
+
+S=${WORKDIR}
+
+src_unpack() {
+ unpack_makeself
+ mkdir binary || die
+}
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-build.patch \
+ "${FILESDIR}"/${P}-glibc2.10.patch
+ edos2unix config.cfg
+ sed -i \
+ -e "s:/usr/local/games/gunocide2ex/config\.cfg:${GAMES_SYSCONFDIR}/${PN}.cfg:" \
+ -e "s:/usr/local/games/gunocide2ex/hscore\.dat:${GAMES_STATEDIR}/${PN}-hscore.dat:" \
+ -e "s:memleaks.log:/dev/null:" \
+ src/*.{h,cpp} || die
+ sed -i \
+ -e "s:/usr/local/games:${GAMES_DATADIR}:" \
+ src/*.{h,cpp} $(find gfx -name '*.txt') || die
+}
+
+src_compile() {
+ cd src
+ emake CXXFLAGS="$CXXFLAGS $(sdl-config --cflags)" $(echo *.cpp | sed 's/\.cpp/.o/g')
+ $(tc-getCXX) ${CXXFLAGS} ${LDFLAGS} -o ${PN} *.o -lpthread -lSDL -lSDL_ttf -lSDL_mixer || die
+}
+
+src_install() {
+ dogamesbin src/${PN}
+ dosym ${PN} "${GAMES_BINDIR}/g2ex"
+ insinto "${GAMES_DATADIR}/${PN}"
+ doins -r gfx sfx lvl credits arial.ttf
+ insinto "${GAMES_SYSCONFDIR}"
+ newins config.cfg ${PN}.cfg
+ insinto "${GAMES_STATEDIR}"
+ newins hscore.dat ${PN}-hscore.dat
+ dodoc history doc/MANUAL_DE
+ dohtml doc/manual_de.html
+ newicon g2icon.xpm ${PN}.xpm
+ make_desktop_entry ${PN} "Gunocide II EX"
+ prepgamesdirs
+}
diff --git a/games-arcade/gunocide2ex/metadata.xml b/games-arcade/gunocide2ex/metadata.xml
new file mode 100644
index 000000000000..e70e54d1aff7
--- /dev/null
+++ b/games-arcade/gunocide2ex/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>games</herd>
+ <upstream>
+ <remote-id type="sourceforge">g2ex</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-arcade/holotz-castle/Manifest b/games-arcade/holotz-castle/Manifest
new file mode 100644
index 000000000000..c168de9106e7
--- /dev/null
+++ b/games-arcade/holotz-castle/Manifest
@@ -0,0 +1 @@
+DIST holotz-castle-1.3.14-src.tar.gz 3691364 SHA256 42903559a9821b39eac6eba7730be0fcba12c9ad861ba2691f372c54371039b1
diff --git a/games-arcade/holotz-castle/files/holotz-castle-1.3.14-build.patch b/games-arcade/holotz-castle/files/holotz-castle-1.3.14-build.patch
new file mode 100644
index 000000000000..bb834656601d
--- /dev/null
+++ b/games-arcade/holotz-castle/files/holotz-castle-1.3.14-build.patch
@@ -0,0 +1,71 @@
+--- JLib/Makefile
++++ JLib/Makefile
+@@ -19,7 +19,7 @@
+ endif
+
+ # Define -D_JLIB_DEBUG to debug JLib. Compile the app to debug also with this flag
+-CFLAGS=-I. -I/usr/local/include/SDL -O3 -ffast-math -fPIC -Wall -Wshadow `$(SDL_CONFIG) --cflags`
++CXXFLAGS+=-I. -Wall -Wshadow `$(SDL_CONFIG) --cflags`
+
+ # Sample LDFLAGS for applications
+ # LDFLAGS=-L. -ffast-math -lSDL_image -lSDL_ttf -lSDL_mixer `$(SDL_CONFIG) --libs`
+@@ -28,15 +28,14 @@
+
+ # JLib
+ libJLib: $(JLIB_OBJS)
+- g++-4.1 -shared -L/usr/lib -fPIC -o $@.so $? \
+- && ar rvus $@.a $? \
++ $(AR) rvus $@.a $?
+
+ $(GRAPHICS)/%.o: $(GRAPHICS)/%.cpp
+- g++-4.1 $(CFLAGS) -c -o $@ $<
++ $(CXX) $(CXXFLAGS) -c -o $@ $<
+ $(UTIL)/%.o: $(UTIL)/%.cpp
+- g++-4.1 $(CFLAGS) -c -o $@ $<
++ $(CXX) $(CXXFLAGS) -c -o $@ $<
+ $(MATH)/%.o: $(MATH)/%.cpp
+- g++-4.1 $(CFLAGS) -c -o $@ $<
++ $(CXX) $(CXXFLAGS) -c -o $@ $<
+
+ .PHONY: install
+ install:
+--- src/Makefile
++++ src/Makefile
+@@ -30,7 +30,7 @@
+
+ DEFINES = -DHC_DATA_DIR=\"$(HC_DATA)\" -DHCED_DATA_DIR=\"$(HCED_DATA)\"
+
+-all: JLib HC HCed
++all: HC HCed
+
+ HC_OBJ_MAIN=HolotzCastle.o
+ HC_OBJS=HCUtil.o HCTimer.o HCLoadSaveSlot.o HCPlaylist.o HCPreferences.o HCTheme.o HCText.o \
+@@ -42,23 +42,23 @@
+
+ # Definir -D_JLIB_DEBUG para debug con JLib. Ponerlo también en el Makefile de JLib.
+ # Define -D_JLIB_DEBUG for JLib debug mode. Put it also in JLib's Makefile.
+-CFLAGS=-fno-strict-aliasing -I. -I../JLib `$(SDL_CONFIG) --cflags` -I/usr/local/include/ -I/usr/local/include/SDL -O3 -Wall -Werror -Wshadow $(CPU_OPTS) -ffast-math -c
+-LDFLAGS=-L. -ffast-math -lSDL_image -lSDL_ttf -lSDL_mixer `$(SDL_CONFIG) --libs`
++CXXFLAGS+=-fno-strict-aliasing -I. -I../JLib `$(SDL_CONFIG) --cflags` -Wall -Wshadow
++LDLIBS=-L. -lSDL_image -lSDL_ttf -lSDL_mixer `$(SDL_CONFIG) --libs`
+
+
+ JLib:
+ $(MAKE) -C ../JLib;
+
+ %.o: %.cpp %.h
+- g++ $(CFLAGS) $(DEFINES) $< -o $@
++ $(CXX) -c $(CXXFLAGS) $(DEFINES) $< -o $@
+
+ HC: $(HC_OBJS) $(HC_OBJ_MAIN) ../JLib/libJLib.a
+- g++ $(LDFLAGS) $? -o $@;\
++ $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $? $(LDLIBS);\
+ mv HC ../holotz-castle
+
+ # HCed (Holotz's Castle editor).
+ HCed: $(HC_OBJS) $(HCED_OBJ_MAIN) ../JLib/libJLib.a
+- g++ $(LDFLAGS) $? -o $@;\
++ $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $? $(LDLIBS);\
+ mv HCed ../holotz-castle-editor
+
+ install:
diff --git a/games-arcade/holotz-castle/files/holotz-castle-1.3.14-gcc44.patch b/games-arcade/holotz-castle/files/holotz-castle-1.3.14-gcc44.patch
new file mode 100644
index 000000000000..0c3af53591bf
--- /dev/null
+++ b/games-arcade/holotz-castle/files/holotz-castle-1.3.14-gcc44.patch
@@ -0,0 +1,11 @@
+--- JLib/JLib/Util/JFS.cpp
++++ JLib/JLib/Util/JFS.cpp
+@@ -887,7 +887,7 @@
+
+ // Si es un directorio lo importa recursivamente
+ struct dirent64 **namelist;
+- n = scandir64(filename, &namelist, 0, alphasort);
++ n = scandir64(filename, &namelist, 0, alphasort64);
+
+ if (n < 0)
+ {
diff --git a/games-arcade/holotz-castle/files/holotz-castle-1.3.14-underlink.patch b/games-arcade/holotz-castle/files/holotz-castle-1.3.14-underlink.patch
new file mode 100644
index 000000000000..2e23b2a40995
--- /dev/null
+++ b/games-arcade/holotz-castle/files/holotz-castle-1.3.14-underlink.patch
@@ -0,0 +1,11 @@
+--- src/Makefile.old 2011-06-22 06:09:53.195025702 +0200
++++ src/Makefile 2011-06-22 06:10:54.774927134 +0200
+@@ -43,7 +43,7 @@
+ # Definir -D_JLIB_DEBUG para debug con JLib. Ponerlo también en el Makefile de JLib.
+ # Define -D_JLIB_DEBUG for JLib debug mode. Put it also in JLib's Makefile.
+ CXXFLAGS+=-fno-strict-aliasing -I. -I../JLib `$(SDL_CONFIG) --cflags` -Wall -Wshadow
+-LDLIBS=-L. -lSDL_image -lSDL_ttf -lSDL_mixer `$(SDL_CONFIG) --libs`
++LDLIBS=-L. -lSDL_image -lSDL_ttf -lSDL_mixer `$(SDL_CONFIG) --libs` -lm -lz
+
+
+ JLib:
diff --git a/games-arcade/holotz-castle/holotz-castle-1.3.14.ebuild b/games-arcade/holotz-castle/holotz-castle-1.3.14.ebuild
new file mode 100644
index 000000000000..2f747c7d07a5
--- /dev/null
+++ b/games-arcade/holotz-castle/holotz-castle-1.3.14.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+inherit eutils toolchain-funcs games
+
+DESCRIPTION="2D platform game"
+HOMEPAGE="http://www.mainreactor.net/holotzcastle/en/index_en.html"
+SRC_URI="http://www.mainreactor.net/holotzcastle/download/${P}-src.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND="virtual/opengl
+ virtual/glu
+ media-libs/sdl-mixer
+ media-libs/libsdl
+ media-libs/sdl-ttf
+ media-libs/sdl-image"
+DEPEND="${RDEPEND}"
+
+S=${WORKDIR}/${P}-src
+
+PATCHES=(
+ "${FILESDIR}"/${P}-build.patch
+ "${FILESDIR}"/${P}-gcc44.patch
+ "${FILESDIR}"/${P}-underlink.patch
+)
+
+src_compile() {
+ tc-export AR
+ emake -C JLib
+ emake -C src HC_BASE="${GAMES_DATADIR}"/${PN}/
+}
+
+src_install() {
+ dogamesbin holotz-castle holotz-castle-editor
+ insinto "${GAMES_DATADIR}"/${PN}/game
+ doins -r res/*
+ insinto "${GAMES_DATADIR}"/${PN}/editor
+ doins -r HCedHome/res/*
+ newicon res/icon/icon.bmp ${PN}.bmp
+ make_desktop_entry ${PN} "Holotz's Castle" /usr/share/pixmaps/${PN}.bmp
+ make_desktop_entry ${PN}-editor "Holotz's Castle - Editor" \
+ /usr/share/pixmaps/${PN}.bmp
+ dodoc doc/MANUAL*.txt
+ doman man/*.6
+ prepgamesdirs
+}
diff --git a/games-arcade/holotz-castle/metadata.xml b/games-arcade/holotz-castle/metadata.xml
new file mode 100644
index 000000000000..d3c2cc926f0b
--- /dev/null
+++ b/games-arcade/holotz-castle/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+</pkgmetadata>
diff --git a/games-arcade/insaneodyssey/Manifest b/games-arcade/insaneodyssey/Manifest
new file mode 100644
index 000000000000..9857d2bb442e
--- /dev/null
+++ b/games-arcade/insaneodyssey/Manifest
@@ -0,0 +1 @@
+DIST io000311.tar.gz 839950 SHA256 72e7dd8b1b87dab6772ce21576ef048d6b34b551449af9c7580ae53f006e704f SHA512 9fbf79daf1886c31a6309036cf382c2e175e3c280d6d5aa822971e977e97227f4290474c272afd7ed8218b2cc7e66b407b37522207b30225a41488201a244d96 WHIRLPOOL bb1e4e3eeb3d9780f6b9b28315e93f11a21a751097b910b279a5889cc25021f1f09bb8f585342e9ba9b4e56c41aad647b109271b366c58626ca93c563459d92b
diff --git a/games-arcade/insaneodyssey/files/insaneodyssey-000311-datafiles.patch b/games-arcade/insaneodyssey/files/insaneodyssey-000311-datafiles.patch
new file mode 100644
index 000000000000..417d8396e19b
--- /dev/null
+++ b/games-arcade/insaneodyssey/files/insaneodyssey-000311-datafiles.patch
@@ -0,0 +1,55 @@
+--- io.cpp.orig 2004-06-01 19:11:16.000000000 +0300
++++ io.cpp 2004-06-01 19:21:14.000000000 +0300
+@@ -42,7 +42,11 @@
+ {
+ SDL_Surface *image, *surface;
+
+- image = IMG_Load(datafile);
++ char data_path[100];
++ strcpy(data_path, "/usr/share/games/insaneodyssey/");
++ strcat(data_path, datafile);
++
++ image = IMG_Load(data_path);
+ if ( image == NULL ) {
+ fprintf(stderr, "Couldn't load image %s\n",
+ datafile);
+@@ -67,7 +71,11 @@
+ {
+ SDL_Surface *image, *surface;
+
+- image = IMG_Load(datafile);
++ char data_path[100];
++ strcpy(data_path, "/usr/share/games/insaneodyssey/");
++ strcat(data_path, datafile);
++
++ image = IMG_Load(data_path);
+ if ( image == NULL ) {
+ fprintf(stderr, "Couldn't load image %s\n", datafile);
+ return(NULL);
+@@ -87,8 +95,12 @@
+ {
+ SDL_Surface *image;
+
++ char data_path[100];
++ strcpy(data_path, "/usr/share/games/insaneodyssey/");
++ strcat(data_path, datafile);
++
+ /* Load the BMP file into a surface */
+- image = IMG_Load(datafile);
++ image = IMG_Load(data_path);
+ if ( image == NULL ) {
+ fprintf(stderr, "Couldn't load %s: %s\n", datafile,
+ SDL_GetError());
+@@ -493,7 +493,11 @@
+ if ( fp != NULL )
+ while( !feof(fp) && j < MAXTILES )
+ {
+- fscanf ( fp, "%d %d %d\n", &tileatt[j].nexttile, &tileatt[j].bits, &tileatt[j].wait );
++ int nexttile, bits, wait;
++ fscanf(fp, "%d %d %d\n", &nexttile, &bits, &wait);
++ tileatt[j].nexttile = nexttile;
++ tileatt[j].bits = bits;
++ tileatt[j].wait = wait;
+ j++;
+ }
+ else
diff --git a/games-arcade/insaneodyssey/insaneodyssey-000311.ebuild b/games-arcade/insaneodyssey/insaneodyssey-000311.ebuild
new file mode 100644
index 000000000000..277d66455c02
--- /dev/null
+++ b/games-arcade/insaneodyssey/insaneodyssey-000311.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="Help West Muldune escape from a futuristic mental hospital"
+HOMEPAGE="http://members.fortunecity.com/rivalentertainment/iox.html"
+# Upstream has download issues.
+#SRC_URI="http://members.fortunecity.com/rivalentertainment/io${PV}.tar.gz"
+SRC_URI="mirror://gentoo/io${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86"
+IUSE=""
+
+DEPEND="media-libs/libsdl[sound,video]
+ media-libs/sdl-mixer
+ media-libs/sdl-image"
+RDEPEND=${DEPEND}
+
+S=${WORKDIR}/${PN}
+
+src_prepare() {
+ cd ${PN}
+
+ # Modify data load code and paths to game data
+ sed -e "s:/usr/share/games:${GAMES_DATADIR}:" \
+ "${FILESDIR}"/${P}-datafiles.patch > "${T}"/datafiles.patch \
+ || die
+ epatch "${T}"/datafiles.patch
+ sed -i \
+ -e "/lvl/s:^:${GAMES_DATADIR}/${PN}/:" \
+ -e "s:night:${GAMES_DATADIR}/${PN}/night:" \
+ levels.dat || die
+ sed -i \
+ -e "s:tiles.dat:${GAMES_DATADIR}/${PN}/tiles.dat:" \
+ -e "s:sprites.dat:${GAMES_DATADIR}/${PN}/sprites.dat:" \
+ -e "s:levels.dat:${GAMES_DATADIR}/${PN}/levels.dat:" \
+ -e "s:IO_T:${GAMES_DATADIR}/${PN}/IO_T:" \
+ -e "s:tiles.att:${GAMES_DATADIR}/${PN}/tiles.att:" \
+ -e "s:shot:${GAMES_DATADIR}/${PN}/shot:" \
+ io.cpp || die
+ sed -i \
+ -e 's:\[32:[100:' \
+ io.h || die
+}
+
+src_install() {
+ cd ${PN}
+ dogamesbin ${PN}
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins *bmp *png *dat *att *lvl *wav *mod *IT
+ newicon west00r.png ${PN}.png
+ make_desktop_entry ${PN} "Insane Odyssey"
+ prepgamesdirs
+}
diff --git a/games-arcade/insaneodyssey/metadata.xml b/games-arcade/insaneodyssey/metadata.xml
new file mode 100644
index 000000000000..d3c2cc926f0b
--- /dev/null
+++ b/games-arcade/insaneodyssey/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+</pkgmetadata>
diff --git a/games-arcade/jardinains/Manifest b/games-arcade/jardinains/Manifest
new file mode 100644
index 000000000000..0b5bff0d4631
--- /dev/null
+++ b/games-arcade/jardinains/Manifest
@@ -0,0 +1 @@
+DIST JN2_1_FREE_LIN.tar.gz 17433159 SHA256 635eb4eb7813522e5d4ff737719c92c97d605712c3b1b94d5a32863889e949d8 SHA512 ddb6e48e071b42b7871cb6396c61fdf9bfb85e9bb9f88720e8ac1b7bff499c43784de6bf3f67d3fe61bc05ed0e3f6a24f646aa6c54e387b95e744c16525978e8 WHIRLPOOL 4d4a726afa60cc962d06b93fa0ea98523016e1831833eb4128dc9d218bd924a671d72d5fa5e902fc888c6518d3ecd72f44cd347633827337f8c9ebb0ec8eda85
diff --git a/games-arcade/jardinains/files/strings-pt.patch b/games-arcade/jardinains/files/strings-pt.patch
new file mode 100644
index 000000000000..246017a3f5bc
--- /dev/null
+++ b/games-arcade/jardinains/files/strings-pt.patch
@@ -0,0 +1,303 @@
+--- data/strings.xml 2006-11-11 23:45:28.000000000 +0000
++++ data/strings.xml 2007-02-02 14:14:14.000000000 +0000
+@@ -35,5 +35,5 @@
+ <es>Español</es>
+ <it>Italiano</it>
+- <pt>Portuguese</pt>
++ <pt>Português</pt>
+ <pl>Polski</pl>
+ </message>
+@@ -61,5 +61,5 @@
+ <es>Parar</es>
+ <it>Uscita</it>
+- <pt>Parado</pt>
++ <pt>Sair</pt>
+ <pl>Koniec</pl>
+ </message>
+@@ -74,5 +74,5 @@
+ <es>Juego Nuevo</es>
+ <it>Nuovo Gioco</it>
+- <pt>Jogo Novo</pt>
++ <pt>Novo Jogo</pt>
+ <pl>Nowa Gra</pl>
+ </message>
+@@ -113,5 +113,5 @@
+ <es>Modo De La Ventana</es>
+ <it>Modo Della Finestra</it>
+- <pt>Modalidade Da Janela</pt>
++ <pt>Modo de Janela</pt>
+ <pl>Tryb Okienkowy</pl>
+ </message>
+@@ -165,5 +165,5 @@
+ <es>Pantalla Completa</es>
+ <it>Schermo Pieno</it>
+- <pt>Tela Cheia</pt>
++ <pt>Jogar em Ecrã Completo</pt>
+ <pl>Pelny Ekran</pl>
+ </message>
+@@ -178,5 +178,5 @@
+ <es>Pantalla Completa/Ventana</es>
+ <it>Schermo Pieno/Finestra</it>
+- <pt>Tela Cheia/Janela</pt>
++ <pt>Ecrã Completo/Janela</pt>
+ <pl>Pelny Ecran/Okno</pl>
+ </message>
+@@ -218,5 +218,5 @@
+ <es>Regresar</es>
+ <it>Andare Indietro</it>
+- <pt>Ir Para Trás</pt>
++ <pt>Voltar</pt>
+ <pl>Wstecz</pl>
+ </message>
+@@ -244,5 +244,5 @@
+ <es>Anular</es>
+ <it>Annullamento</it>
+- <pt>Cancelamento</pt>
++ <pt>Cancelar</pt>
+ <pl>Poniechaj</pl>
+ </message>
+@@ -257,5 +257,5 @@
+ <es>Continuar Jugando</es>
+ <it>Continuare A Giocare</it>
+- <pt>Continuar Jogando</pt>
++ <pt>Continuar a Jogar</pt>
+ <pl>Kontynuuj Gre</pl>
+ </message>
+@@ -270,5 +270,5 @@
+ <es>Terminar y Regresar</es>
+ <it>Rinunciato Al Menu</it>
+- <pt>Parado Ao Menu</pt>
++ <pt>Sair para o Menu</pt>
+ <pl>Wyjdz Do Menu</pl>
+ </message>
+@@ -283,5 +283,5 @@
+ <es>Terminar de Jugar</es>
+ <it>Uscita Jardinains 2</it>
+- <pt>Parado Jardinains 2</pt>
++ <pt>Sair do Jardinains 2</pt>
+ <pl>Zakoncz Jardinains 2</pl>
+ </message>
+@@ -296,5 +296,5 @@
+ <es>Pausa</es>
+ <it>Pausa</it>
+- <pt>Pausado/pt>
++ <pt>Pausa</pt>
+ <pl>Gra Przerwana</pl>
+ </message>
+@@ -322,5 +322,5 @@
+ <es>Calidad de los gráficos</es>
+ <it>Qualità dei grafici</it>
+- <pt>Qualidade dos gráficos</pt>
++ <pt>Qualidade dos Gráficos</pt>
+ <pl>Jakosc Grafiki</pl>
+ </message>
+@@ -335,5 +335,5 @@
+ <es>Conductor de los gráficos</es>
+ <it>Driver dei grafici</it>
+- <pt>Excitador dos gráficos</pt>
++ <pt>Controlador dos Gráficos</pt>
+ <pl>Sterowniki Graficzne</pl>
+ </message>
+@@ -361,5 +361,5 @@
+ <es>Crear A Nuevo Jugador</es>
+ <it>Generare Il Nuovo Giocatore</it>
+- <pt>Criar O Jogador Novo</pt>
++ <pt>Criar um Jogador Novo</pt>
+ <pl>Utworz Nowego Gracza</pl>
+ </message>
+@@ -374,5 +374,5 @@
+ <es>Entrar Contraseña</es>
+ <it>Digitare La Parola d'Accesso</it>
+- <pt>Incorporar A Senha</pt>
++ <pt>Introduzir A Senha</pt>
+ <pl>Wpisz Haslo</pl>
+ </message>
+@@ -387,5 +387,5 @@
+ <es>Volver A Entrar La Contraseña</es>
+ <it>Digitare Ancora La Parola d'Accesso</it>
+- <pt>Incorporar A Senha Outra Vez</pt>
++ <pt>Re-Introduzir A Senha</pt>
+ <pl>Wprowadz Haslo Ponownie</pl>
+ </message>
+@@ -400,5 +400,5 @@
+ <es>Las Contraseñas No Emparejan!</es>
+ <it>Parole d'Accesso Male!</it>
+- <pt>As Senhas Não Combinam!</pt>
++ <pt>As Senhas Não Coincidem!</pt>
+ <pl>Hasla Nie Sa Identyczne!</pl>
+ </message>
+@@ -426,5 +426,5 @@
+ <es>Contraseña Incorrecta</es>
+ <it>Parola d'Accesso Errata</it>
+- <pt>Senha Incorreta</pt>
++ <pt>Senha Incorrecta</pt>
+ <pl>Niepoprawne Haslo</pl>
+ </message>
+@@ -439,5 +439,5 @@
+ <es>Incorporar Nombre Del Jugador</es>
+ <it>Introdurre Nome Del Giocatore</it>
+- <pt>Dar Entrada Nome Do Jogador</pt>
++ <pt>Introduzir o Nome Do Jogador</pt>
+ <pl>Wprowadz Imie Gracza</pl>
+ </message>
+@@ -452,5 +452,5 @@
+ <es>¡Nombre No Existe!</es>
+ <it>Nessun Nome Introdotto!</it>
+- <pt>Nenhum Nome Dado Entrada Com!</pt>
++ <pt>Nenhum Nome Introduzido!</pt>
+ <pl>Nie Podano Imienia!</pl>
+ </message>
+@@ -465,5 +465,5 @@
+ <es>¡El Jugador Existe!</es>
+ <it>Il Giocatore Già Esiste!</it>
+- <pt>O Jogador Existe Já!</pt>
++ <pt>O Jogador Já Existe!</pt>
+ <pl>Gracz Juz Istnieje!</pl>
+ </message>
+@@ -478,5 +478,5 @@
+ <es>¡No Se Puede Crear!</es>
+ <it>Non Ha Potuto Generare!</it>
+- <pt>Não Podia Criar O Jogador!</pt>
++ <pt>Não Consegui Criar O Jogador!</pt>
+ <pl>Utworzenie Gracza Niemozliwe!</pl>
+ </message>
+@@ -504,5 +504,5 @@
+ <es>Fin</es>
+ <it>Gioco Sopra</it>
+- <pt>Jogo Sobre</pt>
++ <pt>Fim do Jogo</pt>
+ <pl>Koniec Gry</pl>
+ </message>
+@@ -517,5 +517,5 @@
+ <es>Nuevo Juego De Este Nivel</es>
+ <it>Nuovo Gioco (Questo Livello)</it>
+- <pt>Jogo Novo Deste Nível</pt>
++ <pt>Jogo Novo a partir Deste Nível</pt>
+ <pl>Nowa Gra Od Tego Poziomu</pl>
+ </message>
+@@ -583,5 +583,5 @@
+ <es>Cuenta Mejor</es>
+ <it>Segno Migliore</it>
+- <pt>Contagem Superior</pt>
++ <pt>Pontos Máximos</pt>
+ <pl>Najlepszy Wynik</pl>
+ </message>
+@@ -687,5 +687,5 @@
+ <es>PROYECTILES</es>
+ <it>PROIETTILI</it>
+- <pt>PROJECTILES</pt>
++ <pt>PROJÉCTEIS</pt>
+ <pl>POCISKI</pl>
+ </message>
+@@ -739,5 +739,5 @@
+ <es>PRIMAS</es>
+ <it>INDENNITÀ</it>
+- <pt>BÔNUS</pt>
++ <pt>BÓNUS</pt>
+ <pl>BONUSY</pl>
+ </message>
+@@ -804,5 +804,5 @@
+ <es>Solamente Sonido</es>
+ <it>Suono Soltanto</it>
+- <pt>Som Somente</pt>
++ <pt>Apenas Som</pt>
+ <pl>Tylko Dzwieki</pl>
+ </message>
+@@ -817,5 +817,5 @@
+ <es>Solamente Música</es>
+ <it>Suono Musica</it>
+- <pt>Som Música</pt>
++ <pt>Apenas Música</pt>
+ <pl>Tylko Muzyka</pl>
+ </message>
+@@ -856,5 +856,5 @@
+ <es>¡Solamente $19,99 USD!</es>
+ <it>Suono $19,99 USD!</it>
+- <pt>Som $19,99 USD!</pt>
++ <pt>Só $19,99 USD!</pt>
+ <pl>Tylko $19,99 USD!</pl>
+ </message>
+@@ -882,5 +882,5 @@
+ <es>¡Más Primas!</es>
+ <it>Più Indennità!</it>
+- <pt>Mais Bônus!</pt>
++ <pt>Mais Bónus!</pt>
+ <pl>Wiecej Bonusow!</pl>
+ </message>
+@@ -923,5 +923,5 @@
+ <es>¡Clíque Aquí Para Comprar!</es>
+ <it>Clicca Qui Per Comprare!</it>
+- <pt>Estalar aqui para comprar!</pt>
++ <pt>Clicar Aqui Para Comprar!</pt>^M
+ <pl>Kliknij tu, aby kupic!</pl>
+ </message>
+@@ -989,5 +989,5 @@
+ <es>¿Abandonar el Juego Actual?</es>
+ <it>Abbandonare il Gioco Corrente?</it>
+- <pt>Abandonar o Jogo Atual?</pt>
++ <pt>Abandonar o Jogo Actual?</pt>
+ <pl>Koniec Biezacej Gry?</pl>
+ </message>
+@@ -1004,5 +1004,5 @@
+ <es>Suprimir</es>
+ <it>Cancellare</it>
+- <pt>Suprimir</pt>
++ <pt>Apagar</pt>
+ <pl>Usunac</pl>
+ </message>
+@@ -1030,5 +1030,5 @@
+ <es>Estadística</es>
+ <it>Statistiche</it>
+- <pt>Statistics</pt>
++ <pt>Estatísticas</pt>
+ <pl>Statystyka</pl>
+ </message>
+@@ -1043,5 +1043,5 @@
+ <es>Tiempo Perdió</es>
+ <it>Tempo Perso</it>
+- <pt>Tempo Perdeu</pt>
++ <pt>Tempo Total</pt>
+ <pl>Czas Stracony</pl>
+ </message>
+@@ -1069,5 +1069,5 @@
+ <es>año</es>
+ <it>anno</it>
+- <pt>anos</pt>
++ <pt>ano</pt>
+ <pl>rok</pl>
+ </message>
+@@ -1199,5 +1199,5 @@
+ <es>Tramposo?</es>
+ <it>Frode?</it>
+- <pt>Fraude?</pt>
++ <pt>Ajudas?</pt>
+ <pl>Oszukac?</pl>
+ </message>
+@@ -1212,5 +1212,5 @@
+ <es>Número de Juegos</es>
+ <it>Numero di Giochi</it>
+- <pt>Número dos Jogos</pt>
++ <pt>Número de Jogos</pt>
+ <pl>Gra Ogolny</pl>
+ </message>
+@@ -1225,5 +1225,5 @@
+ <es>Número de Niveles</es>
+ <it>Numero di Livelli</it>
+- <pt>Número dos Níveis</pt>
++ <pt>Número de Níveis</pt>
+ <pl>Poziomy Ogolem</pl>
+ </message>
+@@ -1251,5 +1251,5 @@
+ <es>¡Los paquetes del juego modificado están disponibles solamente en la versión completa de Jardinains 2!</es>
+ <it>I pacchetti su ordinazione del gioco sono disponibili soltanto nella versione completa di Jardinains 2!</it>
+- <pt>Os blocos feitos sob encomenda do jogo estão disponíveis somente na versão cheia de Jardinains 2!</pt>
++ <pt>Os blocos modificados do jogo estão disponíveis somente na versão completa do Jardinains 2!</pt>
+ <pl>Custom game packs are available only in the full version of Jardinains 2!</pl>
+ </message>
+@@ -1293,5 +1293,5 @@
+ <es>Ningunos Rastros de la Bola</es>
+ <it>Nessun Tracce della Sfera</it>
+- <pt>Nenhumas Fugas de Esfera</pt>
++ <pt>Nenhuns rastos de Esfera</pt>
+ <pl>Pilka Proste</pl>
+ </message>
diff --git a/games-arcade/jardinains/jardinains-2.0-r1.ebuild b/games-arcade/jardinains/jardinains-2.0-r1.ebuild
new file mode 100644
index 000000000000..e177098a8152
--- /dev/null
+++ b/games-arcade/jardinains/jardinains-2.0-r1.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="Arkanoid with Gnomes"
+HOMEPAGE="http://www.jardinains2.com"
+SRC_URI="mirror://gentoo/JN2_1_FREE_LIN.tar.gz"
+
+LICENSE="jardinains"
+SLOT="0"
+KEYWORDS="-* amd64 x86"
+IUSE=""
+RESTRICT="strip"
+QA_EXECSTACK="${GAMES_PREFIX_OPT:1}/jardinains/jardinains"
+
+DEPEND=""
+RDEPEND="sys-libs/libstdc++-v3:5
+ amd64? ( sys-libs/libstdc++-v3:5[multilib] )
+ >=virtual/opengl-7.0-r1[abi_x86_32(-)]
+ >=virtual/glu-9.0-r1[abi_x86_32(-)]
+ >=x11-libs/libX11-1.6.2[abi_x86_32(-)]
+ >=x11-libs/libXxf86vm-1.1.3[abi_x86_32(-)]"
+
+dir=${GAMES_PREFIX_OPT}/${PN}
+QA_PREBUILT="${dir:1}/${PN}"
+
+src_unpack() {
+ unpack JN2_1_FREE_LIN.tar.gz
+ cd "${WORKDIR}" || die
+ mv "Jardinains 2!" ${P} || die
+}
+
+src_prepare() {
+ # clean Mac fork files (bug #295782)
+ find . -type f -name "._*" -exec rm -f '{}' +
+ epatch "${FILESDIR}"/strings-pt.patch
+}
+
+src_install() {
+ exeinto "${dir}"
+ doexe jardinains
+ insinto "${dir}"
+ doins -r LICENSE.txt data help
+
+ games_make_wrapper jardinains ./jardinains "${dir}" "${dir}"
+
+ make_desktop_entry jardinains "Jardinains 2"
+ touch "${D}${dir}/data/prefs.xml"
+ prepgamesdirs
+ chmod g+rw "${D}${dir}/data/prefs.xml"
+ chmod -R g+rw "${D}${dir}/data/players"
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ elog "Due to the way this software is designed all user preferences for"
+ elog "graphics, audio and other in game data are shared among all users"
+ elog "of the computer. For that reason some files in the installation"
+ elog "folder are writable by any user in the games group."
+}
diff --git a/games-arcade/jardinains/metadata.xml b/games-arcade/jardinains/metadata.xml
new file mode 100644
index 000000000000..92111f0d3a89
--- /dev/null
+++ b/games-arcade/jardinains/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+ <longdescription>Jardinains 2!, the sequel to Jardinains 1! (surprisingly
+ enough) is a fairly straightforward game. You have a paddle. You have a
+ ball. You have a whole bunch of bricks. Inside these bricks live ‘nains.
+ ‘Nains are cute little critters who pop out of their bricks every now and
+ then to have some fun and give you a headache. </longdescription>
+</pkgmetadata>
diff --git a/games-arcade/jumpnbump/Manifest b/games-arcade/jumpnbump/Manifest
new file mode 100644
index 000000000000..ff0d03120d99
--- /dev/null
+++ b/games-arcade/jumpnbump/Manifest
@@ -0,0 +1,2 @@
+DIST jumpnbump-1.50-autotool.patch.bz2 94692 SHA256 0fa9173293a893187b1e01086d296c04eaafa619be24d3b87d94b33f7d557462 SHA512 3749f3bda969d9ab2225019d8a6333d23402c8e284c3278aad23f76d5436326fed1efcae28a8922f814e0cf8417ea20fc51abb34f70bd6d37afca803475214fa WHIRLPOOL 51cbe8df33836547a1c0200392c2eeb6097e9ee276bfe291408527c3e91d10956e938bc9b693f4045720dcfd2a292c27a13ea7b21c119663f61feafd1d51e126
+DIST jumpnbump-1.50.tar.gz 397208 SHA256 b208bae76b07d7f39740bbbd385927e51cd821187c3e89270208710210dca8f3 SHA512 a343e514efa42aacd2c0fd113269ebf27418ea851dad21cecfa16a765639cc6a5de43fbdb9ad2f0282740f369b7e457a236fc3e918b486af10222c733f5c8fb0 WHIRLPOOL 78484a4eacd583127a9aaf9ec143ea81f4618108fc2d7228ebef450ce8cad231ba6e4613c20499e65f7c381bceada0401d3e86de28cb5cd4153b31190ad50754
diff --git a/games-arcade/jumpnbump/jumpnbump-1.50-r1.ebuild b/games-arcade/jumpnbump/jumpnbump-1.50-r1.ebuild
new file mode 100644
index 000000000000..de3753bf796f
--- /dev/null
+++ b/games-arcade/jumpnbump/jumpnbump-1.50-r1.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit autotools eutils games
+
+DESCRIPTION="a funny multiplayer game about cute little fluffy bunnies"
+HOMEPAGE="http://www.jumpbump.mine.nu/"
+SRC_URI="
+ http://www.jumpbump.mine.nu/port/${P}.tar.gz
+ mirror://gentoo/${P}-autotool.patch.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE="X fbcon kde svga tk +music"
+
+DEPEND="
+ media-libs/sdl-mixer
+ media-libs/libsdl[sound,joystick,video]
+ media-libs/sdl-net
+ X? ( x11-libs/libXext )
+ kde? ( kde-apps/kdialog )
+ music? ( media-libs/sdl-mixer[mod] )
+"
+RDEPEND="${DEPEND}
+ tk? (
+ dev-lang/tcl:0=
+ dev-lang/tk:0=
+ )"
+
+src_prepare() {
+ epatch ../${P}-autotool.patch
+ rm -f configure
+ eautoreconf
+ sed -i \
+ -e "/PREFIX/ s:PREFIX.*:\"${GAMES_DATADIR}/${PN}/jumpbump.dat\":" \
+ globals.h \
+ || die "sed failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ # clean up a bit. It leaves a dep on Xdialog but ignore that.
+ use fbcon || rm -f "${D}${GAMES_BINDIR}/jumpnbump.fbcon"
+ use kde || rm -f "${D}${GAMES_BINDIR}/jumpnbump-kdialog"
+ use svga || rm -f "${D}${GAMES_BINDIR}/jumpnbump.svgalib"
+ use tk || rm -f "${D}${GAMES_BINDIR}/jnbmenu.tcl"
+ newicon sdl/jumpnbump64.xpm ${PN}.xpm
+ make_desktop_entry ${PN} "Jump n Bump"
+ prepgamesdirs
+}
diff --git a/games-arcade/jumpnbump/metadata.xml b/games-arcade/jumpnbump/metadata.xml
new file mode 100644
index 000000000000..658a1ecd0c6d
--- /dev/null
+++ b/games-arcade/jumpnbump/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+<use>
+ <flag name="music">Enable playing of background music</flag>
+</use>
+</pkgmetadata>
diff --git a/games-arcade/jvgs/Manifest b/games-arcade/jvgs/Manifest
new file mode 100644
index 000000000000..c6555a5e62bd
--- /dev/null
+++ b/games-arcade/jvgs/Manifest
@@ -0,0 +1 @@
+DIST jvgs-0.5-src.tar.gz 25917861 SHA256 b906b96a532303df295312e7b352ab06d1c010ccf201527b2dade4634529efdb SHA512 0a0a8e7a0e7dce6f61bcd328f579212115eb95e3dce8ca223c1d8a3432d9083bf9a313f02f46b799991aa32f10cb9c14e8ecb63a4578b1ffaabc374ba139b28d WHIRLPOOL d56c4eb789bcc53cbc20efb3240c020189f8e785324755e2d6ce668ab673862f5a6fe5b77b4a126a87bd8d0834efac3fc94979897773b273ecfe5c47d932ab1a
diff --git a/games-arcade/jvgs/files/jvgs-0.5-flags.patch b/games-arcade/jvgs/files/jvgs-0.5-flags.patch
new file mode 100644
index 000000000000..04f88b88bc6d
--- /dev/null
+++ b/games-arcade/jvgs/files/jvgs-0.5-flags.patch
@@ -0,0 +1,14 @@
+From: Julian Ospald <hasufell@gentoo.org>
+Date: Sun Aug 5 19:57:32 UTC 2012
+Subject: build system
+
+respect cxxflags
+
+--- src/CMakeLists.txt
++++ src/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-SET( CMAKE_CXX_FLAGS "-DTIXML_USE_STL -ggdb" )
++SET( CMAKE_CXX_FLAGS "$ENV{CXXFLAGS} -DTIXML_USE_STL" )
+
+ INCLUDE_DIRECTORIES(
+ ${SDL_INCLUDE_DIR}
diff --git a/games-arcade/jvgs/jvgs-0.5.ebuild b/games-arcade/jvgs/jvgs-0.5.ebuild
new file mode 100644
index 000000000000..76cb821249ad
--- /dev/null
+++ b/games-arcade/jvgs/jvgs-0.5.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+CMAKE_IN_SOURCE_BUILD=1
+inherit cmake-utils eutils games
+
+DESCRIPTION="An open-source platform game with a sketched and minimalistic look"
+HOMEPAGE="http://jvgs.sourceforge.net/"
+SRC_URI="mirror://sourceforge/jvgs/${P}-src.tar.gz"
+
+LICENSE="WTFPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND="virtual/opengl
+ dev-lang/lua:0
+ sys-libs/zlib
+ media-libs/libsdl[video]
+ media-libs/sdl-mixer[vorbis]
+ media-libs/freetype:2"
+DEPEND="${RDEPEND}
+ dev-lang/swig"
+
+S=${WORKDIR}/${P}-src
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-flags.patch
+}
+
+src_configure() {
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+}
+
+src_install() {
+ exeinto "$(games_get_libdir)"
+ doexe src/${PN}
+
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r main.lua resources
+
+ games_make_wrapper ${PN} "/$(games_get_libdir)/${PN}" \
+ "${GAMES_DATADIR}/${PN}"
+
+ newicon resources/drawing.svg ${PN}.svg
+ make_desktop_entry ${PN} ${PN}
+
+ dodoc AUTHORS README.markdown
+
+ prepgamesdirs
+}
diff --git a/games-arcade/jvgs/metadata.xml b/games-arcade/jvgs/metadata.xml
new file mode 100644
index 000000000000..25da2874ba81
--- /dev/null
+++ b/games-arcade/jvgs/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>games</herd>
+ <upstream>
+ <remote-id type="sourceforge">jvgs</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-arcade/kajaani-kombat/Manifest b/games-arcade/kajaani-kombat/Manifest
new file mode 100644
index 000000000000..208de57dc784
--- /dev/null
+++ b/games-arcade/kajaani-kombat/Manifest
@@ -0,0 +1 @@
+DIST kajaani-kombat-0.7.tar.gz 1805504 SHA256 ec67316b8f5823a8b4d2097045be574aae805e40a8d3640e3ad205b073234f83 SHA512 84f6923b73c9529fa600c533b5a3de9ea9411f81060c5ad9fb85346fa17c9cb70bf6ba8222319e123372b01286a11b40bb355e8ef8c9bec95cd98f4d0e0460cb WHIRLPOOL b65ccc6171ab77416c1dd7bc54e89159f84089f38cfb510949e753c27bfbc13653cac3a0910ed48f2822eb0840203ca7a1353f8fe2a5603f3b6ad382994162f1
diff --git a/games-arcade/kajaani-kombat/files/0.7-makefile.patch b/games-arcade/kajaani-kombat/files/0.7-makefile.patch
new file mode 100644
index 000000000000..704bb95c1d13
--- /dev/null
+++ b/games-arcade/kajaani-kombat/files/0.7-makefile.patch
@@ -0,0 +1,22 @@
+--- Makefile.orig 2005-02-28 22:55:55.000000000 -0500
++++ Makefile 2005-02-28 22:58:45.000000000 -0500
+@@ -39,8 +39,8 @@
+ endif
+ ## UNIX RELEASE (default option)
+ ifeq ($(sys), )
+- MEDIA=-D MEDIA_PATH=\"./\"
+- DEBUG= -O $(MEDIA)
++ MEDIA=-D MEDIA_PATH=\"GENTOODIR\"
++ DEBUG= $(CFLAGS) $(MEDIA)
+ endif
+
+
+@@ -55,7 +55,7 @@
+
+ server_objs = game_obj.o terrain.o msg.o game_server.o server_main.o coord.o block.o connects.o player.o config.o
+
+-CXXFLAGS=`sdl-config --cflags` -Wall $(DEBUG)
++CXXFLAGS+=`sdl-config --cflags` $(MEDIA)
+
+ all: client
+
diff --git a/games-arcade/kajaani-kombat/files/kajaani-kombat-0.7-ldflags.patch b/games-arcade/kajaani-kombat/files/kajaani-kombat-0.7-ldflags.patch
new file mode 100644
index 000000000000..c575ff1ef57e
--- /dev/null
+++ b/games-arcade/kajaani-kombat/files/kajaani-kombat-0.7-ldflags.patch
@@ -0,0 +1,11 @@
+--- Makefile.old 2010-10-15 15:48:06.000000000 +0200
++++ Makefile 2010-10-15 15:48:18.000000000 +0200
+@@ -85,7 +85,7 @@
+ client_net.o: client_net.h client_net.cpp globals.h monitor_queue.h msg.h
+
+ client: $(client_objs)
+- $(CXX) $(client_objs) -o kajaani-kombat $(client_libs)
++ $(CXX) $(LDFLAGS) $(client_objs) -o kajaani-kombat $(client_libs)
+ server: $(server_objs)
+ $(CXX) $(server_objs) -o kajaani-kombat-server $(server_libs)
+
diff --git a/games-arcade/kajaani-kombat/kajaani-kombat-0.7.ebuild b/games-arcade/kajaani-kombat/kajaani-kombat-0.7.ebuild
new file mode 100644
index 000000000000..640483494858
--- /dev/null
+++ b/games-arcade/kajaani-kombat/kajaani-kombat-0.7.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="A rampart-like game set in space"
+HOMEPAGE="http://kombat.kajaani.net/"
+SRC_URI="http://kombat.kajaani.net/dl/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86 ~x86-fbsd"
+IUSE=""
+
+DEPEND="media-libs/libsdl[sound,video]
+ media-libs/sdl-net
+ media-libs/sdl-image[png]
+ media-libs/sdl-ttf
+ media-libs/sdl-mixer[vorbis]
+ sys-libs/ncurses
+ sys-libs/readline:0"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}/${PV}-makefile.patch" \
+ "${FILESDIR}"/${P}-ldflags.patch
+ sed -i \
+ -e "s:GENTOODIR:${GAMES_DATADIR}/${PN}/:" \
+ Makefile || die
+ sed -i \
+ -e 's/IMG_Load/img_load/' \
+ gui_screens.cpp || die
+}
+
+src_install() {
+ dogamesbin kajaani-kombat
+ insinto "${GAMES_DATADIR}/${PN}"
+ doins *.{png,ttf,ogg}
+ dodoc AUTHORS ChangeLog README
+ doman kajaani-kombat.6
+ prepgamesdirs
+}
diff --git a/games-arcade/kajaani-kombat/metadata.xml b/games-arcade/kajaani-kombat/metadata.xml
new file mode 100644
index 000000000000..d3c2cc926f0b
--- /dev/null
+++ b/games-arcade/kajaani-kombat/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+</pkgmetadata>
diff --git a/games-arcade/kobodeluxe/Manifest b/games-arcade/kobodeluxe/Manifest
new file mode 100644
index 000000000000..44cb4f9cc850
--- /dev/null
+++ b/games-arcade/kobodeluxe/Manifest
@@ -0,0 +1 @@
+DIST KoboDeluxe-0.5.1.tar.bz2 1781752 SHA256 0f7b910a399d985437564af8c5d81d6dcf22b96b26b01488d72baa6a6fdb5c2c SHA512 fc107e4367fd300574823aa40c68311d95de3a403d7c930963b8754aac14293f0624996fd77c4de0677921d11883047b68dd95df81eeb03078c37426ebd58afd WHIRLPOOL aaafa63e0ead96ecb8178a18cb1ca8c2d9ad059df9b625d63efe00322141c9c61673041da93030ba22d509793077f9c83e8ac7ffc35af64e85328ab409728077
diff --git a/games-arcade/kobodeluxe/files/kobodeluxe-0.5.1-glibc2.10.patch b/games-arcade/kobodeluxe/files/kobodeluxe-0.5.1-glibc2.10.patch
new file mode 100644
index 000000000000..1095cc1c7330
--- /dev/null
+++ b/games-arcade/kobodeluxe/files/kobodeluxe-0.5.1-glibc2.10.patch
@@ -0,0 +1,11 @@
+--- graphics/window.cpp
++++ graphics/window.cpp
+@@ -398,7 +398,7 @@
+ */
+ if(token)
+ {
+- char *tok = strchr(txt, token);
++ const char *tok = strchr(txt, token);
+ if(tok)
+ tokpos = tok-txt;
+ else
diff --git a/games-arcade/kobodeluxe/files/kobodeluxe-0.5.1-glibc29.patch b/games-arcade/kobodeluxe/files/kobodeluxe-0.5.1-glibc29.patch
new file mode 100644
index 000000000000..98451bb29975
--- /dev/null
+++ b/games-arcade/kobodeluxe/files/kobodeluxe-0.5.1-glibc29.patch
@@ -0,0 +1,83 @@
+--- enemies.h
++++ enemies.h
+@@ -70,9 +70,9 @@
+ extern const enemy_kind bomb2;
+ extern const enemy_kind bombdeto;
+ extern const enemy_kind cannon;
+-extern const enemy_kind pipe1;
++extern const enemy_kind pipeone;
+ extern const enemy_kind core;
+-extern const enemy_kind pipe2;
++extern const enemy_kind pipetwo;
+ extern const enemy_kind rock;
+ extern const enemy_kind ring;
+ extern const enemy_kind enemy_m1;
+@@ -430,7 +430,7 @@
+
+ inline int _enemy::is_pipe()
+ {
+- return ((_state != notuse) && ((ek == &pipe1) || (ek == &pipe2)));
++ return ((_state != notuse) && ((ek == &pipeone) || (ek == &pipetwo)));
+ }
+
+
+--- enemy.cpp
++++ enemy.cpp
+@@ -713,7 +713,7 @@
+
+ void _enemy::kill_cannon()
+ {
+- enemies.make(&pipe1, CS2PIXEL(x), CS2PIXEL(y));
++ enemies.make(&pipeone, CS2PIXEL(x), CS2PIXEL(y));
+ sound.g_base_node_explo(x, y);
+ release();
+ }
+@@ -755,10 +755,10 @@
+
+ void _enemy::kill_core()
+ {
+- enemies.make(&pipe2, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 3);
+- enemies.make(&pipe2, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 7);
+- enemies.make(&pipe2, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 1);
+- enemies.make(&pipe2, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 5);
++ enemies.make(&pipetwo, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 3);
++ enemies.make(&pipetwo, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 7);
++ enemies.make(&pipetwo, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 1);
++ enemies.make(&pipetwo, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 5);
+ enemies.make(&explosion4, CS2PIXEL(x), CS2PIXEL(y));
+ sound.g_base_core_explo(x, y);
+ release();
+@@ -851,7 +851,7 @@
+ screen.set_map(x1, y1, m ^ a);
+ release();
+ }
+-const enemy_kind pipe1 = {
++const enemy_kind pipeone = {
+ 0,
+ &_enemy::make_pipe1,
+ &_enemy::move_pipe1,
+@@ -978,19 +978,19 @@
+ }
+ p ^= a;
+ if(p & U_MASK)
+- enemies.make(&pipe2, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 1);
++ enemies.make(&pipetwo, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 1);
+ if(p & R_MASK)
+- enemies.make(&pipe2, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 3);
++ enemies.make(&pipetwo, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 3);
+ if(p & D_MASK)
+- enemies.make(&pipe2, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 5);
++ enemies.make(&pipetwo, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 5);
+ if(p & L_MASK)
+- enemies.make(&pipe2, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 7);
++ enemies.make(&pipetwo, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 7);
+ manage.add_score(10);
+ release();
+ }
+
+
+-const enemy_kind pipe2 = {
++const enemy_kind pipetwo = {
+ 0,
+ &_enemy::make_pipe2,
+ &_enemy::move_pipe2,
diff --git a/games-arcade/kobodeluxe/kobodeluxe-0.5.1.ebuild b/games-arcade/kobodeluxe/kobodeluxe-0.5.1.ebuild
new file mode 100644
index 000000000000..d21bfba5275d
--- /dev/null
+++ b/games-arcade/kobodeluxe/kobodeluxe-0.5.1.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils games
+
+MY_P="KoboDeluxe-${PV/_/}"
+DESCRIPTION="An SDL port of xkobo, a addictive space shoot-em-up"
+HOMEPAGE="http://www.olofson.net/kobodl/"
+SRC_URI="http://www.olofson.net/kobodl/download/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha amd64 ppc ppc64 x86"
+IUSE="opengl"
+
+DEPEND="media-libs/libsdl
+ media-libs/sdl-image[png]
+ opengl? ( virtual/opengl )"
+RDEPEND="${DEPEND}"
+S=${WORKDIR}/${MY_P}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ unpack ./icons.tar.gz
+}
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-glibc29.patch \
+ "${FILESDIR}"/${P}-glibc2.10.patch
+ # Fix paths
+ sed -i \
+ -e 's:\$(datadir)/kobo-deluxe:$(datadir)/kobodeluxe:' \
+ -e 's:\$(sharedstatedir)/kobo-deluxe/scores:$(localstatedir)/kobodeluxe:' \
+ configure || die "sed configure failed"
+ sed -i \
+ -e 's:kobo-deluxe:kobodeluxe:' \
+ data/gfx/Makefile.in \
+ data/sfx/Makefile.in || die "sed data/Makefile.in failed"
+}
+
+src_configure() {
+ egamesconf $(use_enable opengl)
+}
+
+src_install () {
+ default
+ newicon icons/KDE/icons/32x32/kobodl.png ${PN}.png
+ make_desktop_entry kobodl "Kobo Deluxe"
+ prepgamesdirs
+ fperms 2775 "${GAMES_STATEDIR}"/${PN}
+}
diff --git a/games-arcade/kobodeluxe/metadata.xml b/games-arcade/kobodeluxe/metadata.xml
new file mode 100644
index 000000000000..d3c2cc926f0b
--- /dev/null
+++ b/games-arcade/kobodeluxe/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+</pkgmetadata>
diff --git a/games-arcade/komi/Manifest b/games-arcade/komi/Manifest
new file mode 100644
index 000000000000..7cd15f38d6c3
--- /dev/null
+++ b/games-arcade/komi/Manifest
@@ -0,0 +1 @@
+DIST komi-1.04.tar.gz 954526 SHA256 9a6852b44197e04832861b684390971c5a85c0405edc0a555fe6fdd9a5325721 SHA512 60babb3642bea7598089b342ba582b2f63f6aa051352ad9b2fa5bad0222a32306775a207712d2e7a9242be5e3ff5b4734f5b62708e451e7230499c6812d4c8a3 WHIRLPOOL d22b8ad640f4cc831f5568c4f3825a81ef289ae757c8698bd39635a54565d23fdbe1f4828bacdd7794a66456900233c6561888b7427c749be51ee8428ea2b221
diff --git a/games-arcade/komi/files/1.04-DESTDIR.patch b/games-arcade/komi/files/1.04-DESTDIR.patch
new file mode 100644
index 000000000000..2573b01e5c91
--- /dev/null
+++ b/games-arcade/komi/files/1.04-DESTDIR.patch
@@ -0,0 +1,36 @@
+--- Makefile.orig 2004-12-11 01:36:11.000000000 -0800
++++ Makefile 2004-12-11 01:36:14.000000000 -0800
+@@ -13,9 +13,7 @@
+ MIXER=-lSDL_mixer
+ SDL_LIB=$(shell sdl-config --static-libs) $(MIXER)
+
+-CFLAGS=-Wall -pedantic -std=c99 -O2 \
+- $(shell sdl-config --cflags) \
+- -DDATAPATH=\"$(DATAPATH)\"
++CFLAGS= $(ECFLAGS) $(shell sdl-config --cflags) -DDATAPATH=\"$(DATAPATH)\"
+
+ all: komi
+
+@@ -24,15 +22,13 @@
+ -rm *.o
+
+ install:
+- install -d $(DATAPATH)
+- cp -R komidata/* $(DATAPATH)
+- chmod -R 644 $(DATAPATH)
+- chmod 755 $(DATAPATH)
+- install -d $(BINPATH)
+- cp komi $(BINPATH)
+- chmod 755 $(BINPATH)komi
+- install -d $(MANPATH)
+- cp komi.6 $(MANPATH)komi.6
++ install -d $(DESTDIR)$(DATAPATH)
++ cp -R komidata/* $(DESTDIR)$(DATAPATH)
++ chmod -R 644 $(DESTDIR)$(DATAPATH)
++ chmod 755 $(DESTDIR)$(DATAPATH)
++ install -d $(DESTDIR)$(BINPATH)
++ cp komi $(DESTDIR)$(BINPATH)
++ chmod 755 $(DESTDIR)$(BINPATH)/komi
+
+ komi: komi.o
+ $(CC) $(CFLAGS) komi.o -o komi $(SDL_LIB)
diff --git a/games-arcade/komi/files/komi-1.04-install.patch b/games-arcade/komi/files/komi-1.04-install.patch
new file mode 100644
index 000000000000..d00a48d296fb
--- /dev/null
+++ b/games-arcade/komi/files/komi-1.04-install.patch
@@ -0,0 +1,11 @@
+--- Makefile.old 2015-01-05 11:35:24.794160467 +0100
++++ Makefile 2015-01-05 11:36:23.181058180 +0100
+@@ -24,8 +24,6 @@
+ install:
+ install -d $(DESTDIR)$(DATAPATH)
+ cp -R komidata/* $(DESTDIR)$(DATAPATH)
+- chmod -R 644 $(DESTDIR)$(DATAPATH)
+- chmod 755 $(DESTDIR)$(DATAPATH)
+ install -d $(DESTDIR)$(BINPATH)
+ cp komi $(DESTDIR)$(BINPATH)
+ chmod 755 $(DESTDIR)$(BINPATH)/komi
diff --git a/games-arcade/komi/komi-1.04.ebuild b/games-arcade/komi/komi-1.04.ebuild
new file mode 100644
index 000000000000..5023563ebfcb
--- /dev/null
+++ b/games-arcade/komi/komi-1.04.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="Komi the Space Frog - simple SDL game of collection"
+HOMEPAGE="http://komi.sourceforge.net"
+SRC_URI="mirror://sourceforge/komi/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86"
+IUSE=""
+
+DEPEND="media-libs/libsdl[video]
+ media-libs/sdl-mixer"
+RDEPEND="${DEPEND}"
+DOCS=( CHANGELOG.txt README.txt TROUBLESHOOTING.txt )
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PV}-DESTDIR.patch \
+ "${FILESDIR}"/${P}-install.patch
+ sed -i \
+ -e "/^BINPATH/s:=.*:=${GAMES_BINDIR}/:" \
+ -e "/^DATAPATH/s:=.*:=${GAMES_DATADIR}/${PN}/:" \
+ -e '/^SDL_LIB/s:$: $(LDFLAGS):' \
+ -e '/^SDL_LIB/s:--static-:--:' \
+ Makefile \
+ || die "sed failed"
+}
+
+src_compile() {
+ emake ECFLAGS="${CFLAGS}"
+}
+
+src_install() {
+ default
+ newicon komidata/sprites_komi.bmp ${PN}.bmp
+ make_desktop_entry komi Komi /usr/share/pixmaps/${PN}.bmp
+ doman komi.6
+ prepgamesdirs
+}
diff --git a/games-arcade/komi/metadata.xml b/games-arcade/komi/metadata.xml
new file mode 100644
index 000000000000..4156d2ec7dbf
--- /dev/null
+++ b/games-arcade/komi/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>games</herd>
+ <upstream>
+ <remote-id type="sourceforge">komi</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-arcade/late/Manifest b/games-arcade/late/Manifest
new file mode 100644
index 000000000000..86cbce939458
--- /dev/null
+++ b/games-arcade/late/Manifest
@@ -0,0 +1 @@
+DIST late-0.1.0.tar.bz2 1560232 SHA256 76aac8e436e0420642790658129b5a3f27c836c07bd9b6871b3c88aa2f8aff0a SHA512 6b3f4d27a723ae450bd8dda375c8663c1a3f457ffbe0a91f5eb96efdd797c2370ec68894df7a4d31e7124b28f3b41b3b952805901427c6ea3502b0d4d13cd72e WHIRLPOOL 3ebd6f69da7e248fcbf059d8245b1658891ff6ec5cbb1abd118f2cd642fa60c47b0948cbf5256648a8c5672eaf16513fe1f145d697dba882429c6f6696e916f8
diff --git a/games-arcade/late/files/late-0.1.0-gcc43.patch b/games-arcade/late/files/late-0.1.0-gcc43.patch
new file mode 100644
index 000000000000..bce26464cf04
--- /dev/null
+++ b/games-arcade/late/files/late-0.1.0-gcc43.patch
@@ -0,0 +1,11 @@
+--- src/init.cpp
++++ src/init.cpp
+@@ -26,6 +26,8 @@
+ #include "scorescreen.h"
+ #include <fstream>
+ #include <iostream>
++#include <cstdlib>
++#include <cstring>
+ using namespace std;
+
+
diff --git a/games-arcade/late/files/late-0.1.0-gcc46.patch b/games-arcade/late/files/late-0.1.0-gcc46.patch
new file mode 100644
index 000000000000..95d18ba7ed11
--- /dev/null
+++ b/games-arcade/late/files/late-0.1.0-gcc46.patch
@@ -0,0 +1,11 @@
+diff -ru late-0.1.0.orig/src/ball.h late-0.1.0/src/ball.h
+--- late-0.1.0.orig/src/ball.h 2003-08-07 18:26:13.000000000 -0400
++++ late-0.1.0/src/ball.h 2011-04-07 21:32:14.189799689 -0400
+@@ -25,6 +25,7 @@
+ class ball;
+
+ #include "square.h"
++#include <cstddef>
+
+ class ball_base
+ {
diff --git a/games-arcade/late/late-0.1.0.ebuild b/games-arcade/late/late-0.1.0.ebuild
new file mode 100644
index 000000000000..dd05b7b95ed2
--- /dev/null
+++ b/games-arcade/late/late-0.1.0.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="A game, similar to Barrack by Ambrosia Software"
+HOMEPAGE="http://late.sourceforge.net/"
+SRC_URI="mirror://sourceforge/late/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE=""
+
+DEPEND="media-libs/libsdl[video]
+ media-libs/sdl-image[jpeg]"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-gcc43.patch \
+ "${FILESDIR}"/${P}-gcc46.patch
+ sed -i \
+ -e "/chown/d" \
+ Makefile.in \
+ || die "sed failed"
+}
+
+src_install () {
+ default
+ newicon graphics/latebg2.jpg ${PN}.jpg
+ make_desktop_entry late Late /usr/share/pixmaps/${PN}.jpg
+ prepgamesdirs
+}
diff --git a/games-arcade/late/metadata.xml b/games-arcade/late/metadata.xml
new file mode 100644
index 000000000000..e4cbcf411f56
--- /dev/null
+++ b/games-arcade/late/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>games</herd>
+ <upstream>
+ <remote-id type="sourceforge">late</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-arcade/lbreakout/Manifest b/games-arcade/lbreakout/Manifest
new file mode 100644
index 000000000000..d35c50d2d58f
--- /dev/null
+++ b/games-arcade/lbreakout/Manifest
@@ -0,0 +1 @@
+DIST lbreakout-010315.tar.gz 655418 SHA256 23ed1210879850e330d62143b5f8c6e8259898ea4c9afcb7df4b8f4a1e00dac1 SHA512 92421ceb4e643df2123d084b0d2c5edfd311e39dd8da85c01da5cfd872f787a6969e514efab2c5f110979434e773fce211e755e4c45438c4469ab9095cb595b7 WHIRLPOOL 85cf76ba1f5d0139d69768367b6652c68fc4bb345531a8caee95c22e184a75867ff56488dbe2b113fb61da4175df1b192584cf1afcc4c9e814a4166fdc289bf2
diff --git a/games-arcade/lbreakout/lbreakout-010315.ebuild b/games-arcade/lbreakout/lbreakout-010315.ebuild
new file mode 100644
index 000000000000..d6afbc499bfe
--- /dev/null
+++ b/games-arcade/lbreakout/lbreakout-010315.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI=5
+inherit games
+
+DESCRIPTION="Breakout clone written with the SDL library"
+HOMEPAGE="http://lgames.sourceforge.net/"
+SRC_URI="mirror://sourceforge/lgames/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE=""
+
+DEPEND=">=media-libs/libsdl-1.1.5"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ sed -i \
+ -e '/^sdir=/s:$datadir/games:$datadir:' \
+ -e '/^hdir=/s:/var/lib/games:$localstatedir:' \
+ configure \
+ || die "sed failed"
+}
+
+src_install() {
+ dodir "${GAMES_STATEDIR}"
+ default
+ dohtml lbreakout/manual/*
+ prepgamesdirs
+}
diff --git a/games-arcade/lbreakout/metadata.xml b/games-arcade/lbreakout/metadata.xml
new file mode 100644
index 000000000000..0f9429dd0de0
--- /dev/null
+++ b/games-arcade/lbreakout/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>games</herd>
+ <upstream>
+ <remote-id type="sourceforge">lgames</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-arcade/lbreakout2/Manifest b/games-arcade/lbreakout2/Manifest
new file mode 100644
index 000000000000..88ee91e5f211
--- /dev/null
+++ b/games-arcade/lbreakout2/Manifest
@@ -0,0 +1,3 @@
+DIST lbreakout2-2.6.4.tar.gz 3470380 SHA256 0b90716d52e67c27ff41ab7aa5c09dad4f5f19a78076cc57dd4b4d7ed2c1dbd9 SHA512 fe1787900c4379bdb8330ac8ff31138cbdb180449e5addb1c511a9778ab69f0b09a85e91659bb83663868a399d2644e6e084365702c23eac93da579e80fd68bc WHIRLPOOL 6e39c2ad44e0eb970228fcc34726ba7845498a7f07500136974fd554540bdd84fd19b88edfbadbdf3e8986dc8fa2b9673d41feab9cb34bb3e6acbaaf61c1f52c
+DIST lbreakout2-levelsets-20120815.tar.gz 336355 SHA256 9245fb2b0c52364b88619f11b79f68878f1522ada8fcddb0d2da74ec2027cb34 SHA512 f9427c1716c6e9ab5d97c45849bb8d224da4c6f55c252b33d1bc3be8ff96470bc203c5a4dea5036138f6f2b07efe27f1f60763bf5460febebd0a4e0db8028bcc WHIRLPOOL 08a68780fb232309219fe1867af813b7299f270c81cc86a86887a6fcfa3194d137a34ff8ce6c083a43047a2467f08a86357e1fcaff2c8fc93981ddd90e057560
+DIST lbreakout2-themes-20111026.tar.gz 27462927 SHA256 2da570b139b4eaaadb5e598328c90983a3da22fc41e45b8563fa732ab122028a SHA512 a38856665eb3e9c0eaa0ff29817f7283237841368daa977b632df51842812e662da4343b5aa00265ed0765d4e4de1b4f11b7bf6c2650a9b9b1a8e0b440b8cf63 WHIRLPOOL 9c01ad4efac109c273a31ed5501cdc105affa6cc37e89831999e47120899018100ce902390efee8e6e6f414dbb996e1ceb08db5ac4eef478a361802a37cfd414
diff --git a/games-arcade/lbreakout2/files/lbreakout2-2.6.4-gentoo.patch b/games-arcade/lbreakout2/files/lbreakout2-2.6.4-gentoo.patch
new file mode 100644
index 000000000000..365274c581b9
--- /dev/null
+++ b/games-arcade/lbreakout2/files/lbreakout2-2.6.4-gentoo.patch
@@ -0,0 +1,67 @@
+--- lbreakout2-2.6.1.orig/Makefile.am
++++ lbreakout2-2.6.1/Makefile.am
+@@ -1,13 +1,8 @@
+ SUBDIRS = intl m4 po common gui game server client docs
+
+ EXTRA_DIST = config.rpath AUTHORS COPYING ChangeLog INSTALL README \
+-README-SDL.txt TODO lbreakout2.spec touchall lbreakout32.gif \
+-lbreakout48.gif lbreakout2.desktop.in win32_mancomp win32_preparchive
+-
+-desktopdir = $(datadir)/applications
+-desktop_DATA = lbreakout2.desktop
+-icondir = $(datadir)/icons
+-icon_DATA = lbreakout48.gif
++README-SDL.txt TODO lbreakout2.spec touchall \
++win32_mancomp win32_preparchive
+
+ WIN32_TEXT = AUTHORS COPYING ChangeLog INSTALL README README-SDL.txt \
+ TODO lbreakout2.spec ABOUT-NLS
+--- lbreakout2-2.6.1.orig/common/gettext.h
++++ lbreakout2-2.6.1/common/gettext.h
+@@ -24,6 +24,7 @@
+
+ /* Get declarations of GNU message catalog functions. */
+ # include <libintl.h>
++# include <locale.h>
+
+ #else
+
+--- lbreakout2-2.6.1.orig/configure.in
++++ lbreakout2-2.6.1/configure.in
+@@ -80,8 +80,6 @@
+ [ --enable-netdebug Enable net packet debugging.], netdebug_flag="-DNET_DEBUG_MSG" )
+ AC_SUBST(netdebug_flag)
+
+-dnl set localedir
+-localedir=$datadir/locale
+ locdir_flag="-DLOCALEDIR=\\\"$localedir\\\""
+
+ dnl installation&highscore path
+--- lbreakout2-2.6.1.orig/docs/Makefile.am
++++ lbreakout2-2.6.1/docs/Makefile.am
+@@ -7,11 +7,11 @@
+ warp.jpg screen.jpg
+
+ install-data-local:
+- $(mkinstalldirs) $(DESTDIR)$(doc_dir)/lbreakout2
++ $(mkinstalldirs) $(DESTDIR)$(doc_dir)
+ @for file in *.jpg; do\
+- $(INSTALL_DATA) $$file $(DESTDIR)$(doc_dir)/lbreakout2/$$file;\
++ $(INSTALL_DATA) $$file $(DESTDIR)$(doc_dir)/$$file;\
+ done
+- $(INSTALL_DATA) index.html $(DESTDIR)$(doc_dir)/lbreakout2/index.html
++ $(INSTALL_DATA) index.html $(DESTDIR)$(doc_dir)/index.html
+
+ win32-install-script:
+ @for file in $(EXTRA_DIST); do \
+--- lbreakout2-2.6.1.orig/po/Makefile.in.in
++++ lbreakout2-2.6.1/po/Makefile.in.in
+@@ -24,7 +24,7 @@
+ exec_prefix = @exec_prefix@
+ datadir = @datadir@
+ datarootdir = @datarootdir@
+-localedir = $(datadir)/locale
++localedir = @localedir@
+ gettextsrcdir = $(datadir)/gettext/po
+
+ INSTALL = @INSTALL@
diff --git a/games-arcade/lbreakout2/lbreakout2-2.6.4.ebuild b/games-arcade/lbreakout2/lbreakout2-2.6.4.ebuild
new file mode 100644
index 000000000000..77ec4e5c43ab
--- /dev/null
+++ b/games-arcade/lbreakout2/lbreakout2-2.6.4.ebuild
@@ -0,0 +1,93 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit autotools eutils flag-o-matic gnome2-utils games
+
+levels_V=20120815
+themes_V=20111026
+
+DESCRIPTION="Breakout clone written with the SDL library"
+HOMEPAGE="http://lgames.sourceforge.net/index.php?project=LBreakout2"
+SRC_URI=" mirror://sourceforge/lgames/${P}.tar.gz
+ mirror://sourceforge/lgames/${PN}-levelsets-${levels_V}.tar.gz
+ themes? ( mirror://sourceforge/lgames/${PN}-themes-${themes_V}.tar.gz )"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86 ~x86-fbsd"
+IUSE="nls themes"
+
+RDEPEND="media-libs/libpng:0
+ sys-libs/zlib
+ media-libs/libsdl[sound,joystick,video]
+ media-libs/sdl-net
+ media-libs/sdl-mixer
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )"
+
+src_unpack() {
+ unpack ${P}.tar.gz
+
+ cd "${S}/client/levels"
+ unpack ${PN}-levelsets-${levels_V}.tar.gz
+
+ if use themes ; then
+ mkdir "${WORKDIR}/themes"
+ cd "${WORKDIR}/themes"
+ unpack ${PN}-themes-${themes_V}.tar.gz
+
+ # Delete a few duplicate themes (already shipped with lbreakout2
+ # tarball). Some of them have different case than built-in themes, so it
+ # is harder to just compare if the filename is the same.
+ rm -f absoluteB.zip oz.zip moiree.zip
+ for f in *.zip; do
+ unzip -q "$f" && rm -f "$f" || die
+ done
+ fi
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-gentoo.patch
+ eautoreconf
+}
+
+src_configure() {
+ filter-flags -O?
+ egamesconf \
+ --enable-sdl-net \
+ --localedir=/usr/share/locale \
+ --with-docdir="/usr/share/doc/${PF}/html" \
+ $(use_enable nls)
+}
+
+src_install() {
+ default
+
+ if use themes ; then
+ insinto "${GAMES_DATADIR}/lbreakout2/gfx"
+ doins -r "${WORKDIR}/themes/"*
+ fi
+
+ newicon client/gfx/win_icon.png ${PN}.png
+ newicon -s 32 client/gfx/win_icon.png ${PN}.png
+ make_desktop_entry lbreakout2 LBreakout2
+
+ prepgamesdirs
+}
+
+pkg_preinst() {
+ games_pkg_preinst
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/games-arcade/lbreakout2/metadata.xml b/games-arcade/lbreakout2/metadata.xml
new file mode 100644
index 000000000000..a218c5e37eda
--- /dev/null
+++ b/games-arcade/lbreakout2/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>games</herd>
+ <use>
+ <flag name="themes">Install additional themes</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">lgames</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-arcade/marbleblast-demo/Manifest b/games-arcade/marbleblast-demo/Manifest
new file mode 100644
index 000000000000..e9feed376ed9
--- /dev/null
+++ b/games-arcade/marbleblast-demo/Manifest
@@ -0,0 +1 @@
+DIST MarbleBlastDemo-1.3.sh.bin 10800892 SHA256 84d547df84ce2fdc82eb0316ff737d4ae1b1bf50ce4541870847b51de6bfd1a4 SHA512 24bd5f03c8868ab83e2bcfe27ab60f86727e972f04cafe4d5ff940a77adf4a362c3de1b0391b5763aed8dc946af7b769da60654b2ea53133521b200a99ebdde8 WHIRLPOOL de4288f9eb5f4a1421bcbed54b157eafd00b3076756b3ecb306df96bf1636745ee06be1738fa0b86df0148e0496cd0eea2e89062a5c2efbc14f02fb2d909f872
diff --git a/games-arcade/marbleblast-demo/marbleblast-demo-1.3.ebuild b/games-arcade/marbleblast-demo/marbleblast-demo-1.3.ebuild
new file mode 100644
index 000000000000..58a4339406b8
--- /dev/null
+++ b/games-arcade/marbleblast-demo/marbleblast-demo-1.3.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI=5
+inherit unpacker games
+
+DESCRIPTION="race marbles through crazy stages"
+HOMEPAGE="http://www.garagegames.com/pg/product/view.php?id=3"
+SRC_URI="ftp://ggdev-1.homelan.com/marbleblast/MarbleBlastDemo-${PV}.sh.bin"
+
+LICENSE="MARBLEBLAST"
+SLOT="0"
+KEYWORDS="-* ~amd64 x86"
+IUSE=""
+RESTRICT="strip"
+
+S=${WORKDIR}
+
+dir=${GAMES_PREFIX_OPT}/${PN}
+QA_PREBUILT="${dir:1}/marbleblastdemo.bin
+ ${dir:1}/lib/lib*"
+
+src_install() {
+ dodir "${dir}" "${GAMES_BINDIR}"
+
+ tar -zxf MarbleBlast.tar.gz -C "${D}/${dir}" || die "extracting MarbleBlast.tar.gz"
+
+ exeinto "${dir}"
+ doexe bin/Linux/x86/marbleblastdemo
+ dosym "${dir}"/marbleblastdemo "${GAMES_BINDIR}"/marbleblast-demo
+
+ dodoc README_DEMO.txt
+
+ prepgamesdirs
+}
diff --git a/games-arcade/marbleblast-demo/metadata.xml b/games-arcade/marbleblast-demo/metadata.xml
new file mode 100644
index 000000000000..f0e38de4ba77
--- /dev/null
+++ b/games-arcade/marbleblast-demo/metadata.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+<longdescription>
+Marble Blast is an arcade action game with simple yet addictive gameplay,
+suitable for players of any age. In the rich cartoon landscape of Marble
+Blast, players will race their marbles through moving platforms, dangerous
+hazards, sparkling treasures and power up enhancements in an effort to
+complete each course in record time.
+
+Marble Blast introduces new players to the game with a set of
+progressively more difficult beginner training levels, each designed to
+showcase a power up or game hazard. The hazards players will face in
+Marble Blast include powerful fans, whirling tornados, land mines,
+pinball-style bumpers, narrow catwalks, moving pistons, dizzying chasms,
+and more.
+
+To get past these obstacles, players can find and use five different
+ability enhancing power ups - the SuperSpeed, SuperJump, SuperBounce,
+Shock Asbsorber and Gyrocopter. Some levels contain gravity modifiers,
+which allow the player to change the direction of gravity.
+
+Marble Blast comes with 72 whimsical and challenging levels, as well as
+the ability for advanced players to craft and share their own levels.
+Marble Blast is sure to provide many hours of fun for the whole family.
+</longdescription>
+</pkgmetadata>
diff --git a/games-arcade/marbleblastgold-demo/Manifest b/games-arcade/marbleblastgold-demo/Manifest
new file mode 100644
index 000000000000..429a937ffdf1
--- /dev/null
+++ b/games-arcade/marbleblastgold-demo/Manifest
@@ -0,0 +1 @@
+DIST MarbleBlastGoldDemo-1.4.1.sh.bin 11180534 SHA256 a0a3102324a9ee03a8b397af9bf1ec904344c93d4fdd70fa00e1408fce6dc4e5 SHA512 16f03cdcf3cd6440048d8640c2a91078637d018f15a49764eca914259d65196f5a16a90abc11283d0e4b9af1b290d7ab880e96caae2dd6c813ac6d3d8414ec2c WHIRLPOOL f6798910c2cacab590801202e39436cafd90bb8110b8a51b26556434b72e71be760acc2cc40d9a543c0c80b45e0d17e8dbda7f1e588e9afea7abc661bfbba3fa
diff --git a/games-arcade/marbleblastgold-demo/marbleblastgold-demo-1.4.1.ebuild b/games-arcade/marbleblastgold-demo/marbleblastgold-demo-1.4.1.ebuild
new file mode 100644
index 000000000000..8b28fac57377
--- /dev/null
+++ b/games-arcade/marbleblastgold-demo/marbleblastgold-demo-1.4.1.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit unpacker games
+
+DESCRIPTION="race marbles through crazy stages"
+HOMEPAGE="http://www.garagegames.com/pg/product/view.php?id=15"
+SRC_URI="ftp://ggdev-1.homelan.com/marbleblastgold/MarbleBlastGoldDemo-${PV}.sh.bin"
+
+LICENSE="MARBLEBLAST"
+SLOT="0"
+KEYWORDS="-* ~amd64 x86"
+IUSE=""
+RESTRICT="strip"
+
+RDEPEND="sys-libs/glibc"
+
+dir=${GAMES_PREFIX_OPT}/${PN}
+QA_PREBUILT="${dir:1}/marbleblastgolddemo.bin
+ ${dir:1}/lib/*"
+
+S=${WORKDIR}
+
+src_install() {
+ dodir "${dir}" "${GAMES_BINDIR}"
+
+ tar -zxf MarbleBlast.tar.gz -C "${D}/${dir}" || die "extracting MarbleBlast.tar.gz"
+
+ exeinto "${dir}"
+ doexe bin/Linux/x86/marbleblastgolddemo
+ dosym "${dir}"/marbleblastgolddemo "${GAMES_BINDIR}"/marbleblastgold-demo
+
+ insinto "${dir}"
+ doins MarbleBlast.xpm
+
+ dodoc README.txt
+
+ prepgamesdirs
+}
diff --git a/games-arcade/marbleblastgold-demo/metadata.xml b/games-arcade/marbleblastgold-demo/metadata.xml
new file mode 100644
index 000000000000..81f80ccb2368
--- /dev/null
+++ b/games-arcade/marbleblastgold-demo/metadata.xml
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+<longdescription>
+Marble Blast Gold is an arcade action game with simple yet
+addictive gameplay, suitable for players of any age. In the
+rich cartoon landscape of Marble Blast Gold, players will race
+their marbles through moving platforms, dangerous hazards,
+sparkling treasures and power up enhancements in an effort to
+complete each course in record time.
+
+Marble Blast Gold introduces new players to the game with a set
+of progressively more difficult beginner training levels, each
+designed to showcase a power up or game hazard. The hazards
+players will face in Marble Blast include powerful fans,
+whirling tornados, land mines, pinball-style bumpers, narrow
+catwalks, moving pistons, dizzying chasms, and more.
+
+To get past these obstacles, players can find and use five
+different ability enhancing power ups - the SuperSpeed,
+SuperJump, SuperBounce, Shock Absorber and Gyrocopter. Some
+levels contain gravity modifiers, which allow the player to
+change the direction of gravity.
+
+Marble Blast Gold comes with 100 whimsical and challenging
+levels, as well as the ability for advanced players to craft
+and share their own levels. Each level has "gold standard" set
+for the high score, so you can test your skills against the
+record 'gold' times. Marble Blast Gold is sure to provide many
+hours of fun for the whole family.
+</longdescription>
+</pkgmetadata>
diff --git a/games-arcade/mari0/Manifest b/games-arcade/mari0/Manifest
new file mode 100644
index 000000000000..bb970aec9f48
--- /dev/null
+++ b/games-arcade/mari0/Manifest
@@ -0,0 +1,2 @@
+DIST mari0-1.6.zip 3625226 SHA256 b217134425527e879d5355eb7f51e29a60ad0e93550e5769b2f56c04a1f69037 SHA512 20004035141b80180e58a8d209b588273d2879742ca8d8d59b1d20f9e301d976e260574893ea41a290bab57eade0617c10880a4af00dc3b29329ac4805a8be6c WHIRLPOOL 8ffc36d25ceb0d893cda3d068e484194feb6117ed27e4ea3801553868bdd8be35bbf787320ba37962d81851eb83082c528a4449f55acaeeb9dd731e5ba029334
+DIST mari0.svg.gz 6572 SHA256 5c712f06bc47d7e34598880ad72d18290a8e3f66f7a4af6a5bd6ae7962068d83 SHA512 7c6239219f3fc721a4393ca55790375862d510f8fd04b5b23df6e401efb545b410c25737a3d67ef24c6a978184477d9e47109e3715640876abecdae50b7b733f WHIRLPOOL ccb7aa7fc7bc838d3877c332482a8f07ff9f034f241963e349a18bc673125e0a6b6e64020f45b82e9d181db61d44061bac017c81fa95288eabc6922811422e4e
diff --git a/games-arcade/mari0/mari0-1.6.ebuild b/games-arcade/mari0/mari0-1.6.ebuild
new file mode 100644
index 000000000000..e7b2b60f9cea
--- /dev/null
+++ b/games-arcade/mari0/mari0-1.6.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit eutils gnome2-utils games
+
+MY_P=${P/-/_}
+
+DESCRIPTION="A mix from Nintendo's Super Mario Bros and Valve's Portal"
+HOMEPAGE="http://stabyourself.net/mari0/"
+SRC_URI="${P}.zip
+ mirror://gentoo/mari0.svg.gz"
+
+LICENSE="CC-BY-NC-SA-3.0"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86"
+IUSE=""
+RESTRICT="fetch" # unsure about legality of graphics
+
+RDEPEND=">=games-engines/love-0.8.0
+ media-libs/devil[gif,png]"
+DEPEND="app-arch/unzip"
+
+S=${WORKDIR}
+
+pkg_nofetch() {
+ einfo "Please download ${PN}-source.zip from:"
+ einfo "http://stabyourself.net/${PN}/#download"
+ einfo "Move it to ${DISTDIR} and rename it to ${P}.zip"
+ echo
+}
+
+src_install() {
+ local dir=${GAMES_DATADIR}/love/${PN}
+
+ exeinto "${dir}"
+ doexe ${MY_P}.love
+
+ doicon -s scalable ${PN}.svg
+ games_make_wrapper ${PN} "love ${MY_P}.love" "${dir}"
+ make_desktop_entry ${PN}
+
+ prepgamesdirs
+}
+
+pkg_preinst() {
+ games_pkg_preinst
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ elog "${PN} savegames and configurations are stored in:"
+ elog "~/.local/share/love/${PN}/"
+
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/games-arcade/mari0/metadata.xml b/games-arcade/mari0/metadata.xml
new file mode 100644
index 000000000000..b3eb6f8172b3
--- /dev/null
+++ b/games-arcade/mari0/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>games</herd>
+ <maintainer>
+ <email>hasufell@gentoo.org</email>
+ <name>Julian Ospald</name>
+ </maintainer>
+ <longdescription lang="en">
+ A complete from scratch recreation of Super Mario Bros. with a focus on
+ perfectly imitating the feel the 1985 classic gave us. Then give Mario
+ a portal gun, add puzzle game mechanics from Portal and there you go.
+ And if that wasn't crazy enough, play 4-player coop, with everyone
+ having their own Portal gun!
+ </longdescription>
+</pkgmetadata>
+
diff --git a/games-arcade/metadata.xml b/games-arcade/metadata.xml
new file mode 100644
index 000000000000..992ba13fea49
--- /dev/null
+++ b/games-arcade/metadata.xml
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE catmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<catmetadata>
+ <longdescription lang="en">
+ The games-arcade category contains arcade games.
+ </longdescription>
+ <longdescription lang="de">
+ Die Kategorie games-arcade enthält Arcadespiele.
+ </longdescription>
+ <longdescription lang="es">
+ La categoría games-arcade contiene juegos arcade.
+ </longdescription>
+ <longdescription lang="ja">
+ games-arcadeカテゴリーã«ã¯ã‚¢ãƒ¼ã‚±ãƒ¼ãƒ‰ãƒ»ã‚²ãƒ¼ãƒ ãŒå«ã¾ã‚Œã¦ã„ã¾ã™ã€‚
+ </longdescription>
+ <longdescription lang="nl">
+ De games-arcade categorie bevat arcadespellen.
+ </longdescription>
+ <longdescription lang="vi">
+ Nhóm games-arcade chứa các trò chơi dạng "arcade".
+ </longdescription>
+ <longdescription lang="it">
+ La categoria games-arcade contiene giochi arcade.
+ </longdescription>
+ <longdescription lang="pt">
+ A categoria games-arcade contém jogos de arcade.
+ </longdescription>
+ <longdescription lang="pl">
+ Kategoria games-arcade zawiera gry zręcznościowe.
+ </longdescription>
+ <longdescription lang="ru">
+ ÐšÐ°Ñ‚ÐµÐ³Ð¾Ñ€Ð¸Ñ games-arcade Ñодержит игры-аркады.
+ </longdescription>
+</catmetadata>
+
diff --git a/games-arcade/methane/Manifest b/games-arcade/methane/Manifest
new file mode 100644
index 000000000000..74b8a93dc620
--- /dev/null
+++ b/games-arcade/methane/Manifest
@@ -0,0 +1 @@
+DIST methane-1.5.1.tgz 1057881 SHA256 ac1de7009e638c784b4d413b56a4387be94a31bd5fe3050db7b51e39ccfdd248 SHA512 3506f288179a127f8508bd9d4225618d8dcd93794c559822ed2836bb46a318ce3c199f951f564064091b1125375118f2d64c50a27059dcd0e49c8379fa8c3155 WHIRLPOOL b8f52b981b0a6789b4d854548787810c994c87792b57f150af8ed0d8819dc057e38a04edf1ed5791ab24cba7a7eec66a40e5e71d5260dbabe1c110c8e2044cf4
diff --git a/games-arcade/methane/files/methane-1.5.1-gentoo.patch b/games-arcade/methane/files/methane-1.5.1-gentoo.patch
new file mode 100644
index 000000000000..9e49ecdff25c
--- /dev/null
+++ b/games-arcade/methane/files/methane-1.5.1-gentoo.patch
@@ -0,0 +1,62 @@
+--- Makefile.old 2012-11-26 18:58:48.201837870 +0100
++++ Makefile 2012-11-27 12:30:16.038998128 +0100
+@@ -1,5 +1,5 @@
+-METHANE_FLAGS = -DENABLE_SOUND `pkg-config --cflags clanCore-2.2 clanDisplay-2.2 clanApp-2.2 clanGL-2.2 clanGL1-2.2 clanSWRender-2.2 clanSound-2.2 clanMikMod-2.2`
+-METHANE_LIBS = `pkg-config --libs clanCore-2.2 clanDisplay-2.2 clanApp-2.2 clanGL-2.2 clanGL1-2.2 clanSWRender-2.2 clanSound-2.2 clanMikMod-2.2`
++METHANE_FLAGS = -DENABLE_SOUND `pkg-config --cflags clanCore-2.3 clanDisplay-2.3 clanApp-2.3 clanGL-2.3 clanGL1-2.3 clanSWRender-2.3 clanSound-2.3 clanMikMod-2.3`
++METHANE_LIBS = `pkg-config --libs clanCore-2.3 clanDisplay-2.3 clanApp-2.3 clanGL-2.3 clanGL1-2.3 clanSWRender-2.3 clanSound-2.3 clanMikMod-2.3`
+
+ OBJF = build/game.o build/baddie.o build/methane.o build/target.o build/maps.o build/gfxoff.o build/mapdata.o build/objlist.o build/doc.o build/bitdraw.o build/global.o build/suck.o build/power.o build/goodie.o build/bititem.o build/player.o build/weapon.o build/bitgroup.o build/boss.o build/sound.o build/gasobj.o build/misc.o
+
+@@ -10,7 +10,7 @@
+ @echo "================================="
+
+ methane: ${OBJF}
+- g++ ${CXXFLAGS} ${OBJF} -o methane ${METHANE_LIBS}
++ $(CXX) ${LDFLAGS} ${CXXFLAGS} ${OBJF} -o methane ${METHANE_LIBS}
+
+ clean:
+ @rm -Rf build
+@@ -23,6 +23,6 @@
+ build/%.o : sources/%.cpp
+ @echo " Compiling $<..."
+ @if [ ! -d build ]; then mkdir build; fi
+- gcc ${CXXFLAGS} ${METHANE_FLAGS} -c $< -o $@
++ $(CXX) ${CXXFLAGS} ${METHANE_FLAGS} -c $< -o $@
+
+
+--- sources/methane.cpp.old 2012-11-27 13:49:22.993003266 +0100
++++ sources/methane.cpp 2012-11-27 17:37:23.051913777 +0100
+@@ -80,15 +80,15 @@
+ return 0;
+ }
+
+- CL_AutoPtr<CL_SetupSound> setup_sound;
+- CL_AutoPtr<CL_SoundOutput> sound_output;
+- CL_AutoPtr<CL_SetupMikMod> setup_mikmod;
++ CL_UniquePtr<CL_SetupSound> setup_sound;
++ CL_UniquePtr<CL_SoundOutput> sound_output;
++ CL_UniquePtr<CL_SetupMikMod> setup_mikmod;
+
+ if (GLOBAL_SoundEnable)
+ {
+- setup_sound = new CL_SetupSound;
+- sound_output = new CL_SoundOutput(44100);
+- setup_mikmod = new CL_SetupMikMod;
++ setup_sound = cl_move(CL_UniquePtr<CL_SetupSound>(new CL_SetupSound));
++ sound_output = cl_move(CL_UniquePtr<CL_SoundOutput>(new CL_SoundOutput(44100)));
++ setup_mikmod = cl_move(CL_UniquePtr<CL_SetupMikMod>(new CL_SetupMikMod));
+ }
+
+ // Set the video mode
+--- sources/target.cpp.old 2012-11-28 21:34:32.666878913 +0100
++++ sources/target.cpp 2012-11-28 21:35:16.371247221 +0100
+@@ -132,7 +132,7 @@
+ CL_GraphicContext gc = m_pWindow->get_gc();
+
+ // Find the resources directory:
+- CL_String resource_dir = CL_Directory::get_resourcedata("methane");
++ CL_String resource_dir = "@GENTOO_DATADIR@/methane/";
+ CL_String dataname("page_01.png");
+ CL_String filename = resource_dir + dataname;
+ if (!CL_FileHelp::file_exists(filename))
diff --git a/games-arcade/methane/metadata.xml b/games-arcade/methane/metadata.xml
new file mode 100644
index 000000000000..bccd79d620d5
--- /dev/null
+++ b/games-arcade/methane/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>games</herd>
+ <upstream>
+ <remote-id type="sourceforge">methane</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-arcade/methane/methane-1.5.1.ebuild b/games-arcade/methane/methane-1.5.1.ebuild
new file mode 100644
index 000000000000..b2c5cd1346f7
--- /dev/null
+++ b/games-arcade/methane/methane-1.5.1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+inherit eutils games
+
+DESCRIPTION="Port from an old amiga game"
+HOMEPAGE="http://methane.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND="dev-games/clanlib:2.3[opengl,mikmod]"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-gentoo.patch
+ sed -i \
+ -e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}:" \
+ sources/target.cpp
+
+ # fix weird parallel make issue wrt #450422
+ mkdir build || die
+}
+
+src_install() {
+ dogamesbin methane
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins resources/*
+ dodir "${GAMES_STATEDIR}"
+ touch "${D}/${GAMES_STATEDIR}"/methanescores
+ fperms g+w "${GAMES_STATEDIR}"/methanescores
+ newicon docs/puff.gif ${PN}.gif
+ make_desktop_entry ${PN} "Super Methane Brothers" /usr/share/pixmaps/${PN}.gif
+ dodoc authors.txt history.txt readme.txt
+ dohtml docs/*
+ prepgamesdirs
+}
diff --git a/games-arcade/missile/Manifest b/games-arcade/missile/Manifest
new file mode 100644
index 000000000000..981e6028f224
--- /dev/null
+++ b/games-arcade/missile/Manifest
@@ -0,0 +1 @@
+DIST missile-1.0.1.tar.gz 214933 SHA256 fd6d4c42ebc48ab305c4fd027b1b793aa1a8c71c7b61c8fc4040dc21c1ff7d3b SHA512 32d30213d433fd3d02d74c4614747bdc2e3012c77793dfb7b869d774b7f43f4d0eb6b1a0e5db805d976e7919404c57cbbaa20f21954dfd4475ddaa6c2f6c0cc2 WHIRLPOOL 507c5c75de26543ecfa1be745794974c92d358e86aa75532f87c82b2ca50fc4bbf4130af913f61c1319f99d7ea1e38aeef08c914df5068c1247acc3300adffbe
diff --git a/games-arcade/missile/files/missile-1.0.1-ldflags.patch b/games-arcade/missile/files/missile-1.0.1-ldflags.patch
new file mode 100644
index 000000000000..5d2288165745
--- /dev/null
+++ b/games-arcade/missile/files/missile-1.0.1-ldflags.patch
@@ -0,0 +1,15 @@
+--- Makefile.old 2010-09-22 09:11:48.000000000 +0200
++++ Makefile 2010-09-22 09:13:08.000000000 +0200
+@@ -125,10 +125,10 @@
+ fi
+
+ $(PROGRAM): $(OBJECTS)
+- $(CC) -o $(PROGRAM) $(OBJECTS) $(CFLAGS) $(LIBS)
++ $(CC) $(LDFLAGS) -o $(PROGRAM) $(OBJECTS) $(CFLAGS) $(LIBS)
+
+ static : $(OBJECTS)
+- $(CC) -o $(PROGRAM) $(OBJECTS) $(CFLAGS) $(STATIC_LIBS)
++ $(CC) $(LDFLAGS) -o $(PROGRAM) $(OBJECTS) $(CFLAGS) $(STATIC_LIBS)
+
+
+ %.o : %.c %.h
diff --git a/games-arcade/missile/metadata.xml b/games-arcade/missile/metadata.xml
new file mode 100644
index 000000000000..1a96d428e816
--- /dev/null
+++ b/games-arcade/missile/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>games</herd>
+ <upstream>
+ <remote-id type="sourceforge">missile</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-arcade/missile/missile-1.0.1.ebuild b/games-arcade/missile/missile-1.0.1.ebuild
new file mode 100644
index 000000000000..0ea082c7011b
--- /dev/null
+++ b/games-arcade/missile/missile-1.0.1.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils gnome2-utils games
+
+DESCRIPTION="The game Missile Command for Linux"
+HOMEPAGE="http://missile.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha amd64 ppc ~sparc x86"
+IUSE=""
+
+DEPEND="media-libs/libsdl[sound,video]
+ media-libs/sdl-image[png]
+ media-libs/sdl-mixer"
+RDEPEND=${DEPEND}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-ldflags.patch
+ sed -i \
+ -e '/^CC/d' \
+ -e "s:\$(game_prefix)/\$(game_data):${GAMES_DATADIR}/${PN}:" \
+ -e "s/-O2/${CFLAGS}/" \
+ -e 's/-lSDL_image $(SND_LIBS)/-lSDL_image -lm $(SND_LIBS)/g' \
+ Makefile || die
+}
+
+src_install() {
+ dogamesbin ${PN}
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r data/*
+ newicon -s 48 icons/${PN}_icon_black.png ${PN}.png
+ make_desktop_entry ${PN} "Missile Command"
+ dodoc README
+ prepgamesdirs
+}
+
+pkg_preinst() {
+ games_pkg_preinst
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/games-arcade/moleinvasion/Manifest b/games-arcade/moleinvasion/Manifest
new file mode 100644
index 000000000000..15071b67155a
--- /dev/null
+++ b/games-arcade/moleinvasion/Manifest
@@ -0,0 +1,2 @@
+DIST MoleInvasion-0.4.tar.bz2 11213919 SHA256 a011361f07c06d79a5ba6d110d7b06b59da2c57970515d24fab063fe991d922c SHA512 e1d661758391c24b9daab8ba183a265b77f4b2454c8a55f8405b63a78e040491d0c1421a64736a590a574c364e43a8989ef1b958fa565419938d0c8daadbe03f WHIRLPOOL 0de5f87ca6d42e0eb347f7199276d3af37ef6584eaf9c44281e161b3bc6e55e8d5c1caedf6fdbec45192ccc296ebc1b0e3d1e660a0d72c26a3eca8395e70af00
+DIST moleinvasion-music-20090731.tar.gz 83772534 SHA256 ef973ca073026dbe944c7c61058b1437e19f5abe144e9451aed6feffe3d72c73
diff --git a/games-arcade/moleinvasion/files/moleinvasion-0.4-opengl.patch b/games-arcade/moleinvasion/files/moleinvasion-0.4-opengl.patch
new file mode 100644
index 000000000000..357f1bc2b466
--- /dev/null
+++ b/games-arcade/moleinvasion/files/moleinvasion-0.4-opengl.patch
@@ -0,0 +1,18 @@
+--- src/MoleInvasion.c
++++ src/MoleInvasion.c
+@@ -159,6 +159,7 @@
+ else
+ printf("Video mode set to %ux%u at %u bpp\n",800, 600, bpp);
+
++ if(g_opengl) {
+ /* pour opengl */
+ glEnable (GL_TEXTURE_2D);
+ glTexParameteri (GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
+@@ -169,6 +170,7 @@
+ glEnable( GL_BLEND );
+ glMatrixMode(GL_PROJECTION);
+ /* fin opengl */
++ }
+
+ /* titre */
+ SDL_WM_SetCaption ("Mole Invasion", NULL);
diff --git a/games-arcade/moleinvasion/files/moleinvasion-0.4-underlink.patch b/games-arcade/moleinvasion/files/moleinvasion-0.4-underlink.patch
new file mode 100644
index 000000000000..6f4c5fdf4075
--- /dev/null
+++ b/games-arcade/moleinvasion/files/moleinvasion-0.4-underlink.patch
@@ -0,0 +1,11 @@
+--- Makefile.old 2011-06-14 22:12:00.920386798 +0200
++++ Makefile 2011-06-14 22:12:22.118716548 +0200
+@@ -11,7 +11,7 @@
+ EDTOB = editor
+ EDWOB = editworld
+
+-LINLIBS=$(LDLIBS) -lGL
++LINLIBS=$(LDLIBS) -lGL -ldl
+ LINEXE = ../lin/moleinvasion
+ LINEDT = ../lin/editor
+ LINEDW = ../lin/editworld
diff --git a/games-arcade/moleinvasion/metadata.xml b/games-arcade/moleinvasion/metadata.xml
new file mode 100644
index 000000000000..96ceb3270a0d
--- /dev/null
+++ b/games-arcade/moleinvasion/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>games</herd>
+ <use>
+ <flag name="music">Download and install the music files</flag>
+ </use>
+</pkgmetadata>
diff --git a/games-arcade/moleinvasion/moleinvasion-0.4-r1.ebuild b/games-arcade/moleinvasion/moleinvasion-0.4-r1.ebuild
new file mode 100644
index 000000000000..500d93420ab2
--- /dev/null
+++ b/games-arcade/moleinvasion/moleinvasion-0.4-r1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="Mole infested 2D platform game"
+HOMEPAGE="http://moleinvasion.tuxfamily.org/"
+SRC_URI="ftp://download.tuxfamily.org/minvasion/packages/MoleInvasion-${PV}.tar.bz2
+ music? ( mirror://gentoo/${PN}-music-20090731.tar.gz )"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="music"
+
+DEPEND="media-libs/libsdl[opengl,video]
+ virtual/opengl
+ media-libs/sdl-image[jpeg,png]
+ media-libs/sdl-mixer[vorbis]
+ media-libs/sdl-ttf"
+RDEPEND="${DEPEND}"
+S=${WORKDIR}/${P}/src
+
+src_prepare() {
+ use music && mv -f "${WORKDIR}"/music ../
+ sed -i \
+ -e '/^CFLAGS/s:= -g:+=:' \
+ -e '/^LDFLAGS/d' \
+ -e "/^FINALEXEDIR/s:/usr.*:${GAMES_BINDIR}:" \
+ -e "/^FINALDATADIR/s:/usr.*:${GAMES_DATADIR}/${PN}:" \
+ Makefile \
+ || die "sed failed"
+ epatch "${FILESDIR}"/${P}-opengl.patch \
+ "${FILESDIR}"/${P}-underlink.patch
+}
+
+src_install() {
+ emake DESTDIR="${D}" install install-data
+ newicon ../gfx/icon.xpm ${PN}.xpm
+ make_desktop_entry ${PN} "Mole Invasion"
+ doman ../debian/*.6
+ prepgamesdirs
+}
diff --git a/games-arcade/monkey-bubble/Manifest b/games-arcade/monkey-bubble/Manifest
new file mode 100644
index 000000000000..307730afe51d
--- /dev/null
+++ b/games-arcade/monkey-bubble/Manifest
@@ -0,0 +1 @@
+DIST monkey-bubble-0.4.0.tar.gz 5360713 SHA256 eb96293a0fadbbfc3cd3ae0bbb557d9bf8a4dd8edccdd8ce1b913e8ba49a1c89 SHA512 def3603972462e19d99d0d1dd86d522386d64cbb4190b1361d0d94bc175f476738619ba34fb78451669456a9365f157a96feb4d996870b37acc9d9e68024ae34 WHIRLPOOL 0a86f6a8a2d81b6c6ef58f565683ac0aecd5a6eb6fba468d35d9986ce94ab55b4fb1d3bde8dfb04fb1e3a107b7c4bcb4d8eed463c81df5d2f1435bf316656c7b
diff --git a/games-arcade/monkey-bubble/files/monkey-bubble-0.4.0-asneeded.patch b/games-arcade/monkey-bubble/files/monkey-bubble-0.4.0-asneeded.patch
new file mode 100644
index 000000000000..1e8822d0f871
--- /dev/null
+++ b/games-arcade/monkey-bubble/files/monkey-bubble-0.4.0-asneeded.patch
@@ -0,0 +1,30 @@
+--- monkey-bubble-0.3.2/src/net/Makefile.am.orig
++++ monkey-bubble-0.3.2/src/net/Makefile.am
+@@ -28,10 +28,10 @@
+ monkey_srv_LDFLAGS =
+
+ monkey_srv_LDADD = \
+- $(MONKEY_SRV_LIBS) \
+ libmonkeynet.a \
+ ../monkey/libmonkey.a \
+- ../util/libmonkeyutil.a
++ ../util/libmonkeyutil.a \
++ $(MONKEY_SRV_LIBS) -lm
+
+ $(libmonkeynet_a_OBJECTS): $(marshal_sources)
+
+--- monkey-bubble-0.3.2/src/ui/Makefile.am.orig
++++ monkey-bubble-0.3.2/src/ui/Makefile.am
+@@ -50,10 +50,10 @@
+
+
+ monkey_bubble_LDADD = \
+- $(UI_LIBS) \
+ ../monkey/libmonkey.a \
+ ../view/libmonkeyview.a \
+ ../util/libmonkeyutil.a \
+ ../net/libmonkeynet.a \
+ ../audio/libmonkeyaudio.a \
+- ../input/libmbinput.a
++ ../input/libmbinput.a \
++ $(UI_LIBS) -lm
diff --git a/games-arcade/monkey-bubble/files/monkey-bubble-0.4.0-glib-single-include.patch b/games-arcade/monkey-bubble/files/monkey-bubble-0.4.0-glib-single-include.patch
new file mode 100644
index 000000000000..67109beff7f7
--- /dev/null
+++ b/games-arcade/monkey-bubble/files/monkey-bubble-0.4.0-glib-single-include.patch
@@ -0,0 +1,45 @@
+Index: monkey-bubble-0.4.0/src/net/message-handler.c
+===================================================================
+--- monkey-bubble-0.4.0.orig/src/net/message-handler.c
++++ monkey-bubble-0.4.0/src/net/message-handler.c
+@@ -28,7 +28,7 @@
+ #include <unistd.h>
+ #include <string.h>
+ #include <arpa/inet.h>
+-#include <glib/gthread.h>
++#include <glib.h>
+ #include <sys/time.h>
+ #include <time.h>
+
+Index: monkey-bubble-0.4.0/src/net/simple-server.c
+===================================================================
+--- monkey-bubble-0.4.0.orig/src/net/simple-server.c
++++ monkey-bubble-0.4.0/src/net/simple-server.c
+@@ -31,13 +31,12 @@
+ #include <unistd.h>
+ #include <string.h>
+ #include <arpa/inet.h>
+-#include <glib/gthread.h>
++#include <glib.h>
+ #include <sys/time.h>
+ #include <time.h>
+
+
+ #include <glib-object.h>
+-#include <glib.h>
+
+ #include "simple-server.h"
+ #include "message-handler.h"
+Index: monkey-bubble-0.4.0/src/ui/main.c
+===================================================================
+--- monkey-bubble-0.4.0.orig/src/ui/main.c
++++ monkey-bubble-0.4.0/src/ui/main.c
+@@ -15,7 +15,7 @@
+ #include <gtk/gtk.h>
+ #include <gst/gst.h>
+ #include <bonobo/bonobo-i18n.h>
+-#include <glib/gthread.h>
++#include <glib.h>
+ #include <libgnomeui/gnome-ui-init.h>
+
+ #include <math.h>
diff --git a/games-arcade/monkey-bubble/files/monkey-bubble-0.4.0-gnome-doc.patch b/games-arcade/monkey-bubble/files/monkey-bubble-0.4.0-gnome-doc.patch
new file mode 100644
index 000000000000..801ae84d9bab
--- /dev/null
+++ b/games-arcade/monkey-bubble/files/monkey-bubble-0.4.0-gnome-doc.patch
@@ -0,0 +1,38 @@
+--- help/C/monkey-bubble.xml
++++ help/C/monkey-bubble.xml
+@@ -23,7 +23,7 @@
+ <publishername>GNOME Documentation Project</publishername>
+ </publisher>
+ <authorgroup>
+- <author>
++ <author role="maintainer">
+ <firstname>Thomas</firstname>
+ <surname>Cataldo</surname>
+ <affiliation>
+@@ -55,6 +55,7 @@
+ manual, follow the directions in the
+ <ulink url="ghelp:gnome-feedback" type="help">GNOME Feedback Page</ulink>. </para>
+ </legalnotice>
++ <abstract role="description"><para>Monkey Bubble manual</para></abstract>
+ </articleinfo>
+
+ <indexterm>
+--- help/fr/monkey-bubble.xml
++++ help/fr/monkey-bubble.xml
+@@ -22,7 +22,7 @@
+ <publishername>Projet de documentation GNOME</publishername>
+ </publisher>
+ <authorgroup>
+- <author>
++ <author role="maintainer">
+ <firstname>Thomas</firstname>
+ <surname>Cataldo</surname>
+ <affiliation>
+@@ -47,6 +47,7 @@
+ <title>Votre avis</title>
+ <para>Pour signaler un probl&egrave;me ou faire une suggestion concernant l'application Monkey Bubble ou le pr&eacute;sent manuel, proc&eacute;dez comme indiqu&eacute;&agrave; la <ulink url="ghelp:gnome-feedback" type="help">GNOME Feedback Page</ulink>.</para>
+ </legalnotice>
++ <abstract role="description"><para>Monkey Bubble manual</para></abstract>
+ </articleinfo>
+
+ <indexterm>
diff --git a/games-arcade/monkey-bubble/files/monkey-bubble-0.4.0-noesound.patch b/games-arcade/monkey-bubble/files/monkey-bubble-0.4.0-noesound.patch
new file mode 100644
index 000000000000..be0a9a924a47
--- /dev/null
+++ b/games-arcade/monkey-bubble/files/monkey-bubble-0.4.0-noesound.patch
@@ -0,0 +1,19 @@
+monkey-bubble-0.4.0: don't require the esd header.
+
+2010-07-12 Sven Herzberg
+2012-01-07 Martin von Gagern
+
+References:
+https://github.com/mquinson/monkey-bubble/commit/299623f8e6b0b6090e98
+https://bugs.gentoo.org/397997
+
+--- monkey-bubble-0.4.0.orig/src/ui/main.c
++++ monkey-bubble-0.4.0/src/ui/main.c
+@@ -11,7 +11,6 @@
+ #include "ui-main.h"
+ #include "input-manager.h"
+
+-#include <esd.h>
+ #include <gtk/gtk.h>
+ #include <gst/gst.h>
+ #include <bonobo/bonobo-i18n.h>
diff --git a/games-arcade/monkey-bubble/metadata.xml b/games-arcade/monkey-bubble/metadata.xml
new file mode 100644
index 000000000000..b4647c10eaf6
--- /dev/null
+++ b/games-arcade/monkey-bubble/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+<maintainer>
+<email>mr_bones_@gentoo.org</email>
+<name>Michael Sterrett</name>
+</maintainer>
+</pkgmetadata>
diff --git a/games-arcade/monkey-bubble/monkey-bubble-0.4.0.ebuild b/games-arcade/monkey-bubble/monkey-bubble-0.4.0.ebuild
new file mode 100644
index 000000000000..62ad1740c948
--- /dev/null
+++ b/games-arcade/monkey-bubble/monkey-bubble-0.4.0.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit autotools eutils gnome2
+
+DESCRIPTION="A Puzzle Bobble clone"
+HOMEPAGE="http://www.monkey-bubble.org/"
+SRC_URI="http://home.gna.org/monkeybubble/downloads/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc sparc x86"
+IUSE=""
+
+RDEPEND="x11-libs/gtk+:2
+ >=dev-libs/glib-2.12:2
+ >=gnome-base/libglade-2.0
+ >=gnome-base/libgnomeui-2.0
+ >=gnome-base/librsvg-2.0
+ >=gnome-base/gconf-2.0
+ media-libs/gstreamer:0.10
+ >=dev-libs/libxml2-2.6.7"
+DEPEND="${RDEPEND}
+ app-text/rarian
+ app-text/gnome-doc-utils
+ dev-util/intltool"
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-asneeded.patch \
+ "${FILESDIR}"/${P}-gnome-doc.patch \
+ "${FILESDIR}"/${P}-noesound.patch \
+ "${FILESDIR}"/${P}-glib-single-include.patch
+ # bug 260895
+ sed -i -e 's/ -Werror//' $(find . -name Makefile.am) || die
+ sed -i \
+ -e '/^Icon/s/.png//' \
+ -e '/^Categories/s/Application;//' \
+ monkey-bubble.desktop.in || die
+ AT_NOELIBTOOLIZE=yes eautoreconf
+ gnome2_src_prepare
+}
diff --git a/games-arcade/monster-masher/Manifest b/games-arcade/monster-masher/Manifest
new file mode 100644
index 000000000000..ce03456bae77
--- /dev/null
+++ b/games-arcade/monster-masher/Manifest
@@ -0,0 +1 @@
+DIST monster-masher-1.8.1.tar.bz2 1042299 SHA256 09f710fe1293fc6c8791ed569d02143c238659f8b635b364f59f08ab6c5ea5b1 SHA512 250414d6fb4abea12d2fd5328fc003449680b76784bfc6c15cc05d5dfb78e45eee2d2c6d36a3bf2f3c0e055c9ee58cbfaf623f56638fa8462f5006c84057c254 WHIRLPOOL 9faba62e35585dd063a092dfc4cbe39d4a7869bfe8a1b508cd441b37eebafcc76a73b23f3c735cae33cc1df0d37bb671b609bc5f69ed6d55c656d672e85d73e2
diff --git a/games-arcade/monster-masher/files/monster-masher-1.8.1-desktop.patch b/games-arcade/monster-masher/files/monster-masher-1.8.1-desktop.patch
new file mode 100644
index 000000000000..f9812802da74
--- /dev/null
+++ b/games-arcade/monster-masher/files/monster-masher-1.8.1-desktop.patch
@@ -0,0 +1,16 @@
+--- monster-masher.desktop.in.old 2014-11-23 21:20:33.967676333 +0100
++++ monster-masher.desktop.in 2014-11-23 21:21:30.518718141 +0100
+@@ -1,10 +1,9 @@
+ [Desktop Entry]
+-Encoding=UTF-8
+ _Name=Monster Masher
+ _Comment=Mash monsters and save the gnomes
+ Exec=monster-masher
+-Icon=monster-masher.png
++Icon=monster-masher
+ Terminal=false
+ Type=Application
+-Categories=GNOME;Application;Game;ArcadeGame;
+-StartupNotification=true
++Categories=GNOME;Game;
++StartupNotify=true
diff --git a/games-arcade/monster-masher/files/monster-masher-1.8.1-libcanberra.patch b/games-arcade/monster-masher/files/monster-masher-1.8.1-libcanberra.patch
new file mode 100644
index 000000000000..4ee47fab39fb
--- /dev/null
+++ b/games-arcade/monster-masher/files/monster-masher-1.8.1-libcanberra.patch
@@ -0,0 +1,85 @@
+Drop dependency on esound support in libgnome and replace it by libcanberra.
+
+Gentoo bug: #348605
+
+--- a/configure.ac 2008-11-09 20:52:01.000000000 +0000
++++ b/configure.ac 2011-03-06 13:08:42.000000000 +0000
+@@ -18,7 +18,8 @@
+ gconfmm-2.6 >= 2.6.0 \
+ gtkmm-2.4 >= 2.6.0 \
+ libgnomecanvasmm-2.6 >= 2.6.0 \
+- libglademm-2.4 >= 2.4.0)
++ libglademm-2.4 >= 2.4.0 \
++ libcanberra)
+ AC_SUBST(DEPS_CFLAGS)
+ AC_SUBST(DEPS_LIBS)
+
+--- a/src/sound.hpp 2007-01-06 16:16:30.000000000 +0000
++++ b/src/sound.hpp 2011-03-06 13:12:47.000000000 +0000
+@@ -22,6 +22,7 @@
+ #define SOUND_HPP
+
+ #include <string>
++#include <canberra.h>
+
+ #include "helpers.hpp"
+
+@@ -39,8 +40,7 @@
+ private:
+ Sound();
+
+- typedef std::map<std::string, int> cache_map;
+- cache_map cache;
++ ca_context *ctx;
+ };
+
+ #endif
+--- a/src/sound.cpp 2007-01-06 16:16:30.000000000 +0000
++++ b/src/sound.cpp 2011-03-07 21:55:47.000000000 +0000
+@@ -18,9 +18,6 @@
+ * USA.
+ */
+
+-#include <libgnome/gnome-sound.h>
+-#include <esd.h>
+-
+ #include "sound.hpp"
+
+
+@@ -30,26 +27,23 @@
+ return s;
+ }
+
+-Sound::Sound()
++Sound::Sound() :
++ ctx(0)
+ {
++ ca_context_create(&ctx);
+ }
+
+ Sound::~Sound()
+ {
++ if (ctx)
++ ca_context_destroy(ctx);
+ }
+
+ void Sound::play(const std::string &name)
+ {
+- int id;
+-
+- cache_map::iterator i = cache.find(name);
+- if (i != cache.end())
+- id = i->second;
+- else {
+- id = gnome_sound_sample_load(name.c_str(),
+- (MONSTER_MASHER_SOUND_DIR + name).c_str());
+- cache.insert(make_pair(name, id));
+- }
+-
+- esd_sample_play(gnome_sound_connection_get(), id);
++ if (ctx)
++ ca_context_play(ctx, 0,
++ CA_PROP_MEDIA_FILENAME, (MONSTER_MASHER_SOUND_DIR + name).c_str(),
++ CA_PROP_CANBERRA_CACHE_CONTROL, "permanent",
++ NULL);
+ }
diff --git a/games-arcade/monster-masher/metadata.xml b/games-arcade/monster-masher/metadata.xml
new file mode 100644
index 000000000000..d3c2cc926f0b
--- /dev/null
+++ b/games-arcade/monster-masher/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+</pkgmetadata>
diff --git a/games-arcade/monster-masher/monster-masher-1.8.1-r2.ebuild b/games-arcade/monster-masher/monster-masher-1.8.1-r2.ebuild
new file mode 100644
index 000000000000..1f8d1a361325
--- /dev/null
+++ b/games-arcade/monster-masher/monster-masher-1.8.1-r2.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+GCONF_DEBUG="no"
+
+inherit autotools eutils gnome2
+
+DESCRIPTION="Squash the monsters with your levitation worker gnome"
+HOMEPAGE="http://people.iola.dk/olau/monster-masher/"
+SRC_URI="http://people.iola.dk/olau/monster-masher/source/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86 ~x86-fbsd"
+IUSE=""
+
+RDEPEND="
+ x11-libs/libSM
+ >=dev-cpp/gtkmm-2.6:2.4
+ >=dev-cpp/gconfmm-2.6
+ >=dev-cpp/libglademm-2.4:2.4
+ >=dev-cpp/libgnomecanvasmm-2.6:2.6
+ gnome-base/libgnome
+ media-libs/libcanberra
+"
+DEPEND="${RDEPEND}
+ dev-util/intltool
+ virtual/pkgconfig
+ sys-devel/gettext
+"
+
+src_prepare() {
+ # Port to libcanberra, bug #348605
+ epatch "${FILESDIR}"/${P}-libcanberra.patch
+
+ # Fix .desktop file
+ epatch "${FILESDIR}"/${P}-desktop.patch
+
+ # build with newer glib - bug #424313
+ sed -i -e 's:glib/gtypes:glib:' src/pixbuf-drawing.hpp || die
+
+ eautoreconf
+ gnome2_src_prepare
+}
diff --git a/games-arcade/mrrescue/Manifest b/games-arcade/mrrescue/Manifest
new file mode 100644
index 000000000000..580f6bc384f8
--- /dev/null
+++ b/games-arcade/mrrescue/Manifest
@@ -0,0 +1,2 @@
+DIST mrrescue-1.02b-love.zip 11874167 SHA256 fd19646fb97cf21b7e6eb050ff0c4dc9126189f1036ebf712729f35220c9e6b2 SHA512 24186570c89694889c1d9f17522dd201f20bae2c43237f366397065a7023c89bab3bb9cdc6677cf09bc7cbeaf9926710a3db15818eee9ce8024fedbfcb8fb516 WHIRLPOOL 63ece45482f326f4e2cd64c6003607678b778d93bcef84f7a5894826215f0abcff06ac02052cebddce74d1460d0b7b5b7142649ed178421d5acfd347041df25e
+DIST mrrescue.png 4738 SHA256 03ecc23472af3ae5a89278ec6026b95d967cd679b0cdccf94d9527d77f646877 SHA512 9395e239e300397ed791573758242d75003caaf8c1d66c4f7a0299114ee4f1b40376bb2d532ed4a02fa97f773408ad5ef00ba228ee976fd30ddaa2f60ea80b9c WHIRLPOOL c08ffb6898e0fba6db08112ab39067c9bdfd5fcb418d135a7ba931a552b904b2826afa75c13ce8a0c1cb78106349a11c244462aed0f50138e4e012c371cbd864
diff --git a/games-arcade/mrrescue/metadata.xml b/games-arcade/mrrescue/metadata.xml
new file mode 100644
index 000000000000..28782ebba7d9
--- /dev/null
+++ b/games-arcade/mrrescue/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>games</herd>
+ <upstream>
+ <remote-id type="github">SimonLarsen/mrrescue</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-arcade/mrrescue/mrrescue-1.02b.ebuild b/games-arcade/mrrescue/mrrescue-1.02b.ebuild
new file mode 100644
index 000000000000..41eb4940d440
--- /dev/null
+++ b/games-arcade/mrrescue/mrrescue-1.02b.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils gnome2-utils games
+
+DESCRIPTION="Arcade styled 2d action game centered around evacuating civilians from burning buildings"
+HOMEPAGE="http://tangramgames.dk/games/mrrescue/"
+SRC_URI="https://github.com/SimonLarsen/mrrescue/releases/download/v${PV}/${P}-love.zip
+ http://dev.gentoo.org/~hasufell/distfiles/${PN}.png"
+
+LICENSE="CC-BY-SA-3.0 MIT ZLIB"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND="games-engines/love:0"
+DEPEND="app-arch/unzip"
+
+S=${WORKDIR}/${P}-love
+
+src_install() {
+ local dir=${GAMES_DATADIR}/love/${PN}
+
+ exeinto "${dir}"
+ doexe ${PN}.love
+
+ dodoc README.txt
+
+ doicon -s 64 "${DISTDIR}"/${PN}.png
+ games_make_wrapper ${PN} "love ${PN}.love" "${dir}"
+ make_desktop_entry ${PN}
+
+ prepgamesdirs
+}
+
+pkg_preinst() {
+ games_pkg_preinst
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/games-arcade/netris/Manifest b/games-arcade/netris/Manifest
new file mode 100644
index 000000000000..3400d8f65b11
--- /dev/null
+++ b/games-arcade/netris/Manifest
@@ -0,0 +1,2 @@
+DIST netris-0.52.tar.gz 33135 SHA256 8bc770ebb2c3ead1611ca7a1a2f3d833e169536c78d53b3fcf49381164ee9706 SHA512 842ad8602394dee929c3c4ba222f9f5ffe628e52348c3faf7c9098bbd5b0b0279fffc7927320f8ee8a5102537c995a8ed605d851f1cd32e4bd8976a7889c84e1 WHIRLPOOL 7bf0356b85107ec871c15afa9e680596e890e22cfb6ba9e72b4487af84c01b5aa4519a0d218c8736f80edaa8ba0c488d49aca07dd67c75dad91054de3a7ea7aa
+DIST netris_0.52-7.diff.gz 11586 SHA256 6b4d157768d075d9fedb9318f2583add253af994bab8ed6fe25b65b5086c8cc5 SHA512 2d2fe28dbf886107fa27f631e30534aab8afe027b5a41da3761ff39a16d65d7cf6ff5bf409708d55740638df75e334b5fb1ae4c5304616731fb6498d2cc00ca9 WHIRLPOOL ff1ff01f25b12f809f72682e48f539dd55df8e370151effe1222898b12239abf972e97ff1e8cc768beedf3c085b96e6c3540a309f08205245811ae1b52b51ac2
diff --git a/games-arcade/netris/metadata.xml b/games-arcade/netris/metadata.xml
new file mode 100644
index 000000000000..d3c2cc926f0b
--- /dev/null
+++ b/games-arcade/netris/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+</pkgmetadata>
diff --git a/games-arcade/netris/netris-0.52.ebuild b/games-arcade/netris/netris-0.52.ebuild
new file mode 100644
index 000000000000..5e0d8019bfcc
--- /dev/null
+++ b/games-arcade/netris/netris-0.52.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils games
+
+DEB_VER=7
+DESCRIPTION='Classic networked version of T*tris'
+HOMEPAGE='http://www.netris.org/'
+SRC_URI="ftp://ftp.netris.org/pub/netris/${P}.tar.gz
+ mirror://debian/pool/main/n/netris/netris_${PV}-${DEB_VER}.diff.gz"
+
+LICENSE='GPL-2'
+SLOT='0'
+KEYWORDS='amd64 ~mips ppc ~sparc x86 ~x86-fbsd'
+IUSE=''
+
+DEPEND='sys-libs/ncurses'
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${WORKDIR}"/netris_${PV}-${DEB_VER}.diff
+ # bug #185332
+ sed -i \
+ -e '/sys\/time/ i\
+#include <sys/types.h> \
+#include <time.h>
+' \
+ -e '/netint2/ s/short/int16_t/' \
+ -e '/netint4/ s/long/int32_t/' \
+ netris.h \
+ || die 'sed failed'
+ sed -i \
+ -e '/curses\.h/ a\
+#include <term.h>
+' \
+ curses.c \
+ || die 'sed failed'
+ sed -i \
+ -e 's/volatile //g' \
+ -e '/Be more forgiving/d' \
+ -e 's/static myRandSeed/static int myRandSeed/' \
+ util.c \
+ || die 'sed failed'
+ sed -i \
+ -e 's/\(long pauseTimeLeft\)/\1 = 0/' \
+ game.c \
+ || die 'sed failed'
+ sed -i \
+ -e '/^CC/d' \
+ -e '/^COPT/d' \
+ -e '/^CFLAGS/d' \
+ -e 's/(LFLAGS)/(LDFLAGS) $(LFLAGS)/' \
+ Configure \
+ || die 'sed failed'
+}
+
+src_configure() {
+ bash ./Configure -O || die 'Configure failed'
+}
+
+src_install() {
+ dogamesbin netris sr
+ dodoc FAQ README robot_desc
+ prepgamesdirs
+}
diff --git a/games-arcade/nibbles/Manifest b/games-arcade/nibbles/Manifest
new file mode 100644
index 000000000000..c05b9b4296c3
--- /dev/null
+++ b/games-arcade/nibbles/Manifest
@@ -0,0 +1 @@
+DIST nibbles-v0.0.4.tar.gz 18610 SHA256 4a1715d700319fdad55f8e880d68a16399f9bf1a35ab403f03c13286cd50ee92 SHA512 a10af4f20af371c2a8ab4cf69c4a73120670815467177d3bc2a05aa198e9edf80cc1d47edf40d06059baf6e51cf7018ed4830a3a5bda6a35868548403f5f414b WHIRLPOOL c6900db02529c8a352894e0dca63adb276f6a61e9babef3d2e8a21fa82e4740a82a26c2f090412858feae18ccd7bce16cf2feed502f48cd55820a35d7f0fd3fa
diff --git a/games-arcade/nibbles/files/nibbles-0.0.4-as-needed.patch b/games-arcade/nibbles/files/nibbles-0.0.4-as-needed.patch
new file mode 100644
index 000000000000..7e27d1fb9cac
--- /dev/null
+++ b/games-arcade/nibbles/files/nibbles-0.0.4-as-needed.patch
@@ -0,0 +1,24 @@
+--- Makefile.old 2009-02-02 12:40:36.000000000 +0100
++++ Makefile 2009-02-02 12:41:22.000000000 +0100
+@@ -1,19 +1,14 @@
+-CC = gcc -Wall -g
+-
+ SRCS = player.c main.c loadMap.c cmdline.c ncdrawlib.c scoring.c
+ OBJS = $(SRCS:.c=.o)
+-LIBS = -lncurses
++LDLIBS = -lncurses
+
+ INSTALL=/usr/bin/install -c
+ INSTALL_FOLDER=/usr/games
+
+ all: nibbles
+
+-.c.o:
+- $(CC) -c $*.c -o $*.o
+-
+ nibbles: $(OBJS)
+- $(CC) $(LIBS) $(OBJS) -o $@
++ $(CC) $(LDFLAGS) $(OBJS) $(LDLIBS) -o $@
+
+ clean:
+ rm -f *~ *.o nibbles
diff --git a/games-arcade/nibbles/metadata.xml b/games-arcade/nibbles/metadata.xml
new file mode 100644
index 000000000000..d3c2cc926f0b
--- /dev/null
+++ b/games-arcade/nibbles/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+</pkgmetadata>
diff --git a/games-arcade/nibbles/nibbles-0.0.4.ebuild b/games-arcade/nibbles/nibbles-0.0.4.ebuild
new file mode 100644
index 000000000000..95e45f240207
--- /dev/null
+++ b/games-arcade/nibbles/nibbles-0.0.4.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils games
+
+MY_P=${PN}-v${PV}
+DESCRIPTION="An ncurses-based Nibbles clone"
+HOMEPAGE="http://www.earth.li/projectpurple/progs/nibbles.html"
+SRC_URI="http://www.earth.li/projectpurple/files/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc ppc64 sparc x86 ~x86-fbsd ~x86-freebsd ~x86-linux ~ppc-macos"
+IUSE=""
+
+DEPEND="sys-libs/ncurses"
+RDEPEND=${DEPEND}
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ sed -i \
+ -e "s#/usr/local/games/nibbles.levels#${GAMES_DATADIR}/${PN}#" \
+ nibbles.h || die
+
+ sed -i \
+ -e "s#/var/lib/games/nibbles.score#${GAMES_STATEDIR}/nibbles.scores#" \
+ scoring.h || die
+
+ epatch "${FILESDIR}"/${P}-as-needed.patch
+}
+
+src_install() {
+ dogamesbin nibbles
+
+ insinto "${GAMES_DATADIR}/${PN}"
+ doins nibbles.levels/*
+
+ dodir "${GAMES_STATEDIR}"
+ touch "${D}${GAMES_STATEDIR}/nibbles.scores"
+
+ dodoc HISTORY CREDITS TODO README
+
+ prepgamesdirs
+
+ fperms 664 "${GAMES_STATEDIR}/nibbles.scores"
+}
diff --git a/games-arcade/ninvaders/Manifest b/games-arcade/ninvaders/Manifest
new file mode 100644
index 000000000000..63d4f38168b1
--- /dev/null
+++ b/games-arcade/ninvaders/Manifest
@@ -0,0 +1 @@
+DIST ninvaders-0.1.1.tar.gz 31275 SHA256 bfbc5c378704d9cf5e7fed288dac88859149bee5ed0850175759d310b61fd30b SHA512 7987063084d9a9f042b419e7552debf3f173b82ba3832c2575ae8461fb5f787d6a476c305d5c2d591b4574748c6ba50e42391796c384f225685c22f044553087 WHIRLPOOL adac43bcd768c7f2961ea48fec06c587e9d62ee562a154f3dc712f07a65b698ce8ff70a3dcf740f5d02e14fa17c1cf4b5ca719c9deaa771c77729b4fc373b8cf
diff --git a/games-arcade/ninvaders/metadata.xml b/games-arcade/ninvaders/metadata.xml
new file mode 100644
index 000000000000..da189cd7e97d
--- /dev/null
+++ b/games-arcade/ninvaders/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>games</herd>
+ <upstream>
+ <remote-id type="sourceforge">ninvaders</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-arcade/ninvaders/ninvaders-0.1.1.ebuild b/games-arcade/ninvaders/ninvaders-0.1.1.ebuild
new file mode 100644
index 000000000000..450b4ee031e9
--- /dev/null
+++ b/games-arcade/ninvaders/ninvaders-0.1.1.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI=5
+inherit toolchain-funcs games
+
+DESCRIPTION="ASCII space invaders clone"
+HOMEPAGE="http://ninvaders.sourceforge.net/"
+SRC_URI="mirror://sourceforge/ninvaders/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86 ~x86-fbsd"
+IUSE=""
+
+DEPEND="sys-libs/ncurses"
+RDEPEND="${DEPEND}"
+
+src_compile() {
+ emake \
+ CC="$(tc-getCC)" \
+ CFLAGS="${CFLAGS}"
+}
+
+src_install() {
+ newgamesbin nInvaders ninvaders
+ dodoc README
+ prepgamesdirs
+}
diff --git a/games-arcade/njam/Manifest b/games-arcade/njam/Manifest
new file mode 100644
index 000000000000..3d711acf3fd0
--- /dev/null
+++ b/games-arcade/njam/Manifest
@@ -0,0 +1 @@
+DIST njam-1.25-src.tar.gz 1665803 SHA256 8ed3eee3f387ce5ecdab7dd528f98cf77f65971510964000f2f1dfbf8b6f3000 SHA512 d19c249ade34ede322245718fbc6fc79c5a0ed5f5da50989f88de48410dda3d7ae29f8968185166dfdc1dd23dae8126efe4a5f3c76c3731b90afd1c798f66917 WHIRLPOOL de12dd8ba5e8bf778f9e828b7aac85d6b9c172e07294ea5d62417fcc39256d0d19427ba9d45417c98540e3641a789774c425a111dfdda7bbc5df4204d7353463
diff --git a/games-arcade/njam/files/njam-1.25-gcc45.patch b/games-arcade/njam/files/njam-1.25-gcc45.patch
new file mode 100644
index 000000000000..b74bc3dac105
--- /dev/null
+++ b/games-arcade/njam/files/njam-1.25-gcc45.patch
@@ -0,0 +1,24 @@
+Fix buiding with gcc 4.5
+
+http://bugs.gentoo.org/show_bug.cgi?id=318411
+
+--- src/njamedit.cpp
++++ src/njamedit.cpp
+@@ -114,7 +114,7 @@
+ key = SDLK_a;
+ else if (CheckForSave())
+ {
+- LogFile::LogFile("Saving maps");
++ LogFile("Saving maps");
+ m_Maps.Save(filename);
+ level_type_was = level_type;
+ changed = false;
+@@ -131,7 +131,7 @@
+ char types[2][5] = { "COOP", "DUEL" };
+ sprintf(buf, "levels/%s.%s\0", filename, types[level_type]);
+ sprintf(filename, "%s\0", buf);
+- LogFile::LogFile("Saving maps");
++ LogFile("Saving maps");
+ m_Maps.Save(filename);
+ level_type_was = level_type;
+ changed = false;
diff --git a/games-arcade/njam/metadata.xml b/games-arcade/njam/metadata.xml
new file mode 100644
index 000000000000..cbb30a3a18a3
--- /dev/null
+++ b/games-arcade/njam/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>games</herd>
+ <upstream>
+ <remote-id type="sourceforge">njam</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-arcade/njam/njam-1.25.ebuild b/games-arcade/njam/njam-1.25.ebuild
new file mode 100644
index 000000000000..0490115d19f4
--- /dev/null
+++ b/games-arcade/njam/njam-1.25.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils flag-o-matic games
+
+MY_P=${P}-src
+DESCRIPTION="Multi or single-player network Pacman-like game in SDL"
+HOMEPAGE="http://njam.sourceforge.net/"
+SRC_URI="mirror://sourceforge/njam/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE=""
+
+DEPEND="media-libs/sdl-mixer
+ media-libs/sdl-image
+ media-libs/libsdl
+ media-libs/sdl-net"
+RDEPEND="${DEPEND}"
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ sed -i \
+ -e "s:hiscore.dat:${GAMES_STATEDIR}/${PN}/\0:" \
+ src/njam.cpp \
+ || die "sed failed"
+ sed -i \
+ -e "/hiscore.dat/ s:\$(DEFAULT_LIBDIR):${GAMES_STATEDIR}:" \
+ Makefile.in \
+ || die "sed failed"
+ epatch "${FILESDIR}"/${P}-gcc45.patch
+ # njam segfaults on startup with -Os
+ replace-flags "-Os" "-O2"
+}
+
+src_install() {
+ dodir "${GAMES_STATEDIR}/${PN}"
+ emake DESTDIR="${D}" install
+ dohtml -r "${D}${GAMES_DATADIR}/njam/html/"*
+ rm -rf "${D}${GAMES_DATADIR}/njam/html/"
+ newicon data/njamicon.bmp njam.bmp
+ make_desktop_entry njam Njam /usr/share/pixmaps/njam.bmp
+ prepgamesdirs
+}
diff --git a/games-arcade/notpacman/Manifest b/games-arcade/notpacman/Manifest
new file mode 100644
index 000000000000..4223046be9c3
--- /dev/null
+++ b/games-arcade/notpacman/Manifest
@@ -0,0 +1,2 @@
+DIST notpacman-1.0.4.zip 439775 SHA256 9ec13bb0737d69c8954a5012ab3c84917f8db6285f74605c6faac7592a7ef2fc SHA512 c64d74cad972c22fe7674b55c0155fcd6e0176c580f53645a0cef7ae1e2c3453807f13fd9bbc9992cdc1176bc1687800f957ef5c11034a2ffe0774ec0118a863 WHIRLPOOL 94fa5c3a865b3fea736a41cb9000522cfdd36cfd63703f0a811743bd9fdc082f98c85407b9248a3e066f06c34cd44b15a7c2ace0956fc72a4541b933169b1457
+DIST notpacman.png 1556 SHA256 79e3d47abc08c4e07d70a410fd841fbccf0289443fa5f6f09d74ec674ff86d3a SHA512 38fca81429255a5857476cbbcccb188ae4cc7fae4c044b45d82206ffcb41da5737e20135be2a6ab15ec1ff5faa74e5208a33a4966b3e9e99293c0ccb276b0c1b WHIRLPOOL bd0a91e87c410d1901f6839df88e5a70ca6c193cda842fff878f055a384cbc667b2e688b2e3c7015cdfd862545dda1a38e55e91aa2d23e9ca9b8b67eb780dbf3
diff --git a/games-arcade/notpacman/metadata.xml b/games-arcade/notpacman/metadata.xml
new file mode 100644
index 000000000000..7b7fcbaee9c0
--- /dev/null
+++ b/games-arcade/notpacman/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>games</herd>
+ <longdescription lang="en">
+ Ever wondered how Pacman would be like with physics? No? Well, it's
+ revolutionary. This mashup of "Not" and "Pacman" puts The Pac and
+ the Ghosts in a in a Pacworld cage, at mercy of gravity and the
+ level's shape, controlled solely by you. Ghosts still don't like
+ you very much, so you should be careful to make Pacman avoid them.
+ </longdescription>
+</pkgmetadata>
+
diff --git a/games-arcade/notpacman/notpacman-1.0.4.ebuild b/games-arcade/notpacman/notpacman-1.0.4.ebuild
new file mode 100644
index 000000000000..74e7eeed3c04
--- /dev/null
+++ b/games-arcade/notpacman/notpacman-1.0.4.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils gnome2-utils games
+
+DESCRIPTION="A mashup of \"Not\" and \"Pacman\""
+HOMEPAGE="http://stabyourself.net/notpacman/"
+SRC_URI="http://stabyourself.net/dl.php?file=notpacman-1004/notpacman-linux.zip -> ${P}.zip
+ http://dev.gentoo.org/~hasufell/distfiles/${PN}.png"
+
+LICENSE="WTFPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+
+LVSLOT="0.7"
+RDEPEND=">=games-engines/love-0.7.2:${LVSLOT}
+ media-libs/devil[png]"
+DEPEND="app-arch/unzip"
+
+S=${WORKDIR}
+
+src_install() {
+ local dir=${GAMES_DATADIR}/love/${PN}
+
+ exeinto "${dir}"
+ newexe not_pacman.love ${PN}.love
+
+ dodoc README
+
+ doicon -s 32 "${DISTDIR}"/${PN}.png
+ games_make_wrapper ${PN} "love-${LVSLOT} ${PN}.love" "${dir}"
+ make_desktop_entry ${PN}
+
+ prepgamesdirs
+}
+
+pkg_preinst() {
+ games_pkg_preinst
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/games-arcade/nottetris2/Manifest b/games-arcade/nottetris2/Manifest
new file mode 100644
index 000000000000..54e3a153709d
--- /dev/null
+++ b/games-arcade/nottetris2/Manifest
@@ -0,0 +1 @@
+DIST nottetris2-1.zip 2774048 SHA256 e2b8737e1e761174bbb0cdea403a2b7558732b682f5a1e32ea3ee956192ea88c SHA512 63478640fadf91134dec86f88d6422a317b4523ececff836e40984500f2771d564012cbd587a46b300e084c3c64531f3758c648edf3d683b136c9da69924a187 WHIRLPOOL e665708a202dc83923de462f2624dfa273a7a7016e4acf253ef080aac956ded50c1973d258511434943b8f328b06bd36b69db110d4c7aed2d0aa40bf4069e714
diff --git a/games-arcade/nottetris2/metadata.xml b/games-arcade/nottetris2/metadata.xml
new file mode 100644
index 000000000000..b16ee4050bb5
--- /dev/null
+++ b/games-arcade/nottetris2/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>games</herd>
+ <longdescription lang='en'>
+ Not Tetris 2 is the spiritual successor of the classic Tetris
+ mixed with physics. The result is a fun spinoff in which blocks
+ are no longer bound to the usual grid. Blocks can be rotated and
+ placed at any angle, resulting in a complete mess if not careful.
+ And with the newest cutting edge technology, Not tetris 2 allows
+ line clears when the lines are sufficiently filled. The old mode
+ is still available for play and is now called Stack.
+ </longdescription>
+</pkgmetadata>
diff --git a/games-arcade/nottetris2/nottetris2-1.ebuild b/games-arcade/nottetris2/nottetris2-1.ebuild
new file mode 100644
index 000000000000..1419afd49bdb
--- /dev/null
+++ b/games-arcade/nottetris2/nottetris2-1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils games
+
+DESCRIPTION="The spiritual successor of the classic Tetris mixed with physics"
+HOMEPAGE="http://stabyourself.net/nottetris2/"
+SRC_URI="http://stabyourself.net/dl.php?file=nottetris2/nottetris2-linux.zip -> ${P}.zip"
+
+LICENSE="CC-BY-NC-SA-3.0"
+SLOT="0"
+KEYWORDS="amd64 x86"
+
+LVSLOT="0.7"
+RDEPEND=">=games-engines/love-0.7.2:${LVSLOT}
+ media-libs/devil[png]"
+DEPEND="app-arch/unzip"
+
+S=${WORKDIR}
+
+src_install() {
+ local dir=${GAMES_DATADIR}/love/${PN}
+
+ exeinto "${dir}"
+ newexe "Not Tetris 2.love" ${PN}.love
+
+ newdoc "Not Readme.txt" README
+
+ games_make_wrapper ${PN} "love-${LVSLOT} ${PN}.love" "${dir}"
+ make_desktop_entry ${PN}
+
+ prepgamesdirs
+}
diff --git a/games-arcade/openbubbles/Manifest b/games-arcade/openbubbles/Manifest
new file mode 100644
index 000000000000..aee64dc4e596
--- /dev/null
+++ b/games-arcade/openbubbles/Manifest
@@ -0,0 +1 @@
+DIST openbubbles-1.2.tar.bz2 1090220 SHA256 7d5d4633a4881559f475b0b9e3778d593f856dd1dbf0acf979b79852f8d63dbb SHA512 fe546f12e6d045cb37f4c9f88dd42fc627d614933525066bd3eb867e5d8732f2f23fe117ff1a444fc3c33d471ae51099c865d9082134e0e8a051ce8a3df58244 WHIRLPOOL fa988262a9a636800ec8bc0aa2ce3c9cb6cb35f5244c76ef1e50a10cfaf445d664435f022280aac8b90424754d08deb9e9d2187af174634072b0b438180da072
diff --git a/games-arcade/openbubbles/files/openbubbles-1.2-glibc2.10.patch b/games-arcade/openbubbles/files/openbubbles-1.2-glibc2.10.patch
new file mode 100644
index 000000000000..d511734da28f
--- /dev/null
+++ b/games-arcade/openbubbles/files/openbubbles-1.2-glibc2.10.patch
@@ -0,0 +1,20 @@
+--- src/BFont.cpp
++++ src/BFont.cpp
+@@ -319,7 +319,7 @@
+ int i = 0;
+
+ /* Calculate the space occupied by the text without spaces */
+- while ((p=strchr(&text[pos+1],SPACE)) != NULL) {
++ while ((p=strchr((char *)&text[pos+1],SPACE)) != NULL) {
+ i++;
+ pos = p - text;
+ }
+@@ -359,7 +359,7 @@
+ xpos=0;
+ pos = -1;
+ while ( spaces > 0 ) {
+- p = strstr(&text[pos+1]," ");
++ p = strstr((char *)&text[pos+1]," ");
+ strtmp = NULL;
+ strtmp = (char *) calloc ((p - &text[pos+1]) + 1,sizeof(char));
+ if (strtmp != NULL)
diff --git a/games-arcade/openbubbles/metadata.xml b/games-arcade/openbubbles/metadata.xml
new file mode 100644
index 000000000000..906d51d15057
--- /dev/null
+++ b/games-arcade/openbubbles/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+<longdescription lang="en">
+This is a clone of Evan Bailey's game Bubbles. Why did I reinvent the wheel? In
+this case, the wheel is made in Game Maker, so anyone who wants to do any
+serious programming would not be able to unless they A) ran Windows and B) ran a
+program that doesn't give the user very great power. OpenBubbles is written in
+C++ using SDL, so the programmer has some pretty powerful tools at his/her
+disposal; in addition, because SDL is cross-platform, OpenBubbles can be ported
+to any (major) platform, including Windows. Of course, I only run Unix, so I
+will only be producing Unix source code. Though it was a relatively minor issue,
+Evan's license is only semi-free because it doesn't permit commercial use of the
+source code. Now, you are free to make as much money as you want off of
+improvements of OpenBubbles (provided, of course, that you share them with me
+and everyone else under the GPL, too).
+</longdescription>
+</pkgmetadata>
diff --git a/games-arcade/openbubbles/openbubbles-1.2.ebuild b/games-arcade/openbubbles/openbubbles-1.2.ebuild
new file mode 100644
index 000000000000..434c1926a151
--- /dev/null
+++ b/games-arcade/openbubbles/openbubbles-1.2.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="A clone of Evan Bailey's game Bubbles"
+HOMEPAGE="http://www.freewebs.com/lasindi/openbubbles/index.html"
+SRC_URI="http://www.freewebs.com/lasindi/openbubbles/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~hppa x86 ~x86-fbsd"
+IUSE=""
+
+DEPEND="media-libs/libsdl
+ media-libs/sdl-image
+ media-libs/sdl-gfx"
+RDEPEND="${DEPEND}"
+PATCHES=( "${FILESDIR}"/${P}-glibc2.10.patch )
+
+src_install() {
+ default
+ newicon data/bubble.png ${PN}.png
+ make_desktop_entry ${PN} "OpenBubbles"
+ prepgamesdirs
+}
diff --git a/games-arcade/openmortal/Manifest b/games-arcade/openmortal/Manifest
new file mode 100644
index 000000000000..5dbf862b3c8a
--- /dev/null
+++ b/games-arcade/openmortal/Manifest
@@ -0,0 +1 @@
+DIST openmortal-0.7.tar.bz2 51197736 SHA256 9c302560d71ddcd3473ba2a1022fd118cbce87a4cd4b3080cb46288a410bb710 SHA512 8af0b64a3d894dfdbdddafdbdc4c853dc2bfc9b52fd507db2818e67af5ad6cdbbb45f2e42e32103e841759225b1b8c4f33ac5a8ad70e4763698c54803fb81fce WHIRLPOOL caaad653fda58fb5ee741ab06042a5c6c94bb14414202515085ddc4a821948734cdabebb38f0a98e00f3b9ce19cb0e1761656843061a244334199fb62e400bc4
diff --git a/games-arcade/openmortal/files/openmortal-0.7-freetype.patch b/games-arcade/openmortal/files/openmortal-0.7-freetype.patch
new file mode 100644
index 000000000000..4000ca30f9b8
--- /dev/null
+++ b/games-arcade/openmortal/files/openmortal-0.7-freetype.patch
@@ -0,0 +1,15 @@
+--- openmortal-0.7/src/sge_tt_text.cpp.old 2014-04-04 21:35:37.275483286 +0300
++++ openmortal-0.7/src/sge_tt_text.cpp 2014-04-04 21:36:08.065359870 +0300
+@@ -37,9 +37,9 @@
+
+ #ifndef _SGE_NOTTF
+ #include <ft2build.h>
+-#include <freetype/freetype.h>
+-#include <freetype/ftoutln.h>
+-#include <freetype/ttnameid.h>
++#include <freetype.h>
++#include <ftoutln.h>
++#include <ttnameid.h>
+
+ /* The structure used to hold glyph information (cached) */
+ struct glyph {
diff --git a/games-arcade/openmortal/files/openmortal-0.7-gcc41.patch b/games-arcade/openmortal/files/openmortal-0.7-gcc41.patch
new file mode 100644
index 000000000000..fdba61c6b008
--- /dev/null
+++ b/games-arcade/openmortal/files/openmortal-0.7-gcc41.patch
@@ -0,0 +1,11 @@
+--- src/OnlineChat.cpp.old 2006-01-28 14:34:42.000000000 -0700
++++ src/OnlineChat.cpp 2006-01-28 14:34:53.000000000 -0700
+@@ -56,7 +56,7 @@
+ class CChallengeMenu: public Menu
+ {
+ public:
+- CChallengeMenu::CChallengeMenu( std::string a_sChallenger )
++ CChallengeMenu( std::string a_sChallenger )
+ : Menu( "You have been challenged!" ),
+ m_sChallenger( a_sChallenger )
+ {
diff --git a/games-arcade/openmortal/metadata.xml b/games-arcade/openmortal/metadata.xml
new file mode 100644
index 000000000000..663665f4c371
--- /dev/null
+++ b/games-arcade/openmortal/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>games</herd>
+ <upstream>
+ <remote-id type="sourceforge">openmortal</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-arcade/openmortal/openmortal-0.7-r1.ebuild b/games-arcade/openmortal/openmortal-0.7-r1.ebuild
new file mode 100644
index 000000000000..c24d9f4a932b
--- /dev/null
+++ b/games-arcade/openmortal/openmortal-0.7-r1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit autotools eutils games
+
+DESCRIPTION="A spoof of the famous Mortal Kombat game"
+HOMEPAGE="http://openmortal.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE=""
+
+DEPEND="media-libs/libsdl[video]
+ media-libs/sdl-image
+ media-libs/sdl-mixer
+ media-libs/sdl-ttf
+ media-libs/sdl-net
+ >=media-libs/freetype-2.4.0
+ dev-lang/perl"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}/${P}"-gcc41.patch \
+ "${FILESDIR}/${P}"-freetype.patch
+
+ eautoreconf
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ newicon data/gfx/icon.png ${PN}.png
+ make_desktop_entry ${PN} OpenMortal
+ dodoc AUTHORS ChangeLog README TODO
+ prepgamesdirs
+}
diff --git a/games-arcade/opensonic/Manifest b/games-arcade/opensonic/Manifest
new file mode 100644
index 000000000000..b94c606565ce
--- /dev/null
+++ b/games-arcade/opensonic/Manifest
@@ -0,0 +1 @@
+DIST opensnc-src-0.1.4.tar.gz 10525059 SHA256 3a4c3fa9538ee27c04b5ea848c9ad0a83f335471936d4617a18d3648c42588e9 SHA512 239c7b4c7f9663e4d46c54d8bdaefed8d12274b71feaf9c637feb04f3567465f265c50bf3419f4c881ae3fa48a62ab339fe8a0b005c2b080b53d54ebf1e2f29d WHIRLPOOL dd65be3d6403936cf4defe30360b2b86fd77f49de88b118ac873201917f263d3494797f964b295ee6370e0959784af77b8ff3b777559856009abfc0f80ebc598
diff --git a/games-arcade/opensonic/files/opensonic-0.1.4-r1-cmake.patch b/games-arcade/opensonic/files/opensonic-0.1.4-r1-cmake.patch
new file mode 100644
index 000000000000..b4db7644bc9d
--- /dev/null
+++ b/games-arcade/opensonic/files/opensonic-0.1.4-r1-cmake.patch
@@ -0,0 +1,107 @@
+From: hasufell <julian.ospald@googlemail.com>
+Date: Sat Apr 28 16:38:56 UTC 2012
+Subject: build system
+
+use allegro-config
+remove "-O2" from pre-defined CFLAGS
+make paths modifiable
+add rules for icon, desktop-file and game-wrapper
+fix compilation for as-needed
+
+--- CMakeLists.txt
++++ CMakeLists.txt
+@@ -35,16 +35,14 @@
+ MESSAGE("Using CFLAGS='${CFLAGS}'")
+
+ IF(UNIX)
+- SET(ALLEGRO_UNIX_LIBS "$ENV{_ALLEGRO_LIBS}")
++ exec_program(allegro-config ARGS --libs OUTPUT_VARIABLE ALLEGRO_LIBRARY)
++ SET(ALLEGRO_UNIX_LIBS "${ALLEGRO_LIBRARY}")
+ IF(NOT ALLEGRO_UNIX_LIBS)
+- MESSAGE(FATAL_ERROR "Please do not invoke CMake directly. Run ./configure instead.")
++ MESSAGE(FATAL_ERROR "Allegro libs not found!")
+ ENDIF(NOT ALLEGRO_UNIX_LIBS)
+ ENDIF(UNIX)
+
+
+-
+-
+-
+ # Finding the required libraries:
+
+ # Allegro: liballeg
+@@ -53,7 +51,8 @@
+ MESSAGE(FATAL_ERROR "Fatal error: couldn't find the Allegro game programming library (liballeg)! ${RTFM}")
+ ELSE(NOT LALLEG)
+ IF(UNIX)
+- SET(ALLEGRO_UNIX_VERSION "$ENV{_ALLEGRO_VERSION}")
++ exec_program(allegro-config ARGS --version OUTPUT_VARIABLE ALLEGRO_VERSION)
++ SET(ALLEGRO_UNIX_VERSION "${ALLEGRO_VERSION}")
+ IF(NOT ALLEGRO_UNIX_VERSION STREQUAL ALLEGRO_RECOMMENDED_VERSION)
+ MESSAGE("\nWARNING: your Allegro version is ${ALLEGRO_UNIX_VERSION}. The recommended version is ${ALLEGRO_RECOMMENDED_VERSION}.\n ${GAME_NAME} may not compile properly!.\n")
+ ENDIF(NOT ALLEGRO_UNIX_VERSION STREQUAL ALLEGRO_RECOMMENDED_VERSION)
+@@ -249,9 +248,8 @@
+ IF(UNIX)
+ SET(GAME_SRCS ${GAME_SRCS} src/misc/iconlin.c)
+ ADD_EXECUTABLE(${GAME_UNIXNAME} ${GAME_SRCS})
+- SET_TARGET_PROPERTIES(${GAME_UNIXNAME} PROPERTIES LINK_FLAGS ${ALLEGRO_UNIX_LIBS})
+- TARGET_LINK_LIBRARIES(${GAME_UNIXNAME} m logg vorbisfile vorbis ogg jpgalleg z png loadpng)
+- SET_TARGET_PROPERTIES(${GAME_UNIXNAME} PROPERTIES COMPILE_FLAGS "-Wall -O2 ${CFLAGS} ${CFLAGS_EXTRA}")
++ TARGET_LINK_LIBRARIES(${GAME_UNIXNAME} m logg vorbisfile vorbis ogg jpgalleg z png loadpng ${ALLEGRO_UNIX_LIBS})
++ SET_TARGET_PROPERTIES(${GAME_UNIXNAME} PROPERTIES COMPILE_FLAGS "-Wall")
+ ENDIF(UNIX)
+
+
+@@ -407,19 +405,43 @@
+ SET_TARGET_PROPERTIES(${GAME_UNIXNAME} PROPERTIES PROJECT_NAME "${GAME_NAME}")
+
+
+-
+ # Installing on *nix
+ IF(UNIX)
+- SET(GAME_INSTALL_DIR "/usr/share/${GAME_UNIXNAME}")
+- SET(GAME_FINAL_DIR "/usr/bin")
++ SET(GAME_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/share/${GAME_UNIXNAME}" CACHE PATH "")
++ SET(GAME_FINAL_DIR "bin" CACHE PATH "")
++ SET(GAME_LIBDIR "games/lib" CACHE PATH "")
++ SET(GAME_DOCDIR "share/doc/${GAME_UNIXNAME}-${GAME_VERSION}" CACHE PATH "")
++ SET(GAME_HTMLDIR "share/doc/${GAME_UNIXNAME}-${GAME_VERSION}/html" CACHE PATH "")
++ SET(GAME_ICONDIR "share/pixmaps" CACHE PATH "")
++ SET(GAME_DESKTOPDIR "share/applications" CACHE PATH "")
++
++ FILE(WRITE ${GAME_UNIXNAME}.sh
++"#!/bin/sh
++cd ${GAME_LIBDIR}
++exec ./${GAME_UNIXNAME} \"$@\"
++"
++)
+
+- INSTALL(CODE "MESSAGE(\"Installing ${GAME_NAME} ${GAME_VERSION}... Make sure you have root privileges.\")")
+- INSTALL(TARGETS ${GAME_UNIXNAME} RUNTIME DESTINATION ${GAME_INSTALL_DIR})
+- INSTALL(FILES license.txt readme.html DESTINATION ${GAME_INSTALL_DIR})
+- INSTALL(DIRECTORY objects sprites config images levels licenses musics quests samples screenshots themes languages DESTINATION ${GAME_INSTALL_DIR} PATTERN ".svn" EXCLUDE)
++ FILE(WRITE ${GAME_UNIXNAME}.desktop
++"[Desktop Entry]
++Name=${GAME_NAME}
++Type=Application
++Comment=A free open-source clone of the Sonic the Hedgehog universe
++Exec=${GAME_UNIXNAME}
++TryExec=${GAME_UNIXNAME}
++Icon=${GAME_UNIXNAME}
++Categories=Game;ArcadeGame;
++"
++)
+
+- INSTALL(CODE "MESSAGE(\"Creating files at ${GAME_FINAL_DIR}...\")")
+- INSTALL(CODE "EXECUTE_PROCESS(COMMAND \"cmake\" \"-E\" \"copy\" \"${GAME_INSTALL_DIR}/${GAME_UNIXNAME}\" \"${GAME_FINAL_DIR}/${GAME_UNIXNAME}\")")
++ INSTALL(CODE "MESSAGE(\"Installing ${GAME_NAME} ${GAME_VERSION}... Make sure you have root privileges.\")")
++ INSTALL(TARGETS ${GAME_UNIXNAME} RUNTIME DESTINATION ${GAME_LIBDIR})
++# INSTALL(FILES license.txt DESTINATION ${GAME_DOCDIR})
++ INSTALL(FILES readme.html DESTINATION ${GAME_HTMLDIR})
++ INSTALL(FILES icon.png DESTINATION ${GAME_ICONDIR} RENAME ${GAME_UNIXNAME}.png)
++ INSTALL(FILES ${GAME_UNIXNAME}.desktop DESTINATION ${GAME_DESKTOPDIR})
++ INSTALL(DIRECTORY objects sprites config images levels musics quests samples themes languages DESTINATION ${GAME_INSTALL_DIR} PATTERN ".svn" EXCLUDE)
++ INSTALL(PROGRAMS ${GAME_UNIXNAME}.sh DESTINATION ${GAME_FINAL_DIR} RENAME ${GAME_UNIXNAME})
+
+ INSTALL(CODE "MESSAGE(\"Done! Please run ${GAME_UNIXNAME} to start ${GAME_NAME}.\")")
+ ENDIF(UNIX)
diff --git a/games-arcade/opensonic/metadata.xml b/games-arcade/opensonic/metadata.xml
new file mode 100644
index 000000000000..cad5a2aa1773
--- /dev/null
+++ b/games-arcade/opensonic/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>games</herd>
+</pkgmetadata>
diff --git a/games-arcade/opensonic/opensonic-0.1.4-r1.ebuild b/games-arcade/opensonic/opensonic-0.1.4-r1.ebuild
new file mode 100644
index 000000000000..f0802026e693
--- /dev/null
+++ b/games-arcade/opensonic/opensonic-0.1.4-r1.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit cmake-utils eutils games
+
+MY_PN=opensnc
+MY_P=${MY_PN}-src-${PV}
+
+DESCRIPTION="A free open-source game based on the Sonic the Hedgehog universe"
+HOMEPAGE="http://opensnc.sourceforge.net/"
+SRC_URI="${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+RESTRICT="fetch" # unsure about legality of graphics
+
+DEPEND="media-libs/allegro:0[X,jpeg,png,vorbis]
+ media-libs/libogg
+ media-libs/libpng:0
+ media-libs/libvorbis
+ sys-libs/zlib
+ virtual/jpeg"
+
+S=${WORKDIR}/${MY_P}
+
+pkg_nofetch() {
+ einfo "Please download ${SRC_URI} from:"
+ einfo "http://sourceforge.net/projects/opensnc/files/Open%20Sonic/0.1.4/"
+ einfo "and move it to ${DISTDIR}"
+ echo
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PF}-cmake.patch
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DGAME_INSTALL_DIR="${GAMES_DATADIR}"/${PN}
+ -DGAME_FINAL_DIR="${GAMES_BINDIR}"
+ -DGAME_LIBDIR="$(games_get_libdir)/${PN}"
+ )
+
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+}
+
+src_install() {
+ cmake-utils_src_install
+ local i
+ for i in $(ls "${D}${GAMES_DATADIR}/${PN}") ; do
+ dosym "${GAMES_DATADIR}/${PN}/${i}" \
+ "$(games_get_libdir)/${PN}/${i}"
+ done
+ prepgamesdirs
+}
diff --git a/games-arcade/opentyrian/Manifest b/games-arcade/opentyrian/Manifest
new file mode 100644
index 000000000000..92b83916bb2a
--- /dev/null
+++ b/games-arcade/opentyrian/Manifest
@@ -0,0 +1,5 @@
+DIST opentyrian-2.1.20130907-src.tar.gz 297517 SHA256 f54b6b3cedcefa187c9f605d6164aae29ec46a731a6df30d351af4c008dee45f SHA512 1a560f2061496fbbb57b6334ab207b00a6b2e6a4d6164c6df6ad535ae9d0435c32c3db51d3ce2a0a79eb66d72723d112c1993f59b781750f9bd97afb643a0b67 WHIRLPOOL 67544f4ca713837ab12c1dd7f89f00a2a871b71d85252e840586630d442c99540bcaa52e0ef168e984ea906dfdaefd47e8d0b402a5f3ffefe77d2fa04acd1b3c
+DIST opentyrian-20090702.tar.bz2 365480 SHA256 bbce2b50bc1b34cc833e0312518acfa885da336bbb82546754380c2179a59fb3
+DIST opentyrian-20091025.tar.bz2 2247053 SHA256 68111eec3ce51a6896ef9bd896ccb4baeebad59d0d20901cbcb4584eb11ce1ba
+DIST opentyrian-20110517.tar.bz2 2580253 SHA256 d34a0f6e43a3b12688a98f8a541b33578769f027eb7b3ee0fb147b7e1cd8438c
+DIST tyrian21.zip 4754048 SHA256 7790d09a2a3addcd33c66ef063d5900eb81cc9c342f4807eb8356364dd1d9277 SHA512 639aa773778386c14ce508feb4729512d00f80182a3bb0fe8bba4ee38bce91da1867ca93f1a7e5e30ff127da077eed275d8dd6ba82042b627b84f1606e2d6bce WHIRLPOOL 2f118dbc165df1d0ebd95edc1e43fedd7f7b19edbe09ea73413aacbd6cd2b10f64bdef26aea61f00f627285ffa7d80748add6f174d0c915e75a585abe06db180
diff --git a/games-arcade/opentyrian/files/2.1.20130907-cflag-idiocy.diff b/games-arcade/opentyrian/files/2.1.20130907-cflag-idiocy.diff
new file mode 100644
index 000000000000..39ccf1c79f66
--- /dev/null
+++ b/games-arcade/opentyrian/files/2.1.20130907-cflag-idiocy.diff
@@ -0,0 +1,15 @@
+diff -uNr opentyrian-2.1.20130907.ORIG/Makefile opentyrian-2.1.20130907/Makefile
+--- opentyrian-2.1.20130907.ORIG/Makefile 2013-12-08 17:38:06.982842189 +0000
++++ opentyrian-2.1.20130907/Makefile 2013-12-08 17:38:26.843842798 +0000
+@@ -21,11 +21,6 @@
+
+ # FLAGS ####################################################
+
+-ifneq ($(MAKECMDGOALS), release)
+- EXTRA_CFLAGS += -g3 -O0 -Werror
+-else
+- EXTRA_CFLAGS += -g0 -O2 -DNDEBUG
+-endif
+ EXTRA_CFLAGS += -MMD -pedantic -Wall -Wextra -Wno-missing-field-initializers
+ ifeq ($(WITH_NETWORK), true)
+ EXTRA_CFLAGS += -DWITH_NETWORK
diff --git a/games-arcade/opentyrian/files/2.1.20130907-datapath.diff b/games-arcade/opentyrian/files/2.1.20130907-datapath.diff
new file mode 100644
index 000000000000..5b0143ed9a50
--- /dev/null
+++ b/games-arcade/opentyrian/files/2.1.20130907-datapath.diff
@@ -0,0 +1,26 @@
+diff -uNr opentyrian-2.1.20130907.ORIG/Makefile opentyrian-2.1.20130907/Makefile
+--- opentyrian-2.1.20130907.ORIG/Makefile 2013-12-08 17:40:23.470846371 +0000
++++ opentyrian-2.1.20130907/Makefile 2013-12-08 17:40:49.355847165 +0000
+@@ -49,6 +49,10 @@
+ ALL_LDFLAGS += $(LDFLAGS)
+ LDLIBS += $(EXTRA_LDLIBS) $(SDL_LDLIBS)
+
++ifneq ($(DATA_PATH), )
++ CFLAGS += -DDATA_PATH=\"$(DATA_PATH)\"
++endif
++
+ # RULES ####################################################
+
+ .PHONY : all release clean
+diff -uNr opentyrian-2.1.20130907.ORIG/src/file.c opentyrian-2.1.20130907/src/file.c
+--- opentyrian-2.1.20130907.ORIG/src/file.c 2013-12-08 17:40:23.468846371 +0000
++++ opentyrian-2.1.20130907/src/file.c 2013-12-08 17:40:49.355847165 +0000
+@@ -34,7 +34,7 @@
+ #ifdef TARGET_MACOSX
+ tyrian_game_folder(),
+ #endif
+- "/usr/share/opentyrian/data"
++ DATA_PATH
+ };
+
+ static const char *dir = NULL;
diff --git a/games-arcade/opentyrian/files/20090702-datapath.diff b/games-arcade/opentyrian/files/20090702-datapath.diff
new file mode 100644
index 000000000000..53ca3e8c789e
--- /dev/null
+++ b/games-arcade/opentyrian/files/20090702-datapath.diff
@@ -0,0 +1,23 @@
+--- opentyrian/Makefile.orig 2009-07-02 23:19:47.000000000 +0100
++++ opentyrian/Makefile 2009-07-02 23:20:27.000000000 +0100
+@@ -54,6 +54,9 @@
+ CFLAGS += -DSVN_REV=\"$(SVN_REV)\"
+ endif
+
++ifneq ($(DATA_PATH), )
++ CFLAGS += -DDATA_PATH=\"$(DATA_PATH)\"
++endif
+ ####################################################
+
+ all : $(TARGET)
+--- opentyrian/src/error.c.orig 2009-07-02 23:17:00.000000000 +0100
++++ opentyrian/src/error.c 2009-07-02 23:21:01.000000000 +0100
+@@ -33,7 +33,7 @@
+ JE_boolean dont_die = false;
+
+ #ifndef TARGET_MACOSX
+-static const char *tyrian_searchpaths[] = { "data", "tyrian", "tyrian21" };
++static const char *tyrian_searchpaths[] = { DATA_PATH , "data", "tyrian", "tyrian21" };
+ #endif
+
+ JE_longint JE_getFileSize( const char *filename )
diff --git a/games-arcade/opentyrian/files/20091025-cflag-idiocy.diff b/games-arcade/opentyrian/files/20091025-cflag-idiocy.diff
new file mode 100644
index 000000000000..29ed57c2e29d
--- /dev/null
+++ b/games-arcade/opentyrian/files/20091025-cflag-idiocy.diff
@@ -0,0 +1,12 @@
+--- opentyrian/Makefile.orig 2009-10-25 00:52:54.401229746 +0100
++++ opentyrian/Makefile 2009-10-25 00:54:37.642954736 +0100
+@@ -49,9 +49,6 @@
+
+ # FLAGS ####################################################
+
+-NDEBUG_FLAGS := -g0 -O2 -DNDEBUG
+-DEBUG_FLAGS := -g3 -O0 -Werror
+-
+ CFLAGS += --std=c99 -pedantic -Wall -Wextra -Wno-sign-compare -Wno-missing-field-initializers
+ CFLAGS += -I./src -I$(INCLUDEDIR)
+ LDFLAGS += -L$(LIBDIR) -lm
diff --git a/games-arcade/opentyrian/files/20091025-datapath.diff b/games-arcade/opentyrian/files/20091025-datapath.diff
new file mode 100644
index 000000000000..e83447ebf8f5
--- /dev/null
+++ b/games-arcade/opentyrian/files/20091025-datapath.diff
@@ -0,0 +1,26 @@
+diff -uNr opentyrian.ORIG/Makefile opentyrian/Makefile
+--- opentyrian.ORIG/Makefile 2009-10-25 00:45:41.958937396 +0100
++++ opentyrian/Makefile 2009-10-25 00:47:31.759940038 +0100
+@@ -73,6 +73,10 @@
+ CFLAGS += -DHG_REV='"$(HG_REV)"'
+ endif
+
++ifneq ($(DATA_PATH), )
++ CFLAGS += -DDATA_PATH=\"$(DATA_PATH)\"
++endif
++
+ # RULES ####################################################
+
+ .PHONY : all
+diff -uNr opentyrian.ORIG/src/file.c opentyrian/src/file.c
+--- opentyrian.ORIG/src/file.c 2009-10-25 00:45:41.967228200 +0100
++++ opentyrian/src/file.c 2009-10-25 00:50:21.542979700 +0100
+@@ -34,7 +34,7 @@
+ #ifdef TARGET_MACOSX
+ tyrian_game_folder(),
+ #endif
+- "/usr/share/opentyrian/data"
++ DATA_PATH
+ };
+
+ static const char *dir = NULL;
diff --git a/games-arcade/opentyrian/files/20110517-cflag-idiocy.diff b/games-arcade/opentyrian/files/20110517-cflag-idiocy.diff
new file mode 100644
index 000000000000..fbc178ad3418
--- /dev/null
+++ b/games-arcade/opentyrian/files/20110517-cflag-idiocy.diff
@@ -0,0 +1,15 @@
+diff -uNr opentyrian.ORIG//Makefile opentyrian/Makefile
+--- opentyrian.ORIG//Makefile 2011-05-17 11:26:17.030004857 +0100
++++ opentyrian/Makefile 2011-05-17 11:28:48.617004931 +0100
+@@ -18,11 +18,6 @@
+
+ # FLAGS ####################################################
+
+-ifneq ($(MAKECMDGOALS), release)
+- EXTRA_CFLAGS += -g3 -O0 -Werror
+-else
+- EXTRA_CFLAGS += -g0 -O2 -DNDEBUG
+-endif
+ EXTRA_CFLAGS += -MMD -pedantic -Wall -Wextra -Wno-missing-field-initializers
+
+ HG_REV := $(shell hg id -ib && touch src/hg_revision.h)
diff --git a/games-arcade/opentyrian/files/20110517-datapath.diff b/games-arcade/opentyrian/files/20110517-datapath.diff
new file mode 100644
index 000000000000..6d7f52cd6bd6
--- /dev/null
+++ b/games-arcade/opentyrian/files/20110517-datapath.diff
@@ -0,0 +1,26 @@
+diff -uNr opentyrian.ORIG//Makefile opentyrian/Makefile
+--- opentyrian.ORIG//Makefile 2011-05-17 11:26:17.030004857 +0100
++++ opentyrian/Makefile 2011-05-17 11:26:52.595004876 +0100
+@@ -39,6 +39,10 @@
+ ALL_LDFLAGS += $(LDFLAGS)
+ LDLIBS += $(EXTRA_LDLIBS) $(SDL_LDLIBS)
+
++ifneq ($(DATA_PATH), )
++ CFLAGS += -DDATA_PATH=\"$(DATA_PATH)\"
++endif
++
+ # RULES ####################################################
+
+ .PHONY : all release clean
+diff -uNr opentyrian.ORIG//src/file.c opentyrian/src/file.c
+--- opentyrian.ORIG//src/file.c 2011-05-17 11:26:17.020004860 +0100
++++ opentyrian/src/file.c 2011-05-17 11:26:52.595004876 +0100
+@@ -34,7 +34,7 @@
+ #ifdef TARGET_MACOSX
+ tyrian_game_folder(),
+ #endif
+- "/usr/share/opentyrian/data"
++ DATA_PATH
+ };
+
+ static const char *dir = NULL;
diff --git a/games-arcade/opentyrian/metadata.xml b/games-arcade/opentyrian/metadata.xml
new file mode 100644
index 000000000000..1dceee43bf7c
--- /dev/null
+++ b/games-arcade/opentyrian/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+ <email>chainsaw@gentoo.org</email>
+ <name>Tony Vroon</name>
+</maintainer>
+<herd>games</herd>
+</pkgmetadata>
diff --git a/games-arcade/opentyrian/opentyrian-2.1.20130907.ebuild b/games-arcade/opentyrian/opentyrian-2.1.20130907.ebuild
new file mode 100644
index 000000000000..ace65613381b
--- /dev/null
+++ b/games-arcade/opentyrian/opentyrian-2.1.20130907.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit base games
+
+DESCRIPTION="Open-source port of the DOS game Tyrian, vertical scrolling shooter"
+HOMEPAGE="http://code.google.com/p/opentyrian/"
+SRC_URI="http://darklomax.org/tyrian/tyrian21.zip
+ http://www.camanis.net/${PN}/releases/${P}-src.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+RDEPEND="media-libs/libsdl
+ media-libs/sdl-net"
+# Yes, mercurial is needed to set the build version stamp.
+DEPEND="${RDEPEND}
+ app-arch/unzip
+ dev-vcs/mercurial"
+PATCHES=(
+ "${FILESDIR}/${PV}-datapath.diff"
+ "${FILESDIR}/${PV}-cflag-idiocy.diff"
+)
+
+src_compile() {
+ emake DATA_PATH="${GAMES_DATADIR}/${PN}" || die "Compilation failed"
+}
+
+src_install() {
+ dogamesbin opentyrian || die "Failed to install game binary"
+ dosym "${GAMES_BINDIR}/opentyrian" "${GAMES_BINDIR}/tyrian" || die "Failed to symlink"
+ dodoc CREDITS NEWS README || die "Failed to install documentation"
+ domenu linux/opentyrian.desktop || die "Failed to install desktop file"
+ for i in linux/icons/*.png ; do
+ local size=`echo ${i} | sed -e 's:.*-\([0-9]\+\).png:\1:'`
+ insinto /usr/share/icons/hicolor/${size}x${size}/apps
+ newins ${i} opentyrian.png || die "Failed to install program icon"
+ done
+ insinto "${GAMES_DATADIR}/${PN}"
+ cd "${WORKDIR}/tyrian21"
+ doins * || die "Failed to install game data"
+ prepgamesdirs
+}
diff --git a/games-arcade/opentyrian/opentyrian-20090702.ebuild b/games-arcade/opentyrian/opentyrian-20090702.ebuild
new file mode 100644
index 000000000000..cd4cb2a5b5a2
--- /dev/null
+++ b/games-arcade/opentyrian/opentyrian-20090702.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils games
+
+DESCRIPTION="Open-source port of the DOS game Tyrian, vertical scrolling shooter"
+HOMEPAGE="http://code.google.com/p/opentyrian/"
+SRC_URI="http://darklomax.org/tyrian/tyrian21.zip
+ mirror://gentoo/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="debug"
+
+RDEPEND="media-libs/libsdl
+ media-libs/sdl-net"
+DEPEND="${RDEPEND}
+ app-arch/unzip
+ dev-vcs/subversion"
+
+S=${WORKDIR}/${PN}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}/${PV}-datapath.diff"
+ if ! use debug; then
+ sed -i -e "s@DEBUG := 1@DEBUG := 0@" "${S}/Makefile" || die "sed failed"
+ fi
+}
+
+src_compile() {
+ emake DATA_PATH="${GAMES_DATADIR}/${PN}" || die "Compilation failed"
+}
+
+src_install() {
+ dogamesbin tyrian || die "Failed to install game binary"
+ dodoc CREDITS NEWS README || die "Failed to install documentation"
+ domenu opentyrian.desktop || die "Failed to install desktop file"
+ doicon tyrian.xpm || die "Failed to install program icon"
+ insinto "${GAMES_DATADIR}/${PN}"
+ cd "${WORKDIR}/tyrian21"
+ doins * || die "Failed to install game data"
+ prepgamesdirs
+}
diff --git a/games-arcade/opentyrian/opentyrian-20091025.ebuild b/games-arcade/opentyrian/opentyrian-20091025.ebuild
new file mode 100644
index 000000000000..2deb0e218589
--- /dev/null
+++ b/games-arcade/opentyrian/opentyrian-20091025.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils games
+
+DESCRIPTION="Open-source port of the DOS game Tyrian, vertical scrolling shooter"
+HOMEPAGE="http://code.google.com/p/opentyrian/"
+SRC_URI="http://darklomax.org/tyrian/tyrian21.zip
+ mirror://gentoo/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+RDEPEND="media-libs/libsdl
+ media-libs/sdl-net"
+DEPEND="${RDEPEND}
+ app-arch/unzip
+ dev-vcs/mercurial"
+
+S=${WORKDIR}/${PN}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}/${PV}-datapath.diff"
+ epatch "${FILESDIR}/${PV}-cflag-idiocy.diff"
+}
+
+src_compile() {
+ emake DATA_PATH="${GAMES_DATADIR}/${PN}" || die "Compilation failed"
+}
+
+src_install() {
+ dogamesbin tyrian || die "Failed to install game binary"
+ dodoc CREDITS NEWS README || die "Failed to install documentation"
+ domenu opentyrian.desktop || die "Failed to install desktop file"
+ doicon tyrian.xpm || die "Failed to install program icon"
+ insinto "${GAMES_DATADIR}/${PN}"
+ cd "${WORKDIR}/tyrian21"
+ doins * || die "Failed to install game data"
+ prepgamesdirs
+}
diff --git a/games-arcade/opentyrian/opentyrian-20110517-r1.ebuild b/games-arcade/opentyrian/opentyrian-20110517-r1.ebuild
new file mode 100644
index 000000000000..a2c200c08dea
--- /dev/null
+++ b/games-arcade/opentyrian/opentyrian-20110517-r1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit base games
+
+DESCRIPTION="Open-source port of the DOS game Tyrian, vertical scrolling shooter"
+HOMEPAGE="http://code.google.com/p/opentyrian/"
+SRC_URI="http://darklomax.org/tyrian/tyrian21.zip
+ mirror://gentoo/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+S="${WORKDIR}/${PN}"
+
+RDEPEND="media-libs/libsdl
+ media-libs/sdl-net"
+# Yes, mercurial is needed to set the build version stamp.
+DEPEND="${RDEPEND}
+ app-arch/unzip
+ dev-vcs/mercurial"
+PATCHES=(
+ "${FILESDIR}/${PV}-datapath.diff"
+ "${FILESDIR}/${PV}-cflag-idiocy.diff"
+)
+
+src_compile() {
+ emake DATA_PATH="${GAMES_DATADIR}/${PN}" || die "Compilation failed"
+}
+
+src_install() {
+ dogamesbin opentyrian || die "Failed to install game binary"
+ dosym "${GAMES_BINDIR}/opentyrian" "${GAMES_BINDIR}/tyrian" || die "Failed to symlink"
+ dodoc CREDITS NEWS README || die "Failed to install documentation"
+ domenu linux/opentyrian.desktop || die "Failed to install desktop file"
+ for i in linux/icons/*.png ; do
+ local size=`echo ${i} | sed -e 's:.*-\([0-9]\+\).png:\1:'`
+ insinto /usr/share/icons/hicolor/${size}x${size}/apps
+ newins ${i} opentyrian.png || die "Failed to install program icon"
+ done
+ insinto "${GAMES_DATADIR}/${PN}"
+ cd "${WORKDIR}/tyrian21"
+ doins * || die "Failed to install game data"
+ prepgamesdirs
+}
diff --git a/games-arcade/opentyrian/opentyrian-20110517.ebuild b/games-arcade/opentyrian/opentyrian-20110517.ebuild
new file mode 100644
index 000000000000..80962742fd75
--- /dev/null
+++ b/games-arcade/opentyrian/opentyrian-20110517.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit base games
+
+DESCRIPTION="Open-source port of the DOS game Tyrian, vertical scrolling shooter"
+HOMEPAGE="http://code.google.com/p/opentyrian/"
+SRC_URI="http://darklomax.org/tyrian/tyrian21.zip
+ mirror://gentoo/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+S="${WORKDIR}/${PN}"
+
+RDEPEND="media-libs/libsdl
+ media-libs/sdl-net"
+# Yes, mercurial is needed to set the build version stamp.
+DEPEND="${RDEPEND}
+ app-arch/unzip
+ dev-vcs/mercurial"
+PATCHES=(
+ "${FILESDIR}/${PV}-datapath.diff"
+ "${FILESDIR}/${PV}-cflag-idiocy.diff"
+)
+
+src_compile() {
+ emake DATA_PATH="${GAMES_DATADIR}/${PN}" || die "Compilation failed"
+}
+
+src_install() {
+ newgamesbin opentyrian tyrian || die "Failed to install game binary"
+ dodoc CREDITS NEWS README || die "Failed to install documentation"
+ domenu linux/opentyrian.desktop || die "Failed to install desktop file"
+ doicon linux/icons/* || die "Failed to install program icons"
+ insinto "${GAMES_DATADIR}/${PN}"
+ cd "${WORKDIR}/tyrian21"
+ doins * || die "Failed to install game data"
+ prepgamesdirs
+}
diff --git a/games-arcade/orthorobot/Manifest b/games-arcade/orthorobot/Manifest
new file mode 100644
index 000000000000..38593d0fc85e
--- /dev/null
+++ b/games-arcade/orthorobot/Manifest
@@ -0,0 +1 @@
+DIST orthorobot-0.zip 3429026 SHA256 744d70b492b9f9ebc8adf43f9131be3f9957d378ae1a8e18f1754dc9ff607608 SHA512 cf73bfd7d136c0d408dcee80db1193c4ae1d418128b8879a67c5fbfc013ce33ffab4255c0ea2e7d2a70f22301192fb77bd5b3105d69ff511d2d5a5b99fbd0cf0 WHIRLPOOL 4ee2364943cf835b84d5ad0daca1f3d204254ae8df4f272cc773da3d7d6561b92804cf26a99158a27622eee61e6f77eebcf50a10152583d8eb4b2d600e7c1e86
diff --git a/games-arcade/orthorobot/metadata.xml b/games-arcade/orthorobot/metadata.xml
new file mode 100644
index 000000000000..b6b8956cde34
--- /dev/null
+++ b/games-arcade/orthorobot/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>pinkbyte@gentoo.org</email>
+ <name>Sergey Popov</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/games-arcade/orthorobot/orthorobot-0.ebuild b/games-arcade/orthorobot/orthorobot-0.ebuild
new file mode 100644
index 000000000000..b8706481b75b
--- /dev/null
+++ b/games-arcade/orthorobot/orthorobot-0.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+inherit eutils games
+
+DESCRIPTION="Nice perspective based puzzle game, where you flatten the view to move across gaps"
+HOMEPAGE="http://stabyourself.net/orthorobot/"
+SRC_URI="http://stabyourself.net/dl.php?file=${PN}/${PN}-source.zip -> ${P}.zip"
+
+LICENSE="CC-BY-NC-ND-3.0"
+SLOT="0"
+KEYWORDS="amd64 x86"
+
+RDEPEND=">=games-engines/love-0.8.0"
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+S="${WORKDIR}"
+
+src_unpack() {
+ default
+ #it is only one .love file (but with crappy name), so we can use asterisk
+ mv *.love "${P}.zip" || die 'mv failed'
+ unpack "./${P}.zip"
+ rm "${P}.zip" || die 'rm failed'
+}
+
+src_prepare() {
+ # fix error on quit
+ sed -i -e 's/love.event.push("q")/love.event.push(fadegoal)/' menu.lua || die 'sed failed'
+
+ epatch_user
+}
+
+src_install() {
+ local dir="${GAMES_DATADIR}/love/${PN}"
+ insinto "${dir}"
+ doins -r .
+ games_make_wrapper "${PN}" "love ${dir}"
+ make_desktop_entry "${PN}"
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ elog "${PN} savegames and configurations are stored in:"
+ elog "~/.local/share/love/${PN}/"
+}
diff --git a/games-arcade/pachi/Manifest b/games-arcade/pachi/Manifest
new file mode 100644
index 000000000000..8800305c6ad2
--- /dev/null
+++ b/games-arcade/pachi/Manifest
@@ -0,0 +1 @@
+DIST pachi-1.0.tar.bz2 3101484 SHA256 756c8e21a7b497162003932003ec94a85b3ed9f1fa11c944a0d1e931f9d15139 SHA512 9b09baa47ceb051d80ea621d2449afd2d9de959e707d2a1b3119ce8f0c623ebc1afb1678389c647b066fb2211f3f7eb27d713ee33514e2739ba48f9bf14c7952 WHIRLPOOL 665663766f97855b17911184ccee6861391cab3d8512ffc7b0aa9da9e6b1119ad3b6c19fd6ea15c75e14155ae4ebe8d7a2e19d3ea3c95ddb2e586e2636f5f246
diff --git a/games-arcade/pachi/files/1.0-autotools.patch b/games-arcade/pachi/files/1.0-autotools.patch
new file mode 100644
index 000000000000..0d0185f142f3
--- /dev/null
+++ b/games-arcade/pachi/files/1.0-autotools.patch
@@ -0,0 +1,46 @@
+--- configure.in
++++ configure.in
+@@ -1,5 +1,7 @@
+ # Process this file with autoconf to produce a configure script.
++AC_PREREQ([2.54])
+ AC_INIT(src/faes.cpp, 0.1, T-1000@Bigfoot.com)
++AC_CANONICAL_SYSTEM
+ AM_INIT_AUTOMAKE(pachi, 0.1)
+ AM_CONFIG_HEADER(config.h)
+
+@@ -44,7 +46,7 @@
+ SCOREDIR="."
+ else
+ DATADIR="$datadir/$PACKAGE"
+- SCOREDIR="/var/lib/games/$PACKAGE"
++ SCOREDIR="$localstatedir/$PACKAGE"
+ fi
+
+ eval DATAPATH=`eval echo "$DATADIR"`
+--- data/Makefile.am
++++ data/Makefile.am
+@@ -10,13 +10,13 @@
+ objects_v2.dat \
+ rooms_v2.dat
+
+-score_DATA = \
++score_DATA_ = \
+ scores.dat
+
+-EXTRA_DIST = $(dat_DATA) $(score_DATA)
++EXTRA_DIST = $(dat_DATA) $(score_DATA_)
+
+ install-data-local:
+- for file in $(score_DATA); do\
+- chgrp $(group) $(scoredir)/$$file; \
+- chmod $(perms) $(scoredir)/$$file; \
+- done
++ $(mkinstalldirs) $(DESTDIR)$(scoredir)
++ for file in $(score_DATA_); do \
++ $(INSTALL) -g $(group) -m $(perms) $$file $(DESTDIR)$(scoredir); \
++ done
+--- Makefile.am
++++ Makefile.am
+@@ -1 +1 @@
+-SUBDIRS = src Tgfx data fonts music sounds docs
++SUBDIRS = src Tgfx data fonts music sounds
diff --git a/games-arcade/pachi/metadata.xml b/games-arcade/pachi/metadata.xml
new file mode 100644
index 000000000000..b4647c10eaf6
--- /dev/null
+++ b/games-arcade/pachi/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+<maintainer>
+<email>mr_bones_@gentoo.org</email>
+<name>Michael Sterrett</name>
+</maintainer>
+</pkgmetadata>
diff --git a/games-arcade/pachi/pachi-1.0.ebuild b/games-arcade/pachi/pachi-1.0.ebuild
new file mode 100644
index 000000000000..eb5f07833f36
--- /dev/null
+++ b/games-arcade/pachi/pachi-1.0.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit autotools eutils games
+
+DESCRIPTION="platform game inspired by games like Manic Miner and Jet Set Willy"
+HOMEPAGE="http://dragontech.sourceforge.net/index.php?main=pachi&lang=en"
+# Upstream doesn't version their releases.
+# (should be downloaded and re-compressed with tar -jcvf)
+#SRC_URI="mirror://sourceforge/dragontech/pachi_source.tgz"
+SRC_URI="mirror://gentoo/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE=""
+
+DEPEND="media-libs/libsdl[joystick,sound,video]
+ media-libs/sdl-mixer[mod]"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/Pachi
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PV}-autotools.patch
+ rm -f missing
+ mv configure.in configure.ac || die
+ eautoreconf
+}
+
+src_install() {
+ default
+ newicon Tgfx/icon.bmp ${PN}.bmp
+ make_desktop_entry ${PN} Pachi /usr/share/pixmaps/${PN}.bmp
+ prepgamesdirs
+}
diff --git a/games-arcade/pacmanarena/Manifest b/games-arcade/pacmanarena/Manifest
new file mode 100644
index 000000000000..037ab71645c1
--- /dev/null
+++ b/games-arcade/pacmanarena/Manifest
@@ -0,0 +1,2 @@
+DIST pacman-arena-0.15.tar.bz2 100112 SHA256 3f151518f3d4a9595ea03f9ef681e8a8829e88e76fb5d39bab0249906121fc23 SHA512 40e8092cf223d075dbb5654766f095ce57d61ff329aee5dc0f3c95655e3894ac507d8b48014326b7fd9265c81b9340624aaa349641efbdcde55bda0b1098f398 WHIRLPOOL 0fa5baa937ad0a4c3e7a61547e9ebe918d5c3f31bb78c32262a0f26bc8d3ce5a123e4850578d1b40fe4c66efdcceec14b7ce3d91800ddfe0e7f14c2bae6f0ef9
+DIST pacman-data-0.0.zip 11994364 SHA256 7949f080ca0ba4c02d737c5bb365856c3e66f103838329be8c1857d6c297b9b8 SHA512 f3619ab876ff9c0f354fff9e9b0acefaa1a1a094e8ef215fe1b57f617f79540ae87681dae0ec3c1df672615064be345f74e52a6f2f241bfe70d78f5b8c7fadc7 WHIRLPOOL 8e8b71f27a6cd8d1a6cb1bc76d95be12c574afda1016f746b88dfe217606202fad737fe86827ba577984845f1fcf2e39eb63126b415b0834e64a3a82038d5a07
diff --git a/games-arcade/pacmanarena/files/pacmanarena-0.15-underlink.patch b/games-arcade/pacmanarena/files/pacmanarena-0.15-underlink.patch
new file mode 100644
index 000000000000..08c2a54dd1f2
--- /dev/null
+++ b/games-arcade/pacmanarena/files/pacmanarena-0.15-underlink.patch
@@ -0,0 +1,10 @@
+--- configure.ac.old 2011-05-24 08:45:49.197656941 +0200
++++ configure.ac 2011-05-24 08:46:13.685193761 +0200
+@@ -101,6 +101,7 @@
+ AC_CHECK_LIB(GLU, gluNewQuadric, [ LDFLAGS="$LDFLAGS -lGLU" ],
+ [AC_MSG_ERROR([OpenGL libraries not found])
+ ])
++LDFLAGS="$LDFLAGS -lm"
+
+ AC_CONFIG_FILES([Makefile])
+ AC_OUTPUT
diff --git a/games-arcade/pacmanarena/metadata.xml b/games-arcade/pacmanarena/metadata.xml
new file mode 100644
index 000000000000..884b0e2a1b66
--- /dev/null
+++ b/games-arcade/pacmanarena/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>games</herd>
+ <upstream>
+ <remote-id type="sourceforge">pacmanarena</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-arcade/pacmanarena/pacmanarena-0.15.ebuild b/games-arcade/pacmanarena/pacmanarena-0.15.ebuild
new file mode 100644
index 000000000000..f7a4c744a7be
--- /dev/null
+++ b/games-arcade/pacmanarena/pacmanarena-0.15.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils autotools games
+
+DESCRIPTION="a Pacman clone in full 3D with a few surprises. Rockets, bombs and explosions abound"
+HOMEPAGE="http://pacmanarena.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/pacman-arena-${PV}.tar.bz2
+ mirror://sourceforge/${PN}/pacman-data-0.0.zip"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha amd64 x86"
+IUSE=""
+
+RDEPEND="virtual/opengl
+ virtual/glu
+ media-libs/libsdl[sound]
+ media-libs/sdl-mixer[vorbis]
+ media-libs/sdl-net"
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+S=${WORKDIR}/pacman
+
+src_unpack() {
+ unpack pacman-arena-${PV}.tar.bz2
+ cd "${S}"
+ unpack pacman-data-0.0.zip
+}
+
+src_prepare() {
+ sed -i \
+ -e "/^CFLAGS/ s:pacman:${PN}:" \
+ -e '1i CC=@CC@' \
+ Makefile.in || die
+ sed -i \
+ -e '/CFLAGS/s:-g::' \
+ configure || die
+ epatch "${FILESDIR}"/${P}-underlink.patch
+ eautoreconf
+}
+
+src_install() {
+ newgamesbin pacman ${PN} || die
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r gfx sfx || die
+ newicon gfx/pacman_arena1.tga ${PN}.tga
+ make_desktop_entry ${PN} "Pacman Arena" /usr/share/pixmaps/${PN}.tga
+ dodoc README
+ prepgamesdirs
+}
diff --git a/games-arcade/penguin-command/Manifest b/games-arcade/penguin-command/Manifest
new file mode 100644
index 000000000000..c12440b0b7ee
--- /dev/null
+++ b/games-arcade/penguin-command/Manifest
@@ -0,0 +1 @@
+DIST penguin-command-1.6.11.tar.gz 1123574 SHA256 659c7b5f3f968f386e820cf7387d88c0a61c17dfbdb005bd85f8e93c537e89d6 SHA512 ba41a7fbf3c07149fb6f6cf60091afda9de3c9f8f04e541d7b62ba744b04e5db7eecc5aa2391a71b72ccf6f544d397a5994a6f7aee0907211ced1686fe517646 WHIRLPOOL e525baa504b04eb3406eadf5710dc521cdeaa13656cd60cb4c11277eff8fd31b0ccf343cdfa4ce8d29a7e3dd8e94c3b88e1e68d8bbd82783653f3ae4803bd183
diff --git a/games-arcade/penguin-command/metadata.xml b/games-arcade/penguin-command/metadata.xml
new file mode 100644
index 000000000000..64e282784366
--- /dev/null
+++ b/games-arcade/penguin-command/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>games</herd>
+ <upstream>
+ <remote-id type="sourceforge">penguin-command</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-arcade/penguin-command/penguin-command-1.6.11.ebuild b/games-arcade/penguin-command/penguin-command-1.6.11.ebuild
new file mode 100644
index 000000000000..56615ebcb52b
--- /dev/null
+++ b/games-arcade/penguin-command/penguin-command-1.6.11.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="A clone of the classic Missile Command game"
+HOMEPAGE="http://www.linux-games.com/penguin-command/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc sparc x86"
+IUSE=""
+
+DEPEND="media-libs/libsdl[sound,joystick,video]
+ media-libs/sdl-mixer[mod]
+ media-libs/sdl-image[jpeg,png]"
+RDEPEND="${DEPEND}"
+
+src_install() {
+ default
+ newicon data/gfx/icon.xpm ${PN}.xpm
+ make_desktop_entry ${PN} "Penguin Command" ${PN}
+ prepgamesdirs
+}
diff --git a/games-arcade/pengupop/Manifest b/games-arcade/pengupop/Manifest
new file mode 100644
index 000000000000..091d168daf67
--- /dev/null
+++ b/games-arcade/pengupop/Manifest
@@ -0,0 +1 @@
+DIST pengupop-2.2.5.tar.gz 1676224 SHA256 dd70f731ea0eeb83556359ebbfc70054832a56656638437ef9bf5aab8d72fa25 SHA512 1886898288cb9b2be949a031bf2baae80332c5ca93bead91ed8c50d0aaea81715cf0eaeb09a63af298e82e1409f9f39527742707839526283e57809484be4abf WHIRLPOOL 3a953aad84f45d1f747a674034ca81f78178d86bec289ed58f323360bb7aac7b987fdd48fbc74408ac828eb5fcb648f32c3b78b5b0426537166e5d4fa82ee537
diff --git a/games-arcade/pengupop/files/pengupop-2.2.5-underlink.patch b/games-arcade/pengupop/files/pengupop-2.2.5-underlink.patch
new file mode 100644
index 000000000000..5b6453accce7
--- /dev/null
+++ b/games-arcade/pengupop/files/pengupop-2.2.5-underlink.patch
@@ -0,0 +1,20 @@
+--- Makefile.am.old 2011-06-14 21:44:40.242317771 +0200
++++ Makefile.am 2011-06-14 21:44:49.216882568 +0200
+@@ -17,7 +17,7 @@
+ nodist_pengupop_SOURCES = images.h
+
+ if LINUX
+-pengupop_LDADD = -lSDL -lz
++pengupop_LDADD = -lSDL -lz -lm
+
+ endif
+ if WIN32
+@@ -25,7 +25,7 @@
+ endif
+ if DARWIN
+ pengupop_LDFLAGS = -framework Carbon -framework CoreServices -framework AudioUnit -framework QuickTime -framework Cocoa -framework IOKit -framework OpenGL -framework SDL SDLMain.m
+-pengupop_LDADD = -lz -lstdc++
++pengupop_LDADD = -lz -lstdc++ -lm
+
+ all-local: Pengupop.dmg
+
diff --git a/games-arcade/pengupop/metadata.xml b/games-arcade/pengupop/metadata.xml
new file mode 100644
index 000000000000..01f485db09bd
--- /dev/null
+++ b/games-arcade/pengupop/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>games</herd>
+ <upstream>
+ <remote-id type="freshmeat">pengupop</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-arcade/pengupop/pengupop-2.2.5.ebuild b/games-arcade/pengupop/pengupop-2.2.5.ebuild
new file mode 100644
index 000000000000..6ee7aae0ad73
--- /dev/null
+++ b/games-arcade/pengupop/pengupop-2.2.5.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils gnome2-utils autotools games
+
+DESCRIPTION="Networked multiplayer-only Puzzle Bubble clone"
+HOMEPAGE="http://freshmeat.net/projects/pengupop"
+SRC_URI="mirror://gentoo/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE=""
+
+DEPEND="media-libs/libsdl[sound,video]
+ sys-libs/zlib"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-underlink.patch
+
+ sed -i \
+ -e '/Icon/s/\.png//' \
+ -e '/^Encoding/d' \
+ -e '/Categories/s/Application;//' \
+ pengupop.desktop || die
+
+ sed -i \
+ -e 's/-g -Wall -O2/-Wall/' \
+ Makefile.am || die
+ mv configure.in configure.ac || die
+ eautoreconf
+}
+
+src_install() {
+ default
+ domenu pengupop.desktop
+ doicon -s 48 pengupop.png
+ prepgamesdirs
+}
+
+pkg_preinst() {
+ games_pkg_preinst
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/games-arcade/performous/Manifest b/games-arcade/performous/Manifest
new file mode 100644
index 000000000000..8d5f72d456d5
--- /dev/null
+++ b/games-arcade/performous/Manifest
@@ -0,0 +1,5 @@
+DIST performous-1.0.tar.gz 3950246 SHA256 da9f39d281dbfe0849897dc98dc72cfc5a54be53f67c29b6430e57aefcc86b50 SHA512 9cdc6ad71248fede7df6fdc8ea4aca70a9c79be40e1d8c07c425f4a0e0c6e352233aee2ddeb586dcc6a7ea567b3e399aad9c5840475d8ce91c3ec7d4ec1eb30b WHIRLPOOL 2b9dbf8cec9e09bbff6a9490cbeb3fc04e88776c57fe80b9da04b91cdc2ac8ed9e129746e2adb4866ee52edb819229c6f52c45d2e301718a7c4e106ba27f14f1
+DIST ultrastar-songs-jc-1.zip 242698201 SHA256 b3a6f980926c4f1ce40bc763a406040855600ad005f4daa54e0ac324ce99a9ba SHA512 2f1b8416990c39617269cd6bb7271abdd4ebae65a9bac3dbb3f37cca26876bb7c79460a37597943a10a2d8bfcb5d2d9e2bf24084fe517a418e69f5c6111f6aea WHIRLPOOL 13bd3761b80b2a9491c6dbe2e535dbdc1e0f53b51d5070a0caf776da94c45c62a5a6980b4d95f629e0cfe5d6ef985428e5dcf6d4ba2f0931e6ea1d39d7f6674c
+DIST ultrastar-songs-libre-3.zip 5289866 SHA256 739d1c678bb7c786499f5216faee420b9b56633142928aff60a7282dae755489 SHA512 820e3637a7b778c92ed1a8b925802134fa2146879b3e03e88cd412de5414635c90fe256dfaf984cfa3e8b07b7da8531dc3061b7c4e1bb4422127b469b2345e66 WHIRLPOOL 48d48e82ec8bd02376b3def5a3f215331c49853cf00439686cd577ebd51321e4a4e8b213d40356a46e2a2bd2a1bf6c1cb07b09195209833f4eb004166937bfe5
+DIST ultrastar-songs-restricted-3.zip 10242651 SHA256 e05d81333f85e2c6c271a67f90beac453d64eac78cd95eec7214721182257a82 SHA512 70b987fec3705d6610625c1f30a7ff683a51bb6b7ee3174609c80dc31c1bccdb23dcb2c6ae8154e1b1d9ef115b914e27e73925878a3c5460b997fdde813456b8 WHIRLPOOL cb83550395bbbadb45ad982fd4586a4dca49ae96bbe7adfab1b925301fa69eb5581c24f0c5c8d3593851a80b3e86137eea7658753f720ad76bae6e5809c2feba
+DIST ultrastar-songs-shearer-1.zip 50411551 SHA256 967c3dfae2da2915a66fd9dfee14da7191e13bb95e8b0820049d109c21f25628 SHA512 add9df22b78967fd6f19699e8569f976423e931a32ea7a62cfec2f94470b9120f05832560215a000ecec8dd65508b057fac8ac90efd3a768ed74ddced186a73b WHIRLPOOL 868974ba4e68482dde0a25b338f0c8afd64435ddb872cd4a2ac7d5e8a984d16ebfdca530501779c24d1b2e4feb8151ee71f5db3052032fd706f42a88d31a46ab
diff --git a/games-arcade/performous/files/performous-1.0-gentoo.patch b/games-arcade/performous/files/performous-1.0-gentoo.patch
new file mode 100644
index 000000000000..a73663a88c41
--- /dev/null
+++ b/games-arcade/performous/files/performous-1.0-gentoo.patch
@@ -0,0 +1,12 @@
+diff -ru performous-1.0.orig/game/CMakeLists.txt performous-1.0/game/CMakeLists.txt
+--- performous-1.0.orig/game/CMakeLists.txt 2014-10-28 19:11:45.000000000 -0400
++++ performous-1.0/game/CMakeLists.txt 2015-03-31 03:01:30.806061643 -0400
+@@ -141,7 +141,7 @@
+ set(BIN_INSTALL .) # Straight to Program Files/Performous with no bin subfolder.
+ set(SUBSYSTEM_WIN32 WIN32)
+ else()
+- set(BIN_INSTALL bin)
++ set(BIN_INSTALL @GENTOO_BINDIR@)
+ endif()
+
+ # Build main executable
diff --git a/games-arcade/performous/files/performous-1.0-include.patch b/games-arcade/performous/files/performous-1.0-include.patch
new file mode 100644
index 000000000000..ba67018e5422
--- /dev/null
+++ b/games-arcade/performous/files/performous-1.0-include.patch
@@ -0,0 +1,10 @@
+--- performous-1.0/game/song.hh.orig 2015-03-31 13:56:13.546360617 -0400
++++ performous-1.0/game/song.hh 2015-03-31 13:56:23.609025021 -0400
+@@ -3,6 +3,7 @@
+ #include "i18n.hh"
+ #include "notes.hh"
+ #include "util.hh"
++#include "fs.hh"
+ #include <boost/foreach.hpp>
+ #include <boost/noncopyable.hpp>
+ #include <stdexcept>
diff --git a/games-arcade/performous/files/performous-1.0-libav.patch b/games-arcade/performous/files/performous-1.0-libav.patch
new file mode 100644
index 000000000000..e3f36615281e
--- /dev/null
+++ b/games-arcade/performous/files/performous-1.0-libav.patch
@@ -0,0 +1,19 @@
+diff -urN Performous-0.6.1-Source.old/cmake/Modules/FindAVUtil.cmake Performous-0.6.1-Source/cmake/Modules/FindAVUtil.cmake
+--- Performous-0.6.1-Source.old/cmake/Modules/FindAVUtil.cmake 2012-05-16 13:44:26.112930173 +0200
++++ Performous-0.6.1-Source/cmake/Modules/FindAVUtil.cmake 2012-05-16 13:56:10.229914635 +0200
+@@ -25,9 +25,15 @@
+ if(EXISTS "${AVUtil_INCLUDE_DIR}/${suffix}avutil.h")
+ set(AVUtil_INCLUDE "${suffix}avutil.h")
+ endif(EXISTS "${AVUtil_INCLUDE_DIR}/${suffix}avutil.h")
++ if(EXISTS "${AVUtil_INCLUDE_DIR}/${suffix}mathematics.h")
++ set(AVUtilMath_INCLUDE "${suffix}mathematics.h")
++ endif(EXISTS "${AVUtil_INCLUDE_DIR}/${suffix}mathematics.h")
+ endif(NOT AVUtil_INCLUDE)
+ endforeach(suffix)
+
++ if(NOT AVUtilMath_INCLUDE)
++ message(FATAL_ERROR "Found mathematics.h include dir, but not the header file. Perhaps you need to clear CMake cache?")
++ endif(NOT AVUtilMath_INCLUDE)
+ if(NOT AVUtil_INCLUDE)
+ message(FATAL_ERROR "Found avutil.h include dir, but not the header file. Perhaps you need to clear CMake cache?")
+ endif(NOT AVUtil_INCLUDE)
diff --git a/games-arcade/performous/files/performous-1.0-linguas.patch b/games-arcade/performous/files/performous-1.0-linguas.patch
new file mode 100644
index 000000000000..f8f1349ea3b9
--- /dev/null
+++ b/games-arcade/performous/files/performous-1.0-linguas.patch
@@ -0,0 +1,18 @@
+diff -ru performous-1.0.orig/lang/CMakeLists.txt performous-1.0/lang/CMakeLists.txt
+--- performous-1.0.orig/lang/CMakeLists.txt 2014-10-28 19:11:45.000000000 -0400
++++ performous-1.0/lang/CMakeLists.txt 2015-02-22 04:25:40.502252942 -0500
+@@ -9,5 +9,13 @@
+ file(MAKE_DIRECTORY "${mobuild}")
+ add_custom_command(OUTPUT "${mofile}" COMMAND "${Msgfmt_BIN}" -v "${pofile}" -o "${mofile}" MAIN_DEPENDENCY "${pofile}" COMMENT "Building ${language} locale" VERBATIM)
+ add_custom_target("locale_${language}" ALL DEPENDS "${mofile}") # Make sure the mofiles are always built
+- install(FILES "${mofile}" DESTINATION "${LOCALE_DIR}/${language}/LC_MESSAGES")
+ endforeach(language)
++foreach(language $ENV{LINGUAS})
++ set(pofile ${CMAKE_CURRENT_SOURCE_DIR}/${language}.po)
++ if (EXISTS ${pofile})
++ set(mofile ${CMAKE_CURRENT_BINARY_DIR}/${language}.mo)
++ install(FILES ${mofile} DESTINATION
++{LOCALE_DIR}/${language}/LC_MESSAGES RENAME ${CMAKE_PROJECT_NAME}.mo)
++ endif()
++endforeach(language)
++
diff --git a/games-arcade/performous/metadata.xml b/games-arcade/performous/metadata.xml
new file mode 100644
index 000000000000..9def245b0290
--- /dev/null
+++ b/games-arcade/performous/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>games</herd>
+ <longdescription lang="en">
+ Performous is an open-source rhythm/performance platform that contains singing, guitar/bass playing, drumming and dancing all in one game.
+ </longdescription>
+ <use>
+ <flag name="midi">Enable MIDI I/O support</flag>
+ <flag name="songs">Install a few demo songs</flag>
+ <flag name="tools">Install tools</flag>
+ <flag name="webcam">Enable Webcam support</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">performous</remote-id>
+ <remote-id type="github">performous/performous</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-arcade/performous/performous-1.0.ebuild b/games-arcade/performous/performous-1.0.ebuild
new file mode 100644
index 000000000000..ab277f8f3996
--- /dev/null
+++ b/games-arcade/performous/performous-1.0.ebuild
@@ -0,0 +1,113 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+CMAKE_REMOVE_MODULES="yes"
+CMAKE_REMOVE_MODULES_LIST="FindALSA FindBoost FindFreetype FindGettext FindJpeg FindPng FindTiff FindZ"
+inherit eutils cmake-utils gnome2-utils games
+
+MY_PN=Performous
+MY_P=${MY_PN}-${PV}
+SONGS_PN=ultrastar-songs
+
+DESCRIPTION="SingStar GPL clone"
+HOMEPAGE="http://sourceforge.net/projects/performous/"
+SRC_URI="https://github.com/performous/performous/archive/1.0.tar.gz -> ${P}.tar.gz
+ songs? (
+ mirror://sourceforge/performous/${SONGS_PN}-restricted-3.zip
+ mirror://sourceforge/performous/${SONGS_PN}-jc-1.zip
+ mirror://sourceforge/performous/${SONGS_PN}-libre-3.zip
+ mirror://sourceforge/performous/${SONGS_PN}-shearer-1.zip
+ )"
+
+LICENSE="GPL-2
+ songs? (
+ CC-BY-NC-SA-2.5
+ CC-BY-NC-ND-2.5
+ )"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="midi songs tools webcam"
+
+RDEPEND="dev-cpp/glibmm
+ dev-cpp/libxmlpp
+ media-libs/portaudio
+ dev-libs/boost[threads(+)]
+ dev-libs/glib:2
+ dev-libs/libxml2
+ gnome-base/librsvg
+ media-gfx/imagemagick
+ virtual/jpeg:0
+ media-libs/libpng:0
+ media-libs/libsdl2[joystick,video]
+ virtual/ffmpeg
+ virtual/opengl
+ virtual/glu
+ sys-libs/zlib
+ virtual/libintl
+ x11-libs/cairo
+ x11-libs/gdk-pixbuf
+ x11-libs/pango
+ media-libs/glew
+ midi? ( media-libs/portmidi )
+ webcam? ( media-libs/opencv )"
+DEPEND="${RDEPEND}
+ sys-apps/help2man
+ sys-devel/gettext"
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-libav.patch \
+ "${FILESDIR}"/${P}-gentoo.patch \
+ "${FILESDIR}"/${P}-linguas.patch \
+ "${FILESDIR}"/${P}-include.patch
+ sed -i \
+ -e "s:@GENTOO_BINDIR@:${GAMES_BINDIR}:" \
+ -e '/ Z /s/ Z / ZLIB /' \
+ -e 's/Jpeg/JPEG/' \
+ -e 's/Png/PNG/' \
+ game/CMakeLists.txt || die
+
+ strip-linguas -u lang
+}
+
+src_configure() {
+ local mycmakeargs=(
+ $(cmake-utils_use_enable tools TOOLS)
+ $(cmake-utils_use_enable webcam WEBCAM)
+ $(cmake-utils_use_enable midi MIDI)
+ -DCMAKE_VERBOSE_MAKEFILE=TRUE
+ -DSHARE_INSTALL="${GAMES_DATADIR}"/${PN}
+ )
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+}
+
+src_install() {
+ cmake-utils_src_install
+ if use songs ; then
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r "${WORKDIR}/songs"
+ fi
+ dodoc docs/{Authors,instruments}.txt
+ newicon -s scalable data/themes/default/icon.svg ${PN}.svg
+ prepgamesdirs
+}
+
+pkg_preinst() {
+ games_pkg_preinst
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/games-arcade/primateplunge/Manifest b/games-arcade/primateplunge/Manifest
new file mode 100644
index 000000000000..121a7a17277d
--- /dev/null
+++ b/games-arcade/primateplunge/Manifest
@@ -0,0 +1 @@
+DIST primateplunge-1.1.tar.gz 5245884 SHA256 4df43ace79ff8aa41547e65c26120ed941528da8b82e16563bf285324831bc0c SHA512 bdc6be0faf28375941e67895c498f59a529521ba46d6b23ea94d3b16ead1541738d7aa5cfa5fa5cf269e7e474ca9002180e7b0663e1b4531300d21564df41b8c WHIRLPOOL 8c642f57692185aeff8d570b7a4c86b431ef3a633afddd43bdfca3413e334483d181cca5c520a3298123637e30c8e1b3dda7ba5de4fdbcaaf4588160083f9480
diff --git a/games-arcade/primateplunge/files/primateplunge-1.1-AC_SUBST.patch b/games-arcade/primateplunge/files/primateplunge-1.1-AC_SUBST.patch
new file mode 100644
index 000000000000..b5c50dcc701b
--- /dev/null
+++ b/games-arcade/primateplunge/files/primateplunge-1.1-AC_SUBST.patch
@@ -0,0 +1,26 @@
+--- configure.ac.orig
++++ configure.ac
+@@ -7,12 +7,12 @@
+
+ AC_INIT([primateplunge], [1.1], [primateplunge@aelius.com])
+
+-AC_CONFIG_SRCDIR( src/game.c )
++AC_CONFIG_SRCDIR(src/game.c)
+ AC_CANONICAL_SYSTEM
+
+ dnl Version 1.7 of automake is recommended
+-AM_INIT_AUTOMAKE( 1.7 )
+-AM_CONFIG_HEADER( src/config.h )
++AM_INIT_AUTOMAKE(1.7)
++AM_CONFIG_HEADER(src/config.h)
+
+
+
+@@ -29,7 +29,6 @@
+ [ PREFSFILE="~/.primateplunge" ]
+ )
+
+-AC_SUBST( GAMEDATADIR )
+ AC_DEFINE_DIR( GAMEDATADIR, GAMEDATADIR, [Location of game resource files] )
+ AC_DEFINE_UNQUOTED( PREFSFILE, "$PREFSFILE", [Location of preferences file] )
+
diff --git a/games-arcade/primateplunge/metadata.xml b/games-arcade/primateplunge/metadata.xml
new file mode 100644
index 000000000000..d3c2cc926f0b
--- /dev/null
+++ b/games-arcade/primateplunge/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+</pkgmetadata>
diff --git a/games-arcade/primateplunge/primateplunge-1.1-r1.ebuild b/games-arcade/primateplunge/primateplunge-1.1-r1.ebuild
new file mode 100644
index 000000000000..8935e9d1f9d4
--- /dev/null
+++ b/games-arcade/primateplunge/primateplunge-1.1-r1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit autotools eutils games
+
+DESCRIPTION="Help poor Monkey navigate his way down through treacherous areas"
+HOMEPAGE="http://www.aelius.com/primateplunge/"
+SRC_URI="http://www.aelius.com/${PN}/${P}.tar.gz"
+
+LICENSE="Primate-Plunge"
+SLOT="0"
+KEYWORDS="amd64 ppc x86 ~x86-fbsd"
+IUSE=""
+RESTRICT="mirror bindist" #465850
+
+DEPEND="media-libs/libsdl[sound,video]
+ media-libs/sdl-mixer"
+RDEPEND=${DEPEND}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-AC_SUBST.patch
+ eautoreconf
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc AUTHORS README TIPS
+ newicon graphics/idle.bmp ${PN}.bmp
+ make_desktop_entry ${PN} "Primate Plunge" /usr/share/pixmaps/${PN}.bmp
+ prepgamesdirs
+}
diff --git a/games-arcade/pycadia/Manifest b/games-arcade/pycadia/Manifest
new file mode 100644
index 000000000000..3908539224ce
--- /dev/null
+++ b/games-arcade/pycadia/Manifest
@@ -0,0 +1 @@
+DIST pycadia-0.5.1.tar.gz 2768619 SHA256 c872e4aede8cd04773327308b38b7e85b06aa370facee1c7b912d9ea938f67b5 SHA512 bfe7369263f21d672800eeaf567d7dcb5027b24d2f0d0534d68ad28ae71c916eca2ebf4b2f888645c8bfce12a2ba4bf23dacf673e32a7ba76d564006bdc3e0d2 WHIRLPOOL e3ea0f9f24c898806542f83119c7a82e88fb0f452bbd0e57b21ba4baaaad72331b987135037965f23f7d6580c6a82d5ad312c11b2fa3eb4512fb8a18130c6d0a
diff --git a/games-arcade/pycadia/metadata.xml b/games-arcade/pycadia/metadata.xml
new file mode 100644
index 000000000000..d3c2cc926f0b
--- /dev/null
+++ b/games-arcade/pycadia/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+</pkgmetadata>
diff --git a/games-arcade/pycadia/pycadia-0.5.1.ebuild b/games-arcade/pycadia/pycadia-0.5.1.ebuild
new file mode 100644
index 000000000000..a9d61c9268ea
--- /dev/null
+++ b/games-arcade/pycadia/pycadia-0.5.1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="Pycadia. Home to vector gaming, python style"
+HOMEPAGE="http://www.anti-particle.com/pycadia.shtml"
+SRC_URI="http://www.anti-particle.com/downloads/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86 ~x86-fbsd"
+IUSE=""
+
+DEPEND=">=dev-python/pygame-1.5.5
+ dev-python/pygtk:2"
+
+S=${WORKDIR}/${PN}
+
+src_unpack() {
+ unpack ${A}
+ {
+ echo "#!/bin/sh"
+ echo "cd ${GAMES_DATADIR}/${PN}"
+ echo "exec python2 ./pycadia.py \"\${@}\""
+ } > "${T}/pycadia"
+}
+
+src_install() {
+ dogamesbin "${T}/pycadia"
+
+ insinto "${GAMES_DATADIR}/${PN}"
+ doins -r {glade,pixmaps,sounds} *.py pycadia.conf
+
+ exeinto "${GAMES_DATADIR}/${PN}"
+ doexe pycadia.py spacewarpy.py vektoroids.py
+
+ newicon pixmaps/pysteroids.png ${PN}.png
+ make_desktop_entry ${PN} Pycadia
+
+ dodoc doc/{TODO,CHANGELOG,README}
+ prepgamesdirs
+}
diff --git a/games-arcade/pydance-songs/Manifest b/games-arcade/pydance-songs/Manifest
new file mode 100644
index 000000000000..dae1688e0a7a
--- /dev/null
+++ b/games-arcade/pydance-songs/Manifest
@@ -0,0 +1 @@
+DIST pydance-songs-20040410.tar.bz2 3780065 SHA256 47f417e6d25ca9a09a0daad387474e071c956abf8b5371342bd00df321e783fb SHA512 09d68efba0a21e65a0c2bfc8d66eef3ffbe186506a1c9041560b7295ea1ea386c236f2bd6fcb343001e1c0f3a8a520a4b1b2deaaf1c40afd30b7180ac91b8f5b WHIRLPOOL ed0c032d8b2e3c09bc7a68fe86674efc9fcb923697405e07d904391a9141ac01b706f6161e464f82b08a2a14f3d1ff7e5eb003189f9fc4e09623b2e46b108328
diff --git a/games-arcade/pydance-songs/metadata.xml b/games-arcade/pydance-songs/metadata.xml
new file mode 100644
index 000000000000..d3c2cc926f0b
--- /dev/null
+++ b/games-arcade/pydance-songs/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+</pkgmetadata>
diff --git a/games-arcade/pydance-songs/pydance-songs-20040410.ebuild b/games-arcade/pydance-songs/pydance-songs-20040410.ebuild
new file mode 100644
index 000000000000..2d9ca4376764
--- /dev/null
+++ b/games-arcade/pydance-songs/pydance-songs-20040410.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit games
+
+DESCRIPTION="Music for the pyDDR game"
+HOMEPAGE="http://icculus.org/pyddr/"
+SRC_URI="mirror://gentoo/${P}.tar.bz2"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE=""
+
+S=${WORKDIR}
+
+src_install() {
+ insinto "${GAMES_DATADIR}/pydance/songs"
+ doins *
+ prepgamesdirs
+}
diff --git a/games-arcade/pydance/Manifest b/games-arcade/pydance/Manifest
new file mode 100644
index 000000000000..30c6256e9ec6
--- /dev/null
+++ b/games-arcade/pydance/Manifest
@@ -0,0 +1 @@
+DIST pydance-1.1.0.tar.gz 8957236 SHA256 bfd1f84737a0dd362456fe58694554b0579a87e5ccc69f80bf350847fbe0f502 SHA512 738787626d83adc635e7e4644f159e3ce793da7b38cf094ffd73cabb088d3414a1aa9deda423784174b2c0381e50dd0d74bbcfb9d939044e85c35866b3818c7d WHIRLPOOL 628517ec5508e60e403ae23f24b2fa51718b665f4f7bf56588ca2197cc66808713d6695f450547c3a6a022d8b957c0602ad75266cd65d9f7d368b0793440926e
diff --git a/games-arcade/pydance/metadata.xml b/games-arcade/pydance/metadata.xml
new file mode 100644
index 000000000000..d3c2cc926f0b
--- /dev/null
+++ b/games-arcade/pydance/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+</pkgmetadata>
diff --git a/games-arcade/pydance/pydance-1.1.0.ebuild b/games-arcade/pydance/pydance-1.1.0.ebuild
new file mode 100644
index 000000000000..01dbc05779d7
--- /dev/null
+++ b/games-arcade/pydance/pydance-1.1.0.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="a DDR clone for linux written in Python"
+HOMEPAGE="http://www.icculus.org/pyddr/"
+SRC_URI="http://www.icculus.org/pyddr/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE=""
+
+DEPEND="dev-python/pygame
+ media-libs/libvorbis
+ media-libs/sdl-mixer"
+RDEPEND=${DEPEND}
+PDEPEND="games-arcade/pydance-songs"
+
+src_prepare() {
+ sed -i \
+ -e "s:1\.0\.1:1.0.2:" \
+ -e "s:/etc/:${GAMES_SYSCONFDIR}/:" \
+ pydance.py constants.py docs/man/pydance.6 || die
+}
+
+src_install() {
+ local dir=${GAMES_DATADIR}/${PN}
+
+ insinto "${dir}"
+ doins *.py
+ cp -R CREDITS {sound,images,utils,themes} "${D}${dir}/" || die
+
+ insinto "${GAMES_SYSCONFDIR}"
+ newins pydance.posix.cfg pydance.cfg
+
+ games_make_wrapper pydance "python2 ./pydance.py" "${dir}"
+
+ dodoc BUGS CREDITS ChangeLog HACKING README TODO
+ dohtml -r docs/manual.html docs/images
+ doman docs/man/*
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ echo
+ elog "If you want to use a DDR pad with pyDance,"
+ elog "all you need to do is emerge the games-arcade/ddrmat kernel module."
+ echo
+}
diff --git a/games-arcade/retrobattle/Manifest b/games-arcade/retrobattle/Manifest
new file mode 100644
index 000000000000..533877020a82
--- /dev/null
+++ b/games-arcade/retrobattle/Manifest
@@ -0,0 +1 @@
+DIST retrobattle-src-1.0.0.tar.bz2 4007959 SHA256 0d184c6d7afc2865687fb9323754268692db165799f617422aafd57096540d68 SHA512 2d006fc9a62e57d7fb3c0f0e535a5c702204b6341566064d7683526923839e8a43e14b308e76a8a1f6794f7c682f6344975956877f80bbcbc33ee61cd640ff9e WHIRLPOOL 0af965622d322a65ff3521ab816d208e4f8875a1620b9da51ddb1a4b39c97cbf7e305cf51ac3d27773b1bea43f254648dd846964fc9cec9eb3716f766e1f44cc
diff --git a/games-arcade/retrobattle/files/retrobattle-1.0.0-build.patch b/games-arcade/retrobattle/files/retrobattle-1.0.0-build.patch
new file mode 100644
index 000000000000..3673ef01e17f
--- /dev/null
+++ b/games-arcade/retrobattle/files/retrobattle-1.0.0-build.patch
@@ -0,0 +1,30 @@
+Author: hasufell <hasufell@gentoo.org>
+Date: Sat Aug 4 12:15:53 2012 +0200
+
+ respect CXX, CFLAGS and LDFLAGS
+
+--- src/Makefile
++++ src/Makefile
+@@ -1,10 +1,10 @@
+-CFLAGS = `sdl-config --cflags` -g -Wall -I. -DENABLE_BINRELOC
+-CPPFLAGS = $(CFLAGS)
++CXXFLAGS += $(shell sdl-config --cflags) -I.
++CPPFLAGS += -DENABLE_BINRELOC
+
+ # Uncomment the first LIBS line and comment out the other LIBS line to
+ # compile without SDL_Mixer
+ #LIBS = `sdl-config --libs`
+-LIBS = `sdl-config --libs` -lSDL_mixer
++LIBS = $(shell sdl-config --libs) -lSDL_mixer
+
+ RETROINSTALLDIR ?= /opt
+
+@@ -25,7 +25,7 @@
+
+
+ retrobattle: $(RETRO)
+- g++ -o $@ $^ $(LIBS)
++ $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)
+ mv $@ ..
+
+ clean:
diff --git a/games-arcade/retrobattle/files/retrobattle-1.0.0-sound.patch b/games-arcade/retrobattle/files/retrobattle-1.0.0-sound.patch
new file mode 100644
index 000000000000..591ce66e9f69
--- /dev/null
+++ b/games-arcade/retrobattle/files/retrobattle-1.0.0-sound.patch
@@ -0,0 +1,17 @@
+From: Julian Ospald <hasufell@gentoo.org>
+Date: Sun Aug 5 16:22:22 UTC 2012
+Subject: sound
+
+resolves crackling background music
+
+--- src/SoundManager.cc
++++ src/SoundManager.cc
+@@ -25,7 +25,7 @@
+ SoundManager::SoundManager(char *datadir)
+ {
+ #ifndef NO_SDL_MIXER
+- if(Mix_OpenAudio(22050, AUDIO_S16SYS, 2, 1024))
++ if(Mix_OpenAudio(44100, AUDIO_S16SYS, 2, 1024))
+ {
+ printf("SDL_mixer says: %s\n", Mix_GetError());
+ }
diff --git a/games-arcade/retrobattle/metadata.xml b/games-arcade/retrobattle/metadata.xml
new file mode 100644
index 000000000000..01a746edb196
--- /dev/null
+++ b/games-arcade/retrobattle/metadata.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>games</herd>
+</pkgmetadata>
+
diff --git a/games-arcade/retrobattle/retrobattle-1.0.0.ebuild b/games-arcade/retrobattle/retrobattle-1.0.0.ebuild
new file mode 100644
index 000000000000..e558f524dd6e
--- /dev/null
+++ b/games-arcade/retrobattle/retrobattle-1.0.0.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils games
+
+MY_P="${PN}-src-${PV}"
+DESCRIPTION="A NES-like platform arcade game"
+HOMEPAGE="http://remar.se/andreas/retrobattle/"
+SRC_URI="http://remar.se/andreas/retrobattle/files/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+# test is incomplete
+RESTRICT="test"
+
+DEPEND="media-libs/libsdl[X,sound,video]
+ media-libs/sdl-mixer[wav]"
+RDEPEND="${DEPEND}"
+S=${WORKDIR}/${MY_P}/src
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-{build,sound}.patch
+}
+
+src_install() {
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r "${WORKDIR}"/${MY_P}/data
+
+ # wrapper to pass datadir location
+ newgamesbin "${WORKDIR}"/${MY_P}/${PN} ${PN}.bin
+ games_make_wrapper ${PN} "${PN}.bin \"${GAMES_DATADIR}/${PN}\""
+
+ make_desktop_entry ${PN}
+ dodoc "${WORKDIR}"/${MY_P}/{manual.txt,README}
+
+ prepgamesdirs
+}
diff --git a/games-arcade/ri-li/Manifest b/games-arcade/ri-li/Manifest
new file mode 100644
index 000000000000..a63c3d48d5f5
--- /dev/null
+++ b/games-arcade/ri-li/Manifest
@@ -0,0 +1 @@
+DIST Ri-li-2.0.1.tar.bz2 13745398 SHA256 f71ccc20c37c601358d963e087ac0d524de8c68e96df09c3aac1ae65edd38dbd SHA512 6d56c00dae90b50bca81ca739c628335b4ad7642c19a3b3c28630ddb91bd847ca6d383cace66ef436a1dda7497c9d3939de2626071bae40d423b2444fed97863 WHIRLPOOL 5495dc739e276398cc40aa966e621d3cf69c3662518109637b241d824c81246d023e6264cf7cbaed4a18ccda7ca60bfb3ce534c87c3a8b48bde7d1ed637656e6
diff --git a/games-arcade/ri-li/files/ri-li-2.0.1-gcc43.patch b/games-arcade/ri-li/files/ri-li-2.0.1-gcc43.patch
new file mode 100644
index 000000000000..7c7de0f9395d
--- /dev/null
+++ b/games-arcade/ri-li/files/ri-li-2.0.1-gcc43.patch
@@ -0,0 +1,291 @@
+--- src/audio.cc
++++ src/audio.cc
+@@ -22,7 +22,7 @@
+ // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+ #include <stdlib.h>
+-#include <iostream.h>
++#include <iostream>
+ #include <string.h>
+
+ #include "audio.h"
+@@ -57,7 +57,7 @@
+ char PathFile[512];
+
+ if(Mix_OpenAudio(22050,AUDIO_S16,1,1024)) {
+- cerr <<"Enable to init Sound card ! "<<SDL_GetError()<<endl;
++ std::cerr <<"Enable to init Sound card ! "<<SDL_GetError()<<std::endl;
+ return false;
+ }
+
+--- src/ecran.cc
++++ src/ecran.cc
+@@ -21,7 +21,7 @@
+ // with this program; if not, write to the Free Software Foundation, Inc.,
+ // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+-#include <iostream.h>
++#include <iostream>
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <math.h>
+--- src/editeur.cc
++++ src/editeur.cc
+@@ -25,7 +25,7 @@
+ #include <windows.h>
+ #endif
+
+-#include <iostream.h>
++#include <iostream>
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
+@@ -374,7 +374,7 @@
+
+ // Sauve le niveau
+ if(Niveau.Save()==false) {
+- cerr <<"ERREUR Saving levels!"<<endl;
++ std::cerr <<"ERREUR Saving levels!"<<std::endl;
+ exit(-1);
+ }
+
+--- src/jeux.cc
++++ src/jeux.cc
+@@ -25,7 +25,7 @@
+ #include <windows.h>
+ #endif
+
+-#include <iostream.h>
++#include <iostream>
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
+--- src/loco.cc
++++ src/loco.cc
+@@ -21,7 +21,7 @@
+ // with this program; if not, write to the Free Software Foundation, Inc.,
+ // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+-#include <iostream.h>
++#include <iostream>
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
+--- src/main.cc
++++ src/main.cc
+@@ -23,7 +23,7 @@
+
+ #include <stdio.h>
+ #include <stdlib.h>
+-#include <iostream.h>
++#include <iostream>
+ #include <string.h>
+ #include <SDL/SDL.h>
+ #include <SDL/SDL_mixer.h>
+@@ -115,7 +115,7 @@
+
+ // Initilise SDL
+ if( SDL_Init(SDL_INIT_VIDEO|SDL_INIT_TIMER|SDL_INIT_AUDIO|SDL_INIT_NOPARACHUTE) < 0 ) {
+- cerr <<"Impossible d'initialiser SDL:"<<SDL_GetError()<<endl;
++ std::cerr <<"Impossible d'initialiser SDL:"<<SDL_GetError()<<std::endl;
+ exit(-1);
+ }
+ // Ferme le programme correctement quant quit
+@@ -125,7 +125,7 @@
+ sdlVideoInfo=(SDL_VideoInfo*)SDL_GetVideoInfo();
+
+ if(sdlVideoInfo->vfmt->BitsPerPixel==8) {
+- cerr <<"Impossible d'utiliser 8bits pour la vidéo !"<<endl;
++ std::cerr <<"Impossible d'utiliser 8bits pour la vidéo !"<<std::endl;
+ exit(-1);
+ }
+
+@@ -145,7 +145,7 @@
+ sdlVideo=SDL_SetVideoMode(800,600,sdlVideoInfo->vfmt->BitsPerPixel,vOption);
+
+ if(sdlVideo==NULL) {
+- cerr <<"Impossible de passer dans le mode vidéo 800x600 !"<<endl;
++ std::cerr <<"Impossible de passer dans le mode vidéo 800x600 !"<<std::endl;
+ exit(-1);
+ }
+ // Change le nom de la fenetre
+--- src/menu.cc
++++ src/menu.cc
+@@ -21,7 +21,7 @@
+ // with this program; if not, write to the Free Software Foundation, Inc.,
+ // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+-#include <iostream.h>
++#include <iostream>
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
+@@ -92,7 +92,7 @@
+ // Teste la resolution video
+ sdlVideoInfo=(SDL_VideoInfo*)SDL_GetVideoInfo();
+ if(sdlVideoInfo->vfmt->BitsPerPixel==8) {
+- cerr <<"Impossible d'utiliser 8bits pour la vidéo !"<<endl;
++ std::cerr <<"Impossible d'utiliser 8bits pour la vidéo !"<<std::endl;
+ exit(-1);
+ }
+
+@@ -112,7 +112,7 @@
+ if(Pref.FullScreen) vOption|=SDL_FULLSCREEN;
+ sdlVideo=SDL_SetVideoMode(800,600,sdlVideoInfo->vfmt->BitsPerPixel,vOption);
+ if(sdlVideo==NULL) {
+- cerr <<"Impossible de passer dans le mode vidéo 800x600 !"<<endl;
++ std::cerr <<"Impossible de passer dans le mode vidéo 800x600 !"<<std::endl;
+ exit(-1);
+ }
+
+--- src/mouse.cc
++++ src/mouse.cc
+@@ -21,7 +21,7 @@
+ // with this program; if not, write to the Free Software Foundation, Inc.,
+ // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+-#include <iostream.h>
++#include <iostream>
+ #include <stdio.h>
+ #include "mouse.h"
+ #include "preference.h"
+--- src/sprite.cc
++++ src/sprite.cc
+@@ -21,7 +21,7 @@
+ // with this program; if not, write to the Free Software Foundation, Inc.,
+ // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+-#include <iostream.h>
++#include <iostream>
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
+@@ -84,7 +84,7 @@
+ strcpy(PathFile,Langue[Pref.Langue]);
+ GetPath(PathFile);
+ if(FileExiste(PathFile)==false) {
+- cerr <<"Impossible de trouver "<<Langue[Pref.Langue]<<endl;
++ std::cerr <<"Impossible de trouver "<<Langue[Pref.Langue]<<std::endl;
+ return false;
+ }
+ L=ChargeFichier(PathFile,Buf);
+@@ -128,7 +128,7 @@
+ // *** Charge le fichier des langues ***
+ // *************************************
+ if(FileExiste(PathFile)==false) {
+- cerr <<"Impossible de trouver 'language.dat'"<<endl;
++ std::cerr <<"Impossible de trouver 'language.dat'"<<std::endl;
+ return false;
+ }
+ L=ChargeFichier(PathFile,Buf);
+@@ -163,7 +163,7 @@
+ strcpy(PathFile,"sprites.dat");
+ GetPath(PathFile);
+ if(FileExiste(PathFile)==false) {
+- cerr <<"Impossible de trouver 'sprites.dat'"<<endl;
++ std::cerr <<"Impossible de trouver 'sprites.dat'"<<std::endl;
+ return false;
+ }
+ L=ChargeFichier(PathFile,Buf);
+@@ -352,7 +352,7 @@
+ Image[i]=SDL_CreateRGBSurface((Dim[i].bpp-3)*SDL_SRCALPHA,Dim[i].L,Dim[i].H,Dim[i].bpp*8,
+ 0xff,0xff00,0xff0000,0xff000000*(Dim[i].bpp-3));
+ if(Image[i]<=NULL) {
+- cerr <<"Impossible de créer une Surface SDL!"<<endl;
++ std::cerr <<"Impossible de créer une Surface SDL!"<<std::endl;
+ return false;
+ }
+
+@@ -486,7 +486,7 @@
+ Image[0]=SDL_CreateRGBSurface((Dim[0].bpp-3)*SDL_SRCALPHA,Dim[0].L,Dim[0].H,Dim[0].bpp*8,
+ 0xff,0xff00,0xff0000,0xff000000*(Dim[0].bpp-3));
+ if(Image[0]<=NULL) {
+- cerr <<"Impossible de créer une Surface SDL!"<<endl;
++ std::cerr <<"Impossible de créer une Surface SDL!"<<std::endl;
+ return false;
+ }
+ return true;
+--- src/tableau.cc
++++ src/tableau.cc
+@@ -21,7 +21,7 @@
+ // with this program; if not, write to the Free Software Foundation, Inc.,
+ // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+-#include <iostream.h>
++#include <iostream>
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include "preference.h"
+--- src/utils.cc
++++ src/utils.cc
+@@ -21,7 +21,7 @@
+ // with this program; if not, write to the Free Software Foundation, Inc.,
+ // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+-#include <iostream.h>
++#include <iostream>
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
+@@ -77,7 +77,7 @@
+
+ file=fopen(Path,"r");
+ if(!file) {
+- cerr <<"ERREUR: Impossible d'ouvrir '"<<Path<<"'"<<endl;
++ std::cerr <<"ERREUR: Impossible d'ouvrir '"<<Path<<"'"<<std::endl;
+ perror("fopen");
+ return -1;
+ }
+@@ -93,7 +93,7 @@
+
+ Buf=new unsigned char [L+1];
+ if(Buf==NULL) {
+- cerr <<"ERREUR: Memoire insuffisante!"<<endl;
++ std::cerr <<"ERREUR: Memoire insuffisante!"<<std::endl;
+ fclose(file);
+ return -1;
+ }
+@@ -104,7 +104,7 @@
+ while(Compt>1024) {
+ AfficheChargeur();
+ if( fread(Po,1,1024,file) != 1024 ) {
+- cerr <<"ERREUR de lecture du fichier '"<<Path<<"'"<<endl;
++ std::cerr <<"ERREUR de lecture du fichier '"<<Path<<"'"<<std::endl;
+ perror("fread");
+ fclose(file);
+ delete [] Buf;
+@@ -169,14 +169,14 @@
+
+ file=fopen(Path,"w");
+ if(!file) {
+- cerr <<"ERREUR: Impossible d'ouvrir '"<<Path<<"'"<<endl;
++ std::cerr <<"ERREUR: Impossible d'ouvrir '"<<Path<<"'"<<std::endl;
+ perror("fopen");
+ return false;
+ }
+
+ while(L>512) {
+ if( fwrite(Buf,1,512,file) != 512 ) {
+- cerr <<"ERREUR d'ecriture du fichier '"<<Path<<"'"<<endl;
++ std::cerr <<"ERREUR d'ecriture du fichier '"<<Path<<"'"<<std::endl;
+ perror("fwrite");
+ fclose(file);
+ return false;
+@@ -187,7 +187,7 @@
+
+ if(L>0) {
+ if( fwrite(Buf,1,(size_t)L,file) != (size_t)L ) {
+- cerr <<"ERREUR d'ecriture du fichier '"<<Path<<"'"<<endl;
++ std::cerr <<"ERREUR d'ecriture du fichier '"<<Path<<"'"<<std::endl;
+ perror("fwrite");
+ fclose(file);
+ return false;
+@@ -250,7 +250,7 @@
+ sprintf(Path,"/usr/share/games/Ri-li/%s",Provi);
+ if(FileExiste(Path)) return;
+
+- cerr <<"Impossible de trouver le fichier '"<<Provi<<endl;
++ std::cerr <<"Impossible de trouver le fichier '"<<Provi<<std::endl;
+ exit(-1);
+ }
+ #endif
diff --git a/games-arcade/ri-li/metadata.xml b/games-arcade/ri-li/metadata.xml
new file mode 100644
index 000000000000..adcacb009e3e
--- /dev/null
+++ b/games-arcade/ri-li/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>games</herd>
+ <upstream>
+ <remote-id type="sourceforge">ri-li</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-arcade/ri-li/ri-li-2.0.1.ebuild b/games-arcade/ri-li/ri-li-2.0.1.ebuild
new file mode 100644
index 000000000000..cdb12bf48896
--- /dev/null
+++ b/games-arcade/ri-li/ri-li-2.0.1.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit autotools eutils games
+
+DESCRIPTION="Drive a toy wood engine and collect all the coaches"
+HOMEPAGE="http://ri-li.sourceforge.net/"
+SRC_URI="mirror://sourceforge/ri-li/Ri-li-${PV}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="media-libs/libsdl[sound,video]
+ media-libs/sdl-mixer[mod]"
+RDEPEND="${DEPEND}"
+S=${WORKDIR}/Ri-li-${PV}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-gcc43.patch
+ mv configure.{in,ac}
+ rm aclocal.m4
+ eautoreconf
+}
+
+src_install() {
+ default
+ rm -f "${D}${GAMES_DATADIR}/Ri-li/"*ebuild
+ newicon data/Ri-li-icon-48x48.png ${PN}.png
+ make_desktop_entry Ri_li Ri-li
+ prepgamesdirs
+}
diff --git a/games-arcade/rockdodger/Manifest b/games-arcade/rockdodger/Manifest
new file mode 100644
index 000000000000..64cc1d45668c
--- /dev/null
+++ b/games-arcade/rockdodger/Manifest
@@ -0,0 +1 @@
+DIST rockdodger-0.6.0a.tar.gz 410223 SHA256 3b6676676d47c1a4d6074c6b811f7a0449f1e4774b2200127c9096c489def17e SHA512 d517cc844df21e8772b13d0226841a64bede0cc2f5461fb83d313f49cd99192dcf6af4597e3d1f3e1c60f578437e355ce665e0288415da803a503fb12d8462eb WHIRLPOOL 4961a6d39c0c4102b54d3e9cd938448cea5c2ba41a562f38d557d6e11b5c3d638bb67f21c48414ede3b7d4f8406161c3aef5165a03de8ae006e7cc9138ad842f
diff --git a/games-arcade/rockdodger/files/0.6.0a-sec.patch b/games-arcade/rockdodger/files/0.6.0a-sec.patch
new file mode 100644
index 000000000000..e870cf2d2974
--- /dev/null
+++ b/games-arcade/rockdodger/files/0.6.0a-sec.patch
@@ -0,0 +1,20 @@
+--- main.c.old 2002-11-17 23:56:12.000000000 +0100
++++ main.c 2004-10-29 22:32:00.000000000 +0200
+@@ -459,7 +459,7 @@ FILE *hs_fopen(char *mode) {/*{{{*/
+ else {
+ char s[1024];
+ umask(0177);
+- sprintf(s,"%s/.rockdodger_high",getenv("HOME"));
++ snprintf(s,1024,"%s/.rockdodger_high",getenv("HOME"));
+ if (f=fopen(s,mode)) {
+ umask(mask);
+ return f;
+@@ -478,7 +478,7 @@ void read_high_score_table() {/*{{{*/
+ for (i=0; i<8; i++) {
+ char s[1024];
+ int highscore;
+- if (fscanf (f, "%d %[^\n]", &highscore, s)!=2)
++ if (fscanf (f, "%d %1023[^\n]", &highscore, s)!=2)
+ break;
+ if (high[i].allocated)
+ free(high[i].name);
diff --git a/games-arcade/rockdodger/files/rockdodger-0.6.0a-gcc41.patch b/games-arcade/rockdodger/files/rockdodger-0.6.0a-gcc41.patch
new file mode 100644
index 000000000000..59e01bba17c3
--- /dev/null
+++ b/games-arcade/rockdodger/files/rockdodger-0.6.0a-gcc41.patch
@@ -0,0 +1,18 @@
+--- main.c.old 2006-04-24 16:16:13.000000000 +0200
++++ main.c 2006-04-24 16:16:21.000000000 +0200
+@@ -206,7 +206,6 @@
+ struct bangdots bdot[MAX_BANG_DOTS], *bdotptr=bdot;
+ struct spacedot sdot[MAX_SPACE_DOTS];
+
+-struct greeble greeb[MAX_GREEBLES];
+ struct greeble {
+ int active;
+ float x,y; // When landed, these represent an offset from the host rock
+@@ -214,6 +213,7 @@
+ int landed;
+ int boredom; // Goes up while landed
+ };
++struct greeble greeb[MAX_GREEBLES];
+ // }}}
+
+ void init_greeblies() {
diff --git a/games-arcade/rockdodger/files/rockdodger-0.6.0a-underlink.patch b/games-arcade/rockdodger/files/rockdodger-0.6.0a-underlink.patch
new file mode 100644
index 000000000000..87cd8453476c
--- /dev/null
+++ b/games-arcade/rockdodger/files/rockdodger-0.6.0a-underlink.patch
@@ -0,0 +1,11 @@
+--- Makefile.old 2011-06-20 21:25:56.788323912 +0200
++++ Makefile 2011-06-20 21:26:11.970287694 +0200
+@@ -27,7 +27,7 @@
+ #SOUNDLIBRARIES=
+ SOUNDLIBRARIES=-lSDL_mixer
+
+-LIBRARIES=`sdl-config --libs` -lSDL_image $(SOUNDLIBRARIES)
++LIBRARIES=`sdl-config --libs` -lSDL_image $(SOUNDLIBRARIES) -lm
+
+ all: $(EXENAME)
+
diff --git a/games-arcade/rockdodger/metadata.xml b/games-arcade/rockdodger/metadata.xml
new file mode 100644
index 000000000000..bf5eb2351781
--- /dev/null
+++ b/games-arcade/rockdodger/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>games</herd>
+ <upstream>
+ <remote-id type="sourceforge">spacerocks</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-arcade/rockdodger/rockdodger-0.6.0a-r1.ebuild b/games-arcade/rockdodger/rockdodger-0.6.0a-r1.ebuild
new file mode 100644
index 000000000000..205a51a4b335
--- /dev/null
+++ b/games-arcade/rockdodger/rockdodger-0.6.0a-r1.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="Dodge the rocks for as long as possible until you die"
+HOMEPAGE="http://spacerocks.sourceforge.net/"
+SRC_URI="mirror://sourceforge/spacerocks/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86 ~x86-fbsd"
+IUSE=""
+
+DEPEND="media-libs/libsdl[sound,video]
+ media-libs/sdl-image[png]
+ media-libs/sdl-mixer"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ # Modify highscores & data directory and add our CFLAGS to the Makefile
+ sed -i \
+ -e "s:\./data:${GAMES_DATADIR}/${PN}:" \
+ -e "s:/usr/share/rockdodger/\.highscore:${GAMES_STATEDIR}/rockdodger.scores:" \
+ -e 's:umask(0111):umask(0117):' main.c \
+ || die " sed main.c failed"
+ sed -i \
+ -e "s:-g:${CFLAGS}:" \
+ -e 's:cc:$(CC):' \
+ -e '/-o/s:\$+:$(LDFLAGS) $+:' \
+ Makefile \
+ || die "sed Makefile failed"
+
+ # The 512 chunksize makes the music skip
+ sed -i \
+ -e "s:512:1024:" sound.c \
+ || die "sed sound.c failed"
+ epatch \
+ "${FILESDIR}"/${PV}-sec.patch \
+ "${FILESDIR}"/${P}-gcc41.patch \
+ "${FILESDIR}"/${P}-underlink.patch
+}
+
+src_install() {
+ dogamesbin ${PN}
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins data/*
+
+ newicon spacerocks.xpm ${PN}.xpm
+ make_desktop_entry ${PN} "Rock Dodger" ${PN}
+
+ dodir "${GAMES_STATEDIR}"
+ touch "${D}/${GAMES_STATEDIR}"/${PN}.scores
+ fperms 660 "${GAMES_STATEDIR}"/${PN}.scores
+ prepgamesdirs
+}
diff --git a/games-arcade/rocksndiamonds/Manifest b/games-arcade/rocksndiamonds/Manifest
new file mode 100644
index 000000000000..5f65757da541
--- /dev/null
+++ b/games-arcade/rocksndiamonds/Manifest
@@ -0,0 +1,11 @@
+DIST BD2K3-1.0.0.zip 4715324 SHA256 5fc5130c859e69d6907bff87e01ff2296d59f7376202a8aacc03e55f359fb351 SHA512 80f172584d2077a3ade0749790802ef9cecde75283d6b889e7d2fedf9b55fd1fd7f1f1fd5596b17d5b2a542172699a929ea626086e77d28fde11487440c43622 WHIRLPOOL fa172ee6d691be22211eb55e47425f13fc32b0c415216921a3f778e099da5a3baaccee4988bb5c9cf1fbb79a2c3af6bd81427e3235632c89d19ed21608976a46
+DIST Boulder_Dash_Dream-1.0.0.zip 10923437 SHA256 6f9dc48023830fbdc318d8f18013b5a7e84ab3c815ba566a4a2c46faeb65c969 SHA512 f2765f52653b4f9d6c4a6548076281f6749d08c2dfd220345bdc0058b94d51c49ef81acdc87ff71bc1b3f337f3cc6a1d08b9e5a02d6aaeaeac5d894f97ba3d8e WHIRLPOOL 6638737d61489dbe9df4b7e67f1c753fa6162d06fab2d5a36ed569e8e25dccfe9713d46be1a326dcadace895048c85c7ffd35e7caa23c6fc7107f6af2faf3f2c
+DIST Contributions-1.2.0.zip 9499312 SHA256 d533dc69cd136d2bb7d76d674ab087285799191e0a516320aba8ac2368ce6dd2 SHA512 463e629bd4f592e24a82d20f1f249cea9e266a7c370bb5b079add8daa125d1af69a69746b696dd92f89b90e50972c6b2ba007aab87beed4cd980c0c7bdb81920 WHIRLPOOL f99c6456caaf160e00b0dc2e5d9f59a47fa493cd479e33e1c443a35d61b80f4ec476cd7e5b25349976a7bd588bd792988849c16a4c6133783f14444b7b9fc888
+DIST Snake_Bite-1.0.0.zip 6506066 SHA256 6f6b573d89588f56cb3b326f3a42fb57277307bd709713dbef329885ac4d006d SHA512 82131cb68c9654cb49ddbb46b0c15f13ce98af4f3b2a46e1cc4f2980eea45a707297c74787f365996321f39a9f7656a9492c3d437e3da0d71a295447c868960e WHIRLPOOL 68224d591918405fcd5283b9fdac61e3411293cfdf723ce080722c5258821b6ed724da63c3d8611fa61a6f468c3f5063fcf7358f6d8226b1a0ebcf1eade48441
+DIST Sokoban-1.0.0.zip 295339 SHA256 63f9d36789edca22c0f9454202f9fd21fcee89111642459b5882314f13ebdc0e SHA512 b63be5b00c4c0b153bb6fc45fde556c26cd49fa672b279cce2f61b572d9c056d5e10a565530bdf539024d75ffdd38efe68310e98b8f810d9c5dfc17b24ec376b WHIRLPOOL 984764549648d193106421418eeb48e28ed40839f7a052ec43f9bf5650bc4ff9d31ac5ec9808ed5b099b59f7f7b7ab434ffd0a021d7908fea277c62946d7a00e
+DIST rnd-contrib-1.0.0.tar.gz 3389242 SHA256 c24b56399ba202ebf60bb60316e81d7996ccd02ae281a7e54f2f555e088a1ce1 SHA512 8bd82f9c34e6e2d2b7ea22fc5899e72a64587469bfb1336d0d33e6ee2bcd04b3b6adca958861b0e29e18e8dac74651c642126511cacb247072e367783a5c6a08 WHIRLPOOL b2cec77905d686555498694fa5d6b43a4ae1c55301aa6ba5be584e84b9e51e0ef9ea69fe4c984c9dcd0abe387d3694f4d402cf1da28b9aee8275e647e39f0a5c
+DIST rnd_jue-v8.tar.bz2 17244645 SHA256 442a21a24b7c004f0c8f8c4fc844cac7f3ff4692574a0a7df2835a1da4dab7fa SHA512 cbff4cd16c812d77fe8446da4016d8f75dfa8675298a745062ff53a7783a39a59cffd886fedf1097023e72e111f10ddd56f280a109058a1a8ee069d664d2c59c WHIRLPOOL 045b2b44b2e0b1d0c2af10fb45c672c527d3f96ee2129b7732c3646ab793e53953624fc2b2efbb8a2721c97ba6a232a97d76e6ee47e3dcf5830adce8e3a1f3c8
+DIST rockslevels-dx-1.0.tar.gz 211151 SHA256 23f1710710eef1dcd1c490670de16d2d58dc98f3fdd9a2df186bdca590e57579 SHA512 2e1bc4484a76bf638e8ce285972b20b6377e0483abb2475e2343d48de1f84ee102f430049d685b89bc1087e0f20b9b6e29370f8e6cae66b480d3650be9991f44 WHIRLPOOL 22c623fd17ed704dfbc0c2b0331cc91199f6f5e3eab15b0a1e9d8c58f609751c226563003f3d983d24697f58d4da5e6464be4ad0007084423f4d6538acbe11c9
+DIST rockslevels-emc-1.0.tar.gz 3824268 SHA256 a04e554fb8b6d010c73e21de090f116dad6054e43e00edc80c59c71a8a1eaa0c SHA512 9abad888fa00bc305444367c5ab8ffdad95eaca22613573e44d5ecd93b1a9a1cbc931497c064002d90fd3174c4661d0b009ede7746b2fe8da0a00072303a1301 WHIRLPOOL d7ce616105621d9a7ee7f3c8406188ad9b0fdf01cd3d17339b8d350ebc5fdcfdc4eb78952198df045309999caca5fcff8c79deb01210437224960baf6bc611af
+DIST rockslevels-sp-1.0.tar.gz 373564 SHA256 770d75a5926bb924c6787a6f95ee9f7af743b629ea14005ab0375b57eb488f25 SHA512 2d44e9238a72846b9d4fbab90288aa3b23af4957ffe0d42d95c523fd22f3587572864b3fc0b277894d2f3f56d6eff52ea009e5b2d59aebc34163a1067662d729 WHIRLPOOL 9f3cf3b764b7a137591f287b55f4cab4918e03b0a7a663f7cbe658a280b181c161e53b0855d5bafa57f4072af470199eced2fb1bc98d13369dc373f46baf8205
+DIST rocksndiamonds-3.3.1.2.tar.gz 2614904 SHA256 c117c20026299c6c935bd531ef9b0dc767731f600881d12ceb80c831483755f3 SHA512 b627e4a8e2f03dc380b5a111cc42f296b283e63b20e019f522a8a1431fe9c138eb0dc7aa0fa03dd843c3a93bcd0a90704e651f5a590cb7d4c3e3b46976125755 WHIRLPOOL 6c8d76747b8a0e254e649966b5e8f03ad12e6b15f0a3f4b98efe7df482db55ed4351d7c25d5f45b8b7d3098bf6f65c4bb2ac58ecaa66a6397532169fc7cb5bf4
diff --git a/games-arcade/rocksndiamonds/files/rocksndiamonds-3.3.1.2-parallel-build.patch b/games-arcade/rocksndiamonds/files/rocksndiamonds-3.3.1.2-parallel-build.patch
new file mode 100644
index 000000000000..0aa709652129
--- /dev/null
+++ b/games-arcade/rocksndiamonds/files/rocksndiamonds-3.3.1.2-parallel-build.patch
@@ -0,0 +1,12 @@
+diff -ru rocksndiamonds-3.3.1.2.orig/src/Makefile rocksndiamonds-3.3.1.2/src/Makefile
+--- rocksndiamonds-3.3.1.2.orig/src/Makefile 2013-11-24 08:05:56.000000000 -0500
++++ rocksndiamonds-3.3.1.2/src/Makefile 2014-12-31 15:47:37.539941795 -0500
+@@ -255,7 +255,7 @@
+ # build targets
+ # -----------------------------------------------------------------------------
+
+-all: $(AUTOCONF) libgame_dir game_em_dir game_sp_dir $(PROGNAME)
++all: $(PROGNAME)
+
+ $(PROGNAME): $(RNDLIBS) $(TIMESTAMP_FILE) $(OBJS) $(ICON)
+ $(CC) $(PROFILING) $(OBJS) $(ICON) $(RNDLIBS) $(LDFLAGS) -o $(PROGNAME)
diff --git a/games-arcade/rocksndiamonds/files/rocksndiamonds-3.3.1.2-perms.patch b/games-arcade/rocksndiamonds/files/rocksndiamonds-3.3.1.2-perms.patch
new file mode 100644
index 000000000000..65a06e6cdf77
--- /dev/null
+++ b/games-arcade/rocksndiamonds/files/rocksndiamonds-3.3.1.2-perms.patch
@@ -0,0 +1,29 @@
+diff -up rocksndiamonds-3.3.0.1/src/libgame/setup.c.CVE-2011-4606 rocksndiamonds-3.3.0.1/src/libgame/setup.c
+--- rocksndiamonds-3.3.0.1/src/libgame/setup.c.CVE-2011-4606 2011-12-12 14:28:30.083078680 -0500
++++ rocksndiamonds-3.3.0.1/src/libgame/setup.c 2011-12-12 14:34:36.758744753 -0500
+@@ -1293,11 +1293,14 @@ void sortTreeInfo(TreeInfo **node_first)
+ #define MODE_W_ALL (S_IWUSR | S_IWGRP | S_IWOTH)
+ #define MODE_X_ALL (S_IXUSR | S_IXGRP | S_IXOTH)
+
++#define MODE_R_PRIVATE (S_IRUSR)
+ #define MODE_W_PRIVATE (S_IWUSR)
++#define MODE_X_PRIVATE (S_IXUSR)
++
+ #define MODE_W_PUBLIC (S_IWUSR | S_IWGRP)
+ #define MODE_W_PUBLIC_DIR (S_IWUSR | S_IWGRP | S_ISGID)
+
+-#define DIR_PERMS_PRIVATE (MODE_R_ALL | MODE_X_ALL | MODE_W_PRIVATE)
++#define DIR_PERMS_PRIVATE (MODE_R_PRIVATE | MODE_X_PRIVATE | MODE_W_PRIVATE)
+ #define DIR_PERMS_PUBLIC (MODE_R_ALL | MODE_X_ALL | MODE_W_PUBLIC_DIR)
+
+ #define FILE_PERMS_PRIVATE (MODE_R_ALL | MODE_W_PRIVATE)
+@@ -1456,7 +1459,8 @@ void createDirectory(char *dir, char *te
+ if (running_setgid)
+ posix_umask(last_umask & group_umask);
+ else
+- dir_mode |= MODE_W_ALL;
++ if (permission_class == PERMS_PUBLIC)
++ dir_mode |= MODE_W_ALL;
+
+ if (!fileExists(dir))
+ if (posix_mkdir(dir, dir_mode) != 0)
diff --git a/games-arcade/rocksndiamonds/metadata.xml b/games-arcade/rocksndiamonds/metadata.xml
new file mode 100644
index 000000000000..d3c2cc926f0b
--- /dev/null
+++ b/games-arcade/rocksndiamonds/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+</pkgmetadata>
diff --git a/games-arcade/rocksndiamonds/rocksndiamonds-3.3.1.2.ebuild b/games-arcade/rocksndiamonds/rocksndiamonds-3.3.1.2.ebuild
new file mode 100644
index 000000000000..3ca6c2924036
--- /dev/null
+++ b/games-arcade/rocksndiamonds/rocksndiamonds-3.3.1.2.ebuild
@@ -0,0 +1,110 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit flag-o-matic eutils games
+
+DESCRIPTION="A Boulderdash clone"
+HOMEPAGE="http://www.artsoft.org/rocksndiamonds/"
+SRC_URI="http://www.artsoft.org/RELEASES/unix/rocksndiamonds/${P}.tar.gz
+ http://www.artsoft.org/RELEASES/rocksndiamonds/levels/Contributions-1.2.0.zip
+ http://www.artsoft.org/RELEASES/rocksndiamonds/levels/BD2K3-1.0.0.zip
+ http://www.artsoft.org/RELEASES/rocksndiamonds/levels/Boulder_Dash_Dream-1.0.0.zip
+ http://www.artsoft.org/RELEASES/rocksndiamonds/levels/rnd-contrib-1.0.0.tar.gz
+ http://www.artsoft.org/RELEASES/rocksndiamonds/levels/Snake_Bite-1.0.0.zip
+ http://www.artsoft.org/RELEASES/rocksndiamonds/levels/Sokoban-1.0.0.zip
+ http://www.artsoft.org/RELEASES/unix/rocksndiamonds/levels/rockslevels-emc-1.0.tar.gz
+ http://www.artsoft.org/RELEASES/unix/rocksndiamonds/levels/rockslevels-sp-1.0.tar.gz
+ http://www.artsoft.org/RELEASES/unix/rocksndiamonds/levels/rockslevels-dx-1.0.tar.gz
+ mirror://gentoo/rnd_jue-v8.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE="X sdl"
+
+RDEPEND="X? ( x11-libs/libX11 )
+ !sdl? ( x11-libs/libX11 )
+ sdl? (
+ >=media-libs/libsdl-1.2.3[joystick,video]
+ >=media-libs/sdl-mixer-1.2.4[mod,mp3,timidity]
+ media-libs/sdl-net
+ >=media-libs/sdl-image-1.2.2[gif]
+ media-libs/smpeg
+ )"
+DEPEND="${RDEPEND}
+ app-arch/unzip
+ X? ( x11-libs/libXt )
+ !sdl? ( x11-libs/libXt )"
+
+src_unpack() {
+ unpack ${P}.tar.gz
+ cd "${S}"
+ unpack \
+ rockslevels-emc-1.0.tar.gz \
+ rockslevels-sp-1.0.tar.gz \
+ rockslevels-dx-1.0.tar.gz
+ cd levels
+ unpack \
+ rnd_jue-v8.tar.bz2 \
+ BD2K3-1.0.0.zip \
+ rnd-contrib-1.0.0.tar.gz \
+ Snake_Bite-1.0.0.zip \
+ Contributions-1.2.0.zip \
+ Boulder_Dash_Dream-1.0.0.zip \
+ Sokoban-1.0.0.zip
+}
+
+src_prepare() {
+ # make it parallel-friendly.
+ epatch \
+ "${FILESDIR}"/${P}-parallel-build.patch \
+ "${FILESDIR}"/${P}-perms.patch
+ sed -i \
+ -e 's:\$(MAKE_CMD):$(MAKE) -C $(SRC_DIR):' \
+ -e '/^MAKE/d' \
+ -e '/^CC/d' \
+ Makefile || die
+
+ sed -i \
+ -e '/^LDFLAGS/s/=/+=/' \
+ src/Makefile || die
+}
+
+src_compile() {
+ replace-cpu-flags k6 k6-1 k6-2 i586
+
+ local makeopts="RO_GAME_DIR=${GAMES_DATADIR}/${PN} RW_GAME_DIR=${GAMES_STATEDIR}/${PN}"
+ if use X || { ! use X && ! use sdl; } ; then
+ emake -j1 clean
+ emake ${makeopts} OPTIONS="${CFLAGS}" x11
+ mv rocksndiamonds{,.x11}
+ fi
+ if use sdl ; then
+ emake -j1 clean
+ emake ${makeopts} OPTIONS="${CFLAGS}" sdl
+ mv rocksndiamonds{,.sdl}
+ fi
+}
+
+src_install() {
+ if use X || { ! use X && ! use sdl; } ; then
+ dogamesbin rocksndiamonds.x11
+ fi
+ if use sdl ; then
+ dogamesbin rocksndiamonds.sdl
+ dosym rocksndiamonds.sdl "${GAMES_BINDIR}/rocksndiamonds"
+ else
+ dosym rocksndiamonds.x11 "${GAMES_BINDIR}/rocksndiamonds"
+ fi
+ insinto "${GAMES_DATADIR}/${PN}"
+ doins -r docs graphics levels music sounds
+
+ newman rocksndiamonds.{1,6}
+ dodoc CREDITS ChangeLog README
+ newicon graphics/gfx_classic/rocks_icon_32x32.pcx ${PN}.pcx
+ make_desktop_entry rocksndiamonds "Rocks 'N' Diamonds" /usr/share/pixmaps/${PN}.pcx
+
+ prepgamesdirs
+}
diff --git a/games-arcade/sable/Manifest b/games-arcade/sable/Manifest
new file mode 100644
index 000000000000..648ca0712a00
--- /dev/null
+++ b/games-arcade/sable/Manifest
@@ -0,0 +1,2 @@
+DIST sable-1.0-src.tgz 247200 SHA256 fb7864633fc5ef5c4999410929a9401deaf2f95b15cdd49f4a3c4823f6b1353b SHA512 ec8a8b76695b7767f04405c3bdb24f6f506116a775124e771c0c58a64f0412afd26aa88b1153945ceb36705a63b1fe905569b0b050dcf4a25880834cca158bb9 WHIRLPOOL 28ac854627537ea9382490709ec045df51e0cef35557207d469ed8a8333e349f6e37fd368fe8bd6f65aea737805e1cd8313182d33c25ec61c234b3a9269c5b5d
+DIST sable.png 1669 SHA256 94f535353e0bcdb7018126ca8e422694484479515484c3499a24931aa00eae86 SHA512 08aa0ac33cefcab317df7876838141c21f3fca79995922e6f773f2b4a3f7c460d1e594b4ca742666ddefe9102a64e20f2f3839cc166b94207e0e512d42ee78dd WHIRLPOOL 8e558bc632954cd126ff78c260e5225cabed25222eee9c492c90bba0babbd6dbcc8c10392cd6083cff581b8ef671f463b4759151a3bd8c6c9727868b5527257f
diff --git a/games-arcade/sable/files/sable-1.0-gentoo.patch b/games-arcade/sable/files/sable-1.0-gentoo.patch
new file mode 100644
index 000000000000..b809936ff964
--- /dev/null
+++ b/games-arcade/sable/files/sable-1.0-gentoo.patch
@@ -0,0 +1,57 @@
+diff -ru sable.orig/src/Makefile sable/src/Makefile
+--- sable.orig/src/Makefile 2006-03-14 00:57:31.000000000 -0500
++++ sable/src/Makefile 2009-01-21 15:15:02.000000000 -0500
+@@ -1,30 +1,10 @@
+-# are we on OSX?
+-ifeq ($(shell uname), Darwin)
+-OSX:=1
+-endif
+-
+-# C options
+-CC = gcc
+-NOOSXFLAGS = -c `sdl-config --cflags` -O2 -Wall -DSABLE_RESOURCEDIR=\"$(INSTALL_RESDIR)/sable/\" -Iinclude $(CFLAGS)
+-ifdef OSX
+-FLAGS = $(NOOSXFLAGS) -D_SABLE_OSX_
+-else
+-FLAGS = $(NOOSXFLAGS)
+-endif
+-
+-# C++ options.
+-CXX = g++
+-CXXFLAGS = $(FLAGS)
++NOOSXFLAGS = -c `sdl-config --cflags` -DSABLE_RESOURCEDIR=\"$(INSTALL_RESDIR)/sable/\" -Iinclude
++
++CFLAGS += $(NOOSXFLAGS)
++CXXFLAGS += $(NOOSXFLAGS)
+
+ # Linker options.
+-LD = g++
+-LDFLAGS =
+-NOOSXLIBS = -lSDL_image -lSDL_mixer
+-ifdef OSX
+-LIBS = `sdl-config --static-libs` $(NOOSXLIBS)
+-else
+-LIBS = `sdl-config --libs` $(NOOSXLIBS) -lGL -lGLU
+-endif
++LIBS = `sdl-config --libs` -lSDL_image -lSDL_mixer -lGL -lGLU
+
+ COBJS = vcontrol/vcontrol.o \
+ bcplrandom.o \
+@@ -35,7 +15,7 @@
+ OBJS = $(COBJS) $(CXXOBJS)
+
+ sable: $(OBJS)
+- $(LD) $(LDFLAGS) -o sable $(OBJS) $(LIBS)
++ $(CXX) $(LDFLAGS) -o sable $(OBJS) $(LIBS)
+
+ clean:
+ rm -f sable *.o vcontrol/*.o svaf/*.o
+@@ -44,7 +24,7 @@
+ find . -name \*.c\* | xargs makedepend -Y. -Iinclude >& /dev/null
+
+ $(COBJS): %.o: %.c
+- $(CC) $(FLAGS) -o $@ $<
++ $(CC) $(CFLAGS) -o $@ $<
+
+ $(CXXOBJS): %.o: %.cpp
+ $(CXX) $(CXXFLAGS) -o $@ $<
diff --git a/games-arcade/sable/metadata.xml b/games-arcade/sable/metadata.xml
new file mode 100644
index 000000000000..66d45cd64099
--- /dev/null
+++ b/games-arcade/sable/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+<longdescription lang="en">
+Sable is a frantic 3d space shooter inspired by games such as After Burner and
+Space Harrier. You pilot a ship through an obstacle-laden landscape and attack
+or evade swarms of enemies.
+
+The game itself is quite easy to play. The arrow keys move your ship, and the
+space bar fires your cannons. Holding down the space bar produces a rapid-fire
+effect. Avoid enemy craft, enemy shots, and the pylons. Pylons are destroyable
+but require concentrated fire to destroy.
+</longdescription>
+</pkgmetadata>
diff --git a/games-arcade/sable/sable-1.0.ebuild b/games-arcade/sable/sable-1.0.ebuild
new file mode 100644
index 000000000000..c2eded71b95f
--- /dev/null
+++ b/games-arcade/sable/sable-1.0.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="A frantic 3D space shooter"
+HOMEPAGE="http://www.stanford.edu/~mcmartin/sable/"
+SRC_URI="http://www.stanford.edu/~mcmartin/${PN}/${P}-src.tgz
+ mirror://gentoo/${PN}.png"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="virtual/opengl
+ media-libs/libsdl
+ media-libs/sdl-image[png]
+ media-libs/sdl-mixer"
+RDEPEND="${DEPEND}"
+S=${WORKDIR}/${PN}
+
+PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
+
+src_compile() {
+ emake INSTALL_RESDIR="${GAMES_DATADIR}"
+}
+
+src_install() {
+ dogamesbin ${PN}
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r models sfx textures
+ dodoc ChangeLog README
+
+ doicon "${DISTDIR}"/${PN}.png
+ make_desktop_entry ${PN} Sable
+
+ prepgamesdirs
+}
diff --git a/games-arcade/sdb/Manifest b/games-arcade/sdb/Manifest
new file mode 100644
index 000000000000..57d1d86c1eac
--- /dev/null
+++ b/games-arcade/sdb/Manifest
@@ -0,0 +1 @@
+DIST sdb-1.0.2.tar.gz 10342311 SHA256 f50d641413324448d102d3a6e8c3c340a310e5f8a5656b2cb86036a449b46534 SHA512 670d43717224d564bfecac44a3570167e19b7b4c50a21afab6903b0b0f2f6092a5551fd2cc63b659d2c2eadff5156c97876b96db3a10beabbbadc689b1d46efc WHIRLPOOL c7aa82ed22218e80cbb4d77d6e26fd28abe979624066c73eab5bb9650a590e4118e4b5e0fbb11cffd8624cef83fadd2e71d7a67f3ac04cfc1b3f060772a78556
diff --git a/games-arcade/sdb/files/sdb-1.0.2-endian.patch b/games-arcade/sdb/files/sdb-1.0.2-endian.patch
new file mode 100644
index 000000000000..e7b33970274f
--- /dev/null
+++ b/games-arcade/sdb/files/sdb-1.0.2-endian.patch
@@ -0,0 +1,275 @@
+diff -Naur sdb-1.0.2.orig/src/byteswap.h sdb-1.0.2/src/byteswap.h
+--- sdb-1.0.2.orig/src/byteswap.h 1970-01-01 01:00:00.000000000 +0100
++++ sdb-1.0.2/src/byteswap.h 2005-06-11 14:02:33.401905848 +0200
+@@ -0,0 +1,187 @@
++/* $OpenBSD: endian.h,v 1.14 2004/01/11 19:17:31 brad Exp $ */
++
++/*-
++ * Copyright (c) 1997 Niklas Hallqvist. All rights reserved.
++ *
++ * Redistribution and use in source and binary forms, with or without
++ * modification, are permitted provided that the following conditions
++ * are met:
++ * 1. Redistributions of source code must retain the above copyright
++ * notice, this list of conditions and the following disclaimer.
++ * 2. Redistributions in binary form must reproduce the above copyright
++ * notice, this list of conditions and the following disclaimer in the
++ * documentation and/or other materials provided with the distribution.
++ *
++ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
++ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
++ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
++ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
++ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
++ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
++ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
++ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
++ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
++ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
++ */
++
++/*
++ * Generic definitions for little- and big-endian systems. Other endianesses
++ * has to be dealt with in the specific machine/endian.h file for that port.
++ *
++ * This file is meant to be included from a little- or big-endian port's
++ * machine/endian.h after setting BYTE_ORDER to either 1234 for little endian
++ * or 4321 for big..
++ */
++
++#ifndef _BYTESWAP_H_
++#define _BYTESWAP_H_
++
++#undef LITTLE_ENDIAN
++#define LITTLE_ENDIAN 1234
++#undef BIG_ENDIAN
++#define BIG_ENDIAN 4321
++#undef PDP_ENDIAN
++#define PDP_ENDIAN 3412
++
++#ifdef __GNUC__
++
++#define __swap16gen(x) __extension__({ \
++ unsigned short __swap16gen_x = (x); \
++ \
++ (unsigned short)((__swap16gen_x & 0xff) << 8 | \
++ (__swap16gen_x & 0xff00) >> 8); \
++})
++
++#define __swap32gen(x) __extension__({ \
++ unsigned int __swap32gen_x = (x); \
++ \
++ (unsigned int)((__swap32gen_x & 0xff) << 24 | \
++ (__swap32gen_x & 0xff00) << 8 | \
++ (__swap32gen_x & 0xff0000) >> 8 | \
++ (__swap32gen_x & 0xff000000) >> 24); \
++})
++
++#else /* __GNUC__ */
++
++/* Note that these macros evaluate their arguments several times. */
++#define __swap16gen(x) \
++ (unsigned short)(((unsigned short)(x) & 0xff) << 8 | ((unsigned short)(x) & 0xff00) >> 8)
++
++#define __swap32gen(x) \
++ (unsigned int)(((unsigned int)(x) & 0xff) << 24 | \
++ ((unsigned int)(x) & 0xff00) << 8 | ((unsigned int)(x) & 0xff0000) >> 8 | \
++ ((unsigned int)(x) & 0xff000000) >> 24)
++
++#endif /* __GNUC__ */
++
++/*
++ * Define MD_SWAP if you provide swap{16,32}md functions/macros that are
++ * optimized for your architecture, These will be used for swap{16,32}
++ * unless the argument is a constant and we are using GCC, where we can
++ * take advantage of the CSE phase much better by using the generic version.
++ */
++#ifdef MD_SWAP
++#if __GNUC__
++
++#define swap16(x) __extension__({ \
++ unsigned short __swap16_x = (x); \
++ \
++ __builtin_constant_p(x) ? __swap16gen(__swap16_x) : \
++ __swap16md(__swap16_x); \
++})
++
++#define swap32(x) __extension__({ \
++ unsigned int __swap32_x = (x); \
++ \
++ __builtin_constant_p(x) ? __swap32gen(__swap32_x) : \
++ __swap32md(__swap32_x); \
++})
++
++#endif /* __GNUC__ */
++
++#else /* MD_SWAP */
++#define swap16 __swap16gen
++#define swap32 __swap32gen
++#endif /* MD_SWAP */
++
++#define swap16_multi(v, n) do { \
++ size_t __swap16_multi_n = (n); \
++ unsigned short *__swap16_multi_v = (v); \
++ \
++ while (__swap16_multi_n) { \
++ *__swap16_multi_v = swap16(*__swap16_multi_v); \
++ __swap16_multi_v++; \
++ __swap16_multi_n--; \
++ } \
++} while (0)
++
++#if BYTE_ORDER == LITTLE_ENDIAN
++
++#define letohf(x) (x)
++
++/* Can be overridden by machine/endian.h before inclusion of this file. */
++#ifndef _QUAD_HIGHWORD
++#define _QUAD_HIGHWORD 1
++#endif
++#ifndef _QUAD_LOWWORD
++#define _QUAD_LOWWORD 0
++#endif
++
++#define htobe16 swap16
++#define htobe32 swap32
++#define betoh16 swap16
++#define betoh32 swap32
++
++#define htole16(x) (x)
++#define htole32(x) (x)
++#define letoh16(x) (x)
++#define letoh32(x) (x)
++
++#endif /* BYTE_ORDER */
++
++#if BYTE_ORDER == BIG_ENDIAN
++
++inline float letohf(float in) {
++ float retVal;
++ char* p = (char*)&retVal;
++ char* i = (char*)&in;
++ p[0] = i[3];
++ p[1] = i[2];
++ p[2] = i[1];
++ p[3] = i[0];
++
++ return retVal;
++}
++
++/* Can be overridden by machine/endian.h before inclusion of this file. */
++#ifndef _QUAD_HIGHWORD
++#define _QUAD_HIGHWORD 0
++#endif
++#ifndef _QUAD_LOWWORD
++#define _QUAD_LOWWORD 1
++#endif
++
++#define htole16 swap16
++#define htole32 swap32
++#define letoh16 swap16
++#define letoh32 swap32
++
++#define htobe16(x) (x)
++#define htobe32(x) (x)
++#define betoh16(x) (x)
++#define betoh32(x) (x)
++
++#endif /* BYTE_ORDER */
++
++#define htons htobe16
++#define htonl htobe32
++#define ntohs betoh16
++#define ntohl betoh32
++
++#define NTOHL(x) (x) = ntohl((unsigned int)(x))
++#define NTOHS(x) (x) = ntohs((unsigned short)(x))
++#define HTONL(x) (x) = htonl((unsigned int)(x))
++#define HTONS(x) (x) = htons((unsigned short)(x))
++
++#endif /* _SYS_ENDIAN_H_ */
++
+diff -Naur sdb-1.0.2.orig/src/md2.cpp sdb-1.0.2/src/md2.cpp
+--- sdb-1.0.2.orig/src/md2.cpp 2005-06-11 13:54:13.616884720 +0200
++++ sdb-1.0.2/src/md2.cpp 2005-06-11 14:28:34.726548424 +0200
+@@ -27,6 +27,7 @@
+ */
+
+ #include "sdb.h"
++#include "byteswap.h"
+
+ void ModelObject::draw()
+ {
+@@ -145,6 +146,23 @@
+ errorMessage(8, "FLAGRANT SYSTEM ERROR", "Unable to load model %s", strFileName);
+
+ fread(&m_Header, 1, sizeof(tMd2Header), m_FilePointer);
++ m_Header.magic = letoh32(m_Header.magic);
++ m_Header.version = letoh32(m_Header.version);
++ m_Header.skinWidth = letoh32(m_Header.skinWidth);
++ m_Header.skinHeight = letoh32(m_Header.skinHeight);
++ m_Header.frameSize = letoh32(m_Header.frameSize);
++ m_Header.numSkins = letoh32(m_Header.numSkins);
++ m_Header.numVertices = letoh32(m_Header.numVertices);
++ m_Header.numTexCoords = letoh32(m_Header.numTexCoords);
++ m_Header.numTriangles = letoh32(m_Header.numTriangles);
++ m_Header.numGlCommands = letoh32(m_Header.numGlCommands);
++ m_Header.numFrames = letoh32(m_Header.numFrames);
++ m_Header.offsetSkins = letoh32(m_Header.offsetSkins);
++ m_Header.offsetTexCoords = letoh32(m_Header.offsetTexCoords);
++ m_Header.offsetTriangles = letoh32(m_Header.offsetTriangles);
++ m_Header.offsetFrames = letoh32(m_Header.offsetFrames);
++ m_Header.offsetGlCommands = letoh32(m_Header.offsetGlCommands);
++ m_Header.offsetEnd = letoh32(m_Header.offsetEnd);
+
+ if(m_Header.version != 8)
+ errorMessage(8, "FLAGRANT SYSTEM ERROR", "Invalid file format (version not 8) %s", strFileName);
+@@ -197,12 +215,22 @@
+
+ // Read in all the texture coordinates in one fell swoop
+ fread(m_pTexCoords, sizeof(tMd2TexCoord), m_Header.numTexCoords, m_FilePointer);
++ for (int i=0; i < m_Header.numTexCoords; ++i) {
++ m_pTexCoords[i].u = letoh16(m_pTexCoords[i].u);
++ m_pTexCoords[i].v = letoh16(m_pTexCoords[i].v);
++ }
+
+ // Move the file pointer to the triangles/face data offset
+ fseek(m_FilePointer, m_Header.offsetTriangles, SEEK_SET);
+
+ // Read in the face data for each triangle (vertex and texCoord indices)
+ fread(m_pTriangles, sizeof(tMd2Face), m_Header.numTriangles, m_FilePointer);
++ for (int i=0; i < m_Header.numTriangles; ++i) {
++ for (int j=0; j < 3; ++j) {
++ m_pTriangles[i].vertexIndices[j] = letoh16(m_pTriangles[i].vertexIndices[j]);
++ m_pTriangles[i].textureIndices[j] = letoh16(m_pTriangles[i].textureIndices[j]);
++ }
++ }
+
+ // Move the file pointer to the vertices (frames)
+ fseek(m_FilePointer, m_Header.offsetFrames, SEEK_SET);
+@@ -213,6 +241,10 @@
+
+ // Read in the first frame of animation
+ fread(pFrame, 1, m_Header.frameSize, m_FilePointer);
++ for (int j=0; j < 3; ++j) {
++ pFrame->scale[j] = letohf(pFrame->scale[j]);
++ pFrame->translate[j] = letohf(pFrame->translate[j]);
++ }
+
+ m_pFrames[i].pVertices = new tMd2Triangle [m_Header.numVertices];
+
+diff -Naur sdb-1.0.2.orig/src/sdb.h sdb-1.0.2/src/sdb.h
+--- sdb-1.0.2.orig/src/sdb.h 2005-06-11 13:54:13.610885632 +0200
++++ sdb-1.0.2/src/sdb.h 2005-06-11 14:26:02.116748640 +0200
+@@ -57,11 +57,7 @@
+ #include <sys/time.h>
+ #endif
+
+-#if SDL_BYTEORDER == SDL_BIG_ENDIAN
+-#define MD2_SUFFIX ".md2b"
+-#else
+ #define MD2_SUFFIX ".md2"
+-#endif
+
+ using namespace std;
+
diff --git a/games-arcade/sdb/files/sdb-1.0.2-gcc43.patch b/games-arcade/sdb/files/sdb-1.0.2-gcc43.patch
new file mode 100644
index 000000000000..db32209339ad
--- /dev/null
+++ b/games-arcade/sdb/files/sdb-1.0.2-gcc43.patch
@@ -0,0 +1,10 @@
+--- src/sdb.h
++++ src/sdb.h
+@@ -35,6 +35,7 @@
+ #include <vector>
+ #include <fstream>
+ #include <iostream>
++#include <climits>
+
+ #ifndef __APPLE__
+ #include <SDL/SDL.h>
diff --git a/games-arcade/sdb/files/sdb-1.0.2-ldflags.patch b/games-arcade/sdb/files/sdb-1.0.2-ldflags.patch
new file mode 100644
index 000000000000..6b071e2daf54
--- /dev/null
+++ b/games-arcade/sdb/files/sdb-1.0.2-ldflags.patch
@@ -0,0 +1,11 @@
+--- src/Makefile.old 2010-09-21 10:30:41.000000000 +0200
++++ src/Makefile 2010-09-21 10:30:58.000000000 +0200
+@@ -40,7 +40,7 @@
+ rm -f $(OBJ) $(BIN)
+
+ $(BIN): $(OBJ)
+- $(CPP) $(LINKOBJ) -o $(BIN) $(LIBS)
++ $(CPP) $(LDFLAGS) $(LINKOBJ) -o $(BIN) $(LIBS)
+
+ main.o: main.cpp
+ $(CPP) -c main.cpp -o main.o $(CXXFLAGS)
diff --git a/games-arcade/sdb/metadata.xml b/games-arcade/sdb/metadata.xml
new file mode 100644
index 000000000000..d3c2cc926f0b
--- /dev/null
+++ b/games-arcade/sdb/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+</pkgmetadata>
diff --git a/games-arcade/sdb/sdb-1.0.2.ebuild b/games-arcade/sdb/sdb-1.0.2.ebuild
new file mode 100644
index 000000000000..f73cee74bcc9
--- /dev/null
+++ b/games-arcade/sdb/sdb-1.0.2.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="a 2D top-down action game; escape a facility full of walking death machines"
+HOMEPAGE="http://sdb.gamecreation.org/"
+SRC_URI="http://gcsociety.sp.cs.cmu.edu/~frenzy/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86"
+IUSE=""
+
+DEPEND="virtual/opengl
+ media-libs/libsdl
+ media-libs/sdl-image[png]
+ media-libs/sdl-mixer"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ sed -i \
+ -e "s:models/:${GAMES_DATADIR}/${PN}/models/:" \
+ -e "s:snd/:${GAMES_DATADIR}/${PN}/snd/:" \
+ -e "s:sprites/:${GAMES_DATADIR}/${PN}/sprites/:" \
+ -e "s:levels/:${GAMES_DATADIR}/${PN}/levels/:" \
+ src/sdb.h src/game.cpp || die "setting game paths"
+ epatch \
+ "${FILESDIR}"/${P}-endian.patch \
+ "${FILESDIR}"/${P}-gcc43.patch \
+ "${FILESDIR}"/${P}-ldflags.patch
+}
+
+src_compile() {
+ emake \
+ -C src \
+ CXXFLAGS="${CXXFLAGS} $(sdl-config --cflags)"
+}
+
+src_install() {
+ dogamesbin src/sdb
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r levels models snd sprites
+ newicon sprites/barrel.png ${PN}.png
+ make_desktop_entry sdb "Shotgun Debugger"
+ dodoc ChangeLog README
+ prepgamesdirs
+}
diff --git a/games-arcade/sdl-sopwith/Manifest b/games-arcade/sdl-sopwith/Manifest
new file mode 100644
index 000000000000..7ff909ba2e22
--- /dev/null
+++ b/games-arcade/sdl-sopwith/Manifest
@@ -0,0 +1 @@
+DIST sopwith-1.7.5.tar.gz 280883 SHA256 71cfffb56cfa8c44cb4e5ffdd826ca7146ef2879d679219d92c06be6b5248b9a SHA512 ea78706d0190648be269142a29d10340c5181563959b0a329b802b9d9128a9dcb1e01760737269ec22883adf5b6c02c5049c8fc7b44e4eaa9f381b87abc7acae WHIRLPOOL 11c7ff9a6c333f46bb98b40e1943e78fb9a6079742dac7fcd3c621def3a0109b49b987627af00dd3112a9bef8c5a0fb9631d787b5b27a452656c06ed8aeb67d6
diff --git a/games-arcade/sdl-sopwith/files/sdl-sopwith-1.7.5-nogtk.patch b/games-arcade/sdl-sopwith/files/sdl-sopwith-1.7.5-nogtk.patch
new file mode 100644
index 000000000000..e4fb1715d8d4
--- /dev/null
+++ b/games-arcade/sdl-sopwith/files/sdl-sopwith-1.7.5-nogtk.patch
@@ -0,0 +1,42 @@
+--- configure.in.old
++++ configure.in
+@@ -61,11 +61,6 @@
+ SOPWITH_SUBDIRS="$SOPWITH_SUBDIRS sdl"
+ ],)
+
+-PKG_CHECK_MODULES(GTK, glib-2.0 >= 2.0 gtk+-2.0 >= 2.0, [
+- SOPWITH_BINS="$SOPWITH_BINS" # gtksopwith"
+- SOPWITH_SUBDIRS="$SOPWITH_SUBDIRS" # gtk"
+-],)
+-
+ AC_SUBST(SOPWITH_BINS)
+ AC_SUBST(SOPWITH_SUBDIRS)
+
+@@ -71,7 +71,7 @@
+
+ dnl check for TCPIP support
+
+-AC_CHECK_HEADER(netinet/ip.h, AC_DEFINE(TCPIP),,)
++AC_CHECK_HEADER(netinet/ip.h, AC_DEFINE([TCPIP], [1], [TCP/IP support]),,)
+
+ dnl generate Makefiles
+
+--- src/Makefile.am.old
++++ src/Makefile.am
+@@ -6,7 +6,7 @@
+ bin_PROGRAMS = @SOPWITH_BINS@
+ EXTRA_PROGRAMS = sopwith gtksopwith psopwith
+
+-CFLAGS = @CFLAGS@ -I..
++AM_CFLAGS = @SDL_CFLAGS@ -I..
+
+ COMMON_SRC = \
+ video.h swcollsn.c swgames.h swmain.h swutil.h \
+--- src/sdl/Makefile.am.old
++++ src/sdl/Makefile.am
+@@ -1,4 +1,4 @@
+-CFLAGS=@CFLAGS@ @SDL_CFLAGS@ -I..
++AM_CFLAGS = @SDL_CFLAGS@ -I..
+
+ noinst_LIBRARIES = libsdlsopwith.a
+
diff --git a/games-arcade/sdl-sopwith/files/sdl-sopwith-1.7.5-video-fix.patch b/games-arcade/sdl-sopwith/files/sdl-sopwith-1.7.5-video-fix.patch
new file mode 100644
index 000000000000..feab635518f1
--- /dev/null
+++ b/games-arcade/sdl-sopwith/files/sdl-sopwith-1.7.5-video-fix.patch
@@ -0,0 +1,24 @@
+Upstream patch: fix segfault while video device detection.
+Discovered here - https://bugs.gentoo.org/show_bug.cgi?id=458504
+
+--- src/sdl/video.c.orig 2013-02-21 11:48:57.000000000 -0400
++++ src/sdl/video.c 2013-02-21 11:49:35.000000000 -0400
+@@ -364,11 +364,17 @@
+ int n;
+ int w, h;
+ int flags = 0;
++ int status;
+
+ printf("CGA Screen Emulation\n");
+ printf("init screen: ");
+
+- SDL_Init(SDL_INIT_VIDEO);
++ status = SDL_Init(SDL_INIT_VIDEO);
++ if (status == -1)
++ {
++ fprintf(stderr, "Unable to locate video device. Exiting.\n");
++ exit(1);
++ }
+
+ srand(time(NULL));
+ set_icon(symbol_plane[rand() % 2][rand() % 16]);
diff --git a/games-arcade/sdl-sopwith/metadata.xml b/games-arcade/sdl-sopwith/metadata.xml
new file mode 100644
index 000000000000..0423b06f44dd
--- /dev/null
+++ b/games-arcade/sdl-sopwith/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>games</herd>
+ <upstream>
+ <remote-id type="sourceforge">sdl-sopwith</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-arcade/sdl-sopwith/sdl-sopwith-1.7.5-r1.ebuild b/games-arcade/sdl-sopwith/sdl-sopwith-1.7.5-r1.ebuild
new file mode 100644
index 000000000000..56dfb8498561
--- /dev/null
+++ b/games-arcade/sdl-sopwith/sdl-sopwith-1.7.5-r1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils autotools toolchain-funcs games
+
+MY_P=${P/sdl-/}
+DESCRIPTION="Port of the classic Sopwith game using LibSDL"
+HOMEPAGE="http://sdl-sopwith.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86 ~x86-fbsd"
+IUSE=""
+
+DEPEND=">=media-libs/libsdl-1.1.3[video]"
+RDEPEND=${DEPEND}
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ rm acconfig.h
+ epatch "${FILESDIR}"/${P}-nogtk.patch
+ # bug 458504
+ epatch "${FILESDIR}"/${P}-video-fix.patch
+ eautoreconf
+}
+
+src_compile() {
+ emake AR="$(tc-getAR)"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+ dodoc AUTHORS ChangeLog FAQ NEWS README TODO doc/*txt
+ rm -rf "${D}/usr/games/share/"
+ prepgamesdirs
+}
diff --git a/games-arcade/sdlroids/Manifest b/games-arcade/sdlroids/Manifest
new file mode 100644
index 000000000000..f709891032bb
--- /dev/null
+++ b/games-arcade/sdlroids/Manifest
@@ -0,0 +1 @@
+DIST sdlroids-1.3.4.tar.bz2 136588 SHA256 224b1def78dba8a4f7ec7bb15df16a21c85e50dc3d09888a19da0497d37c709c SHA512 abd202e462ac96781481defb9442f3ee69cbfafb5b4e82ae435dca23068257c3e65ba4886c0c41f2568a8568b52267ded24b8684efb3f7cafd21754103cc31b4 WHIRLPOOL 1df895bc8db1472b39d852bd8ce58295e46431b7d466e3bec80d9760e4ceb08e4bedb8c25e7f2aedb6fe47170c13ba63562f85647ab127c1e75b4fe3e1e2c5d8
diff --git a/games-arcade/sdlroids/files/1.3.4-sound.patch b/games-arcade/sdlroids/files/1.3.4-sound.patch
new file mode 100644
index 000000000000..00da03f94252
--- /dev/null
+++ b/games-arcade/sdlroids/files/1.3.4-sound.patch
@@ -0,0 +1,15 @@
+--- sdlsound.c.orig 2004-07-02 23:03:03.000000000 -0700
++++ sdlsound.c 2004-07-02 23:05:37.000000000 -0700
+@@ -205,9 +205,9 @@
+ int load_sample(int num) {
+
+ if((samples[num] = Mix_LoadWAV(samplename[num])) ||
+- Mix_LoadWAV(datafilename(NULL, samplename[num])) ||
+- Mix_LoadWAV(datafilename(DATADIR, samplename[num])) ||
+- Mix_LoadWAV(datafilename(bindir, samplename[num])))
++ (samples[num] = Mix_LoadWAV(datafilename(NULL, samplename[num]))) ||
++ (samples[num] = Mix_LoadWAV(datafilename(DATADIR, samplename[num]))) ||
++ (samples[num] = Mix_LoadWAV(datafilename(bindir, samplename[num]))))
+ return 1;
+ return 0;
+ }
diff --git a/games-arcade/sdlroids/metadata.xml b/games-arcade/sdlroids/metadata.xml
new file mode 100644
index 000000000000..3901cd5790ba
--- /dev/null
+++ b/games-arcade/sdlroids/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>games</herd>
+ <upstream>
+ <remote-id type="sourceforge">sdlroids</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-arcade/sdlroids/sdlroids-1.3.4-r3.ebuild b/games-arcade/sdlroids/sdlroids-1.3.4-r3.ebuild
new file mode 100644
index 000000000000..55d37b791c5d
--- /dev/null
+++ b/games-arcade/sdlroids/sdlroids-1.3.4-r3.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="Asteroids Clone for X using SDL"
+HOMEPAGE="http://david.hedbor.org/projects/sdlroids/"
+SRC_URI="mirror://sourceforge/sdlroids/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha amd64 ppc x86 ~x86-fbsd"
+IUSE=""
+
+DEPEND="media-libs/libsdl
+ media-libs/sdl-mixer"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ sed -i \
+ -e 's/$(SOUNDSDIR)/$(DESTDIR)$(SOUNDSDIR)/' \
+ -e 's/$(GFXDIR)/$(DESTDIR)$(GFXDIR)/' Makefile.in \
+ || die "sed failed"
+ epatch "${FILESDIR}"/${PV}-sound.patch
+}
+
+src_install() {
+ default
+ newicon icons/sdlroids-48x48.xpm ${PN}.xpm
+ make_desktop_entry ${PN} SDLRoids ${PN}
+ prepgamesdirs
+}
diff --git a/games-arcade/sdlsasteroids/Manifest b/games-arcade/sdlsasteroids/Manifest
new file mode 100644
index 000000000000..d031fcd8c0c3
--- /dev/null
+++ b/games-arcade/sdlsasteroids/Manifest
@@ -0,0 +1 @@
+DIST SDLSasteroids-3.0.1.tar.gz 531781 SHA256 f447a85d75913ee9d1be0bba68813e0627a4c163ab5d12c7fd5a8ea5f455502c SHA512 5758e1a8540dd16b0993146e706d2f600713cf80500de32b5102e23933fad7e5f5d5b31bf7ebe0efcc89223f54ec67505728e5d3b8e2c8691b8efce671fcbdbc WHIRLPOOL ded81fbf43c6b794c556a284910c0b3b1e9cc7c86e7966e543e3f1937b183d23ba72e969a4d869e54e47d67b9736bcc3d4109027fdb1bd1e082bab9d4379140d
diff --git a/games-arcade/sdlsasteroids/files/sdlsasteroids-3.0.1-gcc43.patch b/games-arcade/sdlsasteroids/files/sdlsasteroids-3.0.1-gcc43.patch
new file mode 100644
index 000000000000..5ee05328e897
--- /dev/null
+++ b/games-arcade/sdlsasteroids/files/sdlsasteroids-3.0.1-gcc43.patch
@@ -0,0 +1,11 @@
+--- src/sbitmap.h
++++ src/sbitmap.h
+@@ -36,7 +36,7 @@
+ void LoadImage(char* path);
+ void LoadSurface(SDL_Surface* surface);
+
+- void put(float x, float y, float rotate = 1.0f, float rotate = 1.0f, float layer = 0.0f);
++ void put(float x, float y, float sf = 1.0f, float rotate = 1.0f, float layer = 0.0f);
+ void putA(float x, float y, float layer = 0.0f, float alpha = 1.0f);
+
+ inline float width() const
diff --git a/games-arcade/sdlsasteroids/files/sdlsasteroids-3.0.1-ldflags.patch b/games-arcade/sdlsasteroids/files/sdlsasteroids-3.0.1-ldflags.patch
new file mode 100644
index 000000000000..302c912efe18
--- /dev/null
+++ b/games-arcade/sdlsasteroids/files/sdlsasteroids-3.0.1-ldflags.patch
@@ -0,0 +1,11 @@
+--- src/Makefile.old 2010-09-22 08:44:57.000000000 +0200
++++ src/Makefile 2010-09-22 08:45:43.000000000 +0200
+@@ -26,7 +26,7 @@
+
+
+ $(SASTEROIDS): $(SASTEROIDS_O)
+- g++ -Wall -o $(SASTEROIDS) $(SASTEROIDS_O) $(DEFINES) $(DEBUG) $(OPTS) $(CFLAGS) $(LIBS)
++ g++ $(LDFLAGS) -Wall -o $(SASTEROIDS) $(SASTEROIDS_O) $(DEFINES) $(DEBUG) $(OPTS) $(CFLAGS) $(LIBS)
+
+
+ .cpp.o:
diff --git a/games-arcade/sdlsasteroids/metadata.xml b/games-arcade/sdlsasteroids/metadata.xml
new file mode 100644
index 000000000000..59b165d32928
--- /dev/null
+++ b/games-arcade/sdlsasteroids/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>games</herd>
+ <upstream>
+ <remote-id type="sourceforge">sdlsas</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-arcade/sdlsasteroids/sdlsasteroids-3.0.1.ebuild b/games-arcade/sdlsasteroids/sdlsasteroids-3.0.1.ebuild
new file mode 100644
index 000000000000..206439f89ba3
--- /dev/null
+++ b/games-arcade/sdlsasteroids/sdlsasteroids-3.0.1.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="Rework of Sasteroids using SDL"
+HOMEPAGE="http://sdlsas.sourceforge.net/"
+SRC_URI="mirror://sourceforge/sdlsas/SDLSasteroids-${PV}.tar.gz"
+
+LICENSE="GPL-2 freedist"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86"
+IUSE=""
+
+DEPEND="virtual/opengl
+ media-libs/sdl-mixer
+ media-libs/libsdl[sound,joystick,video]
+ media-libs/sdl-image[png]
+ media-libs/sdl-ttf"
+RDEPEND="${DEPEND}"
+S=${WORKDIR}/SDLSasteroids-${PV}
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-gcc43.patch \
+ "${FILESDIR}"/${P}-ldflags.patch
+ sed -i \
+ -e 's/make