summaryrefslogtreecommitdiff
path: root/games-action
diff options
context:
space:
mode:
Diffstat (limited to 'games-action')
-rw-r--r--games-action/0verkill/0verkill-0.16-r3.ebuild62
-rw-r--r--games-action/0verkill/0verkill-0.16-r4.ebuild62
-rw-r--r--games-action/0verkill/Manifest13
-rw-r--r--games-action/0verkill/files/0verkill-0.16-CC.patch50
-rw-r--r--games-action/0verkill/files/0verkill-0.16-docs.patch32
-rw-r--r--games-action/0verkill/files/0verkill-0.16-gentoo-paths.patch23
-rw-r--r--games-action/0verkill/files/0verkill-0.16-home-overflow.patch26
-rw-r--r--games-action/0verkill/files/0verkill-0.16-ovflfix.patch24
-rw-r--r--games-action/0verkill/files/0verkill-0.16-segv.patch39
-rw-r--r--games-action/0verkill/files/0verkill-0.16-underflow-check.patch17
-rw-r--r--games-action/0verkill/metadata.xml8
-rw-r--r--games-action/abuse/Manifest7
-rw-r--r--games-action/abuse/abuse-0.8-r1.ebuild41
-rw-r--r--games-action/abuse/abuse-0.8.ebuild45
-rw-r--r--games-action/abuse/files/abuse-0.8-gentoo.patch24
-rw-r--r--games-action/abuse/metadata.xml8
-rw-r--r--games-action/accelerator3d/Manifest8
-rw-r--r--games-action/accelerator3d/accelerator3d-0.1.1-r2.ebuild44
-rw-r--r--games-action/accelerator3d/accelerator3d-0.1.1-r3.ebuild45
-rw-r--r--games-action/accelerator3d/files/accelerator3d-0.1.1-gentoo-paths.patch53
-rw-r--r--games-action/accelerator3d/files/accelerator3d-0.1.1-gllightmodel.patch11
-rw-r--r--games-action/accelerator3d/metadata.xml11
-rw-r--r--games-action/armagetronad/Manifest6
-rw-r--r--games-action/armagetronad/armagetronad-0.2.8.3.3-r1.ebuild71
-rw-r--r--games-action/armagetronad/files/armagetronad-0.2.8.3.3-gcc6.patch222
-rw-r--r--games-action/armagetronad/metadata.xml11
-rw-r--r--games-action/atanks/Manifest6
-rw-r--r--games-action/atanks/atanks-6.4-r1.ebuild43
-rw-r--r--games-action/atanks/atanks-6.4.ebuild47
-rw-r--r--games-action/atanks/metadata.xml11
-rw-r--r--games-action/barrage/Manifest6
-rw-r--r--games-action/barrage/barrage-1.0.4-r1.ebuild25
-rw-r--r--games-action/barrage/barrage-1.0.4.ebuild30
-rw-r--r--games-action/barrage/metadata.xml11
-rw-r--r--games-action/battalion/Manifest6
-rw-r--r--games-action/battalion/battalion-1.4b.ebuild69
-rw-r--r--games-action/battalion/files/battalion-1.4b-warning.patch12
-rw-r--r--games-action/battalion/metadata.xml8
-rw-r--r--games-action/beathazardultra/Manifest6
-rw-r--r--games-action/beathazardultra/beathazardultra-20130308-r1.ebuild79
-rw-r--r--games-action/beathazardultra/beathazardultra-20130308.ebuild82
-rw-r--r--games-action/beathazardultra/metadata.xml13
-rw-r--r--games-action/bomberclone/Manifest8
-rw-r--r--games-action/bomberclone/bomberclone-0.11.8-r1.ebuild59
-rw-r--r--games-action/bomberclone/bomberclone-0.11.8.ebuild51
-rw-r--r--games-action/bomberclone/files/bomberclone-0.11.8-gcc52.patch11
-rw-r--r--games-action/bomberclone/files/bomberclone-0.11.8-underlink.patch20
-rw-r--r--games-action/bomberclone/metadata.xml11
-rw-r--r--games-action/brutal-legend/Manifest6
-rw-r--r--games-action/brutal-legend/brutal-legend-20130615-r1.ebuild86
-rw-r--r--games-action/brutal-legend/brutal-legend-20130615-r2.ebuild83
-rw-r--r--games-action/brutal-legend/metadata.xml26
-rw-r--r--games-action/btanks/Manifest9
-rw-r--r--games-action/btanks/btanks-0.9.8083.ebuild54
-rw-r--r--games-action/btanks/files/btanks-0.9.8083-gcc46.patch10
-rw-r--r--games-action/btanks/files/btanks-0.9.8083-gcc47.patch103
-rw-r--r--games-action/btanks/files/btanks-0.9.8083-gcc6.patch34
-rw-r--r--games-action/btanks/files/btanks-0.9.8083-scons-blows.patch93
-rw-r--r--games-action/btanks/metadata.xml19
-rw-r--r--games-action/bzflag/Manifest19
-rw-r--r--games-action/bzflag/bzflag-2.4.10.ebuild62
-rw-r--r--games-action/bzflag/bzflag-2.4.2-r1.ebuild69
-rw-r--r--games-action/bzflag/bzflag-2.4.4-r1.ebuild62
-rw-r--r--games-action/bzflag/bzflag-2.4.4.ebuild58
-rw-r--r--games-action/bzflag/bzflag-2.4.6.ebuild62
-rw-r--r--games-action/bzflag/bzflag-2.4.8.ebuild62
-rw-r--r--games-action/bzflag/files/bzflag-2.4.10-configure.patch37
-rw-r--r--games-action/bzflag/files/bzflag-2.4.2-nocxxflags.patch56
-rw-r--r--games-action/bzflag/files/bzflag-2.4.4-configure.patch37
-rw-r--r--games-action/bzflag/files/bzflag-2.4.6-configure.patch37
-rw-r--r--games-action/bzflag/files/bzflag-2.4.8-configure.patch37
-rw-r--r--games-action/bzflag/metadata.xml11
-rw-r--r--games-action/chickens/Manifest6
-rw-r--r--games-action/chickens/chickens-0.2.4-r1.ebuild64
-rw-r--r--games-action/chickens/chickens-0.2.4.ebuild55
-rw-r--r--games-action/chickens/metadata.xml8
-rw-r--r--games-action/chromium-bsu/Manifest6
-rw-r--r--games-action/chromium-bsu/chromium-bsu-0.9.15.1-r1.ebuild70
-rw-r--r--games-action/chromium-bsu/files/chromium-bsu-0.9.15.1-gcc6.patch100
-rw-r--r--games-action/chromium-bsu/metadata.xml17
-rw-r--r--games-action/clanbomber/Manifest8
-rw-r--r--games-action/clanbomber/clanbomber-2.1.1-r1.ebuild48
-rw-r--r--games-action/clanbomber/files/clanbomber-2.1.1-automake112.patch11
-rw-r--r--games-action/clanbomber/files/clanbomber-2.1.1-boost150.patch31
-rw-r--r--games-action/clanbomber/files/clanbomber-2.1.1-gcc6.patch19
-rw-r--r--games-action/clanbomber/metadata.xml15
-rw-r--r--games-action/cs2d/Manifest11
-rw-r--r--games-action/cs2d/cs2d-0127.ebuild70
-rw-r--r--games-action/cs2d/cs2d-1002-r1.ebuild69
-rw-r--r--games-action/cs2d/cs2d-1002.ebuild70
-rw-r--r--games-action/cs2d/metadata.xml20
-rw-r--r--games-action/d1x-rebirth/Manifest12
-rw-r--r--games-action/d1x-rebirth/d1x-rebirth-0.58.1.ebuild107
-rw-r--r--games-action/d1x-rebirth/files/d1x-rebirth-0.58.1-flags.patch11
-rw-r--r--games-action/d1x-rebirth/metadata.xml24
-rw-r--r--games-action/d2x-rebirth/Manifest9
-rw-r--r--games-action/d2x-rebirth/d2x-rebirth-0.58.1.ebuild93
-rw-r--r--games-action/d2x-rebirth/files/d2x-rebirth-0.58.1-flags.patch10
-rw-r--r--games-action/d2x-rebirth/metadata.xml21
-rw-r--r--games-action/deathchase3d/Manifest7
-rw-r--r--games-action/deathchase3d/deathchase3d-0.9-r1.ebuild26
-rw-r--r--games-action/deathchase3d/deathchase3d-0.9.ebuild28
-rw-r--r--games-action/deathchase3d/files/deathchase3d-0.9-underlink.patch11
-rw-r--r--games-action/deathchase3d/metadata.xml8
-rw-r--r--games-action/descent1-data/Manifest4
-rw-r--r--games-action/descent1-data/descent1-data-1.4a.ebuild111
-rw-r--r--games-action/descent1-data/metadata.xml8
-rw-r--r--games-action/descent1-demodata/Manifest6
-rw-r--r--games-action/descent1-demodata/descent1-demodata-1.4-r1.ebuild46
-rw-r--r--games-action/descent1-demodata/descent1-demodata-1.4.ebuild60
-rw-r--r--games-action/descent1-demodata/metadata.xml14
-rw-r--r--games-action/descent2-data/Manifest7
-rw-r--r--games-action/descent2-data/descent2-data-1.0.ebuild98
-rw-r--r--games-action/descent2-data/descent2-data-1.2.ebuild121
-rw-r--r--games-action/descent2-data/metadata.xml8
-rw-r--r--games-action/descent2-demodata/Manifest6
-rw-r--r--games-action/descent2-demodata/descent2-demodata-1.0-r1.ebuild54
-rw-r--r--games-action/descent2-demodata/descent2-demodata-1.0.ebuild73
-rw-r--r--games-action/descent2-demodata/metadata.xml8
-rw-r--r--games-action/descent2-vertigo/Manifest2
-rw-r--r--games-action/descent2-vertigo/descent2-vertigo-1.0.ebuild57
-rw-r--r--games-action/descent2-vertigo/metadata.xml8
-rw-r--r--games-action/descent3-demo/Manifest6
-rw-r--r--games-action/descent3-demo/descent3-demo-1.4.0a-r1.ebuild73
-rw-r--r--games-action/descent3-demo/descent3-demo-1.4.0a.ebuild62
-rw-r--r--games-action/descent3-demo/metadata.xml15
-rw-r--r--games-action/descent3/Manifest6
-rw-r--r--games-action/descent3/descent3-1.4.0b-r2.ebuild101
-rw-r--r--games-action/descent3/metadata.xml11
-rw-r--r--games-action/dxx-rebirth/Manifest12
-rw-r--r--games-action/dxx-rebirth/dxx-rebirth-0.59.100.ebuild107
-rw-r--r--games-action/dxx-rebirth/files/dxx-rebirth-0.59.100-flags.patch10
-rw-r--r--games-action/dxx-rebirth/files/dxx-rebirth-0.59.100-sharepath.patch11
-rw-r--r--games-action/dxx-rebirth/metadata.xml39
-rw-r--r--games-action/extreme-tuxracer/Manifest6
-rw-r--r--games-action/extreme-tuxracer/extreme-tuxracer-0.7.2-r1.ebuild50
-rw-r--r--games-action/extreme-tuxracer/extreme-tuxracer-0.7.2.ebuild51
-rw-r--r--games-action/extreme-tuxracer/metadata.xml15
-rw-r--r--games-action/fakk2/Manifest5
-rw-r--r--games-action/fakk2/fakk2-1.02-r1.ebuild64
-rw-r--r--games-action/fakk2/fakk2-1.02.ebuild67
-rw-r--r--games-action/fakk2/metadata.xml11
-rw-r--r--games-action/formido/Manifest7
-rw-r--r--games-action/formido/formido-1.0.1-r1.ebuild47
-rw-r--r--games-action/formido/formido-1.0.1.ebuild46
-rw-r--r--games-action/formido/metadata.xml8
-rw-r--r--games-action/garden/Manifest13
-rw-r--r--games-action/garden/files/garden-1.0.8-dash.patch33
-rw-r--r--games-action/garden/files/garden-1.0.8-drop-AS_INIT.patch19
-rw-r--r--games-action/garden/files/garden-1.0.8-underlink.patch19
-rw-r--r--games-action/garden/files/garden-1.0.9-dash.patch33
-rw-r--r--games-action/garden/files/garden-1.0.9-resources.patch7
-rw-r--r--games-action/garden/garden-1.0.8-r1.ebuild47
-rw-r--r--games-action/garden/garden-1.0.9-r1.ebuild51
-rw-r--r--games-action/garden/garden-1.0.9.ebuild51
-rw-r--r--games-action/garden/metadata.xml11
-rw-r--r--games-action/geki2-KXL/Manifest9
-rw-r--r--games-action/geki2-KXL/files/geki2-KXL-2.0.3-cflags.patch9
-rw-r--r--games-action/geki2-KXL/files/geki2-KXL-2.0.3-paths.patch44
-rw-r--r--games-action/geki2-KXL/geki2-KXL-2.0.3-r2.ebuild41
-rw-r--r--games-action/geki2-KXL/geki2-KXL-2.0.3-r3.ebuild51
-rw-r--r--games-action/geki2-KXL/metadata.xml8
-rw-r--r--games-action/geki3-KXL/Manifest8
-rw-r--r--games-action/geki3-KXL/files/geki3-KXL-1.0.3-paths.patch41
-rw-r--r--games-action/geki3-KXL/geki3-KXL-1.0.3-r2.ebuild41
-rw-r--r--games-action/geki3-KXL/geki3-KXL-1.0.3-r3.ebuild52
-rw-r--r--games-action/geki3-KXL/metadata.xml8
-rw-r--r--games-action/gltron/Manifest11
-rw-r--r--games-action/gltron/files/gltron-0.70-configure.patch24
-rw-r--r--games-action/gltron/files/gltron-0.70-debian.patch35
-rw-r--r--games-action/gltron/files/gltron-0.70-gcc49.patch13
-rw-r--r--games-action/gltron/files/gltron-0.70-prototypes.patch24
-rw-r--r--games-action/gltron/gltron-0.70-r1.ebuild51
-rw-r--r--games-action/gltron/gltron-0.70-r2.ebuild55
-rw-r--r--games-action/gltron/metadata.xml11
-rw-r--r--games-action/heretic2-demo/Manifest5
-rw-r--r--games-action/heretic2-demo/heretic2-demo-1.06a.ebuild57
-rw-r--r--games-action/heretic2-demo/metadata.xml11
-rw-r--r--games-action/heretic2/Manifest7
-rw-r--r--games-action/heretic2/heretic2-1.06c-r1.ebuild84
-rw-r--r--games-action/heretic2/metadata.xml8
-rw-r--r--games-action/heroes/Manifest13
-rw-r--r--games-action/heroes/files/0.21-cvs-segfault-fix.patch17
-rw-r--r--games-action/heroes/files/heroes-0.21-automake-1.12.patch11
-rw-r--r--games-action/heroes/files/heroes-0.21-gcc4.patch184
-rw-r--r--games-action/heroes/files/heroes-0.21-underlink.patch11
-rw-r--r--games-action/heroes/heroes-0.21-r1.ebuild69
-rw-r--r--games-action/heroes/heroes-0.21-r2.ebuild73
-rw-r--r--games-action/heroes/metadata.xml11
-rw-r--r--games-action/hotline-miami/Manifest5
-rw-r--r--games-action/hotline-miami/hotline-miami-1.0.9a_p20140221-r1.ebuild87
-rw-r--r--games-action/hotline-miami/metadata.xml12
-rw-r--r--games-action/intrusion2/Manifest5
-rw-r--r--games-action/intrusion2/intrusion2-1.024.ebuild74
-rw-r--r--games-action/intrusion2/metadata.xml8
-rw-r--r--games-action/koth/Manifest8
-rw-r--r--games-action/koth/files/koth-0.8.0-gcc-3.4.patch29
-rw-r--r--games-action/koth/files/koth-0.8.0-r1-gcc-3.4.patch29
-rw-r--r--games-action/koth/koth-0.8.0-r1.ebuild36
-rw-r--r--games-action/koth/koth-0.8.0.ebuild34
-rw-r--r--games-action/koth/metadata.xml11
-rw-r--r--games-action/lugaru/Manifest9
-rw-r--r--games-action/lugaru/files/lugaru-20151204-dir.patch11
-rw-r--r--games-action/lugaru/files/lugaru-9999-dir.patch11
-rw-r--r--games-action/lugaru/lugaru-20151204-r1.ebuild57
-rw-r--r--games-action/lugaru/lugaru-20151204.ebuild54
-rw-r--r--games-action/lugaru/lugaru-9999.ebuild62
-rw-r--r--games-action/lugaru/metadata.xml11
-rw-r--r--games-action/luola/Manifest9
-rw-r--r--games-action/luola/files/luola-1.3.2-underlink.patch11
-rw-r--r--games-action/luola/luola-1.3.2-r1.ebuild59
-rw-r--r--games-action/luola/luola-1.3.2.ebuild58
-rw-r--r--games-action/luola/metadata.xml11
-rw-r--r--games-action/maelstrom/Manifest11
-rw-r--r--games-action/maelstrom/files/maelstrom-3.0.6-64bits.patch15
-rw-r--r--games-action/maelstrom/files/maelstrom-3.0.6-gcc34.patch30
-rw-r--r--games-action/maelstrom/files/maelstrom-3.0.6-gcc53.patch11
-rw-r--r--games-action/maelstrom/files/maelstrom-3.0.6-security.patch380
-rw-r--r--games-action/maelstrom/files/maelstrom-3.0.6-warnings.patch20
-rw-r--r--games-action/maelstrom/maelstrom-3.0.6-r2.ebuild60
-rw-r--r--games-action/maelstrom/maelstrom-3.0.6-r3.ebuild71
-rw-r--r--games-action/maelstrom/metadata.xml8
-rw-r--r--games-action/metadata.xml35
-rw-r--r--games-action/minetest/Manifest9
-rw-r--r--games-action/minetest/files/minetestserver.confd16
-rw-r--r--games-action/minetest/files/minetestserver.initd35
-rw-r--r--games-action/minetest/metadata.xml51
-rw-r--r--games-action/minetest/minetest-0.4.14.ebuild138
-rw-r--r--games-action/minetest/minetest-0.4.16.ebuild132
-rw-r--r--games-action/minetest_game/Manifest7
-rw-r--r--games-action/minetest_game/metadata.xml9
-rw-r--r--games-action/minetest_game/minetest_game-0.4.14.ebuild24
-rw-r--r--games-action/minetest_game/minetest_game-0.4.16.ebuild24
-rw-r--r--games-action/moon-buggy/Manifest6
-rw-r--r--games-action/moon-buggy/metadata.xml8
-rw-r--r--games-action/moon-buggy/moon-buggy-1.0.51-r1.ebuild45
-rw-r--r--games-action/moon-buggy/moon-buggy-1.0.51.ebuild39
-rw-r--r--games-action/mutantstorm-demo/Manifest6
-rw-r--r--games-action/mutantstorm-demo/metadata.xml40
-rw-r--r--games-action/mutantstorm-demo/mutantstorm-demo-1.33-r1.ebuild43
-rw-r--r--games-action/mutantstorm-demo/mutantstorm-demo-1.33.ebuild44
-rw-r--r--games-action/nighthawk/Manifest8
-rw-r--r--games-action/nighthawk/files/nighthawk-2.2-gcc42.patch24
-rw-r--r--games-action/nighthawk/files/nighthawk.patch46
-rw-r--r--games-action/nighthawk/metadata.xml11
-rw-r--r--games-action/nighthawk/nighthawk-2.2-r1.ebuild28
-rw-r--r--games-action/nighthawk/nighthawk-2.2.ebuild30
-rw-r--r--games-action/noiz2sa/Manifest8
-rw-r--r--games-action/noiz2sa/files/noiz2sa-0.51a-gcc41.patch17
-rw-r--r--games-action/noiz2sa/files/noiz2sa-0.51a-underlink.patch31
-rw-r--r--games-action/noiz2sa/metadata.xml11
-rw-r--r--games-action/noiz2sa/noiz2sa-0.51a-r1.ebuild42
-rw-r--r--games-action/noiz2sa/noiz2sa-0.51a.ebuild44
-rw-r--r--games-action/openastromenace/Manifest6
-rw-r--r--games-action/openastromenace/metadata.xml11
-rw-r--r--games-action/openastromenace/openastromenace-1.3.2-r1.ebuild75
-rw-r--r--games-action/openastromenace/openastromenace-1.3.2.ebuild76
-rw-r--r--games-action/openclonk/Manifest8
-rw-r--r--games-action/openclonk/files/openclonk-7.0-paths.patch68
-rw-r--r--games-action/openclonk/files/openclonk-7.0-postinst.patch14
-rw-r--r--games-action/openclonk/files/openclonk-wrapper-script.sh9
-rw-r--r--games-action/openclonk/metadata.xml23
-rw-r--r--games-action/openclonk/openclonk-7.0.ebuild122
-rw-r--r--games-action/orbital-eunuchs-sniper/Manifest8
-rw-r--r--games-action/orbital-eunuchs-sniper/files/orbital-eunuchs-sniper-1.30-datadir.patch36
-rw-r--r--games-action/orbital-eunuchs-sniper/files/orbital-eunuchs-sniper-1.30-gcc43.patch10
-rw-r--r--games-action/orbital-eunuchs-sniper/metadata.xml8
-rw-r--r--games-action/orbital-eunuchs-sniper/orbital-eunuchs-sniper-1.30-r1.ebuild41
-rw-r--r--games-action/orbital-eunuchs-sniper/orbital-eunuchs-sniper-1.30.ebuild39
-rw-r--r--games-action/phobiaii/Manifest6
-rw-r--r--games-action/phobiaii/metadata.xml8
-rw-r--r--games-action/phobiaii/phobiaii-1.1-r1.ebuild36
-rw-r--r--games-action/phobiaii/phobiaii-1.1.ebuild36
-rw-r--r--games-action/postalplus/Manifest5
-rw-r--r--games-action/postalplus/metadata.xml8
-rw-r--r--games-action/postalplus/postalplus-1-r1.ebuild35
-rw-r--r--games-action/postalplus/postalplus-1.ebuild37
-rw-r--r--games-action/powermanga/Manifest13
-rw-r--r--games-action/powermanga/files/powermanga-0.91-automake-1.13.patch11
-rw-r--r--games-action/powermanga/files/powermanga-0.91-flags.patch11
-rw-r--r--games-action/powermanga/files/powermanga-0.91-segfault.patch22
-rw-r--r--games-action/powermanga/files/powermanga-0.91-underlink.patch21
-rw-r--r--games-action/powermanga/files/powermanga-0.93.1-flags.patch11
-rw-r--r--games-action/powermanga/metadata.xml8
-rw-r--r--games-action/powermanga/powermanga-0.91.ebuild75
-rw-r--r--games-action/powermanga/powermanga-0.93.1-r1.ebuild75
-rw-r--r--games-action/powermanga/powermanga-0.93.1.ebuild71
-rw-r--r--games-action/rafkill/Manifest10
-rw-r--r--games-action/rafkill/files/rafkill-1.2.3-build.patch27
-rw-r--r--games-action/rafkill/files/rafkill-1.2.3-gcc43.patch106
-rw-r--r--games-action/rafkill/files/rafkill-1.2.3-gcc47.patch11
-rw-r--r--games-action/rafkill/files/rafkill-1.2.3-ldflags.patch17
-rw-r--r--games-action/rafkill/metadata.xml11
-rw-r--r--games-action/rafkill/rafkill-1.2.3-r1.ebuild48
-rw-r--r--games-action/rafkill/rafkill-1.2.3.ebuild42
-rw-r--r--games-action/rrootage/Manifest7
-rw-r--r--games-action/rrootage/files/rrootage-0.23a-gcc41.patch28
-rw-r--r--games-action/rrootage/metadata.xml11
-rw-r--r--games-action/rrootage/rrootage-0.23a-r1.ebuild72
-rw-r--r--games-action/rrootage/rrootage-0.23a.ebuild68
-rw-r--r--games-action/rune/Manifest6
-rw-r--r--games-action/rune/metadata.xml40
-rw-r--r--games-action/rune/rune-1.07-r2.ebuild129
-rw-r--r--games-action/rune/rune-1.07-r3.ebuild129
-rw-r--r--games-action/shadowgrounds-bin/Manifest5
-rw-r--r--games-action/shadowgrounds-bin/metadata.xml8
-rw-r--r--games-action/shadowgrounds-bin/shadowgrounds-bin-0_beta12-r1.ebuild65
-rw-r--r--games-action/shadowgrounds-survivor-bin/Manifest5
-rw-r--r--games-action/shadowgrounds-survivor-bin/metadata.xml8
-rw-r--r--games-action/shadowgrounds-survivor-bin/shadowgrounds-survivor-bin-0_beta11-r1.ebuild63
-rw-r--r--games-action/shootingstar/Manifest8
-rw-r--r--games-action/shootingstar/files/1.2.0-gcc34.patch23
-rw-r--r--games-action/shootingstar/files/shootingstar-1.2.0-gcc44.patch10
-rw-r--r--games-action/shootingstar/metadata.xml8
-rw-r--r--games-action/shootingstar/shootingstar-1.2.0-r1.ebuild53
-rw-r--r--games-action/shootingstar/shootingstar-1.2.0.ebuild49
-rw-r--r--games-action/slune/Manifest5
-rw-r--r--games-action/slune/metadata.xml8
-rw-r--r--games-action/slune/slune-1.0.15-r1.ebuild75
-rw-r--r--games-action/snipes/Manifest7
-rw-r--r--games-action/snipes/files/snipes-1.0.4-nongnulinker.patch20
-rw-r--r--games-action/snipes/metadata.xml8
-rw-r--r--games-action/snipes/snipes-1.0.4-r1.ebuild34
-rw-r--r--games-action/snipes/snipes-1.0.4.ebuild35
-rw-r--r--games-action/solar2/Manifest6
-rw-r--r--games-action/solar2/metadata.xml13
-rw-r--r--games-action/solar2/solar2-1.10.ebuild105
-rw-r--r--games-action/spacearyarya-kxl/Manifest9
-rw-r--r--games-action/spacearyarya-kxl/files/spacearyarya-kxl-1.0.2-clang.patch11
-rw-r--r--games-action/spacearyarya-kxl/files/spacearyarya-kxl-1.0.2-flags.patch11
-rw-r--r--games-action/spacearyarya-kxl/files/spacearyarya-kxl-1.0.2-gentoo-paths.patch74
-rw-r--r--games-action/spacearyarya-kxl/metadata.xml8
-rw-r--r--games-action/spacearyarya-kxl/spacearyarya-kxl-1.0.2-r1.ebuild37
-rw-r--r--games-action/spacearyarya-kxl/spacearyarya-kxl-1.0.2-r2.ebuild42
-rw-r--r--games-action/spacetripper-demo/Manifest6
-rw-r--r--games-action/spacetripper-demo/metadata.xml8
-rw-r--r--games-action/spacetripper-demo/spacetripper-demo-1-r1.ebuild47
-rw-r--r--games-action/spacetripper-demo/spacetripper-demo-1.ebuild49
-rw-r--r--games-action/super-hexagon/Manifest5
-rw-r--r--games-action/super-hexagon/metadata.xml13
-rw-r--r--games-action/super-hexagon/super-hexagon-20141027.ebuild84
-rw-r--r--games-action/supermariowar/Manifest5
-rw-r--r--games-action/supermariowar/files/smwd.initd39
-rw-r--r--games-action/supermariowar/files/supermariowar-2.0_beta1-yaml-cpp-config.cmake21
-rw-r--r--games-action/supermariowar/metadata.xml14
-rw-r--r--games-action/supermariowar/supermariowar-2.0_beta1-r1.ebuild110
-rw-r--r--games-action/supertuxkart/Manifest14
-rw-r--r--games-action/supertuxkart/files/supertuxkart-0.9.2-fix-angelscript.patch27
-rw-r--r--games-action/supertuxkart/files/supertuxkart-0.9.2-fix-buildsystem.patch97
-rw-r--r--games-action/supertuxkart/files/supertuxkart-0.9.2-irrlicht-arch-support.patch49
-rw-r--r--games-action/supertuxkart/files/supertuxkart-0.9.2-irrlicht-as-needed.patch24
-rw-r--r--games-action/supertuxkart/files/supertuxkart-0.9.2-irrlicht-bundled-libs.patch35
-rw-r--r--games-action/supertuxkart/files/supertuxkart-0.9.2-irrlicht-system-libs.patch105
-rw-r--r--games-action/supertuxkart/files/supertuxkart-0.9.2-unbundle-enet.patch58
-rw-r--r--games-action/supertuxkart/files/supertuxkart-0.9.2-unbundle-libs.patch19
-rw-r--r--games-action/supertuxkart/metadata.xml15
-rw-r--r--games-action/supertuxkart/supertuxkart-0.9.2.ebuild90
-rw-r--r--games-action/swordandsworcery/Manifest6
-rw-r--r--games-action/swordandsworcery/files/swordandsworcery-wrapper23
-rw-r--r--games-action/swordandsworcery/metadata.xml13
-rw-r--r--games-action/swordandsworcery/swordandsworcery-1.02.ebuild108
-rw-r--r--games-action/teeworlds/Manifest13
-rw-r--r--games-action/teeworlds/files/0.6/01-use-system-wavpack.patch101
-rw-r--r--games-action/teeworlds/files/0.6/02-fixed-wavpack-sound-loading.patch109
-rw-r--r--games-action/teeworlds/files/0.6/03-use-system-pnglite.patch160
-rw-r--r--games-action/teeworlds/files/0.6/04-dedicated.patch15
-rw-r--r--games-action/teeworlds/files/0.6/05-cc-cflags.patch18
-rw-r--r--games-action/teeworlds/files/teeworlds-init.d40
-rw-r--r--games-action/teeworlds/files/teeworlds.xpm66
-rw-r--r--games-action/teeworlds/files/teeworlds_srv.cfg7
-rw-r--r--games-action/teeworlds/metadata.xml8
-rw-r--r--games-action/teeworlds/teeworlds-0.6.4.ebuild118
-rw-r--r--games-action/towbowl-tactics/Manifest6
-rw-r--r--games-action/towbowl-tactics/files/towbowl-tactics-0.5-gentoo.patch42
-rw-r--r--games-action/towbowl-tactics/metadata.xml8
-rw-r--r--games-action/towbowl-tactics/towbowl-tactics-0.5.ebuild51
-rw-r--r--games-action/transcend/Manifest7
-rw-r--r--games-action/transcend/files/transcend-0.3-sound.patch89
-rw-r--r--games-action/transcend/metadata.xml11
-rw-r--r--games-action/transcend/transcend-0.3-r1.ebuild65
-rw-r--r--games-action/transcend/transcend-0.3.ebuild60
-rw-r--r--games-action/trine-bin/Manifest6
-rw-r--r--games-action/trine-bin/metadata.xml8
-rw-r--r--games-action/trine-bin/trine-bin-1.08-r1.ebuild66
-rw-r--r--games-action/trine-bin/trine-bin-1.08.ebuild67
-rw-r--r--games-action/trine2/Manifest5
-rw-r--r--games-action/trine2/metadata.xml12
-rw-r--r--games-action/trine2/trine2-1.16-r1.ebuild133
-rw-r--r--games-action/trosh/Manifest6
-rw-r--r--games-action/trosh/metadata.xml8
-rw-r--r--games-action/trosh/trosh-20.ebuild50
-rw-r--r--games-action/tuxkart/Manifest6
-rw-r--r--games-action/tuxkart/metadata.xml11
-rw-r--r--games-action/tuxkart/tuxkart-0.4.0-r1.ebuild45
-rw-r--r--games-action/tuxkart/tuxkart-0.4.0.ebuild50
-rw-r--r--games-action/violetland/Manifest6
-rw-r--r--games-action/violetland/files/violetland-0.4.3-boost150.patch41
-rw-r--r--games-action/violetland/metadata.xml11
-rw-r--r--games-action/violetland/violetland-0.4.3-r1.ebuild51
-rw-r--r--games-action/wordwarvi/Manifest7
-rw-r--r--games-action/wordwarvi/files/wordwarvi-1.00-sound.patch80
-rw-r--r--games-action/wordwarvi/metadata.xml11
-rw-r--r--games-action/wordwarvi/wordwarvi-1.00-r1.ebuild59
-rw-r--r--games-action/wordwarvi/wordwarvi-1.00.ebuild51
-rw-r--r--games-action/xblast/Manifest11
-rw-r--r--games-action/xblast/metadata.xml11
-rw-r--r--games-action/xblast/xblast-2.10.4-r1.ebuild70
-rw-r--r--games-action/xblast/xblast-2.10.4.ebuild69
-rw-r--r--games-action/xbomber/Manifest10
-rw-r--r--games-action/xbomber/files/xbomber-101-clang.patch123
-rw-r--r--games-action/xbomber/files/xbomber-101-gcc4.patch11
-rw-r--r--games-action/xbomber/files/xbomber-101-ldflags.patch15
-rw-r--r--games-action/xbomber/files/xbomber-101-va_list.patch48
-rw-r--r--games-action/xbomber/metadata.xml8
-rw-r--r--games-action/xbomber/xbomber-101-r1.ebuild47
-rw-r--r--games-action/xbomber/xbomber-101.ebuild41
-rw-r--r--games-action/xpilot/Manifest6
-rw-r--r--games-action/xpilot/metadata.xml11
-rw-r--r--games-action/xpilot/xpilot-4.5.5-r1.ebuild55
-rw-r--r--games-action/xpilot/xpilot-4.5.5.ebuild52
420 files changed, 15068 insertions, 0 deletions
diff --git a/games-action/0verkill/0verkill-0.16-r3.ebuild b/games-action/0verkill/0verkill-0.16-r3.ebuild
new file mode 100644
index 000000000000..633abcca11bb
--- /dev/null
+++ b/games-action/0verkill/0verkill-0.16-r3.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit autotools eutils games
+
+DESCRIPTION="a bloody 2D action deathmatch-like game in ASCII-ART"
+HOMEPAGE="http://artax.karlin.mff.cuni.cz/~brain/0verkill/"
+SRC_URI="http://artax.karlin.mff.cuni.cz/~brain/0verkill/release/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="X"
+
+DEPEND="X? ( x11-libs/libXpm )"
+RDEPEND=${DEPEND}
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-docs.patch \
+ "${FILESDIR}"/${P}-home-overflow.patch \
+ "${FILESDIR}"/${P}-segv.patch \
+ "${FILESDIR}"/${P}-gentoo-paths.patch \
+ "${FILESDIR}"/${P}-ovflfix.patch \
+ "${FILESDIR}"/${P}-CC.patch \
+ "${FILESDIR}"/${P}-underflow-check.patch #136222 \
+ sed -i \
+ -e "s:data/:${GAMES_DATADIR}/${PN}/data/:" cfg.h || die
+ sed -i \
+ -e "s:@CFLAGS@ -O3 :@CFLAGS@ :" Makefile.in || die
+ sed -i \
+ -e "/gettimeofday/s/getopt/getopt calloc/" configure.in || die
+ eautoreconf
+}
+
+src_configure() {
+ egamesconf $(use_with X x)
+}
+
+src_install() {
+ local x
+ dogamesbin 0verkill
+ for x in avi bot editor server test_server ; do
+ newgamesbin ${x} 0verkill-${x}
+ done
+ if use X ; then
+ dogamesbin x0verkill
+ for x in avi editor ; do
+ newgamesbin ${x} 0verkill-${x}
+ done
+ fi
+
+ insinto "${GAMES_DATADIR}/${PN}"
+ doins -r data grx
+
+ dohtml doc/*.html
+ rm doc/*.html doc/README.OS2 doc/Readme\ Win32.txt doc/COPYING
+ dodoc doc/*
+
+ prepgamesdirs
+}
diff --git a/games-action/0verkill/0verkill-0.16-r4.ebuild b/games-action/0verkill/0verkill-0.16-r4.ebuild
new file mode 100644
index 000000000000..b512d03cdb80
--- /dev/null
+++ b/games-action/0verkill/0verkill-0.16-r4.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools eutils
+
+DESCRIPTION="a bloody 2D action deathmatch-like game in ASCII-ART"
+HOMEPAGE="http://artax.karlin.mff.cuni.cz/~brain/0verkill/"
+SRC_URI="http://artax.karlin.mff.cuni.cz/~brain/0verkill/release/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="X"
+
+DEPEND="X? ( x11-libs/libXpm )"
+RDEPEND=${DEPEND}
+
+PATCHES=(
+ "${FILESDIR}"/${P}-docs.patch
+ "${FILESDIR}"/${P}-home-overflow.patch
+ "${FILESDIR}"/${P}-segv.patch
+ "${FILESDIR}"/${P}-gentoo-paths.patch
+ "${FILESDIR}"/${P}-ovflfix.patch
+ "${FILESDIR}"/${P}-CC.patch
+ "${FILESDIR}"/${P}-underflow-check.patch #136222
+)
+
+src_prepare() {
+ default
+ sed -i \
+ -e "s:data/:/usr/share/${PN}/data/:" cfg.h || die
+ sed -i \
+ -e "s:@CFLAGS@ -O3 :@CFLAGS@ :" Makefile.in || die
+ sed -i \
+ -e "/gettimeofday/s/getopt/getopt calloc/" configure.in || die
+ eautoreconf
+}
+
+src_configure() {
+ econf $(use_with X x)
+}
+
+src_install() {
+ local x
+ dobin 0verkill
+ for x in avi bot editor server test_server ; do
+ newbin ${x} 0verkill-${x}
+ done
+ if use X ; then
+ dobin x0verkill
+ for x in avi editor ; do
+ newbin ${x} 0verkill-${x}
+ done
+ fi
+
+ insinto "/usr/share/${PN}"
+ doins -r data grx
+
+ rm doc/README.OS2 doc/Readme\ Win32.txt doc/COPYING
+ dodoc -r doc/
+}
diff --git a/games-action/0verkill/Manifest b/games-action/0verkill/Manifest
new file mode 100644
index 000000000000..ea088b698acc
--- /dev/null
+++ b/games-action/0verkill/Manifest
@@ -0,0 +1,13 @@
+AUX 0verkill-0.16-CC.patch 3795 SHA256 24f539547849de1541f2bff9450877416f46559e08dfc47c1d5d1f3abedd5326 SHA512 ea3c848d20e4a3ce197104dac2ff26948c7bdd77eb03a7492f6d62cf6cb316c12a38f3d4555bdac87582692ce4ff15794c2996a6015a2ea18398cb84b8dee022 WHIRLPOOL 3014a8b30b1dfbb2077b2e1f256ef893b3aa39af6541f768d1fe05320c62bff059c3344f6cdf31b3117f6a500a1e2a2a0b3078d4c42742ad20e1a549cc4b6fbe
+AUX 0verkill-0.16-docs.patch 1477 SHA256 aa866aa38f93ac4fee8fe72f58dfd7ce6311780303169917a79fdc479ed2d1b6 SHA512 a1ce9ca8083855b77747f0ea32587651d9e7bdf3f41406bed6e8f76debd7fe475681a1a59571b3244a65864700db18bc5fe48858113ea22ee00cd7feff13438d WHIRLPOOL fc7eff2f8d8cb7e54ed2896b8f31485179c2c3c9a266c56dc3f524acccfe179ece24956fe3d97fb59d64205264f2ebb2c222d53a4af67d42ac71ad5425105a0b
+AUX 0verkill-0.16-gentoo-paths.patch 530 SHA256 3d6d128cc48e8618e698457163e44333e12f3a79ff3f03ed55d922c3d49502ce SHA512 9419b990df205c93baf4d2e2391269f2543bc2b6ba9a3d0219983be518cce01d4a1384ce9cc0dfd8ffba743e8879658b70859e6f7a4df0b97a47186dd90b3337 WHIRLPOOL 16357c64451077051a66a8eb7ae83850bd80a3b2252c9e6b79e06b38e7f323513dd9df68e51021461c318b5583b5a719c0e0dcfd24b701213bc456f069092877
+AUX 0verkill-0.16-home-overflow.patch 724 SHA256 fab4e4249168f4a2409a4bcb3417a12a500ee33368873d9004d4e5725578e2a6 SHA512 379edf4f8f9bd31d38bd39812bd0602429afb4254e040cb9f5677764bfe4e34fede5f6e0d07c27e691c9682e205c78fa53109b8c1e4ca6be509d06e752eb08b5 WHIRLPOOL 38f72582a90adc5619ddf27f1fb5bed3d514f26322b77778a50c39b50ef9c8f9145cf15882f20b5bc5c9c6b29382c6665b4c35ce548e429741426c679f4bb0de
+AUX 0verkill-0.16-ovflfix.patch 805 SHA256 437c92bdd39d44842fad0ee8386e4dae2093c51ab2d04b54a04059ab471d017f SHA512 ad4f57d6d44c663af4d7a2b75c680ad287f582a5c7b4038e392bdc6425c5819de719e0dadd38e45d784d077f22eb5d098fd0e65c7ecb8bd29824b4fb81032220 WHIRLPOOL 6ebf9d3c78c3ee2b1ae30725dc7b11a9302a1d6086a32b15913428a140d03f5de0984e7c709b0294aff2cde87d9c033f4b91d7e0c48ddb96ee1e7f560306bb3f
+AUX 0verkill-0.16-segv.patch 1560 SHA256 b49cb1a14667cc4033e6094f99a9ddc1ef242381acac83a3abdeebf208724291 SHA512 05ce966d80cf199a9602cb7143a2d7e8479ccb4b03da2275dc8a93a9065d387fe15426c48559279acb73eb3c371306a02706de899d5c6a97c123319426b3f6bc WHIRLPOOL 9578ee8bd00cdb6860a348a6aa37c1ac3efc9ccead20152d3317377e2afec99798b523d8e0d458699d6ecd10d86e35b25416c8e11b5bc555d1b72b34b0502e8a
+AUX 0verkill-0.16-underflow-check.patch 675 SHA256 e918e3b2b632632cca8c337caf019b0c2565ded120b8055a4d31677d446ef8e5 SHA512 3b5bff2c18c1862fadbb3d932be23f35559ed9eb3ffb979cf11c50bbac9fff8928b5ead8349ddfc78c84d07a5d1afe4431af56263568b3b82fd7cb015f442e42 WHIRLPOOL 1ba725a9232cd2374d4273a770c1223ebae68d81486e4443c5d9a6ebd7fe12d8a20815b07d2afe6e8d40948aa81c9e19ec440bbd313b9876b7baec73453caf42
+DIST 0verkill-0.16.tgz 276579 SHA256 8091261c3fef3535edb97ab46cb48c067befb329e951bfa3f1b54ae6b7e1dadf SHA512 6ab273085f2be3a6d0a2b785a51a9bfd52add0212b3c8522b22255c4e3e48a9470f20d9d678158233da9c9465563279079c29ca5526d322247f2ef1d74107144 WHIRLPOOL 7a1dff93014ea67f6d16efea408ed77219a391b015a0d533a53d52eb735d8b84c8cc0f4e1cb6997aca2b3d238b57f7cff780f11fe838ded362769529cf437665
+EBUILD 0verkill-0.16-r3.ebuild 1444 SHA256 d88c79dafd84a385b91a421ad7bdbe13d1d766ef45304a2189b4e6b323ac3729 SHA512 922583a76d0efc8e1cb80c20e98e36fdad24eba3cd26432bf91b350b15ab8f214412a89bd6c2559532fb0afb29533ebd147ff7a93d0256a8e31ddb785bd20cc9 WHIRLPOOL 61e5abefc85033fedb1af22333aaf3ed972deab7547670b822826d71d60e7688a5c4463d36b57b9c7ac93a8015adf1a67522b8cb2a683d4c1914a96023108b0e
+EBUILD 0verkill-0.16-r4.ebuild 1357 SHA256 7c3d1955848c9bea9b1f6ba10245c3d63575431c2244e1f1b6f2ec24b77d8932 SHA512 886bbb6cf2c2ee91e04ca4c2305a81980fe135b0c2945ebb6911e0abe6d7c304a6e8df8f311d79e11c5637af8c8b4595dbd22db4622aad28bee94c9edf0b1e06 WHIRLPOOL 2979c1ae3ccb644acfae1c9fdaffb880519cd6ceb0696d6597be70a6e3b0231d8c193bc5ea921a5744c0ddf246cd091c7db4e4bdf8b6639fb5567a4a5db8ec4e
+MISC ChangeLog 3253 SHA256 a43fba250411ce853c279fc0accdc0cea8b5328f8a42ee28d2cb34f909380bf7 SHA512 2cac7a43f6a2a7ddcc67618750b53b3c73b83112a042589d1d198b9954bd2211bcfa28da3d7ff9c545beed3dea1bcf59527928851aefdc3ecf2813de895ba2dd WHIRLPOOL f3bbf18bd555a429721a3131b582864f3fc4b81f5a73c09f24214a79c8c9aaf6d8253c0427b4a502d6e322140163c2ff4909ba56881ddf73893a6aba08f6e8b8
+MISC ChangeLog-2015 2606 SHA256 1974704c5722bdd51f6d91e620c791f110bb94838d35ceeb943873d0a3260d1e SHA512 51aa9146da9c9b4f1a2eb5167fe7000093a7db8e2e8cc12cff0a736e70e869671408d1b4fd9ae577ad1e3d654a82de0a96fff31337dc86f08e6b82c5c8f15829 WHIRLPOOL 9ecb5ee655fe2e6a96c7d123bb0f3252a330a7ee2bb4de63769f62797c795b8c6fb214d0544021b9dc3c3e3532fdc73e88f71842d82324039cc1a67e14ae5b47
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-action/0verkill/files/0verkill-0.16-CC.patch b/games-action/0verkill/files/0verkill-0.16-CC.patch
new file mode 100644
index 000000000000..568f8a4aa6f2
--- /dev/null
+++ b/games-action/0verkill/files/0verkill-0.16-CC.patch
@@ -0,0 +1,50 @@
+--- a/Makefile.in 2010-11-08 13:30:42.060916323 -0500
++++ b/Makefile.in 2010-11-08 13:31:03.199940471 -0500
+@@ -24,7 +24,7 @@
+ server.o: server.c server.h net.h data.h hash.h cfg.h time.h math.h config.h error.h
+ client.o: client.c data.h sprite.h cfg.h net.h hash.h time.h math.h console.h help.h blit.h config.h error.h
+ xclient.o: client.c data.h sprite.h cfg.h net.h hash.h time.h math.h console.h help.h config.h error.h
+- gcc -c $(CFLAGS) -DXWINDOW -o xclient.o client.c
++ $(CC) -c $(CFLAGS) -DXWINDOW -o xclient.o client.c
+ time.o: time.c time.h error.h
+ help.o: help.c blit.h error.h
+ avihelp.o: avihelp.c blit.h error.h
+@@ -38,29 +38,29 @@
+
+
+ avi: avi.o blit.o console.o kbd.o time.o avihelp.o error.o
+- gcc $(LDFLAGS) -o avi avi.o blit.o console.o kbd.o error.o time.o avihelp.o $(LIBS)
++ $(CC) $(LDFLAGS) -o avi avi.o blit.o console.o kbd.o error.o time.o avihelp.o $(LIBS)
+
+ xavi: avi.o blit.o xinterface.o xkbd.o time.o avihelp.o error.o
+- gcc $(LDFLAGS) -o xavi avi.o blit.o xinterface.o xkbd.o error.o time.o avihelp.o $(LIBS) $(XLIBS)
++ $(CC) $(LDFLAGS) -o xavi avi.o blit.o xinterface.o xkbd.o error.o time.o avihelp.o $(LIBS) $(XLIBS)
+
+ bot: bot.o data.o hash.o time.o net.o crc32.o md5.o md5hl.o error.o
+- gcc $(LDFLAGS) -o bot bot.o data.o hash.o time.o net.o error.o md5.o md5hl.o crc32.o sprite.o $(LIBS)
++ $(CC) $(LDFLAGS) -o bot bot.o data.o hash.o time.o net.o error.o md5.o md5hl.o crc32.o sprite.o $(LIBS)
+
+ 0verkill: client.o data.o sprite.o blit.o console.o hash.o time.o net.o error.o crc32.o md5.o md5hl.o kbd.o help.o
+- gcc $(LDFLAGS) -o 0verkill client.o data.o sprite.o blit.o console.o error.o hash.o time.o md5.o md5hl.o kbd.o net.o crc32.o help.o $(LIBS)
++ $(CC) $(LDFLAGS) -o 0verkill client.o data.o sprite.o blit.o console.o error.o hash.o time.o md5.o md5hl.o kbd.o net.o crc32.o help.o $(LIBS)
+ @OVERKILL_SPECIAL@
+
+ x0verkill: xclient.o data.o sprite.o blit.o xinterface.o hash.o time.o net.o crc32.o error.o xkbd.o help.o md5.o md5hl.o
+- gcc $(LDFLAGS) -o x0verkill xclient.o data.o blit.o sprite.o xinterface.o xkbd.o error.o md5.o md5hl.o hash.o time.o net.o crc32.o help.o $(LIBS) $(XLIBS)
++ $(CC) $(LDFLAGS) -o x0verkill xclient.o data.o blit.o sprite.o xinterface.o xkbd.o error.o md5.o md5hl.o hash.o time.o net.o crc32.o help.o $(LIBS) $(XLIBS)
+
+ server: server.o data.o sprite.o blit.o console.o hash.o time.o kbd.o net.o crc32.o md5.o md5hl.o error.o
+- gcc $(LDFLAGS) -o server server.o data.o sprite.o blit.o console.o hash.o time.o kbd.o md5.o md5hl.o error.o net.o crc32.o $(LIBS)
++ $(CC) $(LDFLAGS) -o server server.o data.o sprite.o blit.o console.o hash.o time.o kbd.o md5.o md5hl.o error.o net.o crc32.o $(LIBS)
+
+ editor: editor.o data.o blit.o sprite.o console.o hash.o time.o kbd.o md5.o md5hl.o error.o
+- gcc $(LDFLAGS) -o editor editor.o data.o blit.o sprite.o console.o hash.o md5.o md5hl.o error.o time.o kbd.o $(LIBS)
++ $(CC) $(LDFLAGS) -o editor editor.o data.o blit.o sprite.o console.o hash.o md5.o md5hl.o error.o time.o kbd.o $(LIBS)
+
+ xeditor: editor.o data.o blit.o sprite.o xinterface.o hash.o time.o xkbd.o md5.o md5hl.o error.o
+- gcc $(LDFLAGS) -o xeditor editor.o data.o blit.o sprite.o xinterface.o hash.o md5.o error.o md5hl.o time.o xkbd.o $(LIBS) $(XLIBS)
++ $(CC) $(LDFLAGS) -o xeditor editor.o data.o blit.o sprite.o xinterface.o hash.o md5.o error.o md5hl.o time.o xkbd.o $(LIBS) $(XLIBS)
+
+ test_server: test_server.o net.o data.o crc32.o blit.o sprite.o time.o hash.o console.o kbd.o md5.o md5hl.o error.o
+- gcc $(LDFLAGS) -o test_server test_server.o net.o data.o crc32.o blit.o sprite.o time.o hash.o md5.o md5hl.o error.o console.o kbd.o $(LIBS)
++ $(CC) $(LDFLAGS) -o test_server test_server.o net.o data.o crc32.o blit.o sprite.o time.o hash.o md5.o md5hl.o error.o console.o kbd.o $(LIBS)
diff --git a/games-action/0verkill/files/0verkill-0.16-docs.patch b/games-action/0verkill/files/0verkill-0.16-docs.patch
new file mode 100644
index 000000000000..90d049309f4d
--- /dev/null
+++ b/games-action/0verkill/files/0verkill-0.16-docs.patch
@@ -0,0 +1,32 @@
+--- 0verkill-0.16/doc/README.html
++++ 0verkill-0.16-gentoo/doc/README.html
+@@ -30,7 +30,7 @@
+ <center><h1><a name="running">RUNNING</a></h1></center>
+
+ <p><h2><a name="server">Running server</a></h2>
+-<p>First thing to start 0verkill is run the server - type <i>server</i>. Server
++<p>First thing to start 0verkill is run the server - type <i>0verkill-server</i>. Server
+ takes options <i>-p</i> and <i>-n</i>. As usual, option <i>-h</i> prints help.
+
+ <p> Option <i>-p</i> takes one argument: port number. Server needs UDP port
+@@ -84,9 +84,9 @@
+
+ <p><h2><a name="testserver">Testing Program</a></h2>
+
+-<p>There's <i>test_server</i> program in the distribution. It avoids testing
++<p>There's <i>0verkill-test_server</i> program in the distribution. It avoids testing
+ remote server if it's up and how many players there is. To use it simply type
+-<i>test_server -a &lt;server address&gt; -p &lt;port number &gt;</i>.
++<i>0verkill-test_server -a &lt;server address&gt; -p &lt;port number &gt;</i>.
+
+ <center><h1><a name="controls">GAME CONTROLS</a></h1></center>
+
+--- 0verkill-0.16/doc/adding_a_level.txt
++++ 0verkill-0.16-gentoo/doc/adding_a_level.txt
+@@ -19,5 +19,5 @@
+ 5) If you want to create some cool new graphics, run
+ "avi grx/graphics_file.avi". Then add it to the data/new_level.sp
+
+-6) When the level is done, run "server -lX", where X is again from (1). And
++6) When the level is done, run "0verkill-server -lX", where X is again from (1). And
+ play!
diff --git a/games-action/0verkill/files/0verkill-0.16-gentoo-paths.patch b/games-action/0verkill/files/0verkill-0.16-gentoo-paths.patch
new file mode 100644
index 000000000000..d48b758c9e53
--- /dev/null
+++ b/games-action/0verkill/files/0verkill-0.16-gentoo-paths.patch
@@ -0,0 +1,23 @@
+--- a/sprite.c 2007-11-15 18:26:30.000000000 -0500
++++ b/sprite.c 2007-11-15 18:26:57.000000000 -0500
+@@ -2,6 +2,7 @@
+ #include <ctype.h>
+ #include <stdlib.h>
+ #include <stdio.h>
++#include <unistd.h>
+
+ #ifndef WIN32
+ #include "config.h"
+@@ -188,6 +189,12 @@
+
+ if (!(f=fopen(filename,"rb")))
+ {
++ chdir(DATA_PATH);
++ }
++ if (!(f=fopen(filename,"rb"))) {
++ chdir(DATA_PATH "/../");
++ }
++ if (!(f=fopen(filename,"rb"))) {
+ unsigned char msg[256];
+ snprintf(msg,256,"Error opening file \"%s\"!\n",filename);
+ ERROR(msg);
diff --git a/games-action/0verkill/files/0verkill-0.16-home-overflow.patch b/games-action/0verkill/files/0verkill-0.16-home-overflow.patch
new file mode 100644
index 000000000000..63bfb5fa7a6a
--- /dev/null
+++ b/games-action/0verkill/files/0verkill-0.16-home-overflow.patch
@@ -0,0 +1,26 @@
+--- a/client.c 2001-12-16 04:26:38.000000000 -0500
++++ b/client.c 2003-11-17 15:12:52.850772508 -0500
+@@ -191,9 +191,9 @@
+ unsigned char txt[256];
+
+ #ifndef WIN32
+- sprintf(txt,"%s/%s",getenv("HOME"),CFG_FILE);
++ snprintf(txt,sizeof(txt),"%s/%s",getenv("HOME"),CFG_FILE);
+ #else
+- sprintf(txt,"./%s",CFG_FILE);
++ snprintf(txt,sizeof(txt),"./%s",CFG_FILE);
+ #endif
+ stream=fopen(txt,"r");
+ if (!stream)return;
+@@ -223,9 +223,9 @@
+ unsigned char txt[256];
+
+ #ifndef WIN32
+- sprintf(txt,"%s/%s",getenv("HOME"),CFG_FILE);
++ snprintf(txt,sizeof(txt),"%s/%s",getenv("HOME"),CFG_FILE);
+ #else
+- sprintf(txt,"./%s",CFG_FILE);
++ snprintf(txt,sizeof(txt),"./%s",CFG_FILE);
+ #endif
+ stream=fopen(txt,"w");
+ if (!stream)return;
diff --git a/games-action/0verkill/files/0verkill-0.16-ovflfix.patch b/games-action/0verkill/files/0verkill-0.16-ovflfix.patch
new file mode 100644
index 000000000000..a8a832e19619
--- /dev/null
+++ b/games-action/0verkill/files/0verkill-0.16-ovflfix.patch
@@ -0,0 +1,24 @@
+--- a/server.c 2010-11-08 11:53:18.000000000 +0100
++++ b/server.c 2010-11-08 11:53:43.000000000 +0100
+@@ -905,8 +905,8 @@
+ int len;
+
+ packet[0]=P_MESSAGE;
+- if (!name){snprintf(packet+1,256,"%s",msg);len=strlen(msg)+1+1;}
+- else {snprintf(packet+1,256,"%s> %s",name,msg);len=strlen(name)+strlen(msg)+1+3;}
++ if (!name){snprintf(packet+1,255,"%s",msg);len=strlen(msg)+1+1;}
++ else {snprintf(packet+1,255,"%s> %s",name,msg);len=strlen(name)+strlen(msg)+1+3;}
+ send_chunk_packet_to_player(packet,len,player);
+ }
+
+--- a/console.c 2010-11-08 11:53:26.000000000 +0100
++++ b/console.c 2010-11-08 11:54:44.000000000 +0100
+@@ -206,7 +206,7 @@
+ void c_setcolor_3b(unsigned char a)
+ {
+ char txt[8];
+- snprintf(txt,16,"\033[%dm",30+(a&7));
++ snprintf(txt,sizeof(txt),"\033[%dm",30+(a&7));
+ my_print(txt);
+ }
+
diff --git a/games-action/0verkill/files/0verkill-0.16-segv.patch b/games-action/0verkill/files/0verkill-0.16-segv.patch
new file mode 100644
index 000000000000..9f9656dfd9fa
--- /dev/null
+++ b/games-action/0verkill/files/0verkill-0.16-segv.patch
@@ -0,0 +1,39 @@
+diff -Naurp 0verkill-0.16.old/data.c 0verkill-0.16/data.c
+--- 0verkill-0.16.old/data.c 2007-10-30 19:49:59.000000000 +0100
++++ 0verkill-0.16/data.c 2007-10-30 20:25:08.000000000 +0100
+@@ -471,7 +471,7 @@ my_double can_go_x(my_double old_x,my_do
+ for (x=double2int(old_x)+1;x<=round_up(new_x);x++) /* go to the right */
+ {
+ if (x>AREA_X-1) return int2double(AREA_X-1);
+- for (y=yh;y<=yl;y++)
++ for (y=(yh>=0?yh:0);y<=yl;y++)
+ if ((area_a[x+y*AREA_X]&240)==TYPE_WALL)
+ return int2double(x-1);
+ }
+@@ -479,7 +479,7 @@ my_double can_go_x(my_double old_x,my_do
+ for (x=round_up(old_x)-1;x>=double2int(new_x);x--) /* go to the left */
+ {
+ if (x<0) return 0;
+- for (y=yh;y<=yl;y++)
++ for (y=(yh>=0?yh:0);y<=yl;y++)
+ if ((area_a[x+y*AREA_X]&240)==TYPE_WALL) return int2double(x+1);
+ }
+ if(flag)*flag=0;
+@@ -501,7 +501,7 @@ my_double can_go_y(my_double old_y, my_d
+ for (y=double2int(old_y)+1;y<=round_up(new_y);y++) /* go down */
+ {
+ if (y>AREA_Y-1) return int2double(AREA_Y-1);
+- for (x=xl;x<=xr;x++)
++ for (x=(xl>=0?xl:0);x<=xr;x++)
+ if ((area_a[x+y*AREA_X]&240)==TYPE_WALL||(!down_ladder&&((area_a[x+y*AREA_X]&240)==TYPE_JUMP||(area_a[x+y*AREA_X]&240)==TYPE_JUMP_FOREGROUND))) return int2double(y-1);
+ }
+ else
+@@ -510,7 +510,7 @@ my_double can_go_y(my_double old_y, my_d
+ for (y=round_up(old_y)-1;y>=double2int(new_y);y--) /* go up */
+ {
+ if (y<0) return 0;
+- for (x=xl;x<=xr;x++)
++ for (x=(xl>=0?xl:0);x<=xr;x++)
+ if ((area_a[x+y*AREA_X]&240)==TYPE_WALL) return int2double(y+1);
+ }
+ }
diff --git a/games-action/0verkill/files/0verkill-0.16-underflow-check.patch b/games-action/0verkill/files/0verkill-0.16-underflow-check.patch
new file mode 100644
index 000000000000..d0af396deafd
--- /dev/null
+++ b/games-action/0verkill/files/0verkill-0.16-underflow-check.patch
@@ -0,0 +1,17 @@
+The vulnerability is cause due to an integer underflow error in "recv_packet()"
+within the handling of a received UDP packet. This can be exploited to cause
+out-of-bounds memory access which crashes the server process via a UDP packet
+that is smaller than 12 bytes in size.
+
+http://bugs.gentoo.org/136222
+
+--- 0verkill-0.16/net.c
++++ 0verkill-0.16/net.c
+@@ -84,6 +84,7 @@
+ p=mem_alloc(max_len+12);
+ if (!p)return -1; /* not enough memory */
+ retval=recvfrom(fd,p,max_len+12,0,addr,addr_len);
++ if (retval<12)return -1; /* not enough data from network */
+ memcpy(packet,p+12,max_len);
+ crc=p[0]+(p[1]<<8)+(p[2]<<16)+(p[3]<<24);
+ s=p[4]+(p[5]<<8)+(p[6]<<16)+(p[7]<<24);
diff --git a/games-action/0verkill/metadata.xml b/games-action/0verkill/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-action/0verkill/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 type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/games-action/abuse/Manifest b/games-action/abuse/Manifest
new file mode 100644
index 000000000000..09ef55d1116f
--- /dev/null
+++ b/games-action/abuse/Manifest
@@ -0,0 +1,7 @@
+AUX abuse-0.8-gentoo.patch 891 SHA256 6a41148d6337bc19454243c126cb2169702817cc6480ddec421ef9d78efcaf49 SHA512 544858fd991c611eeac9470c833b15be8c06c709f2b6dc473ab35ec7e5e4aae885a363d17f09080afcd4022229089cf46fe5b7c0abd14fb7b84449bb46ac35d9 WHIRLPOOL 7df3b9cf88eb25f7a774a55a5e9361770401b4e9ef7a1b81bad72aa4d7bb872edd9b223a50f85952c0cfceccfc59a9d65e2c98366e06a36ae1c9cf80d9178d95
+DIST abuse-0.8.tar.gz 6053500 SHA256 0104db5fd2695c9518583783f7aaa7e5c0355e27c5a803840a05aef97f9d3488 SHA512 5c60dcf6910f9f751da26e919cd289c12349bb82eb925f9a41dc921263ece0d0f5f24c2ab2d1c718c0a5d0315453f92dfcba665fe5082eb4135ed737d2859d18 WHIRLPOOL f33cc8f2238e59e4aa6b8387987859baada02f292cbfc45c451eb1d0db41c36f2548cb2d9e527c5437957aacd3062680b6e7c32082788cedd15e78b4963f9b5e
+EBUILD abuse-0.8-r1.ebuild 810 SHA256 384337cf21bb79297ee883fae6dbc8447a38f80b8262f354e0e6459e33da339e SHA512 d973fd905ba196a9dd9d291682943d667a175dbcc51a95c41df0166868166527a50264273e34f18aac7788286cf522dec67a8e3638142fe34569a9c7265f01e3 WHIRLPOOL 1b2d3982c6844fbbc38abbab27bf402e3789ef23ec74df58d81c02c63eb3e3d0946a443226ee508c7226dd03027be56b0d37f38b91984621b213027460a51a25
+EBUILD abuse-0.8.ebuild 920 SHA256 2d0138870935ba9c1664499e25b23189c920ff28f60788bfbcacc6a524e0194f SHA512 1326a4080565a0d0825e9125ac4075510ff37d685782f42488d343eba5e809aaf711f9924cded8f63292a24cab42b5727eea8e89422f96983b4411034abdf032 WHIRLPOOL fb79b66641a2c8cc290f55168f85e6e1957d705bda801cb5aa94dccd1933912c99b65eab73f12ccd88e56f712a25406cad5f075cd61cc446c89301868d9b21b9
+MISC ChangeLog 2815 SHA256 b368a04e1e53ad053dc45b0eeef3d0ca149a259467a07bb5669bdb5929f3dd81 SHA512 b90f37d19a1852f15c65444429fc28f7a438855e49e28bf62295c4c69972af25f2aebe0f9e39960000b51d8ad1ba12be5fa915e3c9691035ef51e7985b934284 WHIRLPOOL e5135ae34b9473b1bb0d6fee9e1e92fc5b1dfe600ac785c726b053316b0bbb3cc7be10a219205b380d0574fe8548055744a14b08f4c902f5266192812634008e
+MISC ChangeLog-2015 5880 SHA256 672058838c39d9b57bc25c3762d77fadcbe273950cedc8781d9bf966ebad02f7 SHA512 d741ca077630789f54524e8f5090b2a366ffec3af4f083a5a8195452f90c33baf34017f8c4e282399ee89308d8db7e3be093c3d53d7d9a8d823fe0562bbc7397 WHIRLPOOL 8a894c78c274d422e13b0af07b701063307434119e82fc6ea04e4dfe2a8a30ed5b2b172fd293f66b504fe3d54acec19b7c53e8b03a48deab7865c69de4240995
+MISC metadata.xml 259 SHA256 92bd7c6e50355d43cbf5dd2596bce32ae5e03ce2a4fd46b80751ac74c223fcf2 SHA512 8516e2364a64325b483a394a14c52e32b029beccd05586623e5dba0b861970722c3709070c8fd4b80a23f0a84b74a475485b0f2b05f44fae6f27f163714aef68 WHIRLPOOL 6198c7f0537590368b6bffa019d8c0c8cd03cd49bec4b1917d59b14e7922c4e4f1143ff2e4239f2f7601081c98af6f81f478ffabcc893d5e1ff7851ab990dbfa
diff --git a/games-action/abuse/abuse-0.8-r1.ebuild b/games-action/abuse/abuse-0.8-r1.ebuild
new file mode 100644
index 000000000000..b43ca930f027
--- /dev/null
+++ b/games-action/abuse/abuse-0.8-r1.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools
+
+DESCRIPTION="Port of Abuse by Crack Dot Com"
+HOMEPAGE="http://abuse.zoy.org/"
+SRC_URI="http://abuse.zoy.org/raw-attachment/wiki/download/${P}.tar.gz"
+
+LICENSE="GPL-2 WTFPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=">=media-libs/libsdl-1.1.6[sound,opengl,video]
+ media-libs/sdl-mixer
+ virtual/opengl"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-gentoo.patch
+)
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_install() {
+ # Source-based install
+ default
+
+ doicon doc/${PN}.png
+ make_desktop_entry abuse Abuse
+}
+
+pkg_postinst() {
+ elog "NOTE: If you had previous version of abuse installed"
+ elog "you may need to remove ~/.abuse for the game to work correctly."
+}
diff --git a/games-action/abuse/abuse-0.8.ebuild b/games-action/abuse/abuse-0.8.ebuild
new file mode 100644
index 000000000000..32f01b02b9a9
--- /dev/null
+++ b/games-action/abuse/abuse-0.8.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit autotools eutils games
+
+DESCRIPTION="port of Abuse by Crack Dot Com"
+HOMEPAGE="http://abuse.zoy.org/"
+SRC_URI="http://abuse.zoy.org/raw-attachment/wiki/download/${P}.tar.gz"
+
+LICENSE="GPL-2 WTFPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND=">=media-libs/libsdl-1.1.6[sound,opengl,video]
+ media-libs/sdl-mixer
+ virtual/opengl"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-gentoo.patch
+ eautoreconf
+}
+
+src_configure() {
+ egamesconf \
+ --with-assetdir="${GAMES_DATADIR}/${PN}"
+}
+
+src_install() {
+ # Source-based install
+ default
+
+ doicon doc/${PN}.png
+ make_desktop_entry abuse Abuse
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ elog "NOTE: If you had previous version of abuse installed"
+ elog "you may need to remove ~/.abuse for the game to work correctly."
+}
diff --git a/games-action/abuse/files/abuse-0.8-gentoo.patch b/games-action/abuse/files/abuse-0.8-gentoo.patch
new file mode 100644
index 000000000000..c5d97834d9ec
--- /dev/null
+++ b/games-action/abuse/files/abuse-0.8-gentoo.patch
@@ -0,0 +1,24 @@
+diff -ru abuse-0.8.orig/Makefile.am abuse-0.8/Makefile.am
+--- abuse-0.8.orig/Makefile.am 2011-05-09 03:58:04.000000000 -0400
++++ abuse-0.8/Makefile.am 2011-05-16 22:22:51.642655295 -0400
+@@ -2,8 +2,6 @@
+
+ SUBDIRS = src data doc
+
+-EXTRA_DIST = COPYING.GPL COPYING.WTFPL PACKAGERS bootstrap
+-
+ dist-hook:
+ @echo ""
+ @echo " ===================================================="
+diff -ru abuse-0.8.orig/configure.ac abuse-0.8/configure.ac
+--- abuse-0.8.orig/configure.ac 2011-05-09 03:58:04.000000000 -0400
++++ abuse-0.8/configure.ac 2011-05-16 22:22:35.771824632 -0400
+@@ -90,8 +90,6 @@
+ fi
+ AM_CONDITIONAL(HAVE_NONFREE, test "${ac_cv_have_nonfree}" = "yes")
+
+-# Optimizations
+-CXXFLAGS="${CXXFLAGS} ${OPT} ${REL}"
+ # Code qui fait des warnings == code de porc == deux baffes dans ta gueule
+ CXXFLAGS="${CXXFLAGS} -Wall -Wpointer-arith -Wcast-align -Wcast-qual -Wsign-compare"
+
diff --git a/games-action/abuse/metadata.xml b/games-action/abuse/metadata.xml
new file mode 100644
index 000000000000..c040f7c7d3e0
--- /dev/null
+++ b/games-action/abuse/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 type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/games-action/accelerator3d/Manifest b/games-action/accelerator3d/Manifest
new file mode 100644
index 000000000000..00fec561b550
--- /dev/null
+++ b/games-action/accelerator3d/Manifest
@@ -0,0 +1,8 @@
+AUX accelerator3d-0.1.1-gentoo-paths.patch 3073 SHA256 bb32e3e63886acb6ed84372b1edecfa5160b823344c560ce5a1e5a1b59e3c0fa SHA512 176b46b537c65319cc611159fc6dda6b6d21858c101d491a54c28099522d9a5a06fd6d07b84b70c1d8bfd30c591a61ad3a5e3d72ce5415760f18c828c42f1e56 WHIRLPOOL cd5c148414a7c8d3e59606d2cefe913daa526e2a1bc65cfa7dc518d12649db961afa2e4191bff0230b6db32b2a83b597375277a55f08d7310480c9f9d7871149
+AUX accelerator3d-0.1.1-gllightmodel.patch 574 SHA256 16d00f15359289a009b716dc0f0e6044229c3190a7af33c456dd34d69b4235b7 SHA512 e6364093194560e1834ea52b943bb01f5b1e2990ed5b087c30a1c756a7f44857bfdff908ade0f67c1c8047cff82f2c7e4b660968cdf82a90012f00c2ccef5e7b WHIRLPOOL 2b6be2ae59087b23d9d65100966236418d112a0bffbd85dd4a99a77a41fdfc8ce06c5184e260890685273ad30a55e3fb4f4ffa5a7fe935bef31ec60aba14c27c
+DIST accelerator-0.1.1.tar.bz2 1183838 SHA256 02fac1b6fc9bb5708f53ef7bcf123f5a4a04261e2764f984d3e3c64e06a74712 SHA512 f4321beb5f5b61c10d0b275321641ec173636267ae08cf88f7a2ecaaf0799cfe6593cbc7343c8ebfa72853c59773841295b1aca9a0ac0ef510de390107aa01da WHIRLPOOL e6d705361e24cd8eebabaf4c3a8b3ba803ea8d897ff93a48f3ec2f300d0f6ed0cf57b2ef036dd8e8bf031c6ab03ff6c97ca59f013400376a91d291270b0e14f0
+EBUILD accelerator3d-0.1.1-r2.ebuild 1112 SHA256 6084e92e4524ea3faac6e2ca5e0ae3866b99a44b01c8887f31fd54142fc67fe7 SHA512 2441a0be94146cd12c01670a313c97950a91b9900542b045812e57bd2ece22cfd9aa9d7a4779359b38bc3af34f30629176275710ab52ffdae8451876f94fcdd9 WHIRLPOOL a957dec6a74087b4f9618421347c4004f2fa0fb943f5804c7ac19f76dac32231de668fc129c3db55bf1f5562a5a13428f3d6c16c570c8c705eb2a9e0494948bd
+EBUILD accelerator3d-0.1.1-r3.ebuild 1052 SHA256 5facb89a9d7738c87b88cab8b7b0ab1ff05eccd5d97949cfb94974406b4aaa7c SHA512 6ec8f437fc4f6c6ffadce44b07ee5c68aa18cae855bf3d2448c7c168fcb1355f76ba0f9da250c320f107661ada874cc9a284209a06b9dfc7a4ff3878e6623dc4 WHIRLPOOL 54b3a7ac68d4d5105efbf98d7b3bdadfe6bff5295e66405f99619105e33d8c6fe25008139818ffac2678fcb837f8308d459d4ca4605be54948364c391e44b9e9
+MISC ChangeLog 2916 SHA256 55efbb8cbf0d096b6e0e9bcefda2f86bdbe798e61025c9f4037b7ac318200ab2 SHA512 29335484a2ebdbed0cdfbea8c47a802b08ce3a1dfcc942b2343373f18c4b000ef7d08de12abed5ad3a9fbf868294872110f82a52f6794561d6bcb6803658f782 WHIRLPOOL 9c669568c77567c1dc13e48bcf4e2a58ee9c4406d5476bf39774a47f8da594c3a6c0936ba3b8868752a29177331ea5e6cda9c4752a82add02f7121a418de5740
+MISC ChangeLog-2015 2364 SHA256 906ffa1fd2834d63c2af9d2217b5bb844db7b9b04a5e292631589c151429bbcc SHA512 675ef2ef31e830a265ee880b6308952ea7b9cb506f11c8ebc5b2a61747750fb4b90d4222798cc9241acb2c439dc1433360d6eca97affd718d9dde96034a3eaab WHIRLPOOL 8edf10f5c434e554ab3ea9b5a5099efc7328ed3e8cf288fd25849a046d6ecd8987ac8ce5230835722f9bdfeab99094b151023ef9e10e8ea98db7ca4c6c377d28
+MISC metadata.xml 336 SHA256 85edd80593d37f2bade06424c8d89a364b731a84397e29649d935ffbb00186f6 SHA512 a5f747c0ca0e4a9b14d09981181248de38c92175f80c96ad368f04033c4782e0ae0ae84af6604ee8ba0d6e438d395e4101a62fc5eefcfbef0cd003e78978c51c WHIRLPOOL 6dd6538b03b67cc7093420933e61f7f7eddf32545261abda400fa318cc121b5cbe95d49f4539634dad0c81b9d296fcc5d7075f2017f46a752ec06df2628af485
diff --git a/games-action/accelerator3d/accelerator3d-0.1.1-r2.ebuild b/games-action/accelerator3d/accelerator3d-0.1.1-r2.ebuild
new file mode 100644
index 000000000000..802b543b0754
--- /dev/null
+++ b/games-action/accelerator3d/accelerator3d-0.1.1-r2.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+inherit eutils python-r1 games
+
+DESCRIPTION="Fast-paced, 3D, first-person shoot/dodge-'em-up, in the vain of Tempest or n2o"
+HOMEPAGE="http://accelerator3d.sourceforge.net/"
+SRC_URI="mirror://sourceforge/accelerator3d/accelerator-${PV}.tar.bz2"
+
+LICENSE="Artistic"
+SLOT="0"
+KEYWORDS="amd64 x86 ~x86-fbsd"
+IUSE=""
+REQUIRED_USE=${PYTHON_REQUIRED_USE}
+
+DEPEND="${PYTHON_DEPS}"
+RDEPEND="${DEPEND}
+ dev-python/pyode[${PYTHON_USEDEP}]
+ dev-python/pygame[${PYTHON_USEDEP}]
+ dev-python/pyopengl[${PYTHON_USEDEP}]"
+
+S=${WORKDIR}/${PN}
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-gentoo-paths.patch \
+ "${FILESDIR}"/${P}-gllightmodel.patch
+ sed -i \
+ -e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}/${PN}:" \
+ accelerator.py || die
+}
+
+src_install() {
+ python_scriptinto "${GAMES_BINDIR}"
+ python_foreach_impl python_newscript accelerator.py accelerator
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins gfx/* snd/*
+ dodoc CHANGELOG README
+ make_desktop_entry accelerator
+
+ prepgamesdirs
+}
diff --git a/games-action/accelerator3d/accelerator3d-0.1.1-r3.ebuild b/games-action/accelerator3d/accelerator3d-0.1.1-r3.ebuild
new file mode 100644
index 000000000000..38ae98f25014
--- /dev/null
+++ b/games-action/accelerator3d/accelerator3d-0.1.1-r3.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+inherit eutils python-r1
+
+DESCRIPTION="Fast-paced, 3D, first-person shoot/dodge-'em-up, in the vain of Tempest or n2o"
+HOMEPAGE="http://accelerator3d.sourceforge.net/"
+SRC_URI="mirror://sourceforge/accelerator3d/accelerator-${PV}.tar.bz2"
+
+LICENSE="Artistic"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~x86-fbsd"
+IUSE=""
+REQUIRED_USE=${PYTHON_REQUIRED_USE}
+
+DEPEND="${PYTHON_DEPS}"
+RDEPEND="${DEPEND}
+ dev-python/pygame[${PYTHON_USEDEP}]
+ dev-python/pyode[${PYTHON_USEDEP}]
+ dev-python/pyopengl[${PYTHON_USEDEP}]"
+
+S=${WORKDIR}/${PN}
+
+PATCHES=(
+ "${FILESDIR}"/${P}-gentoo-paths.patch
+ "${FILESDIR}"/${P}-gllightmodel.patch
+)
+
+src_prepare() {
+ default
+
+ sed -i \
+ -e "s:@GENTOO_DATADIR@:/usr/share/${PN}:" \
+ accelerator.py || die
+}
+
+src_install() {
+ python_foreach_impl python_newscript accelerator.py accelerator
+ insinto "/usr/share/${PN}"
+ doins gfx/* snd/*
+ dodoc CHANGELOG README
+ make_desktop_entry accelerator
+}
diff --git a/games-action/accelerator3d/files/accelerator3d-0.1.1-gentoo-paths.patch b/games-action/accelerator3d/files/accelerator3d-0.1.1-gentoo-paths.patch
new file mode 100644
index 000000000000..526fa678fdbc
--- /dev/null
+++ b/games-action/accelerator3d/files/accelerator3d-0.1.1-gentoo-paths.patch
@@ -0,0 +1,53 @@
+--- a/accelerator.py 2006-04-18 21:51:28.000000000 +0200
++++ b/accelerator.py 2006-04-18 22:07:28.000000000 +0200
+@@ -72,7 +72,7 @@
+ # default parameters on it (min/mag filters, wrapping).
+ def __init__(self,texfile,mipmap = False):
+ global activeTexture
+- filename = os.path.join('gfx',texfile)
++ filename = os.path.join('@GENTOO_DATADIR@',texfile)
+ image = pygame.image.load(filename)
+ data = pygame.image.tostring(image,'RGBX')
+ self.__texref = glGenTextures(1)
+@@ -599,8 +599,8 @@
+ for i in xrange(len(self.__menu[j][0])):
+ font.addString(self.__menu[j][0][i])
+ if (soundon):
+- self.__browsesound = pygame.mixer.Sound(os.path.join('snd','menu_browse.wav'))
+- self.__selectsound = pygame.mixer.Sound(os.path.join('snd','menu_select.wav'))
++ self.__browsesound = pygame.mixer.Sound(os.path.join('@GENTOO_DATADIR@','menu_browse.wav'))
++ self.__selectsound = pygame.mixer.Sound(os.path.join('@GENTOO_DATADIR@','menu_select.wav'))
+
+ def doLoop(self):
+ global elapsed, z_increment, font
+@@ -792,19 +792,19 @@
+
+ # sound!
+ if soundon:
+- self.__shootsound = pygame.mixer.Sound(os.path.join('snd','shoot.wav'))
+- self.__cluonsound = pygame.mixer.Sound(os.path.join('snd','cluon.wav'))
+- self.__bogonsound = pygame.mixer.Sound(os.path.join('snd','bogon.wav'))
+- self.__shipdeadsound = pygame.mixer.Sound(os.path.join('snd','ship_explode.wav'))
+- self.__shocksound = pygame.mixer.Sound(os.path.join('snd','electricshock.wav'))
+- self.__thudsound = pygame.mixer.Sound(os.path.join('snd','thud.wav'))
+- self.__enginesound = pygame.mixer.Sound(os.path.join('snd','engine.wav'))
+- self.__chargesound = pygame.mixer.Sound(os.path.join('snd','neon.wav'))
++ self.__shootsound = pygame.mixer.Sound(os.path.join('@GENTOO_DATADIR@','shoot.wav'))
++ self.__cluonsound = pygame.mixer.Sound(os.path.join('@GENTOO_DATADIR@','cluon.wav'))
++ self.__bogonsound = pygame.mixer.Sound(os.path.join('@GENTOO_DATADIR@','bogon.wav'))
++ self.__shipdeadsound = pygame.mixer.Sound(os.path.join('@GENTOO_DATADIR@','ship_explode.wav'))
++ self.__shocksound = pygame.mixer.Sound(os.path.join('@GENTOO_DATADIR@','electricshock.wav'))
++ self.__thudsound = pygame.mixer.Sound(os.path.join('@GENTOO_DATADIR@','thud.wav'))
++ self.__enginesound = pygame.mixer.Sound(os.path.join('@GENTOO_DATADIR@','engine.wav'))
++ self.__chargesound = pygame.mixer.Sound(os.path.join('@GENTOO_DATADIR@','neon.wav'))
+ self.__chargeplaying = False
+- self.__scrapesound = pygame.mixer.Sound(os.path.join('snd','scrape.wav'))
++ self.__scrapesound = pygame.mixer.Sound(os.path.join('@GENTOO_DATADIR@','scrape.wav'))
+ self.__scrapeplaying = False
+- self.__slamsound = pygame.mixer.Sound(os.path.join('snd','slam.wav'))
+- self.__phlogsound = pygame.mixer.Sound(os.path.join('snd','phlogiston.wav'))
++ self.__slamsound = pygame.mixer.Sound(os.path.join('@GENTOO_DATADIR@','slam.wav'))
++ self.__phlogsound = pygame.mixer.Sound(os.path.join('@GENTOO_DATADIR@','phlogiston.wav'))
+
+ # reserve channel 0 for bullet sounds
+ pygame.mixer.set_reserved(2)
diff --git a/games-action/accelerator3d/files/accelerator3d-0.1.1-gllightmodel.patch b/games-action/accelerator3d/files/accelerator3d-0.1.1-gllightmodel.patch
new file mode 100644
index 000000000000..31d0a8b5b4c5
--- /dev/null
+++ b/games-action/accelerator3d/files/accelerator3d-0.1.1-gllightmodel.patch
@@ -0,0 +1,11 @@
+--- a/accelerator.py
++++ b/accelerator.py
+@@ -274,7 +274,7 @@
+ glColorMaterial(GL_FRONT,GL_AMBIENT_AND_DIFFUSE)
+ glMaterialfv(GL_FRONT,GL_SHININESS,128)
+ glMaterialfv(GL_FRONT,GL_SPECULAR,(0.5,0.5,0.5,1))
+- glLightModel(GL_LIGHT_MODEL_COLOR_CONTROL_EXT,GL_SEPARATE_SPECULAR_COLOR_EXT) # GL_LIGHT_MODEL_COLOR_CONTROL, GL_SEPARATE_SPECULAR_COLOR
++ glLightModeli(GL_LIGHT_MODEL_COLOR_CONTROL_EXT,GL_SEPARATE_SPECULAR_COLOR_EXT) # GL_LIGHT_MODEL_COLOR_CONTROL, GL_SEPARATE_SPECULAR_COLOR
+ glEnable(GL_LINE_SMOOTH)
+ glEnable(GL_NORMALIZE)
+ #glPolygonMode(GL_FRONT,GL_LINE)
diff --git a/games-action/accelerator3d/metadata.xml b/games-action/accelerator3d/metadata.xml
new file mode 100644
index 000000000000..eaa5ae72c1f2
--- /dev/null
+++ b/games-action/accelerator3d/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">accelerator3d</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-action/armagetronad/Manifest b/games-action/armagetronad/Manifest
new file mode 100644
index 000000000000..c27b8dd411e4
--- /dev/null
+++ b/games-action/armagetronad/Manifest
@@ -0,0 +1,6 @@
+AUX armagetronad-0.2.8.3.3-gcc6.patch 6419 SHA256 37d1632aafc10405607c28e35be826d3680a2d5f02844f22c9fb4a2fa1cc11f9 SHA512 ff56e2388b56736fddd1a4fba94914a3d327c11b25675a45f930b1ceab215cd197563194aa6485571ba5ee7c4ed6e2644da9f81f70cc686201a8efbed9149a44 WHIRLPOOL 2121a59a1199924cdd24a705b0dbd64202425b912fff59252e9b73dfe9faae5a3f59cdb0e206b776e280de426848d553bc7f70dbda0debc88ff33dd79bbb8954
+DIST armagetronad-0.2.8.3.3.src.tar.bz2 1857868 SHA256 ddf2d781b134392e9667f17e0319ae2117c20e6eb7738e3cacd701f3608ea5e8 SHA512 05dd7db10efdac0e681133d07384b0e3c2edea328433f1d906e36b5f70960bf502df8d496967981b6bd67e1a119af9a5bbd71b0c824f790921deb3165165dc3f WHIRLPOOL 731b3e8d8647948e016e4dbfa3733f666838d0b4e47f997e149b947741d3b566d9aa1492dc570064e0005c92b0c04f4c74ad4a0278ff7018b028d9c431af135d
+EBUILD armagetronad-0.2.8.3.3-r1.ebuild 1483 SHA256 2a9021e887b3cd1cc234b5c3b1932913af248d324dc2b983eee292fe85ea2655 SHA512 5899f409c1d761cece818ee314d7af36db9e7221f508076abb13c738138e2e003cd2b443ef6ffbb250eff03847bfe9907f2faa0a5d774661cef7505314952815 WHIRLPOOL 3affec05c5323766d4e521594c1e0538a1efb394916b4c66c6c1b76c1629805bf7405b56e0182f0613e35aa287cc68298292b19116b310d283ddf44cb8ac2314
+MISC ChangeLog 3575 SHA256 6ec87dce0132d641ce6b1dd9a6f69a0c24e5638cfdf283a62934c9daf630d675 SHA512 782b3120aaefc04e59069957624959469dbaec1710341c617a4e61e85d4d8376caf79374cadf1c15ffb96cad5db239caccef65fb8c0369e7509099ed12230eef WHIRLPOOL 69f886d01f7d28f6b15d0fa5ba48dfad0044d8a731996eaf60474c1da2552c1707b34a66af93d378317c5833a06c07b86b15220aa6cc2bb876feb21be6c35af8
+MISC ChangeLog-2015 892 SHA256 d6c76f15935c6095c7a3dd2aa7f71e93ba667e749f12e7e7afbfaf4cd4ac3a57 SHA512 ffb2f246907f010ee1ed760b4aea0e667ca2dd8e3a0d1e403299ea7538260ade921955d48158a14af87a4942e5131de1a8a600887c8114d8d61a8d4a9ffca950 WHIRLPOOL 58b8922d097a45ffa414ede2ad6d629789dc18696d1b60724e7a4e64b4cccda25bec75c8dd4a39748fec08670f1e4bf92213cbe1b4cea60ecef324906c1b9ea1
+MISC metadata.xml 333 SHA256 f4208adff17bdb0920d2c0cdcc1c3d004344d67364e979296867c74e07a8020f SHA512 ead9b44190ac80607b29eb37c771f7ce041cdde47e1e8203201d0e616ea78377312101dbf1ed6a508c64a884980506c96cf77dbd8a4d05f0a69ecd807fc40ead WHIRLPOOL 028e5ea73e2646689cf0661fafa341a925ea5a9d93dab619a0e3854c042adda3ef848a041645ad111b5ef8060528b9b06475bc0c1aa79d567fd387ecbe2c8c63
diff --git a/games-action/armagetronad/armagetronad-0.2.8.3.3-r1.ebuild b/games-action/armagetronad/armagetronad-0.2.8.3.3-r1.ebuild
new file mode 100644
index 000000000000..ae1515f218f4
--- /dev/null
+++ b/games-action/armagetronad/armagetronad-0.2.8.3.3-r1.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils gnome2-utils
+
+DESCRIPTION="Fast-paced 3D lightcycle game based on Tron"
+HOMEPAGE="http://armagetronad.org/"
+SRC_URI="https://launchpad.net/armagetronad/${PV:0:5}/${PV:0:7}.x/+download/armagetronad-${PV}.src.tar.bz2"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="dedicated sound"
+
+RDEPEND="
+ dev-libs/libxml2
+ !dedicated? (
+ media-libs/libpng:0
+ media-libs/libsdl[X,opengl,video]
+ media-libs/sdl-image[jpeg,png]
+ virtual/glu
+ virtual/opengl
+ sound? (
+ media-libs/libsdl[sound]
+ media-libs/sdl-mixer
+ )
+ )"
+DEPEND=${RDEPEND}
+
+PATCHES=( "${FILESDIR}"/${P}-gcc6.patch )
+
+src_prepare() {
+ default
+ sed -i -e 's#aa_docdir=.*$#aa_docdir=${docdir}#' configure || die
+}
+
+src_configure() {
+ # --enable-games just messes up paths
+ econf \
+ --docdir=/usr/share/doc/${PF} \
+ $(use_enable dedicated) \
+ $(use_enable sound music) \
+ --disable-sysinstall \
+ --disable-useradd \
+ --disable-uninstall \
+ --disable-games
+}
+
+src_install() {
+ # FIXME: is the -j1 needed? https://bugs.gentoo.org/588104
+ emake -j1 DESTDIR="${D}" install
+ einstalldocs
+
+ # misplaced desktop-file/icons
+ rm -rf "${ED%/}${GAMES_DATADIR}"/armagetronad/desktop
+ doicon -s 48 desktop/icons/large/armagetronad.png
+ make_desktop_entry ${PN}
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/games-action/armagetronad/files/armagetronad-0.2.8.3.3-gcc6.patch b/games-action/armagetronad/files/armagetronad-0.2.8.3.3-gcc6.patch
new file mode 100644
index 000000000000..0cd6e5bc1d67
--- /dev/null
+++ b/games-action/armagetronad/files/armagetronad-0.2.8.3.3-gcc6.patch
@@ -0,0 +1,222 @@
+Bug: https://bugs.gentoo.org/show_bug.cgi?id=617768
+Commit: https://sourceforge.net/p/armagetronad/code/10845/
+
+--- a/src/engine/eNetGameObject.cpp
++++ b/src/engine/eNetGameObject.cpp
+@@ -85,7 +85,7 @@
+ eNetGameObject::eNetGameObject(eGrid *grid, const eCoord &pos,const eCoord &dir,
+ ePlayerNetID* p,bool autodelete)
+ :eGameObject(grid, pos,dir,NULL,autodelete),
+-nNetObject(p->Owner()),player(p){
++ nNetObject(Owner(p)),player(p){
+ lastClientsideAction=0;
+ if (sn_GetNetState()!=nCLIENT)
+ RequestSync();
+@@ -205,7 +205,7 @@
+
+ void eNetGameObject::SetPlayer(ePlayerNetID* a_player)
+ {
+- tASSERT( !a_player || Owner() == player->Owner() );
++ tASSERT( !a_player || Owner() == Owner(player) );
+ player = a_player;
+ if ( laggometerSmooth == 0 && sn_GetNetState() != nCLIENT )
+ laggometerSmooth = laggometer = se_GetPing( player );
+--- a/src/engine/ePlayer.cpp
++++ b/src/engine/ePlayer.cpp
+@@ -56,6 +56,7 @@
+ #include "nConfig.h"
+ #include "nNetwork.h"
+ #include <time.h>
++#include <climits>
+
+ int se_lastSaidMaxEntries = 8;
+
+@@ -1689,9 +1690,9 @@
+ // foo (Red Team) --> Blue Team: some message here
+ eTeam *senderTeam = sender->CurrentTeam();
+ console << tColoredString::ColorString(1,1,.5) << " (";
+- console << *senderTeam;
++ console << senderTeam;
+ console << tColoredString::ColorString(1,1,.5) << ") --> ";
+- console << *team;
++ console << team;
+ }
+
+ console << tColoredString::ColorString(1,1,.5) << ": ";
+@@ -1923,7 +1924,7 @@
+ else {
+ eTeam *senderTeam = sender->CurrentTeam();
+ say << tColoredString::ColorString(1,1,.5) << " (";
+- say << *team;
++ say << team;
+ say << tColoredString::ColorString(1,1,.5) << " ) --> ";
+ say << senderTeam;
+ }
+@@ -3941,7 +3942,7 @@
+ sg_ClampPingCharity( ::pingCharity );
+ }
+
+-static int IMPOSSIBLY_LOW_SCORE=(-1 << 31);
++static int IMPOSSIBLY_LOW_SCORE=INT_MIN;
+
+ static nSpamProtectionSettings se_chatSpamSettings( 1.0f, "SPAM_PROTECTION_CHAT", tOutput("$spam_protection") );
+
+--- a/src/engine/eTeam.cpp
++++ b/src/engine/eTeam.cpp
+@@ -31,20 +31,21 @@
+ #include "nConfig.h"
+
+ #include <set>
++#include <climits>
+
+-tString & operator << ( tString &s, const eTeam & team)
++tString & operator << ( tString &s, const eTeam * team)
+ {
+- if ( !(&team) )
++ if ( !team )
+ return s << tOutput("$player_spectator_message");
+ else
+- return s << team.GetColoredName();
++ return s << team->GetColoredName();
+ }
+-std::ostream & operator << ( std::ostream &s, const eTeam & team)
++std::ostream & operator << ( std::ostream &s, const eTeam * team)
+ {
+- if ( !(&team) )
++ if ( !team )
+ return s << tOutput("$player_spectator_message");
+ else
+- return s << team.GetColoredName();
++ return s << team->GetColoredName();
+ }
+
+ #define TEAMCOLORS 8
+@@ -75,7 +76,7 @@
+ // static tList<eTeam> se_ColoredTeams;
+ static eTeam * se_ColoredTeams[TEAMCOLORS]={0,0,0,0,0,0,0,0};
+
+-static int IMPOSSIBLY_LOW_SCORE=(-1 << 31);
++static int IMPOSSIBLY_LOW_SCORE=INT_MIN;
+
+ // class that creates config items for one team
+ // TEAM_(NAME|RED|GREEN|BLUE)_X
+--- a/src/engine/eTeam.h
++++ b/src/engine/eTeam.h
+@@ -32,8 +32,8 @@
+ #include "nNetObject.h"
+ #include "tList.h"
+
+-tString & operator << ( tString&, const eTeam&);
+-std::ostream & operator << ( std::ostream&, const eTeam&);
++tString & operator << ( tString&, const eTeam*);
++std::ostream & operator << ( std::ostream&, const eTeam*);
+
+ template<class T> class nConfItem;
+
+--- a/src/network/nNetObject.h
++++ b/src/network/nNetObject.h
+@@ -128,7 +128,16 @@
+
+ virtual void Dump( tConsole& con ); // dumps object stats
+
++ static unsigned short ID(nNetObject const *pThis)
++ {
++ if (pThis)
++ return pThis->id;
++ else
++ return 0;
++ }
++
+ unsigned short ID() const{
++ tASSERT(this);
+ if (this)
+ return id;
+ else
+@@ -135,7 +144,16 @@
+ return 0;
+ }
+
++ static unsigned short Owner(nNetObject const *pThis)
++ {
++ if (pThis)
++ return pThis->owner;
++ else
++ return ::sn_myNetID;
++ }
++
+ unsigned short Owner() const{
++ tASSERT(this);
+ if (this)
+ return owner;
+ else
+--- a/src/tools/tLocale.cpp
++++ b/src/tools/tLocale.cpp
+@@ -731,6 +731,13 @@
+
+ // and a special implementation for the locales and strings:
+ tOutput& operator << (tOutput &o, const char *locale){
++ return o.AddString(locale);
++}
++
++tOutput & tOutput::AddString(char const * locale)
++{
++ tOutput & o = *this;
++
+ int len = strlen(locale);
+ if (len == 0)
+ return o;
+--- a/src/tools/tLocale.h
++++ b/src/tools/tLocale.h
+@@ -81,7 +81,7 @@
+
+ tOutputItemBase *anchor;
+
+- tOutput& operator << (const tOutput &o);
++ // tOutput& operator << (const tOutput &o);
+ public:
+ tOutput();
+ ~tOutput();
+@@ -91,6 +91,7 @@
+ void AddLiteral(const char *); // adds a language independent string
+ void AddLocale(const char *); // adds a language dependant string
+ void AddSpace(); // adds a simple space
++ tOutput & AddString(char const * pString); // checks the string, delegates to correct Add...()-Function
+
+ // set a template parameter at this position of the output string
+ tOutput & SetTemplateParameter(int num, const char *parameter);
+@@ -113,7 +114,7 @@
+
+ SetTemplateParameter(1, template1);
+
+- *this << identifier;
++ AddString(identifier);
+ }
+
+ template< class T1, class T2 >
+@@ -125,7 +126,7 @@
+ SetTemplateParameter(1, template1);
+ SetTemplateParameter(2, template2);
+
+- *this << identifier;
++ AddString(identifier);
+ }
+
+ template< class T1, class T2, class T3 >
+@@ -138,7 +139,7 @@
+ SetTemplateParameter(2, template2);
+ SetTemplateParameter(3, template3);
+
+- *this << identifier;
++ AddString(identifier);
+ }
+
+ template< class T1, class T2, class T3, class T4 >
+@@ -152,7 +153,7 @@
+ SetTemplateParameter(3, template3);
+ SetTemplateParameter(4, template4);
+
+- *this << identifier;
++ AddString(identifier);
+ }
+
+ tOutput(const tOutput &o); // copy constructor
diff --git a/games-action/armagetronad/metadata.xml b/games-action/armagetronad/metadata.xml
new file mode 100644
index 000000000000..0a249e335798
--- /dev/null
+++ b/games-action/armagetronad/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="launchpad">armagetronad</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-action/atanks/Manifest b/games-action/atanks/Manifest
new file mode 100644
index 000000000000..54607930f5ea
--- /dev/null
+++ b/games-action/atanks/Manifest
@@ -0,0 +1,6 @@
+DIST atanks-6.4.tar.gz 6059315 SHA256 ea5b560fb15872f7329a1f70d749c93cf553eeaa02480108e95c1664b85f049f SHA512 e9410e5bf0e8ec0281718ad8ddca74b67000db96b09b6af8aa906bbf2cd815f07ff550087ecdee2e4c5bfabc42941f184173f35e50538e57bb008372a599e1e6 WHIRLPOOL 25b59cf4592f526cdfbac4cc26b386571e658c8d0493a49790ffbfffe15d16b2796bf7a6684cdb9fad6de9c46d9ed544991469c3cf88a4ec24e4ba2d27c7db3e
+EBUILD atanks-6.4-r1.ebuild 823 SHA256 198d1c9e63dae77c37fe0848eaccf6291b825a21cfd3b3764f0675269c77a9e8 SHA512 bc63e49f283c261abbd395c1db469ee1fd317daad3918ab03fd313980a5e8477b03cf2849cb71c7f8d4fa600fb2ffebda50467fb6aa106296ac0f71815176965 WHIRLPOOL a30c1d3878f436e3fb1ca90ae7d8466189cc1dd1567cd87ffadcd40784b0f5c992516480201936f4460bb56c15c5d3fb0fbc35e6c41a27d25795ad4439a29eca
+EBUILD atanks-6.4.ebuild 929 SHA256 7a4412701c4dc4b3f1d654d3141debed38f37d5d7157077b46120de22193dd9a SHA512 f370143ea00ad839d9c45ffd53055e424df1fd65d482662da94f38dafe53f5a1319e217a48e695a4f04f65497c818abf64ddaadc32bb1a7a262cf88d67f48dbe WHIRLPOOL 33786588d0b8d670a5f2a887c509b895943727eada41e729a36f53523f2024a965b7741806344015d1e3af78c998b2af4f37667ea73909b9101936e6c23be683
+MISC ChangeLog 3629 SHA256 17cbacf7c2743d010147ff98e977457a2447b741d67345a954ceeaeb10245920 SHA512 875d1002c57ba5b6f2c49969a8f3847c0ecbf6b35936483c7ea20fe084a379c30995e23c90cabf66fdc93bb164cdbafd4ffc20dd3499aa031b7b3392bcae3e4b WHIRLPOOL 0a4ced9853ff26da442be247829237e7c8b8232e1ced4f2ebca91f961616dcd3e2e6068f3e777bf308853143ecee0c94ec7b5c79fa3763479b5bb6f4f28ec4ce
+MISC ChangeLog-2015 12507 SHA256 70d3a059429b5533dd3c1eea274a1628ccf0674967c8673c679fe3cb9493e057 SHA512 35638f00cc8dea853c00173ffa03132dde6d9f68910535ca42379923f35c19b7f5bd16d082929987a212e0e20249763f2f33d78935b3e3bc86f63b09011f9474 WHIRLPOOL acf3ad3fca668b7fde848e29ca2b526964a906237884cac28961fb21c1e3e33761c8806cf7e5c3484e29817eedaaffbd3c367ebd9573ff4f3e25b8239d727609
+MISC metadata.xml 329 SHA256 8029cb9e6ca02cf957a4ee5e12934c1a64fbc43d69a5ad91e698761e3c64f387 SHA512 1dc2914fc7dfe5c7f87ac565b6183b50d281fdf768e05cf211309699a264fde8a3e434ed07049b984e6f116256fec2124ed458ccfc70374ff35ff3189ec57917 WHIRLPOOL e459c4118514a09296003c000111e5ed69398413e9941c4bbdb2f38f1d53cf60ec6253ca0f7fe4a576fad6b8f095cdff0c8830eee5c845959e7a6c43521cd72e
diff --git a/games-action/atanks/atanks-6.4-r1.ebuild b/games-action/atanks/atanks-6.4-r1.ebuild
new file mode 100644
index 000000000000..d17df9c83dc6
--- /dev/null
+++ b/games-action/atanks/atanks-6.4-r1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils gnome2-utils
+
+DESCRIPTION="Worms and Scorched Earth-like game"
+HOMEPAGE="http://atanks.sourceforge.net/"
+SRC_URI="mirror://sourceforge/atanks/${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="media-libs/allegro:0[X]"
+RDEPEND=${DEPEND}
+
+src_compile() {
+ emake \
+ INSTALLDIR="/usr/share/${PN}"
+}
+
+src_install() {
+ dobin ${PN}
+ insinto /usr/share/${PN}
+ doins -r button misc missile sound stock tank tankgun text title unicode.dat *.txt
+ doicon -s 48 ${PN}.png
+ make_desktop_entry atanks "Atomic Tanks"
+ dodoc Changelog README TODO
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/games-action/atanks/atanks-6.4.ebuild b/games-action/atanks/atanks-6.4.ebuild
new file mode 100644
index 000000000000..11b365b2d6b0
--- /dev/null
+++ b/games-action/atanks/atanks-6.4.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils gnome2-utils games
+
+DESCRIPTION="Worms and Scorched Earth-like game"
+HOMEPAGE="http://atanks.sourceforge.net/"
+SRC_URI="mirror://sourceforge/atanks/${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="media-libs/allegro:0[X]"
+RDEPEND=${DEPEND}
+
+src_compile() {
+ emake \
+ BINDIR="${GAMES_BINDIR}" \
+ INSTALLDIR="${GAMES_DATADIR}/${PN}"
+}
+
+src_install() {
+ dogamesbin ${PN}
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r button misc missile sound stock tank tankgun text title unicode.dat *.txt
+ doicon -s 48 ${PN}.png
+ make_desktop_entry atanks "Atomic Tanks"
+ dodoc Changelog README TODO
+ 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-action/atanks/metadata.xml b/games-action/atanks/metadata.xml
new file mode 100644
index 000000000000..f4e068857c3f
--- /dev/null
+++ b/games-action/atanks/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">atanks</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-action/barrage/Manifest b/games-action/barrage/Manifest
new file mode 100644
index 000000000000..5976a3019a6e
--- /dev/null
+++ b/games-action/barrage/Manifest
@@ -0,0 +1,6 @@
+DIST barrage-1.0.4.tar.gz 484641 SHA256 ad74e049dfded3bca28b8dc1c5870408cfad9e024b35cc5b501ba90486d9af25 SHA512 c866c0b98541c0c878ff015d99a2ae62e123c8095e94f64ef5aed26d68b734432110181c11a5b429d4feb808b2b276ac94295ff2b23ddfc64a8790d04a89a966 WHIRLPOOL d54022bd246ee22058e46d3d7add739d41dacc78be13030159c2463429057a19a149c687ccb25cd1385704f5f291b6cd697a900d3a8851a18a833f911ea9e188
+EBUILD barrage-1.0.4-r1.ebuild 582 SHA256 8696efd0e47e463c96a63bd6e81587f983b4adf817740e06e7deeaa5d8f22bce SHA512 cc3cd5d63833d5e1772c176f2a2a3e7a1df580f519cd84381f060af6ca507a332a4ab8c05790f083ffa1324298e8315de3a1676cffc079c039fd40890b554f29 WHIRLPOOL b95c31f34d6ef0e4442728d8bbc0879ac916bdb021c702998a7f2b70b5d6a6b94c0187c7bb42b8f512297d8e75eaefe2cda74ada013f866d16d78d4b27db6021
+EBUILD barrage-1.0.4.ebuild 668 SHA256 60549911c14908025902d075406254b044b746918af4ad5506a774ce3007b7f8 SHA512 2bd1e47c9f7fdae3ebf02f1b2c54f951913866f954985830b07730a90e8bc6fd062eed0d51b6a5ae8ee5283a2c75932160b356760f48738ae0694b8df277dd23 WHIRLPOOL 0bd597bd8af611bf1f67abfb5d1447611c5073916d4b174c38aafaca28161451138b35d3c8391c5bd8829fc5aceaf1bd91ecf72229fa367c8e1f73b15b8f8ca4
+MISC ChangeLog 2808 SHA256 0ebff7e20092bb29ea36f8bf98e707a65ac52b534e8cfed6f1d9f03f799bee8d SHA512 2717c73626921b0c30a6d88c6eca6e93119130f6c7adeb81bb2518bf8c1aaac72d6aaf64a6aa68ca4372710213bb120c463da600d62ade18b99c14cdde502479 WHIRLPOOL 1a0185826f33eb9c85a778a4e5c6474e97861484ed933e57d084eb985cbbff594f6985e3f14bb559673e940a7c2618ccb403797b9c57ca80db55566c6738f59c
+MISC ChangeLog-2015 3186 SHA256 f6a9f296ae92881b6d958c710e8d33c98aa6c9ff26578500e4a8f3bc0bb07911 SHA512 8a7b04bfc5acbbd84f5fa459bb7d40c74c6b74a6408b29b9fd5292acd98eee2f7480f6c2ada20f3d7a141300baf794f48758fc609bee0c33e26d62386cba345f WHIRLPOOL 1620e4e6bfc4a2641dacf17853adb0b2a27f5c91150fad0907c508b2d651fd563c9522f4da8d314ac37e40e897a201c12168842f4dde482fd1a23db30e893606
+MISC metadata.xml 329 SHA256 677366ad46dc60999490d23fa85e7d6f2e04596caac98deb8a04d1dc224c7932 SHA512 2439299362958450ac88f39ba8332cb84d42694d471f79cf8a6b9d38ecc96fa629b91530dee7c50aa23fab5e5a0155cb92cb3a8131a1b69e9375f114da86b463 WHIRLPOOL 65e6d198fb2ebd6dfc0038bc37d6f11c5ae44e60f5db9b641d40bf2248abf21e7e6e7bacc2109a42c16be0e092ba37708baa53b8c166efff2fff4db8e878f105
diff --git a/games-action/barrage/barrage-1.0.4-r1.ebuild b/games-action/barrage/barrage-1.0.4-r1.ebuild
new file mode 100644
index 000000000000..16aeec97af84
--- /dev/null
+++ b/games-action/barrage/barrage-1.0.4-r1.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils
+
+DESCRIPTION="A violent point-and-click shooting game"
+HOMEPAGE="http://lgames.sourceforge.net/Barrage/"
+SRC_URI="mirror://sourceforge/lgames/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=">=media-libs/libsdl-1.2[sound,video]
+ >=media-libs/sdl-mixer-1.2.4"
+RDEPEND="${DEPEND}"
+
+src_install() {
+ default
+ newicon barrage48.png ${PN}.png
+ make_desktop_entry ${PN} Barrage
+ rm "${D}"/usr/share/applications/${PN}.desktop
+}
diff --git a/games-action/barrage/barrage-1.0.4.ebuild b/games-action/barrage/barrage-1.0.4.ebuild
new file mode 100644
index 000000000000..0360dc6f83cb
--- /dev/null
+++ b/games-action/barrage/barrage-1.0.4.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="A violent point-and-click shooting game"
+HOMEPAGE="http://lgames.sourceforge.net/Barrage/"
+SRC_URI="mirror://sourceforge/lgames/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND=">=media-libs/libsdl-1.2[sound,video]
+ >=media-libs/sdl-mixer-1.2.4"
+RDEPEND="${DEPEND}"
+
+src_configure() {
+ egamesconf --datadir="${GAMES_DATADIR_BASE}"
+}
+
+src_install() {
+ default
+ newicon barrage48.png ${PN}.png
+ make_desktop_entry ${PN} Barrage
+ rm "${D}"/usr/share/applications/${PN}.desktop
+ prepgamesdirs
+}
diff --git a/games-action/barrage/metadata.xml b/games-action/barrage/metadata.xml
new file mode 100644
index 000000000000..2cbba7c09d17
--- /dev/null
+++ b/games-action/barrage/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">lgames</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-action/battalion/Manifest b/games-action/battalion/Manifest
new file mode 100644
index 000000000000..ec4b60c19b3b
--- /dev/null
+++ b/games-action/battalion/Manifest
@@ -0,0 +1,6 @@
+AUX battalion-1.4b-warning.patch 490 SHA256 78c09c947112102773f27a7068f2bdc535a77ba72c855a0246890f0b1ff76efe SHA512 ba216b192f454b07b14891dbc6c412b301257a91546b77c1e2053324248243422bfac43794849f44068afb65919958f466416d39826248b28dc71a644a1ee660 WHIRLPOOL 962781748a7abbf780b771c91c4a6ca0e65294502ff4872f9b0bc463cf785f7e3d016861ad2bdfe6ed0baab8dc6803491b04471fd0a2898c72d8b58a752844d8
+DIST battalion1.4b.tar.bz2 942342 SHA256 983db152b44b33396ab242946b51d33c405e0bef8649e2cc9e38d6229d9735f7 SHA512 c3c615772012c63a709aaeaf4f23246760bf577b82eeec7cf5b2a479c6240fe4a2f839aca50540299ed4bee9b297f61fb8b7e1f5af74ea357f0d7e749d86f84b WHIRLPOOL 4816460b6e07046934852ca7c079f13eca05827f34b19c13b00f98ced0caa57e848b9d1f3badaa31a82a0dcfba61a9591d70f815cb83596a6901728fd45088c5
+EBUILD battalion-1.4b.ebuild 1631 SHA256 579435aa097eb8f61bfc16abd70b91e4de14fdc862fb61730f403c1ab248cc73 SHA512 1403a36f8503cc05cad4aee04e46ac627235cf51a63fe7eae53c8c34f2d152f5148b19b6e747a4a7e3055cc8d66ea0990e06e2701aa2d43dedc8d7d3c0879c03 WHIRLPOOL 5751c492efc0231d03f2654424b1f625f053441e203fb395ef4f1709c529822aa6fb8526116cf6a7a8877ff7788ba7001147b49d28105980a4e89f9faa7b6ac1
+MISC ChangeLog 2472 SHA256 a9f625f6e1b9488dfacbbfdd7cf40c7a0bf2a3cf9acf3bd77f549c20adbae4f2 SHA512 a50f34ec2420d9a2b4823fa87db813e4a0ba37c289816457b2ca17033f7a7499f4c38e9f0272875c5fbc03d83fa2ee1e712156137ac088b594eb545a4f59f65b WHIRLPOOL 5f09cfe73e0e2c7328a2d0ff7a9e21ff5630d1ea29e9d6c1060d6cbdc11090844a79c9ba0469e74cf1936ae7235d06027ea79a3cf377664fe0faca1b3e81af4b
+MISC ChangeLog-2015 1819 SHA256 dbcca58416adec02f5f7df1c20a5bed108eba4931e402c80aeb71260c5eb00bb SHA512 ee78de1a2d4a934d37a64d62484ecf1d9691799b732a6f7ffb190724a7fa63b6b925be9246484c90e5977256275a45d564f76e039fff2e27d591577010a53b08 WHIRLPOOL adfc2dbc9fe958b753294cdfc2409d52267f7cc05bbb889186ebd543c21f9dd114476c32ca8f8f03a35c8ae875ecd01c08cb688dea94385bfb77c45c8405947e
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-action/battalion/battalion-1.4b.ebuild b/games-action/battalion/battalion-1.4b.ebuild
new file mode 100644
index 000000000000..cf70c1a02bf2
--- /dev/null
+++ b/games-action/battalion/battalion-1.4b.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="Be a rampaging monster and destroy the city"
+HOMEPAGE="http://evlweb.eecs.uic.edu/aej/AndyBattalion.html"
+SRC_URI="http://evlweb.eecs.uic.edu/aej/BATTALION/${PN}${PV}.tar.bz2"
+
+LICENSE="battalion HPND"
+SLOT="0"
+KEYWORDS="x86"
+IUSE=""
+
+DEPEND="virtual/opengl
+ virtual/glu
+ x11-libs/libX11"
+RDEPEND=${DEPEND}
+
+S=${WORKDIR}/${PN}${PV}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-warning.patch
+ # Modify data paths
+ sed -i \
+ -e "s:SOUNDS/:${GAMES_DATADIR}/${PN}/SOUNDS/:" \
+ -e "s:MUSIC/:${GAMES_DATADIR}/${PN}/MUSIC/:" \
+ audio.c || die
+ sed -i \
+ -e "s:DATA/:${GAMES_DATADIR}/${PN}/DATA/:" \
+ -e "s:/usr/tmp:${GAMES_STATEDIR}:" \
+ battalion.c || die
+ sed -i \
+ -e "s:TEXTURES/:${GAMES_DATADIR}/${PN}/TEXTURES/:" \
+ graphics.c || die
+
+ # Modify Makefile and add CFLAGS
+ sed -i \
+ -e "s:-O2:${CFLAGS}:" \
+ -e "/^CC/d" \
+ Makefile || die
+ # Only .raw sound files are used on Linux. The .au files are not needed.
+ rm -f {SOUNDS,MUSIC}/*.au
+}
+
+src_compile() {
+ emake LIBFLAGS="${LDFLAGS}"
+}
+
+src_install() {
+ dogamesbin battalion
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r DATA MUSIC SOUNDS TEXTURES
+ dodoc README
+
+ dodir "${GAMES_STATEDIR}"
+ touch "${D}${GAMES_STATEDIR}"/battalion_hiscore
+ fperms 660 "${GAMES_STATEDIR}"/battalion_hiscore
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ elog "Sound and music are not enabled by default."
+ elog "Use the S and M keys to enable them in-game, or start the game with"
+ elog "the -s and -m switches: battalion -s -m"
+}
diff --git a/games-action/battalion/files/battalion-1.4b-warning.patch b/games-action/battalion/files/battalion-1.4b-warning.patch
new file mode 100644
index 000000000000..91fd8ee51d3b
--- /dev/null
+++ b/games-action/battalion/files/battalion-1.4b-warning.patch
@@ -0,0 +1,12 @@
+diff -ru battalion1.4b.orig/net.c battalion1.4b/net.c
+--- battalion1.4b.orig/net.c 2002-05-06 09:57:01.000000000 -0400
++++ battalion1.4b/net.c 2015-03-30 18:29:23.885306334 -0400
+@@ -378,7 +378,7 @@
+
+ /* nother copy of this elsewhere */
+
+- sprintf(mesg, "%s %d %3.1f %3.1f %3.1f %3.1f %0.3f %d %d #", MESG_NEW_TANK,
++ sprintf(mesg, "%s %d %3.1f %3.1f %3.1f %3.1f %0.3f %d #", MESG_NEW_TANK,
+ tempTank->number,
+ tempTank->x-globalxshift,
+ tempTank->z-globalzshift,
diff --git a/games-action/battalion/metadata.xml b/games-action/battalion/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-action/battalion/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 type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/games-action/beathazardultra/Manifest b/games-action/beathazardultra/Manifest
new file mode 100644
index 000000000000..ba85f1957433
--- /dev/null
+++ b/games-action/beathazardultra/Manifest
@@ -0,0 +1,6 @@
+DIST beathazard-installer_03-08-13 183569201 SHA256 ba5d67d820b3367b7080cd73f433d13964285904a55d5be6578bbe9966963faa SHA512 273f550034473d43ac4ceb41018b540f6518393606249de490642a4e6f0dfb5f0b860d3a633db0f90f3b9fce1dc156cf4bd80d383f7e6eae91a5e7bd9e9427d4 WHIRLPOOL 91032365fce84eff65361397935f9e36eae8740f5ae947c976e2e30e76396e55423d8d959ce4476688d8c77d92b57c951c581023e675b1c59f8c286172ff5ec3
+EBUILD beathazardultra-20130308-r1.ebuild 1758 SHA256 9d27d97adb4197d953bd720cf3a37f022fb28debc77b3a449c097fdbf057f428 SHA512 57f62a470d2b2e8c17ad71ee737db2dd2ce594d7e590f7459527360c24424a7eb66cd3db5169b7682fdd7894686d303cf242df38788a222c67c2b1eaf9aaf592 WHIRLPOOL 573b0ce0c20a9576d22a8c97c16c0290e73a43903daa6c623407edfb6006c8f34c766bc860b5f2fa48a767cb76d8e2b11f918464fba8b4eb3a2d12237101e6e2
+EBUILD beathazardultra-20130308.ebuild 1840 SHA256 7cd66863996f261bcc03f1b66fdcb8d5df339fa30751255163d7e249c470df81 SHA512 f8af90386e6fbb645debe801c811f8d98dc9b0c90708d1cbec56f90ca0dcf8ce20f1cb58b8a4670972a85863957e3c1f127c2a64f9639ab20d21d2f7e219b7e5 WHIRLPOOL ba8558a241b013ac07f21da36e82fdf235e0e48ce964223a675931f74aae8b5a99b4b567f1691f67ea603399b491c7b13be7111043e7c1f1131cd1ab6e681bbd
+MISC ChangeLog 3084 SHA256 0b7ad1770b95fea151f1d403800c4466d48cef800f14fcf976d2459cef908100 SHA512 ca14d90295bb0184043c606d7bcae7ebd60f74202c403556720a68d660421ad8289ff3c9ce83994ae2171d8184178cce775b1ccdf79b35df575866b7084217ff WHIRLPOOL 69448f55c55fa8e0b85996df49ef301f6cef33822ea856f07aef6a683ff0510542cf481ec2032dda34480e7214200a3c99a68e9f2b77173aea3dd3e6583dd282
+MISC ChangeLog-2015 1352 SHA256 630352819292e127db1e337fdad9e026eb6bebdb91af36c37f00d3590a96fcc7 SHA512 9e746dbcaf206c412df0d812c5303307b441bb4d198e63f8dc417a0eb2fcc1781f1833bbe53ae442fc5a2f5f469528f1701ad8ae61b7bf23865e99056329a82e WHIRLPOOL de7b0cdb5a1381ba1ddb0a3faa40aa504edbe5da6e900a69c752431e4d4f00ea7fe0e89db5cab647608458d8daba42ba9e9616c4a4046b795b2c9c6f81ef6290
+MISC metadata.xml 355 SHA256 3fe59ecadf91cdd661b063661864ef57eb3df8d59bd55a2eb9e61dc1a75e5bd8 SHA512 78f8cc8f1f1be915da206e4b8be196a21b58a6f209023594755e481136a1b86ee31c8d0dfedd516d756a47db624e89728875b073b71c3b08ac94a5cde8ff3b83 WHIRLPOOL adc2ef67e7870008ce851a78268832c5ff50649850b2614fb66edd3a16ccbad441306f00c44000385a742552b91b4a805408b19aad2ef3b7dda9e86532703dba
diff --git a/games-action/beathazardultra/beathazardultra-20130308-r1.ebuild b/games-action/beathazardultra/beathazardultra-20130308-r1.ebuild
new file mode 100644
index 000000000000..6103d017fa8c
--- /dev/null
+++ b/games-action/beathazardultra/beathazardultra-20130308-r1.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# TODO: unbundle allegro[gtk...] (no multilib on amd64 and 5.0.9 soname)
+
+EAPI=6
+inherit eutils unpacker
+
+DESCRIPTION="Intense music-driven arcade shooter powered by your music"
+HOMEPAGE="http://www.coldbeamgames.com/"
+SRC_URI="beathazard-installer_03-08-13"
+
+LICENSE="all-rights-reserved"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE="bundled-libs"
+RESTRICT="bindist fetch splitdebug"
+QA_PREBUILT="/opt/${PN}/BeatHazard_Linux2
+ /opt/${PN}/hge_lib/*"
+
+DEPEND="app-arch/unzip"
+RDEPEND="
+ virtual/opengl
+ amd64? (
+ !bundled-libs? (
+ >=media-libs/libpng-1.2.51:1.2[abi_x86_32(-)]
+ >=virtual/jpeg-0-r2[abi_x86_32(-)]
+ )
+ >=x11-libs/gtk+-2.24.23:2[abi_x86_32(-)]
+ >=virtual/opengl-7.0-r1[abi_x86_32(-)]
+ >=x11-libs/libX11-1.6.2[abi_x86_32(-)]
+ >=x11-libs/libXcursor-1.1.14[abi_x86_32(-)]
+ >=x11-libs/libXinerama-1.1.3[abi_x86_32(-)]
+ >=x11-libs/libXrandr-1.4.2[abi_x86_32(-)]
+ )
+ x86? (
+ x11-libs/gtk+:2
+ x11-libs/libX11
+ x11-libs/libXcursor
+ x11-libs/libXinerama
+ x11-libs/libXrandr
+ !bundled-libs? (
+ media-libs/libpng:1.2
+ virtual/jpeg
+ )
+ )"
+
+S=${WORKDIR}/data
+
+pkg_nofetch() {
+ einfo "Please buy & download ${SRC_URI} from:"
+ einfo " ${HOMEPAGE}"
+ einfo "and move it to ${DISTDIR}"
+ einfo
+}
+
+src_unpack() {
+ unpack_zip ${A}
+}
+
+src_prepare() {
+ if ! use bundled-libs ; then
+ einfo "Removing bundled libs..."
+ rm -v all/hge_lib/libjpeg.so* all/hge_lib/libpng12.so* || die
+ fi
+}
+
+src_install() {
+ insinto /opt/${PN}
+ doins -r all/*
+
+ dodoc Linux.README
+
+ newicon SmileLogo.png ${PN}.png
+ make_desktop_entry ${PN}
+ make_wrapper ${PN} "./BeatHazard_Linux2" "/opt/${PN}" "/opt/${PN}/hge_lib"
+
+ fperms +x /opt/${PN}/BeatHazard_Linux2
+}
diff --git a/games-action/beathazardultra/beathazardultra-20130308.ebuild b/games-action/beathazardultra/beathazardultra-20130308.ebuild
new file mode 100644
index 000000000000..00a90ed3491c
--- /dev/null
+++ b/games-action/beathazardultra/beathazardultra-20130308.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# TODO: unbundle allegro[gtk...] (no multilib on amd64 and 5.0.9 soname)
+
+EAPI=5
+inherit eutils unpacker games
+
+DESCRIPTION="Intense music-driven arcade shooter powered by your music"
+HOMEPAGE="http://www.coldbeamgames.com/"
+SRC_URI="beathazard-installer_03-08-13"
+
+LICENSE="all-rights-reserved"
+SLOT="0"
+KEYWORDS="-* amd64 x86"
+IUSE="bundled-libs"
+RESTRICT="bindist fetch splitdebug"
+
+MYGAMEDIR=${GAMES_PREFIX_OPT}/${PN}
+QA_PREBUILT="${MYGAMEDIR#/}/BeatHazard_Linux2
+ ${MYGAMEDIR#/}/hge_lib/*"
+
+DEPEND="app-arch/unzip"
+RDEPEND="
+ virtual/opengl
+ amd64? (
+ !bundled-libs? (
+ >=media-libs/libpng-1.2.51:1.2[abi_x86_32(-)]
+ >=virtual/jpeg-0-r2[abi_x86_32(-)]
+ )
+ >=x11-libs/gtk+-2.24.23:2[abi_x86_32(-)]
+ >=virtual/opengl-7.0-r1[abi_x86_32(-)]
+ >=x11-libs/libX11-1.6.2[abi_x86_32(-)]
+ >=x11-libs/libXcursor-1.1.14[abi_x86_32(-)]
+ >=x11-libs/libXinerama-1.1.3[abi_x86_32(-)]
+ >=x11-libs/libXrandr-1.4.2[abi_x86_32(-)]
+ )
+ x86? (
+ x11-libs/gtk+:2
+ x11-libs/libX11
+ x11-libs/libXcursor
+ x11-libs/libXinerama
+ x11-libs/libXrandr
+ !bundled-libs? (
+ media-libs/libpng:1.2
+ virtual/jpeg
+ )
+ )"
+
+S=${WORKDIR}/data
+
+pkg_nofetch() {
+ einfo "Please buy & download ${SRC_URI} from:"
+ einfo " ${HOMEPAGE}"
+ einfo "and move it to ${DISTDIR}"
+ einfo
+}
+
+src_unpack() {
+ unpack_zip ${A}
+}
+
+src_prepare() {
+ if ! use bundled-libs ; then
+ einfo "Removing bundled libs..."
+ rm -v all/hge_lib/libjpeg.so* all/hge_lib/libpng12.so* || die
+ fi
+}
+
+src_install() {
+ insinto "${MYGAMEDIR}"
+ doins -r all/*
+
+ dodoc Linux.README
+
+ newicon SmileLogo.png ${PN}.png
+ make_desktop_entry ${PN}
+ games_make_wrapper ${PN} "./BeatHazard_Linux2" "${MYGAMEDIR}" "${MYGAMEDIR}/hge_lib"
+
+ fperms +x "${MYGAMEDIR}"/BeatHazard_Linux2
+ prepgamesdirs
+}
diff --git a/games-action/beathazardultra/metadata.xml b/games-action/beathazardultra/metadata.xml
new file mode 100644
index 000000000000..b878aaa1812d
--- /dev/null
+++ b/games-action/beathazardultra/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <use>
+ <flag name="bundled-libs">
+ Use the upstream provided bundled libraries.
+ </flag>
+ </use>
+</pkgmetadata>
diff --git a/games-action/bomberclone/Manifest b/games-action/bomberclone/Manifest
new file mode 100644
index 000000000000..b82e153fafef
--- /dev/null
+++ b/games-action/bomberclone/Manifest
@@ -0,0 +1,8 @@
+AUX bomberclone-0.11.8-gcc52.patch 223 SHA256 cdb8ca5f595a4127866bd5e7e9f2cb9c7d4bec5aa73c54ccd1f059c61d5bb7a9 SHA512 a536ce4130f6dca9aaaeb79a4b4501edee1f52e020f333202f592477839409f4691ad95735cffd9f178e21c8ea8e885a908684f39e3477fd0d4137b9f8c49012 WHIRLPOOL fa8bc688ad36d31c78326185350a3bce1763692e3f7a71ca373413adbab530dcf23718c46d450a18f63fe3eb39238153f5c09feb5ab981eb1ef0164bd069a8ed
+AUX bomberclone-0.11.8-underlink.patch 434 SHA256 e4ea7f22a282ac5d0ccc7ffc14f266a1fd98e8b594a3d53f236122daa753514b SHA512 78738422f3a83a9dbfa03976701bb136c4326b9bb6fca310968518c77c2a6440ba9291a568162773bf0f48691a8039e0c461972c0d8f9e40d4b54525a2db9840 WHIRLPOOL 22a8f36ed6f513327d1d13c0dcc0d995a6e719ca9f344d47ba4651eb18861bd27b4995758da6bd846dcf8afa78a4eec4f516178498bda587557e2c9c47a758f0
+DIST bomberclone-0.11.8.tar.bz2 7966452 SHA256 2f6993ee4a63e8cea51f9605e35de4b4ec12a5abafd25309c313ddb0fba35230 SHA512 a5e52db43f7f508993231ec13bb2705f60e25cfc21d15c17d9b422c6fc948dc14cc8c4519acfac2e9b7b32a3072dc3a521fbf28b2150a86cfb4099ced72ab79b WHIRLPOOL 89ecc1ce9f18342ea0bf4cb099e26eed8dc2ebddf71c75356f522a0a2b5d593d1525234c104d441f4d3073efb01e78fe234b0a7aabb81baa236df6c5133084c4
+EBUILD bomberclone-0.11.8-r1.ebuild 1206 SHA256 88e3338e738841486c5669db880ef056dd9ce6210fb30bac0cb07f3ebbc365e4 SHA512 83e33b790dbf68533078bd8fadd49ddc5c45c56893d432cd389d63787576bca8c0956ebaa2726e2131949143784a125c33093f6102f7d93489e97e1587a9d07b WHIRLPOOL b03a1e31e62de67cad06dd34900271988544395ca7d492c0faa3d183c66c15f568e1a29b2fab2c4deb9bba15974070f470114d536c5febae6d9032b5e31fe41b
+EBUILD bomberclone-0.11.8.ebuild 1211 SHA256 93bbc6ee1797c4d44c584da189e8f5028d6927a3b2d5d98ea1016f1effd8c514 SHA512 9221fd2ad905c38bbd1fe07b4b5fea558302b188961e14dfe0687c9a3c90b6d5cdfcc31b76a6f4ada91cd57870d341b9230b1f0f6a5bb2aebdf96ed7a6ad5be6 WHIRLPOOL 0e80a676128fa9b0f62d0119f64ed315f3cc4090fe704cdd55cb8b84f4b14af3ce592c433b28a26edb79223ef0f2d8820358246f864a9ed07300c3ea5bb96ee1
+MISC ChangeLog 3257 SHA256 ec17994a1702dc3fd90320007e70f167bb0051b0d2028b0ab068214ca64728c5 SHA512 cb54db94bcee6d3ba8d1ae0c82beed4bc670231b7d8c2520df4c1ef4594c4bda580c87d4684e109e2d5b750b283d44b3b2ba2e63fa8bd4630e80b8e063c54aa8 WHIRLPOOL 5521cd6e437b46ac23d5fb2ac65a3d1c99182631cd98a91732ad84e933e7423cf9e367acd1c32f756b9e9f74257a8be1051379062c598ea2926d5a5f253bb318
+MISC ChangeLog-2015 4573 SHA256 8e94c6369cc9ad25dba0608fce403b3fea9ad7b9e4a19651d84f6a0826106cdd SHA512 f93c070e87074a540434aec650db206680c764cc0a045cda5328594618be4a221938cb19811fbb5edf88669fa7b19eef1ec9a9d89638062d9ccd31b71c7b5dfd WHIRLPOOL 0d3bca2d7698572264afe52b88c5fdf8b4f8cf5d2468516928e0abbccb78fb3bed21cc93a8479cbac5a84b01fac5cc1dd709a6c5bbd8947d27792e29599d99dd
+MISC metadata.xml 334 SHA256 210fa7c213e91dbba676aad2cf7448e33a2701e56dda4d15c817dfe652d9418c SHA512 0e309d5ada167696d234e2e2c44cb045607018801b9e03fab79bc2496c66f6e484364200320bf6124fb5fdd787d798de6052fa659862336d233cd6bd1eb8e5e9 WHIRLPOOL 8d4258b567f932164c71cb9aca08fbfea263c83c3ddf91d85491a7ccf0a54987a87b4f6d2b2cd59ccbe8519e05c3ee72d1c52c6422ed955f134968fe0c9dd2f6
diff --git a/games-action/bomberclone/bomberclone-0.11.8-r1.ebuild b/games-action/bomberclone/bomberclone-0.11.8-r1.ebuild
new file mode 100644
index 000000000000..ddd05a9d7204
--- /dev/null
+++ b/games-action/bomberclone/bomberclone-0.11.8-r1.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils autotools
+
+DESCRIPTION="BomberMan clone with network game support"
+HOMEPAGE="http://www.bomberclone.de/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~mips ~ppc64 ~x86"
+IUSE="X"
+
+DEPEND=">=media-libs/libsdl-1.1.0[video]
+ media-libs/sdl-image[png]
+ media-libs/sdl-mixer[mod]
+ X? ( x11-libs/libXt )"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-gcc52.patch
+ "${FILESDIR}"/${P}-underlink.patch
+)
+
+src_prepare() {
+ default
+
+ ecvs_clean
+ mv configure.{in,ac} || die
+ sed -i -e 's/configure.in/configure.ac/' configure.ac || die
+ sed -i \
+ -e "s:/share/games/:share/:" \
+ configure.ac || die
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_with X x) \
+ --datadir=/usr/share
+ sed -i \
+ -e "/PACKAGE_DATA_DIR/ s:/usr/games/share/games/:/usr/share:" \
+ config.h || die
+}
+
+src_install() {
+ default
+
+ dobin src/${PN}
+
+ insinto /usr/share/${PN}
+ doins -r data/{gfx,maps,player,tileset,music}
+ find "${D}" -name "Makefile*" -exec rm -f '{}' +
+
+ doicon data/pixmaps/bomberclone.png
+ make_desktop_entry bomberclone Bomberclone
+}
diff --git a/games-action/bomberclone/bomberclone-0.11.8.ebuild b/games-action/bomberclone/bomberclone-0.11.8.ebuild
new file mode 100644
index 000000000000..3752ded7ea43
--- /dev/null
+++ b/games-action/bomberclone/bomberclone-0.11.8.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils autotools games
+
+DESCRIPTION="BomberMan clone with network game support"
+HOMEPAGE="http://www.bomberclone.de/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~mips ppc64 x86"
+IUSE="X"
+
+DEPEND=">=media-libs/libsdl-1.1.0[video]
+ media-libs/sdl-image[png]
+ media-libs/sdl-mixer[mod]
+ X? ( x11-libs/libXt )"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ ecvs_clean
+ epatch "${FILESDIR}"/${P}-underlink.patch \
+ "${FILESDIR}"/${P}-gcc52.patch
+ mv configure.{in,ac} || die
+ sed -i -e 's/configure.in/configure.ac/' configure.ac || die
+ eautoreconf
+}
+
+src_configure() {
+ egamesconf \
+ $(use_with X x) \
+ --datadir="${GAMES_DATADIR_BASE}"
+ sed -i \
+ -e "/PACKAGE_DATA_DIR/ s:/usr/games/share/games/:${GAMES_DATADIR}/:" \
+ config.h || die
+}
+
+src_install() {
+ dogamesbin src/${PN}
+
+ insinto "${GAMES_DATADIR}/${PN}"
+ doins -r data/{gfx,maps,player,tileset,music}
+ find "${D}" -name "Makefile*" -exec rm -f '{}' +
+
+ dodoc AUTHORS ChangeLog README TODO
+ doicon data/pixmaps/bomberclone.png
+ make_desktop_entry bomberclone Bomberclone
+ prepgamesdirs
+}
diff --git a/games-action/bomberclone/files/bomberclone-0.11.8-gcc52.patch b/games-action/bomberclone/files/bomberclone-0.11.8-gcc52.patch
new file mode 100644
index 000000000000..fd77e1b7b1d6
--- /dev/null
+++ b/games-action/bomberclone/files/bomberclone-0.11.8-gcc52.patch
@@ -0,0 +1,11 @@
+--- a/src/single.c 2015-09-17 09:21:57.826930680 +0200
++++ b/src/single.c 2015-09-17 09:22:04.315824372 +0200
+@@ -476,7 +476,7 @@
+ };
+
+
+-inline int
++static inline int
+ ai_checknewpos (_point pos, int d)
+ {
+ _point m;
diff --git a/games-action/bomberclone/files/bomberclone-0.11.8-underlink.patch b/games-action/bomberclone/files/bomberclone-0.11.8-underlink.patch
new file mode 100644
index 000000000000..18c063b56db9
--- /dev/null
+++ b/games-action/bomberclone/files/bomberclone-0.11.8-underlink.patch
@@ -0,0 +1,20 @@
+--- a/configure.in 2011-06-18 18:23:48.633605738 +0200
++++ b/configure.in 2011-06-18 18:26:26.910628408 +0200
+@@ -33,7 +33,7 @@
+ )
+
+ CFLAGS="$SDL_CFLAGS $CFLAGS"
+- LIBS="$SDL_LIBS $LIBS"
++ LIBS="$SDL_LIBS $LIBS -lm"
+
+
+ dnl Checks for header files.
+@@ -84,7 +84,7 @@
+ CFLAGS="$CFLAGS -Wall"
+ AC_MSG_WARN(Disable Warning as Error Treatment)
+ else
+- CFLAGS="$CFLAGS -Wall -Werror"
++ CFLAGS="$CFLAGS -Wall"
+ fi
+
+
diff --git a/games-action/bomberclone/metadata.xml b/games-action/bomberclone/metadata.xml
new file mode 100644
index 000000000000..3948f34d5eb8
--- /dev/null
+++ b/games-action/bomberclone/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">bomberclone</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-action/brutal-legend/Manifest b/games-action/brutal-legend/Manifest
new file mode 100644
index 000000000000..13780d728801
--- /dev/null
+++ b/games-action/brutal-legend/Manifest
@@ -0,0 +1,6 @@
+DIST BrutalLegend-Linux-2013-06-15-setup.bin 8999631895 SHA256 133cc6f565966503d347722a9bd13dd27f86c6ff75f5586cbc4e6ef6bbb8640a SHA512 4099ed07cf78d62617eeac7de396aa01e4e9b0514861a1b0e8988f383b458281be0b3c84c33e2a2e85f80fbbacf8a4b381fc880b138af2e73a226a492cf9620a WHIRLPOOL a50abc04f02bd8ef720f86c9962976c434f8aacc9c814dd6eff2e68fb5db4bbac797e5fbbdd1112298e5a9198144dc18cf18cb7693822a5df4fe95fcda569db0
+EBUILD brutal-legend-20130615-r1.ebuild 1838 SHA256 03ec6f58b36ff9e0a5f9140722a96c50d413ff6febf23f4a6f69b23f96fcb9a1 SHA512 33734a01a6c2683b48822f6f7852ef94d1f239c5dfd9d85fb6c96c52df67398d874fcb53bce825d62b89293fd3a75cec358f5cf99b51cb3352b37ed61647b931 WHIRLPOOL cff4dec5301fc19b6f54ef1c297ef64382e5cc52c71f170d689fe7aaa7d87eea37174feebd477e3489c597e09b7f7df046f51d6a0038395d4c7ec7049ac74c80
+EBUILD brutal-legend-20130615-r2.ebuild 1761 SHA256 f185ea44da998a3a0a425921b3d82f9cb53f3022c64dc0556274418b36f1c09e SHA512 ab5598c321cd1d99b5a119c3bd3c60ad9700c9d2aeec36d388d326a467fc9dbe8271aabdca52c45fc7299e47ee3867aecad9a4bcdbc7a5011c8ddb1da8f19be6 WHIRLPOOL 9bc160f1e82ea54ebfd5b4984db87284b98315d98bd9fff29b20d2f00a95bd4734bd70bfc69c5a7dc0e0fb089f37e2f240edb9a98c162a4e98712ea33d03250f
+MISC ChangeLog 2687 SHA256 b7d838450f82c3dfbb1b4da886140049e465c5c17e2d174f3bb43104fafea17f SHA512 735a313f1ee9e9dcaf581bf822c6d9df153624d8c5352e4ba447accada41bd0dbc58b9a7617981daea0498203e1d96e653fd6c0ed1e2375031582a273bdab160 WHIRLPOOL 3ac96bafd8acfdfbfa55c4664291b518351076b1d45d1cdee76eddb13b42985f0e686c2d32db974bd6325c36b6297239e9c429cdcb065a027dd3e3f26a85f4df
+MISC ChangeLog-2015 1562 SHA256 9255551b1479305f5f8dbeb31c89e89249b3664eca4f6d5c46ec2b754816ce47 SHA512 74c09b418df6588d3e97983e2a04e055e9a710ca59bbb0c5f82e3fe20475bbf0f8da4fe3ca7b883c4e6545028a40b0b8868b059d074f84cbf00152fc94d40b72 WHIRLPOOL 5b1772fb9e09abc6929da13633e9152c99764a69a2abe4e48d00c8256618e76d9097d667368fa805b068b85012d1549044c3ef7d9c7408795e08eb15e2445c5c
+MISC metadata.xml 1120 SHA256 de1e70f517a6c257f80e8e787d90a25982fd437e39277943218212a418f5fc9d SHA512 63b8868817c396e7708aaf65da803cd26eb1fb55fb5bdd9b0a9f92bcf0e5c6bb1a3488287949098b587991541eef6c595395fdfcecddff0b0d91a5686654a296 WHIRLPOOL 9201dede5cdfb11f4d7d85a4a07d24dd142448e8d489dbc4a52e0c8d7a3302a80f80f74828178a9b5e5526758815f9829f45a30ccc7569a1721293b631daaa24
diff --git a/games-action/brutal-legend/brutal-legend-20130615-r1.ebuild b/games-action/brutal-legend/brutal-legend-20130615-r1.ebuild
new file mode 100644
index 000000000000..5f4f6fae14b7
--- /dev/null
+++ b/games-action/brutal-legend/brutal-legend-20130615-r1.ebuild
@@ -0,0 +1,86 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# TODO: unbundle libsdl-2
+
+EAPI=5
+
+inherit eutils unpacker gnome2-utils games
+
+TIMESTAMP=${PV:0:4}-${PV:4:2}-${PV:6:2}
+DESCRIPTION="Unleash the power of Heavy Metal to reign down fire from the sky"
+HOMEPAGE="https://www.ea.com/de/brutal-legend"
+SRC_URI="BrutalLegend-Linux-${TIMESTAMP}-setup.bin"
+
+LICENSE="all-rights-reserved"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+RESTRICT="bindist fetch splitdebug"
+
+MYGAMEDIR=${GAMES_PREFIX_OPT}/${PN}
+QA_PREBUILT="${MYGAMEDIR#/}/lib/*
+ ${MYGAMEDIR#/}/Buddha.bin.x86"
+
+RDEPEND="
+ amd64? (
+ >=sys-libs/zlib-1.2.8-r1[abi_x86_32(-)]
+ >=virtual/glu-9.0-r1[abi_x86_32(-)]
+ >=virtual/opengl-7.0-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/libXdmcp-1.1.1-r1[abi_x86_32(-)]
+ >=x11-libs/libXext-1.3.2[abi_x86_32(-)]
+ >=x11-libs/libxcb-1.9.1[abi_x86_32(-)]
+ )
+ x86? (
+ sys-libs/zlib
+ virtual/glu
+ virtual/opengl
+ x11-libs/libX11
+ x11-libs/libXau
+ x11-libs/libXdmcp
+ x11-libs/libXext
+ x11-libs/libxcb
+
+ )"
+DEPEND="app-arch/unzip"
+
+S=${WORKDIR}/data
+
+pkg_nofetch() {
+ einfo "Please buy & download ${SRC_URI} from:"
+ einfo " https://www.humblebundle.com/store"
+ einfo "and move it to ${DISTDIR}"
+}
+
+src_unpack() {
+ unpack_zip ${A}
+}
+
+src_install() {
+ newicon -s 256 Buddha.png ${PN}.png
+ games_make_wrapper ${PN} "./Buddha.bin.x86" "${MYGAMEDIR}" "${MYGAMEDIR}/lib"
+ make_desktop_entry ${PN}
+
+ dodir "${MYGAMEDIR}"
+ # this is over 9000!!!! ...eh, 8GB data
+ mv * "${D%/}/${MYGAMEDIR}" || die
+
+ fperms +x "${MYGAMEDIR}/Buddha.bin.x86"
+ 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-action/brutal-legend/brutal-legend-20130615-r2.ebuild b/games-action/brutal-legend/brutal-legend-20130615-r2.ebuild
new file mode 100644
index 000000000000..b9c0096e1456
--- /dev/null
+++ b/games-action/brutal-legend/brutal-legend-20130615-r2.ebuild
@@ -0,0 +1,83 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# TODO: unbundle libsdl-2
+
+EAPI=6
+
+inherit eutils unpacker gnome2-utils
+
+TIMESTAMP=${PV:0:4}-${PV:4:2}-${PV:6:2}
+DESCRIPTION="Unleash the power of Heavy Metal to reign down fire from the sky"
+HOMEPAGE="https://www.ea.com/de/brutal-legend"
+SRC_URI="BrutalLegend-Linux-${TIMESTAMP}-setup.bin"
+
+LICENSE="all-rights-reserved"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+RESTRICT="bindist fetch splitdebug"
+
+MYGAMEDIR="/opt/${PN}"
+QA_PREBUILT="${MYGAMEDIR#/}/lib/*
+ ${MYGAMEDIR#/}/Buddha.bin.x86"
+
+RDEPEND="
+ amd64? (
+ >=sys-libs/zlib-1.2.8-r1[abi_x86_32(-)]
+ >=virtual/glu-9.0-r1[abi_x86_32(-)]
+ >=virtual/opengl-7.0-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/libXdmcp-1.1.1-r1[abi_x86_32(-)]
+ >=x11-libs/libXext-1.3.2[abi_x86_32(-)]
+ >=x11-libs/libxcb-1.9.1[abi_x86_32(-)]
+ )
+ x86? (
+ sys-libs/zlib
+ virtual/glu
+ virtual/opengl
+ x11-libs/libX11
+ x11-libs/libXau
+ x11-libs/libXdmcp
+ x11-libs/libXext
+ x11-libs/libxcb
+
+ )"
+DEPEND="app-arch/unzip"
+
+S=${WORKDIR}/data
+
+pkg_nofetch() {
+ einfo "Please buy & download ${SRC_URI} from:"
+ einfo " https://www.humblebundle.com/store"
+ einfo "and move it to ${DISTDIR}"
+}
+
+src_unpack() {
+ unpack_zip ${A}
+}
+
+src_install() {
+ newicon -s 256 Buddha.png ${PN}.png
+ make_wrapper ${PN} "./Buddha.bin.x86" "${MYGAMEDIR}" "${MYGAMEDIR}/lib"
+ make_desktop_entry ${PN}
+
+ dodir "${MYGAMEDIR}"
+ # this is over 9000!!!! ...eh, 8GB data
+ mv * "${D%/}/${MYGAMEDIR}" || die
+
+ fperms +x "${MYGAMEDIR}/Buddha.bin.x86"
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/games-action/brutal-legend/metadata.xml b/games-action/brutal-legend/metadata.xml
new file mode 100644
index 000000000000..336d0fe7cf2a
--- /dev/null
+++ b/games-action/brutal-legend/metadata.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <longdescription lang="en">
+ Jack Black stars as Eddie Riggs, a roadie who’s sucked into a
+ mythical Age of Rock to fight evil, liberate an army of headbangers
+ from a life of oppression, find love, and discover his life’s
+ purpose. Heavy stuff until one realizes the universe of Brütal
+ Legend has sprung up from the mind of legendary game director Tim
+ Schafer.
+
+ Enter the world of Heavy Metal where mountains are made of
+ amplifiers, killer spiders spin guitar strings, druids want to
+ kill you, and Rock Legends roam the landscape.
+
+ Armed with a massive battle-axe, guitar, and his hot-rod, Eddie
+ will rip the faces off of demons. As Eddie, expect to crush skulls,
+ ravage the road in the Deuce, and unleash the power of Heavy Metal
+ to reign down fire from the sky — all to save humanity and become
+ a brutal legend.
+ </longdescription>
+</pkgmetadata>
diff --git a/games-action/btanks/Manifest b/games-action/btanks/Manifest
new file mode 100644
index 000000000000..5f97c6c9e841
--- /dev/null
+++ b/games-action/btanks/Manifest
@@ -0,0 +1,9 @@
+AUX btanks-0.9.8083-gcc46.patch 284 SHA256 f2ee8df34aeaf30ff2f0fa9b9581e722bd4baac89407d4c895fc02c0b0b6d7f8 SHA512 114ddc0b5bbe0125389dee88ed3eef27b3ec260edc6d50eb04a86f93157f3b2f613cd1ba58f915ca7f8255d2cdc5d341a0a70bf22d5210160dba7604fd90c83d WHIRLPOOL d9db3d70b515e516efd84f4c8833377f8a3119518f0c37e7d4e1603fa1a45d66fe5c4160bb76d61ef9e0afd5654426501f96c8930ef07234cbcddb367d8cfb40
+AUX btanks-0.9.8083-gcc47.patch 5679 SHA256 291e3860c8071af1fcc3da97b314b571f583585ec2287a71ed31377bf709cfa9 SHA512 226869ef3031ddd4629bdd98880c85a4c0ff9f1619fd45372e60ccb2ebb50f0cd7b0ad60befa1859e475705d236144b1fd6e2286513cfbafaa0eba8c02918c9a WHIRLPOOL 65c1b09329fa613256aca97d5db7d0145e035da25e57217d09cd4133470a797ccc641dbfde09410519afce5a4ccce21f0f313161053d76703ec56428276a7120
+AUX btanks-0.9.8083-gcc6.patch 712 SHA256 6810b68bbcd35e60b758a7ba25cc6537fbcd8dc90af862a5e4c83c56abf0b0c1 SHA512 1efbac6ed17aa9d3cfc1c6e85a94eb4f83b6d37ce81d2f6db8190ee8d70e09ba156e50861bbeb4a8a3867db33e6b2427e996e2d1421a2f2ef2216946a42fda8a WHIRLPOOL 5ad8cfc7843d042661b7af4f7e415e4999ac949750b0b71a6f11f517a6c1586c3c2f66d03488e078b3cb97d508206c1f95e6e505ecf4dc9397adc304dac46a51
+AUX btanks-0.9.8083-scons-blows.patch 3146 SHA256 792bf72825939d33fa548cf995665104df06399820fc3eb85148d8fb722e8622 SHA512 de42054c599d808ca1fb3491346602b4055157973f8138a2c258e64fb596d87d67b24ffe30edffbab30fec4b0e71bc541cbd2fb7d7866d079595b54af763a856 WHIRLPOOL fef4c6f50ab5c411c5af886f7d9593aa8302b43d0704072f309f2e58aadc064d9d8c2bdd0c5e8e7da93dca2d4e15e4a845fcdf697e1a503d7cade1265ae4e249
+DIST btanks-0.9.8083.tar.bz2 28754069 SHA256 3fd2ce6a2b45f7a60c3b114fa9aff13cb3dd9fbb6a65cdc9798b76c4fa2c4341 SHA512 beef8f480e4c20c4f3d29aaa63fd52b370b89cceb8a7dda92f0d0fa5517969abf1fce6b0109782300f1b5bb92cf3c599677b168cd66f3b44c2d2dd1742ce0241 WHIRLPOOL 5320ce692ae5c6a760121fb52120ff35632d06610dfa514897f6569f7b5a9c8246b824a81b50d74c649dff7c0cb84b9af537edbb5d2fc88b7bafdf92d0b1c749
+EBUILD btanks-0.9.8083.ebuild 1311 SHA256 f85763f3a91939945f17c92b1376941ce9b2cd296b73cd2343ea81da3d1ce5a8 SHA512 6e312e0523e0b28cf405117469170f7d8d5e040ba49f01a366561bcc12c7174fbe0771d6956bd53c2b192df975872365c49aa9d6b656480152ca56448720fa50 WHIRLPOOL fcf00e14f8c4782b2853687303b0744f267fe9bbdbacb69d393b63a87824e575906dee7a9583042db68638f8b93c825e3168cae91f583e04236e256e66053633
+MISC ChangeLog 2550 SHA256 3fb015767e18a0ba8bc5606128eba7fa2cc50e6cb73a38686defcff3e5df909d SHA512 e7ee6f2c7da5a1d8ae56993c9ba2b76236faf078d1cb6eea7102bc32b43c7d67f7645304f8d73306b2199d460221dd3b12fe659600469bbbfc5723a8ec946bb1 WHIRLPOOL ce99da0cd3eed54c1a1f5923639cc234f01fca1d1a589fa8698566b1a19f58b4db68ff6f00c7cfba400a876fe13e1b586006ae1ef4f5f0f7146a75ac8bf43c0b
+MISC ChangeLog-2015 4857 SHA256 44b19f9600efe4603a000d1989c9df9a19c17155f2559f9dac467419912bf9b9 SHA512 572e63dea6c3d838c9e1b2341cd1e03eb6caa75ba27a53933ee8524b85ca49830259ae361463f58c5c65742cf4a21723dfce1caa9c39589fd6340bfef9c740e3 WHIRLPOOL 0fa6af85831b03f0188c2ff85ccab99d447da3f26b4a5c3b0ca075309cb463965773c2b4a2420941e92587fb5dd55992405255f50a1efd91a7bbcb4bfc8c7139
+MISC metadata.xml 774 SHA256 42c550de6382155fb22acdae5e7fe4aac1bf14aafcf249df98c78046c1a488b3 SHA512 f5b571ea902f863958151df0746dcbe2bd59f4c286e81ae6d4b3c2a298b1288379ec8e88e0ba59e06fdc4188e1dbd5fccb158e37707065556db241588420bcc2 WHIRLPOOL 0a695cdc62568672dd5f6660c8d45e7dff8dec910b5d0d6782e552e67a10cb1640511dda6731d35299cc608b33943554f6e8af370bd5a46ab898ee4232bd6acc
diff --git a/games-action/btanks/btanks-0.9.8083.ebuild b/games-action/btanks/btanks-0.9.8083.ebuild
new file mode 100644
index 000000000000..9da95ffb8f30
--- /dev/null
+++ b/games-action/btanks/btanks-0.9.8083.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils scons-utils games
+
+DESCRIPTION="Fast 2D tank arcade game with multiplayer and split-screen modes"
+HOMEPAGE="http://btanks.sourceforge.net/"
+SRC_URI="mirror://sourceforge/btanks/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND=">=dev-lang/lua-5.1:0
+ media-libs/libsdl[joystick,video]
+ media-libs/libvorbis
+ virtual/opengl
+ dev-libs/expat
+ media-libs/smpeg
+ media-libs/sdl-image[jpeg,png]
+ media-libs/sdl-gfx"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ rm -rf sdlx/gfx
+ epatch "${FILESDIR}"/${P}-scons-blows.patch \
+ "${FILESDIR}"/${P}-gcc46.patch \
+ "${FILESDIR}"/${P}-gcc47.patch \
+ "${FILESDIR}"/${P}-gcc6.patch
+}
+
+src_compile() {
+ escons \
+ prefix="${GAMES_PREFIX}" \
+ lib_dir="$(games_get_libdir)"/${PN} \
+ plugins_dir="$(games_get_libdir)"/${PN} \
+ resources_dir="${GAMES_DATADIR}"/${PN}
+}
+
+src_install() {
+ dogamesbin build/release/engine/btanks
+ newgamesbin build/release/editor/bted btanksed
+ exeinto "$(games_get_libdir)"/${PN}
+ doexe build/release/*/*.so
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r data
+ newicon engine/src/bt.xpm ${PN}.xpm
+ make_desktop_entry ${PN} "Battle Tanks"
+ dodoc ChangeLog *.txt
+ prepgamesdirs
+}
diff --git a/games-action/btanks/files/btanks-0.9.8083-gcc46.patch b/games-action/btanks/files/btanks-0.9.8083-gcc46.patch
new file mode 100644
index 000000000000..367c33cc6f24
--- /dev/null
+++ b/games-action/btanks/files/btanks-0.9.8083-gcc46.patch
@@ -0,0 +1,10 @@
+--- engine/sl08/sl08.h.old 2011-04-19 17:20:34.055776870 +0200
++++ engine/sl08/sl08.h 2011-04-19 17:20:59.471398921 +0200
+@@ -22,6 +22,7 @@
+ /* DO NOT MODIFY THIS FILE: IT'S AUTOGENERATED */
+
+ #include <list>
++#include <cstddef>
+
+ #ifndef NULL
+ #define NULL ((void*) 0)
diff --git a/games-action/btanks/files/btanks-0.9.8083-gcc47.patch b/games-action/btanks/files/btanks-0.9.8083-gcc47.patch
new file mode 100644
index 000000000000..13a4cf3723ae
--- /dev/null
+++ b/games-action/btanks/files/btanks-0.9.8083-gcc47.patch
@@ -0,0 +1,103 @@
+--- mrt/base_file.h.old 2012-10-08 10:16:43.941487723 +0200
++++ mrt/base_file.h 2012-10-08 10:18:55.788771445 +0200
+@@ -20,6 +20,7 @@
+ */
+
+ #include <string>
++#include <unistd.h>
+ #include "export_mrt.h"
+
+ namespace mrt {
+--- math/range_list.h.old 2012-10-08 09:49:34.283887937 +0200
++++ math/range_list.h 2012-10-08 09:50:36.258212096 +0200
+@@ -53,14 +53,14 @@
+ return;
+ }
+
+- typename parent_type::iterator i = lower_bound(value);
++ typename parent_type::iterator i = this->lower_bound(value);
+ if (i != parent_type::end()) {
+ if (i->first == value)
+ return;
+
+ if (value + 1 == i->first) {
+ T e = i->second;
+- erase(i);
++ this->erase(i);
+ i = parent_type::insert(typename parent_type::value_type(value, e)).first; //expand beginning
+ i = pack_left(i);
+ }
+--- engine/sl08/sl08.h.old 2012-10-04 09:50:37.845681514 +0200
++++ engine/sl08/sl08.h 2012-10-08 09:58:32.873166723 +0200
+@@ -272,7 +272,7 @@
+ inline slot1(object_type *object, func_t func, signal_type * signal = NULL) : object(object), func(func) {}
+
+ inline void assign(object_type *o, func_t f) { object = o; func = f; }
+- inline void assign(object_type *o, func_t f, signal_type &signal_ref = NULL) { object = o; func = f; connect(signal_ref); }
++ inline void assign(object_type *o, func_t f, signal_type &signal_ref = NULL) { object = o; func = f; this->connect(signal_ref); }
+
+ inline return_type operator() (arg1_type a1) const {
+ return (object->*func) (a1) ;
+@@ -293,7 +293,7 @@
+ inline slot1 () : object(NULL), func(NULL) {}
+ inline slot1 (object_type *object, func_t func) : object(object), func(func) {}
+ inline void assign(object_type *o, func_t f) { object = o; func = f; }
+- inline void assign(object_type *o, func_t f, signal_type &signal_ref) { object = o; func = f; connect(signal_ref); }
++ inline void assign(object_type *o, func_t f, signal_type &signal_ref) { object = o; func = f; this->connect(signal_ref); }
+
+ inline void operator() (arg1_type a1) const {
+ (object->*func) (a1);
+@@ -447,7 +447,7 @@
+ inline slot2(object_type *object, func_t func, signal_type * signal = NULL) : object(object), func(func) {}
+
+ inline void assign(object_type *o, func_t f) { object = o; func = f; }
+- inline void assign(object_type *o, func_t f, signal_type &signal_ref = NULL) { object = o; func = f; connect(signal_ref); }
++ inline void assign(object_type *o, func_t f, signal_type &signal_ref = NULL) { object = o; func = f; this->connect(signal_ref); }
+
+ inline return_type operator() (arg1_type a1, arg2_type a2) const {
+ return (object->*func) (a1, a2) ;
+@@ -468,7 +468,7 @@
+ inline slot2 () : object(NULL), func(NULL) {}
+ inline slot2 (object_type *object, func_t func) : object(object), func(func) {}
+ inline void assign(object_type *o, func_t f) { object = o; func = f; }
+- inline void assign(object_type *o, func_t f, signal_type &signal_ref) { object = o; func = f; connect(signal_ref); }
++ inline void assign(object_type *o, func_t f, signal_type &signal_ref) { object = o; func = f; this->connect(signal_ref); }
+
+ inline void operator() (arg1_type a1, arg2_type a2) const {
+ (object->*func) (a1, a2);
+@@ -643,7 +643,7 @@
+ inline slot3 () : object(NULL), func(NULL) {}
+ inline slot3 (object_type *object, func_t func) : object(object), func(func) {}
+ inline void assign(object_type *o, func_t f) { object = o; func = f; }
+- inline void assign(object_type *o, func_t f, signal_type &signal_ref) { object = o; func = f; connect(signal_ref); }
++ inline void assign(object_type *o, func_t f, signal_type &signal_ref) { object = o; func = f; this->connect(signal_ref); }
+
+ inline void operator() (arg1_type a1, arg2_type a2, arg3_type a3) const {
+ (object->*func) (a1, a2, a3);
+@@ -797,7 +797,7 @@
+ inline slot4(object_type *object, func_t func, signal_type * signal = NULL) : object(object), func(func) {}
+
+ inline void assign(object_type *o, func_t f) { object = o; func = f; }
+- inline void assign(object_type *o, func_t f, signal_type &signal_ref = NULL) { object = o; func = f; connect(signal_ref); }
++ inline void assign(object_type *o, func_t f, signal_type &signal_ref = NULL) { object = o; func = f; this->connect(signal_ref); }
+
+ inline return_type operator() (arg1_type a1, arg2_type a2, arg3_type a3, arg4_type a4) const {
+ return (object->*func) (a1, a2, a3, a4) ;
+@@ -818,7 +818,7 @@
+ inline slot4 () : object(NULL), func(NULL) {}
+ inline slot4 (object_type *object, func_t func) : object(object), func(func) {}
+ inline void assign(object_type *o, func_t f) { object = o; func = f; }
+- inline void assign(object_type *o, func_t f, signal_type &signal_ref) { object = o; func = f; connect(signal_ref); }
++ inline void assign(object_type *o, func_t f, signal_type &signal_ref) { object = o; func = f; this->connect(signal_ref); }
+
+ inline void operator() (arg1_type a1, arg2_type a2, arg3_type a3, arg4_type a4) const {
+ (object->*func) (a1, a2, a3, a4);
+@@ -972,7 +972,7 @@
+ inline slot5(object_type *object, func_t func, signal_type * signal = NULL) : object(object), func(func) {}
+
+ inline void assign(object_type *o, func_t f) { object = o; func = f; }
+- inline void assign(object_type *o, func_t f, signal_type &signal_ref = NULL) { object = o; func = f; connect(signal_ref); }
++ inline void assign(object_type *o, func_t f, signal_type &signal_ref = NULL) { object = o; func = f; this->connect(signal_ref); }
+
+ inline return_type operator() (arg1_type a1, arg2_type a2, arg3_type a3, arg4_type a4, arg5_type a5) const {
+ return (object->*func) (a1, a2, a3, a4, a5) ;
diff --git a/games-action/btanks/files/btanks-0.9.8083-gcc6.patch b/games-action/btanks/files/btanks-0.9.8083-gcc6.patch
new file mode 100644
index 000000000000..5f11379d8056
--- /dev/null
+++ b/games-action/btanks/files/btanks-0.9.8083-gcc6.patch
@@ -0,0 +1,34 @@
+Bug: https://bugs.gentoo.org/609692
+
+--- a/mrt/timespy.cpp
++++ b/mrt/timespy.cpp
+@@ -43,7 +43,7 @@
+ throw_io(("gettimeofday"));
+ }
+
+-TimeSpy::~TimeSpy() {
++TimeSpy::~TimeSpy() DTOR_NOEXCEPT {
+ struct timeval now;
+ if (gettimeofday(&now, NULL) == -1)
+ throw_io(("gettimeofday"));
+--- a/mrt/timespy.h
++++ b/mrt/timespy.h
+@@ -37,11 +37,17 @@
+ #include "fmt.h"
+ #include "export_mrt.h"
+
++#if __cplusplus >= 201103L
++#define DTOR_NOEXCEPT noexcept(false)
++#else
++#define DTOR_NOEXCEPT
++#endif
++
+ namespace mrt {
+ class MRTAPI TimeSpy {
+ public:
+ TimeSpy(const std::string &message);
+- ~TimeSpy();
++ ~TimeSpy() DTOR_NOEXCEPT;
+ private:
+ TimeSpy(const TimeSpy&);
+ const TimeSpy& operator=(const TimeSpy&);
diff --git a/games-action/btanks/files/btanks-0.9.8083-scons-blows.patch b/games-action/btanks/files/btanks-0.9.8083-scons-blows.patch
new file mode 100644
index 000000000000..47ce410f0bf8
--- /dev/null
+++ b/games-action/btanks/files/btanks-0.9.8083-scons-blows.patch
@@ -0,0 +1,93 @@
+--- mrt/export_base.h.old 2010-01-09 17:38:47.000000000 +0100
++++ mrt/export_base.h 2010-01-09 17:39:23.000000000 +0100
+@@ -1,7 +1,7 @@
+ #ifndef MRT_EXPORT_MACRO_H__
+ #define MRT_EXPORT_MACRO_H__
+
+-// Shared library support
++/* Shared library support */
+ #ifdef _WINDOWS
+
+ # pragma warning(disable:4251) /* needs to have dll-interface used by client */
+--- SConstruct.old 2010-01-09 17:43:36.000000000 +0100
++++ SConstruct 2010-01-09 17:45:25.000000000 +0100
+@@ -50,7 +50,7 @@
+ if os.environ.has_key('CC'):
+ env['CC'] = os.environ['CC']
+ if os.environ.has_key('CFLAGS'):
+- env['CCFLAGS'] += SCons.Util.CLVar(os.environ['CFLAGS'])
++ env['CFLAGS'] += SCons.Util.CLVar(os.environ['CFLAGS'])
+ if os.environ.has_key('CXX'):
+ env['CXX'] = os.environ['CXX']
+ if os.environ.has_key('CXXFLAGS'):
+@@ -91,19 +91,9 @@
+ #env.Append(CPPDEFINES = ['NDEBUG'])
+
+ else:
+- if env['gcc_visibility']:
+- env.Append(CCFLAGS=['-fvisibility=hidden']);
+- env.Append(CXXFLAGS=['-fvisibility-inlines-hidden', '-fvisibility=hidden']);
+-
+- if debug:
+- env.Append(CCFLAGS=['-ggdb', '-D_FORTIFY_SOURCE=2'])
+- env.Append(CPPFLAGS=['-ggdb', '-D_FORTIFY_SOURCE=2'])
+- else:
+- env.Append(CCFLAGS=['-O3'])
+- env.Append(CPPFLAGS=['-O3'])
+
+- env.Append(CPPFLAGS=['-Wall', '-Wno-deprecated', '-pedantic', '-Wno-long-long', '-pipe', '-pthread'])
+- env.Append(CCFLAGS=['-Wall', '-Wno-deprecated', '-pedantic', '-Wno-long-long', '-pipe', '-pthread'])
++ env.Append(CPPFLAGS=['-Wall', '-Wno-deprecated', '-pedantic', '-Wno-long-long', '-pthread'])
++ env.Append(CCFLAGS=['-Wall', '-Wno-deprecated', '-pedantic', '-Wno-long-long', '-pthread'])
+
+
+ conf_env = env.Clone()
+--- sdlx/SConscript.old 2010-01-09 17:46:05.000000000 +0100
++++ sdlx/SConscript 2010-01-09 17:46:55.000000000 +0100
+@@ -12,7 +12,7 @@
+
+ env.MergeFlags(sdl_cflags, sdl_libs)
+
+-libs = ['mrt', 'SDL', 'SDL_image']
++libs = ['mrt', 'SDL', 'SDL_image', 'SDL_gfx']
+
+ if sys.platform != "win32":
+ c_map_env= env.Clone()
+@@ -35,7 +35,6 @@
+ sdlx_sources = ['cursor.cpp', 'sdl_ex.cpp', 'surface.cpp', 'system.cpp', 'joystick.cpp',
+ 'thread.cpp', 'mutex.cpp', 'semaphore.cpp', 'color.cpp',
+ c_map, 'font.cpp', 'timer.cpp', 'module.cpp', 'file_rw.cpp',
+- 'gfx/SDL_rotozoom.c',
+ ] # 'ttf.cpp',
+
+ if sys.platform == 'win32':
+--- sdlx/surface.cpp.old 2010-01-09 17:47:33.000000000 +0100
++++ sdlx/surface.cpp 2010-01-09 17:48:19.000000000 +0100
+@@ -425,7 +425,7 @@
+ throw_sdl(("SDL_SetColorKey"));
+ }
+
+-#include "gfx/SDL_rotozoom.h"
++#include <SDL_rotozoom.h>
+
+ void Surface::rotozoom(const sdlx::Surface &src, double angle, double zoom, bool smooth) {
+ if (src.isNull())
+--- sdlx/wrappers/glSDL.c.old 2010-01-09 17:48:50.000000000 +0100
++++ sdlx/wrappers/glSDL.c 2010-01-09 17:49:23.000000000 +0100
+@@ -11,8 +11,6 @@
+
+ #ifdef HAVE_OPENGL
+
+-//#define LEAK_TRACKING
+-
+ #define DBG(x) /*error messages, warnings*/
+ #define DBG2(x) /*texture allocation*/
+ #define DBG3(x) /*chopping/tiling*/
+@@ -951,7 +949,6 @@
+ }
+ gl_doublebuf = flags & SDL_DOUBLEBUF;
+ SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, gl_doublebuf);
+- //SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, gl_doublebuf ? 1: 0);
+
+ scale = 1;
+
diff --git a/games-action/btanks/metadata.xml b/games-action/btanks/metadata.xml
new file mode 100644
index 000000000000..3574b919826a
--- /dev/null
+++ b/games-action/btanks/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <longdescription lang="en">
+"Battle Tanks" is a funny battle on your desk, where you can choose one of three
+vehicles and eliminate your enemy using the whole arsenal of weapons. It has
+original cartoon-like graphics and cool music, it's fun and dynamic, it has
+several network modes for deathmatch and cooperative --- what else is needed to
+have fun with your friends? And all is packed and ready for you in "Battle
+Tanks".
+</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">btanks</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-action/bzflag/Manifest b/games-action/bzflag/Manifest
new file mode 100644
index 000000000000..5f4b12176e8d
--- /dev/null
+++ b/games-action/bzflag/Manifest
@@ -0,0 +1,19 @@
+AUX bzflag-2.4.10-configure.patch 1278 SHA256 32f75e9434b773b08c428723bf85f7285341abb117641c0d6ef40901b523e436 SHA512 177d73ee047984e18dff2f2f15e8e679485a166a51303f61e1a7411e6c330c04d813a824e3d727aa95b251cd9a27a00dc41c229af56f927a9a4adabc96e4813e WHIRLPOOL 9781eb26da5c3ac2b47dd697aa084fdb40f0e6e83f7b6c804fa60ed779429df52af505442684ea9b504c5c75ca1b63a4d61452342d54668231717dfdae82cfe1
+AUX bzflag-2.4.2-nocxxflags.patch 1852 SHA256 79f8cf6e88c6e89eca768538b2cdced77a02f925e85e8ade4a82b730d362d1ee SHA512 15a445261c4e03460cff3d50f08772907c2ba7abed7404393355f8a468b2177ab3c3ddf803f126cc8e095fc09d2799a45a9e99316c0011bbcc7807c376680b85 WHIRLPOOL 10bbb11b119ea9b5e2e921f01d31a552cb78bd43703c189cd6a788b53c8755eb2513e6948594a2914b9cad787528c7aee20b46551aaa1cf906fbf16b015d5474
+AUX bzflag-2.4.4-configure.patch 1278 SHA256 32f75e9434b773b08c428723bf85f7285341abb117641c0d6ef40901b523e436 SHA512 177d73ee047984e18dff2f2f15e8e679485a166a51303f61e1a7411e6c330c04d813a824e3d727aa95b251cd9a27a00dc41c229af56f927a9a4adabc96e4813e WHIRLPOOL 9781eb26da5c3ac2b47dd697aa084fdb40f0e6e83f7b6c804fa60ed779429df52af505442684ea9b504c5c75ca1b63a4d61452342d54668231717dfdae82cfe1
+AUX bzflag-2.4.6-configure.patch 1278 SHA256 32f75e9434b773b08c428723bf85f7285341abb117641c0d6ef40901b523e436 SHA512 177d73ee047984e18dff2f2f15e8e679485a166a51303f61e1a7411e6c330c04d813a824e3d727aa95b251cd9a27a00dc41c229af56f927a9a4adabc96e4813e WHIRLPOOL 9781eb26da5c3ac2b47dd697aa084fdb40f0e6e83f7b6c804fa60ed779429df52af505442684ea9b504c5c75ca1b63a4d61452342d54668231717dfdae82cfe1
+AUX bzflag-2.4.8-configure.patch 1278 SHA256 32f75e9434b773b08c428723bf85f7285341abb117641c0d6ef40901b523e436 SHA512 177d73ee047984e18dff2f2f15e8e679485a166a51303f61e1a7411e6c330c04d813a824e3d727aa95b251cd9a27a00dc41c229af56f927a9a4adabc96e4813e WHIRLPOOL 9781eb26da5c3ac2b47dd697aa084fdb40f0e6e83f7b6c804fa60ed779429df52af505442684ea9b504c5c75ca1b63a4d61452342d54668231717dfdae82cfe1
+DIST bzflag-2.4.10.tar.bz2 13967644 SHA256 0a47454ae4b2fea494581962a554ceb8195084c4d96e97aa572a5fa774699efa SHA512 a120b757d9ea23a189db7f126140d338f6e1c6a34b7f28ca69b2ec15d39c8a5da79aeab622cc6b7227587556bb89904b4a6013b0bb88baa7f01f667d259456a9 WHIRLPOOL e5b35d31aa4fcb974a2720d4ed070f89652c1734de0769cbb461cfb6751f5fc32a48091f25bd91b288717b2a4fbb153a20efdb396580c50c903fc6f9023f81e6
+DIST bzflag-2.4.2.tar.bz2 15971448 SHA256 4f7bc52284cc4b39fc352855e555b2b064c1de6a18f7474e249073070762c811 SHA512 e5645e825f19896ad4dc1e3bf97c9b52ed3838210d97d5532936a9306623283330c9535288af90f86e32c88a1a7996b2c872b9c081558eea48400b86b3a1a6ff WHIRLPOOL 82a5e543a8fdcb80c516394c63901c80c77fc659090f952cb36f65a9fb14c5ca06d6547dc9d347c6abf0ee706c40437f80edf20c424775bf6e202423e025794c
+DIST bzflag-2.4.4.tar.bz2 13922761 SHA256 5842941e53440d2e88c955ddb594964fc5145912f61100832d224c1a017e2ecb SHA512 ee9eefe6a24250f1aa0ac808755f2e3700ea97c559019ca8beefb8d236afd1571314f07a8f19662677526ae364d38617a1a62b356e851c27669cb9acef1a8fd3 WHIRLPOOL c96853e3f1053a9b53c9d6ba27a6f638c2913e87a26d6188151a66f8f78aeeb78fac28e8cefde10d23d65fe02e49b93cd4516993e5b48a6f3f240ec67ab0fc8e
+DIST bzflag-2.4.6.tar.bz2 13919761 SHA256 a44506828d09fe26f06658aae7f579080ecbaef5bd19a938dfed604e0c8afb45 SHA512 b2c82b75a99aa47975d98030104654da6ae3943582a22e18faf157c8929d96ab255a4343e044baa76714b8564c60194b6edbc7b8e28a3352848c471365678205 WHIRLPOOL 069dc60acc93b6159bac330c81a63493e370590ce09b871a17acdfcdf8b9ac6f84c6937ecc29df5d826a475f527f6fdaabf3b26f31ec5ef29824964f43c232de
+DIST bzflag-2.4.8.tar.bz2 14048447 SHA256 43ca4d1775dac4180feb67cc4450b5db82aab9a63e460ac769c8f40d22e03122 SHA512 b83eb4d5297ff8a75193b898a3de6eef7354196cb46f97f4828d7611e72476c3c7f1369dca80f8f3222b9e3a689cbcd7c735652b483b635e7422e18689bb9b82 WHIRLPOOL 9c1c49961e40dcf8d2219329c8448f60e0e0c307e854bc3d04047fe6ab1927e90a27d4e540fe0a2c0308b10fa2c4a123441921c03e4bfad9983595fa0e1da7cb
+EBUILD bzflag-2.4.10.ebuild 1156 SHA256 b75663098b4a8fd7105f91cb20184293ca368273f688ad7bb14a87ec3ae22d78 SHA512 7cfbde67369821f4af8afc45ceb420725ba2f9ad24e2470db631c7127dd4a61fc23344c590c2f0ed25fdec33891ca50f30dcc1891008305265d5d109859dafe3 WHIRLPOOL a904fea8eea34819d6380bf1a8da35a25caf17ddeab577845991033e1aca37f949b053b71b06af12238ce90b12cff0c528678a6339b08c4a00eef5d220a2e2a3
+EBUILD bzflag-2.4.2-r1.ebuild 1338 SHA256 eeb39bf4e4f2b2c739ba7b2d762054f89fc23b5b2f4ab141a8fc72bff158ff57 SHA512 a0c768016ad6673decac06962ee0a31abf5fb366f4877e51a07ccbd677a2c2dabcd66f41e207cc2e4156c3f30fa53bff72a5279a8df71f27ee2473ce83eb2ce4 WHIRLPOOL aa9be59177b5cc8f54228063915527563179f02fe8187ab8fd1fec0395ef25363ab8e24a5892ca348308db2aea999ec61b935090516bd009132bc1e9902837c7
+EBUILD bzflag-2.4.4-r1.ebuild 1155 SHA256 708116747e09644831102e52d65e1e83667eba120fc572fe696c082c65983957 SHA512 e8447c093213c64b3def317f551511ba2a3de2dff062e165051badb8d6dda51e85eb08aa2bf5b4b8970ffcc5ce5ae3f8c7706220dbbf86c08f8ebcd37cca4a9e WHIRLPOOL 21d13ca1c5c49ccd175409446af4611bc0de3ec7d34b1d364757c326aaeedec39a25ac581bc871615b7c7bef6cd76f717359d2064ec73b878c95d40c5077cf12
+EBUILD bzflag-2.4.4.ebuild 1173 SHA256 fc3fef3b582694ef796a5517b066b84306d9ec99ac8aaccbc14d01415b733d04 SHA512 ce4d8837b4ac832cda7081001d9b44e3cf1cc561de27e89e635016a7ff57cb7a07c578481e80271768ce99628d574e2922060cd9e3ec46eaef0516b0494382e8 WHIRLPOOL 5d5009fbf4b17b75c89d473c519c6c9351353decf095a3965a2cd068c69b40215fd8f09a5b4f647500a4b2ca4292f45cfd1f8755c3c7631bb6c68d610feca397
+EBUILD bzflag-2.4.6.ebuild 1155 SHA256 708116747e09644831102e52d65e1e83667eba120fc572fe696c082c65983957 SHA512 e8447c093213c64b3def317f551511ba2a3de2dff062e165051badb8d6dda51e85eb08aa2bf5b4b8970ffcc5ce5ae3f8c7706220dbbf86c08f8ebcd37cca4a9e WHIRLPOOL 21d13ca1c5c49ccd175409446af4611bc0de3ec7d34b1d364757c326aaeedec39a25ac581bc871615b7c7bef6cd76f717359d2064ec73b878c95d40c5077cf12
+EBUILD bzflag-2.4.8.ebuild 1155 SHA256 708116747e09644831102e52d65e1e83667eba120fc572fe696c082c65983957 SHA512 e8447c093213c64b3def317f551511ba2a3de2dff062e165051badb8d6dda51e85eb08aa2bf5b4b8970ffcc5ce5ae3f8c7706220dbbf86c08f8ebcd37cca4a9e WHIRLPOOL 21d13ca1c5c49ccd175409446af4611bc0de3ec7d34b1d364757c326aaeedec39a25ac581bc871615b7c7bef6cd76f717359d2064ec73b878c95d40c5077cf12
+MISC ChangeLog 3302 SHA256 98f10f20023a7548d50b7b42bd8e98ed69bde41cc8a6e377ebd21b1860ee9b72 SHA512 bbc03bfdc52cf5b331847ac8a1ff89fd716d3c0ceeed3f05a4e6f2ade291078219822da3494bea18aed51dbeae6e6f1ff30d2b4521036caf0d274c73f2273da9 WHIRLPOOL 9620025e99daea45404c4123a6fc23d0911cc4e00804c6db891f4d325db1d1f6527911e011567eaac56503eb11b089021013eb9042a9a9d08554c9958d6d14fe
+MISC ChangeLog-2015 10321 SHA256 3157a986adb171572446a4f0ab77ff24bb166ef49b9fbe03635796c492d7e3f7 SHA512 a9d62a43e114b7fa9f7a5e0f2273754d9e85f02a3a808949d6fb4e602170b80d29da6cc406d58678c1305b9b5acb5af64909e879ac35f0de9a5c4b8fec085bf4 WHIRLPOOL bdddf1e25797dbd226bf376e75fb16d82d053ef263a86fad1a2244bf49af668ad6a507ab24361aae43053d237feda5a3e908f1afae2ec450c0a2d9d7629a0eb7
+MISC metadata.xml 329 SHA256 b80e45acfd5e80f89cd89c99718f5c38efac518b1a094b3f0e5e960af8261eda SHA512 4f9e157aef5067fb6a97fd7d7e68f758a280a37b8093c7291b45ada10169ca8c79ee0e7770fdbcc4d2de517b7bf05f1e3585585c72c1fdf7692d4e568f5d8301 WHIRLPOOL 5f32d6d932e6a7cf9b93ff8790b266f101b10f488876138a8cfc91e8d17d90ac1d8b1fe31f0a4920e6186d94ac6e4c7198d18c6c7173c0d5755a37431fe3f710
diff --git a/games-action/bzflag/bzflag-2.4.10.ebuild b/games-action/bzflag/bzflag-2.4.10.ebuild
new file mode 100644
index 000000000000..909cc8440797
--- /dev/null
+++ b/games-action/bzflag/bzflag-2.4.10.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils flag-o-matic autotools
+
+DESCRIPTION="3D tank combat simulator game"
+HOMEPAGE="http://www.bzflag.org/"
+SRC_URI="https://download.bzflag.org/bzflag/source/${PV}/${P}.tar.bz2"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="dedicated upnp"
+
+DEPEND="
+ net-dns/c-ares
+ >=net-misc/curl-7.15.0
+ sys-libs/ncurses:0
+ sys-libs/zlib
+ !dedicated? (
+ media-libs/libsdl2[joystick,sound,video]
+ virtual/glu
+ virtual/opengl )
+ upnp? ( net-libs/miniupnpc )"
+RDEPEND=${DEPEND}
+
+PATCHES=(
+ "${FILESDIR}"/${P}-configure.patch
+)
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ local myconf
+
+ if use dedicated ; then
+ ewarn
+ ewarn "You are building a server-only copy of BZFlag"
+ ewarn
+ myconf="--disable-client --without-SDL"
+ fi
+
+ econf \
+ $(use_enable upnp UPnP) \
+ ${myconf}
+}
+
+src_install() {
+ DOCS="AUTHORS ChangeLog DEVINFO PORTING README README.Linux" \
+ default
+
+ if ! use dedicated ; then
+ newicon data/bzflag-48x48.png ${PN}.png
+ make_desktop_entry ${PN} "BZFlag"
+ fi
+
+ prune_libtool_files --modules
+}
diff --git a/games-action/bzflag/bzflag-2.4.2-r1.ebuild b/games-action/bzflag/bzflag-2.4.2-r1.ebuild
new file mode 100644
index 000000000000..f1277cefe7c0
--- /dev/null
+++ b/games-action/bzflag/bzflag-2.4.2-r1.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit autotools eutils flag-o-matic games
+
+DESCRIPTION="3D tank combat simulator game"
+HOMEPAGE="http://www.bzflag.org/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="dedicated sdl"
+
+UIDEPEND="virtual/opengl
+ virtual/glu
+ media-libs/libsdl[sound,joystick,video]
+ media-libs/glew
+ x11-libs/libICE
+ x11-libs/libSM
+ x11-libs/libX11
+ x11-libs/libXau
+ x11-libs/libXdmcp
+ x11-libs/libXext
+ x11-libs/libXi
+ x11-libs/libXmu
+ x11-libs/libXt
+ x11-libs/libXxf86vm"
+
+DEPEND=">=net-misc/curl-7.15.0
+ sys-libs/ncurses
+ net-dns/c-ares
+ sdl? ( ${UIDEPEND} )
+ !sdl? ( !dedicated? ( ${UIDEPEND} ) )"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-nocxxflags.patch
+ eautoreconf
+}
+
+src_configure() {
+ local myconf
+
+ if use dedicated && ! use sdl ; then
+ ewarn
+ ewarn "You are building a server-only copy of BZFlag"
+ ewarn
+ myconf="--disable-client --without-SDL"
+ fi
+ egamesconf \
+ --disable-ccachetest \
+ --without-regex \
+ --disable-UPnP \
+ ${myconf}
+}
+
+src_install() {
+ default
+ dodoc PORTING DEVINFO
+
+ if use sdl || ! use dedicated ; then
+ newicon "data/bzflag-48x48.png" ${PN}.png
+ make_desktop_entry ${PN} "BZFlag"
+ fi
+
+ prune_libtool_files --modules
+ prepgamesdirs
+}
diff --git a/games-action/bzflag/bzflag-2.4.4-r1.ebuild b/games-action/bzflag/bzflag-2.4.4-r1.ebuild
new file mode 100644
index 000000000000..c5cf9c2a23ef
--- /dev/null
+++ b/games-action/bzflag/bzflag-2.4.4-r1.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils flag-o-matic autotools
+
+DESCRIPTION="3D tank combat simulator game"
+HOMEPAGE="http://www.bzflag.org/"
+SRC_URI="https://download.bzflag.org/bzflag/source/${PV}/${P}.tar.bz2"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="dedicated upnp"
+
+DEPEND="
+ net-dns/c-ares
+ >=net-misc/curl-7.15.0
+ sys-libs/ncurses:0
+ sys-libs/zlib
+ !dedicated? (
+ media-libs/libsdl[joystick,sound,video]
+ virtual/glu
+ virtual/opengl )
+ upnp? ( net-libs/miniupnpc )"
+RDEPEND=${DEPEND}
+
+PATCHES=(
+ "${FILESDIR}"/${P}-configure.patch
+)
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ local myconf
+
+ if use dedicated ; then
+ ewarn
+ ewarn "You are building a server-only copy of BZFlag"
+ ewarn
+ myconf="--disable-client --without-SDL"
+ fi
+
+ econf \
+ $(use_enable upnp UPnP) \
+ ${myconf}
+}
+
+src_install() {
+ DOCS="AUTHORS ChangeLog DEVINFO PORTING README README.Linux" \
+ default
+
+ if ! use dedicated ; then
+ newicon data/bzflag-48x48.png ${PN}.png
+ make_desktop_entry ${PN} "BZFlag"
+ fi
+
+ prune_libtool_files --modules
+}
diff --git a/games-action/bzflag/bzflag-2.4.4.ebuild b/games-action/bzflag/bzflag-2.4.4.ebuild
new file mode 100644
index 000000000000..09b86bbbfa0e
--- /dev/null
+++ b/games-action/bzflag/bzflag-2.4.4.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit autotools eutils flag-o-matic games
+
+DESCRIPTION="3D tank combat simulator game"
+HOMEPAGE="http://www.bzflag.org/"
+SRC_URI="https://download.bzflag.org/bzflag/source/${PV}/${P}.tar.bz2"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="dedicated upnp"
+
+UIDEPEND=""
+DEPEND=">=net-misc/curl-7.15.0
+ sys-libs/ncurses:0
+ net-dns/c-ares
+ sys-libs/zlib
+ upnp? ( net-libs/miniupnpc )
+ !dedicated? (
+ virtual/opengl
+ virtual/glu
+ media-libs/libsdl[sound,joystick,video] )"
+RDEPEND=${DEPEND}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-configure.patch
+ eautoreconf
+}
+
+src_configure() {
+ local myconf
+
+ if use dedicated ; then
+ ewarn
+ ewarn "You are building a server-only copy of BZFlag"
+ ewarn
+ myconf="--disable-client --without-SDL"
+ fi
+ egamesconf \
+ $(use_enable upnp UPnP) \
+ ${myconf}
+}
+
+src_install() {
+ DOCS="AUTHORS ChangeLog DEVINFO PORTING README README.Linux" \
+ default
+
+ if ! use dedicated ; then
+ newicon data/bzflag-48x48.png ${PN}.png
+ make_desktop_entry ${PN} "BZFlag"
+ fi
+
+ prune_libtool_files --modules
+ prepgamesdirs
+}
diff --git a/games-action/bzflag/bzflag-2.4.6.ebuild b/games-action/bzflag/bzflag-2.4.6.ebuild
new file mode 100644
index 000000000000..c5cf9c2a23ef
--- /dev/null
+++ b/games-action/bzflag/bzflag-2.4.6.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils flag-o-matic autotools
+
+DESCRIPTION="3D tank combat simulator game"
+HOMEPAGE="http://www.bzflag.org/"
+SRC_URI="https://download.bzflag.org/bzflag/source/${PV}/${P}.tar.bz2"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="dedicated upnp"
+
+DEPEND="
+ net-dns/c-ares
+ >=net-misc/curl-7.15.0
+ sys-libs/ncurses:0
+ sys-libs/zlib
+ !dedicated? (
+ media-libs/libsdl[joystick,sound,video]
+ virtual/glu
+ virtual/opengl )
+ upnp? ( net-libs/miniupnpc )"
+RDEPEND=${DEPEND}
+
+PATCHES=(
+ "${FILESDIR}"/${P}-configure.patch
+)
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ local myconf
+
+ if use dedicated ; then
+ ewarn
+ ewarn "You are building a server-only copy of BZFlag"
+ ewarn
+ myconf="--disable-client --without-SDL"
+ fi
+
+ econf \
+ $(use_enable upnp UPnP) \
+ ${myconf}
+}
+
+src_install() {
+ DOCS="AUTHORS ChangeLog DEVINFO PORTING README README.Linux" \
+ default
+
+ if ! use dedicated ; then
+ newicon data/bzflag-48x48.png ${PN}.png
+ make_desktop_entry ${PN} "BZFlag"
+ fi
+
+ prune_libtool_files --modules
+}
diff --git a/games-action/bzflag/bzflag-2.4.8.ebuild b/games-action/bzflag/bzflag-2.4.8.ebuild
new file mode 100644
index 000000000000..c5cf9c2a23ef
--- /dev/null
+++ b/games-action/bzflag/bzflag-2.4.8.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils flag-o-matic autotools
+
+DESCRIPTION="3D tank combat simulator game"
+HOMEPAGE="http://www.bzflag.org/"
+SRC_URI="https://download.bzflag.org/bzflag/source/${PV}/${P}.tar.bz2"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="dedicated upnp"
+
+DEPEND="
+ net-dns/c-ares
+ >=net-misc/curl-7.15.0
+ sys-libs/ncurses:0
+ sys-libs/zlib
+ !dedicated? (
+ media-libs/libsdl[joystick,sound,video]
+ virtual/glu
+ virtual/opengl )
+ upnp? ( net-libs/miniupnpc )"
+RDEPEND=${DEPEND}
+
+PATCHES=(
+ "${FILESDIR}"/${P}-configure.patch
+)
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ local myconf
+
+ if use dedicated ; then
+ ewarn
+ ewarn "You are building a server-only copy of BZFlag"
+ ewarn
+ myconf="--disable-client --without-SDL"
+ fi
+
+ econf \
+ $(use_enable upnp UPnP) \
+ ${myconf}
+}
+
+src_install() {
+ DOCS="AUTHORS ChangeLog DEVINFO PORTING README README.Linux" \
+ default
+
+ if ! use dedicated ; then
+ newicon data/bzflag-48x48.png ${PN}.png
+ make_desktop_entry ${PN} "BZFlag"
+ fi
+
+ prune_libtool_files --modules
+}
diff --git a/games-action/bzflag/files/bzflag-2.4.10-configure.patch b/games-action/bzflag/files/bzflag-2.4.10-configure.patch
new file mode 100644
index 000000000000..b280621f6ec2
--- /dev/null
+++ b/games-action/bzflag/files/bzflag-2.4.10-configure.patch
@@ -0,0 +1,37 @@
+diff -ru bzflag-2.4.4.orig/configure.ac bzflag-2.4.4/configure.ac
+--- bzflag-2.4.4.orig/configure.ac 2016-02-14 19:09:51.000000000 -0500
++++ bzflag-2.4.4/configure.ac 2016-05-05 16:35:35.475935345 -0400
+@@ -215,7 +215,7 @@
+ AC_SUBST(AR)
+ AC_SUBST(AR_FLAGS)
+
+-AC_PATH_PROG(CCACHE, ccache)
++AC_PATH_PROG(CCACHE, ccachex)
+ if test "$CCACHE" ; then
+ CC="ccache $CC"
+ CXX="ccache $CXX"
+@@ -747,13 +747,13 @@
+ #
+ # the GCC version is known to be at least 4.3 because it has C++0x support
+ # possible future warnings: -Wconversion (1894) -Wfloat-equal (317)
+-FLAGS="-Wall -Wextra -Wcast-qual -Wredundant-decls -Wshadow -Wundef -pedantic"
++FLAGSx="-Wall -Wextra -Wcast-qual -Wredundant-decls -Wshadow -Wundef -pedantic"
+ case $host_os in
+ linux*)
+ AC_DEFINE(HALF_RATE_AUDIO, 1, [Half rate Audio])
+ CONF_CFLAGS="$CONF_CFLAGS $FLAGS"
+ CONF_CXXFLAGS="$CONF_CXXFLAGS $FLAGS"
+- case $host_vendor in
++ case $host_vendorx in
+ pc)
+ if expr `$CC -dumpversion` \>= "3.4" > /dev/null ; then
+ FLAGS=-mtune
+@@ -836,7 +836,7 @@
+ CXXFLAGS="$user_CXXFLAGS"
+ AC_DEFINE(DEBUG, 1, [Debugging enabled])
+ else
+- if test "$GCC" = yes ; then
++ if test "$GCC" = yesx ; then
+ case "`$CC --version 2>&1`" in
+ *LLVM*)
+ # Apple LLVM falsely claims to be GCC
diff --git a/games-action/bzflag/files/bzflag-2.4.2-nocxxflags.patch b/games-action/bzflag/files/bzflag-2.4.2-nocxxflags.patch
new file mode 100644
index 000000000000..0b74d57bc41e
--- /dev/null
+++ b/games-action/bzflag/files/bzflag-2.4.2-nocxxflags.patch
@@ -0,0 +1,56 @@
+--- configure.ac.old 2013-05-12 13:33:05.738250140 +0200
++++ configure.ac 2013-05-12 13:33:24.732927312 +0200
+@@ -89,7 +89,7 @@
+ AM_INIT_AUTOMAKE([1.6 dist-zip dist-bzip2])
+
+ dnl all configured definitions get written here
+-AM_CONFIG_HEADER([include/config.h])
++AC_CONFIG_HEADER([include/config.h])
+
+ AC_SUBST(MAJOR_VERSION)
+ AC_SUBST(MINOR_VERSION)
+@@ -689,13 +689,9 @@
+ else
+ FLAGS="$FLAGS=$host_cpu"
+ fi
+- CONF_CFLAGS="$CONF_CFLAGS $FLAGS";
+- CONF_CXXFLAGS="$CONF_CXXFLAGS $FLAGS";
+ CONF_CXXFLAGS="$CONF_CXXFLAGS -fsigned-char";;
+ ppc)
+ FLAGS="-mcpu=$host_cpu"
+- CONF_CFLAGS="$CONF_CFLAGS $FLAGS";
+- CONF_CXXFLAGS="$CONF_CXXFLAGS $FLAGS";;
+ esac;;
+ cygwin)
+ AC_DEFINE(HALF_RATE_AUDIO, 1, [Half rate Audio])
+@@ -755,8 +751,6 @@
+ else
+ if test "$GCC" = yes ; then
+ OPTIMIZE="-fexpensive-optimizations"
+- CONF_CFLAGS="$CONF_CFLAGS $OPTIMIZE"
+- CONF_CXXFLAGS="$CONF_CXXFLAGS $OPTIMIZE"
+ fi
+ AC_DEFINE(NDEBUG, 1, [Debugging disabled])
+ fi
+--- src/other/ares/configure.ac.old 2013-05-12 13:44:25.147676903 +0200
++++ src/other/ares/configure.ac 2013-05-12 13:44:39.353684194 +0200
+@@ -7,7 +7,7 @@
+ CARES_OVERRIDE_AUTOCONF
+
+ AC_CONFIG_SRCDIR([ares_ipv6.h])
+-AM_CONFIG_HEADER([ares_config.h ares_build.h])
++AC_CONFIG_HEADER([ares_config.h ares_build.h])
+ AC_CONFIG_MACRO_DIR([m4])
+ AM_MAINTAINER_MODE
+
+--- src/other/curl/configure.ac.old 2013-05-12 13:49:00.814352825 +0200
++++ src/other/curl/configure.ac 2013-05-12 13:49:15.216341340 +0200
+@@ -34,7 +34,7 @@
+ terms of the curl license; see COPYING for more details])
+
+ AC_CONFIG_SRCDIR([lib/urldata.h])
+-AM_CONFIG_HEADER(lib/curl_config.h src/curl_config.h include/curl/curlbuild.h)
++AC_CONFIG_HEADER(lib/curl_config.h src/curl_config.h include/curl/curlbuild.h)
+ AC_CONFIG_MACRO_DIR([m4])
+ AM_MAINTAINER_MODE
+
diff --git a/games-action/bzflag/files/bzflag-2.4.4-configure.patch b/games-action/bzflag/files/bzflag-2.4.4-configure.patch
new file mode 100644
index 000000000000..b280621f6ec2
--- /dev/null
+++ b/games-action/bzflag/files/bzflag-2.4.4-configure.patch
@@ -0,0 +1,37 @@
+diff -ru bzflag-2.4.4.orig/configure.ac bzflag-2.4.4/configure.ac
+--- bzflag-2.4.4.orig/configure.ac 2016-02-14 19:09:51.000000000 -0500
++++ bzflag-2.4.4/configure.ac 2016-05-05 16:35:35.475935345 -0400
+@@ -215,7 +215,7 @@
+ AC_SUBST(AR)
+ AC_SUBST(AR_FLAGS)
+
+-AC_PATH_PROG(CCACHE, ccache)
++AC_PATH_PROG(CCACHE, ccachex)
+ if test "$CCACHE" ; then
+ CC="ccache $CC"
+ CXX="ccache $CXX"
+@@ -747,13 +747,13 @@
+ #
+ # the GCC version is known to be at least 4.3 because it has C++0x support
+ # possible future warnings: -Wconversion (1894) -Wfloat-equal (317)
+-FLAGS="-Wall -Wextra -Wcast-qual -Wredundant-decls -Wshadow -Wundef -pedantic"
++FLAGSx="-Wall -Wextra -Wcast-qual -Wredundant-decls -Wshadow -Wundef -pedantic"
+ case $host_os in
+ linux*)
+ AC_DEFINE(HALF_RATE_AUDIO, 1, [Half rate Audio])
+ CONF_CFLAGS="$CONF_CFLAGS $FLAGS"
+ CONF_CXXFLAGS="$CONF_CXXFLAGS $FLAGS"
+- case $host_vendor in
++ case $host_vendorx in
+ pc)
+ if expr `$CC -dumpversion` \>= "3.4" > /dev/null ; then
+ FLAGS=-mtune
+@@ -836,7 +836,7 @@
+ CXXFLAGS="$user_CXXFLAGS"
+ AC_DEFINE(DEBUG, 1, [Debugging enabled])
+ else
+- if test "$GCC" = yes ; then
++ if test "$GCC" = yesx ; then
+ case "`$CC --version 2>&1`" in
+ *LLVM*)
+ # Apple LLVM falsely claims to be GCC
diff --git a/games-action/bzflag/files/bzflag-2.4.6-configure.patch b/games-action/bzflag/files/bzflag-2.4.6-configure.patch
new file mode 100644
index 000000000000..b280621f6ec2
--- /dev/null
+++ b/games-action/bzflag/files/bzflag-2.4.6-configure.patch
@@ -0,0 +1,37 @@
+diff -ru bzflag-2.4.4.orig/configure.ac bzflag-2.4.4/configure.ac
+--- bzflag-2.4.4.orig/configure.ac 2016-02-14 19:09:51.000000000 -0500
++++ bzflag-2.4.4/configure.ac 2016-05-05 16:35:35.475935345 -0400
+@@ -215,7 +215,7 @@
+ AC_SUBST(AR)
+ AC_SUBST(AR_FLAGS)
+
+-AC_PATH_PROG(CCACHE, ccache)
++AC_PATH_PROG(CCACHE, ccachex)
+ if test "$CCACHE" ; then
+ CC="ccache $CC"
+ CXX="ccache $CXX"
+@@ -747,13 +747,13 @@
+ #
+ # the GCC version is known to be at least 4.3 because it has C++0x support
+ # possible future warnings: -Wconversion (1894) -Wfloat-equal (317)
+-FLAGS="-Wall -Wextra -Wcast-qual -Wredundant-decls -Wshadow -Wundef -pedantic"
++FLAGSx="-Wall -Wextra -Wcast-qual -Wredundant-decls -Wshadow -Wundef -pedantic"
+ case $host_os in
+ linux*)
+ AC_DEFINE(HALF_RATE_AUDIO, 1, [Half rate Audio])
+ CONF_CFLAGS="$CONF_CFLAGS $FLAGS"
+ CONF_CXXFLAGS="$CONF_CXXFLAGS $FLAGS"
+- case $host_vendor in
++ case $host_vendorx in
+ pc)
+ if expr `$CC -dumpversion` \>= "3.4" > /dev/null ; then
+ FLAGS=-mtune
+@@ -836,7 +836,7 @@
+ CXXFLAGS="$user_CXXFLAGS"
+ AC_DEFINE(DEBUG, 1, [Debugging enabled])
+ else
+- if test "$GCC" = yes ; then
++ if test "$GCC" = yesx ; then
+ case "`$CC --version 2>&1`" in
+ *LLVM*)
+ # Apple LLVM falsely claims to be GCC
diff --git a/games-action/bzflag/files/bzflag-2.4.8-configure.patch b/games-action/bzflag/files/bzflag-2.4.8-configure.patch
new file mode 100644
index 000000000000..b280621f6ec2
--- /dev/null
+++ b/games-action/bzflag/files/bzflag-2.4.8-configure.patch
@@ -0,0 +1,37 @@
+diff -ru bzflag-2.4.4.orig/configure.ac bzflag-2.4.4/configure.ac
+--- bzflag-2.4.4.orig/configure.ac 2016-02-14 19:09:51.000000000 -0500
++++ bzflag-2.4.4/configure.ac 2016-05-05 16:35:35.475935345 -0400
+@@ -215,7 +215,7 @@
+ AC_SUBST(AR)
+ AC_SUBST(AR_FLAGS)
+
+-AC_PATH_PROG(CCACHE, ccache)
++AC_PATH_PROG(CCACHE, ccachex)
+ if test "$CCACHE" ; then
+ CC="ccache $CC"
+ CXX="ccache $CXX"
+@@ -747,13 +747,13 @@
+ #
+ # the GCC version is known to be at least 4.3 because it has C++0x support
+ # possible future warnings: -Wconversion (1894) -Wfloat-equal (317)
+-FLAGS="-Wall -Wextra -Wcast-qual -Wredundant-decls -Wshadow -Wundef -pedantic"
++FLAGSx="-Wall -Wextra -Wcast-qual -Wredundant-decls -Wshadow -Wundef -pedantic"
+ case $host_os in
+ linux*)
+ AC_DEFINE(HALF_RATE_AUDIO, 1, [Half rate Audio])
+ CONF_CFLAGS="$CONF_CFLAGS $FLAGS"
+ CONF_CXXFLAGS="$CONF_CXXFLAGS $FLAGS"
+- case $host_vendor in
++ case $host_vendorx in
+ pc)
+ if expr `$CC -dumpversion` \>= "3.4" > /dev/null ; then
+ FLAGS=-mtune
+@@ -836,7 +836,7 @@
+ CXXFLAGS="$user_CXXFLAGS"
+ AC_DEFINE(DEBUG, 1, [Debugging enabled])
+ else
+- if test "$GCC" = yes ; then
++ if test "$GCC" = yesx ; then
+ case "`$CC --version 2>&1`" in
+ *LLVM*)
+ # Apple LLVM falsely claims to be GCC
diff --git a/games-action/bzflag/metadata.xml b/games-action/bzflag/metadata.xml
new file mode 100644
index 000000000000..66090a0275ee
--- /dev/null
+++ b/games-action/bzflag/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">bzflag</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-action/chickens/Manifest b/games-action/chickens/Manifest
new file mode 100644
index 000000000000..b865dfc7d5cd
--- /dev/null
+++ b/games-action/chickens/Manifest
@@ -0,0 +1,6 @@
+DIST ChickensForLinux-Linux-0.2.4.tar.gz 1455207 SHA256 604dc614793b5bee2346639df14ab846cf878fed09ef695804d5aa21d85b518b SHA512 d94a70818a766fde443e86184418990d789246c239da01c6c1a2c9e7d8c1d6bb52ed28efbb4ecdb6b079c585e1ba18bc8efcd4f1cbf718ff39757831265c7a78 WHIRLPOOL 2b1d7c088dac8d975eb7b45b138f6786ae6aaa6bcaf5be1554b80f8fa397560a43d209c0fe5fd0491531b1f1e41db1706482bab23c85f00f86482db0b3070947
+EBUILD chickens-0.2.4-r1.ebuild 1468 SHA256 aa39439463f849cb0a0bd6a47eaa9ffb5331eb0f12c04bc53a5905aef372698d SHA512 20715e652c0c8554eb6a443f689e0074f2f964ad327c16a8aab466aac5e969b22c8c6745101c1eec338a0daa8969a9996a6fbf276019aa68d08900d06d7add55 WHIRLPOOL 05d540e5a1691c0b043cde15ba5863a3ec709939a444e7410dccc6c393f68ed9c796850de2ccc8a2ef8042fb375f502afb9cf5e8bc5de85eaa182acacecf3b3d
+EBUILD chickens-0.2.4.ebuild 1355 SHA256 2c37af45c60e081be7a471d2705d351f7225e6c6666856322d03fc48801826da SHA512 a10c30865121c965140026a5ce4b42bd7955b5831a73d87a61b41bf9a7535f642155ffc60feed5828079fcf242523e44b8712aa1976de5ba9f75796f78974324 WHIRLPOOL 4e2f69b42fbc964acc43e43764a760851ee48943f1ddb54f77b2da29f2ba5f33864f466a02a7c70460ce943893f8864e30f363320add0d09c73a440c224e4a85
+MISC ChangeLog 3261 SHA256 393a898ebc0f931930866d169562554411dfbfdbec0c4e3b12c0bc59803dcf90 SHA512 7b3cc06593187d744cd936b481341dd064c33abb6d84e6b2445b49c46e6c775f24f36b976eef8289937dbe8bb21477255bc6e8e931a3fd06e9e1dd4974434c7b WHIRLPOOL 7bc3f27f47d4d6f9676ea0d56b3272d1ed1e5c2554dd64b35ba6d775ad57bb89ff6f39277db5b4e0d25c43dee35f6840ea1639ae505e7903663c03ee7c77008a
+MISC ChangeLog-2015 2492 SHA256 c6486d2d03dd40260d44cb9353d3b8f693a011a17426ef98dbc785448a189016 SHA512 930a2aac2f16dd045e88d170a87f4a3d0f06bb59f94a8f9e2878ec3e2c016cde46735983959e9f4cb805004ddf8404e0fc51bdbae773b03aff573052974ab241 WHIRLPOOL 4d928d224cc36c431327973b8f04727bfa5dae35f3ca358c21aec013d52fbeedf38b7560302a5cb2d28633a8b0e4ae72ad336ce3adcab3462093a07dd0093df7
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-action/chickens/chickens-0.2.4-r1.ebuild b/games-action/chickens/chickens-0.2.4-r1.ebuild
new file mode 100644
index 000000000000..258e87e5303c
--- /dev/null
+++ b/games-action/chickens/chickens-0.2.4-r1.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils user
+
+MY_P="ChickensForLinux-Linux-${PV}"
+DESCRIPTION="Target chickens with rockets and shotguns. Funny"
+HOMEPAGE="http://www.chickensforlinux.com/"
+SRC_URI="http://www.chickensforlinux.com/${MY_P}.tar.gz"
+
+LICENSE="all-rights-reserved"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+RESTRICT="mirror bindist"
+
+DEPEND="<media-libs/allegro-5"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${PN}
+
+pkg_setup(){
+ enewgroup gamestat 36
+}
+
+src_prepare() {
+ default
+
+ sed -i \
+ -e "s:HighScores:/var/games//${PN}/HighScores:" \
+ -e "s:....\(.\)\(_\)\(.*.4x0\)\(.\):M\4\2\x42\x6Fn\1s\2:" \
+ highscore.cpp HighScores || die
+ sed -i \
+ -e "s:options.cfg:/etc/${PN}/options.cfg:" \
+ -e "s:\"sound/:\"/usr/share/${PN}/sound/:" \
+ -e "s:\"dat/:\"/usr/share/${PN}/dat/:" \
+ main.cpp README || die
+ sed -i \
+ -e '/^CPPFLAGS/d' \
+ -e 's:g++:\\$(CXX) \\$(CXXFLAGS) \\$(LDFLAGS):' \
+ configure || die
+}
+
+src_configure() {
+ # econf (sometimes) fails, see https://bugs.gentoo.org/588544
+ bash ./configure || die
+}
+
+src_install() {
+ dobin ${PN}
+ insinto /usr/share/${PN}
+ doins -r dat sound
+ dodoc AUTHOR README
+ insinto /var/games/${PN}
+ doins HighScores
+ insinto /etc/${PN}
+ doins options.cfg
+ make_desktop_entry ${PN} Chickens
+
+ fowners root:gamestat /usr/bin/${PN} /var/games/${PN}/HighScores
+ fperms 2755 /usr/bin/${PN}
+ fperms 660 /var/games/${PN}/HighScores
+}
diff --git a/games-action/chickens/chickens-0.2.4.ebuild b/games-action/chickens/chickens-0.2.4.ebuild
new file mode 100644
index 000000000000..b71e496fd44a
--- /dev/null
+++ b/games-action/chickens/chickens-0.2.4.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils games
+
+MY_P="ChickensForLinux-Linux-${PV}"
+DESCRIPTION="Target chickens with rockets and shotguns. Funny"
+HOMEPAGE="http://www.chickensforlinux.com/"
+SRC_URI="http://www.chickensforlinux.com/${MY_P}.tar.gz"
+
+LICENSE="all-rights-reserved"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+RESTRICT="mirror bindist"
+
+DEPEND="<media-libs/allegro-5"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${PN}
+
+src_prepare() {
+ sed -i \
+ -e "s:HighScores:${GAMES_STATEDIR}/${PN}/HighScores:" \
+ -e "s:....\(.\)\(_\)\(.*.4x0\)\(.\):M\4\2\x42\x6Fn\1s\2:" \
+ highscore.cpp HighScores || die
+ sed -i \
+ -e "s:options.cfg:${GAMES_SYSCONFDIR}/${PN}/options.cfg:" \
+ -e "s:\"sound/:\"${GAMES_DATADIR}/${PN}/sound/:" \
+ -e "s:\"dat/:\"${GAMES_DATADIR}/${PN}/dat/:" \
+ main.cpp README || die
+ sed -i \
+ -e '/^CPPFLAGS/d' \
+ -e 's:g++:\\$(CXX) \\$(CXXFLAGS) \\$(LDFLAGS):' \
+ configure || die
+}
+
+src_configure() {
+ bash ./configure || die
+}
+
+src_install() {
+ dogamesbin ${PN}
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r dat sound
+ dodoc AUTHOR README
+ insinto "${GAMES_STATEDIR}"/${PN}
+ doins HighScores
+ insinto "${GAMES_SYSCONFDIR}"/${PN}
+ doins options.cfg
+ fperms g+w "${GAMES_STATEDIR}"/${PN}/HighScores
+ make_desktop_entry ${PN} Chickens
+ prepgamesdirs
+}
diff --git a/games-action/chickens/metadata.xml b/games-action/chickens/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-action/chickens/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 type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/games-action/chromium-bsu/Manifest b/games-action/chromium-bsu/Manifest
new file mode 100644
index 000000000000..4ebc952bdd3d
--- /dev/null
+++ b/games-action/chromium-bsu/Manifest
@@ -0,0 +1,6 @@
+AUX chromium-bsu-0.9.15.1-gcc6.patch 4183 SHA256 e216d79be1f50b339b9a1fb145db109a0af473ee1ba0be77830ad132af900ca5 SHA512 dd6c35feba99ae8654840cbe433961f054412bc40b0221aa0bc0709723dd4f0ed91b35f82ed74f652ce2f9848093c861f79cefecae147a84be1705a16e1cdc2e WHIRLPOOL da25b1817bbc64f60bce01873c752adaa79ee03a7179d61938bfaf6aea20381c9db54063981be1c27543c4058c5e2e077eb3bb9a4f18c16f4359ebbea502edfa
+DIST chromium-bsu-0.9.15.1.tar.gz 1689634 SHA256 861b4dc01b662f3d3d03a8e20e76b1b4abd336910e05b770e6e6df0ce2ac8405 SHA512 1e62161a10a5eb4246c0e04a13e7d8b521218aa709cced5bed1440055bb91bbcff45a85e544bdc6854f1ed727ea15257d34a3c988c65818bfbfe8004ac76c104 WHIRLPOOL 5f8b8d108e84698e0465c7ab098f94118bb135566c7e5caf6d892bfff5005e730ca8409c3a3dd50e63aa303015b320d18a18a41fb3f58c0af46e67b6b314611d
+EBUILD chromium-bsu-0.9.15.1-r1.ebuild 1282 SHA256 1c30e5e4e699e3f6d6e1e43fa3ae278f48088fc6c79ad47d2696a83725a7cf44 SHA512 4f124e2bbd73c425d3f7747797d453e8a3d00457e5c7c49e554f114e282b60b7a3eb45710c3c414f93cafb505e4a2162ff9d381630f26cda264c7a043243b688 WHIRLPOOL 9b1ee07e335ad84f9f960366de7c1a94260f71fb7903cd487894ad9629ce8bee48ba5255263843dcd427f31f833bb207c660595a4524d52b12d95b135f85bdb4
+MISC ChangeLog 2452 SHA256 a107fee5325494910ab80dc40158287f129e034d96142cc01c0abebd04455c03 SHA512 188e0411b75bfa2286fd5b6e9ee76c663e95aedcc0e8a021e8f63ccc73776df2f2d99cdc424b970e7619b66f016577474e1168741eb23442b00bdbcbcc669890 WHIRLPOOL ed99b7479013f82e0a998ac18f60b2312c4ca38c5a29e57ff863d5bdf221398578fc338e2a1ced0bdc20a56981a0d5dcf2b26d05b7ce14e66b4c9ecdcaa7e264
+MISC ChangeLog-2015 8739 SHA256 dbcc9e0a2d45d7f04a518f2057c250d4c0fdba059adb65aa25608d7bac6feea1 SHA512 c28ef59a29465c50d076c24e06f15e7a77d49072a0aef8ce7a28501f88d13249e14cc701e80c962ca9cefcb000f56a4cd0aec59cebca0a1e57bd611c8406691b WHIRLPOOL 9c21701d066fbff9e2d5c6d13b1aa9de391c762374a2f58a6316e1b0b8b109d0090c0b2c4db2709428909fd8a1d7e4268c57d2eef851ac1f8bbc585f18f2bbe2
+MISC metadata.xml 484 SHA256 161ff80bbe7bc003cce599b68895c74812bec3cf6a1513997b519c4be546a09e SHA512 7695d9d521352e0147da5357117ddf30ca854c2bd78948f79a6dbf5151ca482302f56a9ecc7e0384ca11d54b95623309011392bfa61753f0a17966f7bedda86f WHIRLPOOL 22c21caa9798623acf039d53db127be6a3612742b0087702e9f55a9765865efcb0708a06603a5ae016218582b7c69dd57a81bc3f816085de05a1a39b7550dd3e
diff --git a/games-action/chromium-bsu/chromium-bsu-0.9.15.1-r1.ebuild b/games-action/chromium-bsu/chromium-bsu-0.9.15.1-r1.ebuild
new file mode 100644
index 000000000000..0970ffa552fc
--- /dev/null
+++ b/games-action/chromium-bsu/chromium-bsu-0.9.15.1-r1.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils gnome2-utils
+
+DESCRIPTION="Chromium B.S.U. - an arcade game"
+HOMEPAGE="http://chromium-bsu.sourceforge.net/"
+SRC_URI="mirror://sourceforge/chromium-bsu/${P}.tar.gz"
+
+LICENSE="Clarified-Artistic"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="mixer nls +sdl"
+
+RDEPEND="
+ media-fonts/dejavu
+ media-libs/quesoglc
+ media-libs/glpng
+ virtual/opengl
+ virtual/glu
+ x11-libs/libXmu
+ mixer? ( media-libs/sdl-mixer )
+ !mixer? (
+ media-libs/freealut
+ media-libs/openal
+ )
+ nls? ( virtual/libintl )
+ sdl? (
+ media-libs/libsdl[X]
+ media-libs/sdl-image[png]
+ )
+ !sdl? ( media-libs/freeglut )"
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )"
+
+PATCHES=( "${FILESDIR}"/${P}-gcc6.patch )
+
+src_configure() {
+ econf \
+ --disable-ftgl \
+ --enable-glc \
+ $(use_enable mixer sdlmixer) \
+ $(use_enable !mixer openal) \
+ $(use_enable nls) \
+ $(use_enable sdl) \
+ $(use_enable sdl sdlimage) \
+ $(use_enable !sdl glut)
+}
+
+src_install() {
+ default
+ dodoc data/doc/*.htm
+
+ newicon -s 64 misc/${PN}.png ${PN}.png
+ domenu misc/chromium-bsu.desktop
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/games-action/chromium-bsu/files/chromium-bsu-0.9.15.1-gcc6.patch b/games-action/chromium-bsu/files/chromium-bsu-0.9.15.1-gcc6.patch
new file mode 100644
index 000000000000..5d3b919adf3f
--- /dev/null
+++ b/games-action/chromium-bsu/files/chromium-bsu-0.9.15.1-gcc6.patch
@@ -0,0 +1,100 @@
+--- a/src/AudioOpenAL.cpp
++++ b/src/AudioOpenAL.cpp
+@@ -711,7 +711,7 @@
+ if(!file)
+ {
+ char configOldFilename[256];
+- sprintf(configOldFilename, "%s/.chromium-music"CONFIG_EXT, homeDir);
++ sprintf(configOldFilename, "%s/.chromium-music" CONFIG_EXT, homeDir);
+ alterPathForPlatform(configOldFilename);
+ rename(configOldFilename,configFilename);
+ file = fopen(configFilename, "r");
+--- a/src/Config.cpp
++++ b/src/Config.cpp
+@@ -161,7 +161,7 @@
+ if(!homeDir)
+ homeDir = "./";
+
+- sprintf(configFilename, "%s/.chromium"CONFIG_EXT, homeDir);
++ sprintf(configFilename, "%s/.chromium" CONFIG_EXT, homeDir);
+ alterPathForPlatform(configFilename);
+ return configFilename;
+ }
+--- a/src/define.h
++++ b/src/define.h
+@@ -34,14 +34,14 @@
+
+ #ifdef macintosh
+ #define CONFIG_EXT ".cfg"
+-#define CONFIG_FILE PACKAGE".cfg"
+-#define CONFIG_SCORE_FILE PACKAGE"-score.cfg"
+-#define CONFIG_MUSIC_FILE PACKAGE"-music.cfg"
++#define CONFIG_FILE PACKAGE ".cfg"
++#define CONFIG_SCORE_FILE PACKAGE "-score.cfg"
++#define CONFIG_MUSIC_FILE PACKAGE "-music.cfg"
+ #else
+ #define CONFIG_EXT
+-#define CONFIG_FILE "."PACKAGE
+-#define CONFIG_SCORE_FILE "."PACKAGE"-score"
+-#define CONFIG_MUSIC_FILE "."PACKAGE"-music"
++#define CONFIG_FILE "." PACKAGE
++#define CONFIG_SCORE_FILE "." PACKAGE "-score"
++#define CONFIG_MUSIC_FILE "." PACKAGE "-music"
+ #endif //macintosh
+
+ #define HI_SCORE_HIST 5
+--- a/src/HiScore.cpp
++++ b/src/HiScore.cpp
+@@ -187,7 +187,7 @@
+ const char *homeDir = getenv("HOME");
+ if(!homeDir)
+ homeDir = "./";
+- sprintf(configFilename, "%s/.chromium-score"CONFIG_EXT, homeDir);
++ sprintf(configFilename, "%s/.chromium-score" CONFIG_EXT, homeDir);
+ alterPathForPlatform(configFilename);
+ return configFilename;
+ }
+--- a/src/main.cpp
++++ b/src/main.cpp
+@@ -198,7 +198,7 @@
+
+ if(getenv("HOME") != NULL && ((strlen(getenv("HOME"))+strlen(filename)) < 239) )
+ {
+- sprintf(buffer, "%s/."PACKAGE"-data/%s", getenv("HOME"), filename);
++ sprintf(buffer, "%s/." PACKAGE "-data/%s", getenv("HOME"), filename);
+ if(stat(buffer, &sbuf) == 0) return buffer;
+ }
+
+--- a/src/MainSDL_Event.cpp
++++ b/src/MainSDL_Event.cpp
+@@ -19,6 +19,7 @@
+ #include <cstdlib>
+ #include <cstdio>
+ #include <cstring>
++#include <cmath>
+
+ #include "Config.h"
+
+@@ -417,14 +418,14 @@
+ #else
+ Uint8 *keystate = SDL_GetKeyState(NULL);
+ #endif
+- if( keystate[SDLK_LEFT] || keystate[SDLK_KP4] ) key_speed_x -= 2.0 + abs(key_speed_x)*0.4;
+- if( keystate[SDLK_RIGHT] || keystate[SDLK_KP6] ) key_speed_x += 2.0 + abs(key_speed_x)*0.4;
+- if( keystate[SDLK_UP] || keystate[SDLK_KP8] ) key_speed_y -= 2.0 + abs(key_speed_y)*0.4;
+- if( keystate[SDLK_DOWN] || keystate[SDLK_KP2] ) key_speed_y += 2.0 + abs(key_speed_y)*0.4;
+- if( keystate[SDLK_KP7] ){ key_speed_x -= 2.0 + abs(key_speed_x)*0.4; key_speed_y -= 2.0 + abs(key_speed_y)*0.4; }
+- if( keystate[SDLK_KP9] ){ key_speed_x += 2.0 + abs(key_speed_x)*0.4; key_speed_y -= 2.0 + abs(key_speed_y)*0.4; }
+- if( keystate[SDLK_KP3] ){ key_speed_x += 2.0 + abs(key_speed_x)*0.4; key_speed_y += 2.0 + abs(key_speed_y)*0.4; }
+- if( keystate[SDLK_KP1] ){ key_speed_x -= 2.0 + abs(key_speed_x)*0.4; key_speed_y += 2.0 + abs(key_speed_y)*0.4; }
++ if( keystate[SDLK_LEFT] || keystate[SDLK_KP4] ) key_speed_x -= 2.0 + abs((int)key_speed_x)*0.4;
++ if( keystate[SDLK_RIGHT] || keystate[SDLK_KP6] ) key_speed_x += 2.0 + abs((int)key_speed_x)*0.4;
++ if( keystate[SDLK_UP] || keystate[SDLK_KP8] ) key_speed_y -= 2.0 + abs((int)key_speed_y)*0.4;
++ if( keystate[SDLK_DOWN] || keystate[SDLK_KP2] ) key_speed_y += 2.0 + abs((int)key_speed_y)*0.4;
++ if( keystate[SDLK_KP7] ){ key_speed_x -= 2.0 + abs((int)key_speed_x)*0.4; key_speed_y -= 2.0 + abs((int)key_speed_y)*0.4; }
++ if( keystate[SDLK_KP9] ){ key_speed_x += 2.0 + abs((int)key_speed_x)*0.4; key_speed_y -= 2.0 + abs((int)key_speed_y)*0.4; }
++ if( keystate[SDLK_KP3] ){ key_speed_x += 2.0 + abs((int)key_speed_x)*0.4; key_speed_y += 2.0 + abs((int)key_speed_y)*0.4; }
++ if( keystate[SDLK_KP1] ){ key_speed_x -= 2.0 + abs((int)key_speed_x)*0.4; key_speed_y += 2.0 + abs((int)key_speed_y)*0.4; }
+ //float s = (1.0-game->speedAdj)+(game->speedAdj*0.7);
+ float s = 0.7;
+ key_speed_x *= s;
diff --git a/games-action/chromium-bsu/metadata.xml b/games-action/chromium-bsu/metadata.xml
new file mode 100644
index 000000000000..a8145e90454d
--- /dev/null
+++ b/games-action/chromium-bsu/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <use>
+ <flag name="mixer">
+ Enables <pkg>media-libs/sdl-mixer</pkg> sound backend instead of
+ <pkg>media-libs/openal</pkg> one.
+ </flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">chromium-bsu</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-action/clanbomber/Manifest b/games-action/clanbomber/Manifest
new file mode 100644
index 000000000000..07c618ac1275
--- /dev/null
+++ b/games-action/clanbomber/Manifest
@@ -0,0 +1,8 @@
+AUX clanbomber-2.1.1-automake112.patch 373 SHA256 8f3b28fbaf979bfb8483e0d2aae6b277ba7de918a6d50d2c98700d6b51fa0468 SHA512 65b4ea53e098daea63f5cf5cb5da98bfa712e16f8346a38f06389329b80c3180f68da1b08bec422b712bd79e5911480094f6a6f446673022e10846b4995aa755 WHIRLPOOL a2323bd15ce00e0a55d5f9dcf707289d3e9acbb76866bfd0a430d092e128fa933dad7872ac17b75ddbbd47c9c51307640084f97758483c4e69c983892ba294f9
+AUX clanbomber-2.1.1-boost150.patch 1140 SHA256 2319dc865bd50c773a3c21709f73c053613fbad773806c355f9b6f38e8a616dc SHA512 cdd0b5ca38d6cee6f4e8afbccca956fb0dd8d2b84aef714cd2c8499a6b53e62016c51d58d389adcde95dd06b08b7b749428677d414ef792123d04e6cc8493806 WHIRLPOOL 7a0f36560de792e929911531abef6958e882a28b76378b06417e6826fb9462104b173fac2205b3ce292c741cfeaa1f881a853f9bdeba9bc75b3647c4bb983866
+AUX clanbomber-2.1.1-gcc6.patch 408 SHA256 318cf8a3ac8640b41e3dcfcae6d5c734364fcf634cdba9f94dcb56269c569445 SHA512 8f51ea2b0b9dc7323710b7a5e91b3622ac728f035c19d7e5c01731d87f0cce3f5c6d54905f42811f46b0a68e899aad0ad23d099039b9fa329c7245e27e2fadfd WHIRLPOOL 1cf2d684afd373b6cde244dbc9339248408a0f7754e8f0dd31ae9a8e2d514e6221c45d57df59c2e7ba8e8b6d4af11831c3e6bf18c64ee23bdc6b4bb8e916f84d
+DIST clanbomber-2.1.1.tar.lzma 2070392 SHA256 82aa263e6560f7e12a9bf590df1046cb4da8fc855162ab9ad09f89ec2e617e3b SHA512 b2d634c20d60cd7c080263a8ebea931bd623342c32380494c0076441021719135ca7861e0467e0c71cd46bb4ed85d3ce364dbfa2c8399eaf058f62f294a21c32 WHIRLPOOL d7d9c71ea20d8f1bcd1420156516c9f969880d4ba7907093361ee1713b8984a1fe1c11bda1f7f3f46a3503d257b180be8ec9e028a5b624531cfc7a493fa9c144
+EBUILD clanbomber-2.1.1-r1.ebuild 1138 SHA256 2e1fa34b459c3e569209f58d3e9fa2ea9622cfaa11283ef6c738cbde79709267 SHA512 eb5f8c9ab36fe09c04ef92ec9f7d86add60cc82e8d7930a22afaf9657dd03c971df0f3feb06cb6e2d09bcd10a8e59aeda6dfdf71452331bdfe88d183f82989c7 WHIRLPOOL 66b213b6b0a6f552d0dcaa288dc2c4fdf6a409ca90d5fcccd33cd636e05f870e90205e8669d2be2361918a1dafc42a32d1bd0d405ab51d950e8e9f8962fd82b8
+MISC ChangeLog 2634 SHA256 efcb44466695d9109d349b101e5e03ae9cb6b53cc9e826228802101697b78b56 SHA512 1b019a52e06e0b169f73aaaf1883e8c0ea72618be82d64f6eb69de9755efcc407f2d07c7568cbac02accb710daabb33eebee6850bf191834c41f408bf2e9be05 WHIRLPOOL c1c177cd8b4b2acb3e794886bf940b0eee292bf5b4a6a874b40c68eb10d5ef15c5c1f2465eec0f90ddec66637ad09fc57f2441dcef321c96e122b0d0262a34c5
+MISC ChangeLog-2015 3298 SHA256 f4e7b4d5a3ba9fef0bff67799916d7352b226475a7df40bae721b1463b0aa880 SHA512 6e405b927cda749c795af23c34555425ae8bbcfe689e3f4075d2a27a84b53640096d3931fd083a7ee88d3edd7a594ed8d9bcbb5b4f929c56578dbf6a2b996987 WHIRLPOOL ee9916b10f046333f42a83157fe9dff273b646c018ab22a17c9c569752c1aff075e4524acee1edf06fefe2e1d6899c4fbb34dcfb44ee32f1488db5ed36e9c7c7
+MISC metadata.xml 755 SHA256 57b03ec2d09976d0c22f30d160e261cc1efe9bdb21351e965c6e0cca3dc89326 SHA512 b46a19a5ba071d38cc18c23019d0077893ac8f1303aba357343afe129ad4f7f6e3b194f765485945712cef788291c93a105ba59c9e94dc507937d9f78f28b387 WHIRLPOOL a94ae6f82c30cf9b1c21bb91d7aada87e554955daf762f275e8b62513ac91d8b86e590a98fda5955ff95ab5aed36eb1fcfc802733d4cc072fd070e5dad94fd48
diff --git a/games-action/clanbomber/clanbomber-2.1.1-r1.ebuild b/games-action/clanbomber/clanbomber-2.1.1-r1.ebuild
new file mode 100644
index 000000000000..543c71912fa1
--- /dev/null
+++ b/games-action/clanbomber/clanbomber-2.1.1-r1.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools eutils
+
+DESCRIPTION="Bomberman-like multiplayer game"
+HOMEPAGE="https://savannah.nongnu.org/projects/clanbomber/"
+SRC_URI="http://download.savannah.gnu.org/releases/${PN}/${P}.tar.lzma"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND="
+ dev-libs/boost
+ media-fonts/dejavu
+ media-libs/libsdl[sound,joystick,video]
+ media-libs/sdl-gfx
+ media-libs/sdl-image[png]
+ media-libs/sdl-mixer
+ media-libs/sdl-ttf"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+DOCS=( AUTHORS ChangeLog ChangeLog.hg IDEAS NEWS QUOTES README TODO )
+
+PATCHES=(
+ "${FILESDIR}"/${P}-automake112.patch
+ "${FILESDIR}"/${P}-boost150.patch
+ "${FILESDIR}"/${P}-gcc6.patch
+)
+
+src_prepare() {
+ default
+ sed -i -e 's/menuentry//' src/Makefile.am || die
+ eautoreconf
+}
+
+src_install() {
+ default
+ newicon src/pics/cup2.png ${PN}.png
+ make_desktop_entry ${PN}2 ClanBomber2
+ rm -f "${D}/usr/share/${PN}/fonts/DejaVuSans-Bold.ttf" || die
+ dosym /usr/share/fonts/dejavu/DejaVuSans-Bold.ttf \
+ /usr/share/${PN}/fonts/DejaVuSans-Bold.ttf
+}
diff --git a/games-action/clanbomber/files/clanbomber-2.1.1-automake112.patch b/games-action/clanbomber/files/clanbomber-2.1.1-automake112.patch
new file mode 100644
index 000000000000..5fce5be335aa
--- /dev/null
+++ b/games-action/clanbomber/files/clanbomber-2.1.1-automake112.patch
@@ -0,0 +1,11 @@
+--- a/configure.ac 2012-11-15 09:35:24.682199511 +0100
++++ b/configure.ac 2012-11-15 09:36:02.367839076 +0100
+@@ -2,7 +2,7 @@
+ AC_PREREQ([2.63])
+ AC_INIT([ClanBomber], [2.1.1], [rsl@members.fsf.org])
+ #AM_INIT_AUTOMAKE([-Wall -Werror foreign])#foreign is for NEWS COPYING ETC
+-AM_INIT_AUTOMAKE([dist-lzma -Wall -Werror])
++AM_INIT_AUTOMAKE([-Wall])
+
+
+ #CXXFLAGS="-O6 -g3"
diff --git a/games-action/clanbomber/files/clanbomber-2.1.1-boost150.patch b/games-action/clanbomber/files/clanbomber-2.1.1-boost150.patch
new file mode 100644
index 000000000000..f3e67666a22d
--- /dev/null
+++ b/games-action/clanbomber/files/clanbomber-2.1.1-boost150.patch
@@ -0,0 +1,31 @@
+--- a/src/MapEntry.cpp 2012-11-15 10:55:40.123259605 +0100
++++ b/src/MapEntry.cpp 2012-11-15 10:57:35.217379211 +0100
+@@ -50,7 +50,7 @@
+ enabled = true;
+
+ // extract map name
+- map_name = filename.stem();
++ map_name = filename.stem().string();
+
+ // is the file writable?
+ if (access(path / filename, W_OK) == 0) {
+--- a/src/Map.cpp 2012-11-15 10:52:56.884424228 +0100
++++ b/src/Map.cpp 2012-11-15 10:54:16.334992079 +0100
+@@ -116,7 +116,7 @@
+ for (boost::filesystem::directory_iterator dir_iter(path);
+ dir_iter != end_iter; dir_iter++) {
+ if (dir_iter->path().extension() == ".map") {
+- map_list.push_back(new MapEntry(path, dir_iter->filename()));
++ map_list.push_back(new MapEntry(path, dir_iter->path().filename()));
+ }
+ }
+ }
+@@ -126,7 +126,7 @@
+ for (boost::filesystem::directory_iterator dir_iter(path);
+ dir_iter != end_iter; dir_iter++) {
+ if (dir_iter->path().extension() == ".map") {
+- map_list.push_back(new MapEntry(path, dir_iter->filename()));
++ map_list.push_back(new MapEntry(path, dir_iter->path().filename()));
+ }
+ }
+ }
diff --git a/games-action/clanbomber/files/clanbomber-2.1.1-gcc6.patch b/games-action/clanbomber/files/clanbomber-2.1.1-gcc6.patch
new file mode 100644
index 000000000000..714e9de85fa2
--- /dev/null
+++ b/games-action/clanbomber/files/clanbomber-2.1.1-gcc6.patch
@@ -0,0 +1,19 @@
+--- a/src/Credits.h
++++ b/src/Credits.h
+@@ -47,7 +47,7 @@
+ int speed;
+ bool stopped;
+ private:
+- static const float yoffset_start = 50;
++ static const float yoffset_start;
+ static const int normal_speed = 40;
+ static const int text_height = 40;
+
+--- a/src/Credits.cpp
++++ b/src/Credits.cpp
+@@ -273,3 +273,5 @@
+ (*draw_list_iter)->show();
+ }
+ }
++
++const float Credits::yoffset_start = 50;
diff --git a/games-action/clanbomber/metadata.xml b/games-action/clanbomber/metadata.xml
new file mode 100644
index 000000000000..f8deca247ba9
--- /dev/null
+++ b/games-action/clanbomber/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+</maintainer>
+<longdescription>
+ClanBomber is a free (GPL) Bomberman-like multiplayer game that uses ClanLib, a free multi
+platform C++ game SDK. First "ClanBomber" was only a working title for a small game started in
+September 1998, that has only been started to learn how to use ClanLib. But the ClanBomber
+project has grown into a real game. It is fully playable and features Computer controlled
+bombers, however, it is recommended to play ClanBomber with friends (3-8 players are really fun).
+</longdescription>
+</pkgmetadata>
diff --git a/games-action/cs2d/Manifest b/games-action/cs2d/Manifest
new file mode 100644
index 000000000000..1273b079abdd
--- /dev/null
+++ b/games-action/cs2d/Manifest
@@ -0,0 +1,11 @@
+DIST cs2d.png 479 SHA256 4114a718e4e1c9b6686571d41f2e66598940e112f129b2c858b2d75ba4f0e607 SHA512 e8894771deedb8e5018d0be986a53920e8f37fe10485df499e4c271d14014701cf345858ba7904ab6db4178f2cb2244684620a6c5ceacba26f62a29c3bd0463b WHIRLPOOL fb831b0ac2ba015f759bd83bee10289031eb62f8ec0cdd3e550fd3b42db1223ff1450d40eb339f85f997bafb1befb65885918674fa38662400dcc155aec0b285
+DIST cs2d_0127_linux.zip 878017 SHA256 69b28886aff60cc128e0ad9845e9d120beb9250cb1c99fc18c65f8de82f115c7 SHA512 738be401192a795e76404cf3a97986fcfba2dc082dcec5c546a1c133a50b0a651b2d1f94885f77d830c90b0c37612e615e47fbf51a6f677a56034be62a8c5a6a WHIRLPOOL b5b4d467643587fcfcb03857f654967cf2bd5c4524a1b6a093350a6b580b14673e58be21cd1b381a9c6140c0181b92a0817f96cc6e330a0a0765f9a3deb445c1
+DIST cs2d_0127_win.zip 8229767 SHA256 e143b48d8ec425a8d0fac65998386a49db6ad32e9c09804605bb8399cf422d9c SHA512 cbc3c7c8246907d8c8d8143679e13144449048df09398b4f25cc50ecae0473d8bc186752418727297da0f79b4b323d272a9e1b97a0b0249243bb9098abc23897 WHIRLPOOL ea014b6f5e29a15b324210dabf1ed5a124b06b32371d88b192f815abfc9ede4771b9c5862f7299b18611fed41191a06b4f0e8d205bd026458fb61425706f34f3
+DIST cs2d_1002_linux.zip 1035579 SHA256 cf0667a01ed1663bfeef161c4764edfd14bef20a0ceea86b1c6c7c6016e0a0d5 SHA512 f385a6558f40a01324884a8b765f0fcb8dddcfb59bf983be110234a16cf937ba8c0089dce269fd1cec6b51a380810c5e1676e14a95112364b59cbb07e290a8bc WHIRLPOOL a6ab5950238f6dad4852c2112b4a3729db03e7ad6130e0f5c31fda840326097f814eba03e750003f90860fdc4bc03f06708b6f27ef049131851a035e5f0304d4
+DIST cs2d_1002_win.zip 11039631 SHA256 ef2a496202ea997eaa7bf33bfaad0500e251bf43056dc85b05272936229a303d SHA512 b387cd7172fa35c6e66d7457cd4ca457d5bab795944fa9b53a0879301d72d6e5f2c76b760c119df32ae4e69f158e6c593bf921a83e54e25f79cb4e3d2650965c WHIRLPOOL 5d605474ded452f277cc6f01b48f4313a852ae65dfc394cadc0190c905d57b919f1078f4b64773d3c62786ee3558abd26a30f70415c523e0ae6fe140f585904b
+EBUILD cs2d-0127.ebuild 1838 SHA256 8e379930f2ecce6e1c27c1ebf54e856cdfe032d336d58f944561b5b124fd6e76 SHA512 a91f638a2e84b25fee52094aaba1412ca78be460ce7da1f9aae466553a69ddb5a05cea052c90876f090051c692fd1b01358c27bfe336f87d96c9ec3c754e3c02 WHIRLPOOL 716261b3388031f65dc5b1b2e284aacb5cc36c9ea9247a088204b779c8de96c3606bc5c1c2bd70ba9f2fc9f09bfb8c7821724b53a8ca21bedb830863f6a77942
+EBUILD cs2d-1002-r1.ebuild 1680 SHA256 efda702fb8d69bbff451b9ac066251ac2c8206da417be8e0d03bc90fdaac5ade SHA512 041340c4407f46f2a8b7d459d943ff7d67e45496347a2a2e0b7dafdb94b7cfda726bd8564c65e980f3d93a760cadb98eb16492caa157613ea83de346849749d0 WHIRLPOOL 0eeecbf8339db6e432e180d201cb7023cd7786805c0cc543b7521581f8fa0830019d3bb39f9d0440c9e8e9cd32950a4fb02ad460182aabf54b2e51406330cef1
+EBUILD cs2d-1002.ebuild 1838 SHA256 8e379930f2ecce6e1c27c1ebf54e856cdfe032d336d58f944561b5b124fd6e76 SHA512 a91f638a2e84b25fee52094aaba1412ca78be460ce7da1f9aae466553a69ddb5a05cea052c90876f090051c692fd1b01358c27bfe336f87d96c9ec3c754e3c02 WHIRLPOOL 716261b3388031f65dc5b1b2e284aacb5cc36c9ea9247a088204b779c8de96c3606bc5c1c2bd70ba9f2fc9f09bfb8c7821724b53a8ca21bedb830863f6a77942
+MISC ChangeLog 2917 SHA256 4339c0a218b181f8b69116c13341e971173713772ea5d1419622f625fb698c29 SHA512 1382928600c1788358b46f6f3cf1e5ad043270fe678d033d811dc36b3a8c891953211d2c61c51e418a1375b909456d87d49bc8c0a6f74b1078474a01881bc5fe WHIRLPOOL 7bb8673738c33d55b09ce02c15e72238f72486fdb9644d848e4269118eb8c5dbb19d6a95a125b262ab0e865f7dc7b51942c1aa1aeddcfdf24ffd9ccaf1bc3a84
+MISC ChangeLog-2015 2228 SHA256 8077d99bfbd582c5ee5f5ed329c6e031a49eb1b871e1f6c625da40c174d56355 SHA512 3f53db4f0ead0569dfb2ce0d254bfff7d9e6e812d355780076741cd43ac419a8c18226f718da1dda5aee946de413188abadf4adb2916e259c7294d2649e42c4c WHIRLPOOL 2389e88f5bb147147d6967dd90bfb194cf1795e241f48a072caacbaecd8ff3fac519f19b052f2cc7205a16ab0cffe4d36a740802d7071c0da88dacd0b31bae07
+MISC metadata.xml 595 SHA256 dd4cfdaa16d4060854491baef13534b2007e7344afecd546a3772b446a842e8e SHA512 3b8ec9065990d0d53c7c04d7926b30c1632cee411a6165a7a8ee408111d49d21d06069b3e1e1bbfee021a24018171c65101907151a95bca5abef4dc29a54fb1c WHIRLPOOL a05db9df564c7efc1f2eccb031fb5a528110f42a11bcf839510e54629dc19eef7afb3819c5c1306d123577c8d7a08c281bdbea17143b6a3f4c4a5ed853847f08
diff --git a/games-action/cs2d/cs2d-0127.ebuild b/games-action/cs2d/cs2d-0127.ebuild
new file mode 100644
index 000000000000..e4849611586a
--- /dev/null
+++ b/games-action/cs2d/cs2d-0127.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils games
+
+DESCRIPTION="A freeware clone of Counter-Strike with some added features in gameplay"
+HOMEPAGE="http://www.cs2d.com/"
+SRC_URI="https://dev.gentoo.org/~maksbotan/cs2d/cs2d_${PV}_linux.zip
+ https://dev.gentoo.org/~maksbotan/cs2d/cs2d_${PV}_win.zip
+ https://dev.gentoo.org/~maksbotan/cs2d/cs2d.png"
+LICENSE="freedist"
+
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE=""
+
+DEPEND="app-arch/unzip"
+RDEPEND="
+ x86? (
+ media-libs/openal
+ media-libs/freetype:2
+ x11-libs/libX11
+ x11-libs/libXxf86vm
+ virtual/opengl
+ )
+ amd64? (
+ >=media-libs/openal-1.15.1[abi_x86_32(-)]
+ >=virtual/opengl-7.0-r1[abi_x86_32(-)]
+ >=media-libs/freetype-2.5.0.1:2[abi_x86_32(-)]
+ >=x11-libs/libX11-1.6.2[abi_x86_32(-)]
+ >=x11-libs/libXxf86vm-1.1.3[abi_x86_32(-)]
+ )"
+
+QA_PREBUILT="opt/cs2d/CounterStrike2D"
+
+S=${WORKDIR}
+
+src_prepare() {
+ # removing windows files
+ rm -f *.exe *.bat || die
+
+ # OpenAL is default sound driver
+ sed -i \
+ -e 's:^sounddriver.*$:sounddriver OpenAL Default:' \
+ sys/config.cfg || die
+}
+
+src_install() {
+ insinto "${GAMES_PREFIX_OPT}"/${PN}
+ doins -r .
+ # avoid file collision with untracked file
+ rm -f "${ED%/}/${GAMES_PREFIX_OPT}"/${PN}/sys/core/started.cfg
+
+ make_desktop_entry CounterStrike2D "Counter Strike 2D"
+ make_desktop_entry "CounterStrike2D -fullscreen -24bit" "Counter Strike 2D - FULLSCREEN"
+ games_make_wrapper CounterStrike2D ./CounterStrike2D \
+ "${GAMES_PREFIX_OPT}"/${PN} "${GAMES_PREFIX_OPT}"/${PN}
+
+ doicon "${DISTDIR}"/${PN}.png
+
+ prepgamesdirs
+
+ # fixing permissions
+ fperms -R g+w "${GAMES_PREFIX_OPT}"/${PN}/maps
+ fperms -R g+w "${GAMES_PREFIX_OPT}"/${PN}/screens
+ fperms -R g+w "${GAMES_PREFIX_OPT}"/${PN}/sys
+ fperms ug+x "${GAMES_PREFIX_OPT}"/${PN}/CounterStrike2D
+}
diff --git a/games-action/cs2d/cs2d-1002-r1.ebuild b/games-action/cs2d/cs2d-1002-r1.ebuild
new file mode 100644
index 000000000000..46b4c3b59d80
--- /dev/null
+++ b/games-action/cs2d/cs2d-1002-r1.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils
+
+DESCRIPTION="A freeware clone of Counter-Strike with some added features in gameplay"
+HOMEPAGE="http://www.cs2d.com/"
+SRC_URI="https://dev.gentoo.org/~maksbotan/cs2d/cs2d_${PV}_linux.zip
+ https://dev.gentoo.org/~maksbotan/cs2d/cs2d_${PV}_win.zip
+ https://dev.gentoo.org/~maksbotan/cs2d/cs2d.png"
+LICENSE="freedist"
+
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE=""
+
+DEPEND="app-arch/unzip"
+RDEPEND="
+ x86? (
+ media-libs/freetype:2
+ media-libs/openal
+ x11-libs/libX11
+ x11-libs/libXxf86vm
+ virtual/opengl
+ )
+ amd64? (
+ >=media-libs/freetype-2.5.0.1:2[abi_x86_32(-)]
+ >=media-libs/openal-1.15.1[abi_x86_32(-)]
+ >=virtual/opengl-7.0-r1[abi_x86_32(-)]
+ >=x11-libs/libX11-1.6.2[abi_x86_32(-)]
+ >=x11-libs/libXxf86vm-1.1.3[abi_x86_32(-)]
+ )"
+
+QA_PREBUILT="opt/cs2d/CounterStrike2D"
+
+S=${WORKDIR}
+
+src_prepare() {
+ default
+
+ # removing windows files
+ rm -f *.exe *.bat || die
+
+ # OpenAL is default sound driver
+ sed -i \
+ -e 's:^sounddriver.*$:sounddriver OpenAL Default:' \
+ sys/config.cfg || die
+}
+
+src_install() {
+ insinto /opt/${PN}
+ doins -r .
+
+ # avoid file collision with untracked file
+ rm -f "${ED%/}/opt/${PN}/sys/core/started.cfg"
+
+ make_desktop_entry CounterStrike2D "Counter Strike 2D"
+ make_desktop_entry "CounterStrike2D -fullscreen -24bit" "Counter Strike 2D - FULLSCREEN"
+ make_wrapper CounterStrike2D ./CounterStrike2D /opt/${PN} /opt/${PN}
+ doicon "${DISTDIR}"/${PN}.png
+
+ # fixing permissions
+ fperms -R g+w /opt/${PN}/maps
+ fperms -R g+w /opt/${PN}/screens
+ fperms -R g+w /opt/${PN}/sys
+ fperms o+x /opt/${PN}/CounterStrike2D
+}
diff --git a/games-action/cs2d/cs2d-1002.ebuild b/games-action/cs2d/cs2d-1002.ebuild
new file mode 100644
index 000000000000..e4849611586a
--- /dev/null
+++ b/games-action/cs2d/cs2d-1002.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils games
+
+DESCRIPTION="A freeware clone of Counter-Strike with some added features in gameplay"
+HOMEPAGE="http://www.cs2d.com/"
+SRC_URI="https://dev.gentoo.org/~maksbotan/cs2d/cs2d_${PV}_linux.zip
+ https://dev.gentoo.org/~maksbotan/cs2d/cs2d_${PV}_win.zip
+ https://dev.gentoo.org/~maksbotan/cs2d/cs2d.png"
+LICENSE="freedist"
+
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE=""
+
+DEPEND="app-arch/unzip"
+RDEPEND="
+ x86? (
+ media-libs/openal
+ media-libs/freetype:2
+ x11-libs/libX11
+ x11-libs/libXxf86vm
+ virtual/opengl
+ )
+ amd64? (
+ >=media-libs/openal-1.15.1[abi_x86_32(-)]
+ >=virtual/opengl-7.0-r1[abi_x86_32(-)]
+ >=media-libs/freetype-2.5.0.1:2[abi_x86_32(-)]
+ >=x11-libs/libX11-1.6.2[abi_x86_32(-)]
+ >=x11-libs/libXxf86vm-1.1.3[abi_x86_32(-)]
+ )"
+
+QA_PREBUILT="opt/cs2d/CounterStrike2D"
+
+S=${WORKDIR}
+
+src_prepare() {
+ # removing windows files
+ rm -f *.exe *.bat || die
+
+ # OpenAL is default sound driver
+ sed -i \
+ -e 's:^sounddriver.*$:sounddriver OpenAL Default:' \
+ sys/config.cfg || die
+}
+
+src_install() {
+ insinto "${GAMES_PREFIX_OPT}"/${PN}
+ doins -r .
+ # avoid file collision with untracked file
+ rm -f "${ED%/}/${GAMES_PREFIX_OPT}"/${PN}/sys/core/started.cfg
+
+ make_desktop_entry CounterStrike2D "Counter Strike 2D"
+ make_desktop_entry "CounterStrike2D -fullscreen -24bit" "Counter Strike 2D - FULLSCREEN"
+ games_make_wrapper CounterStrike2D ./CounterStrike2D \
+ "${GAMES_PREFIX_OPT}"/${PN} "${GAMES_PREFIX_OPT}"/${PN}
+
+ doicon "${DISTDIR}"/${PN}.png
+
+ prepgamesdirs
+
+ # fixing permissions
+ fperms -R g+w "${GAMES_PREFIX_OPT}"/${PN}/maps
+ fperms -R g+w "${GAMES_PREFIX_OPT}"/${PN}/screens
+ fperms -R g+w "${GAMES_PREFIX_OPT}"/${PN}/sys
+ fperms ug+x "${GAMES_PREFIX_OPT}"/${PN}/CounterStrike2D
+}
diff --git a/games-action/cs2d/metadata.xml b/games-action/cs2d/metadata.xml
new file mode 100644
index 000000000000..31a8e7784a81
--- /dev/null
+++ b/games-action/cs2d/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>maksbotan@gentoo.org</email>
+ <name>Maxim Koltsov</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>oleg@kaa.org.ua</email>
+ <name>Oleg Kravchenko</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers Project</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/games-action/d1x-rebirth/Manifest b/games-action/d1x-rebirth/Manifest
new file mode 100644
index 000000000000..32236cb17860
--- /dev/null
+++ b/games-action/d1x-rebirth/Manifest
@@ -0,0 +1,12 @@
+AUX d1x-rebirth-0.58.1-flags.patch 447 SHA256 82d6b8b5013a668b12b9cfcfd2da2329014bf5423be8d78c39e50188704e5957 SHA512 2d3406a61deea19ea741fdf39963013342e88d69323a1929592fd2f909985ad2e63d2677863a50be7882cce30fec082cbcd5d114f326b638c16331ac3dabcae8 WHIRLPOOL 2c9ab319ba21c92e03ced7d9aa94e9e6c87fa930eaebd6e14d436bd5a7ded000b23103b5c3d3ebd2ff900d8a9bb3018f779a4af4e2cfa6093f2f79a9113cba1d
+DIST d1datapt.zip 439942 SHA256 60f93aa9bd1ff1f910388ed762480b4208eb3a9e71edb84529eb9b50e2f10495 SHA512 41b7777ef679ed0904a5e64534ef0b145e9c49546c9449a569cf0ac75ada3d6095a603136211f939daaf97aa7f09511db85416fefea7ce1447cfe8df7a16b555 WHIRLPOOL b801993a36e99c79d3c756c2d343e3c5d315f3cd991fa2cf678cf2592f7ad3243bb85341fcd335be4ba16b40a3bae25423159730d81a419b52e3127044ea85dd
+DIST d1x-rebirth_v0.58.1-src.tar.gz 1247599 SHA256 5befc8a2ab1159fdb4d4141ba9f0e229450592d5ada209e832101da5b0b3e38e SHA512 d1bdaeee07c5ac34b2e6839fea1449344d206f76f1eb2ba3fd4fa7cbe6acd82c2e8d7140b2d6297add3d5e8fb7fe4ca2b1c22c900def94603c218f6660644c80 WHIRLPOOL d379e3bf408fc51c9e2caea0d774272ce00a4dc52f460daa0b373ae6d08f305fe067e2e86a0164e7bb8c9f51f797cb29c8b38248555a5d3fd394ff88d6d170cd
+DIST d1xr-briefings-ger.zip 16798 SHA256 38f8b9dd5fcab8b675a5112290e4dda771d4bc7a613292a589f6535a8c53861a SHA512 956a3ef1fe7379b71d5f651fdcb1f26b786883a35193a0a22009204e885a12fceb3a69c6accbeb2bd20be65afe087d23532d7ef3439edd97cc8904968bf519e3 WHIRLPOOL 0c4e7934eac399b6fed216648ba35ba100234f73a802112b900064584b4fb471bafc9e377af735a4d05fa65105a40ee4db781a1e07310a1e6b5feb4a9a10a29d
+DIST d1xr-opl3-music.zip 81503503 SHA256 8fe8fede12ca735cac28133e4a581c4026ed22845ab016814a745b2c10b81603 SHA512 4ac82c4bc2ddb02e2941746921443e38b698c6e54cfcab317fc9108f84ada7b868ec2ee3c70b28c1dfe9f41e2aadab4124c8daa65a409905cba5d674f0aab8a8 WHIRLPOOL a7fab740a6cf885984b93f1eb2512362d7c3b05eb65e5f1eecf4c374bf6ba9e04e6d91130d8ff14d113fa9639501cba768a9d7344af291975b095a6604066735
+DIST d1xr-sc55-music.zip 72803408 SHA256 b27f7b9dc5f9c2744402c56c9499dfd9503c17e73a2a5223e745529d7867962f SHA512 3cdce5b6535e28397b3216cc9ca05cccf7194349c62d64c54300f02f39248b98598d170599e5c61b6900d780e4917f905c3c31eb814fbb8429221c804cbd8bf9 WHIRLPOOL d248894b95d5a1d2d8d375cf231fbfde114548e328addf3ae71c90eb436c628b6feb7d207877fd59f815d4b4f00ea76b6e2c23c4a12cd8e2e228967beb91b693
+DIST d1xrdata.zip 1364601 SHA256 54fdc858925b0b41f7ac7ca1fc03fee325f4e5e52e6cc09d4ba4b8b4d4fdd53b SHA512 9ca4ac459367476250bef6eb7f3fccdb4070f4ed5c00dad318c1d63e7bcb2c61ef8cb8233f3f2156f46ed4ba57232033f2b456078f883a96ab7ebd5b5df84c59 WHIRLPOOL 4e4f54e3ad31b55d04344dce64c7398e4f1cb58ef8017dc8c118a13033d2255c0e8d27ffd5045ed137abef54332cbb8ee8f9754d6a89f086c71a40114596ac48
+DIST dxx-rebirth_icons.zip 137392 SHA256 d38ba8730335b13d63ddf9119ad180e3f6c29e3f238baad87080cf60c4730efc SHA512 d13edc1897cf047a1fa0bf23c2b64334f095d9a28255fb500f7f0ffb6122559eb10fea372b02c52c71ac467d8276ece4c7dff4069585ab74dfa9ebb8bda2deb2 WHIRLPOOL d32d828501a2d5f65e1373a8f042be539f7f6433565dd2130173aea673d58dd9063b52005a6fe7398bcb88a996fd9d88e189d582c16ed4bc9bd7fc6c465087b3
+EBUILD d1x-rebirth-0.58.1.ebuild 3082 SHA256 06c027943fa66dee897939313f65c5461d48e24f7aac820d701e85e46f50c138 SHA512 b4d496a46482b4d3ff5abcb914110f52afc5008113f2f6d9393cebbdffea8d21b86e4dd55d8bb04ce98a50c641c77a41803c22d0b9a114ae72a068e53da79fb4 WHIRLPOOL 6db024319907e08ff5100e35753cf8b786d44603e72e4ae7d2f717440efb8d4a35d2ef4819249d1551b24a68ba777242f1ab8529a6aaa6c704b91cd2a73a6585
+MISC ChangeLog 2881 SHA256 681276fd7571edc8e9c88053447b8bc9a2761d6e1cd793fb36c59da87f853051 SHA512 42a7e16f99c279085fd67f5d6c5f09d1854b88937fe84ca8d5e67e9ba40c1e3c66247a4820c4cba4413aa0bbcaa142f4f2739710b1135363b3de87598156ca60 WHIRLPOOL 4acbe43293c652d334f54a735f3dbafc9900a3b020ce494965e8523d7e6a70f0f44fd6cfbb9ef9141351140d3cec00a80d6490dca493d21de83e95adf6deed41
+MISC ChangeLog-2015 3030 SHA256 a24512ee587d2fe10d81175fa53ecaa6c0addda3bc9cf496f716c695fffd023d SHA512 df8cb512c3410175c49efb2ba318f95ecf91eef2f8da9c42b1bb6c9b7966cbdcb1ddf73664467e01e7404ed5d774c0726df19740c16adc655732bb12308be17a WHIRLPOOL 70858cd3aa25b1d813ccd832d295dfb16cad3b6f8d0e0ac8e0b107a5ab0326ff8bd797073b30d024d6594b9b4716525929c7f3b2df6ef78e7b3ef569649bfe02
+MISC metadata.xml 1177 SHA256 2dad8d1ac710c3f8de893c0d40aa625ab24320c29a6574c1f3e55ca50a9518a9 SHA512 66333f767afaf6ab8a0df7fb1c4132096a949d393b4d4b01eb7cd6e52758783a203d5447f2a41545846460603075aeb04fe80fb0b9217379bcfc962875264471 WHIRLPOOL e2e88dc3d826a84176ba0d1908cfede7a632cd7bf482ade15c390e063c1a953567ed127b19d23c518fda5064b971086423f9603e8a80e2f92890197a17281653
diff --git a/games-action/d1x-rebirth/d1x-rebirth-0.58.1.ebuild b/games-action/d1x-rebirth/d1x-rebirth-0.58.1.ebuild
new file mode 100644
index 000000000000..c25d4a21555b
--- /dev/null
+++ b/games-action/d1x-rebirth/d1x-rebirth-0.58.1.ebuild
@@ -0,0 +1,107 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+CDROM_OPTIONAL="yes"
+inherit eutils cdrom scons-utils games
+
+DV=1
+MY_P=${PN}_v${PV}-src
+DESCRIPTION="Descent Rebirth - enhanced Descent ${DV} engine"
+HOMEPAGE="http://www.dxx-rebirth.com/"
+SRC_URI="http://www.dxx-rebirth.com/download/dxx/${MY_P}.tar.gz
+ http://www.dxx-rebirth.com/download/dxx/res/d1xrdata.zip
+ http://www.dxx-rebirth.com/download/dxx/res/dxx-rebirth_icons.zip
+ opl3-musicpack? ( http://www.dxx-rebirth.com/download/dxx/res/d${DV}xr-opl3-music.zip )
+ sc55-musicpack? ( http://www.dxx-rebirth.com/download/dxx/res/d${DV}xr-sc55-music.zip ) cdinstall? ( http://www.dxx-rebirth.com/download/dxx/res/d1datapt.zip )
+ l10n_de? ( http://www.dxx-rebirth.com/download/dxx/res/d${DV}xr-briefings-ger.zip )"
+
+LICENSE="D1X GPL-2 public-domain"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="cdinstall debug demo ipv6 l10n_de +music opengl opl3-musicpack sc55-musicpack"
+REQUIRED_USE="?? ( cdinstall demo )
+ ?? ( opl3-musicpack sc55-musicpack )
+ opl3-musicpack? ( music )
+ sc55-musicpack? ( music )"
+
+RDEPEND="dev-games/physfs[hog,zip]
+ media-libs/libsdl[X,sound,joystick,opengl?,video]
+ cdinstall? ( !games-action/descent1-demodata )
+ music? (
+ media-libs/sdl-mixer[timidity]
+ )
+ opengl? (
+ virtual/opengl
+ virtual/glu
+ )"
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+PDEPEND="demo? ( games-action/descent1-demodata )"
+
+S=${WORKDIR}/${MY_P}
+
+src_unpack() {
+ unpack ${MY_P}.tar.gz dxx-rebirth_icons.zip
+ if use cdinstall ; then
+ unpack d1datapt.zip
+ cdrom_get_cds descent/descent.hog
+ mkdir "${S}"/Data
+ cp \
+ ${CDROM_ROOT}/descent/descent.{hog,pig} \
+ ${CDROM_ROOT}/descent/chaos.{hog,msn} \
+ "${S}"/Data || die
+ fi
+}
+
+src_prepare() {
+ if use cdinstall ; then
+ cd Data
+ patch -p0 < "${WORKDIR}"/d1datapt/descent.hog.diff descent.hog
+ patch -p0 < "${WORKDIR}"/d1datapt/descent.pig.diff descent.pig
+ fi
+ epatch "${FILESDIR}"/${P}-flags.patch
+}
+
+src_compile() {
+ escons \
+ verbosebuild=1 \
+ sharepath="${GAMES_DATADIR}/d${DV}x" \
+ $(use_scons ipv6) \
+ $(use_scons music sdlmixer) \
+ $(use_scons debug) \
+ $(use_scons opengl) || die
+}
+
+src_install() {
+ dodoc {CHANGELOG,INSTALL,README,RELEASE-NOTES}.txt
+
+ insinto "${GAMES_DATADIR}/d${DV}x"
+ doins "${DISTDIR}"/d1xrdata.zip
+ # None of the following zip files need to be extracted.
+ use l10n_de && doins "${DISTDIR}"/d${DV}xr-briefings-ger.zip
+ use opl3-musicpack && doins "${DISTDIR}"/d${DV}xr-opl3-music.zip
+ use sc55-musicpack && doins "${DISTDIR}"/d${DV}xr-sc55-music.zip
+
+ if use cdinstall ; then
+ doins Data/descent.{hog,pig}
+ insinto "${GAMES_DATADIR}"/d${DV}x/missions
+ doins Data/chaos.{hog,msn}
+ fi
+ doicon "${WORKDIR}/${PN}.xpm"
+
+ dogamesbin d${DV}x-rebirth
+ make_desktop_entry d${DV}x-rebirth "Descent ${DV} Rebirth"
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ if ! use cdinstall ; then
+ echo
+ elog "To play the full game enable USE=\"cdinstall\" or manually "
+ elog "copy the files to ${GAMES_DATADIR}/d${DV}x."
+ elog "See /usr/share/doc/${PF}/INSTALL.txt for details."
+ echo
+ fi
+}
diff --git a/games-action/d1x-rebirth/files/d1x-rebirth-0.58.1-flags.patch b/games-action/d1x-rebirth/files/d1x-rebirth-0.58.1-flags.patch
new file mode 100644
index 000000000000..51723ffb137b
--- /dev/null
+++ b/games-action/d1x-rebirth/files/d1x-rebirth-0.58.1-flags.patch
@@ -0,0 +1,11 @@
+diff -ru d1x-rebirth_v0.58.1-src.orig/SConstruct d1x-rebirth_v0.58.1-src/SConstruct
+--- d1x-rebirth_v0.58.1-src.orig/SConstruct 2013-08-03 08:13:39.000000000 -0400
++++ d1x-rebirth_v0.58.1-src/SConstruct 2015-01-27 02:38:03.847800615 -0500
+@@ -218,7 +218,6 @@
+ env.Append(CPPFLAGS = ['-g'])
+ else:
+ env.Append(CPPDEFINES = ['NDEBUG', 'RELEASE'])
+- env.Append(CPPFLAGS = ['-O2'])
+
+ # profiler?
+ if (self.user_settings.profiler == 1):
diff --git a/games-action/d1x-rebirth/metadata.xml b/games-action/d1x-rebirth/metadata.xml
new file mode 100644
index 000000000000..06533f138bb9
--- /dev/null
+++ b/games-action/d1x-rebirth/metadata.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <longdescription>
+Descent 1 is a classic first-person shooter released in 1995 by Interplay
+and Parallax. It was one of the first games with true 3-dimensional
+graphics, movement, and light sourcing. D1X-Rebirth is a modification of the
+Descent 1 source that was released by Parallax and is based on the D1X source.
+</longdescription>
+ <use>
+ <flag name="demo">Use the demo data instead of the full game</flag>
+ <flag name="music">Support for ingame music</flag>
+ <flag name="l10n_de">Provides German translations for the game's
+ briefings, robot descriptions, and outro of the original campaign</flag>
+ <flag name="opl3-musicpack">Include alternate version of the game's music, recorded
+ with the Yamaha YMF262 OPL3 soundchip</flag>
+ <flag name="sc55-musicpack">Include alternate version of the game's music, recorded
+ with the Roland Sound Canvas SC-55 MIDI module</flag>
+ </use>
+</pkgmetadata>
diff --git a/games-action/d2x-rebirth/Manifest b/games-action/d2x-rebirth/Manifest
new file mode 100644
index 000000000000..ed88c9e38e3b
--- /dev/null
+++ b/games-action/d2x-rebirth/Manifest
@@ -0,0 +1,9 @@
+AUX d2x-rebirth-0.58.1-flags.patch 315 SHA256 2b589a24b88fc8b8d90ecd5df6598ea5abc14634d1d1db4acaf6304add217f3d SHA512 c22fcb05d48462888af864fd24d18bfcd717694d29dc3314928faa8a17908044e593e797698829e4c2ee76ba64ec74f949d0f731ff581ba6a653db44e9681ae5 WHIRLPOOL a9986ce03dd5b965dacf44129f1a644878857b79ddb204365cd7c77adab762f7abc1aff824234b1142045ae921536aca606543eb6b301d92ea22e2610ed6d453
+DIST d2x-rebirth-0.58.1.tar.gz 1361470 SHA256 511a42d1043bb9e54e30628cdc340a2f0649b59f47c71f5dcadf27379195aa3c SHA512 82188421d5ed83006f1a81151aa80ff0efb1685a356b885985ef1ae69107082dad1f1a0a0e6e07e16234d91abc8013272f05e1273f647f4481add01f3e756df4 WHIRLPOOL 02bb414fed790b01cfea71e9321dc79bbfa7d4b9cd0a68ac7ca1f1303236dbf75e44f3ed9253a9d3513823dda2dbf51e403545dfab72c3c90442d5362b40743f
+DIST d2xr-briefings-ger.zip 11717 SHA256 e190321e657c1ad55998b91d610534fd0275f29ab12fe56018e47d3e603704f9 SHA512 479aa577dc65271c705e80404ec46e6c59ee3a5122d6e9705dbdd16b71b16c0d3447426e3e74937aa20eb7026f67a3896c5e814fbfcede9164bd557b6eb8423c WHIRLPOOL 65093403524bd82fb4396a5cabf9317effdaf447f18e421b6a59642103bc690ddaa240e0d2db3fbfe1a4bbd83d9f62bfe5b70fdfe8dc76f0cfe00433d25a9e1f
+DIST d2xr-opl3-music.zip 22710919 SHA256 6890c6cf8a40c30a2b88339fe1affd25d210e45b504b0f0f76dba7ba97f813d7 SHA512 876321a9a16403f6e9d12e10bb73c9cdc57e1a106fa64833a1be8cc17b74f6f13e57e40f051a1b40e7bc88b95bfe86cff181c93c8619383dfdeb74f36f5cce86 WHIRLPOOL 86cccdbe071654b7f3ba2f774c762b3ab81797916e8a2053466320a54693a1913de9a6759eb29a4acde5a5611c58d1371338bed140a4084f7d005d48151a639b
+DIST d2xr-sc55-music.zip 19579531 SHA256 ace152182c70b9a7ae6f911bddbc239566220a287ab5419cab260d5af739bf16 SHA512 290713b05627bf65bdc55fc6631a0c86e50f484a167f3fd20b3fe2bc5b772437939b5bf32eea852874dd983fbd47f160cae2412a2d6c5319f0d1583a33d28da6 WHIRLPOOL 1cc02d95dfffc36676a8cd3129580ba11c4a5cb13ee54bcdbe9e30e9fd9d8365bf0a8fc0d3e4b962607887b41bd056678d578cf9a5896ba1c9f4d1bef13c3edd
+EBUILD d2x-rebirth-0.58.1.ebuild 2572 SHA256 ba33d11e792637a590eeda7c2ad279196cbb10bad5861990a0317b759761d68b SHA512 5c77d52e5927fb10bdd99d49187ca5069dd6833c8e8717aeca7bdbf2245fb61f53a51f9a26de8c3dc02a33accf44ed8f0491855d9841c0238c678767cfc4931a WHIRLPOOL 90827d780dee47d287758240f1750fc835b77adf9156615011d576ddfafd43a980ac0ec5abbe8391fb642602fef954748ccfeb4cf1c5d43c509fb52886874ceb
+MISC ChangeLog 2643 SHA256 493572b4d063ebf0c1919094cb4d1e21ff81331d072d2c25c21c2b2a4ed49260 SHA512 085ff32727eaa6206a7debd8f96543c04e056a0730b1aaddebc3b9ec0137eef566f51d49d81f1ca0f8a843eefc7ef58f0068da43b6c8fc93f9da74523feb3bbd WHIRLPOOL 822c5499ec571476c629e14bc6fec18bd0ba19e323286efdd54c215a04cdc72f61a8722a61d5c785ccf6a03708aae61bf545161920700c3f85c24c107d47b885
+MISC ChangeLog-2015 1995 SHA256 f7035ea45e47422f30288d616de3e392f6ff611bf230b8f8835966ec95b3c78c SHA512 b4dba1dea074fb0b9f531f17d47c1521f726940b3891894203500364d119eff772d2db4b09cb27de09fca052ee87cebd191673ab2c0d3a9614a5e6b5197cb79b WHIRLPOOL e3f7a419129171ba87026b95235d009e72f8edc806e5bdcd6056b8265783251b0a0ad8298fcae2ed0ac1e918ab19004b5db2965165c303a8af7e850f4d741b18
+MISC metadata.xml 945 SHA256 1f0160fda97ddd78b5356ebcdb07b707166156799add74d4b7b7bf1078a5775e SHA512 230587589c9d1b370900c8b66cd42f2d4d6d7ba01542d220a66cdd01111ef3cf88aad0948ca36ad74e26c1cfba74238fd191fd9c5ad0ba0285c6efbbf17e1eda WHIRLPOOL 398f2adb956acc855d0f5309311d271f2dd39fe9dd56f20b591281f7fbd420ccca742190eaf61e790b710649033172806eaf4f8140fd097ac67e6f429cd713cc
diff --git a/games-action/d2x-rebirth/d2x-rebirth-0.58.1.ebuild b/games-action/d2x-rebirth/d2x-rebirth-0.58.1.ebuild
new file mode 100644
index 000000000000..aa6094854fad
--- /dev/null
+++ b/games-action/d2x-rebirth/d2x-rebirth-0.58.1.ebuild
@@ -0,0 +1,93 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils scons-utils games
+
+DV=2
+MY_P=dxx-rebirth-${PV}-d2x
+DESCRIPTION="Descent Rebirth - enhanced Descent ${DV} engine"
+HOMEPAGE="http://www.dxx-rebirth.com/"
+SRC_URI="https://github.com/dxx-rebirth/dxx-rebirth/archive/0.58.1-d2x.tar.gz -> ${P}.tar.gz
+ opl3-musicpack? ( http://www.dxx-rebirth.com/download/dxx/res/d${DV}xr-opl3-music.zip )
+ sc55-musicpack? ( http://www.dxx-rebirth.com/download/dxx/res/d${DV}xr-sc55-music.zip )
+ l10n_de? ( http://www.dxx-rebirth.com/download/dxx/res/d${DV}xr-briefings-ger.zip )"
+
+LICENSE="D1X GPL-2 public-domain"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="cdinstall debug demo ipv6 l10n_de +music opengl opl3-musicpack sc55-musicpack"
+REQUIRED_USE="?? ( opl3-musicpack sc55-musicpack )
+ opl3-musicpack? ( music )
+ sc55-musicpack? ( music )"
+
+RDEPEND="dev-games/physfs[hog,mvl,zip]
+ media-libs/libsdl[X,sound,joystick,opengl?,video]
+ music? (
+ media-libs/sdl-mixer[timidity,vorbis]
+ )
+ opengl? (
+ virtual/opengl
+ virtual/glu
+ )"
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+PDEPEND="cdinstall? ( games-action/descent2-data )
+ demo? ( games-action/descent2-demodata )"
+
+S=${WORKDIR}/${MY_P}
+
+src_unpack() {
+ unpack ${P}.tar.gz
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-flags.patch
+
+ DOCS=( {CHANGELOG,INSTALL,README,RELEASE-NOTES}.txt )
+ edos2unix ${DOCS[@]}
+}
+
+src_compile() {
+ escons \
+ verbosebuild=1 \
+ sharepath="${GAMES_DATADIR}/d${DV}x" \
+ $(use_scons ipv6) \
+ $(use_scons music sdlmixer) \
+ $(use_scons debug) \
+ $(use_scons opengl) \
+ || die
+}
+
+src_install() {
+ dodoc ${DOCS[@]}
+
+ insinto "${GAMES_DATADIR}/d${DV}x"
+
+ # None of the following zip files need to be extracted.
+ use l10n_de && newins "${DISTDIR}"/d${DV}xr-briefings-ger.zip d${DV}xr-briefings-ger.dxa
+ use opl3-musicpack && newins "${DISTDIR}"/d${DV}xr-opl3-music.zip d${DV}xr-opl3-music.dxa
+ use sc55-musicpack && newins "${DISTDIR}"/d${DV}xr-sc55-music.zip d${DV}xr-sc55-music.dxa
+
+ doicon ${PN}.xpm
+
+ dogamesbin ${PN}
+ make_desktop_entry ${PN} "Descent ${DV} Rebirth"
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ if ! use cdinstall ; then
+ echo
+ elog "To play the full game enable USE=\"cdinstall\" or manually "
+ elog "copy the files to ${GAMES_DATADIR}/d${DV}x."
+ elog "See /usr/share/doc/${PF}/INSTALL.txt for details."
+ echo
+ fi
+ elog 'AddOns now use filename extension ".dxa".'
+ elog 'Your old AddOns will not work anymore.'
+ elog 'You can either re-download them or simply'
+ elog 'rename them from *.zip to *.dxa.'
+}
diff --git a/games-action/d2x-rebirth/files/d2x-rebirth-0.58.1-flags.patch b/games-action/d2x-rebirth/files/d2x-rebirth-0.58.1-flags.patch
new file mode 100644
index 000000000000..6da154555b35
--- /dev/null
+++ b/games-action/d2x-rebirth/files/d2x-rebirth-0.58.1-flags.patch
@@ -0,0 +1,10 @@
+--- SConstruct.orig 2014-07-02 01:37:25.546536553 -0400
++++ SConstruct 2014-07-02 01:39:26.564324558 -0400
+@@ -220,7 +220,6 @@
+ env.Append(CPPFLAGS = ['-g'])
+ else:
+ env.Append(CPPDEFINES = ['NDEBUG', 'RELEASE'])
+- env.Append(CPPFLAGS = ['-O2'])
+
+ # profiler?
+ if (self.user_settings.profiler == 1):
diff --git a/games-action/d2x-rebirth/metadata.xml b/games-action/d2x-rebirth/metadata.xml
new file mode 100644
index 000000000000..d6686bb37978
--- /dev/null
+++ b/games-action/d2x-rebirth/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <use>
+ <flag name="demo">Install <pkg>games-action/descent2-demodata</pkg> as well</flag>
+ <flag name="music">Support for ingame music</flag>
+ <flag name="l10n_de">Provides German translations for the game's
+ briefings, robot descriptions, and outro of the original campaign</flag>
+ <flag name="opl3-musicpack">Include alternate version of the game's music, recorded
+ with the Yamaha YMF262 OPL3 soundchip</flag>
+ <flag name="sc55-musicpack">Include alternate version of the game's music, recorded
+ with the Roland Sound Canvas SC-55 MIDI module</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">dxx-rebirth/dxx-rebirth</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-action/deathchase3d/Manifest b/games-action/deathchase3d/Manifest
new file mode 100644
index 000000000000..20599e8f680f
--- /dev/null
+++ b/games-action/deathchase3d/Manifest
@@ -0,0 +1,7 @@
+AUX deathchase3d-0.9-underlink.patch 362 SHA256 9e5082f23acefbad7adc01c570566facb3d7e3d9b8d49bfa2bcebe57fd06f85d SHA512 4a255f6bb158baff2651815a83fa22b01a1ec21b91a1990db14c26ad30c1ef62441556bce3cdaea39edcac9c4fba30f95957ccccf2e4b1a110d23993c0606f58 WHIRLPOOL ff5363445d130ee3de4307167790bf75510e9a912eb2108dd70796f58504c4f0407c7e2677d3f227c3b143ce80c91f1e95212625e5a640b50bd2d24942753679
+DIST deathchase3d-0.9.tar.gz 587888 SHA256 42b4c5551be4662fcba6a6c7476ff6235307cf39e13781d6f1f13abe26a7db2a SHA512 21e382ec389ff64e11562f9715ab53662d6f2150af7f7f940311acd0abad76da3904f4bae849479a04af99b0001fefe77509755975636de81767a9faa4487d90 WHIRLPOOL 221de1a91f7130afb8623089be88c435fa16e52d41f81f7350491a63d50b2a01da9f2a65c62c4155e281e04121c4e868edd3a2175c1d6254ee1800e92fc26a6a
+EBUILD deathchase3d-0.9-r1.ebuild 545 SHA256 2c3004cc285013cef65c209010d781350fdeab0a1d0571bc48d864ad60c3421e SHA512 7822d908a3fe0c69178e5bf6f7e7ddd44fba236da4f850dc88122281e61deec0e866aa469f8c74e488c34e4ec68c5bba7608e6f59be83741494031476d85622e WHIRLPOOL 383e232e406f60ed6856d581105600016b97108850446a15368208c50749b25bc0b4b5d434ec5709cabdd8efc51317f9a32263ee08351db6f62f0631a0849df2
+EBUILD deathchase3d-0.9.ebuild 592 SHA256 551a5e59855056e336d4a97c894a85f20a6417a7b67c5dcfbbf359ddf292642e SHA512 70cd3c179e2142d331072156dd1d197cc951be926fa245ccd0ead449730626e573c615bff51ec35d0e724155cbebe8ebdb4ccc5a1182f1589aba71bbb2c98729 WHIRLPOOL 41850531d15f5ec4aae7875ddf75aaea5f795296906ca5e2e81a3387511735d0b456c3d84a067d28bb7079392b76e27d402938faa0dc70e2cfabff0141470c66
+MISC ChangeLog 2631 SHA256 7416978f8c756de2135f6a2fbb70e65c45c357391b6d818c7217bcc9361bb1c9 SHA512 e9b3265acdebb871e1bf541cb68f81fc69c8e978678f8ec62fec79fcbdbb47dbdbbf834d615be927067449c63f18589d4b88f1fdefae0f7ba2962be25329cdf3 WHIRLPOOL 6e990e6e72ee9468f525897c344b955a8a2a5fb302c0032f2b9237838e3fa1c457097be64bdd6ecdf0dc3a97f1d9ffcc934219d1109b62dc79db66a1d91c5d83
+MISC ChangeLog-2015 969 SHA256 c476c75b45fd4bae7d47ff6584473b112a16f6676a3c8a8b5aa5da5e8ae1375c SHA512 f954c7ea17544de1857ecc36bac895ddd74845ad22983fb66f84343f33ae5b310787877accb59525eddf0b8487f8834f4b9864f2adeb90d9ae0748f673e0c998 WHIRLPOOL 155c5cd4163c6b2d0216a90a43c1ce1e6b57163c91deda448a5b4da530e1ed3251e23653426a563b9ee1cb64e0239fd4f0fcbcc9d1f89673786701d7a01e249e
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-action/deathchase3d/deathchase3d-0.9-r1.ebuild b/games-action/deathchase3d/deathchase3d-0.9-r1.ebuild
new file mode 100644
index 000000000000..f063ab7c3d10
--- /dev/null
+++ b/games-action/deathchase3d/deathchase3d-0.9-r1.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils
+
+DESCRIPTION="A remake of the Sinclair Spectrum game of the same name"
+HOMEPAGE="http://www.autismuk.freeserve.co.uk/"
+SRC_URI="http://www.autismuk.freeserve.co.uk/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="media-libs/libsdl[video]"
+RDEPEND=${DEPEND}
+
+PATCHES=(
+ "${FILESDIR}/${P}-underlink.patch"
+)
+
+src_install() {
+ dobin "${PN}/${PN}"
+ dodoc README ${PN}/docs/en/index.html
+}
diff --git a/games-action/deathchase3d/deathchase3d-0.9.ebuild b/games-action/deathchase3d/deathchase3d-0.9.ebuild
new file mode 100644
index 000000000000..496d76710b65
--- /dev/null
+++ b/games-action/deathchase3d/deathchase3d-0.9.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="A remake of the Sinclair Spectrum game of the same name"
+HOMEPAGE="http://www.autismuk.freeserve.co.uk/"
+SRC_URI="http://www.autismuk.freeserve.co.uk/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="media-libs/libsdl[video]"
+RDEPEND=${DEPEND}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-underlink.patch
+}
+
+src_install() {
+ dogamesbin "${PN}/${PN}"
+ dodoc README
+ dohtml "${PN}/docs/en/index.html"
+ prepgamesdirs
+}
diff --git a/games-action/deathchase3d/files/deathchase3d-0.9-underlink.patch b/games-action/deathchase3d/files/deathchase3d-0.9-underlink.patch
new file mode 100644
index 000000000000..ac20e1ff3800
--- /dev/null
+++ b/games-action/deathchase3d/files/deathchase3d-0.9-underlink.patch
@@ -0,0 +1,11 @@
+--- a/deathchase3d/Makefile.in 2011-06-13 09:22:44.140587725 +0200
++++ b/deathchase3d/Makefile.in 2011-06-13 09:22:49.932942379 +0200
+@@ -248,7 +248,7 @@
+ bin_PROGRAMS = deathchase3d
+
+ deathchase3d_SOURCES = treedraw.c tree.c sprites.c objects.c level.c io.c globals.c font.c draw.c main.c
+-deathchase3d_LDADD =
++deathchase3d_LDADD = -lm
+
+ SUBDIRS = docs
+
diff --git a/games-action/deathchase3d/metadata.xml b/games-action/deathchase3d/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-action/deathchase3d/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 type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/games-action/descent1-data/Manifest b/games-action/descent1-data/Manifest
new file mode 100644
index 000000000000..9033a4248478
--- /dev/null
+++ b/games-action/descent1-data/Manifest
@@ -0,0 +1,4 @@
+DIST descent-game-content-10to14a-patch.zip 439853 SHA256 0f63b3c50b78b584f41b6c7d6bf71d43ea5fb5b48d173435a4e69ab9ff2c8b8b SHA512 b71ec888509c77dc8ebc94d5a172a27ab0b16ddfdcb47ac243cefe33b87bbca82df843d9a4bffad8c6f345bfefd89e9e3564353922b00c81ef993e409950eb59 WHIRLPOOL 2daf1713173b0b964133daae6122d444da0691b029a2ffbc8de6818b197d631cede855a7111495689abe32c85c0ee6c656ba2198792f7049e181e2ecd8c0ae6f
+DIST setup_descent_2.1.0.8.exe 25876928 SHA256 0d2d3e436e0011ec3eb888c8980bb8fd1c9258b0d4f9a0a7ad20a7a85c0d3046 SHA512 bab4269900b7ff0808d4495d5e01d2ebe987b5c37544e3651ff215fe8632b31ad4880ef3f968bd551b1462b9c5d1d392317f1ffec26c5314c76d8341800da876 WHIRLPOOL 1a3c09e59d36f9a2a02c7225846d76246e9612a2bc7e15559380a16cebac25453df0e084a82d9953978e1baf23715ee01f3a26a8def9c4add66e54dd821f6519
+EBUILD descent1-data-1.4a.ebuild 2697 SHA256 89aabd52048207dbaace7ed37e70e065fe44a41beab6b4e637b8c1c6ba1599aa SHA512 dabc8465ad7a923601442ed42a30c32f9c55a9dbbfe890fbf62cca4324bc628ec2e9eb38c80075f7e6ed222cbffa1c57ae071853d3316105e1648f70a3db236e WHIRLPOOL 67ad0699c8da6d5207c6d0cfb95859ac1c0716e218bcfe2aee0410f05d87c80dcd00bd66ee0a42ac1146535656fbfd7d2bde025093ff10449b4f3a8777db0868
+MISC metadata.xml 253 SHA256 2c95b2eb99144a3b66de17be35eebcf65e5a152a2ec2f176165bb9cd78e5394e SHA512 61c4689cbc649d84a00be211b7b5b98dd03e1d3f813eff370df549f2998cd4343f391c18b57cf20e4a8f4dd2311e3bfa04eb60f356f2bbac78f0b68f5091f254 WHIRLPOOL fd044f0a960e57257f4a15ab16f066bbfe9983e60cd5fc072e631efc7027306c612a01d7fbbf57eb08d957487a7ce1961250194653d6ed87ee23f20d631ef854
diff --git a/games-action/descent1-data/descent1-data-1.4a.ebuild b/games-action/descent1-data/descent1-data-1.4a.ebuild
new file mode 100644
index 000000000000..85cf48cd3a03
--- /dev/null
+++ b/games-action/descent1-data/descent1-data-1.4a.ebuild
@@ -0,0 +1,111 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+CDROM_OPTIONAL="yes"
+inherit cdrom eutils
+
+# For GOG install
+MY_EXE="setup_descent_2.1.0.8.exe"
+
+DESCRIPTION="Data files for Descent 1"
+HOMEPAGE="http://www.interplay.com/games/descent.php"
+SRC_URI="cdinstall? ( http://www.dxx-rebirth.com/download/dxx/misc/descent-game-content-10to14a-patch.zip )
+ !cdinstall? ( ${MY_EXE} )"
+LICENSE="descent-data"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc"
+RESTRICT="bindist !cdinstall? ( fetch )"
+
+RDEPEND="!games-action/descent1-demodata"
+
+DEPEND="cdinstall? ( app-arch/unzip )
+ !cdinstall? ( app-arch/innoextract )"
+
+S="${WORKDIR}"
+
+pkg_nofetch() {
+ elog "You must place a copy of, or symlink to, the GOG setup package here:"
+ elog "${DISTDIR}/${MY_EXE}"
+ echo
+ elog "If you wish to install from CD-ROM instead, please enable the cdinstall flag."
+}
+
+src_unpack() {
+ if use cdinstall; then
+ default
+ cdrom_get_cds descent/descent.hog:descent.hog
+
+ case ${CDROM_SET} in
+ 0) einfo "Found Descent 1 CD" ;;
+ 1) einfo "Found Descent 1 installation" ;;
+ esac
+
+ cd "${CDROM_ABSMATCH%/*}" || die
+ else
+ innoextract -e -s -p0 -L -I app -d gog "${DISTDIR}/${MY_EXE}" || die
+ cd "${WORKDIR}/gog/app" || die
+ fi
+
+ eshopts_push -s globstar nocaseglob nullglob
+
+ # Strip directories
+ # Lowercase
+ # chaos.* into data/missions
+ # *.dem into data/demos
+ # Documentation into doc
+ # Remainder into data
+
+ tar c \
+ --mode=u+w \
+ --ignore-case \
+ --xform='s:.*/::xg' \
+ --xform='s:.*:\L\0:x' \
+ --xform='s:^chaos\.:data/missions/\0:x' \
+ --xform='s:.*\.dem$:data/demos/\0:x' \
+ --xform='s:.*\.(faq|pdf|txt)$:doc/\0:x' \
+ --xform='s:^[^/]+$:data/\0:x' \
+ --exclude="$(use doc || echo '*.pdf')" \
+ *.{faq,txt,pdf} **/*.{dem,hog,msn,pig} \
+ | tar x -C "${WORKDIR}"
+
+ assert "tar failed"
+ eshopts_pop
+}
+
+src_prepare() {
+ if use cdinstall; then
+ case $(md5sum data/descent.hog || die) in
+ 8adfff2e5205486cd5574ac3dd0b4381*)
+ patch -p0 data/descent.hog < descent.hog.diff || die ;;
+ c792a21a30b869b1ec6d31ad64e9557e*)
+ einfo "descent.hog already patched" ;;
+ *)
+ ewarn "Unknown descent.hog detected, cannot patch" ;;
+ esac
+
+ case $(md5sum data/descent.pig || die) in
+ 7916448ae69bcc0dd4f3b057a961285f*)
+ patch -p0 data/descent.pig < descent.pig.diff || die ;;
+ fa7e48b7b1495399af838e31ac13b7da*)
+ einfo "descent.pig already patched" ;;
+ *)
+ ewarn "Unknown descent.pig detected, cannot patch" ;;
+ esac
+ fi
+
+ default
+}
+
+src_install() {
+ insinto /usr/share/games/d1x
+ doins -r data/*
+ [[ -d doc ]] && dodoc doc/*
+}
+
+pkg_postinst() {
+ elog "A client is needed to run the game, e.g. games-action/dxx-rebirth."
+ echo
+}
diff --git a/games-action/descent1-data/metadata.xml b/games-action/descent1-data/metadata.xml
new file mode 100644
index 000000000000..26079e608bed
--- /dev/null
+++ b/games-action/descent1-data/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 type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/games-action/descent1-demodata/Manifest b/games-action/descent1-demodata/Manifest
new file mode 100644
index 000000000000..3319ac59b8ce
--- /dev/null
+++ b/games-action/descent1-demodata/Manifest
@@ -0,0 +1,6 @@
+DIST desc14sw.exe 2892216 SHA256 3dadb7fbc01efce2904d0908c55d9a9cf1f402e83bf771970552efaca15efcb0 SHA512 121bd909285138eef3009af4a46174a4af241b139230eda5c232fe710b17419e385ffeb97e13678c253390e6393615006c739a8dd4b0e14b375678491629ab3e WHIRLPOOL 5fbc95c6cbb5d26c30c3a5b9cf79b0fe0932d1a1b3886dc4db1e396854592c63e22e7f539b5fef04cb0eefaf902202a1de397d85adab8a7e2466c98127108534
+EBUILD descent1-demodata-1.4-r1.ebuild 935 SHA256 78c4c0a33b8b698fba57285650c5a046774ec5d47a61c4cb87fe0baca22f7594 SHA512 4c05b12a4bb66acac9c9446f77e0f500f27e6081ab1436736143ba3f1a840762c88bb73c1f8041a62215802010f5009d201d01753f94887ce08b5f8d1f8b32a6 WHIRLPOOL fce794d4ea4ef04bcbaf128d1342cd25b8218a7f013ef7f2ca4b479bfa22f33df49dba3dad6b7c787445d755db119e3d437a2d667f8ea10cb5324d0453b6f024
+EBUILD descent1-demodata-1.4.ebuild 1123 SHA256 78b801d23a476fef66e990d885d4a3777308d9b0d12b640773d05af3d46ce04b SHA512 4bdd8dcacc2bfa6540e6129a58f1b359351a6169052f37c868dc4d85ada21707caf0c654b27092aea9fa68988e16b7866a925458c0b2cb3acd3959219d22c1cb WHIRLPOOL 18ffbec7e101ef467c95d0ea408ee24175224bf36526190b97876ac670ba21374d8cfb76e298f421a5ff0f721620db1b3771260395372fbcaeef2b4697249d6c
+MISC ChangeLog 2457 SHA256 d4cbd4759ebba1fd7f6b216b9b5967461b27cafb0c5429a0cf66f8c79f40b8a3 SHA512 dd84a4b8d730f90fcb5761335ebc11beaea751ffa06cdae8a79f5d2fbb33ac253f51f34a58f8c1809be8be13127ad909dbd1da1334752e85fd30d0d6ba435514 WHIRLPOOL 9ea79a01b723188c021f7e3730fc882f6f1579d23b89ea0125687e53cef6cb55f75172a14da5426fad0dab93707428fa3f7b1a3342dc3fb0d985f4977a0efcaa
+MISC ChangeLog-2015 1221 SHA256 2185d7cc4ebaa5fc1accd64b07fb00991f22d8d7881cbbd6856d4e669323352f SHA512 e5fe11291d64b3b7bb83c30cc96c9195c60c2f8eb16c588ff0530808499c212a96553a15a4c79c1bacd0546b6e4ecbc73ff73c522885ddf30ba78f5d974c6151 WHIRLPOOL 3a4d423c278f32b7e6bb29cab2f806c795ff3858f33e88bf577df628a5f49d161c02957b2ea238895dedb38bd0e76b753a41b62700d8229f07395bb35267def3
+MISC metadata.xml 560 SHA256 67752027bc65c065e53250d2ccee2a3bfec7143b93657b145a7884ef620b0e7b SHA512 0f5457290e5c7f6d5abdd6d9b42ef06c8c6cd3c85032cc4c3aa90c67beb33d467bea45b8371cbb182e2d89bd27bc409c36ed27b438fc41c09825cdff1060c543 WHIRLPOOL defe44bc6f05fd2f7d6efb0412afe113805f2dffd3a4c9548c9819c75356e3a0d4ce52929230c6b7f3a9650d1f76c704e2fdad631894c6cc1f3348ac7a09c0fb
diff --git a/games-action/descent1-demodata/descent1-demodata-1.4-r1.ebuild b/games-action/descent1-demodata/descent1-demodata-1.4-r1.ebuild
new file mode 100644
index 000000000000..8a61ba5c2977
--- /dev/null
+++ b/games-action/descent1-demodata/descent1-demodata-1.4-r1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit unpacker
+
+DEMO="desc${PV//.}sw.exe"
+
+DESCRIPTION="Demo data files for Descent 1"
+HOMEPAGE="http://www.interplay.com/games/descent.php"
+SRC_URI="http://icculus.org/d2x/data/${DEMO}
+ ftp://ftp.funet.fi/pub/msdos/games/interplay/${DEMO}"
+LICENSE="free-noncomm"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="!games-action/descent1-data"
+
+DEPEND="app-arch/unzip
+ app-arch/unarj"
+
+S="${WORKDIR}"
+
+src_unpack() {
+ unpack_zip ${A}
+
+ unarj e DESCENT1.SOW || die
+ mv descent.pig{,1} || die
+ unarj e DESCENT2.SOW || die
+ mv descent.pig{,2} || die
+
+ # From the sows, big porkie pies shall grow
+ cat descent.pig{1,2} > descent.pig || die
+}
+
+src_install() {
+ insinto /usr/share/games/d1x
+ doins descent.{hog,pig}
+ dodoc *.txt
+}
+
+pkg_postinst() {
+ elog "A client is needed to run the game, e.g. games-action/dxx-rebirth."
+ echo
+}
diff --git a/games-action/descent1-demodata/descent1-demodata-1.4.ebuild b/games-action/descent1-demodata/descent1-demodata-1.4.ebuild
new file mode 100644
index 000000000000..167e52526d8f
--- /dev/null
+++ b/games-action/descent1-demodata/descent1-demodata-1.4.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils unpacker games
+
+MY_PV=${PV/./}
+DEMO="desc${MY_PV}sw.exe"
+
+DESCRIPTION="Demo data files for Descent 1"
+HOMEPAGE="http://en.wikipedia.org/wiki/Descent_%28computer_game%29"
+SRC_URI="http://icculus.org/d2x/data/${DEMO}
+ mirror://3dgamers/descent/${DEMO}
+ ftp://ftp.funet.fi/pub/msdos/games/interplay/${DEMO}"
+
+# See readme.txt
+LICENSE="free-noncomm"
+
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND=""
+DEPEND="app-arch/unzip
+ app-arch/unarj"
+
+S=${WORKDIR}
+
+src_unpack() {
+ unpack_zip ${A}
+
+ unarj e DESCENT1.SOW || die
+ mv descent.pig{,1}
+ unarj e DESCENT2.SOW || die
+ mv descent.pig{,2}
+
+ # From the sows, big porkie pies shall grow
+ cat descent.pig{1,2} > descent.pig || die
+
+ rm *{1,2} *.{bat,exe,EXE,SOW,ubn}
+}
+
+src_install() {
+ local dir=${GAMES_DATADIR}/d1x
+
+ insinto "${dir}"
+ doins descent.*
+
+ dodoc *.txt
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+
+ elog "A client is needed to run the game, e.g. d1x-rebirth."
+ elog "Not all Descent 1 clients support the demo data."
+ echo
+}
diff --git a/games-action/descent1-demodata/metadata.xml b/games-action/descent1-demodata/metadata.xml
new file mode 100644
index 000000000000..d14136fc9672
--- /dev/null
+++ b/games-action/descent1-demodata/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+</maintainer>
+<longdescription>
+Descent 1 is a classic first-person shooter released in 1995 by Interplay
+and Parallax. It was one of the first games with true 3-dimensional
+graphics, movement, and light sourcing. This is the demo data for the game
+which is used by the various Descent 1 source ports.
+</longdescription>
+</pkgmetadata>
diff --git a/games-action/descent2-data/Manifest b/games-action/descent2-data/Manifest
new file mode 100644
index 000000000000..b5c96ac7c165
--- /dev/null
+++ b/games-action/descent2-data/Manifest
@@ -0,0 +1,7 @@
+DIST d2xptch12.tgz 158419 SHA256 61743c19baecde602c778e6ea44ef4a28bab9b8aa16a5f2772e3799863487a80 SHA512 14d59280e685a9c3d5e23e1d535f37f89768e022b795067793a994c5150685addfcacbd2dc52231804240d01d17d57b1db04335d41bc5930e3c8a845ebbb396b WHIRLPOOL ea2d14205eaa8978f22b9e9c3e20d99cf4c9ea8f43a4c688cb4cd9fc85b41b1dfdfed9fa38161ba776357a16370ede00fcc191a5d01ba1e7c4635720f0d1e77c
+DIST setup_descent2_2.1.0.10.exe 554371624 SHA256 e787d95574f8a4bf3c442ad49e837186319d3bb041a33a00df726be3be7c9750 SHA512 0db1935864eb59002cc995dfe9c40badd72d0a3dcec61092b0760481cd3d1316db17631c05043b938e4b958d696c508ce379face9baa260dcc598c77b4460618 WHIRLPOOL 1f13b652c79752772cf2a151ca7663443e8936be352ddb100e140b00bc6f88a13ba5d4dfad17cb07ed78ed5b629fad1aaeeb7424a2216b68761c4065b6f8ac3c
+EBUILD descent2-data-1.0.ebuild 2104 SHA256 ec44d7cd871b6a959d6e5c090e85358fd31d7e8a26af6ae4321d3c99df1eacd4 SHA512 8c15d74381f2ad260402ddf0e32178bf2386d7ec2ca9540724515b3325105fd8cfbc4369dcde12326aa135266d76c91a9049907743c34cce403cd427f6cf8afb WHIRLPOOL 3587d783ec8ca7673468b9d30e7218d39174e06c06d31d7dad270f4e068925abe05b2ff36ebda713e4cbb76836f1cd6feae2d8e188207b6d3d51d2d34747d13d
+EBUILD descent2-data-1.2.ebuild 2892 SHA256 b992168a579c53e85bf45cf925b88a4318718323221a7284566bd5a6aee2979e SHA512 81a9717dd2ace1af3852a2324bfbfe5226642fba07d9ce14906cb278d80385f6be77b73b58a9907364acfc45b2d38b70cc9a57fd0aa77f39cfed90edcf30ae26 WHIRLPOOL cdd4c830d9c8bdc571cce8a18abd8af198f6645e22798e0b07c264cf00756565ae2345bbd1969556cbfd5182c3cf1977da49d4abe7853de46c237b0658d02128
+MISC ChangeLog 2445 SHA256 f4ed98a453a636f856d506842347bb40683d6b848ceab6239419a417f4ebfaac SHA512 3e27dd5ba972eb769726917524eafa69088712a681cce3ebe1e4850cf9f868bc99ac2ec57b894ec627c0946c2f23d9492b8bc5ad7319a03c9fbad5ae9ab9eaa5 WHIRLPOOL 64a1c8b9f33c286078e8aaf8e01d2985ed2057d95aa44334c8ee78d9cecdf90297be055ff0b71701361b610bd06d65cf709360967ff6d4627fd96765a0fb4cda
+MISC ChangeLog-2015 1672 SHA256 6c81754fa37cdcd77ebac60c4ccd3da0f766fb083c247cd522d453d3aeefad8e SHA512 cdec5eb1d38406390314b62b16153b7d850599f3b8c650b9cffe5328b977eabbfa9edb6f083fc27946c74261b3c271a3bc74ff2510b1f62b34e4fd0ea0ff4c11 WHIRLPOOL 27b7a8799c2e36304ca038822294ffa3bff3089f5e626d2ab18adef119dcdeeafa2a5631183662edfcafeef036b65da40fe7d4f370e8b7544e7e8ddc91b4803e
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-action/descent2-data/descent2-data-1.0.ebuild b/games-action/descent2-data/descent2-data-1.0.ebuild
new file mode 100644
index 000000000000..5ab6aa099f74
--- /dev/null
+++ b/games-action/descent2-data/descent2-data-1.0.ebuild
@@ -0,0 +1,98 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils cdrom games
+
+MY_PV=${PV/./}
+SOW="descent2.sow"
+
+DESCRIPTION="Data files for Descent 2"
+HOMEPAGE="http://www.interplay.com/games/product.asp?GameID=109"
+SRC_URI=""
+# Don't have a method of applying the ver 1.2 patch in Linux
+# http://www.interplay.com/support/product.asp?GameID=109
+# mirror://3dgamers/descent2/d2ptch${MY_PV}.exe
+
+# See readme.txt
+LICENSE="descent-data"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="videos"
+
+# d2x-0.2.5-r2 may include the CD data itself.
+# d2x-0.2.5-r3 does not include the CD data.
+# d2x-rebirth is favoured because it is stable.
+#RDEPEND="|| (
+# games-action/d2x-rebirth
+# >=games-action/d2x-0.2.5-r3 )"
+RDEPEND="!<games-action/d2x-0.2.5-r3"
+DEPEND="app-arch/unarj"
+
+S=${WORKDIR}
+dir=${GAMES_DATADIR}/d2x
+
+pkg_setup() {
+ games_pkg_setup
+
+ local m f need_cd="n"
+
+ # Could have the ${SOW} file in ${DISTDIR}
+ if [[ -e "${DISTDIR}/${SOW}" ]] ; then
+ einfo "Using ${SOW} from ${DISTDIR}"
+ # Check that the movies are available in ${DISTDIR} if needed
+ if use videos ; then
+ for m in {intro,other,robots}-{h,l}.mvl ; do
+ [[ -e "${DISTDIR}/${m}" ]] || need_cd="y"
+ done
+ fi
+ else
+ need_cd="y"
+ fi
+
+ if [[ "${need_cd}" == "y" ]] ; then
+ # The Descent 2 CD is needed
+ cdrom_get_cds "d2data/${SOW}"
+ fi
+}
+
+src_unpack() {
+ local m f="${DISTDIR}/${SOW}"
+
+ [[ -e "${f}" ]] || f="${CDROM_ROOT}/d2data/${SOW}"
+ # Extract level data
+ unarj e "${f}" || die
+
+ if use videos ; then
+ # Include both high and low resolution movie files
+ for m in {intro,other,robots}-{h,l}.mvl ; do
+ f="${DISTDIR}/${m}"
+ [[ -e "${f}" ]] || f="${CDROM_ROOT}/d2data/${m}"
+ einfo "Copying ${m}"
+ cp -f "${f}" . || die
+ done
+ fi
+
+ rm -f endnote.txt
+ mkdir doc
+ mv -f *.txt doc
+
+ # Remove files not needed by any Linux native client
+ rm -f *.{bat,dll,exe,ini,lst}
+}
+
+src_install() {
+ insinto "${dir}"
+ doins *
+
+ dodoc doc/*
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+
+ elog "A client is needed to run the game, e.g. games-action/d2x-rebirth."
+ echo
+}
diff --git a/games-action/descent2-data/descent2-data-1.2.ebuild b/games-action/descent2-data/descent2-data-1.2.ebuild
new file mode 100644
index 000000000000..947680089288
--- /dev/null
+++ b/games-action/descent2-data/descent2-data-1.2.ebuild
@@ -0,0 +1,121 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+CDROM_OPTIONAL="yes"
+inherit cdrom eutils
+
+# Not possible to apply official 1.2 patch under Linux. A Gentoo user
+# created Xdelta patches and the DXX-Rebirth project kindly hosted them.
+MY_PATCH="http://www.dxx-rebirth.com/download/dxx/misc/d2xptch12.tgz"
+
+# For GOG install
+MY_EXE="setup_descent2_2.1.0.10.exe"
+
+DESCRIPTION="Data files for Descent 2"
+HOMEPAGE="http://www.interplay.com/games/descent.php"
+SRC_URI="cdinstall? ( ${MY_PATCH} )
+ !cdinstall? ( ${MY_EXE} )"
+LICENSE="descent-data"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc videos"
+RESTRICT="bindist !cdinstall? ( fetch )"
+
+# <d2x-0.2.5-r3 may include the data.
+RDEPEND="!<games-action/d2x-0.2.5-r3
+ !games-action/descent2-demodata"
+
+DEPEND="cdinstall? (
+ app-arch/unarj
+ dev-util/xdelta:3
+ )
+ !cdinstall? (
+ app-arch/innoextract
+ )"
+
+S="${WORKDIR}"
+
+pkg_nofetch() {
+ elog "You must place a copy of, or symlink to, the GOG setup package here:"
+ elog "${DISTDIR}/${MY_EXE}"
+ echo
+ elog "If you wish to install from CD-ROM instead, please enable the cdinstall flag."
+}
+
+src_unpack() {
+ if use cdinstall; then
+ default
+ cdrom_get_cds d2data/descent2.sow:descent2.hog
+
+ case ${CDROM_SET} in
+ 0)
+ einfo "Found Descent 2 CD"
+ unarj e "${CDROM_ABSMATCH}" || die ;;
+ 1)
+ einfo "Found Descent 2 installation"
+ cd "${CDROM_ABSMATCH%/*}" || die ;;
+ esac
+ else
+ einfo "Unpacking ${MY_EXE}. This will take a while..."
+ innoextract -e -s -p1 -L -I app -d gog "${DISTDIR}/${MY_EXE}" || die
+ cd "${WORKDIR}/gog/app" || die
+ fi
+
+ eshopts_push -s globstar nocaseglob nullglob
+
+ # Strip directories
+ # Lowercase
+ # d2{-2plyr,chaos}.* into data/missions
+ # *.dem into data/demos
+ # Documentation into doc
+ # Remainder into data
+ # Exclude Vertigo files
+
+ tar c \
+ --mode=u+w \
+ --ignore-case \
+ --xform='s:.*/::xg' \
+ --xform='s:.*:\L\0:x' \
+ --xform='s:^d2(-2plyr|chaos)\.:data/missions/\0:x' \
+ --xform='s:.*\.dem$:data/demos/\0:x' \
+ --xform='s:.*\.(pdf|txt)$:doc/\0:x' \
+ --xform='s:^[^/]+$:data/\0:x' \
+ --exclude='d2x*' \
+ --exclude='hoard.ham' \
+ --exclude='panic.*' \
+ --exclude="$(use doc || echo '*.pdf')" \
+ --exclude="$(use videos || echo '*.mvl')" \
+ *.{txt,pdf} *-h.mvl **/*.{ham,hog,mn2,pig,s11,s22} \
+ | tar x -C "${WORKDIR}"
+
+ assert "tar failed"
+ eshopts_pop
+}
+
+src_prepare() {
+ # Patch to 1.2 if necessary
+ if use cdinstall; then
+ if [[ $(md5sum data/descent2.ham) != 7f30c3d7d4087b8584b49012a53ce022* ]]; then
+ local i
+ for i in *.xdelta; do
+ xdelta3 -d -s data/"${i%.*}" "${i}" data/"${i%.*}".new || die
+ mv data/"${i%.*}"{.new,} || die
+ done
+ fi
+ fi
+
+ default
+}
+
+src_install() {
+ insinto /usr/share/games/d2x
+ doins -r data/*
+ [[ -d doc ]] && dodoc doc/*
+}
+
+pkg_postinst() {
+ elog "A client is needed to run the game, e.g. games-action/dxx-rebirth."
+ echo
+}
diff --git a/games-action/descent2-data/metadata.xml b/games-action/descent2-data/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-action/descent2-data/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 type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/games-action/descent2-demodata/Manifest b/games-action/descent2-demodata/Manifest
new file mode 100644
index 000000000000..1eb8a48928f0
--- /dev/null
+++ b/games-action/descent2-demodata/Manifest
@@ -0,0 +1,6 @@
+DIST d2demo10.zip 4306833 SHA256 f8d005670fe5cd17e07ca9bf4022f1045aed436639c37f1e83dd647e14fcec1f SHA512 a4229be701a4b2fc28d3c71591a477d242c1c784dc233c1e9ca6b798b3774de9744d8a91b0b80904b3fe63e1285b79234bf48681cddaeca702b3d9ce4c2b6fab WHIRLPOOL 063961a4cc768f4553c460413d862c7dc604d3be69b87b31af1db6ab7a2da80e1e7213ef590283126b85dd1c45745f4f4f9c61b0bfb286bb178d2cbf57fec77e
+EBUILD descent2-demodata-1.0-r1.ebuild 1225 SHA256 f7a9f92876a611a0e13838b59dc53e5ca81b5bd385d58d21f44be36848019602 SHA512 a4120c6394aadd9c0f9b3b3e2362b8cfce66114dbff76226770edd35247efcfb6827b0d25b720eca376ed96f872b8bb79748ab24138c2e408d0dc814086cd0fc WHIRLPOOL ed243b85d1be7c3d319b30ff6bf48ede6b5376a5ad222f2180ade316da38609bc0a56ff692c6f9d2fc081c7bd4e8f70e8c095b54fcb705e6f764061d94fbe28f
+EBUILD descent2-demodata-1.0.ebuild 1663 SHA256 caa3f1a6e5abce920368a0c4164f6e5c7fcdb4b0ef6c43f8669902028163bffc SHA512 dc243733849d48ceacdf121d4b004f0897feaa893323dc7d52057660478824a3f604503234077814351d607b1ccada8113f129b797328f3339593c2e2f1d784d WHIRLPOOL fbdd442088780829dd53d1992909c64357d77a7670784c8db7d6ee0b8f90b59bfb045b5f3000d44a60e9c42b46c2bfaebc0ac573aafd148717dc5743f90718f6
+MISC ChangeLog 2457 SHA256 0c0138491fff50a1b9c1c645d89b5f30338d9e80bca9e18ef040424b56e7e425 SHA512 86f4c406db92dbdfc4e241217e0df61d9263b35701205f9cf0653d7751bb71a4e5ad155bd804db58799403683a466e4a04dddfe6113bed639f7dec9c976ff420 WHIRLPOOL 756f6bf55679658cac682ef8f1036006f97ae0853110e4a93788d990468014c122f3c7b54cf5bac0640b5ff4dfc978336c028be533c58f0c04ae6f46e3e6dc6e
+MISC ChangeLog-2015 1465 SHA256 70bca6960c9d0401877233f9fe9673ed454b91feca4cb3bda8b272c22f516d2e SHA512 e8d6a3bfee683023d22fb040a9165449b9cc3c4948fc13d3607b53d5c0805409f15e48ee0a92d983c33d83705ccfd694927a2a6fa8fe637d068768b17a7f429c WHIRLPOOL 7f0ec871d6f3bffe401be74f5e9a134b7b18c3539b69b5d9e78ffd3f659363945eb2fbc80c97697ddec9507ff56ddcefa99005387599f74fcced3442da20c3f6
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-action/descent2-demodata/descent2-demodata-1.0-r1.ebuild b/games-action/descent2-demodata/descent2-demodata-1.0-r1.ebuild
new file mode 100644
index 000000000000..79abcc78e76d
--- /dev/null
+++ b/games-action/descent2-demodata/descent2-demodata-1.0-r1.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+MY_PN="d2demo"
+DEMO="${MY_PN}${PV//.}.zip"
+
+DESCRIPTION="Demo data files for Descent 2"
+HOMEPAGE="http://www.interplay.com/games/descent.php"
+SRC_URI="ftp://ftp.funet.fi/pub/msdos/games/interplay/${DEMO}"
+LICENSE="free-noncomm"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+# <d2x-0.2.5-r3 may include the data.
+RDEPEND="!<games-action/d2x-0.2.5-r3
+ !games-action/descent2-data"
+
+DEPEND="app-arch/unzip
+ app-arch/unarj"
+
+S="${WORKDIR}"
+
+src_unpack() {
+ default
+
+ # This is much more fun than simply downloading
+ # http://www.icculus.org/d2x/data/d2shar10.tar.gz
+ unarj e D2_1.SOW || die
+ mv ${MY_PN}.ham{,1} || die
+ unarj e D2_2.SOW || die
+ mv ${MY_PN}.ham{,2} || die
+ mv ${MY_PN}.pig{,2} || die
+ unarj e D2_3.SOW || die
+ mv ${MY_PN}.pig{,3} || die
+
+ # From the sows, big porkie pies shall grow
+ cat ${MY_PN}.ham{1,2} > ${MY_PN}.ham || die
+ cat ${MY_PN}.pig{2,3} > ${MY_PN}.pig || die
+}
+
+src_install() {
+ insinto /usr/share/games/d2x
+ doins *.{ham,hog,pig}
+ insinto /usr/share/games/d2x/demos
+ doins *.dem
+ dodoc *.txt
+}
+
+pkg_postinst() {
+ elog "A client is needed to run the game, e.g. games-action/dxx-rebirth."
+ echo
+}
diff --git a/games-action/descent2-demodata/descent2-demodata-1.0.ebuild b/games-action/descent2-demodata/descent2-demodata-1.0.ebuild
new file mode 100644
index 000000000000..14f126225001
--- /dev/null
+++ b/games-action/descent2-demodata/descent2-demodata-1.0.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils games
+
+MY_PN="d2demo"
+MY_PV=${PV/./}
+DEMO="${MY_PN}${MY_PV}.zip"
+
+DESCRIPTION="Demo data files for Descent 2"
+HOMEPAGE="http://www.interplay.com/games/product.asp?GameID=109"
+SRC_URI="ftp://ftp.funet.fi/pub/msdos/games/interplay/${DEMO}
+ ftp://ftp.demon.co.uk/pub/ibmpc/dos/games/descent/${DEMO}
+ mirror://3dgamers/descent2/${DEMO}"
+
+# See README.TXT
+LICENSE="free-noncomm"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+# d2x-0.2.5-r2 may include the demo data itself
+# d2x-0.2.5-r3 does not include the demo data
+#RDEPEND="|| (
+# games-action/d2x-rebirth
+# >=games-action/d2x-0.2.5-r3 )"
+RDEPEND="!<games-action/d2x-0.2.5-r3"
+DEPEND="app-arch/unzip
+ app-arch/unarj"
+
+S=${WORKDIR}
+dir=${GAMES_DATADIR}/d2x
+
+src_unpack() {
+ unpack ${A}
+
+ # This is much more fun than simply downloading
+ # http://www.icculus.org/d2x/data/d2shar10.tar.gz
+ unarj e D2_1.SOW || die
+ mv ${MY_PN}.ham{,1}
+ unarj e D2_2.SOW || die
+ mv ${MY_PN}.ham{,2}
+ mv ${MY_PN}.pig{,2}
+ unarj e D2_3.SOW || die
+ mv ${MY_PN}.pig{,3}
+
+ # From the sows, big porkie pies shall grow
+ cat ${MY_PN}.ham{1,2} > ${MY_PN}.ham || die
+ cat ${MY_PN}.pig{2,3} > ${MY_PN}.pig || die
+
+ rm *{1,2,3} *.{386,bat,ubn} eregcard.ini
+ mkdir controls
+ mv *.b50 descent2.* controls
+}
+
+src_install() {
+ insinto "${dir}"
+ # The "controls" directory is not needed, nor the ini files
+ doins d2demo.*
+
+ dodoc *.txt
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+
+ elog "A client is needed to run the game, e.g. games-action/d2x-xl."
+ elog "Not all Descent 2 clients support the demo data."
+ echo
+}
diff --git a/games-action/descent2-demodata/metadata.xml b/games-action/descent2-demodata/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-action/descent2-demodata/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 type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/games-action/descent2-vertigo/Manifest b/games-action/descent2-vertigo/Manifest
new file mode 100644
index 000000000000..73d5ab200f2b
--- /dev/null
+++ b/games-action/descent2-vertigo/Manifest
@@ -0,0 +1,2 @@
+EBUILD descent2-vertigo-1.0.ebuild 1229 SHA256 1ac9a6acafb4ff907b72147cf70808f272459766c7cb92cc22957e090ca47cbe SHA512 0a87a258fd54843a54cf2eefbdef662edd7c42a9d58e804b49b0f696d3cdb0e7e70160cdbf467814c0d1bec422e1ea9b3e700d636ca8cf79473ea92e65734a79 WHIRLPOOL e225d0175ffbd52f224cdf659770acf9399836fd0a9ea9a62c8279c479dd786b7cebf742585b691b3ce3bb0f1c11c9bd3bf14ad9308f4a2dd41b48a12392be32
+MISC metadata.xml 253 SHA256 2c95b2eb99144a3b66de17be35eebcf65e5a152a2ec2f176165bb9cd78e5394e SHA512 61c4689cbc649d84a00be211b7b5b98dd03e1d3f813eff370df549f2998cd4343f391c18b57cf20e4a8f4dd2311e3bfa04eb60f356f2bbac78f0b68f5091f254 WHIRLPOOL fd044f0a960e57257f4a15ab16f066bbfe9983e60cd5fc072e631efc7027306c612a01d7fbbf57eb08d957487a7ce1961250194653d6ed87ee23f20d631ef854
diff --git a/games-action/descent2-vertigo/descent2-vertigo-1.0.ebuild b/games-action/descent2-vertigo/descent2-vertigo-1.0.ebuild
new file mode 100644
index 000000000000..d49ee60b99d0
--- /dev/null
+++ b/games-action/descent2-vertigo/descent2-vertigo-1.0.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cdrom eutils
+
+DESCRIPTION="Data files for Descent 2: The Vertigo Series"
+HOMEPAGE="http://www.interplay.com/games/descent.php"
+LICENSE="descent-data"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="videos"
+RESTRICT="bindist"
+
+S="${WORKDIR}"
+
+src_unpack() {
+ cdrom_get_cds vertigo/d2x.hog:hoard.ham
+
+ case ${CDROM_SET} in
+ 0) einfo "Found Descent 2 Vertigo Series CD" ;;
+ 1) einfo "Found Descent 2 Vertigo Series installation" ;;
+ esac
+
+ cd "${CDROM_ABSMATCH%/*}" || die
+ eshopts_push -s globstar nocaseglob nullglob
+
+ # Strip directories
+ # Lowercase
+ # *.{hog,mn2} into data/missions
+ # Remainder into data
+
+ tar c \
+ --mode=u+w \
+ --ignore-case \
+ --xform='s:.*/::xg' \
+ --xform='s:.*:\L\0:x' \
+ --xform='s:.*\.(hog|mn2)$:data/missions/\0:x' \
+ --xform='s:^[^/]+$:data/\0:x' \
+ --exclude="$(use videos || echo '*.mvl')" \
+ **/{hoard.ham,d2x-h.mvl,{d2x,panic}.{hog,mn2}}* \
+ | tar x -C "${WORKDIR}"
+
+ assert "tar failed"
+ eshopts_pop
+}
+
+src_install() {
+ insinto /usr/share/games/d2x
+ doins -r data/*
+}
+
+pkg_postinst() {
+ elog "A client is needed to run the game, e.g. games-action/dxx-rebirth."
+ echo
+}
diff --git a/games-action/descent2-vertigo/metadata.xml b/games-action/descent2-vertigo/metadata.xml
new file mode 100644
index 000000000000..26079e608bed
--- /dev/null
+++ b/games-action/descent2-vertigo/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 type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/games-action/descent3-demo/Manifest b/games-action/descent3-demo/Manifest
new file mode 100644
index 000000000000..06679cd3d597
--- /dev/null
+++ b/games-action/descent3-demo/Manifest
@@ -0,0 +1,6 @@
+DIST descent3-demo.run 45118289 SHA256 9304dff200a062bb5bd1fa69517b5cc6c19db0a63c06b2084f05c98c9eca786c SHA512 8f5e790257d0477e4238aae8fb5b4b1f21e23f188775cb53a5197baf0c174017d821e3a8dd696f9c0fd27838e08cff4bde0d6f5a9dca87a7e8af29cdc627d29c WHIRLPOOL 42d4aabadf185fe88e9e2dff91595a8895a2f51e212e7efbdcaccb9b55d380c10a3fbb0e4c5c2814d3017e0d90ba46c70a2d770bc7a8cbe25b6fc210a0a4204c
+EBUILD descent3-demo-1.4.0a-r1.ebuild 1702 SHA256 8383973ec87e05d0c19c3cda28a2b1bc79e22a8384c3089da0470bfd98f90b0d SHA512 38e25044e6afc983f0e3ee4762b2f6c1b623362c2c87d72c54cb6af7c7e95c23394dd14126bde41ce5bdd08e0c68690cb173cb48d62c5fa71e12a7ff5c8371c9 WHIRLPOOL 707dc2ce9cccab5818f98d9410696b1b3ea4dc6f63a59e38089e50b60c326f9646846675c4b29ad91969bc41d7faac86371a2af3c7e9fdf0afb15006334cf95c
+EBUILD descent3-demo-1.4.0a.ebuild 1398 SHA256 2de5e3b992a52d453b902f8fb5de63a8fa2670ec8ac7f0928ef11de52fb5895f SHA512 02fe3f1f3b190c11acc80d4c0344e42f7623545187cac13f8f105156d960f5253a4c0dec5d30fd6b921c6333804e3ada2f8320f854a94b7875ea386ccb2d3c85 WHIRLPOOL 035587518dcc28f8f93748f77a334f38167fbcb2517654e9ed936a1c8d9ff2e12a053b1ddb8d3470a83798a0c24dc47e261a699fb465564f7b9ed5419c3d1592
+MISC ChangeLog 2451 SHA256 ae3e7fa654f14df32d6c92e1f4c039dc914cc7c69e4b5d3db29c864060bc84f8 SHA512 babb48ed605f7d802bae528e5be4fe7809abea212c296678c83ca770c50902b112a5fa8fd8c5d121706029ad9a6cf9498ac4c38361f7602eb3df4aa138468868 WHIRLPOOL 869d66a438dd3101ade59bbb8c3652a30a236b87d394b45a72af8128e64fe66a8da9ec336bcb0afac62e3af5b4abc5a62a757c50941d969a2d2e31d33b41e523
+MISC ChangeLog-2015 2264 SHA256 1d11dd3353634d3f4825d07866beed740611b5a4cdc8d67b21af637d4ce7b555 SHA512 5f305c6b7a426502729f4ce7d581471c130954b9ab5faaa6cabd2f016164f006ef2662d4977c47789bfb31c2cce73f76956d116bb2cecf8e15634759dbed09af WHIRLPOOL d41a81068d2db36a78ebf5cda80146ac8c7916d997cba77ceeab3d033080d8a9f9e3a2ba877a9a0595649c7f16fbff862909bff7fd52579b1e9e3324c0ddaed6
+MISC metadata.xml 674 SHA256 35072bdb4c71735d8cffb8fde5e3fac921dfdea99ac9f53961ecf8165c99bd66 SHA512 44cd0adf66a791a20af8eda38f8a7adef9aaeaf74b5a3db388d33efaec4bc14781ad9c8697fdbd18a2ff2188f848601409631b02537589bbae9eb9d8d0c5792f WHIRLPOOL 8d9e5578264caaef0b16c3e5df8782b6844f0b165cc1184408ac6af9a4170ec161eafe4d21f242ba3643704c4118b338833f0b5e0f5a062a4b0d16d8967e4377
diff --git a/games-action/descent3-demo/descent3-demo-1.4.0a-r1.ebuild b/games-action/descent3-demo/descent3-demo-1.4.0a-r1.ebuild
new file mode 100644
index 000000000000..cad5192149ca
--- /dev/null
+++ b/games-action/descent3-demo/descent3-demo-1.4.0a-r1.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils unpacker xdg
+
+DESCRIPTION="Indoor/outdoor 3D combat with evil robotic mining spacecraft"
+HOMEPAGE="http://www.lokigames.com/products/descent3/"
+SRC_URI="mirror://lokigames/loki_demos/${PN}.run"
+
+LICENSE="all-rights-reserved"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="alsa pulseaudio"
+REQUIRED_USE="?? ( alsa pulseaudio )"
+RESTRICT="bindist mirror strip"
+
+DEPEND="games-util/loki_patch"
+RDEPEND="sys-libs/glibc
+ >=virtual/opengl-7.0-r1[abi_x86_32(-)]
+ >=x11-libs/libX11-1.6.2[abi_x86_32(-)]
+ >=x11-libs/libXext-1.3.2[abi_x86_32(-)]
+ alsa? ( media-libs/alsa-oss[abi_x86_32(-)] )
+ pulseaudio? ( media-sound/pulseaudio[abi_x86_32(-)] )"
+
+dir="/opt/${PN}"
+QA_PREBUILT="${dir:1}/descent3_demo.x86
+ ${dir:1}/netgames/*.d3m"
+
+S="${WORKDIR}"
+
+src_install() {
+ local \
+ snd= \
+ demo="data/demos/descent3_demo" \
+ exe="descent3_demo.x86"
+
+ loki_patch patch.dat data/ || die
+
+ insinto "${dir}"
+ exeinto "${dir}"
+ doins -r "${demo}"/*
+ doexe "${demo}/${exe}"
+
+ # Required directory
+ keepdir "${dir}"/missions
+
+ # Fix for 2.6 kernel crash, bug #151148
+ dosym ppics.hog "${dir}"/PPics.Hog
+
+ if use alsa; then
+ snd="aoss "
+ elif use pulseaudio; then
+ snd="env LD_PRELOAD=\"${EPREFIX}/usr/$(ABI=x86 get_libdir)/pulseaudio/libpulsedsp.so\" "
+ fi
+
+ make_wrapper ${PN} "${snd}./${exe} -G -o" "${dir}"
+ newicon "${demo}"/launch/box.png ${PN}.png
+ make_desktop_entry ${PN} "Descent 3 (Demo)"
+}
+
+pkg_postinst() {
+ xdg_pkg_postinst
+
+ echo
+ elog "To play the game run:"
+ elog " descent3-demo"
+ elog
+ elog "If the game appears blank, then run it windowed with:"
+ elog " descent3-demo -w"
+ echo
+}
diff --git a/games-action/descent3-demo/descent3-demo-1.4.0a.ebuild b/games-action/descent3-demo/descent3-demo-1.4.0a.ebuild
new file mode 100644
index 000000000000..5e6e949e73ae
--- /dev/null
+++ b/games-action/descent3-demo/descent3-demo-1.4.0a.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils unpacker games
+
+DESCRIPTION="Indoor/outdoor 3D combat with evil robotic mining spacecraft"
+HOMEPAGE="http://www.lokigames.com/products/descent3/"
+SRC_URI="mirror://lokigames/loki_demos/${PN}.run"
+
+LICENSE="all-rights-reserved"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+RESTRICT="mirror bindist strip"
+
+DEPEND="games-util/loki_patch"
+RDEPEND="sys-libs/glibc
+ >=virtual/opengl-7.0-r1[abi_x86_32(-)]
+ >=x11-libs/libX11-1.6.2[abi_x86_32(-)]
+ >=x11-libs/libXext-1.3.2[abi_x86_32(-)]"
+
+dir="${GAMES_PREFIX_OPT}/${PN}"
+QA_PREBUILT="${dir:1}/descent3_demo.x86
+ ${dir:1}/netgames/*.d3m"
+
+S=${WORKDIR}
+
+src_install() {
+ local demo="data/demos/descent3_demo"
+ local exe="descent3_demo.x86"
+
+ loki_patch patch.dat data/ || die
+
+ insinto "${dir}"
+ exeinto "${dir}"
+ doins -r "${demo}"/*
+ doexe "${demo}/${exe}"
+
+ # Required directory
+ keepdir "${dir}"/missions
+
+ # Fix for 2.6 kernel crash
+ cd "${Ddir}"
+ ln -sf ppics.hog PPics.Hog
+
+ games_make_wrapper ${PN} "./${exe}" "${dir}"
+ newicon "${demo}"/launch/box.png ${PN}.png
+ make_desktop_entry ${PN} "Descent 3 (Demo)" ${PN}
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ elog "To play the game run:"
+ elog " descent3-demo"
+ elog
+ elog "If the game appears blank, then run it windowed with:"
+ elog " descent3-demo -w"
+ echo
+}
diff --git a/games-action/descent3-demo/metadata.xml b/games-action/descent3-demo/metadata.xml
new file mode 100644
index 000000000000..27cdd4f34a28
--- /dev/null
+++ b/games-action/descent3-demo/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+</maintainer>
+<longdescription>
+Descent 3 is a first-person 3-D action flight-sim which takes place in both
+indoor and outdoor arenas. The game was ported to Linux by the now defunct Loki
+Entertainment and is commercial software. You can still pick up a copy from
+Tuxgames (http://www.tuxgames.com), but supplies are limited, as the publisher
+is no longer in business. This is the free demo version of the full game.
+</longdescription>
+</pkgmetadata>
diff --git a/games-action/descent3/Manifest b/games-action/descent3/Manifest
new file mode 100644
index 000000000000..3da0e7e09d32
--- /dev/null
+++ b/games-action/descent3/Manifest
@@ -0,0 +1,6 @@
+DIST descent3-1.4.0a-x86.run 2736956 SHA256 fe894b1cbcb16ec813c368f16549c38a3cd65514494f0be0b3095e936c9f67fe SHA512 e6c5d6a678c46374c5d5d40589d40906378fd17ebb658778a2d052a71cd069877a43eb83b344b41473fe443e886c3b07283ea9de908df4ab8584638670114ecc WHIRLPOOL 94b1ee3ee90c4cef0327fb3fc77fd4d5cd15be34a8716b3747fb4dc3c903f337310f39471c94bfebac5ffda1454634079ee092d56a40d65c3c1715e32f1bff39
+DIST descent3-1.4.0b-x86.run 4504631 SHA256 4c56ab91c332b0ccdc052fa3dd1c3a72cda204724bc98429cda22379269720e1 SHA512 912afcf51a2f4f8cacb231e318d4837c64b2f762109244c083760b5e580298d4166fea0878ee2d344b841c788d673896a09d0052ebea59dead637d834e826db3 WHIRLPOOL b878d30ccb418fced583c1fe94535d2d23c410aa973d25b72291c2f77567127ccc1d17bab0f0f72af6168386250c212dcdf9981b13b774fc77e80c5d2b854859
+EBUILD descent3-1.4.0b-r2.ebuild 2648 SHA256 8fbc517cb00c024352a8af3b923d4f37a6e52c3962b8e261e2bafa7afb0fe525 SHA512 3c7aff0955aeac46ae72f89b993b78922a5450dce9f5d7270a42461c32cefef4795b48eddcae13405d4f35c71fd27adecfc922dfedfdff2a2773f0c364f37566 WHIRLPOOL 8a22ef6c9b3e53a85e7947a6db5c115ef928b0e2004081b7c033a275e4fac741cce5096897d6332a8e0fc31e7ea670449c0b40f39563ad656c009e030454d002
+MISC ChangeLog 2442 SHA256 ed9329315f2f1927f408959edbb0e87f9ad5e61f8b391d596f995dbdd003e2d9 SHA512 b54d5c1e32a701ae34f5fbe0d722caee201856abf0318d9f070a6b95901eb94f484a66e31aaf31883c1155774b70c1ec25f0f8030103b9cdc6839a74c60102eb WHIRLPOOL 6d763e5529d25e1bf14645ca551f054e592afb5c7fc4444b5f5bebaa2b2c222165ccdc888d87b2ea091e178042aad76e644020a427503f9d70bc851b2ae25d5d
+MISC ChangeLog-2015 4606 SHA256 60dcc0548506e5791cbd634728ea52c389216a73029dbc59120a9d506924fc3c SHA512 e1cefc689ee7c4dea8cfe8a7a331cc38ab33dc504753bd47c959096e76554f67de25bdaa22bb05fb4095dac7177d791b8e8363f01af12e7463939b3732a59ae2 WHIRLPOOL 7e8d0469a1fa5f1d6c2638390aad9cf32c8d6ad065e775bf34b371031881b00af3a2bea62d06a7f8c2c16498c8587a8873bf014eaffc8fa1a0d850cfcbadf7c3
+MISC metadata.xml 625 SHA256 d017becff4f8bd6a83f664e396021d1b8d76b6e6d3c80c35aecfa3ebd1a96ea8 SHA512 a72428b67ed26503112a398643a53230dd80f0b48a0ffa53a4ade00647302147aa042acc91cc6b49fef0d23efeafef2e33d4caea4bb845de7f6d08e8c943d71c WHIRLPOOL 56cdffc7b42ac2bacd479615aea830d1381584c8e5b82b2fd739b55a636d2942ce3360de4b07b89eaca8b293da0c24ebbb4a4a582932728628fc43afa6e6cd10
diff --git a/games-action/descent3/descent3-1.4.0b-r2.ebuild b/games-action/descent3/descent3-1.4.0b-r2.ebuild
new file mode 100644
index 000000000000..d663b28ab8f5
--- /dev/null
+++ b/games-action/descent3/descent3-1.4.0b-r2.ebuild
@@ -0,0 +1,101 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils unpacker cdrom multilib games
+
+IUSE="nocd videos"
+DESCRIPTION="Descent 3 - 3-Dimensional indoor/outdoor spaceship combat"
+HOMEPAGE="http://www.lokigames.com/products/descent3/"
+SRC_URI="mirror://lokigames/${PN}/${PN}-1.4.0a-x86.run
+ mirror://lokigames/${PN}/${P}-x86.run"
+
+LICENSE="LOKI-EULA"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+RESTRICT="strip"
+
+RDEPEND="sys-libs/glibc
+ media-libs/libsdl[abi_x86_32(-)]
+ media-libs/smpeg[abi_x86_32(-)]
+ virtual/opengl[abi_x86_32(-)]
+ x11-libs/libX11[abi_x86_32(-)]
+ x11-libs/libXext[abi_x86_32(-)]"
+
+dir=${GAMES_PREFIX_OPT}/${PN}
+Ddir=${D}/${dir}
+
+pkg_setup() {
+ games_pkg_setup
+ if use videos ; then
+ ewarn "The installed game takes about 1.2GB of space!"
+ elif use nocd ; then
+ ewarn "The installed game takes about 510MB of space!"
+ else
+ ewarn "The installed game takes about 220MB of space!"
+ fi
+}
+
+src_unpack() {
+ if use videos ; then
+ cdrom_get_cds missions/d3.mn3 movies/level1.mve
+ else
+ cdrom_get_cds missions/d3.mn3
+ fi
+ mkdir -p "${S}"/{a,b} || die
+ cd "${S}"/a || die
+ unpack_makeself ${PN}-1.4.0a-x86.run
+ cd "${S}"/b || die
+ unpack_makeself ${P}-x86.run
+}
+
+src_install() {
+ einfo "Copying files... this may take a while..."
+ exeinto "${dir}"
+ doexe ${CDROM_ROOT}/bin/x86/glibc-2.1/{${PN},nettest}
+ insinto "${dir}"
+ doins ${CDROM_ROOT}/{FAQ.txt,README{,.mercenary},d3.hog,icon.{bmp,xpm}}
+
+ cd "${Ddir}" || die
+ # TODO: move this to src_unpack where it belongs
+ tar xzf ${CDROM_ROOT}/data.tar.gz || die
+ tar xzf ${CDROM_ROOT}/shared.tar.gz || die
+
+ if use nocd; then
+ doins -r ${CDROM_ROOT}/missions
+ fi
+
+ if use videos ; then
+ cdrom_load_next_cd
+ doins -r ${CDROM_ROOT}/movies
+ fi
+
+ cd "${S}"/a || die
+ bin/Linux/x86/loki_patch --verify patch.dat || die
+ bin/Linux/x86/loki_patch patch.dat "${Ddir}" >& /dev/null || die
+ cd "${S}"/b || die
+ bin/Linux/x86/loki_patch --verify patch.dat || die
+ bin/Linux/x86/loki_patch patch.dat "${Ddir}" >& /dev/null || die
+
+ # now, since these files are coming off a cd, the times/sizes/md5sums wont
+ # be different ... that means portage will try to unmerge some files (!)
+ # we run touch on ${D} so as to make sure portage doesnt do any such thing
+ find "${Ddir}" -exec touch '{}' +
+
+ games_make_wrapper descent3 ./descent3.dynamic "${dir}" "${dir}"
+ newicon ${CDROM_ROOT}/icon.xpm ${PN}.xpm
+
+ # Fix for 2.6 kernel crash
+ cd "${Ddir}" || die
+ ln -sf ppics.hog PPics.Hog
+
+ prepgamesdirs
+ make_desktop_entry ${PN} "Descent 3" ${PN}
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ elog "To play the game run:"
+ elog " descent3"
+ echo
+}
diff --git a/games-action/descent3/metadata.xml b/games-action/descent3/metadata.xml
new file mode 100644
index 000000000000..bdbb1bdaaee9
--- /dev/null
+++ b/games-action/descent3/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+</maintainer>
+<longdescription>
+Descent 3 is a first-person 3-D action flight-sim which takes place in both indoor and outdoor arenas. The game was ported to Linux by the now defunct Loki Entertainment and is commercial software. You can still pick up a copy from Tuxgames (http://www.tuxgames.com), but supplies are limited, as the publisher is no longer in business.
+</longdescription>
+</pkgmetadata>
diff --git a/games-action/dxx-rebirth/Manifest b/games-action/dxx-rebirth/Manifest
new file mode 100644
index 000000000000..4d594e466ffd
--- /dev/null
+++ b/games-action/dxx-rebirth/Manifest
@@ -0,0 +1,12 @@
+AUX dxx-rebirth-0.59.100-flags.patch 371 SHA256 00a7a36976b930ecd93f91d23590467ca428fb778e17959eadba44031850eb6c SHA512 c8bb575a172845b2643838c95ccbe3fac4509a3b5c24178816ea5a1a46a0fa2721d3fae841641950e97dec0e3a9fb74d8ddac493183df8834caca7d8d9ce11b4 WHIRLPOOL 747a36c14c9423ffff264ccebc8a9324a95ec242f0c49a8d3f982cb6291ed65729046c1355e820c2c0111386700ec4821cace254839172d4a24d489ea8087b9e
+AUX dxx-rebirth-0.59.100-sharepath.patch 553 SHA256 5ee5dcb310245e9a14c894805e4821aee181c0cca6dc864b04612201cf25450f SHA512 6f57832df96b6c927ea6f1d93f57662df24c0127b8a22ee08c73c3ecd21ab027fa7367070d0bec09250042e716409b258373e54c9189de68d41b799f785498b8 WHIRLPOOL 3ac561d851f6db0ce40cc3e20fadba354fdd051018c0d2e2c7fda05525b3c5f4a182c2995f92fe3e9bec25e091559e15729857dada4aed29e6a6951983e7e31e
+DIST d1xr-briefings-ger.dxa 16798 SHA256 38f8b9dd5fcab8b675a5112290e4dda771d4bc7a613292a589f6535a8c53861a SHA512 956a3ef1fe7379b71d5f651fdcb1f26b786883a35193a0a22009204e885a12fceb3a69c6accbeb2bd20be65afe087d23532d7ef3439edd97cc8904968bf519e3 WHIRLPOOL 0c4e7934eac399b6fed216648ba35ba100234f73a802112b900064584b4fb471bafc9e377af735a4d05fa65105a40ee4db781a1e07310a1e6b5feb4a9a10a29d
+DIST d1xr-hires.dxa 1426884 SHA256 b30a164fa9c6dff05eda6d50f777777df843968d32053f5cc9453fe89d5bed19 SHA512 3fc84d5610ba40ee383c1720f80513a21b4644ff8b6da4b84ebca13b11c1131deb4897ded6324b54845b6c847dfc0f16700535e16afdd7ebe83bfff042892302 WHIRLPOOL 372b5edffc2694429d5c87e343f70564b73178b3d3c61abab5c93a02235547beab3046d9773fc6bcec9eea1f530ddadbfb51205049ca61297d16e08d39366d04
+DIST d1xr-opl3-music.dxa 81503503 SHA256 8fe8fede12ca735cac28133e4a581c4026ed22845ab016814a745b2c10b81603 SHA512 4ac82c4bc2ddb02e2941746921443e38b698c6e54cfcab317fc9108f84ada7b868ec2ee3c70b28c1dfe9f41e2aadab4124c8daa65a409905cba5d674f0aab8a8 WHIRLPOOL a7fab740a6cf885984b93f1eb2512362d7c3b05eb65e5f1eecf4c374bf6ba9e04e6d91130d8ff14d113fa9639501cba768a9d7344af291975b095a6604066735
+DIST d1xr-sc55-music.dxa 72803408 SHA256 b27f7b9dc5f9c2744402c56c9499dfd9503c17e73a2a5223e745529d7867962f SHA512 3cdce5b6535e28397b3216cc9ca05cccf7194349c62d64c54300f02f39248b98598d170599e5c61b6900d780e4917f905c3c31eb814fbb8429221c804cbd8bf9 WHIRLPOOL d248894b95d5a1d2d8d375cf231fbfde114548e328addf3ae71c90eb436c628b6feb7d207877fd59f815d4b4f00ea76b6e2c23c4a12cd8e2e228967beb91b693
+DIST d2xr-briefings-ger.dxa 11717 SHA256 e190321e657c1ad55998b91d610534fd0275f29ab12fe56018e47d3e603704f9 SHA512 479aa577dc65271c705e80404ec46e6c59ee3a5122d6e9705dbdd16b71b16c0d3447426e3e74937aa20eb7026f67a3896c5e814fbfcede9164bd557b6eb8423c WHIRLPOOL 65093403524bd82fb4396a5cabf9317effdaf447f18e421b6a59642103bc690ddaa240e0d2db3fbfe1a4bbd83d9f62bfe5b70fdfe8dc76f0cfe00433d25a9e1f
+DIST d2xr-opl3-music.dxa 22710919 SHA256 6890c6cf8a40c30a2b88339fe1affd25d210e45b504b0f0f76dba7ba97f813d7 SHA512 876321a9a16403f6e9d12e10bb73c9cdc57e1a106fa64833a1be8cc17b74f6f13e57e40f051a1b40e7bc88b95bfe86cff181c93c8619383dfdeb74f36f5cce86 WHIRLPOOL 86cccdbe071654b7f3ba2f774c762b3ab81797916e8a2053466320a54693a1913de9a6759eb29a4acde5a5611c58d1371338bed140a4084f7d005d48151a639b
+DIST d2xr-sc55-music.dxa 19579531 SHA256 ace152182c70b9a7ae6f911bddbc239566220a287ab5419cab260d5af739bf16 SHA512 290713b05627bf65bdc55fc6631a0c86e50f484a167f3fd20b3fe2bc5b772437939b5bf32eea852874dd983fbd47f160cae2412a2d6c5319f0d1583a33d28da6 WHIRLPOOL 1cc02d95dfffc36676a8cd3129580ba11c4a5cb13ee54bcdbe9e30e9fd9d8365bf0a8fc0d3e4b962607887b41bd056678d578cf9a5896ba1c9f4d1bef13c3edd
+DIST dxx-rebirth_v0.59.100-src.tar.gz 1809614 SHA256 6a1e1e589a007389df56efb9f7355efc36e7ea01e4c6af53b46ba1ec3f193355 SHA512 dc9b7ad263e189e779756b62613d4bc62371cb5fec2176a4013395fc18c9d03ab0c9ddc5ccf2668b87e4a77b25d500bdef373126f176bfce49f73b5a98de23d7 WHIRLPOOL 4f6bf09bd076138749ac71d9279827502c6e6b021f8d9681fad83f043eee867e945997fa4ce6eb8f7f706c4932f9d20b47588645b58eee3b2523d5a81c68e99b
+EBUILD dxx-rebirth-0.59.100.ebuild 3267 SHA256 7c8f2d23bbf700cd4e14a28b1f122dca9ec327e08839b8d117fa56056093477a SHA512 facdaa5d24bcedf5858b029c6347fd78a1a85dcb7ef4dfdc9a25aa09eb6ee774368257a6bf4749251e1f4a4450875ea76afcecd8a66a4784e38701811b450cf8 WHIRLPOOL b765153cec4eecc86cc0a73440c91e03a0e793f53c4c035fc3acf434e7a00c5e84ffbea2772ab8b4646a40a424c44ada7e2bbf68fd029e52af728272bbbccbc2
+MISC metadata.xml 1974 SHA256 d50bd2f37de888f328d5dfd5aa50e906b68b2c2fcd7fa39656607d0baf22cef3 SHA512 4c6bcb9366d27b943b5b0e0e77ce4fc3a9424cf7bee7f76a33b33da803fa86440a2ddf2359996871953ebb3e1c51451032f920b73e3d9fe918415a2fca3f5c09 WHIRLPOOL df72d10928070cfd600493bddd1c06d744a013cadfb24182f12bc4f7e574aea55fdd084657cc563f278a33d166d3c02756a36362cb60fc24f5dc49e7af6283d4
diff --git a/games-action/dxx-rebirth/dxx-rebirth-0.59.100.ebuild b/games-action/dxx-rebirth/dxx-rebirth-0.59.100.ebuild
new file mode 100644
index 000000000000..d61ac5c01417
--- /dev/null
+++ b/games-action/dxx-rebirth/dxx-rebirth-0.59.100.ebuild
@@ -0,0 +1,107 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils scons-utils toolchain-funcs xdg
+
+MY_P="${PN}_v${PV}-src"
+DESCRIPTION="Descent Rebirth - enhanced Descent 1 & 2 engine"
+HOMEPAGE="http://www.dxx-rebirth.com/"
+SRC_URI="http://www.dxx-rebirth.com/download/dxx/${MY_P}.tar.gz
+ opl3-musicpack? (
+ descent1? ( http://www.dxx-rebirth.com/download/dxx/res/d1xr-opl3-music.dxa )
+ descent2? ( http://www.dxx-rebirth.com/download/dxx/res/d2xr-opl3-music.dxa ) )
+ sc55-musicpack? (
+ descent1? ( http://www.dxx-rebirth.com/download/dxx/res/d1xr-sc55-music.dxa )
+ descent2? ( http://www.dxx-rebirth.com/download/dxx/res/d2xr-sc55-music.dxa ) )
+ l10n_de? (
+ descent1? ( http://www.dxx-rebirth.com/download/dxx/res/d1xr-briefings-ger.dxa )
+ descent2? ( http://www.dxx-rebirth.com/download/dxx/res/d2xr-briefings-ger.dxa ) )
+ textures? (
+ descent1? ( http://www.dxx-rebirth.com/download/dxx/res/d1xr-hires.dxa ) )"
+
+LICENSE="DXX-Rebirth GPL-3 public-domain"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+data debug +descent1 +descent2 ipv6 l10n_de +music +opengl opl3-musicpack sc55-musicpack +textures"
+
+REQUIRED_USE="|| ( descent1 descent2 )
+ ?? ( opl3-musicpack sc55-musicpack )
+ opl3-musicpack? ( music )
+ sc55-musicpack? ( music )"
+
+DEPEND="dev-games/physfs:0=[hog,mvl,zip]
+ media-libs/libsdl:0=[joystick,opengl?,sound,video]
+ music? ( media-libs/sdl-mixer:0= )
+ opengl? (
+ virtual/opengl
+ virtual/glu )"
+
+RDEPEND="${DEPEND}
+ data? (
+ descent1? ( || ( games-action/descent1-data games-action/descent1-demodata ) )
+ descent2? ( || ( games-action/descent2-data games-action/descent2-demodata ) ) )
+ music? (
+ !opl3-musicpack? ( !sc55-musicpack? ( media-libs/sdl-mixer:0=[midi] ) )
+ opl3-musicpack? ( media-libs/sdl-mixer:0=[vorbis] )
+ sc55-musicpack? ( media-libs/sdl-mixer:0=[vorbis] ) )
+ !games-action/d1x-rebirth
+ !games-action/d2x-rebirth"
+
+S="${WORKDIR}/${MY_P}"
+
+# Remove hardcoded optimisation flags.
+# Change share path to use old d1x/d2x locations.
+PATCHES=( "${FILESDIR}"/${P}-{flags,sharepath}.patch )
+
+src_compile() {
+ tc-export CXX
+ escons \
+ prefix="${EPREFIX}"/usr \
+ d1x=$(usex descent1 1 0) \
+ d2x=$(usex descent2 1 0) \
+ debug=$(usex debug 1 0) \
+ ipv6=$(usex ipv6 1 0) \
+ opengl=$(usex opengl 1 0) \
+ sdlmixer=$(usex music 1 0) \
+ verbosebuild=1
+}
+
+src_install() {
+ local DV PROGRAM
+
+ for DV in 1 2; do
+ use descent${DV} || continue
+ PROGRAM=d${DV}x-rebirth
+
+ docinto ${PROGRAM}
+ edos2unix ${PROGRAM}/*.txt
+ dodoc ${PROGRAM}/*.txt
+
+ insinto /usr/share/games/d${DV}x
+ use opl3-musicpack && doins "${DISTDIR}"/d${DV}xr-opl3-music.dxa
+ use sc55-musicpack && doins "${DISTDIR}"/d${DV}xr-sc55-music.dxa
+ use l10n_de && doins "${DISTDIR}"/d${DV}xr-briefings-ger.dxa
+
+ dobin ${PROGRAM}/${PROGRAM}
+ make_desktop_entry ${PROGRAM} "Descent ${DV} Rebirth" ${PROGRAM}
+ doicon ${PROGRAM}/${PROGRAM}.xpm
+ done
+
+ if use textures && use descent1; then
+ insinto /usr/share/games/d1x
+ doins "${DISTDIR}"/d1xr-hires.dxa
+ fi
+}
+
+pkg_postinst() {
+ xdg_pkg_postinst
+
+ if ! use data; then
+ elog "To play the game enable USE=\"data\" or manually "
+ elog "copy the files to ${EPREFIX}/usr/share/games/{d1x,d2x}."
+ elog "See each game's INSTALL.txt for details."
+ echo
+ fi
+}
diff --git a/games-action/dxx-rebirth/files/dxx-rebirth-0.59.100-flags.patch b/games-action/dxx-rebirth/files/dxx-rebirth-0.59.100-flags.patch
new file mode 100644
index 000000000000..75c3a64f893b
--- /dev/null
+++ b/games-action/dxx-rebirth/files/dxx-rebirth-0.59.100-flags.patch
@@ -0,0 +1,10 @@
+--- dxx-rebirth_v0.59.100-src/SConstruct 2016-12-12 02:47:40.000000000 +0300
++++ dxx-rebirth_v0.59.100-src/SConstruct 2016-12-28 02:11:16.657874914 +0300
+@@ -3488,7 +3488,6 @@
+ env = self.env
+ user_settings = self.user_settings
+
+- env.Prepend(CXXFLAGS = ['-g', '-O2'])
+ # Raspberry Pi?
+ if user_settings.raspberrypi:
+ rpi_vc_path = user_settings.rpi_vc_path
diff --git a/games-action/dxx-rebirth/files/dxx-rebirth-0.59.100-sharepath.patch b/games-action/dxx-rebirth/files/dxx-rebirth-0.59.100-sharepath.patch
new file mode 100644
index 000000000000..ee1b6bb9ea05
--- /dev/null
+++ b/games-action/dxx-rebirth/files/dxx-rebirth-0.59.100-sharepath.patch
@@ -0,0 +1,11 @@
+--- dxx-rebirth_v0.59.100-src/SConstruct 2016-12-12 02:47:40.000000000 +0300
++++ dxx-rebirth_v0.59.100-src/SConstruct 2016-12-29 19:26:58.987760410 +0300
+@@ -2875,7 +2875,7 @@
+ return 'GLESv2'
+ return self.default_OGLES_LIB
+ def __default_DATA_DIR(self):
+- return '%s/share/games/%s' % (self.prefix, self._program.target)
++ return '%s/share/games/%s' % (self.prefix, self._program.shortname)
+ def _generic_variable(key,help,default):
+ return (key, help, default)
+ def __get_configure_tests(tests,_filter=lambda s: s.name[0] != '_'):
diff --git a/games-action/dxx-rebirth/metadata.xml b/games-action/dxx-rebirth/metadata.xml
new file mode 100644
index 000000000000..b2765a3b0291
--- /dev/null
+++ b/games-action/dxx-rebirth/metadata.xml
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>totktonada.ru@gmail.com</email>
+ <name>Alexander Turenko</name>
+ </maintainer>
+ <longdescription>
+ Descent 1 is a classic first-person shooter released in 1995
+ by Interplay and Parallax. Descent 2 released for the PC in
+ 1996. It, along with its predecessor, was one of the first
+ games with true 3-dimensional graphics, 6 degrees of freedom
+ in movement, light sourcing, and the capability to join
+ multiplayer games on-the-fly. D1X-Rebirth and DXX-Rebirth are
+ modifications of the original Descent 1 and 2 sources that was
+ released by Parallax (and are based on the D1X and D2X
+ sources). It offering OpenGL graphics, advanced multiplayer,
+ new features, and cross-platform compatibility. Now code bases
+ of D1X-Rebirth and DXX-Rebirth merged and released as
+ DXX-Rebirth.
+ </longdescription>
+ <use>
+ <flag name="data">Install data files</flag>
+ <flag name="descent1">Install Descent 1 resources and executable</flag>
+ <flag name="descent2">Install Descent 2 resources and executable</flag>
+ <flag name="l10n_de">Provides German translations for the game's briefings, robot descriptions, and outro of the original campaign</flag>
+ <flag name="music">Enable music support</flag>
+ <flag name="opl3-musicpack">Include alternate version of the game's music, recorded with the Yamaha YMF262 OPL3 soundchip</flag>
+ <flag name="sc55-musicpack">Include alternate version of the game's music, recorded with the Roland Sound Canvas SC-55 MIDI module</flag>
+ <flag name="textures">Include high resolution (640x480) backgrounds, briefing images and fonts (Descent 1)</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">dxx-rebirth/dxx-rebirth</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-action/extreme-tuxracer/Manifest b/games-action/extreme-tuxracer/Manifest
new file mode 100644
index 000000000000..7d8304ad4f81
--- /dev/null
+++ b/games-action/extreme-tuxracer/Manifest
@@ -0,0 +1,6 @@
+DIST etr-0.7.2.tar.xz 44178196 SHA256 246d4e65f5c1d3f739e27c75f403d277b54f4e1f3b6e09fd1497a13457292417 SHA512 256db82becdc69344e8aca49f74eed49d7cb99d1c44ef4dff78289acc1ac5f1c2d7b161cecb25c26395d2d8a8b88d33d09bbb94254b5c0c132c09eb658cf87a2 WHIRLPOOL 34f76aa40c548e1c5b54c68c8e43c0fb43ecd6c510a58fe80f77ade21326fffc820a794ac68449dfb2e9d1415269e6aa7951c62522c3fe6f02e4ee5557deef67
+EBUILD extreme-tuxracer-0.7.2-r1.ebuild 990 SHA256 57066a00da6f8961f9c2c18c9014e9118a22b4e152b174792afe5782d482b95e SHA512 4321c0039ea6f9597bbe8825a8a058168ecf25dec3b7b4568e8e4b7f798d8d9ffe31efe9b466b0fe6f7b8c59fb86a3021694722a02eb52b4477356ca6d89aa68 WHIRLPOOL 4d574060722936ad47a1e8c76fbd625d5735c6eb29f1a94635ca8c620022af8662b6cfef30e879b6e15cc8e228f34fc658c18d856eb5c16e3bf598bedd936b47
+EBUILD extreme-tuxracer-0.7.2.ebuild 1037 SHA256 ea685f0bf8a07bc329060eafc0a3be0f7db3be74d776828278d9985d3faa4d16 SHA512 54957540826b74dcd562107481e56759deaca05c311538c5640cf80157d1376eb32800099f42ef8b1598c8ca1c98175b8bc2484d92c66ee30af51f0c00617bd3 WHIRLPOOL 4b338caad7e2d3307050352d9a88e68a0756ae8094cb21ea053864a3b017a6407dd6f34952cdb8822241ddba5a7b69513a9f4107d782016c66285e0ab37821e1
+MISC ChangeLog 3927 SHA256 76f0c1468f8d400d6aff5116bdfac0c218e11eb4d451f5a0698efb3639331be6 SHA512 e36d8bdc6b6d70df08cad5980d22f3053e809150734729c8749d2d364e9ed7411d462c9742af7cd6b2f33f73eab28bff068be52de6a7913726de05a429c45c01 WHIRLPOOL 7597c213e757225a02868d919e6bc91e5647575c4aa78e4e076fa1b14585c524d26a899b361c3f3007358e79d76bda9833b5cf343b39ae5c2b744d38a79981ef
+MISC ChangeLog-2015 3696 SHA256 80ba26d2a25a0f6dfa7aeb4df4989ce015e4955d3afce519faa7059bbb568dc5 SHA512 abfa34a886b59154c72e3926ac70f25d5687868b4876c4b7b92ab3559e86ec0c45ddac527c57c51de5bca96bb205465d7dc841cf53ec39f0a8dd3cf7a8613e56 WHIRLPOOL fc8f50f4138f99ae2361aad796395a90f34a09a745e83d936ab2cf8501adbb959e4e88b825979869bdbcd2ea94ac0c0e27391df61f3a3e87594942c02bb4d593
+MISC metadata.xml 527 SHA256 55e83e177d4a5d989adbe0e0972142422edf5dd16f171cd69fd18916be2b90b1 SHA512 b384907967acf80208014d768908547687f0820495fabdb71e938fb07521ab6f7ec017857e92b3cd2f46c8ffd8ff4634bf1bdc6beaa789329c5b5302f2cdc0cf WHIRLPOOL 40a72ff2ff5559ec0bfc07c4f1fafb62263584f419806c4a69b839f4db4f640a26e9d34dd524c85aae08d969f46931a91fd1559766541725f0e12a4a865c9a1f
diff --git a/games-action/extreme-tuxracer/extreme-tuxracer-0.7.2-r1.ebuild b/games-action/extreme-tuxracer/extreme-tuxracer-0.7.2-r1.ebuild
new file mode 100644
index 000000000000..2ccbba5737c5
--- /dev/null
+++ b/games-action/extreme-tuxracer/extreme-tuxracer-0.7.2-r1.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils autotools gnome2-utils
+
+DESCRIPTION="High speed arctic racing game based on Tux Racer"
+HOMEPAGE="http://extremetuxracer.sourceforge.net/"
+SRC_URI="mirror://sourceforge/extremetuxracer/etr-${PV/_/}.tar.xz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+ >=media-libs/libsfml-2.2
+ virtual/glu
+ virtual/opengl"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+S=${WORKDIR}/etr-${PV/_/}
+
+src_prepare() {
+ default
+ # kind of ugly in there so we'll do it ourselves
+ sed -i -e '/SUBDIRS/s/resources doc//' Makefile.am || die
+ eautoreconf
+}
+
+src_install() {
+ default
+ dodoc doc/{code,courses_events,guide,score_algorithm}
+ doicon -s 48 resources/etr.png
+ doicon -s scalable resources/etr.svg
+ domenu resources/etr.desktop
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/games-action/extreme-tuxracer/extreme-tuxracer-0.7.2.ebuild b/games-action/extreme-tuxracer/extreme-tuxracer-0.7.2.ebuild
new file mode 100644
index 000000000000..ba41d51096ac
--- /dev/null
+++ b/games-action/extreme-tuxracer/extreme-tuxracer-0.7.2.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils autotools gnome2-utils games
+
+DESCRIPTION="High speed arctic racing game based on Tux Racer"
+HOMEPAGE="http://extremetuxracer.sourceforge.net/"
+SRC_URI="mirror://sourceforge/extremetuxracer/etr-${PV/_/}.tar.xz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND="virtual/opengl
+ virtual/glu
+ >=media-libs/libsfml-2.2"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+S=${WORKDIR}/etr-${PV/_/}
+
+src_prepare() {
+ # kind of ugly in there so we'll do it ourselves
+ sed -i -e '/SUBDIRS/s/resources doc//' Makefile.am || die
+ eautoreconf
+}
+
+src_install() {
+ default
+ dodoc doc/{code,courses_events,guide,score_algorithm}
+ doicon -s 48 resources/etr.png
+ doicon -s scalable resources/etr.svg
+ domenu resources/etr.desktop
+ 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-action/extreme-tuxracer/metadata.xml b/games-action/extreme-tuxracer/metadata.xml
new file mode 100644
index 000000000000..d2f791335717
--- /dev/null
+++ b/games-action/extreme-tuxracer/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <longdescription lang="en">
+Extreme Tux Racer is an open source racing game featuring Tux the Linux Penguin.
+ETRacer continues in the tracks of Tux Racer and its forks.
+</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">extremetuxracer</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-action/fakk2/Manifest b/games-action/fakk2/Manifest
new file mode 100644
index 000000000000..f4eae155edb2
--- /dev/null
+++ b/games-action/fakk2/Manifest
@@ -0,0 +1,5 @@
+EBUILD fakk2-1.02-r1.ebuild 1683 SHA256 c862d383f16184fccba92b9f7d09025ea3030767c98a5b4f606353e7b6315552 SHA512 99fddd9578d61610ba8925899205bdc4ac336a238ee078f6b8e2ea295b9f1b425233d232ade2a176044cdf16c02033a3b640535bb1ae8a326ab1d40a21b78236 WHIRLPOOL 33708ba7848688ed1a525fff996058821b5e3682fdc29654b11e92f7e0d9f7cf3789e56e787fdfee2c3b4f3a2c8299071ee9601c73a01891a1c08fd23eed365a
+EBUILD fakk2-1.02.ebuild 1761 SHA256 a37ebad4f87029b83b0a0a68e36c19411adcfb6e118b69e6d99446ff0717e505 SHA512 1f5377ed9a0f248cd286ee02527fe5da9a3ab080de63a399353c415d5a1a7b8daaa1f2336564c25bc22af0683900fc372dd0cc5fa3c4d8dd6a841b16f85eeedd WHIRLPOOL cf8b4c74d463d0f60a80637a64d85ff67f33e05210de6f394e835248a851fc610852d3f2ad8ea1451675cb1283dbc26dfb744911618f02dff180cfacdac220dd
+MISC ChangeLog 2423 SHA256 1e1d8009072a382aa9904c93800cefc1a101019ca3ce025830301f1befbcc189 SHA512 2fb76a813282b63c8178549049de96d5cc9eabfe0df681c945614dba96b9031c803c63ff21bad89eb9043df819c9183141ef409a2a555c87825a06b71d2202ea WHIRLPOOL 791822718930b9c36ecc745d53c680079cfa596755b2f6fd9d8d2b66c27ab5a128d0f68727be9e204ab19cb699c55eabb4e52505c068100487f9441df9857c28
+MISC ChangeLog-2015 2637 SHA256 c39b8ea657e901663135935ec80edce92566f83c1b174b75c88b7fba7ebf1fc3 SHA512 81f24823389c75f6fd66c41ecf86874a19436f0a1467871406b177457e5237e00def23556ea92d3c45d84dfb40e2751743cbb654f960b5cd2d38b3e5a791af99 WHIRLPOOL 3b164bc8a0ef21469778c49a3233dffb87329e5a080d098581a63da19bc36f70ed191d29d928bd325a442e832a950ea8cb6991cef4d75d271174e72fd3f732db
+MISC metadata.xml 1206 SHA256 8c869ff75f00e5c16b75d2b0e71f8845760629d47245940e95c5c5f69e0f09f4 SHA512 786927f7a429e4ff1f1097144f41b832b7d8bd8fd1423dd5587d3c496a2ed4be66aa34702e360c702f536429ceed38082475529392c5e0ef389aa431d2595432 WHIRLPOOL 70a25e535a086eb50a3b64597a25de72e5dec767b487e2056cd0751d2e64ebbb4087e38a26f7299723fd258978a69e442abdb339bd3af85a559ca74b017e4546
diff --git a/games-action/fakk2/fakk2-1.02-r1.ebuild b/games-action/fakk2/fakk2-1.02-r1.ebuild
new file mode 100644
index 000000000000..d05c9b67b251
--- /dev/null
+++ b/games-action/fakk2/fakk2-1.02-r1.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils cdrom
+
+DESCRIPTION="Heavy Metal: FAKK2 - 3D third-person action shooter based on the Heavy Metal comics/movies"
+HOMEPAGE="http://www.lokigames.com/products/fakk2/"
+SRC_URI=""
+
+LICENSE="LOKI-EULA"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="nocd"
+RESTRICT="strip"
+
+RDEPEND="virtual/opengl"
+
+S=${WORKDIR}
+
+dir=/opt/${PN}
+Ddir=${D}/${dir}
+
+pkg_setup() {
+ if use nocd ; then
+ ewarn "The installed game takes about 378MB of space!"
+ fi
+}
+
+src_install() {
+ cdrom_get_cds fakk
+ einfo "Copying files... this may take a while..."
+ exeinto "${dir}"
+ doexe ${CDROM_ROOT}/bin/x86/glibc-2.1/${PN}
+ insinto "${dir}"
+ doins ${CDROM_ROOT}/{README,icon.{bmp,xpm}}
+ exeinto "${dir}"/fakk
+ doexe ${CDROM_ROOT}/bin/x86/glibc-2.1/fakk/{c,f}game.so
+ if use nocd ; then
+ insinto "${dir}"/fakk
+ doins ${CDROM_ROOT}/fakk/pak{0,1,2,3}.pk3
+ doins ${CDROM_ROOT}/fakk/default.cfg
+ fi
+
+ # Now, since these files are coming off a cd, the times/sizes/md5sums won't
+ # be different ... that means portage will try to unmerge some files (!)
+ # So, we run touch on ${D} to make sure portage doesn't do any such thing
+ find "${Ddir}" -exec touch '{}' \;
+
+ make_wrapper ${PN} ./${PN} "${dir}" "${dir}"
+ newicon ${CDROM_ROOT}/icon.xpm ${PN}.xpm
+
+ make_desktop_entry ${PN} "FAKK2" ${PN}
+}
+
+pkg_postinst() {
+ echo
+ ewarn "There are two possible security bugs in this package, both causing a denial of"
+ ewarn "service. One affects the game when running a server, the other when running as"
+ ewarn "a client. For more information, see bug #82149."
+ echo
+ elog "To play the game run:"
+ elog " fakk2"
+}
diff --git a/games-action/fakk2/fakk2-1.02.ebuild b/games-action/fakk2/fakk2-1.02.ebuild
new file mode 100644
index 000000000000..95ce1900918a
--- /dev/null
+++ b/games-action/fakk2/fakk2-1.02.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils cdrom games
+
+DESCRIPTION="Heavy Metal: FAKK2 - 3D third-person action shooter based on the Heavy Metal comics/movies"
+HOMEPAGE="http://www.lokigames.com/products/fakk2/"
+SRC_URI=""
+
+LICENSE="LOKI-EULA"
+SLOT="0"
+KEYWORDS="x86"
+IUSE="nocd"
+RESTRICT="strip"
+
+RDEPEND="virtual/opengl"
+
+S=${WORKDIR}
+
+dir=${GAMES_PREFIX_OPT}/${PN}
+Ddir=${D}/${dir}
+
+pkg_setup() {
+ games_pkg_setup
+ if use nocd ; then
+ ewarn "The installed game takes about 378MB of space!"
+ fi
+}
+
+src_install() {
+ cdrom_get_cds fakk
+ einfo "Copying files... this may take a while..."
+ exeinto "${dir}"
+ doexe ${CDROM_ROOT}/bin/x86/glibc-2.1/${PN}
+ insinto "${dir}"
+ doins ${CDROM_ROOT}/{README,icon.{bmp,xpm}}
+ exeinto "${dir}"/fakk
+ doexe ${CDROM_ROOT}/bin/x86/glibc-2.1/fakk/{c,f}game.so
+ if use nocd ; then
+ insinto "${dir}"/fakk
+ doins ${CDROM_ROOT}/fakk/pak{0,1,2,3}.pk3
+ doins ${CDROM_ROOT}/fakk/default.cfg
+ fi
+
+ # now, since these files are coming off a cd, the times/sizes/md5sums wont
+ # be different ... that means portage will try to unmerge some files (!)
+ # we run touch on ${D} so as to make sure portage doesnt do any such thing
+ find "${Ddir}" -exec touch '{}' \;
+
+ games_make_wrapper ${PN} ./${PN} "${dir}" "${dir}"
+ newicon ${CDROM_ROOT}/icon.xpm ${PN}.xpm
+
+ prepgamesdirs
+ make_desktop_entry ${PN} "FAKK2" ${PN}
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ echo
+ ewarn "There are two possible security bugs in this package, both causing a denial of"
+ ewarn "service. One affects the game when running a server, the other when running as"
+ ewarn "a client. For more information, see bug #82149."
+ echo
+ elog "To play the game run:"
+ elog " fakk2"
+}
diff --git a/games-action/fakk2/metadata.xml b/games-action/fakk2/metadata.xml
new file mode 100644
index 000000000000..07964f9113c6
--- /dev/null
+++ b/games-action/fakk2/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+</maintainer>
+<longdescription>
+Heavy Metal: F.A.K.K.2 is a third-person 3-D action game based on characters from the Heavy Metal comics and movies. Years have passed since Julie Strain (a.k.a. F.A.K.K.2) defeated the would-be God Lord Tyler on the bloody battlefields of the Holy Land. She has long since put the pain of those days behind her and brought her homeworld of Eden to a perfect natural balance. But far away in the deepest nebulas of space, the greatest evil of all stirs, ready to make its final move -- to take control of the entire universe. A lone beacon hurtles toward Eden, hoping to summon the god-slayer F.A.K.K.2 one last time. It bears nothing more than an onimous warning: "GITH IS COMING." The game was ported to Linux by the now defunct Loki Entertainment and is commercial software. You can still pick up a copy from Tuxgames (http://www.tuxgames.com), but supplies are limited, as the publisher is no longer in business.
+</longdescription>
+</pkgmetadata>
diff --git a/games-action/formido/Manifest b/games-action/formido/Manifest
new file mode 100644
index 000000000000..3c1d577919df
--- /dev/null
+++ b/games-action/formido/Manifest
@@ -0,0 +1,7 @@
+DIST formido-1.0.1.tar.gz 3117496 SHA256 bfea3f9d66fe657551ae8f060de939465634d6eac552849215f33769a9cf4f86 SHA512 72c4b92806eed79290da571c47fcd5427ccd0fafd3d5c5bc1cf641790e13b622eb40f8226e54daf30d1f301743f670115efe8f30279ed83b8fd58d69b6a7e123 WHIRLPOOL 7bf882a4fc41bdbb391efd083f3e866b8a2b37567ef6c0b739b50326777bc2355beffbf4bf857582b06a1b317b78dbf5f30a84a930cef775fabe8cff2d9d076b
+DIST formido-music.tar.bz2 6159005 SHA256 3e9d076139f80e257ba2586c474e18361db5197a555956ebf4dc3053b2a2ce6e SHA512 116ff8af42b68cf641f459b642d42c579decf8ee1314a45de30d4f5452e1669dab5cfdc3a61a72359305f690e686312ea0e1666e724de8b214f3d4d8f6034bd3 WHIRLPOOL 4143aedfb9df1ba0781ebf57cd8c1ae981bbba513ca9aaa2e774723263c6daea2b96534b773d6c67069c762cfb0c606c7028da589122f9ec111cbcd7606fa680
+EBUILD formido-1.0.1-r1.ebuild 1075 SHA256 14b07167917b3277876dbad721d7e49aa5ff331752b927cd0a4a93e8c91d0402 SHA512 f35d0d8d13f0201d0d67bcc6dcc7ee967f4154b568e8006b4a020c97f861dc715fb9e856243ead8c8c00a83ac5897c204965f88b727c79b9e345b8fa0cc5dbed WHIRLPOOL b8c28c9ce599eb81d4f662bce3b46857698ce7d6315032222155d8d1eae59347858e28fba5550d3bd7ad59f5a760868e741024e854f6725e56d1cbe4a93ef0a7
+EBUILD formido-1.0.1.ebuild 1102 SHA256 566f9d479f9c9afe3cbbd59b99650c0c8bf09844e34f1fcbd2b88b4e35861d05 SHA512 bfe1457fc8594cbe8b5eea9cb9182a79ae3a385817081db430a3e372e22162a04332a92b658d9e586479c5ba6788ee474f0a1f3f32c33ed71407e82b70a113a2 WHIRLPOOL 406a41a77055f3708e118011628157e0652aa58c2d13aca0304a19717cf2c1cc2e2a479fb5b7b8adef9584fb9125e6c2f3e9ab8a0ec98eb28b4a08e32f78925a
+MISC ChangeLog 2568 SHA256 1995c203adf745c71b7c84675ba08a8cc3ceb2a5761dede4b0b6e459cd8c985b SHA512 31e0dcf1888212d052cdc8c6115ba31680e3d957d180624f4f116aabb4c837e1a9cfb8e44f1e88e7b73cd555541109ba7daeb78d92ce37ca394c6eb19a6dc6d6 WHIRLPOOL 4ae0c779c26c4875bc07ab5ed80492f65ca4d6458231d7038a16dc54832ece9230680bae957145fddcab8a04bae43af77de577b380cfd287bceced6a542529a4
+MISC ChangeLog-2015 1167 SHA256 5b48ebfbb6abfaa0248cacf436fb978e794fbf75696bf8a6fc9ef3eb763596c9 SHA512 58bc7ceec0a2b4e65f3612a9644612728113e4155ec63e02daf81206e195a7bd5ef2bb08f33b0773ae2c5a22f0c5848c11c6154343f87b5d10c795cd167ce408 WHIRLPOOL 93ad6cc53637d7d88a5a8c3f16c54bc9c337210ac3e8e70723647f8e3b88b53eadbe904a8f33d8184aa1c087b7c7690563e2ba22e7aa4ea19884c8b393a10483
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-action/formido/formido-1.0.1-r1.ebuild b/games-action/formido/formido-1.0.1-r1.ebuild
new file mode 100644
index 000000000000..c7e9e86f1740
--- /dev/null
+++ b/games-action/formido/formido-1.0.1-r1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils toolchain-funcs
+
+DESCRIPTION="A shooting game in the spirit of Phobia games"
+HOMEPAGE="http://www.mhgames.org/oldies/formido/"
+SRC_URI="http://noe.falzon.free.fr/prog/${P}.tar.gz
+ http://koti.mbnet.fi/lsoft/formido/formido-music.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT=0
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="media-libs/libsdl[sound,video]
+ media-libs/sdl-image
+ media-libs/sdl-mixer"
+RDEPEND=${DEPEND}
+
+src_unpack() {
+ unpack ${P}.tar.gz
+ cd "${S}"/data || die
+ unpack ${PN}-music.tar.bz2
+}
+
+src_prepare() {
+ default
+
+ sed -i \
+ -e "s:g++:$(tc-getCXX):" \
+ -e "/^FLAGS=/s:$: ${CXXFLAGS}:" \
+ -e "/^LINKFLAGS=/s:=.*:=${LDFLAGS}:" \
+ -e "s:\${DATDIR}:/usr/share/${PN}/data:" \
+ -e "s:\${DEFCONFIGDIR}:/usr/share/${PN}:" \
+ Makefile || die
+}
+
+src_install() {
+ dobin ${PN}
+ insinto /usr/share/${PN}
+ doins -r ${PN}.cfg data
+ newicon data/icon.dat ${PN}.bmp
+ make_desktop_entry ${PN} Formido /usr/share/pixmaps/${PN}.bmp
+ dodoc README README-1.0.1
+}
diff --git a/games-action/formido/formido-1.0.1.ebuild b/games-action/formido/formido-1.0.1.ebuild
new file mode 100644
index 000000000000..253ceae4c038
--- /dev/null
+++ b/games-action/formido/formido-1.0.1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils toolchain-funcs games
+
+DESCRIPTION="A shooting game in the spirit of Phobia games"
+HOMEPAGE="http://www.mhgames.org/oldies/formido/"
+SRC_URI="http://noe.falzon.free.fr/prog/${P}.tar.gz
+ http://koti.mbnet.fi/lsoft/formido/formido-music.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT=0
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="media-libs/libsdl[sound,video]
+ media-libs/sdl-image
+ media-libs/sdl-mixer"
+RDEPEND=${DEPEND}
+
+src_unpack() {
+ unpack ${P}.tar.gz
+ cd "${S}"/data
+ unpack ${PN}-music.tar.bz2
+}
+
+src_prepare() {
+ sed -i \
+ -e "s:g++:$(tc-getCXX):" \
+ -e "/^FLAGS=/s:$: ${CXXFLAGS}:" \
+ -e "/^LINKFLAGS=/s:=.*:=${LDFLAGS}:" \
+ -e "s:\${DATDIR}:${GAMES_DATADIR}/${PN}/data:" \
+ -e "s:\${DEFCONFIGDIR}:${GAMES_DATADIR}/${PN}:" \
+ Makefile || die
+}
+
+src_install() {
+ dogamesbin ${PN}
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r ${PN}.cfg data
+ newicon data/icon.dat ${PN}.bmp
+ make_desktop_entry ${PN} Formido /usr/share/pixmaps/${PN}.bmp
+ dodoc README README-1.0.1
+ prepgamesdirs
+}
diff --git a/games-action/formido/metadata.xml b/games-action/formido/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-action/formido/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 type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/games-action/garden/Manifest b/games-action/garden/Manifest
new file mode 100644
index 000000000000..027a6f097ab2
--- /dev/null
+++ b/games-action/garden/Manifest
@@ -0,0 +1,13 @@
+AUX garden-1.0.8-dash.patch 968 SHA256 2e71c67bafeafb6da91509cd288d114712cb99957cc11e072bae520735549205 SHA512 1033ce1f4056ee07203b739e852d777e35f908548c0fe582be27c38dac8227e4761a2fa80bc71d5bfe8ce09853f8250a6c745d99e02c70aad1e3b2a35b1188d5 WHIRLPOOL a6c9d53055bc6ac3650db019f7c7eefec10d1b8da4b8588a83b485ee8fb464e39aee415748d205a5eddd20fcee33f4341ef91bd6e9a42e2609f7d73633816e97
+AUX garden-1.0.8-drop-AS_INIT.patch 487 SHA256 7f2779e0586b6b859292851604949c483c48a27dd36a34817fdeb85a3b0988ac SHA512 37f03bdba8eb726e8b342ca2f60018943dd03ed7da16e92a5ab0fb1dcde8db1ab03a77174302e411033f69d3fdfb09bb93b89e67e4f605f1f71b697fcb82e9b9 WHIRLPOOL ce60f2a94cc6714f021a1b08c7b63f2f25ecf5bc7dea4d8d5cb42c11904f45ddaf2801f6ad0bfa700dc6973a3613d61305412a12171049b0843611407e9dc02f
+AUX garden-1.0.8-underlink.patch 510 SHA256 c862bf4d05ea74cfc37680b2f7276c77ab20a68dc304964b3ee6e00b09c47fcb SHA512 e0dfd9f82e90267bc212f97830ae384ad8049bee8b0b8c8a7d20e2511eb0a678eae40ab7c41f61b47a31b10014497ae15778c8828503659da8cd24067e489491 WHIRLPOOL ac18b596e6e87b8119344c0f73bf98597d536218f30b1972f0991248baf0f9355a368e166d3d19f7f660784840d288326ad6df56ed5cb6891c4ca17eee4cc418
+AUX garden-1.0.9-dash.patch 968 SHA256 2e71c67bafeafb6da91509cd288d114712cb99957cc11e072bae520735549205 SHA512 1033ce1f4056ee07203b739e852d777e35f908548c0fe582be27c38dac8227e4761a2fa80bc71d5bfe8ce09853f8250a6c745d99e02c70aad1e3b2a35b1188d5 WHIRLPOOL a6c9d53055bc6ac3650db019f7c7eefec10d1b8da4b8588a83b485ee8fb464e39aee415748d205a5eddd20fcee33f4341ef91bd6e9a42e2609f7d73633816e97
+AUX garden-1.0.9-resources.patch 200 SHA256 4526ec325106d2159e90ff6267f53961e92e182876892177b245da4b622a8b38 SHA512 f9ecabf264c60eab75ffdc3c2d875d1809f446eb86118432e67d19c0b3189f4200a28fcc1e798919dcf5472ac21f47c37a779a39d6cbc8b373811dffa6e5d904 WHIRLPOOL 99a4f85a0ed307ec31e95b1ede57d3a579c324d30cf9c7204923124c8504754f6287bab710338677c9049cd77fc767cc96b343b308d7b4f0fd3433142116dfd4
+DIST garden-1.0.8.tar.gz 2666132 SHA256 3b882e3030838679af3ee40e51fb792ca48fa83799ac6d74f9565954d736ce69 SHA512 eb3f97853b158633533083ef7c475ff2487b484a1b42be133a22e7842a3abd8e306a5009c4da6a6b0ba2ab10a71c40660da237740fe7b2a0fa6378a9af1de7bd WHIRLPOOL bab3199190d170ac0ebddf65461546a688094feca65203ba408788653e7294984b46b55c7c3b1ab4e1e80f1218094c93694fb42b3657dd73ef14153ee723dd30
+DIST garden-1.0.9.tar.gz 2714783 SHA256 daf8732c229a4cc04f460514bff1ba05171faada9e19575c72a50a914f2352e3 SHA512 e8f52fc0ebf9eaa7933ae1faa5610e8a27a5e7cfc59d033714c4306a53680feeddd52b1fb3050f2d72addba03ee383e71e57eac02270f3d2369aed054a9a9848 WHIRLPOOL 77a8f3add973467a6f5d1ccc85fdcfd9ca2ea1e6a841c0c14b4860545a0aeaccbf3ae8934fde6045f5f3848d33fbe68f65773fffc07e8c3971e8a6b1d8373e7b
+EBUILD garden-1.0.8-r1.ebuild 950 SHA256 35fbc5fdfb7ab97a04ba614a702f7e3db5761397df45c9938ebaf5f7cbbf53a3 SHA512 d81efd145cdbc8818fc013944b60a958f519baa8180248e699e23fba4a24a233123df58f96fbc5ebd27c5b1a4b7bf19d068d059274596e2f4712551505a948a2 WHIRLPOOL 931b85189026da5d613d649d3f388a5c27274117eb05d96a5bc701f6f29b6a2a177d07b50eae33c4f26ee50aa9020f9a93595c2ef406aa6ec958c33762fd1069
+EBUILD garden-1.0.9-r1.ebuild 1006 SHA256 f97ddf47ebfda1c73bd263a5c237154abc4f802bffe9c3225efe597ee6681e55 SHA512 81d8811786facf5b0651f17fc32caa7748c57909cede7b3cb965d65dba1d354188fcaf39936f509c8d079c92ae3fa2b31a4f538bc4b656d3ffb0f8e9c21cdfb5 WHIRLPOOL d9d546d5cf6609d962eab0606bc2d5d9c8b743d965860cec68229488bfdd3e16fd0223b102c0aa02919b138f077709bbab64a9049eef5d7d87b7742f2c40c3dc
+EBUILD garden-1.0.9.ebuild 1056 SHA256 82ca0e68eef201b92f7672c727aa7203a4bc2f2a24daa46d541778fd1842a62c SHA512 543b2c946c5c227a285c641d0758c90863ff2e4d245b38b4a6eb64f504bfcff3d479315df06314286909d50b36ecd895c69dd1afa110b43c4fbdd898c0466168 WHIRLPOOL 85a1fd82cde854e814ef540fc35b6c0ee2e1154b1bbba2dd4266f4762002e6a80abc40f8d1092615d4c5986ff7f2e729f8cc633740f47d0336ee9a5ed0e8f8ac
+MISC ChangeLog 3152 SHA256 62cef2aa305c0d1946f29d70e6dd81262da5e874105010a092605f7fbd8e6a8d SHA512 b5b9c292f1537ebb9fca498490194b58f5fbf06ce7fe7a1e28429eae1ce35e01bfa9e40c7125daf28f104dfdfd5450a02f68bb878a2aa86fffe9224c77d0d3a7 WHIRLPOOL 592c39122d491493663e565b95e0b01d923fbb56c66dc201065c78154bbf4be9e939f8376b574d9eb6c7caf8e17a869df9276175ad83fa7b1700167720e24a17
+MISC ChangeLog-2015 2389 SHA256 48186bcfe0c4dd4459e41329b80c6de2462751c10f5b4b36952b6bc13ecd7b05 SHA512 5f5f609d0ae082d2d9300019647ef37e9e9609b32361921110c0851143d03745907693e3c83aed51eecf033076f17d65d1583e0c5d99a589df648e40bc84ecde WHIRLPOOL be9de10b62742e80275222b3468fcfa6ae9804ff8f90efd773ef66a23b75570b39591f320c6c909b0c267994807ea068e2ed46ffbf763f527ac8c244f81c8cc5
+MISC metadata.xml 329 SHA256 461cd433f34a784e2c16b0d07285c32b44c6369676ad7a9c7cc57853578e8f42 SHA512 af05d41aaf7aa63a304e442bb6e6dd4617409434ae439ec14461739362bc0d4ebf03dc791435586dddfec81273a19bea91a78f7ccd573f420ea67d59665e69d7 WHIRLPOOL 3aab1c2eb93243e8cc523e6884dcc635687ed1a0c3d56c7d9992fdb6e76283941b65e53a915bae2e555b1aff16d499a7d1c8d12c9d8c8fa604bc7f35c0d04dde
diff --git a/games-action/garden/files/garden-1.0.8-dash.patch b/games-action/garden/files/garden-1.0.8-dash.patch
new file mode 100644
index 000000000000..6b197f4f4e1a
--- /dev/null
+++ b/games-action/garden/files/garden-1.0.8-dash.patch
@@ -0,0 +1,33 @@
+--- a/configure.ac 2015-05-04 14:48:03.467935640 -0400
++++ b/configure.ac 2015-05-04 14:48:24.729199607 -0400
+@@ -80,7 +80,7 @@
+ [have_allegro="no"])
+ AC_MSG_RESULT([$have_allegro])
+ LIBS=$LIBS_SAVE
+- AS_IF([test "x$have_allegro" == "xyes"],
++ AS_IF([test "x$have_allegro" = "xyes"],
+ [return 0],
+ [return 1])
+ }
+@@ -89,7 +89,7 @@
+ AM_PATH_ALLEGRO([4.2.0])
+
+ try_link_allegro "$allegro_LIBS"
+-AS_IF([test "x$?" == "x0"],
++AS_IF([test "x$?" = "x0"],
+ [[LIBS="$LIBS $allegro_LIBS"
+ ALLEGRO_LIB=`echo $allegro_LIBS | sed -e 's/-l\([^[:blank:]]*\).*/\1/'`
+ have_allegro="yes"]])
+@@ -103,10 +103,10 @@
+ for lib in $ALLEGRO_LIBS
+ do
+ ldflag="-l$lib"
+- AS_IF([test "x$have_allegro" == "xyes"],
++ AS_IF([test "x$have_allegro" = "xyes"],
+ [break])
+ try_link_allegro $ldflag
+- AS_IF([test "x$?" == "x0"],
++ AS_IF([test "x$?" = "x0"],
+ [LIBS="$LIBS $ldflag"
+ ALLEGRO_LIB="$lib"
+ have_allegro="yes"])
diff --git a/games-action/garden/files/garden-1.0.8-drop-AS_INIT.patch b/games-action/garden/files/garden-1.0.8-drop-AS_INIT.patch
new file mode 100644
index 000000000000..69cff8fa319d
--- /dev/null
+++ b/games-action/garden/files/garden-1.0.8-drop-AS_INIT.patch
@@ -0,0 +1,19 @@
+At least for autoconf-2.69 AS_INIT is called by AC_INIT.
+
+When using /bin/dash calling AS_INIT directly leads to infinite
+reexec loop.
+
+Gentoo-bug: http://bugs.gentoo.org/475248
+diff --git a/configure.ac b/configure.ac
+index eb0002f..6c77ef9 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -5,7 +5,7 @@ AC_PREREQ(2.62)
+ AC_INIT([GARDEN],
+ [1.0.8],
+ [bubla@users.sourceforge.net])
+-AS_INIT
++
+ AC_CONFIG_AUX_DIR([build-aux])
+ AM_INIT_AUTOMAKE([-Wall])
+ AC_CONFIG_SRCDIR([src/input.h])
diff --git a/games-action/garden/files/garden-1.0.8-underlink.patch b/games-action/garden/files/garden-1.0.8-underlink.patch
new file mode 100644
index 000000000000..e538a61a1c1a
--- /dev/null
+++ b/games-action/garden/files/garden-1.0.8-underlink.patch
@@ -0,0 +1,19 @@
+--- a/bin/Makefile.am 2011-06-22 18:16:30.654661047 +0200
++++ b/bin/Makefile.am 2011-06-22 18:16:55.662251326 +0200
+@@ -9,6 +9,7 @@
+ garden_LDFLAGS = -static
+ else #unix version :-)
+ AM_CPPFLAGS = -D'DATADIR="@DATADIR_NAME@"'
++garden_LDADD = -lm
+ endif
+
+ #how to build resources?
+--- a/Makefile.am 2011-06-22 18:19:37.787560851 +0200
++++ b/Makefile.am 2011-06-22 18:19:44.078960907 +0200
+@@ -1,5 +1,5 @@
+ ACLOCAL_AMFLAGS= -I m4
+-SUBDIRS = bin resources
++SUBDIRS = bin
+
+ if NO_EXISTING_DATA
+ SUBDIRS += data
diff --git a/games-action/garden/files/garden-1.0.9-dash.patch b/games-action/garden/files/garden-1.0.9-dash.patch
new file mode 100644
index 000000000000..6b197f4f4e1a
--- /dev/null
+++ b/games-action/garden/files/garden-1.0.9-dash.patch
@@ -0,0 +1,33 @@
+--- a/configure.ac 2015-05-04 14:48:03.467935640 -0400
++++ b/configure.ac 2015-05-04 14:48:24.729199607 -0400
+@@ -80,7 +80,7 @@
+ [have_allegro="no"])
+ AC_MSG_RESULT([$have_allegro])
+ LIBS=$LIBS_SAVE
+- AS_IF([test "x$have_allegro" == "xyes"],
++ AS_IF([test "x$have_allegro" = "xyes"],
+ [return 0],
+ [return 1])
+ }
+@@ -89,7 +89,7 @@
+ AM_PATH_ALLEGRO([4.2.0])
+
+ try_link_allegro "$allegro_LIBS"
+-AS_IF([test "x$?" == "x0"],
++AS_IF([test "x$?" = "x0"],
+ [[LIBS="$LIBS $allegro_LIBS"
+ ALLEGRO_LIB=`echo $allegro_LIBS | sed -e 's/-l\([^[:blank:]]*\).*/\1/'`
+ have_allegro="yes"]])
+@@ -103,10 +103,10 @@
+ for lib in $ALLEGRO_LIBS
+ do
+ ldflag="-l$lib"
+- AS_IF([test "x$have_allegro" == "xyes"],
++ AS_IF([test "x$have_allegro" = "xyes"],
+ [break])
+ try_link_allegro $ldflag
+- AS_IF([test "x$?" == "x0"],
++ AS_IF([test "x$?" = "x0"],
+ [LIBS="$LIBS $ldflag"
+ ALLEGRO_LIB="$lib"
+ have_allegro="yes"])
diff --git a/games-action/garden/files/garden-1.0.9-resources.patch b/games-action/garden/files/garden-1.0.9-resources.patch
new file mode 100644
index 000000000000..0ddbdc5e6e30
--- /dev/null
+++ b/games-action/garden/files/garden-1.0.9-resources.patch
@@ -0,0 +1,7 @@
+--- a/Makefile.am 2015-05-04 16:57:07.510191036 -0400
++++ b/Makefile.am 2015-05-04 16:57:14.581946228 -0400
+@@ -1,3 +1,3 @@
+ ACLOCAL_AMFLAGS= -I m4
+
+-SUBDIRS = src resources data
++SUBDIRS = src data
diff --git a/games-action/garden/garden-1.0.8-r1.ebuild b/games-action/garden/garden-1.0.8-r1.ebuild
new file mode 100644
index 000000000000..bed7869d2369
--- /dev/null
+++ b/games-action/garden/garden-1.0.8-r1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils gnome2-utils autotools games
+
+DESCRIPTION="Multiplatform vertical shoot-em-up with non-traditional elements"
+HOMEPAGE="http://garden.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="<media-libs/allegro-5"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-underlink.patch \
+ "${FILESDIR}"/${P}-dash.patch \
+ "${FILESDIR}"/${P}-drop-AS_INIT.patch #475248
+ eautoreconf
+}
+
+src_install() {
+ DOCS="AUTHORS ChangeLog NEWS README" \
+ default
+ doicon -s scalable resources/garden.svg
+ make_desktop_entry garden "Garden of coloured lights"
+ 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-action/garden/garden-1.0.9-r1.ebuild b/games-action/garden/garden-1.0.9-r1.ebuild
new file mode 100644
index 000000000000..eb80fe0b36ba
--- /dev/null
+++ b/games-action/garden/garden-1.0.9-r1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils gnome2-utils autotools flag-o-matic
+
+DESCRIPTION="Multiplatform vertical shoot-em-up with non-traditional elements"
+HOMEPAGE="http://garden.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="<media-libs/allegro-5"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}/${P}-dash.patch"
+ "${FILESDIR}/${P}-resources.patch"
+)
+src_prepare() {
+ default
+
+ # build with gcc52
+ sed -i \
+ -e 's/inline/extern inline/' \
+ src/stuff.h || die
+ eautoreconf
+ append-cflags -std=gnu89 # build with gcc5 (bug #572672)
+}
+
+src_install() {
+ DOCS="AUTHORS ChangeLog NEWS README" \
+ default
+ doicon -s scalable resources/garden.svg
+ make_desktop_entry garden "Garden of coloured lights"
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/games-action/garden/garden-1.0.9.ebuild b/games-action/garden/garden-1.0.9.ebuild
new file mode 100644
index 000000000000..ba6f212aed4d
--- /dev/null
+++ b/games-action/garden/garden-1.0.9.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils gnome2-utils autotools flag-o-matic games
+
+DESCRIPTION="Multiplatform vertical shoot-em-up with non-traditional elements"
+HOMEPAGE="http://garden.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="<media-libs/allegro-5"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-dash.patch \
+ "${FILESDIR}"/${P}-resources.patch
+ # build with gcc52
+ sed -i \
+ -e 's/inline/extern inline/' \
+ src/stuff.h || die
+ eautoreconf
+ append-cflags -std=gnu89 # build with gcc5 (bug #572672)
+}
+
+src_install() {
+ DOCS="AUTHORS ChangeLog NEWS README" \
+ default
+ doicon -s scalable resources/garden.svg
+ make_desktop_entry garden "Garden of coloured lights"
+ 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-action/garden/metadata.xml b/games-action/garden/metadata.xml
new file mode 100644
index 000000000000..ea6aa407a062
--- /dev/null
+++ b/games-action/garden/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">garden</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-action/geki2-KXL/Manifest b/games-action/geki2-KXL/Manifest
new file mode 100644
index 000000000000..3bfb7efc7fc8
--- /dev/null
+++ b/games-action/geki2-KXL/Manifest
@@ -0,0 +1,9 @@
+AUX geki2-KXL-2.0.3-cflags.patch 343 SHA256 391da173f0a36396d5d126e8c6c85bdef9aa123de10864ec70aca012d11dfbea SHA512 8a3226a158bfff91328b53bb203b5de8cb2d1557dc765d41559679ac2e7ec6bc7c3c6e34793a1229331cb7090b7ecf222e09fc0383792188afd190b5f1634540 WHIRLPOOL 909d579f3c16be501c1cc8b48f4483d175f343f8e16f9d43e530d7e4f0a5952e1d2f1a4c2e9b8a0a6a8c41aff246f27532b9fe34ae428fdbe8bf0d34ae891eb4
+AUX geki2-KXL-2.0.3-paths.patch 1576 SHA256 37d0e94c8ec52cf9e55608e8c595d95290a0da202e51f7f21962ee8de9ab4ddb SHA512 6165f119e3fc5359f4e9b674ca4df3b0f6784f6328262a65b714080f37799c3ccc8271df35e7531f13b907c0a7ab2b0bcc01b08a9887a4e81a5923777d86a4ca WHIRLPOOL c824a596717930699ed08b07e88f66e3f6c925dd827edeabd70622b1eb4ecc8459eb6b40d31fe7995607287237fdd7c7438eefa5e346649aa86f6409c9ad1b2a
+DIST geki2-KXL-2.0.3.tar.gz 708419 SHA256 24338682c9a10d5d796ffad352983481c440ee625d713ef4cc9b51b9da0c5391 SHA512 15d97e72f7490b0a1fa32f3ce002f99fe88183664cb3833bb6a2513de26a0dfb0cd2e723c59d0b6bdd9620b200da2e0e7612d44c02fd1be8721441417a9cb3e5 WHIRLPOOL 0b35053f535b4fd88f64bed805b8ef099071e7eed436a341a7ef64f19a7b8bb3e4b622852b3ce513c8909d488134d332720fed58279864ff7740d1490fcdafb1
+DIST geki2-KXL.png 883 SHA256 b4b314907aa0e563a60b25c4ab25d91dab872f4c2110a0ef3e487aa4855793fe SHA512 20d58e6cc3fd5b6283e6042f8660c73b5a938157ab871dd78e7a2ea2c1187ecae63bcfd46b885255181028531ebbba2c2bf93138e311adf7be10026497a85b74 WHIRLPOOL 654fc705a64a6eeacae285bcdfdac1e3e0e691ab3351209b3ce63d15cce9091b384667cbb1034280fb082215feff0675e3fca6884673a37201c74d6aa476d0c3
+EBUILD geki2-KXL-2.0.3-r2.ebuild 902 SHA256 6495de56842821d47e4e65f77bd52ed89b6dcddb579ec9646ac4849ba83a55fe SHA512 3c55d480156f1953b02472e7a50c0dcf69ce97ab0708e3e70cc42bf68c60d3899df7d1867a0335729e455f2ee62c7c9a9a130534dec046cf7a1587946245aecd WHIRLPOOL ee5ef463631e96217678ef60ebae85acd24738db03584b310ff073b0ca79d1de25ef2909451ba2728957fbbd2bbcc16f39679ec230900dbfa66b4a8af5b0c98a
+EBUILD geki2-KXL-2.0.3-r3.ebuild 996 SHA256 72e9c560ae177fadb46a0c5a8db9f704934191a850b50780e68e8d030ff4b0a7 SHA512 b8b14bd2da8bf17aa9d78d94cccb854d0da2a49089b70bf9846992623bb721ab27a86e3d9a1019789270bbf4d5a648bf8059ba50a219ee500311a05f92355f7f WHIRLPOOL c8b9f0404f97dbb57109035f37887270cbb93fe75a0bdf9739fad571d28392d1befb9d36bf8e8311678392f54f660ec50b1d45d8f3cee198b201ab9d02367d5b
+MISC ChangeLog 2994 SHA256 5fb370c99e9ac3d7804a3ac7fcf27eec0072dac90b1ff4081f38a9d572346519 SHA512 ebe0fb32c4fab012ffc81253165d662b45b5d3e8acd4855757297ad35144f4fe3afe23af9a13d5866f621e973154fbd2c544a3a50deb7d7a7982cff1b8089b46 WHIRLPOOL 1b2d1e99823a35da1e84b26dcf5dcd191b0cba29ee966d9a1dff4d267b95e1befb42e9d0f2f2935bf6c37072de6ddd6e03ee62bdf27e52d3112f977894919452
+MISC ChangeLog-2015 1448 SHA256 280d2ef9fcfb597753b306fec1b5b929a9ec1f6e45ee247a09eab70d7361d148 SHA512 7a056e44827f1cf85881a208c2dc9c2221012f4c7c1a74bf4de8b645565cbae4e3ebd240cdc8831d726f16abaa3360b02efef2c399d6434e5c33e61e1db74157 WHIRLPOOL 65ff45cdbc13d107ae207b23980edd9df93ff6f49174eb5779c232dd65069a8415641d5cc6415a32b7a0ea028a8da0feaf2ffc04b00538674e6ffe6773c188f1
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-action/geki2-KXL/files/geki2-KXL-2.0.3-cflags.patch b/games-action/geki2-KXL/files/geki2-KXL-2.0.3-cflags.patch
new file mode 100644
index 000000000000..d00f8d439c80
--- /dev/null
+++ b/games-action/geki2-KXL/files/geki2-KXL-2.0.3-cflags.patch
@@ -0,0 +1,9 @@
+--- a/src/Makefile.am 2012-11-10 21:50:02.159117541 +0100
++++ b/src/Makefile.am 2012-11-10 21:50:20.658715770 +0100
+@@ -4,5 +4,5 @@
+ boss.h extern.h ranking.h your.h game.h\
+ geki2.h load.h opening.h my.h misc.h
+
+-CFLAGS = @X_CFLAGS@ @KXL_CFLAGS@
++AM_CFLAGS = @X_CFLAGS@ @KXL_CFLAGS@
+ LIBS = @X_LIBS@ -lX11 @KXL_LIBS@ -lKXL
diff --git a/games-action/geki2-KXL/files/geki2-KXL-2.0.3-paths.patch b/games-action/geki2-KXL/files/geki2-KXL-2.0.3-paths.patch
new file mode 100644
index 000000000000..22844202bb2c
--- /dev/null
+++ b/games-action/geki2-KXL/files/geki2-KXL-2.0.3-paths.patch
@@ -0,0 +1,44 @@
+--- a/bmp/Makefile.am
++++ b/bmp/Makefile.am
+@@ -1,4 +1,4 @@
+-bmpdir = $(prefix)/share/geki2/bmp
++bmpdir = $(BMP_PATH)
+ bmp_DATA = back1.bmp boss2.bmp enemyshot4.bmp kuru.bmp myshot.bmp back2.bmp\
+ boss3.bmp enemyshot5.bmp mboss.bmp uraura.bmp back3.bmp\
+ boss3laser.bmp flash.bmp uturn.bmp back4.bmp back6.bmp boss6.bmp\
+--- a/configure.in
++++ b/configure.in
+@@ -25,9 +25,9 @@
+ BMP_PATH=/usr/local/share/geki2/bmp
+ WAV_PATH=/usr/local/share/geki2/wav
+ else
+- DATA_PATH=$prefix/share/geki2/data
+- BMP_PATH=$prefix/share/geki2/bmp
+- WAV_PATH=$prefix/share/geki2/wav
++ DATA_PATH=$datadir/geki2/data
++ BMP_PATH=$datadir/geki2/bmp
++ WAV_PATH=$datadir/geki2/wav
+ fi
+ AC_DEFINE_UNQUOTED(DATA_PATH,"$DATA_PATH")
+ AC_DEFINE_UNQUOTED(BMP_PATH,"$BMP_PATH")
+--- a/data/Makefile.am
++++ b/data/Makefile.am
+@@ -1,9 +1,7 @@
+-datadir = $(prefix)/share/geki2/data
++datadir = $(DATA_PATH)
+ data_DATA = stage1.dat stage2.dat stage3.dat stage4.dat stage5.dat stage6.dat\
+ map1.dat map2.dat map3.dat map4.dat map5.dat map6.dat
+ EXTRA_DIST = stage1.dat stage2.dat stage3.dat stage4.dat stage5.dat stage6.dat\
+ map1.dat map2.dat map3.dat map4.dat map5.dat map6.dat .score
+
+-install:
+- $(INSTALL) -c -m 666 ./.score $(DESTDIR)$(DATA_PATH)
+
+--- a/wav/Makefile.am
++++ b/wav/Makefile.am
+@@ -1,4 +1,4 @@
+-wavdir = $(prefix)/share/geki2/wav
++wavdir = $(WAV_PATH)
+ wav_DATA = bgm1.wav bgm2.wav bgm3.wav bgm4.wav bgm5.wav\
+ bomb.wav laser5.wav warning.wav boss.wav open.wav\
+ laser.wav pow.wav go.wav bgm6.wav
diff --git a/games-action/geki2-KXL/geki2-KXL-2.0.3-r2.ebuild b/games-action/geki2-KXL/geki2-KXL-2.0.3-r2.ebuild
new file mode 100644
index 000000000000..37ea228f43c2
--- /dev/null
+++ b/games-action/geki2-KXL/geki2-KXL-2.0.3-r2.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit autotools eutils games
+
+DESCRIPTION="2D length scroll shooting game"
+HOMEPAGE="http://triring.net/ps2linux/games/kxl/kxlgames.html"
+SRC_URI="mirror://gentoo/${P}.tar.gz
+ mirror://gentoo/${PN}.png"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="dev-games/KXL"
+RDEPEND="${DEPEND}
+ media-fonts/font-adobe-100dpi"
+
+src_prepare() {
+ rm -f missing
+ sed -i \
+ -e '1i #include <string.h>' \
+ -e "s:DATA_PATH \"/.score\":\"${GAMES_STATEDIR}/${PN}\":" \
+ src/ranking.c || die
+ epatch \
+ "${FILESDIR}"/${P}-paths.patch \
+ "${FILESDIR}"/${P}-cflags.patch
+ eautoreconf
+}
+
+src_install() {
+ default
+ insinto "${GAMES_STATEDIR}"
+ newins data/.score ${PN}
+ fperms g+w "${GAMES_STATEDIR}"/${PN}
+ doicon "${DISTDIR}"/${PN}.png
+ make_desktop_entry geki2 Geki2
+ prepgamesdirs
+}
diff --git a/games-action/geki2-KXL/geki2-KXL-2.0.3-r3.ebuild b/games-action/geki2-KXL/geki2-KXL-2.0.3-r3.ebuild
new file mode 100644
index 000000000000..fe44b06c04b0
--- /dev/null
+++ b/games-action/geki2-KXL/geki2-KXL-2.0.3-r3.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools eutils user
+
+DESCRIPTION="2D length scroll shooting game"
+HOMEPAGE="http://triring.net/ps2linux/games/kxl/kxlgames.html"
+SRC_URI="mirror://gentoo/${P}.tar.gz
+ mirror://gentoo/${PN}.png"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-games/KXL"
+RDEPEND="${DEPEND}
+ media-fonts/font-adobe-100dpi"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-cflags.patch
+ "${FILESDIR}"/${P}-paths.patch
+)
+
+pkg_setup(){
+ enewgroup gamestat 36
+}
+
+src_prepare() {
+ default
+ rm -f missing
+ sed -i \
+ -e '1i #include <string.h>' \
+ -e "s:DATA_PATH \"/.score\":\"/var/games/${PN}\":" \
+ src/ranking.c || die
+ eautoreconf
+}
+
+src_install() {
+ default
+
+ insinto /var/games/
+ newins data/.score ${PN}
+ fowners root:gamestat /var/games/${PN} /usr/bin/geki2
+ fperms 660 /var/games/${PN}
+ fperms 2755 /usr/bin/geki2
+
+ doicon "${DISTDIR}"/${PN}.png
+ make_desktop_entry geki2 Geki2
+}
diff --git a/games-action/geki2-KXL/metadata.xml b/games-action/geki2-KXL/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-action/geki2-KXL/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 type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/games-action/geki3-KXL/Manifest b/games-action/geki3-KXL/Manifest
new file mode 100644
index 000000000000..03dce4489c75
--- /dev/null
+++ b/games-action/geki3-KXL/Manifest
@@ -0,0 +1,8 @@
+AUX geki3-KXL-1.0.3-paths.patch 1428 SHA256 cbf0173c74cadece004253350353f6b0fd46be000a87711551993e8acaa78139 SHA512 6189a5a49ca7792406dffbabf7e792ad6e14cc43019a654e4977f1b3f2d371201f432a0a338b4e297bc9498666412cd000ca57442129f53f277c716c18770fb7 WHIRLPOOL a951124c8186a3ef37ef6027435b5f3607bd8c82bb3e3787b7dc5fcc55cca24e15040a93e8c3fda810262ccba066076784556d978d52df8e40a073600635b2be
+DIST geki3-KXL-1.0.3.tar.gz 695913 SHA256 5308488d3c31731c75d671d9a6b61ebcfc7e97c651a76f0ef869c8aa3a3865f8 SHA512 23433c40bb800fa6da132a87dc89ed18c156dba44f3479be39b00ac48942cbf9e3ae7318149d3184f4ba8c340c937fa44e334dad5c8e800b9906bd26cdd34fd7 WHIRLPOOL 9c826dc2e821e875aacfbb7184faa79920e40672060a2a17c9792caae0b172510441a970f9c15d534da23e380e7eab23233fbfc52c960a2dd436ff66eb6433c6
+DIST geki3-KXL.png 1142 SHA256 9fc2bc6f5abb44c3b863378d13ddc5f892ff284d4ea6092af3bb55bbf78a6046 SHA512 bb78a188954e530638ebf3ded88a8a19402081d071341924f57b3cc1721de523cf099eac2585ea5a5dd0b86e67f68260d469db06408e86aea68e4950526103bd WHIRLPOOL de1bce90c5b7c36fe202a881f4070d0393d39a534586f0378747caef9c8dbad91b3cc373276777d655a03c2ca385d0f258792cfccd3ab82335eef0fd132236cc
+EBUILD geki3-KXL-1.0.3-r2.ebuild 955 SHA256 a56adf3315456f0c02201b4e2a3af61e0695fcf35684e150e07b049ad0ee99a7 SHA512 deaa038cefc56548c80aafd4f05eadfcdf35bc98fa9ce3fe5205199c8e98696d63bec60c37d3897b2ba52c2c6df0ad9dc112a36726f0607d77dcad239ae6d66f WHIRLPOOL 63179faf11c85f7c7e8fcb0646d5749639efe805ccb7c4f7fc7fabaf6778e5cbc8e105e1b9d81fa76a6350a57ac1d631ef87a16f070abf215c3f602d1526cda2
+EBUILD geki3-KXL-1.0.3-r3.ebuild 1061 SHA256 89c866fb42b1a845850d80a7299f0e3e7dd2986619b86f6292d74c157a41a6ea SHA512 52551af57d1ddf8d1404019a19e7500f673170bff4dfa5d28a026e96de382306fe312b0341ad3401d778c26efdf5d385ce4d08b7695a46c3a7d2681b9789a46b WHIRLPOOL d8f9b9951efae2c55767090bad7405e2f52ab901cf42bf5215aa7706c3a7460d152b9074a33241d04f1e86a4223286ac5c28c1c7806572a307b014f5eed3732c
+MISC ChangeLog 2919 SHA256 f37116d4724c8ed897d18de763b719e7c8b815f7159b327691c7e1b2c042fb20 SHA512 4d82f9589204bd09e2742ca5f628225545bcde44065b8b2c8b4686040343e4860ed137674db08cbb8aa52fcabee254c78e9347016d367d07540dd7ad3ba9ba05 WHIRLPOOL a18fff706443f5b63b278f6e15ba5c2bb4564d235a6f06f1aaf718c5b65e6a0cb4d8c201ca771ec6d305688b7e22eda2e84aaf63f4ed5581faf40f8b12692291
+MISC ChangeLog-2015 1550 SHA256 192d5652d00297c6622cd6d6e48bf5a4145280ecf678a7fd0f4a3b728115a639 SHA512 979b2cffd1b7974efa3d4564eded4e3e5b4176e446ec0d5b66586bcdff115d03f33bf91656ddce67096b9460fa65bd394f69debbf968f5bef02253d0ac03fbb2 WHIRLPOOL c8cdf8c15ea37679e7b10f9b8265fa793ca52baf67d473b75a6f8a8591202c2c974e0719a059a960f4572532b8331f824b7a647c2660824aa56d988ccde6c3b4
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-action/geki3-KXL/files/geki3-KXL-1.0.3-paths.patch b/games-action/geki3-KXL/files/geki3-KXL-1.0.3-paths.patch
new file mode 100644
index 000000000000..26f3f4371b85
--- /dev/null
+++ b/games-action/geki3-KXL/files/geki3-KXL-1.0.3-paths.patch
@@ -0,0 +1,41 @@
+--- a/bmp/Makefile.am
++++ b/bmp/Makefile.am
+@@ -1,4 +1,4 @@
+-bmpdir = $(prefix)/share/geki3/bmp
++bmpdir = $(BMP_PATH)
+ bmp_DATA = back1.bmp boss2.bmp enemyshot1.bmp missile.bmp\
+ pata.bmp back2.bmp boss3.bmp enemyshot2.bmp mogu.bmp\
+ pata_ball.bmp back3.bmp boss4.bmp frame.bmp mogu_ball.bmp\
+--- a/configure.in
++++ b/configure.in
+@@ -25,9 +25,9 @@
+ BMP_PATH=/usr/local/share/geki3/bmp
+ WAV_PATH=/usr/local/share/geki3/wav
+ else
+- DATA_PATH=$prefix/share/geki3/data
+- BMP_PATH=$prefix/share/geki3/bmp
+- WAV_PATH=$prefix/share/geki3/wav
++ DATA_PATH=$datadir/geki3/data
++ BMP_PATH=$datadir/geki3/bmp
++ WAV_PATH=$datadir/geki3/wav
+ fi
+ AC_DEFINE_UNQUOTED(DATA_PATH,"$DATA_PATH")
+ AC_DEFINE_UNQUOTED(BMP_PATH,"$BMP_PATH")
+--- a/data/Makefile.am
++++ b/data/Makefile.am
+@@ -1,6 +1,4 @@
+-datadir = $(prefix)/share/geki3/data
++datadir = $(DATA_PATH)
+ data_DATA = stage1.dat stage2.dat stage3.dat stage4.dat
+ EXTRA_DIST = stage1.dat stage2.dat stage3.dat stage4.dat .score
+
+-install:
+- $(INSTALL) -c -m 666 ./.score $(DESTDIR)$(DATA_PATH)
+--- a/wav/Makefile.am
++++ b/wav/Makefile.am
+@@ -1,4 +1,4 @@
+-wavdir = $(prefix)/share/geki3/wav
++wavdir = $(WAV_PATH)
+ wav_DATA = bgm1.wav bgm2.wav bgm3.wav bgm4.wav boom.wav boss.wav go.wav \
+ laser.wav open.wav pow.wav warning.wav
+ EXTRA_DIST = bgm1.wav bgm2.wav bgm3.wav bgm4.wav boom.wav boss.wav go.wav \
diff --git a/games-action/geki3-KXL/geki3-KXL-1.0.3-r2.ebuild b/games-action/geki3-KXL/geki3-KXL-1.0.3-r2.ebuild
new file mode 100644
index 000000000000..0dbc7cd1418b
--- /dev/null
+++ b/games-action/geki3-KXL/geki3-KXL-1.0.3-r2.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit autotools eutils games
+
+DESCRIPTION="2D length scroll shooting game"
+HOMEPAGE="http://triring.net/ps2linux/games/kxl/kxlgames.html"
+SRC_URI="mirror://gentoo/${P}.tar.gz
+ mirror://gentoo/${PN}.png"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="dev-games/KXL"
+RDEPEND="${DEPEND}
+ media-fonts/font-adobe-100dpi"
+
+src_prepare() {
+ rm -f missing
+ sed -i \
+ -e '1i #include <string.h>' \
+ -e "s:DATA_PATH \"/.score\":\"${GAMES_STATEDIR}/${PN}\":" \
+ src/ranking.c || die
+ sed -i -e '/CFLAGS/s/$/ @CFLAGS@/' src/Makefile.am || die #bug 426890
+ epatch "${FILESDIR}"/${P}-paths.patch
+ mv configure.{in,ac}
+ eautoreconf
+}
+
+src_install() {
+ default
+ insinto "${GAMES_STATEDIR}"
+ newins data/.score ${PN}
+ fperms g+w "${GAMES_STATEDIR}"/${PN}
+ doicon "${DISTDIR}"/${PN}.png
+ make_desktop_entry geki3 Geki3
+ prepgamesdirs
+}
diff --git a/games-action/geki3-KXL/geki3-KXL-1.0.3-r3.ebuild b/games-action/geki3-KXL/geki3-KXL-1.0.3-r3.ebuild
new file mode 100644
index 000000000000..e4a7bf505b6d
--- /dev/null
+++ b/games-action/geki3-KXL/geki3-KXL-1.0.3-r3.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools eutils user
+
+DESCRIPTION="2D length scroll shooting game"
+HOMEPAGE="http://triring.net/ps2linux/games/kxl/kxlgames.html"
+SRC_URI="mirror://gentoo/${P}.tar.gz
+ mirror://gentoo/${PN}.png"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-games/KXL"
+RDEPEND="${DEPEND}
+ media-fonts/font-adobe-100dpi"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-paths.patch
+)
+
+pkg_setup(){
+ enewgroup gamestat 36
+}
+
+src_prepare() {
+ default
+ rm -f missing
+ sed -i \
+ -e '1i #include <string.h>' \
+ -e "s:DATA_PATH \"/.score\":\"/var/games/${PN}\":" \
+ src/ranking.c || die
+ sed -i -e '/CFLAGS/s/$/ @CFLAGS@/' src/Makefile.am || die #bug 426890
+ mv configure.{in,ac}
+ eautoreconf
+}
+
+src_install() {
+ default
+
+ insinto /var/games/${PN}
+ newins data/.score ${PN}
+ fowners root:gamestat /var/games/${PN} /usr/bin/geki3
+ fperms 660 /var/games/${PN}
+ fperms 2755 /usr/bin/geki3
+
+ doicon "${DISTDIR}"/${PN}.png
+ make_desktop_entry geki3 Geki3
+}
diff --git a/games-action/geki3-KXL/metadata.xml b/games-action/geki3-KXL/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-action/geki3-KXL/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 type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/games-action/gltron/Manifest b/games-action/gltron/Manifest
new file mode 100644
index 000000000000..753e85ce57b7
--- /dev/null
+++ b/games-action/gltron/Manifest
@@ -0,0 +1,11 @@
+AUX gltron-0.70-configure.patch 622 SHA256 8a1f902f83f215e4ce6dbc2f1b60d3d413b626795d9db1f5cf09c3ed9631e915 SHA512 c883589e1b54a98685bde729633077bae22834713d19d2b49ef0d9de57fa136a9808dbb491233902181feda4b522cc6fafe8ebbe09827e7bc3fe232c931cb5ba WHIRLPOOL 6b2c9f064409bfa1be31fece3d509dfd0c6f5a1c790ac1732b26d259515fa59fff5506a9db8c2a0968debd42beecfb009fa1968c38312299e575280f93808f1a
+AUX gltron-0.70-debian.patch 885 SHA256 cbcd50faf00e20565099fb1f9c04672810592e75927168139344b9eb2bbadae3 SHA512 1b3017735a48a0ff7fa837d777cda3dd50336520b7131d2c25a8be63940d1372e60d51fe96aae42c9b2c6c34810da9127d6a3f69d6a1cc8a4ff5aa480435727a WHIRLPOOL d85420ebb9bd271d7c64b09d2c09a859a458d69f48e14f72b56dccfc7da292578fe53387a98fae34bd56396dd63cc2bd5dd8ad2b160375dc21dfa5a0710e4bb7
+AUX gltron-0.70-gcc49.patch 259 SHA256 62650733e0a5b4e1f99ef6bfde2d02075d92ee708b6137b53ffc5dfe5b166070 SHA512 bd02b07edf56c3f2e6cb2b22e840dd7a8a6e83b1752580df5f20faadc9b8fb489822733c63ef26476af59a12413e902a547cd3bec893abacabc354379a3b952c WHIRLPOOL d45ef51267745009dd142398fac21a1fb2910628b2ebc52ed96ea18a9b01239ddfe8a27d5b396e9fe54212b7c699c30dc0d69c316e32d31664a2cd9ecde904f6
+AUX gltron-0.70-prototypes.patch 629 SHA256 1c51a87ab3f44619646dbf0e945f7c5841f98a9b3d2ccfde6cd83eb1e313b366 SHA512 54db68b1d16be029db3314f11da25ee3d3ef1ed4197a702e8d12e753bf1a842268c129784d3d8706347281005a00607572e191fac5215060c1554b69cfee20e5 WHIRLPOOL 1360dc2645ebde93a25c0b17086ca50d84759bccdd323c8d1e2df5335fb54cec31e41e1396ef03821646e635c9e0a072a3cb90d709fec719c4db4c97ed396b6c
+DIST gltron-0.70-source.tar.gz 2182440 SHA256 e0c8ebb41a18a1f8d7302a9c2cb466f5b1dd63e9a9966c769075e6b6bdad8bb0 SHA512 297708a145d995bfd186f1745ffa674ab44238e8c2fb627245de3c1602f578afdd9223fae696107769b3b29da476cd9623ee37183618bfb13a9a9cfa59e41bf2 WHIRLPOOL d734840ea4d4181d2531d7596a380edd96b2cecc91786428f183ea06903f8ce7183d51bf6655abbd56d07d5fa272a91c1d5b2691cf49408f28f773bb63121bc7
+DIST gltron.png 7570 SHA256 1f7262feb4f3bdff36573fe51dedd93905feb2ec9a54a3f8ec0a964489c40abd SHA512 d83eb90b4d070d4dc5e93bf90cf81629b6a8bb200ca5e2963b757e282aeae62288560a6ded6159a170c301f0119592ac743a15ab604a6ba98a4ee93d00c02d0a WHIRLPOOL 78cea6ca679908f536995d5398a236e03563097719033dccdb3f33892b3d41954e68d84b55367674a2cb77cb4cde49650c01febba95e34257d3790393aa23f23
+EBUILD gltron-0.70-r1.ebuild 1115 SHA256 d93e094fd92d106aa2df2e862c6b1dd12f525f9b0a191f9ffb1ec5bd30844867 SHA512 59f7f2f06884b640cd00229ecc76258a43d930533752eb4947eac694c630adbe54cfaae97cb9cd9ba0d545a0224271223ce31f193706aebd1ce41964d15f7473 WHIRLPOOL fa365d42ad4d102aa400265712610bb6031471f63eca25b2ba22d61d0b4dc0072b74923466b25b27c25098f6839bd5a4faf6f23b53ab687cd4355c4454ddf953
+EBUILD gltron-0.70-r2.ebuild 1096 SHA256 ba111f79455e4396386929e98c32683ebd2f986bd879ec97daa59f5e096f7d08 SHA512 82fa2317d66aeb083829978ce5d01f3194ebcb22de0690045c652ede47c315c329c41f528cc0ddc57bb3336c228305245cddfce27d485263756b84baa39cbbee WHIRLPOOL 0c24817058575336bc54f728bcb8a3b0ccddd9fa6ceb700cdb369da86b24447b3b2d41d32cad216a2b726de31310146a1e13778134d489fc5d72ca46c1a9f8ea
+MISC ChangeLog 2574 SHA256 702a07c3932af137fc9a4dc4dd19c5dd6bf0c223a64a1c70259231e324153084 SHA512 01a5dbcbe1328a9830f30885d09c46bdf2f280fdb703eb07422a30ba3fc63cde1a4f655812a09ed15eee99c3363675dddd868e34a69fbcdd589c951775c79e8a WHIRLPOOL 7d5b5a95e508b9119e8393a85e3141e444dda111d3617ad7533bd60a2a785a76bfdbd42a75a5a05562393aa1b046e9fdbfd56a97447ec6da5f01890aee1ea82c
+MISC ChangeLog-2015 3795 SHA256 5d45885796ffe905cec6820b9d2a5c6541c851ae8d48e7e48bd781a29e319847 SHA512 345ad47d260e0361e658425412470687cd080901e37aa3ca180e303c056215aeb556f011dd43938df9899528163af20c933843cf229a1ca789f5f490fa5aa3f2 WHIRLPOOL 0d5f080416ab90e8d3b7ca21fe082f1b21935f10f72018af84124e7a0d1627e0194c8ee5373344519a8433f366fdbf8d84e0c8bed931fa2cd3951ce0878112ab
+MISC metadata.xml 329 SHA256 bde928d2893dfb847e1cea416acbfad625a1328f37ae259b2e1d03ae1ff7e1e8 SHA512 118d8a5ce83c678a0a0e73b0a3932a24cffd2fef16949dfa986f16e34cad89929f9d0daed1db9945af0f515e9b5da7961cb9a61b19ea1846ed085fa414a24f80 WHIRLPOOL d731961fac2e86b7d757f3f24d68648bac795ec856a7232f7b6e2a894836b7d666ffff61c9b4589a69cd0631c18dceedce69ef30cb340f373a4ed248b2346cf1
diff --git a/games-action/gltron/files/gltron-0.70-configure.patch b/games-action/gltron/files/gltron-0.70-configure.patch
new file mode 100644
index 000000000000..5bdef979a57f
--- /dev/null
+++ b/games-action/gltron/files/gltron-0.70-configure.patch
@@ -0,0 +1,24 @@
+configure.in is written poorly so it just stomps all over CFLAGS
+
+--- a/configure
++++ b/configure
+@@ -2805,7 +2805,7 @@
+ RANLIB="$ac_cv_prog_RANLIB"
+ fi
+
+-CFLAGS="-DSEPARATOR=\"'/'\""
++CFLAGS="$CFLAGS -DSEPARATOR=\"'/'\""
+
+ # Check whether --enable-warn or --disable-warn was given.
+ if test "${enable_warn+set}" = set; then
+@@ -2852,10 +2852,6 @@
+ else
+ enable_optimize=s
+ fi;
+-if test "x$enable_optimize" ; then
+- CFLAGS="$CFLAGS -O$enable_optimize"
+- CXXFLAGS="$CXXFLAGS -O$enable_optimize"
+-fi
+
+ # Check whether --with-sdl-prefix or --without-sdl-prefix was given.
+ if test "${with_sdl_prefix+set}" = set; then
diff --git a/games-action/gltron/files/gltron-0.70-debian.patch b/games-action/gltron/files/gltron-0.70-debian.patch
new file mode 100644
index 000000000000..4e25618ce9b6
--- /dev/null
+++ b/games-action/gltron/files/gltron-0.70-debian.patch
@@ -0,0 +1,35 @@
+Ripped from Debian patchset 6
+
+--- a/src/include/game/game_data.h
++++ b/src/include/game/game_data.h
+@@ -71,7 +71,7 @@
+ typedef struct AI {
+ int active;
+ int tdiff;
+- long lasttime;
++ unsigned int lasttime;
+ segment2 left, right, front, backleft;
+ } AI;
+
+--- a/src/include/video/fonttex.h
++++ b/src/include/video/fonttex.h
+@@ -10,7 +10,7 @@
+ int lower; /* lowest ascii character (normally: 32) */
+ int upper; /* highest ascii character (normally: 126) */
+
+- int *texID;
++ unsigned int *texID;
+
+ char *fontname;
+ char *bitmapname;
+--- a/src/video/trail.c
++++ b/src/video/trail.c
+@@ -19,7 +19,7 @@
+ n[1] = s->vStart.v[1] - s->vDirection.v[0];
+ tmp[0] = eye[0] - s->vStart.v[0];
+ tmp[1] = eye[1] - s->vStart.v[1];
+- if(n[0] == n[1] == 0) return length(tmp);
++ if(n[0] == 0 && n[1] == 0) return length(tmp);
+ return abs(scalarprod2(n, tmp) / length(n));
+ }
+
diff --git a/games-action/gltron/files/gltron-0.70-gcc49.patch b/games-action/gltron/files/gltron-0.70-gcc49.patch
new file mode 100644
index 000000000000..4a1d5cbe1e1e
--- /dev/null
+++ b/games-action/gltron/files/gltron-0.70-gcc49.patch
@@ -0,0 +1,13 @@
+--- 1/lua/src/lib/liolib.c
++++ 1/lua/src/lib/liolib.c
+@@ -6,9 +6,9 @@
+ */
+
+
++#define __USE_MISC /* for mkstemp() */
+ #include <ctype.h>
+ #include <stdio.h>
+-#define __USE_MISC /* for mkstemp() */
+ #include <stdlib.h>
+ #include <string.h>
+ #include <time.h>
diff --git a/games-action/gltron/files/gltron-0.70-prototypes.patch b/games-action/gltron/files/gltron-0.70-prototypes.patch
new file mode 100644
index 000000000000..621963aeb689
--- /dev/null
+++ b/games-action/gltron/files/gltron-0.70-prototypes.patch
@@ -0,0 +1,24 @@
+scripting.h declares these params as const so make sure they're the same.
+
+--- a/nebu/scripting/scripting.c
++++ b/nebu/scripting/scripting.c
+@@ -169,16 +169,16 @@
+ return status;
+ }
+
+-void scripting_RunFile(char *name) {
++void scripting_RunFile(const char *name) {
+ lua_dofile(L, name);
+ }
+
+-void scripting_Run(char *command) {
++void scripting_Run(const char *command) {
+ /* fprintf(stderr, "[command] %s\n", command); */
+ lua_dostring(L, command);
+ }
+
+-void scripting_RunFormat(char *format, ... ) {
++void scripting_RunFormat(const char *format, ... ) {
+ char buf[4096];
+ va_list ap;
+ va_start(ap, format);
diff --git a/games-action/gltron/gltron-0.70-r1.ebuild b/games-action/gltron/gltron-0.70-r1.ebuild
new file mode 100644
index 000000000000..ec112c045e75
--- /dev/null
+++ b/games-action/gltron/gltron-0.70-r1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="3d tron, just like the movie"
+HOMEPAGE="http://gltron.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}-source.tar.gz
+ mirror://gentoo/${PN}.png"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="virtual/opengl
+ media-libs/libpng:0
+ media-libs/libsdl[sound,video]
+ media-libs/sdl-mixer[vorbis]
+ media-libs/sdl-sound[vorbis,mikmod]
+ media-libs/smpeg
+ media-libs/libmikmod"
+RDEPEND=${DEPEND}
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-configure.patch \
+ "${FILESDIR}"/${P}-prototypes.patch \
+ "${FILESDIR}"/${P}-debian.patch \
+ "${FILESDIR}"/${P}-gcc49.patch
+ sed -i \
+ -e '/^gltron_LINK/s/$/ $(LDFLAGS)/' \
+ Makefile.in || die
+}
+
+src_configure() {
+ # warn/debug/profile just modify CFLAGS, they aren't
+ # real options, so don't utilize USE flags here
+ egamesconf \
+ --disable-warn \
+ --disable-debug \
+ --disable-profile
+}
+
+src_install() {
+ default
+ doicon "${DISTDIR}"/${PN}.png
+ make_desktop_entry ${PN} GLtron
+ prepgamesdirs
+}
diff --git a/games-action/gltron/gltron-0.70-r2.ebuild b/games-action/gltron/gltron-0.70-r2.ebuild
new file mode 100644
index 000000000000..dc47e0b51cab
--- /dev/null
+++ b/games-action/gltron/gltron-0.70-r2.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils
+
+DESCRIPTION="3d tron, just like the movie"
+HOMEPAGE="http://gltron.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}-source.tar.gz
+ mirror://gentoo/${PN}.png"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="
+ media-libs/libmikmod
+ media-libs/libpng:0
+ media-libs/libsdl[sound,video]
+ media-libs/sdl-mixer[vorbis]
+ media-libs/sdl-sound[vorbis,mikmod]
+ media-libs/smpeg
+ virtual/opengl"
+
+RDEPEND=${DEPEND}
+
+PATCHES=(
+ "${FILESDIR}"/${P}-configure.patch
+ "${FILESDIR}"/${P}-debian.patch
+ "${FILESDIR}"/${P}-gcc49.patch
+ "${FILESDIR}"/${P}-prototypes.patch
+)
+
+src_prepare() {
+ default
+ sed -i \
+ -e '/^gltron_LINK/s/$/ $(LDFLAGS)/' \
+ Makefile.in || die
+}
+
+src_configure() {
+ # warn/debug/profile just modify CFLAGS, they aren't
+ # real options, so don't utilize USE flags here
+ econf \
+ --disable-warn \
+ --disable-debug \
+ --disable-profile
+}
+
+src_install() {
+ default
+ doicon "${DISTDIR}"/${PN}.png
+ make_desktop_entry ${PN} GLtron
+}
diff --git a/games-action/gltron/metadata.xml b/games-action/gltron/metadata.xml
new file mode 100644
index 000000000000..0612306374d9
--- /dev/null
+++ b/games-action/gltron/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">gltron</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-action/heretic2-demo/Manifest b/games-action/heretic2-demo/Manifest
new file mode 100644
index 000000000000..c5d1bf89229b
--- /dev/null
+++ b/games-action/heretic2-demo/Manifest
@@ -0,0 +1,5 @@
+DIST heretic2-demo.run 55065564 SHA256 623e1a277ff8eb47e48a6fa50f32eb1325eba1591cebdea002a32599464b881a SHA512 62aba7b4569b76bf9a01864652da7be8e268ad3cad4eb5b986b7e84adbd88e826799d021b141f9a7a1135520e440de4ce2e57c5be6ceaa85dc08295d5e3ad30e WHIRLPOOL fdde3e8caf5114e37e9db16801e99638a1fbe20b40c6bdf913d57d8e5f4774fa3d84bb44a365bb16ea6fefd1ad88e08c924bedd6ef58a50bc9612193cc4e8220
+EBUILD heretic2-demo-1.06a.ebuild 1350 SHA256 9cdcecfc0a17bd2aad78b9d873102fa7351d563f8ae931ce3879352d9d0443cc SHA512 f0092e7f031995adc322dc843ac28c62b67c5519d23df93957fe6f856091006d3e82c5eff72a7461ab77fd9a7c0d499e0ea462091fafcdd14d02f9389506aa21 WHIRLPOOL 3f1a907737192a98d3e24ac1629c195984ef362b762d9805e27eb1ebeaa11300722129662e0cb7cab8d59d2b7ecf594415388f426916c2e6a83d2220c2905a88
+MISC ChangeLog 2449 SHA256 16ce26a849b0786ccb43264b8000edb1d7fa6ed2feef9b287b9ff8c9ce9ebc2f SHA512 796d90f55ff9794d972147b281a6377eb32e40ff01b53c7be1810202e802a6fc4f34b1ddf3cf2a5cf7e34bdf48f295028a4c456eadef32342c37ecaaab1ac242 WHIRLPOOL b5bce9f620b5cf3b0d93dc8f96c3d668299c265aefab5c5ae0b26c59d2cbf4152725d349794e8214ce0397d2b92a04d9a3c61a643523e3e446f8d938bfdf0a30
+MISC ChangeLog-2015 1983 SHA256 fdc30d82b44aa8ce28482db17aedb2f16c0795e3cc41c7ca11734cb4b6c97369 SHA512 f6fa9c229a846b4c6f22d42f8568494ed877e9449f86662b0dfbc0265a10cfdbc5e97de63fe4adf5a0909f5a3df1f7c35ebe2def67dac1372e3f11c1ab67b5d6 WHIRLPOOL 13368bb2bf20806fdde97a39eb92dd8bf96ee0cfb868453371634f7fc1fe0b6f587f20f275a36439a99fa5b7180ab5ffb280669fc09ada641177f1c1525f8316
+MISC metadata.xml 710 SHA256 8cf6343462b095a63e03f72ad258674cdb23022f5612a0ea4127cf2ec16f922c SHA512 3d5b818e953410bd3b51926173604c85ea1d74d6433e5ea52866153fa9da7d4627cd18adc844e10fa54cba1d156b505dca9364b22f6fe7d2d792127fa65b4586 WHIRLPOOL ddba7d6b00104996c2effbfa8ee6224428303501fd15ceb5bb1952bf3d0917960f75852fc8edc37b59abb11aa78d14c196c92794e9511f1e13fa016c5a909d0b
diff --git a/games-action/heretic2-demo/heretic2-demo-1.06a.ebuild b/games-action/heretic2-demo/heretic2-demo-1.06a.ebuild
new file mode 100644
index 000000000000..d7c4210078da
--- /dev/null
+++ b/games-action/heretic2-demo/heretic2-demo-1.06a.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils unpacker multilib games
+
+DESCRIPTION="Third-person classic magical action-adventure game"
+HOMEPAGE="http://www.lokigames.com/products/heretic2/
+ http://www.hereticii.com/"
+SRC_URI="mirror://lokigames/loki_demos/${PN}.run"
+
+LICENSE="LOKI-EULA"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+RESTRICT="strip"
+QA_TEXTRELS="${GAMES_PREFIX_OPT:1}/heretic2-demo/ref_glx.so"
+
+DEPEND="games-util/loki_patch"
+RDEPEND="
+ x11-libs/libX11[abi_x86_32(-)]
+ x11-libs/libXext[abi_x86_32(-)]"
+
+S=${WORKDIR}
+
+dir=${GAMES_PREFIX_OPT}/${PN}
+Ddir=${D}/${dir}
+QA_PREBUILT="${dir:1}/*"
+
+src_install() {
+ ABI=x86
+
+ local demo="data/demos/heretic2_demo"
+ local exe="heretic2_demo.x86"
+
+ loki_patch patch.dat data/ || die
+
+ # Remove bad opengl library
+ rm -r "${demo}/gl_drivers/"
+
+ # Change to safe default of 800x600 and option of normal opengl driver
+ sed -i \
+ -e "s:fullscreen \"1\":fullscreen \"1\"\nset vid_mode \"4\":" \
+ -e "s:libGL:/usr/$(get_libdir)/libGL:" \
+ "${demo}"/base/default.cfg || die
+
+ insinto "${dir}"
+ exeinto "${dir}"
+ doins -r "${demo}"/*
+ doexe "${demo}/${exe}"
+
+ games_make_wrapper ${PN} "./${exe}" "${dir}" "${dir}"
+ newicon "${demo}"/icon.xpm ${PN}.xpm
+ make_desktop_entry ${PN} "Heretic 2 (Demo)" ${PN}
+
+ prepgamesdirs
+}
diff --git a/games-action/heretic2-demo/metadata.xml b/games-action/heretic2-demo/metadata.xml
new file mode 100644
index 000000000000..3df7e72452ae
--- /dev/null
+++ b/games-action/heretic2-demo/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+</maintainer>
+<longdescription>
+Power up your mana and help Corvus find the cure to a plague of epic dimensions -- and save the worlds of D'sparil before it's too late! A high-powered and mystical three-dimensional environment will enthrall you, with spectacular sound and visual effects, non-stop action and adventure. Prepare to be ensnared in the visual feast that is the worlds of D'sparil. This is the demo version of the commercially-ported game.
+</longdescription>
+</pkgmetadata>
diff --git a/games-action/heretic2/Manifest b/games-action/heretic2/Manifest
new file mode 100644
index 000000000000..85f903942090
--- /dev/null
+++ b/games-action/heretic2/Manifest
@@ -0,0 +1,7 @@
+DIST heretic2-1.06b-unified-x86.run 4718161 SHA256 5fccb3ed0948af96b8f92232dc0e89f700b32a753ef303f707b82189d9d2b4fb SHA512 7dcd4f8f87d526db7ea9fd647e4807d4e1a404a612460f8dcc0d0360964ef0d4c721e9c62b58cd1764c1e2c71ad1539c6aac5083fadc7a85ec4c12c8aa7b338f WHIRLPOOL d471cd3d1135e647a2bbd5363a0aae731f31699085bc4f45ab3f93a4b7f2625c69653abf1841f4966d6609880f448ce688b1b4b933c848cd0ee1139a7f759ac1
+DIST heretic2-1.06c-unified-x86.run 3667873 SHA256 0e8fbd4a9df001a7b2df7e860f5506069ffaae2f898e066b7b72fbc83e1496f0 SHA512 e855c573d6e215e18d80143d1850e890349f941462a5d2d59c57a02f11a39967fd633efdfe46199d588e97cc99322d539ac50fc7bc7fa6d7e116e99f5a532de4 WHIRLPOOL cd605462e809bdacde9f50b91c2c188ea08bed386bad9baf2a065ac7ef95d8383be4ec5acf62293c2a7df30ed969e7860979fdb792854cc6db16b0c90ffb2eca
+DIST heretic2-maps-1.0.run 6257076 SHA256 c4dc02af9c426ecaf59ce3a4c487c3e452b430eca1bb0e3a33f98f9d2ac47543 SHA512 ba570caeae6bbe4a97bfe937353014dc9ddcc5a007b0fd1911ab1494667d2dae263d727190e7172d35639511a6383ff35eea5622cdc2e124e3793daef3c8e607 WHIRLPOOL 04c99d8171beb28f4a5606d29bfc57f4b4a86574d46abd5dde5bd08a3660430d8690f9948a21c337ebad0b9e131fd290898cd4d7e71f4a8649e15aa60b316f63
+EBUILD heretic2-1.06c-r1.ebuild 1788 SHA256 d1240498212146dd9618e8f0d82c7bce9cc379ead4c383484f6da117614b9a0f SHA512 c414172a86db514feb65cbfc19f2ff15e0b80d14f657434361a31055abfa87d21f9ca9a59ac81eab2178153f199a4de9d9938314ae412e808ac64747004bfcee WHIRLPOOL a8b982a6f4cd792b5993d6692b43f7bcf2da2a41333423e8f84f018fd7c1a1f67065b671f4c30e28d0c3ccae48033b0b54686beb107da63f9fb70159e4f08998
+MISC ChangeLog 2564 SHA256 b3b0223d6e89664033dda9ee11676979456e69a3df7580f35f9339843b218bd5 SHA512 ebdec79d60e8cc5eb298ee6191d21bd900ea7433ae546dd3b89e95df59522aa7d621f07647da0468e637b63ecc7df40c0545bb6da02608425d908719799e0626 WHIRLPOOL ff84a294a916526cc87260d1f7965144f06e3a888fc15aa17dac2295c57d01bb679d9e4dcdc7b809098abe05b08e6752519333aeac373785004d66496828b8a3
+MISC ChangeLog-2015 2464 SHA256 3608d6ff8150c279733e719bd23287880c90eeae5dcba89aef5d7fadcc149a56 SHA512 fb1befbf52f1d14a0a66cba9cf1ff56c25a85bf0665b2a931d022159fcfff0ee6a3f627c46619f63e4b20c410ca67602516252d94dcad27a74e95973dee20f30 WHIRLPOOL 4aaf2db03b9271e625f9f16c0cae617cde51ea6495a6429360741349196fa827a6a4c7f9edc2a46e5dc5a68e25159d5b518cdd01133200dc49616baa53cb845c
+MISC metadata.xml 252 SHA256 0dd0e558bb7ccc4f24cb9c9c43790c108e559f3462861b2ff6eb267a345beaab SHA512 90798aff93ec7e3881b882e7b10bb1680e8cb7d82b0ef4280e562ab0c9e8a2daba8afe57333dc64697322267a4b651c00ee9b4fdeb56278ff70c073da7b91638 WHIRLPOOL c6c72f145f4ccc4863ad4c1a236eac601fb00f0e9550568f98d5e6f5eeb16f361b4c18eac8d80a1534e398fac595a6819a86297164be0818d04de6d643f01d7c
diff --git a/games-action/heretic2/heretic2-1.06c-r1.ebuild b/games-action/heretic2/heretic2-1.06c-r1.ebuild
new file mode 100644
index 000000000000..7d89ec0bbf32
--- /dev/null
+++ b/games-action/heretic2/heretic2-1.06c-r1.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils unpacker cdrom multilib games
+
+DESCRIPTION="Third-person classic magical action-adventure game"
+HOMEPAGE="http://lokigames.com/products/heretic2/
+ http://www.ravensoft.com/heretic2.html"
+SRC_URI="mirror://lokigames/${PN}/${P/%?/b}-unified-x86.run
+ mirror://lokigames/${PN}/${P}-unified-x86.run
+ mirror://lokigames/${PN}/${PN}-maps-1.0.run"
+
+LICENSE="LOKI-EULA"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+RESTRICT="strip"
+QA_TEXTRELS="${GAMES_PREFIX_OPT:1}/${PN}/base/*.so"
+
+DEPEND="games-util/loki_patch"
+RDEPEND="virtual/opengl
+ amd64? (
+ >=virtual/opengl-7.0-r1[abi_x86_32(-)]
+ >=x11-libs/libX11-1.6.2[abi_x86_32(-)]
+ >=x11-libs/libXext-1.3.2[abi_x86_32(-)]
+ )
+ x86? (
+ x11-libs/libX11
+ x11-libs/libXext
+ )"
+
+S=${WORKDIR}
+
+src_unpack() {
+ cdrom_get_cds bin/x86/glibc-2.1/${PN}
+ mkdir ${A}
+
+ local f
+ for f in * ; do
+ cd "${S}"/${f}
+ unpack_makeself ${f}
+ done
+}
+
+src_install() {
+ has_multilib_profile && ABI=x86
+
+ local dir=${GAMES_PREFIX_OPT}/${PN}
+
+ cd "${CDROM_ROOT}"
+
+ insinto "${dir}"
+ doins -r base help Manual.html README README.more
+
+ exeinto "${dir}"
+ doexe bin/x86/glibc-2.1/${PN}
+
+ games_make_wrapper ${PN} ./${PN} "${dir}" "${dir}"
+ sed -i \
+ -e 's/^exec /__GL_ExtensionStringVersion=17700 exec /' \
+ "${D}/${GAMES_BINDIR}/${PN}" || die
+ newicon icon.xpm ${PN}.xpm
+ make_desktop_entry ${PN} "Heretic II"
+
+ cd "${D}/${dir}"
+ ln -s "${CDROM_ROOT}"/*.gz .
+ unpack ./*.gz
+ rm -f *.gz
+
+ local d
+ for d in "${S}"/* ; do
+ pushd "${d}" > /dev/null
+ loki_patch patch.dat "${D}/${dir}" || die
+ popd > /dev/null
+ done
+
+ rmdir gl_drivers
+ sed -i \
+ "128i set gl_driver \"/usr/$(get_libdir)/libGL.so\"" \
+ base/default.cfg || die
+
+ prepgamesdirs
+}
diff --git a/games-action/heretic2/metadata.xml b/games-action/heretic2/metadata.xml
new file mode 100644
index 000000000000..3c186688e265
--- /dev/null
+++ b/games-action/heretic2/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 type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/games-action/heroes/Manifest b/games-action/heroes/Manifest
new file mode 100644
index 000000000000..618dc7d49ba1
--- /dev/null
+++ b/games-action/heroes/Manifest
@@ -0,0 +1,13 @@
+AUX 0.21-cvs-segfault-fix.patch 551 SHA256 ace0a96021ac7a0b2eea28e79aaa5c40fda1aa3df95c9ebb861162e7742a28f4 SHA512 4ccce0f50a5f2128809d8fa759b4dcdd002443ecf6d35ebd72a46e1feb0461150535c462e674156c9f8550578ea4b66d3c87aee74c3bbdfe756a96caa54bdde1 WHIRLPOOL d93ba12dccd0c296eb5e86139c53d3ff8bb6a40b0d935bc5ee6741dede75a7c7731080f55426d4421ef23deed07d88e8b80620f7239d960c8159b072a0bf3e2a
+AUX heroes-0.21-automake-1.12.patch 335 SHA256 fc30a70c70e971aebde6e6c10203f3df6740deb6d0964442db1b2eebb2963c9a SHA512 9c40b9b0bd4e82f3f9bd9b66c455e834bd1b2a91e79dd550fd4aada4ca1b6e2ecb55353f31cad1a021a28dfc3781afb1f040545bf8030b0e63b988708aae480d WHIRLPOOL 0cefeade152ff4037214adc2555167018a1e78ccabaf5b222341c36539c4cb1629b4092e78eca1c77ba3392634ea23df33d82051f692bf58ccb3c9ce99849368
+AUX heroes-0.21-gcc4.patch 6016 SHA256 ef3e7006bd617323d3a1a99bc074f419f9b5ce5907297b4c185fe2c64e7c83cc SHA512 ab72c9f501458a493458d92140286ed3ffdc1b5dc767343ce60354f6b1ded90fb8b25f914f4bbaea68fa29ef9870c2534038e44a92f84f01e1538c1f6b450b31 WHIRLPOOL 45cb5c214726fae63e8a8c5b55b62ca477c53fc9fc9ac04c3ba90fff46872cf3bd3c78f5f76579b5c27b6f833768abd45eea57c57ad40f2cc8fe906b0e5627b0
+AUX heroes-0.21-underlink.patch 476 SHA256 53fffd5680cba4894d6993757cd9ca5c43503bebcbe63234a517ddbf96e425be SHA512 6d5db649f4f1d0d7994e4fe1d6e5738276ada879ecd192be88b3dbdf900fe6991fce4fe05c52f075d0159cfab7cfd6728be322ba9f7e73556b61f43e5f9a52db WHIRLPOOL 9b92028a13e38c0f67ee00d0955af486387bccb8cff938e2e2d5712fdc7edabc04e24c4c712a76727afefc7ed116898031d048ecd5b8492df4f08a575c0f72e4
+DIST heroes-0.21.tar.bz2 709079 SHA256 47c0dd6dea64a971236d2fb5ec94e3526741ebfaf73110535ed438035d18da74 SHA512 fc0ac1fdf7e686388c90162b6cd76d638d295fa5919a9fdd4e944a85ca4f60b1b0a01873820b2c718ae9c960ca3d7e28ec62c09d6cd0f052e62fd2e76a96be82 WHIRLPOOL 519e479ee2e99e23c9209b20245f36a08053023ce6ef0ca1cceb1b358438f0f4bac9a1db467c742fbc63144b114a7e7f69c31b2aac4301617b7f28b908893091
+DIST heroes-data-1.5.tar.bz2 391970 SHA256 f3fa8bd0dd15795b906a8b0cfcfdf0d077404c8577a694347f9e3b1115c231ae SHA512 a4cb1508c2010b2157dc0e1d0a7973131fa167cb1f3c93649c3bc9b2c37419e4429e33cde14f3b67c7a4670f751ff4c28d88604102780bdb1fe5c77a93e1a213 WHIRLPOOL 0c0af90877703e36fb8d86f65cabf815b82b62885405102e32a957fa69d3d2a671c357995d151c001c351194d69ec98231f2465a1b92ff585e760205d37d8388
+DIST heroes-sound-effects-1.0.tar.bz2 389883 SHA256 400439d4c6d031ed55ebbb18a8c99928e8b7a99c220ab8ccd3a21eca04f2072c SHA512 51da63373f1bdb2314a8c3164028ee9cbb95958bfe8f13b1119236f035282a711efcc6ef5a84fd647c1e8451b4da788a74e4b8506e1476a437299dfc7b2046d1 WHIRLPOOL e272e0bda99d1331992bfbe74bbd9898bd10ebabff57fed37470c66bdde66e91ae856bf700aead6b8a18d1edf68b3e574281ca3c1c7dfd598decafe7bfe22bb7
+DIST heroes-sound-tracks-1.0.tar.bz2 1245613 SHA256 2a20bd584a97881421b1c5ef0575284f3dae2a6c0866b9d5faedc47b524cd573 SHA512 3e7ee2890c47366a39cfc7d7b9a1e5fdf3c3379013ca96072586ba909e2a602b114c728ffbe9dfe8eb6b62232cb6c25b13475f2a33da0243ea1ffb3f040842f0 WHIRLPOOL d1b05ec10b0de0d3c8348dbce832efe9b3aa7dd9dbcffb7824c1e4cd0b0c8770c305b3de4d9d7464e984e7ada7b4557bd6850316b24138ca5d0ea19bd9ddbaf5
+EBUILD heroes-0.21-r1.ebuild 1695 SHA256 f16b52286b2b2bab7642c07876ad9648b4da21916adeb2734e6af91c2b5bda4a SHA512 be377683ad341d704259d5a185405803aaf4451d313711f164e2a89c99c4c511f6b0e25ca5d026443c97b0af0d55380183b81a018182b4b18dbe8798997841c3 WHIRLPOOL 21d28ad891ab4919f52ba8910e0fcc374731cf8d4dec0fecc7561202655e1c73138d0b4c66fcb49b68d59238686fd92859902a86be6b2d6413bf2dc17e29416d
+EBUILD heroes-0.21-r2.ebuild 1679 SHA256 73dabf087f34ac874cbeaf17664e3d1026b0eec05eb0522cedf9c048fad66e73 SHA512 c10f5113a492d26cd6f61973619e2e5b9106b603d7e76b0936ee18db8db0c1552941128a8133e72f4c9defbb9b976b2d1af763c6931a21454a7c3a378145e0de WHIRLPOOL d362621932caa01f0f3ae7af2cc24ab012cf7c14e0fc231e924886cc1b19619da6dc860308ef2f9ec13963cdc665b7d0fd8a1d33281dd037cf530e5e96cbf1b2
+MISC ChangeLog 2717 SHA256 4cf2255cecde64bd485c701dc073de8cef08d40109e8a27e1225051ffe52c9ac SHA512 dc338a6d8b85ec008e999a7b7ec669ee5a96e4a65d72a47f019aebc61b36c0314e64b7bb6137731980b39768d1fb08e072f88e4283952c527b09554ae4b5edb8 WHIRLPOOL 2ce175ba76c9814a9f367c6914218344e462a5c8bc1404eff5fe7924291fbc6eb8189488c1f06361af3744fcac55f60c4fe3370a58705e083b411ae2bd44b04d
+MISC ChangeLog-2015 3866 SHA256 28a05fe0152bbedb96183f90d3b50dbaa9e4a7d688f641161d1edbbc38d3cf1d SHA512 eb36bed85136c6237ea50fa9520c4cdb7976cb3acc62ac1740661d84fd786cf533e93a924bb2629e264b2a16d8594d21945b782484ce592b962bc10acbf434e0 WHIRLPOOL 4a3de53f9467f0bf2a8224d3c550ccad167e2578d3fd2da3f2f8b1a0ce0dc402e1d35f9d21e7796100d0e6e9cea2b806a67d5cfacd7d5bec3fc9a661f5afc089
+MISC metadata.xml 329 SHA256 11f74972e6ba880ace6b90cd8ad0e994a887a5c75ce156fedcf3b0225e790d7b SHA512 f33d2b7d06f5e772abf4acb8b3dc8ba78b52ab8220a350ddc64d8bde67e850062830b4251f13021b8472b110602c937cfdc3fd34c97c37ba455542b771ecb872 WHIRLPOOL 8e0eb00defbc244c375503330c316214345161577743b7a1e605cf5e6d34aa9ad8cae5f596bba8370af54c82b369720f72d15a24d8a6cf6cd7d1ed5cc232e96f
diff --git a/games-action/heroes/files/0.21-cvs-segfault-fix.patch b/games-action/heroes/files/0.21-cvs-segfault-fix.patch
new file mode 100644
index 000000000000..689fdeea8a6c
--- /dev/null
+++ b/games-action/heroes/files/0.21-cvs-segfault-fix.patch
@@ -0,0 +1,17 @@
+===================================================================
+RCS file: /cvsroot/heroes/heroes/src/menus.c,v
+retrieving revision 1.108.2.1
+retrieving revision 1.108.2.2
+diff -u -r1.108.2.1 -r1.108.2.2
+--- a/src/menus.c 2002/06/16 19:16:09 1.108.2.1
++++ b/src/menus.c 2002/08/22 11:45:51 1.108.2.2
+@@ -219,7 +219,8 @@
+ { N_("NEW LEVEL"), editor_menu },
+ /* TRANS: Load an existing level for edition. */
+ { N_("LOAD LEVEL"), editor_selector },
+- { N_("GO BACK"), 0 }
++ { N_("GO BACK"), 0 },
++ { 0, 0 }
+ };
+
+ a_menu *editor_menu_data;
diff --git a/games-action/heroes/files/heroes-0.21-automake-1.12.patch b/games-action/heroes/files/heroes-0.21-automake-1.12.patch
new file mode 100644
index 000000000000..1a645df91acb
--- /dev/null
+++ b/games-action/heroes/files/heroes-0.21-automake-1.12.patch
@@ -0,0 +1,11 @@
+--- heroes-0.21/configure.ac
++++ heroes-0.21/configure.ac
+@@ -112,7 +112,7 @@
+ # Checks for typedefs, structures, and compiler characteristics.
+ # ==============================================================
+
+-AM_C_PROTOTYPES
++AC_C_PROTOTYPES
+ AC_C_CONST
+ AC_TYPE_UID_T dnl This checks for gid_t too.
+ AC_CHECK_TYPES([ssize_t])
diff --git a/games-action/heroes/files/heroes-0.21-gcc4.patch b/games-action/heroes/files/heroes-0.21-gcc4.patch
new file mode 100644
index 000000000000..2e39907347a9
--- /dev/null
+++ b/games-action/heroes/files/heroes-0.21-gcc4.patch
@@ -0,0 +1,184 @@
+--- a/src/hedlite.c 2006-01-28 14:05:05.000000000 -0700
++++ b/src/hedlite.c 2006-01-28 14:07:20.000000000 -0700
+@@ -45,7 +45,7 @@
+ #include "dirname.h"
+
+ static a_pcx_image heditrsc;
+-static a_pcx_image tile_set_img;
++static a_pcx_image tile_set_img_local;
+
+ unsigned short int xdalles = 0;
+ unsigned short int ydalles = 0;
+@@ -144,9 +144,9 @@
+ static void
+ copy_tile (int src_, a_pixel *dest)
+ {
+- int i = tile_set_img.width;
++ int i = tile_set_img_local.width;
+ int j;
+- a_pixel *src = tile_set_img.buffer + src_;
++ a_pixel *src = tile_set_img_local.buffer + src_;
+ for (j = 20; j > 0; j--) {
+ fastmem4 (src, dest, 24 >> 2);
+ src += i;
+@@ -157,9 +157,9 @@
+ static void
+ copy_tile_pcx (int src_, a_pixel *dest)
+ {
+- int i = tile_set_img.width;
++ int i = tile_set_img_local.width;
+ int j;
+- a_pixel *src = tile_set_img.buffer + src_;
++ a_pixel *src = tile_set_img_local.buffer + src_;
+ for (j = 20; j > 0; j--) {
+ fastmem4 (src, dest, 24 >> 2);
+ src += i;
+@@ -170,9 +170,9 @@
+ static void
+ copy_tile_transp (int src_, a_pixel *dest)
+ {
+- int i = tile_set_img.width;
++ int i = tile_set_img_local.width;
+ int j, k;
+- a_pixel *src = tile_set_img.buffer + src_;
++ a_pixel *src = tile_set_img_local.buffer + src_;
+ for (j = 20; j > 0; j--) {
+ for (k = 24; k > 0; k--) {
+ if (*src != 0)
+@@ -188,9 +188,9 @@
+ static void
+ copy_tile_transp_pcx (int src_, a_pixel *dest)
+ {
+- int i = tile_set_img.width;
++ int i = tile_set_img_local.width;
+ int j, k;
+- a_pixel *src = tile_set_img.buffer + src_;
++ a_pixel *src = tile_set_img_local.buffer + src_;
+ for (j = 20; j > 0; j--) {
+ for (k = 24; k > 0; k--) {
+ if (*src != 0)
+@@ -555,7 +555,7 @@
+ static void
+ update_middle_panel (void)
+ {
+- rectangle_copy (xdalles, 0, 144, 200, 145, 0, &tile_set_img);
++ rectangle_copy (xdalles, 0, 144, 200, 145, 0, &tile_set_img_local);
+ frame (145 + xdallesdec, ydalles, 23, 19, 15);
+ rectangle_copy (0, 64, 30, 6, 290, 64, &heditrsc);
+ sprintf (nombre, "%u", (xdalles + xdallesdec) / 24);
+@@ -670,7 +670,7 @@
+ curdalled (void)
+ {
+ int i =
+- (xdalles + xdallesdec) / 24 + (ydalles / 20) * (tile_set_img.width / 24);
++ (xdalles + xdallesdec) / 24 + (ydalles / 20) * (tile_set_img_local.width / 24);
+ return i;
+ }
+
+@@ -894,7 +894,7 @@
+ free (tempc);
+ putc (0xC, fpcx);
+ for (i1 = 0; i1 < 768; i1++)
+- putc (tile_set_img.palette.global[i1] << 2, fpcx);
++ putc (tile_set_img_local.palette.global[i1] << 2, fpcx);
+ fclose (fpcx);
+ }
+
+@@ -1225,7 +1225,7 @@
+ }
+ } else if (i == HK_End) {
+ if (mod & HK_MOD_Ctrl) {
+- xdalles = (tile_set_img.width / 24) * 24 - 144;
++ xdalles = (tile_set_img_local.width / 24) * 24 - 144;
+ update_middle_panel ();
+ }
+ } else if (i == HK_PageDown) {
+@@ -1250,7 +1250,7 @@
+ }
+ } else if (i == HK_Right) {
+ if (mod & HK_MOD_Ctrl) {
+- if (xdalles + 168U < tile_set_img.width) {
++ if (xdalles + 168U < tile_set_img_local.width) {
+ xdalles += 24;
+ update_middle_panel ();
+ } else if (xdallesdec < 120) {
+@@ -1337,7 +1337,7 @@
+ } else if (i == HK_Space) {
+ j = curdallep ();
+ level_map[j].number =
+- xdalles + xdallesdec + ydalles * (tile_set_img.width);
++ xdalles + xdallesdec + ydalles * (tile_set_img_local.width);
+ level_map[j].type = ddef[curdalled ()].type;
+ level_map[j].info = ddef[curdalled ()].info;
+ gestclav (HK_i, HK_MOD_None);
+@@ -1351,9 +1351,9 @@
+ level_map[j].collision[3] = 0;
+ }
+ for (j = hplaninfo.xt * hplaninfo.yt - 1; j >= 0; j--) {
+- k = (((level_map[j].number % tile_set_img.width) / 24) +
+- (level_map[j].number / (tile_set_img.width * 20)) *
+- (tile_set_img.width / 24));
++ k = (((level_map[j].number % tile_set_img_local.width) / 24) +
++ (level_map[j].number / (tile_set_img_local.width * 20)) *
++ (tile_set_img_local.width / 24));
+ level_map[j].type = ddef[k].type;
+ if (level_map[j].type != t_tunnel) {
+ if (level_map[j].type == t_anim || i == 0x1749)
+@@ -1404,7 +1404,7 @@
+ if (mod & HK_MOD_Ctrl) {
+ for (j = hplaninfo.xt * hplaninfo.yt - 1; j >= 0; j--) {
+ level_map[j].number = xdalles + xdallesdec +
+- ydalles * (tile_set_img.width);
++ ydalles * (tile_set_img_local.width);
+ level_map[j].type = ddef[curdalled ()].type;
+ level_map[j].info = ddef[curdalled ()].info;
+ }
+@@ -1414,7 +1414,7 @@
+
+ level_map[j].number =
+ (((j % hplaninfo.xt) + (j / hplaninfo.xt)) & 1) * 20 *
+- tile_set_img.width;
++ tile_set_img_local.width;
+ update_left_panel ();
+ }
+ } else if (i == HK_F3) {
+@@ -1427,7 +1427,7 @@
+ if (level_map[curdallep ()].sprite == 0)
+
+ level_map[curdallep ()].sprite =
+- (short int) (xdalles + xdallesdec + ydalles * (tile_set_img.width));
++ (short int) (xdalles + xdallesdec + ydalles * (tile_set_img_local.width));
+ else
+ level_map[curdallep ()].sprite = 0;
+ update_left_panel ();
+@@ -1707,17 +1707,17 @@
+ hplaninfo.tile_set_name), ".pie");
+
+ pcx_load_from_rsc ("editor-img", &heditrsc);
+- pcx_load (tile_set_name, &tile_set_img);
++ pcx_load (tile_set_name, &tile_set_img_local);
+
+ /* read the tileset definition */
+- XCALLOC_ARRAY (ddef, (tile_set_img.width / 24) * 10);
++ XCALLOC_ARRAY (ddef, (tile_set_img_local.width / 24) * 10);
+ if (!((ftmp = fopen (dallepie, "rb")) == NULL))
+- fread (ddef, sizeof (a_tile_info), (tile_set_img.width / 24) * 10, ftmp);
++ fread (ddef, sizeof (a_tile_info), (tile_set_img_local.width / 24) * 10, ftmp);
+ fclose (ftmp);
+
+ outwayinit ();
+ XCALLOC_ARRAY (hedit_buffer, xbuf * 200);
+- set_pal (tile_set_img.palette.global, 0, 256 * 3);
++ set_pal (tile_set_img_local.palette.global, 0, 256 * 3);
+ rectangle_copy (0, 0, 30, 200, 290, 0, &heditrsc);
+ strupr (levelnomshort);
+ draw_text (levelnomshort, 305, 29, 8, 1);
+@@ -1767,7 +1767,7 @@
+ free (ddef);
+ free (level_map);
+ img_free (&heditrsc);
+- img_free (&tile_set_img);
++ img_free (&tile_set_img_local);
+ }
+
+ free (dallepie);
diff --git a/games-action/heroes/files/heroes-0.21-underlink.patch b/games-action/heroes/files/heroes-0.21-underlink.patch
new file mode 100644
index 000000000000..18a0fca28f3c
--- /dev/null
+++ b/games-action/heroes/files/heroes-0.21-underlink.patch
@@ -0,0 +1,11 @@
+--- a/src/Makefile.am 2011-06-10 11:32:03.905618275 +0200
++++ b/src/Makefile.am 2011-06-10 11:32:15.539347083 +0200
+@@ -42,7 +42,7 @@
+ heroeslvl_SOURCES = heroeslvl.c
+
+ heroes_LDADD = lvl/libhlvl.a media/libhmcommon.a ../lib/libheroes.a \
+- $(INTLLIBS) $(LIBALT_LOCAL_XLDADD) $(LIBALT_XLDADD)
++ $(INTLLIBS) $(LIBALT_LOCAL_XLDADD) $(LIBALT_XLDADD) -lm
+ heroes_LDFLAGS = $(LIBALT_XLDFLAGS)
+
+ ## Depend upon Makefile because the value of LIBALT_LOCAL_LDADD might
diff --git a/games-action/heroes/heroes-0.21-r1.ebuild b/games-action/heroes/heroes-0.21-r1.ebuild
new file mode 100644
index 000000000000..e2b70ac4f3d9
--- /dev/null
+++ b/games-action/heroes/heroes-0.21-r1.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils autotools games
+
+data_ver=1.5
+snd_trk_ver=1.0
+snd_eff_ver=1.0
+
+DESCRIPTION="Heroes Enjoy Riding Over Empty Slabs: similar to Tron and Nibbles"
+HOMEPAGE="http://heroes.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2
+ mirror://sourceforge/${PN}/${PN}-data-${data_ver}.tar.bz2
+ mirror://sourceforge/${PN}/${PN}-sound-tracks-${snd_trk_ver}.tar.bz2
+ mirror://sourceforge/${PN}/${PN}-sound-effects-${snd_eff_ver}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="sdl nls ggi"
+RESTRICT="test"
+
+RDEPEND="nls? ( virtual/libintl )
+ sdl? ( media-libs/libsdl media-libs/sdl-mixer )
+ ggi? ( media-libs/libggi media-libs/libgii media-libs/libmikmod )
+ !sdl? ( !ggi? ( media-libs/libsdl media-libs/sdl-mixer ) )"
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )"
+
+src_prepare() {
+ #56118
+ epatch "${FILESDIR}"/${PV}-cvs-segfault-fix.patch \
+ "${FILESDIR}/${P}"-gcc4.patch \
+ "${FILESDIR}/${P}"-underlink.patch \
+ "${FILESDIR}"/${P}-automake-1.12.patch
+ sed -i 's:$(localedir):/usr/share/locale:' \
+ $(find . -name 'Makefile.in*') || die
+ eautoreconf
+}
+
+src_configure() {
+ local myconf
+
+ if use sdl || ! use ggi ; then
+ myconf="${myconf} --with-sdl --with-sdl-mixer"
+ else
+ myconf="${myconf} --with-ggi --with-mikmod"
+ fi
+
+ local pkg
+ for pkg in ${A//.tar.bz2} ; do
+ cd "${WORKDIR}"/${pkg}
+ egamesconf \
+ --disable-heroes-debug \
+ --disable-optimizations \
+ $(use_enable nls) \
+ ${myconf}
+ done
+}
+
+src_install() {
+ local pkg
+ for pkg in ${A//.tar.bz2} ; do
+ cd "${WORKDIR}"/${pkg}
+ emake DESTDIR="${D}" install
+ done
+ prepgamesdirs
+}
diff --git a/games-action/heroes/heroes-0.21-r2.ebuild b/games-action/heroes/heroes-0.21-r2.ebuild
new file mode 100644
index 000000000000..5ab9018ee3d1
--- /dev/null
+++ b/games-action/heroes/heroes-0.21-r2.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils autotools
+
+data_ver=1.5
+snd_trk_ver=1.0
+snd_eff_ver=1.0
+
+DESCRIPTION="Heroes Enjoy Riding Over Empty Slabs: similar to Tron and Nibbles"
+HOMEPAGE="http://heroes.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2
+ mirror://sourceforge/${PN}/${PN}-data-${data_ver}.tar.bz2
+ mirror://sourceforge/${PN}/${PN}-sound-tracks-${snd_trk_ver}.tar.bz2
+ mirror://sourceforge/${PN}/${PN}-sound-effects-${snd_eff_ver}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="ggi nls sdl"
+RESTRICT="test"
+
+RDEPEND="
+ ggi? ( media-libs/libggi media-libs/libgii media-libs/libmikmod )
+ nls? ( virtual/libintl )
+ sdl? ( media-libs/libsdl media-libs/sdl-mixer )
+ !sdl? ( !ggi? ( media-libs/libsdl media-libs/sdl-mixer ) )"
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )"
+
+ #56118
+PATCHES=(
+ "${FILESDIR}/${P}"-automake-1.12.patch
+ "${FILESDIR}/${P}"-gcc4.patch
+ "${FILESDIR}/${P}"-underlink.patch
+ "${FILESDIR}/${PV}"-cvs-segfault-fix.patch
+)
+
+src_prepare() {
+ default
+ sed -i 's:$(localedir):/usr/share/locale:' \
+ $(find . -name 'Makefile.in*') || die
+ eautoreconf
+}
+
+src_configure() {
+ local myconf
+
+ if use sdl || ! use ggi ; then
+ myconf="${myconf} --with-sdl --with-sdl-mixer"
+ else
+ myconf="${myconf} --with-ggi --with-mikmod"
+ fi
+
+ local pkg
+ for pkg in ${A//.tar.bz2} ; do
+ cd "${WORKDIR}"/${pkg}
+ econf \
+ --disable-heroes-debug \
+ --disable-optimizations \
+ $(use_enable nls) \
+ ${myconf}
+ done
+}
+
+src_install() {
+ local pkg
+ for pkg in ${A//.tar.bz2} ; do
+ cd "${WORKDIR}"/${pkg}
+ emake DESTDIR="${D}" install
+ done
+}
diff --git a/games-action/heroes/metadata.xml b/games-action/heroes/metadata.xml
new file mode 100644
index 000000000000..a811955bf505
--- /dev/null
+++ b/games-action/heroes/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">heroes</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-action/hotline-miami/Manifest b/games-action/hotline-miami/Manifest
new file mode 100644
index 000000000000..6cf30fa21a81
--- /dev/null
+++ b/games-action/hotline-miami/Manifest
@@ -0,0 +1,5 @@
+DIST HotlineMiami_linux_1392944501.tar.gz 207632875 SHA256 338268eecbd63ab5cf168d85ef6c7b36f2a6999adb359222b5372651b08ba805 SHA512 d1c1b7cbb910969ae120a12d982ed2ba7c935912bdc4e72e3a42b7aeb468b33c6536f4e43f97942155656be705e060d6fe9da37b04040c6aebf81ca80300d546 WHIRLPOOL 2bd29ad11c4cecab02e0936a7a531d4eb2a5f55cbec80cc0699a3ae493c934fb1a175e1474f46dc5b2cddcb5f824cefb661b9e09e94ac6cf61474f50191a6459
+EBUILD hotline-miami-1.0.9a_p20140221-r1.ebuild 2162 SHA256 7fdd5922250377e73b746044b8a4dedafbf740f89e0a6eeffeb7e127d3f15bb4 SHA512 e0f3c0b7f2f6b659a10b0ad8f0bab13cf874efd3f22d61d7d6044feb18b9f9379367bceb2eae30ea1ede4d1bd942cb1707ed0bde42f3c88dc66628b3be59df1c WHIRLPOOL 763e2ac6fafa1569c12188c6a79b54cb79e66a4f13a3d5dbc4ed490ac9224b10be4263e3dd44492769f93b7b9d616ea7ce588d2c25551768bcc1ff32e73bfeca
+MISC ChangeLog 3145 SHA256 8c0da3a0d256332a17b88085c3e77237cbbd8f133a5b92b30570df073110c610 SHA512 28ca8e76bec9bb5887ed434fa588435bd94f183506f84339504ae34a5f9542b2f6d57ccdbf647dba1ba72b28e22263a9c40e75b78a09b8f5bcba61ec727835fb WHIRLPOOL d71dd9e858a82dff735709b6aee6bce95e8237d7d3b0d6b8ca68d5e0b37f41e319eecaba512554b6bd62b1a3c1a2aeccb1aba08505c106b8f5e77cf67e71e834
+MISC ChangeLog-2015 1451 SHA256 573ccbf739a48794f8bfd061e66da1d0242aaf5773411e19269ec0d6a067a43c SHA512 afcdc865c1b39b812072e368dc99dc2b002c61c369987742e9c9b98ffb8316552ffba448a3460e6df9a2c374e1560124ce134b6ba19366917c18c41b55e46e19 WHIRLPOOL a2e9856596f0ba8af33ecf0bcc41dd14d53beb4d829b55abd5d4630573722b4bd54111e0c403cf1cc6c65922945d5af588ad1dde40e9424b081bc5f951f2126f
+MISC metadata.xml 377 SHA256 0e3f4469b2488a0c8716852b70f84bea377925bccd825929e66bbd3d97121ad6 SHA512 ace6630c78a59dc9ee29d233621cd980f88d1140bccf565f19b6c41b206427fc6f7ce65ffcf44587873f497994b8436e7691eac44e0afd6ff81d057e5a257c5e WHIRLPOOL d9178e9dcfc387fc5c2388adcc08fa20f380c796a9e8548ea9ace4ea6bff83eb839e6f8ff07cc5e603dc58396bdb31571727d76e702bb2c3c80da8332cee028f
diff --git a/games-action/hotline-miami/hotline-miami-1.0.9a_p20140221-r1.ebuild b/games-action/hotline-miami/hotline-miami-1.0.9a_p20140221-r1.ebuild
new file mode 100644
index 000000000000..d0b9108e6ac2
--- /dev/null
+++ b/games-action/hotline-miami/hotline-miami-1.0.9a_p20140221-r1.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# TODO: unbundle Qt5
+# remove emul-linux-x86* deps (bug 484060)
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="High-octane action game overflowing with raw brutality"
+HOMEPAGE="http://www.devolverdigital.com/games/view/hotline-miami"
+SRC_URI="HotlineMiami_linux_1392944501.tar.gz"
+
+LICENSE="all-rights-reserved"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="bundled-libs +launcher"
+RESTRICT="bindist fetch splitdebug"
+
+MYGAMEDIR=${GAMES_PREFIX_OPT}/${PN}
+QA_PREBUILT="${MYGAMEDIR#/}/lib/*
+ ${MYGAMEDIR#/}/Hotline
+ ${MYGAMEDIR#/}/hotline_launcher"
+
+RDEPEND="
+ amd64? (
+ >=x11-libs/libX11-1.6.2[abi_x86_32(-)]
+ !bundled-libs? (
+ >=media-gfx/nvidia-cg-toolkit-3.1.0013-r3[abi_x86_32(-)]
+ >=media-libs/libogg-1.3.0[abi_x86_32(-)]
+ >=media-libs/libvorbis-1.3.3-r1[abi_x86_32(-)]
+ >=media-libs/openal-1.15.1[abi_x86_32(-)]
+ )
+ launcher? (
+ >=media-libs/freetype-2.5.0.1[abi_x86_32(-)]
+ >=x11-libs/libXext-1.3.2[abi_x86_32(-)]
+ >=x11-libs/libXrandr-1.4.2[abi_x86_32(-)]
+ >=x11-libs/libXrender-0.9.8[abi_x86_32(-)]
+ >=x11-libs/libxcb-1.9.1[abi_x86_32(-)]
+ )
+ )
+ x86? (
+ x11-libs/libX11
+ !bundled-libs? (
+ media-gfx/nvidia-cg-toolkit
+ media-libs/libogg
+ media-libs/libvorbis
+ media-libs/openal
+ )
+ launcher? (
+ media-libs/freetype
+ x11-libs/libXext
+ x11-libs/libXrandr
+ x11-libs/libXrender
+ x11-libs/libxcb
+ )
+ )"
+
+S=${WORKDIR}
+
+pkg_nofetch() {
+ einfo "Please buy & download ${SRC_URI} from:"
+ einfo " https://www.humblebundle.com/store"
+ einfo "and move it to ${DISTDIR}"
+}
+
+src_install() {
+ insinto "${MYGAMEDIR}"
+ doins HotlineMiami_GL.wad *.ogg
+
+ exeinto "${MYGAMEDIR}"
+ doexe Hotline
+ use launcher && doexe hotline_launcher
+
+ exeinto "${MYGAMEDIR}/lib"
+ use launcher && doexe lib/libQt5*
+ use bundled-libs && doexe libCg* libopenal*
+
+ games_make_wrapper ${PN} "./Hotline" "${MYGAMEDIR}" "${MYGAMEDIR}/lib"
+ make_desktop_entry ${PN}
+ if use launcher ; then
+ games_make_wrapper ${PN}-launcher "./hotline_launcher" "${MYGAMEDIR}" "${MYGAMEDIR}/lib"
+ make_desktop_entry ${PN}-launcher "${PN} (launcher)"
+ fi
+
+ prepgamesdirs
+}
diff --git a/games-action/hotline-miami/metadata.xml b/games-action/hotline-miami/metadata.xml
new file mode 100644
index 000000000000..bd944bb6e375
--- /dev/null
+++ b/games-action/hotline-miami/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <use>
+ <flag name="bundled-libs">Use bundled libraries.</flag>
+ <flag name="launcher">Install qt launcher</flag>
+ </use>
+</pkgmetadata>
diff --git a/games-action/intrusion2/Manifest b/games-action/intrusion2/Manifest
new file mode 100644
index 000000000000..e0fff65c0c5a
--- /dev/null
+++ b/games-action/intrusion2/Manifest
@@ -0,0 +1,5 @@
+DIST intrusion2-1370288626-bin 88713512 SHA256 03fd442816119c5c9e10112b5ac13ae43af3853f0a879dc8ec6f693541ad4841 SHA512 ce3fc5c9dc388cd777e978c54b6696d102870f8111122e646637e12cb336767c60ffa8864ffa634012868f2b9ca231598e89438f226ca4465d8c4e936d492b06 WHIRLPOOL bb75c60b07eb91bf8c0f3f47fb2d91403ea8b8376ed88c53e9cf57ca8c829f55a574e7355572cd4ace6ddcf3f0aae10a73f2d5f021c94893bde5b4fcc9c4243e
+EBUILD intrusion2-1.024.ebuild 1764 SHA256 df040516fc0b862edebb0e3ff8d3477d7c0e907fb8b75e51de03312bccf60383 SHA512 3d11e6286cc87f3ed95df6743ed63cebf23d322c5d2ae24329d097b6b1a26745d96f82d1eaf3ab5c9129f58cee7af5264ac1f4b955bb95415a8ca8028ddffb45 WHIRLPOOL b48f7fa30bed2f686bd1d7cdc4be2a732d4af80cfa15ea56b57f8e7378295e93a0c9452c00f0781298febfe0909e3a9eba771f733d67fb2701c97cfe0b7da7a2
+MISC ChangeLog 2440 SHA256 559a11b9ea1c28d665936afebe5644b7900027f0d93882de75db515ecfe4f19b SHA512 dc07e70cc0401dbc17eb1f046781c4742edce3d78db92a1d9ae683a9684eb5cef6e87b82231ba344eedf570ae60cda3c7f9a1e1a41ce40a3f214343ca659b883 WHIRLPOOL 6dfd5fb918def1118a29ad9746cbaf0ea068b125a13a4aaae3c439bb82c69bd39b40a9ea603d7dcdb40c922aa74391b27489f8a08ad6014c776fe02724fd1f92
+MISC ChangeLog-2015 1109 SHA256 7df0a251c1cfd3a0782eab4228acd86c1d69756d103cc310c9f523da80c59827 SHA512 d8fdca54478bc88a80dd68ca932339b146053c0f59a2be97883127e64ce69bcba6c8d46e859ca05aae3d956beefd9cad5aaed5c231be8c815dfa4da2099fe331 WHIRLPOOL a32552dbd73ef8377b6f9dba8696a7b369c53017017badf338863f1838f609ba47e2750e58bff796a9dfe3a3818d9c81cd0c867f791e6084cb8df69cd43e6b85
+MISC metadata.xml 253 SHA256 2c95b2eb99144a3b66de17be35eebcf65e5a152a2ec2f176165bb9cd78e5394e SHA512 61c4689cbc649d84a00be211b7b5b98dd03e1d3f813eff370df549f2998cd4343f391c18b57cf20e4a8f4dd2311e3bfa04eb60f356f2bbac78f0b68f5091f254 WHIRLPOOL fd044f0a960e57257f4a15ab16f066bbfe9983e60cd5fc072e631efc7027306c612a01d7fbbf57eb08d957487a7ce1961250194653d6ed87ee23f20d631ef854
diff --git a/games-action/intrusion2/intrusion2-1.024.ebuild b/games-action/intrusion2/intrusion2-1.024.ebuild
new file mode 100644
index 000000000000..3ebfb0a6acb1
--- /dev/null
+++ b/games-action/intrusion2/intrusion2-1.024.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils games
+
+USELESS_ID="1370288626"
+DESCRIPTION="Fast paced action sidescroller set in a sci-fi environment"
+HOMEPAGE="http://intrusion2.com"
+SRC_URI="intrusion2-${USELESS_ID}-bin"
+
+LICENSE="all-rights-reserved"
+SLOT="0"
+KEYWORDS="-* amd64 x86"
+IUSE=""
+RESTRICT="bindist fetch"
+
+MYGAMEDIR=${GAMES_PREFIX_OPT}/${PN}
+QA_PREBUILT="${MYGAMEDIR#/}/${PN}"
+
+RDEPEND="
+ amd64? (
+ >=dev-libs/glib-2.34.3:2[abi_x86_32(-)]
+ >=dev-libs/atk-2.10.0[abi_x86_32(-)]
+ >=x11-libs/gdk-pixbuf-2.30.7[abi_x86_32(-)]
+ >=x11-libs/gtk+-2.24.23:2[abi_x86_32(-)]
+ >=x11-libs/pango-1.36.3[abi_x86_32(-)]
+ >=media-libs/gst-plugins-base-0.10.36[abi_x86_32(-)]
+ >=media-libs/gstreamer-0.10.36-r2[abi_x86_32(-)]
+ >=media-libs/fontconfig-2.10.92[abi_x86_32(-)]
+ >=media-libs/freetype-2.5.0.1[abi_x86_32(-)]
+ >=x11-libs/libSM-1.2.1-r1[abi_x86_32(-)]
+ >=x11-libs/libX11-1.6.2[abi_x86_32(-)]
+ >=x11-libs/libXext-1.3.2[abi_x86_32(-)]
+ >=x11-libs/libXinerama-1.1.3[abi_x86_32(-)]
+ >=x11-libs/libXtst-1.2.1-r1[abi_x86_32(-)]
+ )
+ x86? (
+ dev-libs/glib:2
+ dev-libs/atk
+ x11-libs/gdk-pixbuf
+ x11-libs/gtk+:2
+ x11-libs/pango
+ media-libs/gst-plugins-base
+ media-libs/gstreamer
+ media-libs/fontconfig
+ media-libs/freetype
+ x11-libs/libSM
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXinerama
+ x11-libs/libXtst
+ )"
+
+S=${WORKDIR}
+
+pkg_nofetch() {
+ einfo "Please buy & download ${SRC_URI} from:"
+ einfo " ${HOMEPAGE}"
+ einfo "and move it to ${DISTDIR}"
+ einfo
+}
+
+src_unpack() { :; }
+
+src_install() {
+ exeinto "${MYGAMEDIR}"
+ newexe "${DISTDIR}"/${SRC_URI} ${PN}
+
+ games_make_wrapper ${PN} "${MYGAMEDIR}/${PN}"
+ make_desktop_entry ${PN}
+
+ prepgamesdirs
+}
diff --git a/games-action/intrusion2/metadata.xml b/games-action/intrusion2/metadata.xml
new file mode 100644
index 000000000000..26079e608bed
--- /dev/null
+++ b/games-action/intrusion2/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 type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/games-action/koth/Manifest b/games-action/koth/Manifest
new file mode 100644
index 000000000000..49043bf73bc2
--- /dev/null
+++ b/games-action/koth/Manifest
@@ -0,0 +1,8 @@
+AUX koth-0.8.0-gcc-3.4.patch 612 SHA256 edc4f8f53e5a6830251e42d0efdd416ab761fd3cb1a4551a78626be712dc7dcc SHA512 6306dfe2ab7fe4bdca6a1adae94aacd1736feed2349df3d3d75bf33a8133a5e33b5f79e2a4ed57170d28f9d1ac263d43ee5a269a6f28f216cabda128b6bcaf14 WHIRLPOOL 9e85bf8f1494b8d7dbed25e7a7f48283917d707c42e6b110dd0fc84fb91e284bf88d41adb9045c036e2c7999ae50b51263fed246bacef799c725cb8268638abb
+AUX koth-0.8.0-r1-gcc-3.4.patch 628 SHA256 fb2a04ae3632b83a44817d76ea5e73b2589ad2cfcdb6f88d6b0af32e7763809d SHA512 ca6bfe40d9ab0a08bae833684628422d2b69047ec4aa80df43e0c093184680f8d202180f0ae3d89099b4c45aa481ac28055a1a5deb5afb69e8c397508e46e08e WHIRLPOOL c8ffb27a985bdddbc6a76d7399b979b20e9f0e6930cf3ce0ae798f496681f750e4d6d53a216d4a6357f7783aa7422dd788b2c3dd5230b4b4d0030f825305a640
+DIST koth-0.8.0.tar.bz2 140569 SHA256 1f61e1c354ab2b425b33b1504fb181d8bf9e0b6e154c6d3a516b2f98f7c805d8 SHA512 edda377be9074298c63e85cad5f37f55dc67f0e9a7d075a94207559265ffbf8a5eadbd2dc0e4a06e535e6da9fcfd309d01141ba8be04cf8960b0229e0ce4ab9f WHIRLPOOL 0416e96f6e11fca4d567246184ab851dd4b225214c2982de4e966fb5d1274338956915571e2b53af1f1c0cd37b9a611fe468079550631f80f3b28de8f8c26870
+EBUILD koth-0.8.0-r1.ebuild 838 SHA256 74f5e642a017a701cb0d76de3ac281b9ecd87939c8df24659d2ad6f1240c9962 SHA512 bb5092995841a66257753e845bf53dd3fff8b7de23f809bacdab94189d9ec753be52763c5f235661e15b3a460d435d64ae59e2bb7b6fcda2413de1e2ca0f64a2 WHIRLPOOL b6f800ceedc52469ad52bce3eab7ed8f784bfaa0b551fda5e0ebeea612da34be654155e9ad4b6ba9545ea0438336480160270ea0ced5bbb8ce8c61ea9ae580f5
+EBUILD koth-0.8.0.ebuild 895 SHA256 75f8e9af09be4d6a1e0a97fe65c01b8e20996796c934aacabff0b1a2434a6afd SHA512 f5358d5f5544091435103264ad364a62b34fee6f86fbcd2e09da0e78fb9d3d9e82810beaeca142ce42271aa04032a530ab61f1b408aace3465afafc455891094 WHIRLPOOL 7e2496c1fb1757c98a3442c548baac6e7a0cc550ac5be6f9684b2a3441db3ecd7780831002401ef4b2f9646b05c1a1d92590b54f9a09d052a5c0d8deb6144a6c
+MISC ChangeLog 2834 SHA256 4c2782d46e37f27c2d4971581982691fade115bb494d04cdb582b7a131141c01 SHA512 62794f8a7108fea918a6fc01f2db160a91336ec46ff0bda123b6d9676ebc63b09cc42ad3786a450b260266e7edd8467785e114a04e9df14df40986164038740b WHIRLPOOL eef3494694bd61c9169875e98aae4c419b8cf7fca8ee343c7b2ba68ce790bf1c5d2c0a2e20c0919ec64c19e58a095709eb8e52dc8790bb36c8a7402b1e4869ec
+MISC ChangeLog-2015 2503 SHA256 f1929d69b98adc232965b1582db72ad48d20c6d10e7086c56e061c9ee433aa1e SHA512 0e2fe814bda50d6afac17ce8a6e7f1ac67aa54036d73491f6f4c400f9266f4eeac897560c750a22a5c3e339bb0b0e9e9806e16c7d607dbb3f8b7c1d1190617e2 WHIRLPOOL 8a2ba2b6a2ba1a1ec4f229eb6c2731ad23a5c75967f7e314ee889d94f3cfc2baf7700af50502f6a8e494f1fe0d9cc0db7a7b413e7419b32b4b442d6857587e27
+MISC metadata.xml 562 SHA256 82468981eebb2029f77b0cfda514fa592c3ef2c22b5e189502e248aa88b6d11f SHA512 c9bf2b0f6d97e56b9b8d3667fecd9a18bc971f2a396c7bb9a2904ea3e86eec4b625ff73630b4c6a45eea30418e8cfd8b3774a699e45b98b4e44bbb205365d333 WHIRLPOOL 7229e935a8b3a77b122527471bfe654f074cdcb92bbf38f734326bc84159d9a682ebe0582a3ef4c1822b2af52eb79157c2e1ac0448752645453b228e05a813dc
diff --git a/games-action/koth/files/koth-0.8.0-gcc-3.4.patch b/games-action/koth/files/koth-0.8.0-gcc-3.4.patch
new file mode 100644
index 000000000000..4a858cbe03a9
--- /dev/null
+++ b/games-action/koth/files/koth-0.8.0-gcc-3.4.patch
@@ -0,0 +1,29 @@
+--- relay.c.old 2004-11-01 09:19:04.835537536 +0000
++++ relay.c 2004-11-01 09:19:59.453234384 +0000
+@@ -260,6 +260,7 @@
+ else goto bail;
+ goto nextpkt;
+ bail:
++ ;
+ }
+ }
+ }
+--- ballistics.c.old 2004-11-01 09:19:33.132235784 +0000
++++ ballistics.c 2004-11-01 09:20:16.849589736 +0000
+@@ -92,6 +92,7 @@
+ break;
+ case WALL_LAST:
+ /* just to satisfy gcc -Wall */
++ ;
+ }
+ }
+
+@@ -210,7 +211,7 @@
+ break;
+ case WALL_RANDOM: /* both of this can't happen, */
+ case WALL_LAST: /* so they are here to satisfy gcc -Wall */
+-
++ ;
+ }
+ }
+ return FLYING;
diff --git a/games-action/koth/files/koth-0.8.0-r1-gcc-3.4.patch b/games-action/koth/files/koth-0.8.0-r1-gcc-3.4.patch
new file mode 100644
index 000000000000..145f17dbccdd
--- /dev/null
+++ b/games-action/koth/files/koth-0.8.0-r1-gcc-3.4.patch
@@ -0,0 +1,29 @@
+--- a/src/relay.c 2004-11-01 09:19:04.835537536 +0000
++++ b/src/relay.c 2004-11-01 09:19:59.453234384 +0000
+@@ -260,6 +260,7 @@
+ else goto bail;
+ goto nextpkt;
+ bail:
++ ;
+ }
+ }
+ }
+--- a/src/ballistics.c 2004-11-01 09:19:33.132235784 +0000
++++ b/src/ballistics.c 2004-11-01 09:20:16.849589736 +0000
+@@ -92,6 +92,7 @@
+ break;
+ case WALL_LAST:
+ /* just to satisfy gcc -Wall */
++ ;
+ }
+ }
+
+@@ -210,7 +211,7 @@
+ break;
+ case WALL_RANDOM: /* both of this can't happen, */
+ case WALL_LAST: /* so they are here to satisfy gcc -Wall */
+-
++ ;
+ }
+ }
+ return FLYING;
diff --git a/games-action/koth/koth-0.8.0-r1.ebuild b/games-action/koth/koth-0.8.0-r1.ebuild
new file mode 100644
index 000000000000..bc77fea14053
--- /dev/null
+++ b/games-action/koth/koth-0.8.0-r1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils flag-o-matic
+
+DESCRIPTION="Multiplayer, networked game of little tanks with really big weapons"
+HOMEPAGE="http://www.nongnu.org/koth/"
+SRC_URI="https://savannah.nongnu.org/download/${PN}/default.pkg/${PV}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~x86 ~x86-fbsd"
+IUSE=""
+
+DEPEND="media-libs/libggi"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${PF}-gcc-3.4.patch
+)
+
+src_prepare() {
+ default
+ sed -i 's:-g -O2::' configure || die
+ sed -i 's:(uint16):(uint16_t):' src/gfx.c src/gfx.h || die
+ append-cflags -std=gnu89 # build with gcc5 (bug #570730)
+}
+
+src_install() {
+ DOCS="AUTHORS ChangeLog NEWS README doc/*.txt" \
+ default
+ dodir /etc/koth
+ insinto /etc/koth
+ doins src/koth.cfg
+}
diff --git a/games-action/koth/koth-0.8.0.ebuild b/games-action/koth/koth-0.8.0.ebuild
new file mode 100644
index 000000000000..18d36d07d44e
--- /dev/null
+++ b/games-action/koth/koth-0.8.0.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils flag-o-matic games
+
+DESCRIPTION="Multiplayer, networked game of little tanks with really big weapons"
+HOMEPAGE="http://www.nongnu.org/koth/"
+SRC_URI="https://savannah.nongnu.org/download/${PN}/default.pkg/${PV}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 x86 ~x86-fbsd"
+IUSE=""
+
+DEPEND="media-libs/libggi"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ sed -i 's:-g -O2::' configure || die
+ cd src
+ epatch "${FILESDIR}"/${P}-gcc-3.4.patch
+ sed -i "s:/etc/koth:${GAMES_SYSCONFDIR}:" cfgfile.h || die
+ sed -i 's:(uint16):(uint16_t):' gfx.c gfx.h || die
+ append-cflags -std=gnu89 # build with gcc5 (bug #570730)
+}
+
+src_install() {
+ DOCS="AUTHORS ChangeLog NEWS README doc/*.txt" \
+ default
+ insinto "${GAMES_SYSCONFDIR}"
+ doins src/koth.cfg
+ prepgamesdirs
+}
diff --git a/games-action/koth/metadata.xml b/games-action/koth/metadata.xml
new file mode 100644
index 000000000000..af8d2cdcfd9e
--- /dev/null
+++ b/games-action/koth/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+</maintainer>
+<longdescription>
+King of the Hill (KOTH) is a multiplayer, networked artillery game of little tanks with really big weapons set out to destroy one another. Best-known games of this type include the classic DOS game "Scorched Earth: The Mother of All Games" and "Scorched Tanks" for the Amiga.
+</longdescription>
+</pkgmetadata>
diff --git a/games-action/lugaru/Manifest b/games-action/lugaru/Manifest
new file mode 100644
index 000000000000..c2eeecdf9d1e
--- /dev/null
+++ b/games-action/lugaru/Manifest
@@ -0,0 +1,9 @@
+AUX lugaru-20151204-dir.patch 317 SHA256 2bcfbf4d5de56f7d22d0c2b11e01770b38eed07ab6781b829590a7ddedfaa0be SHA512 c0830385ca57dfda082596f65e7166ba71148fcb2b99e416a4a6ef8882c280a823e6308fce9fcfab62127667a10f0ed0ef49df60f1f39627615ff21c9ffd62e2 WHIRLPOOL 4e641870b78a7d239402792348a6512ae2b0fda517d37dbdb01ebeb8fac3604e8136c058d707d3e1d0f56bb8a0f50194edf6366a34f7c2007f860be565b4fcbd
+AUX lugaru-9999-dir.patch 317 SHA256 2bcfbf4d5de56f7d22d0c2b11e01770b38eed07ab6781b829590a7ddedfaa0be SHA512 c0830385ca57dfda082596f65e7166ba71148fcb2b99e416a4a6ef8882c280a823e6308fce9fcfab62127667a10f0ed0ef49df60f1f39627615ff21c9ffd62e2 WHIRLPOOL 4e641870b78a7d239402792348a6512ae2b0fda517d37dbdb01ebeb8fac3604e8136c058d707d3e1d0f56bb8a0f50194edf6366a34f7c2007f860be565b4fcbd
+DIST lugaru-20151204.tar.bz2 88950866 SHA256 dae6a9e8ee70cc965a4299d2062725ce19dc9e4f1ba2a46c9205cb4e138be6b8 SHA512 8e448b782847376ac10585996a91a571fd005ac51e0e510765a35bf44bfcbb09e566d9a9c3d87277e69511b0f8d74c04edcc4b59f467bed640d8ba7c74045e30 WHIRLPOOL b2bcae57d8bfd13361c42c6d56fa285bc58fcd4bd6fb119931501db66005e5ece98487e413e41d1419c8f0408dc7507efa7f721db7df2b8d8a1572a65c28eb0e
+EBUILD lugaru-20151204-r1.ebuild 1141 SHA256 b026ae962e24bca330e296fcfaf65f30ccbcd64251829e0fec410fb4bb0da4f5 SHA512 e10be76f0a4d285de07678121ae7e60b9bd2ce3e7b582c6e5bf593c5cdfe3b10db48ef89ff1627b06954c794f65edf7c20c425ead9ac75e3327aa0ddc344d5aa WHIRLPOOL 916bfe1eafe5db34396dec820b24a3d75ca62cf3ecea2523bb02b01f5df8f09a6d420e62ed12d98e451ab6a7d7e90690dd9c336cbb92843c3612501d0c73f134
+EBUILD lugaru-20151204.ebuild 1164 SHA256 c68fa615f5dda8c924f20c12c4c7118097ba032d9d4529dfa6d3cb34adae509d SHA512 813e9d46864428ff58b733a1b03ff85a4c8904469678ad74a13f0384abba7663457d57e7a534f684efe915090fc2e17d170f951b27558bf8a22fbccee8082733 WHIRLPOOL 9a84231832d7eadeddca4950253743cd8e30b2b140ef5438ec1aee84ce2b015dde8be5190d9b99158be47976eca502657dd1cef08c273993b315c5f8542e5164
+EBUILD lugaru-9999.ebuild 1219 SHA256 7ee5ba91f3b8bb81f5a41670bd8cc32e7092ed6c34c3833c1a32d2edaf9d1042 SHA512 808e2b417c127100fa34d64aeff09e7ede3494feb3daddd3225d4b5f5cba724ebb4e6f0ba3740cc30f9aa5c6410616be74376564faba648dfefd80fd6e495eb0 WHIRLPOOL 78b80fcb4eb6f42cc00c36b38884cdea11f728aaf526e9e1c10e9a262f79b516486901c4d29fd6cbd7f73b6132e2ab21bfd91aa65ada81ec6c71b2c1b5b8a82c
+MISC ChangeLog 4017 SHA256 59051ce8100fdb7cc95cd0b7302370e16402c87d82430aedb34185e21d7e4c64 SHA512 aa5d5c81396a0eb3264f434f862a428aee02cbc3bc77a283eb6b0aec062f4dfb8ae141735b6a06e98e23257bc366cb92c26b12f0c14a320584bd6d8cd7615efb WHIRLPOOL 86209db12a8bc6426656fd04dc5510ed778d75637853e16a6c934a99dd5055a0fea146426e217dd8912fd66f1bb8df2885827d8d0c53b651196d0a4dedd3cad9
+MISC ChangeLog-2015 1267 SHA256 1863be6ef621ee3a0f00f53fe1045e22d92ce5a602db2619743d70a19f68fd65 SHA512 bc5daae3d1fb55ce65a7b66623293fe9847c0c734a1c9dc860fb8d9089b9bb6a46849da7b256a791e6ebeeace723594ce43131ccac7ff2f324cb8c368943875e WHIRLPOOL 708d7e91a198c292bf99d5d6d26051d9edd8186d431558d85c97e6d76ef3158a3f6c64e01c9e0c340b62fe9e96d68175f12e509cc0d18a5f8279183a8696a70d
+MISC metadata.xml 337 SHA256 7c49c04cc43dc6cc69def4aa02a80f5ae937d4f09e5855e0e279cd5e517041ec SHA512 10af1cda47d8d683fc8245f23c05243fb5809636399d75779081a3da09209829da31a8d5fa070687656e9c235e78c75f1571b5b4f1a686359a11d1232a543b5e WHIRLPOOL 3c31d0a2ca33035c73c723d2df972795c7cdaa7f47cadb8ca9e06d583c8a541751b805970f11e6b47329ffa79c10ae28a875d5d6c9633230065a80c5be8b4a94
diff --git a/games-action/lugaru/files/lugaru-20151204-dir.patch b/games-action/lugaru/files/lugaru-20151204-dir.patch
new file mode 100644
index 000000000000..da9310dde58e
--- /dev/null
+++ b/games-action/lugaru/files/lugaru-20151204-dir.patch
@@ -0,0 +1,11 @@
+--- a/Source/OpenGL_Windows.cpp 2015-01-14 23:57:19.799186785 -0500
++++ b/Source/OpenGL_Windows.cpp 2015-01-14 23:57:36.022643953 -0500
+@@ -1330,7 +1330,7 @@
+
+ // !!! FIXME: we could use a Win32 API for this. --ryan.
+ #ifndef WIN32
+- chdirToAppPath(argv[0]);
++ chdir("@GENTOO_DIR@");
+ #endif
+
+ LOGFUNC;
diff --git a/games-action/lugaru/files/lugaru-9999-dir.patch b/games-action/lugaru/files/lugaru-9999-dir.patch
new file mode 100644
index 000000000000..da9310dde58e
--- /dev/null
+++ b/games-action/lugaru/files/lugaru-9999-dir.patch
@@ -0,0 +1,11 @@
+--- a/Source/OpenGL_Windows.cpp 2015-01-14 23:57:19.799186785 -0500
++++ b/Source/OpenGL_Windows.cpp 2015-01-14 23:57:36.022643953 -0500
+@@ -1330,7 +1330,7 @@
+
+ // !!! FIXME: we could use a Win32 API for this. --ryan.
+ #ifndef WIN32
+- chdirToAppPath(argv[0]);
++ chdir("@GENTOO_DIR@");
+ #endif
+
+ LOGFUNC;
diff --git a/games-action/lugaru/lugaru-20151204-r1.ebuild b/games-action/lugaru/lugaru-20151204-r1.ebuild
new file mode 100644
index 000000000000..ac9ad89e8c7f
--- /dev/null
+++ b/games-action/lugaru/lugaru-20151204-r1.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils cmake-utils
+
+DESCRIPTION="3D arcade with unique fighting system and anthropomorphic characters"
+HOMEPAGE="https://bitbucket.org/osslugaru/lugaru/wiki/Home"
+SRC_URI="mirror://gentoo/${P}.tar.bz2"
+
+LICENSE="GPL-2+ free-noncomm CC-BY-SA-3.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+ media-libs/libpng:0
+ media-libs/libsdl[opengl,video]
+ media-libs/libvorbis
+ media-libs/openal
+ sys-libs/zlib
+ virtual/glu
+ virtual/jpeg:0
+ virtual/opengl"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}/${P}-dir.patch"
+)
+
+src_prepare() {
+ default
+ sed -i \
+ -e "s:@GENTOO_DIR@:/usr/share/${PN}:" \
+ Source/OpenGL_Windows.cpp || die
+}
+
+src_configure() {
+ mycmakeargs=(
+ "-DCMAKE_VERBOSE_MAKEFILE=TRUE"
+ "-DLUGARU_FORCE_INTERNAL_OPENGL=False"
+ )
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+}
+
+src_install() {
+ dobin "${WORKDIR}/${P}_build/lugaru"
+ insinto /usr/share/${PN}
+ doins -r Data/
+ newicon Source/win-res/Lugaru.png ${PN}.png
+ make_desktop_entry ${PN} Lugaru ${PN}
+}
diff --git a/games-action/lugaru/lugaru-20151204.ebuild b/games-action/lugaru/lugaru-20151204.ebuild
new file mode 100644
index 000000000000..0a4ed3e8879a
--- /dev/null
+++ b/games-action/lugaru/lugaru-20151204.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils cmake-utils games
+
+DESCRIPTION="3D arcade with unique fighting system and anthropomorphic characters"
+HOMEPAGE="https://bitbucket.org/osslugaru/lugaru/wiki/Home"
+SRC_URI="mirror://gentoo/${P}.tar.bz2"
+
+LICENSE="GPL-2+ free-noncomm CC-BY-SA-3.0"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND="
+ virtual/glu
+ virtual/opengl
+ media-libs/libsdl[opengl,video]
+ media-libs/openal
+ media-libs/libvorbis
+ virtual/jpeg:0
+ media-libs/libpng:0
+ sys-libs/zlib"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-dir.patch"
+ sed -i \
+ -e "s:@GENTOO_DIR@:${GAMES_DATADIR}/${PN}:" \
+ Source/OpenGL_Windows.cpp || die
+}
+
+src_configure() {
+ mycmakeargs=(
+ "-DCMAKE_VERBOSE_MAKEFILE=TRUE"
+ "-DLUGARU_FORCE_INTERNAL_OPENGL=False"
+ )
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+}
+
+src_install() {
+ dogamesbin "${WORKDIR}/${P}_build/lugaru"
+ insinto "${GAMES_DATADIR}/${PN}"
+ doins -r Data/
+ newicon Source/win-res/Lugaru.png ${PN}.png
+ make_desktop_entry ${PN} Lugaru ${PN}
+ prepgamesdirs
+}
diff --git a/games-action/lugaru/lugaru-9999.ebuild b/games-action/lugaru/lugaru-9999.ebuild
new file mode 100644
index 000000000000..c447775fa520
--- /dev/null
+++ b/games-action/lugaru/lugaru-9999.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils cmake-utils mercurial
+
+EHG_REPO_URI="https://bitbucket.org/osslugaru/lugaru/"
+DESCRIPTION="3D arcade with unique fighting system and anthropomorphic characters"
+HOMEPAGE="https://bitbucket.org/osslugaru/lugaru/wiki/Home"
+SRC_URI=""
+
+LICENSE="GPL-2+ free-noncomm CC-BY-SA-3.0"
+SLOT="0"
+KEYWORDS=""
+IUSE=""
+
+RDEPEND="
+ media-libs/libsdl[opengl,video]
+ media-libs/libpng:0
+ media-libs/libvorbis
+ media-libs/openal
+ sys-libs/zlib
+ virtual/glu
+ virtual/jpeg:0
+ virtual/opengl"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_unpack() {
+ mercurial_src_unpack
+}
+
+PATCHES=(
+ "${FILESDIR}/${P}-dir.patch"
+)
+
+src_prepare() {
+ default
+ sed -i \
+ -e "s:@GENTOO_DIR@:/usr/share/${PN}:" \
+ Source/OpenGL_Windows.cpp || die
+}
+
+src_configure() {
+ mycmakeargs=(
+ "-DCMAKE_VERBOSE_MAKEFILE=TRUE"
+ "-DLUGARU_FORCE_INTERNAL_OPENGL=False"
+ )
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+}
+
+src_install() {
+ dobin "${WORKDIR}/${P}_build/lugaru"
+ insinto /usr/share/${PN}
+ doins -r Data/
+ newicon Source/win-res/Lugaru.png ${PN}.png
+ make_desktop_entry ${PN} Lugaru ${PN}
+}
diff --git a/games-action/lugaru/metadata.xml b/games-action/lugaru/metadata.xml
new file mode 100644
index 000000000000..f50d5486c2ab
--- /dev/null
+++ b/games-action/lugaru/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="bitbucket">osslugaru/lugaru</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-action/luola/Manifest b/games-action/luola/Manifest
new file mode 100644
index 000000000000..682f4b4d9174
--- /dev/null
+++ b/games-action/luola/Manifest
@@ -0,0 +1,9 @@
+AUX luola-1.3.2-underlink.patch 249 SHA256 612a9659b56981421736fde6b6bcf6e438c390ebe58db42a85741017c4e93bb6 SHA512 99a842abc48193ec92ac9005653b70ba0ea07abffe99c598413400cad68ce72b0d10d38e0ee827e49f0c91cd8c85b7f6e0313e369403118d527e8a92b7adf46d WHIRLPOOL fd13f4aec9498420a0dbda2a6738a396794cee8906dfbe3a66d7355a493206ef04b09ca3c352a297ea6fa6edb1e91ce83d97369d3e83d85c0c2dd2f8bd70f178
+DIST luola-1.3.2.tar.gz 1774711 SHA256 3d0af35f379f9e058a0178f341100c1f9d28ced21d6c623a458661ca44cda337 SHA512 4e8b2f5e813dbb4d951632ded20f013aae6837d525d0068b430ae41319503f206ec27f2873cff241af8ba4cd1728ec89dcf8279a94dbb3094330de1ca531712f WHIRLPOOL 0de87e0ae1bd5075048ae5b5142143da82c430c5ed596fb46e2738f7e4d9f3b8e35fdd3e03a1c2b9b944a419f253877bf29c64c27c628caf32ca752cefeefa80
+DIST nostalgia-1.2.tar.gz 1475672 SHA256 675b51423cae1fcf2c4b0cb774e2130c8ce761b6cd91c1db59a6fca0ba18f202 SHA512 06a03b3398204c04f88fccbbf6a59f11da043c73dc203fe258e09e036364ee73cae337b9828bd27b52ebee6ff456c317143444c3b6c395addcdedf720988731f WHIRLPOOL f9bfff140085d2eaf4ff0e02844e7d3dbc7de20a5592324edbbcc1306de09b0955dfd731a3685361b97b8045dbf59e35ef54cc0b37db6670022ac63e1f9a3ecc
+DIST stdlevels-6.0.tar.gz 1850148 SHA256 70882a078de3e81793c31d1cfea11981dae4c1475c6f8a68c514e2461a64338b SHA512 d1823ca8340dea8766310962507bc5aad06c0f737c16c3ce32afaafc0e83a8b7b4d301d5cf65a0466fdaee9ec2a7ce718d03be61b383ac6fe030101466eff11a WHIRLPOOL fd2ec19f95a695ea1f2450063daff43b5d745d0b9cb788f6a722585706a8ec7be615d5bb3f369b7921c8a5471d559f55ba7e5aad3629aaec4d255cc95fe4d776
+EBUILD luola-1.3.2-r1.ebuild 1170 SHA256 1d83606f6f67efad8368074994499f2e305752c3db3c3ae65630f585b05d2cc9 SHA512 021624a2ea7c30f4af950086d0649d8ce3383398d6a26fce53f35b936b708b41ccc6ae164c224ceac4229dfef4642c5e46fcc98230c951e5d96512535e411edf WHIRLPOOL 44fdc0d6d8431a6d170547954dc4efe5a5cf784fe00036bb315602016cb5270732fb4ff87b53a2b7d10923e0ff8d2486e082187269d4281094f3fb971730fc26
+EBUILD luola-1.3.2.ebuild 1226 SHA256 a595852edff899368d981fc9d12eb3380fee587c62c34a2d11d38e881f2d88c3 SHA512 c4952df7aff0ecfa5fa4a3242da1373f9c8f79a927cd64233b2aef2e78d6510a6dd7e1f55dc74b0f95f7f2c8996c245116a0f1f95bfe742ffe3514d5ba181181 WHIRLPOOL bd16de8e2fba8b8c741da5938a3139d5b834315c932f503f5c406cfcb57fd350a84b7ef4bd3f70e29f2d9f3610dc2bfdb47c4cc80378b85c2ce5713e42b61e65
+MISC ChangeLog 2461 SHA256 0e0a712ddc7848ea5d2861c8ebceb40426d0b6870be52639c44562fc2a8b723a SHA512 8b7756ddf69527e0bc1b247a29108d65501de830190fcfe60cb532f57f65287a4898b93afb8a2a313d351901f6052f5bca6c595fc1f538dab48c294364516ed1 WHIRLPOOL 6e6506051fb21d7830261740253a4fec67851c6cdb9686534bb7cf217074e1155df981cd1317fdd1f0365e5545a7103763607ab0a2826214e342d63d035ac3ba
+MISC ChangeLog-2015 2495 SHA256 14b279c22be0c0b2e33419749b5a8242adc6397e0eb565a2f7f494c69f98619e SHA512 e77f6f11790a58204dfc518ad474030853d37310517ac4ed0a447c11ac6394698c36f71d529dffb122c101a386fc49e462d6c5d49dc027b11aefeecb042ded39 WHIRLPOOL 08b12659643b16cf995b572bbd10679e8d0501909fc6d35cf4394267fecf37cfa646ef3cc845dd63a951515b11656164c35161f0284e2c91e8bb616b706153a5
+MISC metadata.xml 325 SHA256 169839d067bb7dc8bcd5be5497282a4430a12828b92d89b28fb41a82ebc0e4e4 SHA512 5e693021a9b1e4a0cff7c4b953648d3e8d9c0acb40d910288f8ed16a558117455e52841ebb32b78909f850b9f5a3b00165aafb343ab15a3e86e7d45a4e00f8c1 WHIRLPOOL 18d07d745040a80968f3754d7fc52cf051ab6605b7b44c4411713812a32397e92d944d02763ff95ef317471fa0d21ad3068802be803f94213158e63fb9ae673c
diff --git a/games-action/luola/files/luola-1.3.2-underlink.patch b/games-action/luola/files/luola-1.3.2-underlink.patch
new file mode 100644
index 000000000000..2c862bbc30db
--- /dev/null
+++ b/games-action/luola/files/luola-1.3.2-underlink.patch
@@ -0,0 +1,11 @@
+--- a/src/Makefile.am 2011-06-17 08:41:40.882481147 +0200
++++ b/src/Makefile.am 2011-06-17 08:41:58.497602372 +0200
+@@ -2,7 +2,7 @@
+
+ bin_PROGRAMS = luola
+
+-luola_LDADD = @SDL_LIBS@
++luola_LDADD = @SDL_LIBS@ -lm
+
+ luola_SOURCES = \
+ defines.h \
diff --git a/games-action/luola/luola-1.3.2-r1.ebuild b/games-action/luola/luola-1.3.2-r1.ebuild
new file mode 100644
index 000000000000..f346b53fc647
--- /dev/null
+++ b/games-action/luola/luola-1.3.2-r1.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils autotools gnome2-utils
+
+DESCRIPTION="A 2D multiplayer arcade game resembling V-Wing"
+HOMEPAGE="https://freecode.com/projects/luola"
+SRC_URI="mirror://gentoo/${P}.tar.gz
+ mirror://gentoo/stdlevels-6.0.tar.gz
+ mirror://gentoo/nostalgia-1.2.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="media-libs/libsdl[X,sound,joystick,video]
+ media-libs/sdl-gfx
+ media-libs/sdl-image[jpeg,png]
+ media-libs/sdl-mixer
+ media-libs/sdl-ttf"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-underlink.patch
+)
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ econf --enable-sound
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ insinto /usr/share/${PN}/levels
+ doins "${WORKDIR}"/*.{lev,png}
+ dodoc AUTHORS ChangeLog DATAFILE FAQ LEVELFILE README TODO \
+ RELEASENOTES.txt ../README.Nostalgia
+ newdoc ../README README.stdlevels
+ doicon -s 64 luola.png
+ make_desktop_entry luola Luola
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/games-action/luola/luola-1.3.2.ebuild b/games-action/luola/luola-1.3.2.ebuild
new file mode 100644
index 000000000000..1b5ce9ad65b4
--- /dev/null
+++ b/games-action/luola/luola-1.3.2.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils autotools gnome2-utils games
+
+DESCRIPTION="A 2D multiplayer arcade game resembling V-Wing"
+HOMEPAGE="https://freecode.com/projects/luola"
+SRC_URI="mirror://gentoo/${P}.tar.gz
+ mirror://gentoo/stdlevels-6.0.tar.gz
+ mirror://gentoo/nostalgia-1.2.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND="media-libs/libsdl[X,sound,joystick,video]
+ media-libs/sdl-gfx
+ media-libs/sdl-image[jpeg,png]
+ media-libs/sdl-mixer
+ media-libs/sdl-ttf"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-underlink.patch
+ eautoreconf
+}
+
+src_configure() {
+ egamesconf --enable-sound
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ insinto "${GAMES_DATADIR}"/${PN}/levels
+ doins "${WORKDIR}"/*.{lev,png}
+ dodoc AUTHORS ChangeLog DATAFILE FAQ LEVELFILE README TODO \
+ RELEASENOTES.txt ../README.Nostalgia
+ newdoc ../README README.stdlevels
+ doicon -s 64 luola.png
+ make_desktop_entry luola Luola
+ 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-action/luola/metadata.xml b/games-action/luola/metadata.xml
new file mode 100644
index 000000000000..5fc36fdad374
--- /dev/null
+++ b/games-action/luola/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="freecode">luola</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-action/maelstrom/Manifest b/games-action/maelstrom/Manifest
new file mode 100644
index 000000000000..b30e245b9a30
--- /dev/null
+++ b/games-action/maelstrom/Manifest
@@ -0,0 +1,11 @@
+AUX maelstrom-3.0.6-64bits.patch 499 SHA256 b80f82c7833594d512f2bf4a70a0c1174ab422e11b09025474a6d93454930940 SHA512 b75c094aa91ff443bed86b34ebb52a19221cdc69fd2745a714f1d7728dddd9886c8874054dff7a02513cff7a67cb6c115d7a2757401dd5bcaa96a52537f530a1 WHIRLPOOL adbcedb483e3423f91347a51c3b1b17400015ca1a660db99f01595dc905f341e2ff1b991e24991f689aae940b10a1c7a7fdf668fc2c3e33bc147767bedb2f599
+AUX maelstrom-3.0.6-gcc34.patch 878 SHA256 38a0a869c60e32d2873f536badd28e45f1908027d4e40936f533da2c0741dc3a SHA512 5427e198d6a595f9d68357d0ad31b8d1d7c6bc8db7dde261269a660d8e6102d83d592128e1e2f1c82285e764808f166798cb4a9121d88a8ec7c047efa6d856d6 WHIRLPOOL c1303fda8b4e2a266a3bcb14e2f444d1e332f8deafe5253cc7360ff02ea05d6d8dd4b7523db4442a9f3b06aeff6e9c46fe8df9c0e25b9730568b0d2e3ad94866
+AUX maelstrom-3.0.6-gcc53.patch 537 SHA256 507bc7d542c99d7eef5cefe404d77298f64676a1f79daff369961f0419497cdc SHA512 cfd30e1474a084a1c45831b3d7c3f2a22ca6920e84838c4ff7615f179d377713d181f6d2bca3e660ee58ba2a62378838dec52cdb24fd896efecc40ff43a9c459 WHIRLPOOL c93872a151a2a610c3f615683b173246430552d0eb740d46b2e331084fcb90a9b74822630e47fb4920739a136bd29a6157034f6dc7805f6f4f4df7bac3676058
+AUX maelstrom-3.0.6-security.patch 14189 SHA256 977d7558b094037ad82177d56ac897e376714e939568b0925ad28708aad6099f SHA512 7e8c6c5c7244fa8871fe55b95e9d2a8c631735590dba04e9e2dfed62e2dfc6264f1b990f3737d797c7762fbceda17474782b1720f944d444bdb8627b43188cb3 WHIRLPOOL da1c87ac540822895e3b7aeacb7cffb992300344b06012ea9ad920f977a4651f23db3fea65744bc4bd056ffb18886ae5ca26bc74418e4b0b66ac3d2c12628ff3
+AUX maelstrom-3.0.6-warnings.patch 438 SHA256 527254c6873d75430e773af64b35e9d8e9f459f4451bcd0c94266394460571a9 SHA512 5310843f4a126acf62686aaa9d2086a85a313258fbc0b35b27a8bf7a24389a70264691454a018252d1997bc70093dbaf80c44282c3c59ba39d8cfaa7018866f7 WHIRLPOOL 63211dca3891451681aacacb4114ec0cbd6e064ba0ac0849e8eb7209560669da242919d888268bbd018195a84153235cec2969df360a08496ea98dc07b061e69
+DIST Maelstrom-3.0.6.tar.gz 1007421 SHA256 bb6ca1952d1080e25f8716a2d08a4241614ee72d54f13c8a60eecadf7ea6198d SHA512 fecd2411f5d2109aa99e5a6c65702c74f9f79326fc9f074a53005238c846780f231776b9c170ceb54b0470894b856abaa4708c59afd912fa5b2868e6776893ca WHIRLPOOL 36e9266a246a9bd55923e81e89d6a59956d3f7c15d8231b2973c8b1c77280828b7508cbc1978ea069a7149a1b4e2ba2de2f8debd8da55c0c082f125039d60829
+EBUILD maelstrom-3.0.6-r2.ebuild 1878 SHA256 ecd012ba3def782a13a94c8994fe0669e58aa00c5de8c2c841db3f1af0ea8201 SHA512 296d2abd9abcfc0bfb089363093ebcd0d509da4931102239ee7f647a38e282e80763dfdbf96f92c1fc2e50e0ff302d26d11c0b5fd93d1d261c6378ca25d22c3a WHIRLPOOL 6e357885d39f004efaa3e6f5d791698cd63a48c994d9fbc3e8136c00555c265524666af40c58b9d9fb1a55c59172f5a6378a993b7a717b15d5fa271cf97adffb
+EBUILD maelstrom-3.0.6-r3.ebuild 1946 SHA256 ae10bcbdb4856c872a16c678bf08877da6fb4185dfac43cf115752a8cdef3ff7 SHA512 b3c39bb003bb18e214347436cfa3d049cab8357ed376e2c41095371a17e16a8b9535c1914da81c3b28bd03d4954c5d14541f7e11682dbad29bd197fc13b55150 WHIRLPOOL d1d5db716e8cd8e7016b61e7c629140a7db05391162fe1a361f37c8c904fe47e1b351a72aaceba561eeb84d2e219c3bc93f8cdc920290ad87c3e08a04ae21f9c
+MISC ChangeLog 3385 SHA256 53aa5690b54b138979bf5e0c60e546ffd20ffbccd5aab9dcbabc0b26aae5ec4b SHA512 6c12ab8469fa152aaf7f82e8ee16d3579d6ab6ca820f13b036b20a6c1a5946752e4a6969aabe355ab8a630f056767c44d0371b0fcf31f73505852679d2a0c7dc WHIRLPOOL 64ee92cb79c2c2ef594f6b20cf8d685e0ca4be7d6135725e2288aa48ed2ef94fd9d16a2bcc23e35eee3b495173d3a6c1c6202d2e859435c71fd8ff9de6174762
+MISC ChangeLog-2015 4166 SHA256 3946cc5cf81406efa0100353f5bd64689568f153e2e2070081bb42ef27acec0e SHA512 98a50278df1751c1c0efcc3e6326526da389cecea3f9f2afdbad0844a33e5476395bb96fa0e7c184f34497e0287919dd08c1a2ab639c87985b7b06d7e84865df WHIRLPOOL bb5ab1554007ff11f77b8decccfd0c8c2bcb6942195fe2be1910c6078eb677a3e0bed4db91ccf00e4b0dc6e740fb898c2032d14e8c39b88295a1e45b1f6d9e79
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-action/maelstrom/files/maelstrom-3.0.6-64bits.patch b/games-action/maelstrom/files/maelstrom-3.0.6-64bits.patch
new file mode 100644
index 000000000000..7d6f59a5ac26
--- /dev/null
+++ b/games-action/maelstrom/files/maelstrom-3.0.6-64bits.patch
@@ -0,0 +1,15 @@
+--- a/screenlib/SDL_FrameBuf.cpp 2006-10-25 22:37:21.000000000 +0200
++++ b/screenlib/SDL_FrameBuf.cpp 2006-10-25 22:38:26.000000000 +0200
+@@ -847,10 +847,8 @@
+ /* Update the dirty rectangle map with the new list */
+ for ( i=0; i<dirtymaplen; ++i ) {
+ if ( dirtymap[i] != NULL ) {
+- dirtymap[i] = (SDL_Rect *)(
+- ((int)dirtymap[i]-(int)updatelist) +
+- (int)newlist
+- );
++ dirtymap[i] = newlist
++ + (dirtymap[i]-updatelist);
+ }
+ }
+ delete[] updatelist;
diff --git a/games-action/maelstrom/files/maelstrom-3.0.6-gcc34.patch b/games-action/maelstrom/files/maelstrom-3.0.6-gcc34.patch
new file mode 100644
index 000000000000..6ceb421f16ba
--- /dev/null
+++ b/games-action/maelstrom/files/maelstrom-3.0.6-gcc34.patch
@@ -0,0 +1,30 @@
+diff -ur Maelstrom-3.0.6-orig/buttonlist.h Maelstrom-3.0.6/buttonlist.h
+--- Maelstrom-3.0.6-orig/buttonlist.h 2004-08-28 01:43:55.867378220 -0400
++++ Maelstrom-3.0.6/buttonlist.h 2004-08-28 01:44:23.700062593 -0400
+@@ -16,7 +16,7 @@
+
+ void Add_Button(Uint16 x, Uint16 y, Uint16 width, Uint16 height,
+ void (*callback)(void)) {
+- struct button *belem;
++ button *belem;
+
+ for ( belem=&button_list; belem->next; belem=belem->next );
+ belem->next = new button;
+@@ -30,7 +30,7 @@
+ }
+
+ void Activate_Button(Uint16 x, Uint16 y) {
+- struct button *belem;
++ button *belem;
+
+ for ( belem=button_list.next; belem; belem=belem->next ) {
+ if ( (x >= belem->x1) && (x <= belem->x2) &&
+@@ -42,7 +42,7 @@
+ }
+
+ void Delete_Buttons(void) {
+- struct button *belem, *btemp;
++ button *belem, *btemp;
+
+ for ( belem=button_list.next; belem; ) {
+ btemp = belem;
diff --git a/games-action/maelstrom/files/maelstrom-3.0.6-gcc53.patch b/games-action/maelstrom/files/maelstrom-3.0.6-gcc53.patch
new file mode 100644
index 000000000000..db7624bacf91
--- /dev/null
+++ b/games-action/maelstrom/files/maelstrom-3.0.6-gcc53.patch
@@ -0,0 +1,11 @@
+--- Maelstrom-3.0.6/Maelstrom-netd.c.orig 2016-06-04 06:02:44.000000000 +0300
++++ Maelstrom-3.0.6/Maelstrom-netd.c 2016-06-05 13:45:11.422533649 +0300
+@@ -204,7 +204,7 @@
+ memset(&serv_addr, 0, sizeof(serv_addr));
+ serv_addr.sin_family = AF_INET;
+ serv_addr.sin_addr.s_addr = htonl(INADDR_ANY);
+- serv_addr.sin_port = htons(NETPLAY_PORT-1);
++ serv_addr.sin_port = htons(NETPLAY_PORT - 1);
+ if (bind(netfd, (struct sockaddr *)&serv_addr, sizeof(serv_addr)) < 0) {
+ perror("Can't bind local address");
+ exit(3);
diff --git a/games-action/maelstrom/files/maelstrom-3.0.6-security.patch b/games-action/maelstrom/files/maelstrom-3.0.6-security.patch
new file mode 100644
index 000000000000..ae22c0cdd11a
--- /dev/null
+++ b/games-action/maelstrom/files/maelstrom-3.0.6-security.patch
@@ -0,0 +1,380 @@
+diff -ur Maelstrom-3.0.6-orig/controls.cpp Maelstrom-3.0.6/controls.cpp
+--- Maelstrom-3.0.6-orig/controls.cpp 2001-03-25 03:04:28 +0900
++++ Maelstrom-3.0.6/controls.cpp 2003-05-21 11:25:53 +0900
+@@ -83,7 +83,7 @@
+ if ( fname ) {
+ *fname = datafile;
+ }
+- sprintf(datafile, "%s"DIR_SEP"%s", home, MAELSTROM_DATA);
++ snprintf(datafile, sizeof(datafile), "%s"DIR_SEP"%s", home, MAELSTROM_DATA);
+ if ( (data=fopen(datafile, mode)) == NULL )
+ return(NULL);
+ return(data);
+diff -ur Maelstrom-3.0.6-orig/dialog.h Maelstrom-3.0.6/dialog.h
+--- Maelstrom-3.0.6-orig/dialog.h 2001-07-21 00:08:10 +0900
++++ Maelstrom-3.0.6/dialog.h 2003-05-21 11:24:33 +0900
+@@ -92,7 +92,7 @@
+ va_list ap;
+
+ va_start(ap, fmt);
+- vsprintf(errbuf, fmt, ap);
++ vsnprintf(errbuf, sizeof(errbuf), fmt, ap);
+ va_end(ap);
+ errstr = errbuf;
+ }
+@@ -878,7 +878,7 @@
+ if ( entry->text ) {
+ Fontserv->FreeText(entry->text);
+ }
+- sprintf(buf, "%d", *entry->variable);
++ snprintf(buf, sizeof(buf), "%d", *entry->variable);
+
+ if ( entry->hilite ) {
+ clear = Fg;
+diff -ur Maelstrom-3.0.6-orig/load.cpp Maelstrom-3.0.6/load.cpp
+--- Maelstrom-3.0.6-orig/load.cpp 2000-02-15 11:47:39 +0900
++++ Maelstrom-3.0.6/load.cpp 2003-05-21 11:26:18 +0900
+@@ -81,7 +81,7 @@
+ SDL_Surface *bmp, *title;
+
+ /* Open the title file -- we know its colormap is our global one */
+- sprintf(file, "Images"DIR_SEP"Maelstrom_Titles#%d.bmp", title_id);
++ snprintf(file, sizeof(file), "Images"DIR_SEP"Maelstrom_Titles#%d.bmp", title_id);
+ bmp = SDL_LoadBMP(path.Path(file));
+ if ( bmp == NULL ) {
+ return(NULL);
+@@ -103,7 +103,7 @@
+ Uint16 w, h;
+
+ /* Open the cicn sprite file.. */
+- sprintf(file, "Images"DIR_SEP"Maelstrom_Icon#%hd.cicn", cicn_id);
++ snprintf(file, sizeof(file), "Images"DIR_SEP"Maelstrom_Icon#%hd.cicn", cicn_id);
+ if ( (cicn_src=SDL_RWFromFile(path.Path(file), "r")) == NULL ) {
+ error("GetCIcon(%hd): Can't open CICN %s: ",
+ cicn_id, path.Path(file));
+diff -ur Maelstrom-3.0.6-orig/maclib/Mac_FontServ.h Maelstrom-3.0.6/maclib/Mac_FontServ.h
+--- Maelstrom-3.0.6-orig/maclib/Mac_FontServ.h 1999-12-03 02:15:33 +0900
++++ Maelstrom-3.0.6/maclib/Mac_FontServ.h 2003-05-21 11:28:43 +0900
+@@ -135,7 +135,7 @@
+ va_list ap;
+
+ va_start(ap, fmt);
+- vsprintf(errbuf, fmt, ap);
++ vsnprintf(errbuf, sizeof(errbuf), fmt, ap);
+ va_end(ap);
+ errstr = errbuf;
+ }
+diff -ur Maelstrom-3.0.6-orig/maclib/Mac_Resource.h Maelstrom-3.0.6/maclib/Mac_Resource.h
+--- Maelstrom-3.0.6-orig/maclib/Mac_Resource.h 1999-12-04 03:01:47 +0900
++++ Maelstrom-3.0.6/maclib/Mac_Resource.h 2003-05-21 11:28:35 +0900
+@@ -96,7 +96,7 @@
+ va_list ap;
+
+ va_start(ap, fmt);
+- vsprintf(errbuf, fmt, ap);
++ vsnprintf(errbuf, sizeof(errbuf), fmt, ap);
+ va_end(ap);
+ errstr = errbuf;
+ }
+diff -ur Maelstrom-3.0.6-orig/maclib/Mac_Sound.h Maelstrom-3.0.6/maclib/Mac_Sound.h
+--- Maelstrom-3.0.6-orig/maclib/Mac_Sound.h 2002-10-20 11:53:34 +0900
++++ Maelstrom-3.0.6/maclib/Mac_Sound.h 2003-05-21 11:28:27 +0900
+@@ -199,7 +199,7 @@
+ va_list ap;
+
+ va_start(ap, fmt);
+- vsprintf(errbuf, fmt, ap);
++ vsnprintf(errbuf, sizeof(errbuf), fmt, ap);
+ va_end(ap);
+ errstr = errbuf;
+ }
+diff -ur Maelstrom-3.0.6-orig/maclib/Mac_Wave.h Maelstrom-3.0.6/maclib/Mac_Wave.h
+--- Maelstrom-3.0.6-orig/maclib/Mac_Wave.h 2000-01-26 01:44:10 +0900
++++ Maelstrom-3.0.6/maclib/Mac_Wave.h 2003-05-21 11:28:20 +0900
+@@ -108,7 +108,7 @@
+ va_list ap;
+
+ va_start(ap, fmt);
+- vsprintf(errbuf, fmt, ap);
++ vsnprintf(errbuf, sizeof(errbuf), fmt, ap);
+ va_end(ap);
+ errstr = errbuf;
+ }
+diff -ur Maelstrom-3.0.6-orig/maclib/macres.cpp Maelstrom-3.0.6/maclib/macres.cpp
+--- Maelstrom-3.0.6-orig/maclib/macres.cpp 2000-01-26 01:44:20 +0900
++++ Maelstrom-3.0.6/maclib/macres.cpp 2003-05-21 11:30:01 +0900
+@@ -58,8 +58,8 @@
+ ids[j], res->ResourceName(types[i], ids[j]));
+ if ( argv[2] ) {
+ char path[23];
+- sprintf(path,"%s/%s:%hu", argv[2],
+- types[i], ids[j]);
++ snprintf(path, sizeof(path), "%s/%s:%hu",
++ argv[2], types[i], ids[j]);
+ FILE *output;
+ Mac_ResData *D;
+ if ( (output=fopen(path, "w")) != NULL ) {
+diff -ur Maelstrom-3.0.6-orig/maclib/snd2wav.cpp Maelstrom-3.0.6/maclib/snd2wav.cpp
+--- Maelstrom-3.0.6-orig/maclib/snd2wav.cpp 2001-03-28 12:54:50 +0900
++++ Maelstrom-3.0.6/maclib/snd2wav.cpp 2003-05-21 11:29:23 +0900
+@@ -82,7 +82,7 @@
+ continue;
+ }
+ wave.Load(snd, rate);
+- sprintf(wavname, "snd_%d.wav", ids[i]);
++ snprintf(wavname, sizeof(wavname), "snd_%d.wav", ids[i]);
+ wave.Save(wavname);
+ }
+ delete macx;
+diff -ur Maelstrom-3.0.6-orig/main.cpp Maelstrom-3.0.6/main.cpp
+--- Maelstrom-3.0.6-orig/main.cpp 2002-10-20 11:53:32 +0900
++++ Maelstrom-3.0.6/main.cpp 2003-05-21 11:27:02 +0900
+@@ -445,7 +445,7 @@
+ DrawText(xOff+309-7, yOff+240-6, text, geneva, STYLE_BOLD,
+ 0x00, 0x00, 0x00);
+ }
+- sprintf(text, "%d", gSoundLevel);
++ snprintf(text, sizeof(text), "%d", gSoundLevel);
+ DrawText(xOff+309-7, yOff+240-6, text, geneva, STYLE_BOLD,
+ 30000>>8, 30000>>8, 0xFF);
+ screen->Update();
+@@ -547,11 +547,11 @@
+ }
+ DrawText(xOff+5, botDiv+42+(index*18), hScores[index].name,
+ font, STYLE_BOLD, R, G, B);
+- sprintf(buffer, "%u", hScores[index].score);
++ snprintf(buffer, sizeof(buffer), "%u", hScores[index].score);
+ sw = fontserv->TextWidth(buffer, font, STYLE_BOLD);
+ DrawText(sRt-sw, botDiv+42+(index*18), buffer,
+ font, STYLE_BOLD, R, G, B);
+- sprintf(buffer, "%u", hScores[index].wave);
++ snprintf(buffer, sizeof(buffer), "%u", hScores[index].wave);
+ sw = fontserv->TextWidth(buffer, font, STYLE_BOLD);
+ DrawText(wRt-sw, botDiv+42+(index*18), buffer,
+ font, STYLE_BOLD, R, G, B);
+@@ -560,7 +560,7 @@
+
+ DrawText(xOff+5, botDiv+46+(10*18)+3, "Last Score: ",
+ bigfont, STYLE_NORM, 0xFF, 0xFF, 0xFF);
+- sprintf(buffer, "%d", GetScore());
++ snprintf(buffer, sizeof(buffer), "%d", GetScore());
+ sw = fontserv->TextWidth("Last Score: ", bigfont, STYLE_NORM);
+ DrawText(xOff+5+sw, botDiv+46+(index*18)+3, buffer,
+ bigfont, STYLE_NORM, 0xFF, 0xFF, 0xFF);
+diff -ur Maelstrom-3.0.6-orig/myerror.cpp Maelstrom-3.0.6/myerror.cpp
+--- Maelstrom-3.0.6-orig/myerror.cpp 1998-07-14 10:50:17 +0900
++++ Maelstrom-3.0.6/myerror.cpp 2003-05-21 11:23:33 +0900
+@@ -16,7 +16,7 @@
+ va_list ap;
+
+ va_start(ap, fmt);
+- vsprintf(mesg, fmt, ap);
++ vsnprintf(mesg, sizeof(mesg), fmt, ap);
+ fputs(mesg, stderr);
+ va_end(ap);
+ }
+@@ -27,7 +27,7 @@
+ va_list ap;
+
+ va_start(ap, fmt);
+- vsprintf(mesg, fmt, ap);
++ vsnprintf(mesg, sizeof(mesg), fmt, ap);
+ fputs(mesg, stdout);
+ va_end(ap);
+ }
+@@ -37,7 +37,7 @@
+ char buffer[BUFSIZ];
+
+ if ( *msg ) {
+- sprintf(buffer, "%s: %s\n", msg, strerror(errno));
++ snprintf(buffer, sizeof(buffer), "%s: %s\n", msg, strerror(errno));
+ error(buffer);
+ } else
+ error((char *)strerror(errno));
+diff -ur Maelstrom-3.0.6-orig/netlogic/game.cpp Maelstrom-3.0.6/netlogic/game.cpp
+--- Maelstrom-3.0.6-orig/netlogic/game.cpp 2001-07-23 11:24:03 +0900
++++ Maelstrom-3.0.6/netlogic/game.cpp 2003-05-21 11:33:19 +0900
+@@ -232,7 +232,7 @@
+
+ lastDisplayed = gDisplayed;
+ screen->FillRect(0, 0, SCREEN_WIDTH, 12, ourBlack);
+- sprintf(caption,
++ snprintf(caption, sizeof(caption),
+ "You are player %d --- displaying player %d",
+ gOurPlayer+1, gDisplayed+1);
+ DrawText(SPRITES_WIDTH, 11, caption, geneva,
+@@ -357,7 +357,7 @@
+ /* -- Erase old and draw new score */
+ screen->FillRect(45, gStatusLine+1,
+ score_width, text_height, ourBlack);
+- sprintf(numbuf, "%d", Score);
++ snprintf(numbuf, sizeof(numbuf), "%d", Score);
+ score_width = DrawText(45, gStatusLine+11,
+ numbuf, geneva, STYLE_BOLD,
+ 0xFF, 0xFF, 0xFF);
+@@ -380,7 +380,7 @@
+ if (lastWave != gWave) {
+ screen->FillRect(255, gStatusLine+1,
+ wave_width, text_height, ourBlack);
+- sprintf(numbuf, "%d", gWave);
++ snprintf(numbuf, sizeof(numbuf), "%d", gWave);
+ wave_width = DrawText(255, gStatusLine+11,
+ numbuf, geneva, STYLE_BOLD,
+ 0xFF, 0xFF, 0xFF);
+@@ -391,7 +391,7 @@
+ if (lastLives != Lives) {
+ screen->FillRect(319, gStatusLine+1,
+ lives_width, text_height, ourBlack);
+- sprintf(numbuf, "%-3.1d", Lives);
++ snprintf(numbuf, sizeof(numbuf), "%-3.1d", Lives);
+ lives_width = DrawText(319, gStatusLine+11,
+ numbuf, geneva, STYLE_BOLD,
+ 0xFF, 0xFF, 0xFF);
+@@ -402,7 +402,7 @@
+ if (lastBonus != Bonus) {
+ screen->FillRect(384, gStatusLine+1,
+ bonus_width, text_height, ourBlack);
+- sprintf(numbuf, "%-7.1d", Bonus);
++ snprintf(numbuf, sizeof(numbuf), "%-7.1d", Bonus);
+ bonus_width = DrawText(384, gStatusLine+11,
+ numbuf, geneva, STYLE_BOLD,
+ 0xFF, 0xFF, 0xFF);
+@@ -414,7 +414,7 @@
+ if (lastFrags != Frags) {
+ screen->FillRect(fragoff, gStatusLine+1,
+ frags_width, text_height, ourBlack);
+- sprintf(numbuf, "%-3.1d", Frags);
++ snprintf(numbuf, sizeof(numbuf), "%-3.1d", Frags);
+ frags_width = DrawText(fragoff, gStatusLine+11,
+ numbuf, geneva, STYLE_BOLD,
+ 0xFF, 0xFF, 0xFF);
+@@ -747,10 +747,11 @@
+ for ( i=0; i<gNumPlayers; ++i ) {
+ char buffer[BUFSIZ], num1[12], num2[12];
+
+- sprintf(num1, "%7.1d", final[i].Score);
+- sprintf(num2, "%3.1d", final[i].Frags);
+- sprintf(buffer, "Player %d: %-.7s Points, %-.3s Frags",
+- final[i].Player, num1, num2);
++ snprintf(num1, sizeof(num1), "%7.1d", final[i].Score);
++ snprintf(num2, sizeof(num2), "%3.1d", final[i].Frags);
++ snprintf(buffer, sizeof(buffer),
++ "Player %d: %-.7s Points, %-.3s Frags",
++ final[i].Player, num1, num2);
+ DrawText(160, 380+i*newyork_height, buffer,
+ newyork, STYLE_NORM, 30000>>8, 30000>>8, 0xFF);
+ }
+@@ -898,7 +899,7 @@
+
+
+ /* -- Draw the wave completed message */
+- sprintf(numbuf, "Wave %d completed.", gWave);
++ snprintf(numbuf, sizeof(numbuf), "Wave %d completed.", gWave);
+ sw = fontserv->TextWidth(numbuf, geneva, STYLE_BOLD);
+ x = (SCREEN_WIDTH - sw) / 2;
+ DrawText(x, 150, numbuf, geneva, STYLE_BOLD, 0xFF, 0xFF, 0x00);
+@@ -935,7 +936,7 @@
+ if (OurShip->GetBonusMult() != 1) {
+ SDL_Surface *sprite;
+
+- sprintf(numbuf, "%-5.1d", OurShip->GetBonus());
++ snprintf(numbuf, sizeof(numbuf), "%-5.1d", OurShip->GetBonus());
+ DrawText(x, 200, numbuf, geneva, STYLE_BOLD,
+ 0xFF, 0xFF, 0xFF);
+ x += 75;
+@@ -951,10 +952,10 @@
+ Delay(SOUND_DELAY);
+ sound->PlaySound(gFunk, 5);
+
+- sprintf(numbuf, "%-5.1d", OurShip->GetBonus());
++ snprintf(numbuf, sizeof(numbuf), "%-5.1d", OurShip->GetBonus());
+ bonus_width = DrawText(x, 200, numbuf, geneva, STYLE_BOLD,
+ 0xFF, 0xFF, 0xFF);
+- sprintf(numbuf, "%-5.1d", OurShip->GetScore());
++ snprintf(numbuf, sizeof(numbuf), "%-5.1d", OurShip->GetScore());
+ score_width = DrawText(xt, 220, numbuf, geneva, STYLE_BOLD,
+ 0xFF, 0xFF, 0xFF);
+ screen->Update();
+@@ -997,12 +998,12 @@
+
+ screen->FillRect(x, 200-text_height+2,
+ bonus_width, text_height, ourBlack);
+- sprintf(numbuf, "%-5.1d", OurShip->GetBonus());
++ snprintf(numbuf, sizeof(numbuf), "%-5.1d", OurShip->GetBonus());
+ bonus_width = DrawText(x, 200, numbuf,
+ geneva, STYLE_BOLD, 0xFF, 0xFF, 0xFF);
+ screen->FillRect(xt, 220-text_height+2,
+ score_width, text_height, ourBlack);
+- sprintf(numbuf, "%-5.1d", OurShip->GetScore());
++ snprintf(numbuf, sizeof(numbuf), "%-5.1d", OurShip->GetScore());
+ score_width = DrawText(xt, 220, numbuf,
+ geneva, STYLE_BOLD, 0xFF, 0xFF, 0xFF);
+
+@@ -1015,7 +1016,7 @@
+ HandleEvents(10);
+
+ /* -- Draw the "next wave" message */
+- sprintf(numbuf, "Prepare for Wave %d...", gWave+1);
++ snprintf(numbuf, sizeof(numbuf), "Prepare for Wave %d...", gWave+1);
+ sw = fontserv->TextWidth(numbuf, geneva, STYLE_BOLD);
+ x = (SCREEN_WIDTH - sw)/2;
+ DrawText(x, 259, numbuf, geneva, STYLE_BOLD, 0xFF, 0xFF, 0x00);
+diff -ur Maelstrom-3.0.6-orig/netlogic/netplay.cpp Maelstrom-3.0.6/netlogic/netplay.cpp
+--- Maelstrom-3.0.6-orig/netlogic/netplay.cpp 2002-10-20 13:11:52 +0900
++++ Maelstrom-3.0.6/netlogic/netplay.cpp 2003-05-21 11:31:43 +0900
+@@ -670,7 +670,9 @@
+ strcpy(message, "Waiting for players:");
+ for ( i=0; i<gNumPlayers; ++i ) {
+ if ( ! acked[i] )
+- sprintf(&message[strlen(message)], " %d", i+1);
++ snprintf(&message[strlen(message)],
++ sizeof(message)-strlen(message),
++ " %d", i+1);
+ }
+ Message(message);
+
+@@ -725,7 +727,7 @@
+ /* Check the player... */
+ if ( (i != gOurPlayer) && (netbuf[1] == gOurPlayer) ) {
+ /* Print message, sleep 3 seconds absolutely */
+- sprintf(message,
++ snprintf(message, sizeof(message),
+ "Error: Another player (%d) thinks they are player 1!\r\n", i+1);
+ ErrorMessage(message);
+ /* Suck up retransmission packets */
+diff -ur Maelstrom-3.0.6-orig/netscore.cpp Maelstrom-3.0.6/netscore.cpp
+--- Maelstrom-3.0.6-orig/netscore.cpp 2001-07-23 12:25:17 +0900
++++ Maelstrom-3.0.6/netscore.cpp 2003-05-21 11:27:18 +0900
+@@ -59,7 +59,7 @@
+
+ /* Send the scores */
+ crc = get_checksum(key, KEY_LEN);
+- sprintf(netbuf, SCOREFMT, crc, high.name, high.score, high.wave);
++ snprintf(netbuf, sizeof(netbuf), SCOREFMT, crc, high.name, high.score, high.wave);
+ SDLNet_TCP_Send(remote, netbuf, strlen(netbuf));
+ n = SDLNet_TCP_Recv(remote, netbuf, 1024);
+ if ( n > 0 ) {
+diff -ur Maelstrom-3.0.6-orig/screenlib/SDL_FrameBuf.cpp Maelstrom-3.0.6/screenlib/SDL_FrameBuf.cpp
+--- Maelstrom-3.0.6-orig/screenlib/SDL_FrameBuf.cpp 2001-07-23 06:03:13 +0900
++++ Maelstrom-3.0.6/screenlib/SDL_FrameBuf.cpp 2003-05-21 11:31:01 +0900
+@@ -628,7 +628,7 @@
+
+ found = 0;
+ for ( which=0; !found; ++which ) {
+- sprintf(file, "%s%d.bmp", prefix, which);
++ snprintf(file, sizeof(file), "%s%d.bmp", prefix, which);
+ if ( ((fp=fopen(file, "r")) == NULL) &&
+ ((fp=fopen(file, "w")) != NULL) ) {
+ found = 1;
+diff -ur Maelstrom-3.0.6-orig/screenlib/SDL_FrameBuf.h Maelstrom-3.0.6/screenlib/SDL_FrameBuf.h
+--- Maelstrom-3.0.6-orig/screenlib/SDL_FrameBuf.h 2000-09-25 02:55:39 +0900
++++ Maelstrom-3.0.6/screenlib/SDL_FrameBuf.h 2003-05-21 11:27:41 +0900
+@@ -165,7 +165,7 @@
+ va_list ap;
+
+ va_start(ap, fmt);
+- vsprintf(errbuf, fmt, ap);
++ vsnprintf(errbuf, sizeof(errbuf), fmt, ap);
+ va_end(ap);
+ errstr = errbuf;
+ }
diff --git a/games-action/maelstrom/files/maelstrom-3.0.6-warnings.patch b/games-action/maelstrom/files/maelstrom-3.0.6-warnings.patch
new file mode 100644
index 000000000000..8b2ca084c65f
--- /dev/null
+++ b/games-action/maelstrom/files/maelstrom-3.0.6-warnings.patch
@@ -0,0 +1,20 @@
+--- a/Maelstrom-netd.c 2014-03-18 01:00:28.408099526 -0400
++++ b/Maelstrom-netd.c 2014-03-18 01:01:29.892142782 -0400
+@@ -1,7 +1,9 @@
+
+ /* Here we go... */
+
++#include <stdlib.h>
+ #include <stdio.h>
++#include <time.h>
+ #include <string.h>
+ #include <signal.h>
+ #include <errno.h>
+@@ -9,6 +11,7 @@
+ #include <sys/time.h>
+ #include <sys/socket.h>
+ #include <netinet/in.h>
++#include <arpa/inet.h>
+ #include <netdb.h>
+ #include <unistd.h>
+
diff --git a/games-action/maelstrom/maelstrom-3.0.6-r2.ebuild b/games-action/maelstrom/maelstrom-3.0.6-r2.ebuild
new file mode 100644
index 000000000000..0e1fe8d3142f
--- /dev/null
+++ b/games-action/maelstrom/maelstrom-3.0.6-r2.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit autotools eutils games
+
+MY_P=Maelstrom-${PV}
+DESCRIPTION="An asteroids battle game"
+HOMEPAGE="http://www.libsdl.org/projects/Maelstrom/"
+SRC_URI="http://www.libsdl.org/projects/Maelstrom/src/${MY_P}.tar.gz"
+
+KEYWORDS="~alpha amd64 x86"
+SLOT="0"
+LICENSE="GPL-2"
+IUSE=""
+
+DEPEND="media-libs/libsdl[sound,joystick,video]
+ media-libs/sdl-net"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-security.patch \
+ "${FILESDIR}"/${P}-64bits.patch \
+ "${FILESDIR}"/${P}-gcc34.patch \
+ "${FILESDIR}"/${P}-warnings.patch \
+ "${FILESDIR}"/${P}-gcc53.patch
+
+ # Install the data into $(datadir)/..., not $(prefix)/games/...
+ sed -i \
+ -e "s:(prefix)/games/:(datadir)/:" configure.in || die
+ sed -i \
+ -e '/make install_gamedata/ { s:=:=$(DESTDIR)/:; s/make/$(MAKE)/; s/install_gamedata/install-binPROGRAMS install_gamedata/; }' Makefile.am || die
+ # Install the high scores file in ${GAMES_STATEDIR}
+ sed -i \
+ -e "s:path.Path(MAELSTROM_SCORES):\"${GAMES_STATEDIR}/\"MAELSTROM_SCORES:" scores.cpp || die
+ mv configure.{in,ac}
+ rm aclocal.m4 acinclude.m4
+ eautoreconf
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc Changelog README* Docs/{Maelstrom-Announce,*FAQ,MaelstromGPL_press_release,*.Paper,Technical_Notes*}
+ newicon "${D}${GAMES_DATADIR}"/Maelstrom/icon.xpm maelstrom.xpm
+ make_desktop_entry Maelstrom "Maelstrom" maelstrom
+
+ # Put the high scores file in the right place
+ insinto "${GAMES_STATEDIR}"
+ doins "${D}${GAMES_DATADIR}"/Maelstrom/Maelstrom-Scores
+ # clean up some cruft
+ rm -f \
+ "${D}${GAMES_DATADIR}"/Maelstrom/Maelstrom-Scores \
+ "${D}${GAMES_DATADIR}"/Maelstrom/Images/Makefile*
+ # make sure we can update the high scores
+ fperms 664 "${GAMES_STATEDIR}"/Maelstrom-Scores
+ prepgamesdirs
+}
diff --git a/games-action/maelstrom/maelstrom-3.0.6-r3.ebuild b/games-action/maelstrom/maelstrom-3.0.6-r3.ebuild
new file mode 100644
index 000000000000..bd1110643dbe
--- /dev/null
+++ b/games-action/maelstrom/maelstrom-3.0.6-r3.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools eutils user
+
+MY_P=Maelstrom-${PV}
+DESCRIPTION="An asteroids battle game"
+HOMEPAGE="http://www.libsdl.org/projects/Maelstrom/"
+SRC_URI="http://www.libsdl.org/projects/Maelstrom/src/${MY_P}.tar.gz"
+
+KEYWORDS="~alpha ~amd64 ~x86"
+SLOT="0"
+LICENSE="GPL-2"
+IUSE=""
+
+DEPEND="media-libs/libsdl[sound,joystick,video]
+ media-libs/sdl-net"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${MY_P}
+
+PATCHES=(
+ "${FILESDIR}"/${P}-security.patch
+ "${FILESDIR}"/${P}-64bits.patch
+ "${FILESDIR}"/${P}-gcc34.patch
+ "${FILESDIR}"/${P}-warnings.patch
+ "${FILESDIR}"/${P}-gcc53.patch
+)
+
+pkg_setup(){
+ enewgroup gamestat 36
+}
+
+src_prepare() {
+ default
+
+ # Install the data into $(datadir)/..., not $(prefix)/games/...
+ sed -i \
+ -e "s:(prefix)/games/:(datadir)/:" configure.in || die
+ sed -i \
+ -e '/make install_gamedata/ { s:=:=$(DESTDIR)/:; s/make/$(MAKE)/; s/install_gamedata/install-binPROGRAMS install_gamedata/; }' Makefile.am || die
+ # Install the high scores file in ${GAMES_STATEDIR}
+ sed -i \
+ -e "s:path.Path(MAELSTROM_SCORES):\"/var/games/\"MAELSTROM_SCORES:" scores.cpp || die
+ mv configure.{in,ac}
+ rm aclocal.m4 acinclude.m4
+ eautoreconf
+}
+
+src_install() {
+ default
+ dodoc Changelog Docs/{Maelstrom-Announce,*FAQ,MaelstromGPL_press_release,*.Paper,Technical_Notes*}
+
+ newicon "${D}/usr/share/Maelstrom/icon.xpm" maelstrom.xpm
+ make_desktop_entry Maelstrom "Maelstrom" maelstrom
+
+ # Put the high scores file in the right place
+ insinto /var/games
+ doins "${D}/usr/share/Maelstrom/Maelstrom-Scores"
+
+ # clean up some cruft
+ rm -f \
+ "${D}/usr/share/Maelstrom/Maelstrom-Scores" \
+ "${D}/usr/share/Maelstrom/Images/Makefile*"
+
+ # make sure we can update the high scores
+ fowners root:gamestat /var/games/Maelstrom-Scores /usr/bin/Maelstrom{,-netd}
+ fperms 2755 /usr/bin/Maelstrom{,-netd}
+ fperms 660 /var/games/Maelstrom-Scores
+}
diff --git a/games-action/maelstrom/metadata.xml b/games-action/maelstrom/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-action/maelstrom/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 type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/games-action/metadata.xml b/games-action/metadata.xml
new file mode 100644
index 000000000000..dd0a884f0100
--- /dev/null
+++ b/games-action/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-action category contains action games.
+ </longdescription>
+ <longdescription lang="de">
+ Die Kategorie games-action enthält Actionspiele.
+ </longdescription>
+ <longdescription lang="es">
+ La categoría games-action contiene juegos de acción.
+ </longdescription>
+ <longdescription lang="ja">
+ games-actionカテゴリーã«ã¯ã‚¢ã‚¯ã‚·ãƒ§ãƒ³ãƒ»ã‚²ãƒ¼ãƒ ãŒå«ã¾ã‚Œã¦ã„ã¾ã™ã€‚
+ </longdescription>
+ <longdescription lang="nl">
+ De games-action categorie bevat actiespellen.
+ </longdescription>
+ <longdescription lang="vi">
+ Nhóm games-action chứa các trò chơi thuộc thể loại hành động.
+ </longdescription>
+ <longdescription lang="sk">
+ Kategória games-action obsahuje akÄné hry.
+ </longdescription>
+ <longdescription lang="it">
+ La categoria games-action contiene giochi d'azione.
+ </longdescription>
+ <longdescription lang="pt">
+ A categoria games-action contém jogos de ação.
+ </longdescription>
+ <longdescription lang="pl">
+ Kategoria games-action zawiera gry akcji.
+ </longdescription>
+</catmetadata>
+
diff --git a/games-action/minetest/Manifest b/games-action/minetest/Manifest
new file mode 100644
index 000000000000..83b810988f41
--- /dev/null
+++ b/games-action/minetest/Manifest
@@ -0,0 +1,9 @@
+AUX minetestserver.confd 313 SHA256 b360d2f80fb9793994a33778ef907a5b9220ba0a6a8a312d75499718cb9b5f81 SHA512 96fe764d78b383f294bce81e8631861057f309fd9d13f9397ca0c715396f3793f201f313a3507c0b190f41891441eb4fe418b5888cb73ffdea0d27969d0172c3 WHIRLPOOL 6be18593d29f593904760e19486eb77b3ac6bb6b02eaf7de54aba7f5cc117ebafa6ab355787015d3fc2baec6ef8368b3dc8e37bf5df9a901595ccc082adae941
+AUX minetestserver.initd 558 SHA256 3ec0deaf309db21818825f163040429c925fb90d34fb5ab38ef4608634da2a12 SHA512 0be59fb3b42632d3a6badd01362bf62519da9cf4a1a726f304167c7ecd52c7643c04cc410bbfd3096ebd6413242cb28e3d149b06858b25344fd5a2412b6f0907 WHIRLPOOL a19b6fb5c89b592101c8402f865659221531d88ba07e4064a9a7ac54549724f171d617871aed1678266009a7d59194dc2a5276c610b8e71a966e4915bb085efe
+DIST minetest-0.4.14.tar.gz 8638852 SHA256 a2a60db3f22d101f78c582f185242e1d913b86a98a7b583cb2261ab715676910 SHA512 a04c03118ac82c78aca6c79cd618efc3ceea7c3f7c7fbcb3fcb1f87a41368a3a41ccdcb350687e745aeedd83af36ff000c30b3d468a5a8e58b68815527df0307 WHIRLPOOL 88b67d2d15c23dbd30650907260f3ac95b69a062a915811d52383da31ec5b7fd80d94b443c287344cd6f1ab71ab09a7127d570023a70afaa1c7217f3aa030c12
+DIST minetest-0.4.16.tar.gz 7753044 SHA256 e3550ed945d380fa72a951af008d49df538d5c6baa7726eca5109a79374156bb SHA512 c124a997d9eb242885551e5c68948158cbd172ccd44fb1feb4d7aea487f876a2421bc990528dbfb6baf2033bfd4759d17138ed95b077e0ba80785a6e7ff521a2 WHIRLPOOL 9fbf2d0b569f912207eedebca5951ceb1d279c44c9b7eda9cfc682f2c80be9968b3c14f53fffe76df4e2450a48fd55b4572a2e847d165d6960fd368d6e03e553
+EBUILD minetest-0.4.14.ebuild 3150 SHA256 624246baec5b1d6f38a5d12032a431f3cda5c38a3ff560eab759dc987f8f408e SHA512 9a29b34bc01e06243c6632c46e1a1dfd07edcc028c66a7245f2b62c3dccc90c1b8026473cf90f367ec192157f9fddda6b0711bd459d56d6a63c0edab9b51ce1b WHIRLPOOL 74e8b1057f62cc9d63788f019f333a0d7ce494a81910bb0e4936b696da353ea6d73eebba45d66cbd7016fcb5a341d9cca25736fc27c546629edf062fabbaebe2
+EBUILD minetest-0.4.16.ebuild 3133 SHA256 2349fa14d5d8fb65c04c2d088ce5f203724695570bc6a13a1fb9c98fb5bdccbc SHA512 c847aa04a70b51d5a485d94768da416ed27c633a9ee45cafc1cb581cb7aeacf26bd096dda6c97e5f4153016ce20886082f15c308c0202c4de3e6a681a478d96d WHIRLPOOL f87c708a5fbe22f761724d016bda17cfcc2718e25fcededb5393880fc0d9dfc077871d3c36a8a71112d4d65eddac43e9dad2a906f81123a056ae0cfa2dc809b4
+MISC ChangeLog 5187 SHA256 ceac254cb14a021d5882c81c7c4853c96353b8518174624f39f743aea7cb972e SHA512 4780e1e527fe590d203c81defff4b182b42581c99bac35c8ef1cc018d0b0cd873a4f353492fd485d09c2f65e799c6e44f12370a905019c3677b56bd48ec8dbd4 WHIRLPOOL 2d04d08f84c117e1d25c5096034d0fe746f807cb0af0e9ea7d76cfc6b011ad30a26431b51fce08950608ab70b8345637cc6708f477ebecbaa9fa972f51a360d9
+MISC ChangeLog-2015 3847 SHA256 9c5eb89173b2d8920d729299224df2a373be35825b883a659be5fa29ed51f91b SHA512 c7aafe63ca7d769fa73ba1a937717063793334bcb9b4238870f0f36e9759d52d0690984978f493c532e656dcae2d3659a468c709de1d4ccd8022683a63a7857e WHIRLPOOL ab58dafe2c08e6021681a44bea35b47e4bdcfebd4298515509e21f2f48a738a4b8c6977e612a269fe2c6aca5b2b06dcebcf7a140f3345516f05eea3f2878a214
+MISC metadata.xml 1974 SHA256 d58cb792e3212a7cb79ae1b52651697f26908764aa2a966102030f937049bb15 SHA512 73f1aae76e6d363abe2cb5e87e7481850119334c6fc65e50760d7de9afb87a9b81fc66c907390c183d8ef98c9df381a77f825c89f29c9bf645d8ff9c7f46eb5f WHIRLPOOL 9a74006d37702fa27df0539c4cccb2c606ed6c38494ba62248fe65153b8867dedd3d30501ae9d427e0c9a8858ca577f320c193283d0d4ca3d75bd84fd50ebff3
diff --git a/games-action/minetest/files/minetestserver.confd b/games-action/minetest/files/minetestserver.confd
new file mode 100644
index 000000000000..ec3d0138cb73
--- /dev/null
+++ b/games-action/minetest/files/minetestserver.confd
@@ -0,0 +1,16 @@
+# /etc/conf.d/minetest-server: config file for /etc/init.d/minetest-server
+
+# user
+USER="minetest"
+
+# group
+GROUP="@GROUP@"
+
+# pidfile
+PIDFILE="/var/run/minetest.pid"
+
+# executable
+MINETESTBIN="@BINDIR@/minetestserver"
+
+# additional arguments for the server
+ARGS="--logfile /var/lib/minetest/minetest-server.log"
diff --git a/games-action/minetest/files/minetestserver.initd b/games-action/minetest/files/minetestserver.initd
new file mode 100644
index 000000000000..1e56ff646517
--- /dev/null
+++ b/games-action/minetest/files/minetestserver.initd
@@ -0,0 +1,35 @@
+#!/sbin/openrc-run
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+description="Minetest dedicated server"
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "starting server"
+ start-stop-daemon \
+ --start \
+ --quiet \
+ --make-pidfile \
+ --pidfile "${PIDFILE}" \
+ --background \
+ --user ${USER} \
+ --group ${GROUP} \
+ --exec "${MINETESTBIN}" -- ${ARGS}
+
+ eend $?
+}
+
+stop() {
+ ebegin "stopping server"
+ start-stop-daemon \
+ --stop \
+ --signal 15 \
+ --quiet \
+ --pidfile "${PIDFILE}"
+
+ eend $?
+}
diff --git a/games-action/minetest/metadata.xml b/games-action/minetest/metadata.xml
new file mode 100644
index 000000000000..4eeaf53fc44d
--- /dev/null
+++ b/games-action/minetest/metadata.xml
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <longdescription lang="en">
+ Minetest is an infinite-world block sandbox game and a game
+ engine, inspired by InfiniMiner, Minecraft and the like. It has
+ been in development and use since October 2010.
+
+ It is Free and Open Source Software, released under the LGPL 2.1
+ or later, available for Windows, Mac OS X and Linux.
+
+ Minetest is developed by a random bunch of lunatics.
+
+ Minetest is designed to be simple, stable and portable. It is
+ lightweight enough to run on fairly old hardware. It currently
+ runs playably on a laptop with Intel 945GM graphics. Though, as
+ for the CPU, dualcore is recommended.
+
+ Features
+ * Walk around, dig and build in an infinite voxel world,
+ and craft stuff from raw materials to help you along the way.
+ * Simplistic Modding API that supports many kinds of additions
+ and modifications to the game.
+ * Multiplayer support for tens of players, via servers hosted by
+ users.
+ * Voxel based lighting with gameplay consequences
+ (light caves and buildings with torches)
+ * Almost infinite world and a beautiful map generator.
+ * Runs natively on Windows, Linux, OS X and FreeBSD.
+ * Supports multiple languages, translated by the community.
+ </longdescription>
+ <use>
+ <flag name="leveldb">Enable LevelDB backend</flag>
+ <flag name="luajit">
+ Use <pkg>dev-lang/luajit</pkg>
+ instead of <pkg>dev-lang/lua</pkg>
+ </flag>
+ <flag name="redis">Enable redis backend via
+ <pkg>dev-libs/hiredis</pkg>
+ </flag>
+ <flag name="spatial">Enable SpatialIndex AreaStore backend
+ </flag>
+ <flag name="server">Build minetest server</flag>
+ </use>
+ <upstream>
+ <bugs-to>https://github.com/minetest/minetest/issues</bugs-to>
+ <doc lang="en">http://wiki.minetest.net/Main_Page</doc>
+ <remote-id type="github">minetest/minetest</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-action/minetest/minetest-0.4.14.ebuild b/games-action/minetest/minetest-0.4.14.ebuild
new file mode 100644
index 000000000000..618321c56d83
--- /dev/null
+++ b/games-action/minetest/minetest-0.4.14.ebuild
@@ -0,0 +1,138 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit cmake-utils eutils gnome2-utils user vcs-snapshot
+
+DESCRIPTION="An InfiniMiner/Minecraft inspired game"
+HOMEPAGE="http://minetest.net/"
+SRC_URI="https://github.com/${PN}/${PN}/tarball/${PV} -> ${P}.tar.gz"
+
+LICENSE="LGPL-2.1+ CC-BY-SA-3.0 OFL-1.1 Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+curl dedicated doc +leveldb luajit ncurses nls redis +server +sound spatial +truetype"
+
+RDEPEND="dev-db/sqlite:3
+ sys-libs/zlib
+ curl? ( net-misc/curl )
+ !dedicated? (
+ app-arch/bzip2
+ >=dev-games/irrlicht-1.8-r2
+ dev-libs/gmp:0
+ media-libs/libpng:0
+ virtual/jpeg:0
+ virtual/opengl
+ x11-libs/libX11
+ x11-libs/libXxf86vm
+ sound? (
+ media-libs/libogg
+ media-libs/libvorbis
+ media-libs/openal
+ )
+ truetype? ( media-libs/freetype:2 )
+ )
+ leveldb? ( dev-libs/leveldb )
+ luajit? ( dev-lang/luajit:2 )
+ ncurses? ( sys-libs/ncurses:0 )
+ nls? ( virtual/libintl )
+ redis? ( dev-libs/hiredis )
+ spatial? ( sci-libs/libspatialindex )"
+DEPEND="${RDEPEND}
+ >=dev-games/irrlicht-1.8-r2
+ doc? ( app-doc/doxygen media-gfx/graphviz )
+ nls? ( sys-devel/gettext )"
+
+pkg_setup() {
+ if use server || use dedicated ; then
+ enewgroup ${PN}
+ enewuser ${PN} -1 -1 /var/lib/${PN} ${PN}
+ fi
+}
+
+src_prepare() {
+ eapply_user
+ # set paths
+ sed \
+ -e "s#@BINDIR@#/usr/bin#g" \
+ -e "s#@GROUP@#${PN}#g" \
+ "${FILESDIR}"/minetestserver.confd > "${T}"/minetestserver.confd || die
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_CLIENT=$(usex !dedicated)
+ -DCUSTOM_BINDIR="/usr/bin"
+ -DCUSTOM_DOCDIR="/usr/share/doc/${PF}"
+ -DCUSTOM_LOCALEDIR="/usr/share/${PN}/locale"
+ -DCUSTOM_SHAREDIR="/usr/share/${PN}"
+ -DCUSTOM_EXAMPLE_CONF_DIR="/usr/share/doc/${PF}"
+ -DENABLE_CURL=$(usex curl)
+ -DENABLE_FREETYPE=$(usex truetype)
+ -DENABLE_GETTEXT=$(usex nls)
+ -DENABLE_GLES=0
+ -DENABLE_LEVELDB=$(usex leveldb)
+ -DENABLE_REDIS=$(usex redis)
+ -DENABLE_SPATIAL=$(usex spatial)
+ -DENABLE_SOUND=$(usex sound)
+ -DENABLE_LUAJIT=$(usex luajit)
+ -DENABLE_CURSES=$(usex ncurses)
+ -DRUN_IN_PLACE=0
+ )
+
+ use dedicated && mycmakeargs+=(
+ -DIRRLICHT_SOURCE_DIR=/the/irrlicht/source
+ -DIRRLICHT_INCLUDE_DIR=/usr/include/irrlicht
+ )
+
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+
+ if use doc ; then
+ cmake-utils_src_compile doc
+ fi
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ if use server || use dedicated ; then
+ newinitd "${FILESDIR}"/minetestserver.initd minetest-server
+ newconfd "${T}"/minetestserver.confd minetest-server
+ fi
+
+ if use doc ; then
+ cd "${CMAKE_BUILD_DIR}"/doc || die
+ dodoc -r html
+ fi
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+
+ if ! use dedicated ; then
+ elog
+ elog "optional dependencies:"
+ elog " games-action/minetest_game (official mod)"
+ elog
+ fi
+
+ if use server || use dedicated ; then
+ elog
+ elog "Configure your server via /etc/conf.d/minetest-server"
+ elog "The user \"minetest\" is created with /var/lib/${PN} homedir."
+ elog "Default logfile is ~/minetest-server.log"
+ elog
+ fi
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/games-action/minetest/minetest-0.4.16.ebuild b/games-action/minetest/minetest-0.4.16.ebuild
new file mode 100644
index 000000000000..10b64cdc7455
--- /dev/null
+++ b/games-action/minetest/minetest-0.4.16.ebuild
@@ -0,0 +1,132 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit cmake-utils eutils gnome2-utils user vcs-snapshot
+
+DESCRIPTION="An InfiniMiner/Minecraft inspired game"
+HOMEPAGE="http://minetest.net/"
+SRC_URI="https://github.com/${PN}/${PN}/tarball/${PV} -> ${P}.tar.gz"
+
+LICENSE="LGPL-2.1+ CC-BY-SA-3.0 OFL-1.1 Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+curl dedicated doc +leveldb luajit ncurses nls redis +server +sound spatial +truetype"
+
+RDEPEND="dev-db/sqlite:3
+ sys-libs/zlib
+ curl? ( net-misc/curl )
+ !dedicated? (
+ app-arch/bzip2
+ >=dev-games/irrlicht-1.8-r2
+ dev-libs/gmp:0=
+ media-libs/libpng:0=
+ virtual/jpeg:0
+ virtual/opengl
+ x11-libs/libX11
+ x11-libs/libXxf86vm
+ sound? (
+ media-libs/libogg:=
+ media-libs/libvorbis:=
+ media-libs/openal:=
+ )
+ truetype? ( media-libs/freetype:2 )
+ )
+ leveldb? ( dev-libs/leveldb )
+ luajit? ( dev-lang/luajit:2 )
+ ncurses? ( sys-libs/ncurses:0= )
+ nls? ( virtual/libintl )
+ redis? ( dev-libs/hiredis )
+ spatial? ( sci-libs/libspatialindex )"
+DEPEND="${RDEPEND}
+ >=dev-games/irrlicht-1.8-r2
+ doc? (
+ app-doc/doxygen
+ media-gfx/graphviz
+ )
+ nls? ( sys-devel/gettext )"
+
+pkg_setup() {
+ if use server || use dedicated ; then
+ enewgroup ${PN}
+ enewuser ${PN} -1 -1 /var/lib/${PN} ${PN}
+ fi
+}
+
+src_prepare() {
+ cmake-utils_src_prepare
+ # set paths
+ sed \
+ -e "s#@BINDIR@#${EPREFIX}/usr/bin#g" \
+ -e "s#@GROUP@#${PN}#g" \
+ "${FILESDIR}"/minetestserver.confd > "${T}"/minetestserver.confd || die
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_CLIENT=$(usex !dedicated)
+ -DCUSTOM_BINDIR="${EPREFIX}/usr/bin"
+ -DCUSTOM_DOCDIR="${EPREFIX}/usr/share/doc/${PF}"
+ -DCUSTOM_LOCALEDIR="${EPREFIX}/usr/share/${PN}/locale"
+ -DCUSTOM_SHAREDIR="${EPREFIX}/usr/share/${PN}"
+ -DCUSTOM_EXAMPLE_CONF_DIR="${EPREFIX}/usr/share/doc/${PF}"
+ -DENABLE_CURL=$(usex curl)
+ -DENABLE_FREETYPE=$(usex truetype)
+ -DENABLE_GETTEXT=$(usex nls)
+ -DENABLE_GLES=0
+ -DENABLE_LEVELDB=$(usex leveldb)
+ -DENABLE_REDIS=$(usex redis)
+ -DENABLE_SPATIAL=$(usex spatial)
+ -DENABLE_SOUND=$(usex sound)
+ -DENABLE_LUAJIT=$(usex luajit)
+ -DENABLE_CURSES=$(usex ncurses)
+ -DRUN_IN_PLACE=0
+ )
+
+ use dedicated && mycmakeargs+=(
+ -DIRRLICHT_INCLUDE_DIR="${EPREFIX}/usr/include/irrlicht"
+ )
+
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+
+ if use doc ; then
+ cmake-utils_src_compile doc
+ HTML_DOCS=( "${CMAKE_BUILD_DIR}"/doc/html/. )
+ fi
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ if use server || use dedicated ; then
+ newinitd "${FILESDIR}"/minetestserver.initd minetest-server
+ newconfd "${T}"/minetestserver.confd minetest-server
+ fi
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+
+ if ! use dedicated ; then
+ elog
+ elog "optional dependencies:"
+ elog " games-action/minetest_game (official mod)"
+ elog
+ fi
+
+ if use server || use dedicated ; then
+ elog
+ elog "Configure your server via /etc/conf.d/minetest-server"
+ elog "The user \"minetest\" is created with /var/lib/${PN} homedir."
+ elog "Default logfile is ~/minetest-server.log"
+ elog
+ fi
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/games-action/minetest_game/Manifest b/games-action/minetest_game/Manifest
new file mode 100644
index 000000000000..cadad03d6a4f
--- /dev/null
+++ b/games-action/minetest_game/Manifest
@@ -0,0 +1,7 @@
+DIST minetest_game-0.4.14.tar.gz 772754 SHA256 0547524c75f8649002e2280ba2e623c1af4a1abf2f5ea3c5128feaecc3e88962 SHA512 c89e9e4bc55765d36ad84c0ab30ba4a75edff7bb57f1a2890c7fd2f8ca4f1bb9d12bb6e4d5a633913cacecf510683f3b062a0a166a2856f71cc9cda91e048eaf WHIRLPOOL 6b2fd4d14a8939e963bd0d8dde54c6f9d8de9d9ca00d98e93cf1de48950a820ad95f97574119ab1269210b8709f2fcc2cf6602f4cd2c740867af9246481b9090
+DIST minetest_game-0.4.16.tar.gz 1356062 SHA256 f5c63bcaaa78da98aee9ea0aeb02bcc8504bf2881b775ff58dbd7e8143cd9870 SHA512 5823be50b385327948be1d609ffd66c9c24c6eb466eba4366c67dc3287c26066c74d25f17c4a6cb27fba34a82c093b8da44b3cb3fc62c45ad9d996bde15112d1 WHIRLPOOL ab52402a4a91067cd6ed8e025fa2c0631f7b92e3757b6679aa8b177926412dfea6b6e9f27f3eedac6afe512057c98415e1f832687206d41db80cf6d5deac329e
+EBUILD minetest_game-0.4.14.ebuild 574 SHA256 2a7081d7cd57e2c877abf5fd121a41d4ef2a06b659d4092989ebaba58a5d7e6d SHA512 dc5fcf5b47703ec8218dc6c8adb9beb08900a1134c58f6e3d9b13223f2a520afdd8ab97ec146577ca303b6d3614edc5b851f571b0ec2a351563b103339469b04 WHIRLPOOL 4c50b1d18025f9997f95bd0e79cf044a8e88673b8bd65c83c85cbd52716ba74584331fe088edf6edf32add294d98aadf5fc7847ea78ae739d336bab90088b261
+EBUILD minetest_game-0.4.16.ebuild 574 SHA256 df97cf5d8691dc19fbf6313c000fd122b68983bbcdab97ee272901ec516d138c SHA512 3278722d306214315ea07a848b6cd5e066fb01e4d2cd7f54966acb504753ef08abdf6f0dbd58d6fde73f31abb379d2c8e8cb33fdcaa3fdf7c5bf31d9226b77d3 WHIRLPOOL 6967fa7c9fb82e01aacbdda91f0c3d4e217878581a3914506f3b42fad53a1cda62b7c7327b96c18cfa2e285849f26a6ffe6fc3187ecd9c0d38b5d73984ce5182
+MISC ChangeLog 4586 SHA256 5769af586ae951abaeb972fc067fc2a3e27a82c12cf81f243ce4c233f4de9549 SHA512 43ce9417e53a98aedd1744854205868e47056565cab509407d7f22491309d3fd65cdb28dbc30ba3d97c79e7235cccb46cb204db41954982d703e902ad038b514 WHIRLPOOL 10c315506b2c920196106bf8a4e17891e78e2796b7968320c34ca678f4ce749f8492d200a520aac64462001fb01ffd15830711806bc50e6ae0bbffdd75a5da5f
+MISC ChangeLog-2015 2163 SHA256 a5ddc4784a2bd97c69a25c307ce6e82ef8d0f885fc2413c624bbf24a2f8d95fc SHA512 37419200a7648226655b5be68227a5ba76d3ff608ebed558f7d8fa5b406ef9c3f694efbc04ddb92c23cc013639b7710b30e170b2d443ec5f84b779b47c44e7fd WHIRLPOOL b0f97bcacc238bbcb0e2275ddf5f17971aafaab62a08abe98a516324a2a4aad658361f253843f74aa75d66027e6b1f28e1ebd1647456cfdccf3714cc812a2e89
+MISC metadata.xml 324 SHA256 241c85fc3601a19661dcd9e818d5221f5d20c0e5fe8404aadebc7d77b5f7a5fb SHA512 7e380d55164ee9e5e535adeccc2d0373618bce9a854f47002535ede7d5ff462ec148c79b6e2676f2426b6b916ecf606bef366070b57ead232f7b19518a6c6686 WHIRLPOOL 3ef0cd91a1befd05cac152093922d998cb2b8fbd6b5070b7b8c348ad27b73134a484683f5c205ecf6bbb845cd1be12c73055e048703c8a6bc2e8e4a280050ecc
diff --git a/games-action/minetest_game/metadata.xml b/games-action/minetest_game/metadata.xml
new file mode 100644
index 000000000000..5fb34f81c2fc
--- /dev/null
+++ b/games-action/minetest_game/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-needed -->
+ <upstream>
+ <bugs-to>https://github.com/minetest/minetest_game/issues</bugs-to>
+ <remote-id type="github">minetest/minetest_game</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-action/minetest_game/minetest_game-0.4.14.ebuild b/games-action/minetest_game/minetest_game-0.4.14.ebuild
new file mode 100644
index 000000000000..c7a57463236c
--- /dev/null
+++ b/games-action/minetest_game/minetest_game-0.4.14.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit vcs-snapshot
+
+DESCRIPTION="The main game for the Minetest game engine"
+HOMEPAGE="https://github.com/minetest/minetest_game"
+SRC_URI="https://github.com/minetest/${PN}/tarball/${PV} -> ${P}.tar.gz"
+
+LICENSE="GPL-2 CC-BY-SA-3.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=games-action/minetest-${PV}"
+
+src_install() {
+ insinto /usr/share/minetest/games/${PN}
+ doins -r mods menu
+ doins game.conf minetest.conf
+
+ dodoc README.txt game_api.txt
+}
diff --git a/games-action/minetest_game/minetest_game-0.4.16.ebuild b/games-action/minetest_game/minetest_game-0.4.16.ebuild
new file mode 100644
index 000000000000..480fa56907fc
--- /dev/null
+++ b/games-action/minetest_game/minetest_game-0.4.16.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit vcs-snapshot
+
+DESCRIPTION="The main game for the Minetest game engine"
+HOMEPAGE="https://github.com/minetest/minetest_game"
+SRC_URI="https://github.com/minetest/${PN}/tarball/${PV} -> ${P}.tar.gz"
+
+LICENSE="GPL-2 CC-BY-SA-3.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=games-action/minetest-${PV}"
+
+src_install() {
+ insinto /usr/share/minetest/games/${PN}
+ doins -r mods menu
+ doins game.conf minetest.conf
+
+ dodoc README.txt game_api.txt
+}
diff --git a/games-action/moon-buggy/Manifest b/games-action/moon-buggy/Manifest
new file mode 100644
index 000000000000..83f75193bd32
--- /dev/null
+++ b/games-action/moon-buggy/Manifest
@@ -0,0 +1,6 @@
+DIST moon-buggy-1.0.51.tar.gz 263572 SHA256 352dc16ccae4c66f1e87ab071e6a4ebeb94ff4e4f744ce1b12a769d02fe5d23f SHA512 34da2ca8b79d4f95a762cb7142586d176fd1b58ea6f4375de424d73d6046c2dc3dbae30dddb3a78c8c2563fbfec01d9eaafe27b79cc78ffa22121ad5a2e9dc77 WHIRLPOOL 52d0a375af71d345e3ec3464a1d862c1a03212fc189dac89f5410753d9ae1487085d1b72d2cbf778b749883a201c0b165fcb08c85e114851b20e282d493089ed
+EBUILD moon-buggy-1.0.51-r1.ebuild 965 SHA256 219ae13a0ed2597914ec2b741fcc68b8dacab99c0a4d53d8704f444da11c7040 SHA512 780dcb8ccff5db72f544b883af9fc734379f0e33decc7fd2252099aaab534b3264e65fd354b795e57158105e6fa275d22f8d2f6043ecce796cfd9c403c957f9b WHIRLPOOL 6e0379fd856046406320b72da34da4d0c15d2efdf9ae76bbe4d6d3300a818ca14a7ee87b51a77fc241cd3bd42c7df70d5bae682f53707905f7469b280abe31c3
+EBUILD moon-buggy-1.0.51.ebuild 851 SHA256 e0908489f417dc5e066ca4520f605c120fb46a01320ac5e2a5c3e7172f031ad3 SHA512 941b3de3ea7c6340933b6c9ca51e6024c2f5b8e074d90c4975e74a31b4437d0d9fe53e2ae7942c73bbf334fdded77eb9603a1e3009975c30561c6cfbee122874 WHIRLPOOL cf9a988412bb12d3ffc62108d514f961f40677de06f5a8fcda8ee02558eaa55f45b7679c60ee93db95a7b2ce14ddd4d4dfdb3af6c325974c5f17cb6882d414e7
+MISC ChangeLog 2859 SHA256 a7745011dbdb5f6d0bf42a1aaf7fd60c9b85717a8a436cc8e76f508a9614218e SHA512 94376963b6cc7e44e6bdf0959237acfa9ce0d342393a77c1c2ab6fea3f8143e125aeb00d4a99f7781560b2795a3df58ab22fb12d815a1309f5a30b414659b5f8 WHIRLPOOL c7b6d8007181d825da63244ab18cba850b4c815ece77b900491391b8d35e55d38c52560dc37dcec206203ee1aef27fc3563ea875836a0468b8c613f80e64c3f7
+MISC ChangeLog-2015 3400 SHA256 ae50e662e9e279afe7ef24ab485b7884c290f3130764bb1cecd3c246a032dcae SHA512 febdb36d92e45cfb7b635f3e558f24b831ce4d437e6716fe63e1e6de0535fe5329d88eee21f326e0dfd628c6457af41a8cfe88b7a85db08b473f105adc36b9bc WHIRLPOOL 30497ebf8a712381fbd7b2f1d5268a7bc90266db0f572a9a4df43a03bbb0b68790054dd67b7c5fc107bed315dbd4a71c9286ce91ac848e980ae69df75fffc085
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-action/moon-buggy/metadata.xml b/games-action/moon-buggy/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-action/moon-buggy/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 type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/games-action/moon-buggy/moon-buggy-1.0.51-r1.ebuild b/games-action/moon-buggy/moon-buggy-1.0.51-r1.ebuild
new file mode 100644
index 000000000000..22373707aea9
--- /dev/null
+++ b/games-action/moon-buggy/moon-buggy-1.0.51-r1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools eutils user
+
+DESCRIPTION="A simple console game, where you drive a car across the moon's surface"
+HOMEPAGE="http://www.seehuhn.de/comp/moon-buggy.html"
+SRC_URI="http://www.seehuhn.de/data/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE=""
+
+RDEPEND="sys-libs/ncurses:0"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+pkg_setup(){
+ enewgroup gamestat 36
+}
+
+src_prepare() {
+ default
+ sed -i \
+ -e '/$(DESTDIR)$(bindir)\/moon-buggy -c/d' \
+ Makefile.am || die
+ rm -f missing
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --sharedstatedir="/var/games" \
+ --with-curses-libs="$(pkg-config ncurses --libs)"
+}
+
+src_install() {
+ default
+ touch "${D}/var/games/${PN}/mbscore"
+ fowners root:gamestat /usr/bin/${PN} /var/games/${PN} /var/games/${PN}/mbscore
+ fperms 2755 /usr/bin/${PN}
+ fperms 664 /var/games/${PN}/mbscore
+}
diff --git a/games-action/moon-buggy/moon-buggy-1.0.51.ebuild b/games-action/moon-buggy/moon-buggy-1.0.51.ebuild
new file mode 100644
index 000000000000..33a0460dc8b8
--- /dev/null
+++ b/games-action/moon-buggy/moon-buggy-1.0.51.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit autotools eutils games
+
+DESCRIPTION="A simple console game, where you drive a car across the moon's surface"
+HOMEPAGE="http://www.seehuhn.de/comp/moon-buggy.html"
+SRC_URI="http://www.seehuhn.de/data/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~arm x86"
+IUSE=""
+
+RDEPEND="sys-libs/ncurses:0"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ sed -i \
+ -e '/$(DESTDIR)$(bindir)\/moon-buggy -c/d' \
+ Makefile.am || die
+ rm -f missing
+ eautoreconf
+}
+
+src_configure() {
+ egamesconf \
+ --sharedstatedir="${GAMES_STATEDIR}" \
+ --with-curses-libs="$(pkg-config ncurses --libs)"
+}
+
+src_install() {
+ default
+ touch "${D}${GAMES_STATEDIR}"/${PN}/mbscore
+ fperms 664 "${GAMES_STATEDIR}"/${PN}/mbscore
+ prepgamesdirs
+}
diff --git a/games-action/mutantstorm-demo/Manifest b/games-action/mutantstorm-demo/Manifest
new file mode 100644
index 000000000000..19bda672dbb3
--- /dev/null
+++ b/games-action/mutantstorm-demo/Manifest
@@ -0,0 +1,6 @@
+DIST MutantStormDemo_1_33.sh.bin 9249167 SHA256 d1afce2b73a8adbef445ba60632163d499850498c430aa14d39377812e4f3561 SHA512 176c9f05ca03a1b8f397e046eac26c1442571806543df9b7e0545b8e32e0cc8f2fc827f03840c2082e600a9336ba2c7a7497ef336d9eb8c4e8f122abec413cad WHIRLPOOL 6d9e5bc5625f91be5785bcb52d0c6e4df353d3136a73c0c3b81e405f0f0b4e855d4faf503c2e369c25c55bf1e14d65194987045ce5848a3532fa68cdea6cbb61
+EBUILD mutantstorm-demo-1.33-r1.ebuild 1031 SHA256 b8ac75a36cf1708d9e2b4b451881189649d89493be162e2bd4b6c45ff08e4737 SHA512 8f117835feb59654850854fcd27291753838c131e41d3e7a48991f125a70472c7b4fda05a85bb778cd1d046aa279f9b909ee57f3e35c7afd4f3904eb1ffc1471 WHIRLPOOL 64dac8d44cd216ab88125a1332eed0e402981ec0cba7b2a8cc95cfe35ea06bcec4f166a8c38a72d6d17cf925f557f4a1b15a15cfc0fcc2aca35f72572d1d9eea
+EBUILD mutantstorm-demo-1.33.ebuild 1070 SHA256 25d6e710a7c899abde69f3c3f9e72e3744ad3f624fe7cdd947da45a8919d5ee1 SHA512 d95a91815e516484f4a4b90eb58b70a24064498a99fff31c02b66a54c68a9b126df3e8c14f8f3dcf505d30520c374305b531f441caabd4929bbec1823dd7563b WHIRLPOOL d1d9eb8ecfa6e9492d61d69426f5fad2ed1d5f9affa1162adf095299804380ea186254cd6e5bfacf5bac1f79148f21aaca15afb790da604427032900040dab41
+MISC ChangeLog 2456 SHA256 ff567de2061d9a543ba87b861a19757ea04cf88c091a0bfdeb99f88d7fdf1f35 SHA512 c2d64950d24b1db0c2e39d842119942004d6a0d03be1c3ae68172b0f37c6c41a3ffdbf8724cf8778b0acaa8ee001c905b329fafac9f06f471ab45de21332ba54 WHIRLPOOL 9fdcb4733277f529f8e0a509ded66259655c4098aab943d265afd6502dc0e78891078f28ab32e984a37abac3e9ace05fbb44f2a462a73d3a201647b528ffb715
+MISC ChangeLog-2015 2862 SHA256 9f691958fa087026fbf9ef1aac8766f46df82aacbe49b8c5497b3fa22837e4dc SHA512 61d55e8562168866ed297b9d6c06c6eee7c4bed71cc4fecd46ce15a671cda7bbdca3df1f84452cf23129e84c3f6310370fc613a1a198e08f775fadd6e4caf98e WHIRLPOOL 7b22ac1202652c047395c0bf5da531e0691e236c5f15788c105492715b85047f05d4cc8b805d3ee0770152cf7108b8f831305bfff26e8be5104e56a3c0eaa880
+MISC metadata.xml 1759 SHA256 2fd5b893d2796474e02aa83246cf2b54833e7ff52f85a63b84db2202608c066b SHA512 a5d3cbfc4ed0b4078a83f5c608129e6d4f69f1c76bb442f2907dd99bd2b13163080693b4ba6e07b2ca35d0e5495c64580a9aae3cf30e6746df435098a75dceea WHIRLPOOL 6c3bfd860f9a70f36042fafa1d2d732d8055642a3b47570e3a3798b051bf88f8e589b15cb5e091472b39b666f0dad7a87943c121bd1ad9de2f20748566346b22
diff --git a/games-action/mutantstorm-demo/metadata.xml b/games-action/mutantstorm-demo/metadata.xml
new file mode 100644
index 000000000000..b12b9be3c4cb
--- /dev/null
+++ b/games-action/mutantstorm-demo/metadata.xml
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+</maintainer>
+<longdescription>
+Mutant Storm progresses over 89 levels of psychedelic 3D arenas, that get
+ever more crowded with nasty beasties. This carnival of frenetic fun is
+showcased in a cutting edge graphics extravganza.
+
+Viewed from well above, you and your enemies can always be seen. Always be
+killed, and always be laughed at! There is no hiding. No tactics. No
+planning... No Net.
+Your enemies created this world and they sure ain't gonna help you
+out!
+
+You like to play hard? Then the game gets harder. Feel like your doing
+well? ...
+Enjoy it while it lasts!
+
+Survive long enough, and you get rewarded with score multipliers, doubling
+your score. Making your enemies even angrier, and that bit more determined
+to kill you!
+Lose a life and watch your multipliers tumble, and the beasties slow down
+and relax, safe in the knowledge that you are just a big softy really!!
+After you conquer all 89 levels you'll be awarded your first
+'White Belt' progressing if you can win all 8 belts until you
+have possess the much coveted Mutant Storm 'Black Belt'.
+
+Mutant Storm is inspired the classic RoboTron by Williams, Smash TV and
+Jeff Minters fantastic Llamatron.
+To those unacquainted, this means one hand controlling fire direction, and
+the other controlling movement. Sounds confusing? ...don't worry, just grab
+your trusty mouse ( or dual stick joypad if you want genuine Robotron style
+) and give it a go. Its very simple once you try, and very intuitive once
+you're used to it.
+</longdescription>
+</pkgmetadata>
diff --git a/games-action/mutantstorm-demo/mutantstorm-demo-1.33-r1.ebuild b/games-action/mutantstorm-demo/mutantstorm-demo-1.33-r1.ebuild
new file mode 100644
index 000000000000..c97fee4f7172
--- /dev/null
+++ b/games-action/mutantstorm-demo/mutantstorm-demo-1.33-r1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils unpacker
+
+DESCRIPTION="shoot through crazy psychedelic 3D environments"
+HOMEPAGE="http://www.pompomgames.com/"
+SRC_URI="ftp://ggdev-1.homelan.com/mutantstorm/MutantStormDemo_${PV/./_}.sh.bin"
+
+LICENSE="POMPOM"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE=""
+RESTRICT="strip"
+
+RDEPEND="
+ media-libs/libsdl[abi_x86_32(-)]
+ sys-libs/lib-compat
+ x11-libs/libX11[abi_x86_32(-)]
+ x11-libs/libXext[abi_x86_32(-)]
+ virtual/opengl[abi_x86_32(-)]"
+
+S=${WORKDIR}
+
+dir=/opt/${PN}
+Ddir=${D}/${dir}
+QA_PREBUILT="${dir:1}/mutantstorm-bin"
+
+src_install() {
+ insinto "${dir}"
+ doins -r menu script styles
+
+ exeinto "${dir}"
+ doexe bin/Linux/x86/*
+ # Remove libSDL since we use the system version and our version doesn't
+ # have TEXTRELs in it.
+ rm -f "${Ddir}"/libSDL-1.2.so.0.0.5
+ make_wrapper mutantstorm-demo ./mutantstormdemo "${dir}" "${dir}"
+
+ insinto "${dir}"
+ doins README.txt buy_me mutant.xpm pompom readme.htm
+}
diff --git a/games-action/mutantstorm-demo/mutantstorm-demo-1.33.ebuild b/games-action/mutantstorm-demo/mutantstorm-demo-1.33.ebuild
new file mode 100644
index 000000000000..8a8dcb8be6ca
--- /dev/null
+++ b/games-action/mutantstorm-demo/mutantstorm-demo-1.33.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils unpacker games
+
+DESCRIPTION="shoot through crazy psychedelic 3D environments"
+HOMEPAGE="http://www.pompomgames.com/"
+SRC_URI="ftp://ggdev-1.homelan.com/mutantstorm/MutantStormDemo_${PV/./_}.sh.bin"
+
+LICENSE="POMPOM"
+SLOT="0"
+KEYWORDS="-* amd64 x86"
+IUSE=""
+RESTRICT="strip"
+
+RDEPEND="sys-libs/lib-compat
+ media-libs/libsdl[abi_x86_32(-)]
+ x11-libs/libX11[abi_x86_32(-)]
+ x11-libs/libXext[abi_x86_32(-)]
+ virtual/opengl[abi_x86_32(-)]"
+
+S=${WORKDIR}
+
+dir=${GAMES_PREFIX_OPT}/${PN}
+Ddir=${D}/${dir}
+QA_PREBUILT="${dir:1}/mutantstorm-bin"
+
+src_install() {
+ insinto "${dir}"
+ doins -r menu script styles
+
+ exeinto "${dir}"
+ doexe bin/Linux/x86/*
+ # Remove libSDL since we use the system version and our version doesn't
+ # have TEXTRELs in it.
+ rm -f "${Ddir}"/libSDL-1.2.so.0.0.5
+ games_make_wrapper mutantstorm-demo ./mutantstormdemo "${dir}" "${dir}"
+
+ insinto "${dir}"
+ doins README.txt buy_me mutant.xpm pompom readme.htm
+
+ prepgamesdirs
+}
diff --git a/games-action/nighthawk/Manifest b/games-action/nighthawk/Manifest
new file mode 100644
index 000000000000..e0d19eb0923a
--- /dev/null
+++ b/games-action/nighthawk/Manifest
@@ -0,0 +1,8 @@
+AUX nighthawk-2.2-gcc42.patch 670 SHA256 d52062d0dcd962447eb773975d2de23fbfc9a8136f339d32a577590658f426d2 SHA512 f23188baa922881b36c45900e34bcaaa04b9c9752c52c13d5c03454e46853aae6c5f50375e87785b4d9866a0156b697b9dbfac0eb4f54aaa92fec5c5185686b1 WHIRLPOOL 1b6d73c37ba0636a865cde3c0beefbfce2c7740edc982630e29b3f7793111f606b82826c4979d206d7f0cac060eb67a9e0e24d72730b54239badd94ed4f94b51
+AUX nighthawk.patch 1235 SHA256 f19d57d8cbf53300b46c3dc853b2d5af039ab403fb16c39466307327c0fd179d SHA512 6362d1188c857f5b1236b5ca9e04e00d8eb85eb1a7e2efaa588c1b8cdcfd11f61a914e0db8f5bffd377c495b1464e7060c79d9205abbe84bfa24112c4be4e237 WHIRLPOOL 6c8ae24c018748ed9408877cb380967be712e7020576783257a933d67d2beb2e024ecce62cc9dd789a68f63a25073a9b75035ed59acffb154ef6a82f567dd01d
+DIST nighthawk-2.2-1.tar.gz 1079706 SHA256 739f154f7c2118879d9d7f5dc0c7d98e1564dc9ae79c864be5e3c04688820bf3 SHA512 dca5d0c01ed651dee0c29b939c832ae343ca70ff0eb7779e7c13007881cf75d96cadafbbac6b431cd473ce9b9e1347dd4ba90502627059439b5a9a557cbc3fcf WHIRLPOOL 2ffeb8de46bb77aa23bec66be4413ffd46c22a793662294316dd5fee2d309d76cc65eb68a4ec06f629dfe9e0accf9eb822c3275b932a3f6432ab5fc6e6dd944f
+EBUILD nighthawk-2.2-r1.ebuild 614 SHA256 1b38cb24012e4df0243e1fe6027824d9beca49173f6e2c476c594610b91c409b SHA512 f83933b6464b23625ec8395a1b2c2fc45b2229addc2a88c8fe8c9630e45b4ec85ef0cd59a0bc242e2966158e091e4a9e7ca8fc17505d2a8ed8eab3694b3245ec WHIRLPOOL 761eeec44c521d313675150c114b2047ee41feb4c3330ccfdb9860e6b777c140e4b165d675299cb505f21e4e55a4beb25302e2f77a9205531fdf367a7dee877b
+EBUILD nighthawk-2.2.ebuild 668 SHA256 8f152825b51fbaf424a5be54710e0d881ce8a16332689489e33beba388f711d9 SHA512 6b732719ccfeb97fffbf86f932a6cf83b6a8e7ec0ffcbb9ea5dfd88af53bb1b67ecdc219a5a1814068115594c8e6545ed963bf0e43eafaba763c0fb48f26f73c WHIRLPOOL 6b463f8f2fc0bf128d1801fef63d30efb6108476d74370681341e1ced43123ded8f4ecbf1ac6b4f1dd21cbac5ea1e90c27dff410c45d2912b0ed7b8e2752d5c7
+MISC ChangeLog 3448 SHA256 90aa3718eac897c807083d2643d4d6ecf27a26f6381cfe5e7b44dc910fff6a59 SHA512 fa06234cc36c0892abb73c6f1d8a05922289853940c3ce96a94f188d076be1680377ad3a847146222869c0a1063191146e5eaf78202f9f03b597a563a0029f6d WHIRLPOOL 53fedfb0c3d9e0a5d42246839ea4443c91325d106327f3447a814395ba8b0610c382bb5fc796b65b75ed510e4feb2759f9913fa5505db1449f7cb0e7b7f7c11e
+MISC ChangeLog-2015 1977 SHA256 81936b46ff778a261db22d37b18f8574b4cdad291b2266421340e8485c47eb36 SHA512 e1b7da68256a8bad89a0c675ddb7602754e52033bd89038de2ea153c9ab3187f2cda73511818be0f3193b418ffd3f722b274071af1d9bab4ef2813b8c12e0307 WHIRLPOOL 01512784758af19c899fd75a23895bae06be7c0d00b20572ac84d94dd8688340974e9ef39f3e01dcbb49c2328699e1cdffbb8e9e5b1ac152043a8845e7fa2cd1
+MISC metadata.xml 333 SHA256 ccd3988b3c4bca00d43240fc0df3403eb761e3d3edc391fdb31977bbc462ad53 SHA512 336358437939bf16817128792faf057aaf920f5530ca57ba425b9ac67ed0599ebfb2b1a21faecf1836f89be85a9a0b2751287ba625b4a4606c669c2192116ad4 WHIRLPOOL a365dbc6f7348cd66dbe548cc4cecb5ba64892aa92a79f199e621b6b69cb34e526de89189fdef2ff60ce77513fbfc435c1196bb5eef381c5c8ca43f6543a3187
diff --git a/games-action/nighthawk/files/nighthawk-2.2-gcc42.patch b/games-action/nighthawk/files/nighthawk-2.2-gcc42.patch
new file mode 100644
index 000000000000..a9ad8c98484a
--- /dev/null
+++ b/games-action/nighthawk/files/nighthawk-2.2-gcc42.patch
@@ -0,0 +1,24 @@
+--- a/src_sound/dsp_mixxer.c
++++ b/src_sound/dsp_mixxer.c
+@@ -302,10 +302,8 @@
+ for(sample_no = 0;sample_no < mix_buffer_size;sample_no++)
+ {
+ if(chmix[chan_no].funkctrl & 0x2)
+-#pragma pack(1)
+ sam = *((sDB *)chmix[chan_no].sample_addr +
+ (unsigned long)chmix[chan_no].sample_ptr);
+-#pragma pack()
+ else
+ sam = 0;
+
+@@ -364,10 +362,8 @@
+ for(sample_no = 0;sample_no < mix_buffer_size;sample_no++)
+ {
+ if(chmix[chan_no].funkctrl & 0x2)
+-#pragma pack(1)
+ sam = *((sDW *)chmix[chan_no].sample_addr +
+ (unsigned long)chmix[chan_no].sample_ptr);
+-#pragma pack()
+ else
+ sam = 0;
+ #ifdef DIGITAL_ECHOING
diff --git a/games-action/nighthawk/files/nighthawk.patch b/games-action/nighthawk/files/nighthawk.patch
new file mode 100644
index 000000000000..accef759e682
--- /dev/null
+++ b/games-action/nighthawk/files/nighthawk.patch
@@ -0,0 +1,46 @@
+diff -c -3 -r nighthawk-2.2/src/nighthawk.cc nighthawk.orig/src/nighthawk.cc
+*** nighthawk-2.2/src/nighthawk.cc Sun May 23 01:10:59 1999
+--- nighthawk.orig/src/nighthawk.cc Fri Jul 12 04:18:38 2002
+***************
+*** 20,25 ****
+--- 20,26 ----
+ #include <string.h>
+ #include <signal.h>
+ #include <pwd.h>
++ #include <time.h>
+ #include <sys/types.h>
+ #include <sys/file.h>
+ #include <sys/stat.h>
+diff -c -3 -r nighthawk-2.2/src_sound/Make.common nighthawk.orig/src_sound/Make.common
+*** nighthawk-2.2/src_sound/Make.common Sat May 1 18:04:08 1999
+--- nighthawk.orig/src_sound/Make.common Fri Jul 12 04:23:51 2002
+***************
+*** 10,16 ****
+ endif
+ endif
+
+! HOST_SAFE = 0
+
+ ifeq ($(HOSTTYPE),i386)
+ HOST_SAFE = 1
+--- 10,16 ----
+ endif
+ endif
+
+! HOST_SAFE = 1
+
+ ifeq ($(HOSTTYPE),i386)
+ HOST_SAFE = 1
+*** nighthawk-2.2/src/object.cc Mon Sep 30 21:54:56 2002
+--- nighthawk-orig/src/object.cc Mon Sep 30 21:55:05 2002
+***************
+*** 32,37 ****
+--- 32,39 ----
+ #include "tdroid_8xx.h"
+ #include "tdroid_9xx.h"
+
++ #include <string.h>
++
+ /***************************************************************************
+ *
+ ***************************************************************************/
diff --git a/games-action/nighthawk/metadata.xml b/games-action/nighthawk/metadata.xml
new file mode 100644
index 000000000000..e90f5a7f5e60
--- /dev/null
+++ b/games-action/nighthawk/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">night-hawk</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-action/nighthawk/nighthawk-2.2-r1.ebuild b/games-action/nighthawk/nighthawk-2.2-r1.ebuild
new file mode 100644
index 000000000000..bba6757c9e18
--- /dev/null
+++ b/games-action/nighthawk/nighthawk-2.2-r1.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="A tribute to Paradroid by Andrew Braybrook"
+HOMEPAGE="http://night-hawk.sourceforge.net/nighthawk.html"
+SRC_URI="ftp://metalab.unc.edu/pub/Linux/games/arcade/${P}-1.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="x11-libs/libXpm"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/nighthawk.patch
+ "${FILESDIR}"/${P}-gcc42.patch
+)
+
+src_prepare() {
+ default
+
+ sed -i -e 's:AC_FD_MSG:6:g' configure || die #218936
+ sed -i -e '/LDFLAGS = /d' src/Makefile.in || die
+}
diff --git a/games-action/nighthawk/nighthawk-2.2.ebuild b/games-action/nighthawk/nighthawk-2.2.ebuild
new file mode 100644
index 000000000000..718ad4382d1c
--- /dev/null
+++ b/games-action/nighthawk/nighthawk-2.2.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="A tribute to Paradroid by Andrew Braybrook"
+HOMEPAGE="http://night-hawk.sourceforge.net/nighthawk.html"
+SRC_URI="ftp://metalab.unc.edu/pub/Linux/games/arcade/${P}-1.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="x11-libs/libXpm"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/nighthawk.patch \
+ "${FILESDIR}"/${P}-gcc42.patch
+ sed -i -e 's:AC_FD_MSG:6:g' configure || die #218936
+ sed -i -e '/LDFLAGS = /d' src/Makefile.in || die
+}
+
+src_install () {
+ default
+ prepgamesdirs
+}
diff --git a/games-action/noiz2sa/Manifest b/games-action/noiz2sa/Manifest
new file mode 100644
index 000000000000..925a652233c4
--- /dev/null
+++ b/games-action/noiz2sa/Manifest
@@ -0,0 +1,8 @@
+AUX noiz2sa-0.51a-gcc41.patch 621 SHA256 a570c14514f583187584018108eee8e50593e2237dd8415dc1825b0a275c3b7c SHA512 895c81865aefd54a20f9b22b07f6a1dd8a11034a20c62f08888d73cba5e106c30a78c4b11575a991e2c34d84911614e1b5a1d34231b52f8d55ff9751d5d18bdc WHIRLPOOL 524740592b378588f2decefe98d15f53a41e97755a9e4e6bd692cc674fca86445d21ac7f60b2b768f14aaef6ff1dbed86b722df1c127eea4f2081520e4fea115
+AUX noiz2sa-0.51a-underlink.patch 971 SHA256 a0b40253459193e4329358d29bf201629ea200ea95eca6a86c9b3d8d4320ef42 SHA512 fcc3bc67fe1d06fdb8466112f6c3bd15b681ba3da83a0b70b09ebc734c53f390eb1f380cffb0d2753a7c42ca2d483255a39b1979e7b745ee9e63fbb0a65e506b WHIRLPOOL 43fdb4b5d2968dac0e53b6ff9d3174df63a76605c2a4558f43cb6d28d87764eeed1c61cf7103415fc11033166a2e00662ce1bcdca259978c7f25b45fda0405ea
+DIST noiz2sa-0.51a.tar.gz 8861907 SHA256 a7e2b689a320b49cd87a5666b38b934528c65d5a212efca81a21fdd45c9f88e6 SHA512 be0893f96240c00c15073d99e0c73667f65bd4aa98a303d6b4e0b7d5ac9fa510843b37841f9cf6c98f602cb7a70c518107272df1f42682a74ec52a3221e10174 WHIRLPOOL c9e48b9619c23e5bc38b5e48d8b2ebf6e14e8103a9d8420f328c7a58d334b0412a3b13249c0353e44a77dce4e44075b2f2e72536be8d6fc97f0367b26b231683
+EBUILD noiz2sa-0.51a-r1.ebuild 826 SHA256 c4078dfe092880d22a6996928fed49873b5e06fd668042d1212e613dfe565446 SHA512 09a03012f3ebf0ecefe7b4a3385a9e7ad73a2bfe7a43148af2c4afc56043e57e239518e92cfc2fcd00b582e22667a300d6f5ee2381013525d06ad874a33c936f WHIRLPOOL 62f2ab9771ce9cbe4249c447017d482d3c0d774ae37472a8385e63a5a4f0b27b77196d5bfaac2f272168dd28b69fd026969096a14cc7a30184d2f177e9488254
+EBUILD noiz2sa-0.51a.ebuild 1060 SHA256 4026ca2cfc5143f3eccb9ceaf346ca41fc959263661e4555aac8605606b02f33 SHA512 833441829b7a03f48984fb651990ae25696e294a019062e2db1754d5b2fde32d4ddb332d2de8db78f3dd9e649db555cfd6e6f98718aecb3e28999a534586a551 WHIRLPOOL 8313ee864c01ea46133cb1bc6d1ea90b81f6ccc26e337334a5bafa5fca5c9598a1a113fde0e233806c270c316f8303a32bb56f9cdb593fa99ea43fb078604604
+MISC ChangeLog 3072 SHA256 bed9fb03109e22a40c0a65564653dea91b4256d28c7d2bc4f2cf8188c623dc17 SHA512 0278181a58d23b8ea08e1176cc7dad7527a4a0bea2ba74ab08d8e90ac3170cda5ecd07b5eeee8cc6bc40ed51efc6d7f60c133a43d5f2e6d85713c0d581a6c898 WHIRLPOOL 28df291017a51b6262b56b4b661f0675b2651f222e17b93b1333a712797dbbd3b3888d7c6620d4bf1c7b8426585b50b88917832fd87037e9f5594b327c56c0d9
+MISC ChangeLog-2015 1747 SHA256 b7b89509baefbd79c74b134ec7f7a803f93155a850f32ffae2ec6014e21f6c3e SHA512 d883c113fd3189c9869baa6b181078429613c8931592a23da881247c8159cbe0b7dfa93b3d2177b7a568c1e4c2f266178ac6acc3637ced8af7f0f80d68cdfbe5 WHIRLPOOL ea69943f633c09a2d2fa046b1a16a55897e232716a9a9c2728315bfc37f4c479a66d1d2d9f8ff2408450f5235a9a633ab3177bae25a8decb944a4da0ad66d138
+MISC metadata.xml 330 SHA256 a3fb98162c9f4239fdaf9b2a9446c01d9429d0b78807eb1f481f973531473cec SHA512 420c33888091af44a7fa2b8d8763cb1ab3748a23485d1c987cea2ea6d03589880d4a9d9b10ede7395e232b19c6be135755c6a495dfbf77b45482f5c85c36a9a9 WHIRLPOOL e80d125b3b625af7c011ebdf3397ee9731ec2c4651938dd8984c688d0b01e3094230621928faa3d6e096a81cefa1a93b89720c38dab703154233616ee121609d
diff --git a/games-action/noiz2sa/files/noiz2sa-0.51a-gcc41.patch b/games-action/noiz2sa/files/noiz2sa-0.51a-gcc41.patch
new file mode 100644
index 000000000000..9f4f4fe2f1c0
--- /dev/null
+++ b/games-action/noiz2sa/files/noiz2sa-0.51a-gcc41.patch
@@ -0,0 +1,17 @@
+--- src/foecommand.h.old 2006-04-21 20:06:35.000000000 +0200
++++ src/foecommand.h 2006-04-21 20:06:57.000000000 +0200
+@@ -36,10 +36,10 @@
+
+ virtual void doChangeDirection(double d);
+ virtual void doChangeSpeed(double s);
+- virtual void FoeCommand::doAccelX(double ax);
+- virtual void FoeCommand::doAccelY(double ay);
+- virtual double FoeCommand::getBulletSpeedX();
+- virtual double FoeCommand::getBulletSpeedY();
++ virtual void doAccelX(double ax);
++ virtual void doAccelY(double ay);
++ virtual double getBulletSpeedX();
++ virtual double getBulletSpeedY();
+
+ private:
+ struct foe *foe;
diff --git a/games-action/noiz2sa/files/noiz2sa-0.51a-underlink.patch b/games-action/noiz2sa/files/noiz2sa-0.51a-underlink.patch
new file mode 100644
index 000000000000..6d6ab9f18636
--- /dev/null
+++ b/games-action/noiz2sa/files/noiz2sa-0.51a-underlink.patch
@@ -0,0 +1,31 @@
+--- a/makefile.lin 2011-06-14 08:03:28.928366818 +0200
++++ b/makefile.lin 2011-06-14 08:07:43.199113541 +0200
+@@ -4,18 +4,13 @@
+ NAME = noiz2sa
+ O = o
+ RM = rm -f
+-CC = gcc
+-CXX = g++
+
+ PROG = $(NAME)
+
+ DEFAULT_CFLAGS = `sdl-config --cflags`
+-LDFLAGS = `sdl-config --libs` -L. -lglut -lbulletml -lSDL_mixer -mwindows -lstdc++
++LDLIBS = `sdl-config --libs` -lGL -lbulletml -lSDL_mixer -lstdc++ -lm
+
+-MORE_CFLAGS = -O3
+-
+-CFLAGS = $(DEFAULT_CFLAGS) $(MORE_CFLAGS)
+-CPPFLAGS = $(DEFAULT_CFLAGS) $(MORE_CFLAGS) -I./bulletml/
++CPPFLAGS = $(DEFAULT_CFLAGS) -I./bulletml/
+
+ OBJS = $(NAME).$(O) ship.$(O) shot.$(O) frag.$(O) bonus.$(O) \
+ foe.$(O) foecommand.$(O) barragemanager.$(O) attractmanager.$(O) \
+@@ -23,7 +19,6 @@
+ screen.$(O) clrtbl.$(O) vector.$(O) degutil.$(O) rand.$(O) soundmanager.$(O)
+
+ $(PROG): $(OBJS)
+- $(CC) $(CFLAGS) -o $(PROG) $(OBJS) $(LDFLAGS)
+
+ clean:
+ $(RM) $(PROG) *.$(O)
diff --git a/games-action/noiz2sa/metadata.xml b/games-action/noiz2sa/metadata.xml
new file mode 100644
index 000000000000..953ec64f1e61
--- /dev/null
+++ b/games-action/noiz2sa/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">noiz2sa</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-action/noiz2sa/noiz2sa-0.51a-r1.ebuild b/games-action/noiz2sa/noiz2sa-0.51a-r1.ebuild
new file mode 100644
index 000000000000..785ff242ac91
--- /dev/null
+++ b/games-action/noiz2sa/noiz2sa-0.51a-r1.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils user
+
+DESCRIPTION="Abstract Shooting Game"
+HOMEPAGE="http://www.asahi-net.or.jp/~cs8k-cyu/windows/noiz2sa_e.html https://sourceforge.net/projects/noiz2sa/"
+SRC_URI="mirror://sourceforge/noiz2sa/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="
+ >=dev-libs/libbulletml-0.0.3
+ media-libs/sdl-mixer[vorbis]
+ virtual/opengl"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${PN}/src
+
+PATCHES=(
+ "${FILESDIR}"/${P}-gcc41.patch
+ "${FILESDIR}"/${P}-underlink.patch
+)
+
+src_prepare(){
+ default
+ cp makefile.lin Makefile || die
+}
+
+src_install(){
+ local datadir="/usr/share/games/${PN}"
+
+ dobin ${PN}
+ dodir "${datadir}"
+ dodoc ../readme*
+
+ cp -r ../noiz2sa_share/* "${D}/${datadir}" || die
+}
diff --git a/games-action/noiz2sa/noiz2sa-0.51a.ebuild b/games-action/noiz2sa/noiz2sa-0.51a.ebuild
new file mode 100644
index 000000000000..83359c5159c5
--- /dev/null
+++ b/games-action/noiz2sa/noiz2sa-0.51a.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="Abstract Shooting Game"
+HOMEPAGE="http://www.asahi-net.or.jp/~cs8k-cyu/windows/noiz2sa_e.html https://sourceforge.net/projects/noiz2sa/"
+SRC_URI="mirror://sourceforge/noiz2sa/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="media-libs/sdl-mixer[vorbis]
+ >=dev-libs/libbulletml-0.0.3
+ virtual/opengl"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${PN}/src
+
+src_prepare(){
+ epatch "${FILESDIR}"/${P}-gcc41.patch \
+ "${FILESDIR}"/${P}-underlink.patch
+ sed -i \
+ -e "s:/.noiz2sa.prf:/noiz2sa.prf:" \
+ -e "s:getenv(\"HOME\"):\"${GAMES_STATEDIR}\":" \
+ attractmanager.c || die
+
+ cp makefile.lin Makefile || die
+}
+
+src_install(){
+ local datadir="${GAMES_DATADIR}/${PN}"
+
+ dogamesbin ${PN}
+ dodir "${datadir}" "${GAMES_STATEDIR}"
+ cp -r ../noiz2sa_share/* "${D}/${datadir}" || die
+ dodoc ../readme*
+ touch "${D}${GAMES_STATEDIR}/${PN}.prf"
+ fperms 660 "${GAMES_STATEDIR}/${PN}.prf"
+ prepgamesdirs
+}
diff --git a/games-action/openastromenace/Manifest b/games-action/openastromenace/Manifest
new file mode 100644
index 000000000000..239dd547bcf7
--- /dev/null
+++ b/games-action/openastromenace/Manifest
@@ -0,0 +1,6 @@
+DIST astromenace-src-1.3.2.tar.bz2 55390211 SHA256 9b775df2b157565b97aca008dd879b867cd3377c07b829cee6b5342639357fe6 SHA512 0a06278a8a7fdaaf5c730590fcc1f8f59503fe4c94dcbb6dd6b6ee638048f9bebf7c49c75cd32f26e4cd08cfbe01f5082002860901b7196f08a55712bb3ed5d4 WHIRLPOOL b5dee8d3cef2f143e44730c2eb0a60e3537675499c7c726752fc016faace498bf9a951bf96fb03ff2b3e3b8699d9f0575cb5e39ceacceb01a0c270c21691aa1f
+EBUILD openastromenace-1.3.2-r1.ebuild 1515 SHA256 72c4877229f3c00e56da623c464446f631d0839ae5e170f1411cbc00d3a57027 SHA512 4acf0703ce89b8b1fe8e64f8af07dc852f5d41438b71243d2fcac11d8c32670d4e3a5bf71b27e2c7dde65f9246154158e9ef809e34d9f0014f77dc448eff3d3b WHIRLPOOL dc4d9ce7dabcd07fdd473e44b74a2dc147efd40255c80dd8486b32a8657d1c07f2cb979617a8844c291d371dde20f941d65827edd879b2b924e92b2fb1311df4
+EBUILD openastromenace-1.3.2.ebuild 1605 SHA256 80b8542841e1f6f5790233b9c8431443f1b287e0226ff2f424452c7c2ae9b8b4 SHA512 31f3842dbd4d64e20aac0a32aee21bb29b7cd6c6473609304479bc1b01d8a691a297f5cb817eeaf7d85f61cf8d20fa9809814de0d0b0825cc3b01f4fdc6e0de6 WHIRLPOOL d92430001d96961ac84773763daeff1d5278f97dcdaef2cf6013414a79e57de8bc4564d580d4ba3e47255597b182aefae2a03b251bb7d5e58a290dc67bb577fe
+MISC ChangeLog 2714 SHA256 a5b356523a062aace2dcd5db2551184028acf19ef5aee2da4e0e0fbbd0da632a SHA512 05b9cda130c83cdd8ea961ab8e85fea908607d80ed58d596a3c4acca6e723ea29d53da8403a13a1aa3d60e9f4f3309becff5c82ee389696f5a032e7214350774 WHIRLPOOL b64f8e22460b17bb05227eb8f323c288cb39c8ae97dbd7dc7073c510da1dc057dce5122fedd519fe5d02a8cf8c725390a98cbb45453ca4dceac8a5a1b83bbbe4
+MISC ChangeLog-2015 4097 SHA256 55ee25bcfcb0dd136928aa601e2371f9e19fb78b652ba4413909802b23984812 SHA512 a97a82a565eaba440645c79659a575aa10c2b26215ec1f7fc4db6eeea884bcb62e082dc6cfd5a3fce85f6436bd6059a8865b30fe85ea818f71388653264cb579 WHIRLPOOL 9f7344c0e0363070413af2d3b59c38b0f4487a8c11916dd4733ee9e9084c6dc579ae867f6414d72967fbaca6d817b3717e86d479b66571ffe2c256c8af6b09fa
+MISC metadata.xml 338 SHA256 d39703abfcdc995b130742cc94f476611cb21a97926c9faaa936f20135e5c365 SHA512 b2364e10d11ba13a39560816a4b7bc99bd00eb5917e81842a909813cd0fe55bb5324baf4181238fcd1122508bde58f2f0d064c6d6cf52401bc7a76372c6e6e44 WHIRLPOOL e67347b64b3a5a4f576b785b236e7403d685bcd4b962f6fa58f46f2910457f13dd247922881453aa8115cfd2b2041dded720fc4a5a8793b9a18d7d4781fba48d
diff --git a/games-action/openastromenace/metadata.xml b/games-action/openastromenace/metadata.xml
new file mode 100644
index 000000000000..6894dd761700
--- /dev/null
+++ b/games-action/openastromenace/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">openastromenace</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-action/openastromenace/openastromenace-1.3.2-r1.ebuild b/games-action/openastromenace/openastromenace-1.3.2-r1.ebuild
new file mode 100644
index 000000000000..ef7a4f821d85
--- /dev/null
+++ b/games-action/openastromenace/openastromenace-1.3.2-r1.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit gnome2-utils cmake-utils eutils
+
+DESCRIPTION="Modern 3D space shooter with spaceship upgrade possibilities"
+HOMEPAGE="https://sourceforge.net/projects/openastromenace/"
+SRC_URI="mirror://sourceforge/openastromenace/${PV}/astromenace-src-${PV}.tar.bz2"
+
+LICENSE="GPL-3 GPL-3+ CC-BY-SA-3.0 UbuntuFontLicense-1.0 OFL-1.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="
+ media-libs/freealut
+ media-libs/freetype:2
+ media-libs/libogg
+ media-libs/libsdl[joystick,video,X]
+ media-libs/libvorbis
+ media-libs/openal
+ virtual/glu
+ virtual/opengl
+ x11-libs/libXinerama"
+RDEPEND=${DEPEND}
+
+S=${WORKDIR}/AstroMenace
+
+src_prepare() {
+ default
+
+ # no messing with CXXFLAGS please.
+ sed -i -e '/-Os/d' CMakeLists.txt || die
+}
+
+src_configure() {
+ local mycmakeargs=("-DDATADIR=/usr/share/${PN}")
+
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+
+ "${CMAKE_BUILD_DIR}"/AstroMenace --pack \
+ --rawdata="${S}"/RAW_VFS_DATA \
+ --dir=$(dirname "${CMAKE_BUILD_DIR}") || die
+}
+
+src_install() {
+ newbin "${CMAKE_BUILD_DIR}"/AstroMenace "${PN}"
+
+ insinto /usr/share/${PN}
+ doins ../*.vfs
+
+ newicon -s 128 astromenace_128.png ${PN}.png
+ newicon -s 64 astromenace_64.png ${PN}.png
+
+ dodoc ChangeLog.txt ReadMe.txt
+
+ make_desktop_entry "${PN}" OpenAstroMenace
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/games-action/openastromenace/openastromenace-1.3.2.ebuild b/games-action/openastromenace/openastromenace-1.3.2.ebuild
new file mode 100644
index 000000000000..a84ba6057389
--- /dev/null
+++ b/games-action/openastromenace/openastromenace-1.3.2.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit gnome2-utils cmake-utils eutils games
+
+DESCRIPTION="Modern 3D space shooter with spaceship upgrade possibilities"
+HOMEPAGE="https://sourceforge.net/projects/openastromenace/"
+SRC_URI="mirror://sourceforge/openastromenace/${PV}/astromenace-src-${PV}.tar.bz2"
+
+LICENSE="GPL-3 GPL-3+ CC-BY-SA-3.0 UbuntuFontLicense-1.0 OFL-1.1"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="virtual/opengl
+ virtual/glu
+ media-libs/libsdl[joystick,video,X]
+ media-libs/openal
+ media-libs/freealut
+ media-libs/freetype:2
+ media-libs/libogg
+ media-libs/libvorbis
+ x11-libs/libXinerama"
+RDEPEND=${DEPEND}
+
+S=${WORKDIR}/AstroMenace
+
+src_prepare() {
+ # no messing with CXXFLAGS please.
+ sed -i -e '/-Os/d' CMakeLists.txt || die
+ epatch_user # bug #542930
+}
+
+src_configure() {
+ local mycmakeargs="-DDATADIR=${GAMES_DATADIR}/${PN}"
+
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+
+ "${CMAKE_BUILD_DIR}"/AstroMenace --pack \
+ --rawdata="${S}"/RAW_VFS_DATA \
+ --dir=$(dirname "${CMAKE_BUILD_DIR}") || die
+}
+
+src_install() {
+ newgamesbin "${CMAKE_BUILD_DIR}"/AstroMenace "${PN}"
+
+ insinto "${GAMES_DATADIR}/${PN}"
+ doins ../*.vfs
+
+ newicon -s 128 astromenace_128.png ${PN}.png
+ newicon -s 64 astromenace_64.png ${PN}.png
+
+ dodoc ChangeLog.txt ReadMe.txt
+
+ make_desktop_entry "${PN}" OpenAstroMenace
+ 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-action/openclonk/Manifest b/games-action/openclonk/Manifest
new file mode 100644
index 000000000000..2c520ff84433
--- /dev/null
+++ b/games-action/openclonk/Manifest
@@ -0,0 +1,8 @@
+AUX openclonk-7.0-paths.patch 2792 SHA256 6f49b7d0a9b4cf10113615cb3aed42c40fc98b0a317f87e7c15c6994a177f8a2 SHA512 3079ce128cba9b822bdb2df404a51a28df4152041d86bc55f10f6ddd057e29127b57da71471dd256fe48de9e30c1a33c760d99868c6611806e7468a2164d886c WHIRLPOOL 1d984daba7263f4f36237a9c78e2fcef42ca684b308c858713f1509c7c16eacfdcb7822254b5fe5de45d06a110e8fc209004663861b0f081b7c44ec47caeac33
+AUX openclonk-7.0-postinst.patch 668 SHA256 4e3561cfcecacc25eb3252255ac672a2e92d01703dc01cc1a2b8cd064b425d66 SHA512 77258633e8a4601f53666520561c40a533699d8de3429463d66a2b9659105c7838a099371648a92d91d1b1226abd6dd277717645e7409aed7ee40439bfab3634 WHIRLPOOL 8b357d32cbed73d1231bea57ef9480526a37dab3d86ebe0c3b3af4ee506f23df8ed1e5e9f5fac62448b71ce252d002fcf7a7e1b3596aa6240262a980565b6623
+AUX openclonk-wrapper-script.sh 229 SHA256 96fbef61769c0b4950dfde6d35648f9f5b2d9261c4b99687cfc02c24635ed939 SHA512 d31a2ffa6dbb014cfe3761d5a8b52b33f6b658cda317d0f7fc91ad8cc869fd93c486f9808da9ebe03e75255b7b2fedc2ef6c4f6372f1dce0575771ae9471a8a3 WHIRLPOOL 5395e432dab01140abcedcbf49573094bf13269b15fc7a1758a6c00258e1246560c1f50ae658fe27ef2cf579633debb4ed8efcd64d028bc9be2e2fb9603112d0
+DIST openclonk-7.0-src.tar.bz2 102143348 SHA256 bc1a231d72774a7aa8819e54e1f79be27a21b579fb057609398f2aa5700b0732 SHA512 b7ea557b5441986c0527abcb9c074c462f73bf45dd7ac4835329169d63ace5cc02e122d0dee7241da8621a7727ce9b09a2ad17e06dfc5610fcb529d350a51577 WHIRLPOOL 62619fa9b9071cdeff4b37dea703e822580a029d1a9193477117fc7426f47a999e4a1827775c5a215e1f7e7d786467fb9f4c6bea81e4ad9740f32df989d533b0
+EBUILD openclonk-7.0.ebuild 2571 SHA256 d1ef71d18f16bcd1c8ee2fdf393c00db5e8f1bd21172be50d9c3967f19e55f4c SHA512 5d36775588a1265869f5b2d787d81869fdbee9f69d168715954c8aa9743b73ac8ab1ed515f78d19e70f2c9b2a28134afe79f6f60bf7458a919744eedd28676b5 WHIRLPOOL 31a29de7e2699e9f952341544626c2bc3e320b051485c931a28f1d9b10d384991707d266e065daac9f0f7705f161066351608a78632ba7116c368bd16acce4c0
+MISC ChangeLog 5425 SHA256 d0f5d74207303fb18bd0e11a5096a9c06da5219e3943b34dbaa3938e8e2232e1 SHA512 6866ae68226a64b4aff49a0e5089c4c3d2238feec06467038cc00fb34049763894ec3a9bddda2c4c18018e9b72360399e832a3b7b1ab42065055d3f617ca8cbd WHIRLPOOL 6a556b8488a8ac00affb89ff0add2ee50285418cfa0baee2243ecf1b3b623d82a28829ac6cb6c2ec462f133c65a2a976f4a84973d16d81110d1277c81bef3c0d
+MISC ChangeLog-2015 3463 SHA256 6a3d0ee640a830dba39782df41c337055e9144d817e474efbf1e8db2065882c5 SHA512 64d15ef0d98d8ac91992f65a28b71ec60f540c5b05053c4f1aa8872b28e3452ee2f00a06dd3222d87ac7ea60516f5dc6ec8a67c23112fd3ec300f823858c2976 WHIRLPOOL c0b4f9592d7d4b7d9a4ae12cda925c9977d207f87c2a970e0a99fc2fa98d6ff6c22b676db4ed8548f26d8eaca5eed216a3a8635bf0d913f6205770a85a633503
+MISC metadata.xml 1027 SHA256 abda2b51bec434bbb7b6d64fb669c75b0d0a3e1e6d8eb9f5a70d13e730b8251c SHA512 566eb22d22644a7a16f94246b0f461ac7cac26702e2a21c443790f735155b8d30507862728847ab93f4e9c036561580363ef29de2173499e4b802a828ab1616f WHIRLPOOL 66da231d7780bfd2aced29a0bcafa3aa855791146973b01d8d7270465b57e772c05904a5c23ffa42eec297015d4ff1b2c42fb6899aa67d8e8a2551226a280150
diff --git a/games-action/openclonk/files/openclonk-7.0-paths.patch b/games-action/openclonk/files/openclonk-7.0-paths.patch
new file mode 100644
index 000000000000..4ebd6034a59b
--- /dev/null
+++ b/games-action/openclonk/files/openclonk-7.0-paths.patch
@@ -0,0 +1,68 @@
+Updated for openclonk-6.0, based on this patch:
+ From: Julian Ospald <hasufell@gentoo.org>
+ Date: Thu Feb 6 19:58:45 UTC 2014
+ Subject: make paths modifiable
+
+--- openclonk-release-6.0-src.orig/CMakeLists.txt
++++ openclonk-release-6.0-src/CMakeLists.txt
+@@ -42,6 +42,16 @@
+ set(${_var} "${_string}" PARENT_SCOPE)
+ endfunction()
+
++
++############################################################################
++# User selectable paths
++############################################################################
++set(INSTALL_BINDIR "bin/" CACHE PATH "Binary install destination")
++set(INSTALL_GAMES_BINDIR "games/bin" CACHE PATH "Games binary install destination")
++set(INSTALL_DATAROOTDIR "share/" CACHE PATH "Data root install destination")
++set(INSTALL_DATADIR "${INSTALL_DATAROOTDIR}" CACHE PATH "Data install destination")
++
++
+ ############################################################################
+ # User selectable options
+ ############################################################################
+@@ -1212,10 +1222,16 @@
+ # Assemble compiler flags
+ ############################################################################
+ if(UNIX)
++ if(NOT IS_ABSOLUTE "${INSTALL_DATADIR}")
++ set(ABSOLUTE_INSTALL_DATADIR "${CMAKE_INSTALL_PREFIX}/${INSTALL_DATADIR}")
++ else()
++ set(ABSOLUTE_INSTALL_DATADIR "${INSTALL_DATADIR}")
++ endif()
++
+ # Don't put this into CMAKE_CXX_FLAGS because otherwise it is cached,
+ # and when the path is changed both the old and new definition appears
+ # in the list of flags.
+- add_definitions("-DOC_SYSTEM_DATA_DIR=\"${CMAKE_INSTALL_PREFIX}/share/games/openclonk\"")
++ add_definitions("-DOC_SYSTEM_DATA_DIR=\"${ABSOLUTE_INSTALL_DATADIR}/openclonk\"")
+ endif()
+ if(OC_CXX_FLAGS)
+ list(REMOVE_DUPLICATES OC_CXX_FLAGS)
+@@ -1537,7 +1553,7 @@
+ DEPENDS "${native_c4group}"
+ VERBATIM
+ )
+- install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${group} DESTINATION share/games/openclonk)
++ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${group} DESTINATION "${INSTALL_DATADIR}/openclonk")
+ endif()
+ endforeach()
+
+@@ -1546,13 +1562,13 @@
+ add_dependencies(data groups)
+
+ # Install new files
+- install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/openclonk.desktop DESTINATION share/applications)
++ install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/openclonk.desktop DESTINATION "${INSTALL_DATAROOTDIR}/applications")
+ # Update the MIME cache -- this makes the clonk:// protocol handler actually work
+ install(CODE "execute_process(COMMAND update-desktop-database)")
+
+ # Install binaries
+- install(TARGETS openclonk DESTINATION games)
+- install(TARGETS c4group DESTINATION bin)
++ install(TARGETS openclonk DESTINATION "${INSTALL_GAMES_BINDIR}")
++ install(TARGETS c4group DESTINATION "${INSTALL_BINDIR}")
+ else()
+ install(TARGETS openclonk
+ BUNDLE DESTINATION .
diff --git a/games-action/openclonk/files/openclonk-7.0-postinst.patch b/games-action/openclonk/files/openclonk-7.0-postinst.patch
new file mode 100644
index 000000000000..26ad61ec6784
--- /dev/null
+++ b/games-action/openclonk/files/openclonk-7.0-postinst.patch
@@ -0,0 +1,14 @@
+update-desktop-database is called from the pkg_postinst stage instead.
+
+--- openclonk-release-6.0-src.orig/CMakeLists.txt
++++ openclonk-release-6.0-src/CMakeLists.txt
+@@ -1564,7 +1564,8 @@
+ # Install new files
+ install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/openclonk.desktop DESTINATION "${INSTALL_DATAROOTDIR}/applications")
+ # Update the MIME cache -- this makes the clonk:// protocol handler actually work
+- install(CODE "execute_process(COMMAND update-desktop-database)")
++ # --> ebuild, pkg_postinst stage
++ #install(CODE "execute_process(COMMAND update-desktop-database)")
+
+ # Install binaries
+ install(TARGETS openclonk DESTINATION "${INSTALL_GAMES_BINDIR}")
diff --git a/games-action/openclonk/files/openclonk-wrapper-script.sh b/games-action/openclonk/files/openclonk-wrapper-script.sh
new file mode 100644
index 000000000000..9f7e64442887
--- /dev/null
+++ b/games-action/openclonk/files/openclonk-wrapper-script.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+# wrapper prevents the game to look for .ocp files in the current dir
+# which can lead to weird behavior and game freeze
+
+[ -d ~/.clonk/openclonk ] || mkdir -p ~/.clonk/openclonk
+
+cd ~/.clonk/openclonk
+
+exec clonk "$@"
diff --git a/games-action/openclonk/metadata.xml b/games-action/openclonk/metadata.xml
new file mode 100644
index 000000000000..8d041fd7d412
--- /dev/null
+++ b/games-action/openclonk/metadata.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <upstream>
+ <changelog>http://hg.openclonk.org/openclonk/</changelog>
+ <doc lang="en">http://wiki.openclonk.org/w/C4Script_Documentation</doc>
+ <bugs-to>http://bugs.openclonk.org/</bugs-to>
+ </upstream>
+ <longdescription lang="en">
+ OpenClonk is the Open source successor of the Clonk gaming series.
+ OpenClonk is a project dedicated to the further development of the
+ Clonk game series. Our goal is to improve and make the real strengths
+ of Clonk more fun to play: Bustling mining, production lines and
+ economy, fast and fiddly melees. Another focus lies on the further
+ enchancement of the game engine and the extensibility/modability of
+ the game content with C4Script which has always been one of the most
+ important features of Clonk.
+ </longdescription>
+</pkgmetadata>
diff --git a/games-action/openclonk/openclonk-7.0.ebuild b/games-action/openclonk/openclonk-7.0.ebuild
new file mode 100644
index 000000000000..da2e07fe3693
--- /dev/null
+++ b/games-action/openclonk/openclonk-7.0.ebuild
@@ -0,0 +1,122 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+inherit cmake-utils eutils gnome2-utils python-any-r1 fdo-mime toolchain-funcs games
+
+MY_P=${PN}-release-${PV}-src
+
+DESCRIPTION="A free multiplayer action game where you control clonks"
+HOMEPAGE="http://openclonk.org/"
+SRC_URI="http://www.openclonk.org/builds/release/${PV}/openclonk-${PV}-src.tar.bz2"
+
+LICENSE="BSD ISC CLONK-trademark LGPL-2.1 POSTGRESQL"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="dedicated doc"
+
+RDEPEND="
+ >=dev-libs/boost-1.40:=
+ dev-libs/tinyxml
+ net-libs/libupnp
+ media-libs/libpng:0=
+ sys-libs/zlib
+ !dedicated? (
+ dev-libs/glib:2
+ media-libs/freealut
+ media-libs/freetype:2
+ media-libs/glew
+ media-libs/libsdl[X,opengl,sound,video]
+ media-libs/libvorbis
+ media-libs/openal
+ media-libs/sdl-mixer[mp3,vorbis,wav]
+ virtual/jpeg:0=
+ virtual/opengl
+ virtual/glu
+ x11-libs/gdk-pixbuf
+ x11-libs/gtk+:3
+ x11-libs/libXrandr
+ x11-libs/libX11
+ )
+ dedicated? ( sys-libs/readline:0= )"
+DEPEND="${RDEPEND}
+ || ( >=sys-devel/gcc-4.9 >=sys-devel/clang-3.3 )
+ virtual/pkgconfig
+ doc? (
+ ${PYTHON_DEPS}
+ dev-libs/libxml2[python]
+ sys-devel/gettext
+ )"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-paths.patch
+ "${FILESDIR}"/${P}-postinst.patch
+)
+S=${WORKDIR}/${P}-src
+
+pkg_pretend() {
+ if [[ $(tc-getCXX) == *g++* && $(gcc-version) < 4.9 ]] ; then
+ die 'The active compiler needs to be gcc 4.9 (or newer) or clang'
+ else
+ einfo 'The active compiler should be ok'
+ fi
+}
+
+pkg_setup() {
+ games_pkg_setup
+ use doc && python-any-r1_pkg_setup
+}
+
+src_prepare() {
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ $(usex dedicated \
+ "-DUSE_CONSOLE=ON -DUSE_X11=OFF -DUSE_GTK=OFF -DUSE_GTK3=OFF" \
+ "-DUSE_CONSOLE=OFF -DUSE_X11=ON -DUSE_GTK=ON -DUSE_GTK3=ON")
+ -DWITH_AUTOMATIC_UPDATE=OFF
+ -DINSTALL_GAMES_BINDIR="${GAMES_BINDIR}"
+ -DINSTALL_DATADIR="${GAMES_DATADIR}"
+ -DUSE_STATIC_BOOST=OFF
+ -DUSE_SYSTEM_TINYXML=ON
+ )
+
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+ use doc && emake -C docs
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ if ! use dedicated; then
+ mv "${ED%/}${GAMES_BINDIR}/"{openclonk,clonk} || die
+ newgamesbin "${FILESDIR}"/${PN}-wrapper-script.sh ${PN}
+ fi
+ use doc && dohtml -r docs/online/*
+
+ prepgamesdirs
+}
+
+pkg_preinst() {
+ games_pkg_preinst
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ gnome2_icon_cache_update
+ fdo-mime_desktop_database_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+ fdo-mime_desktop_database_update
+}
diff --git a/games-action/orbital-eunuchs-sniper/Manifest b/games-action/orbital-eunuchs-sniper/Manifest
new file mode 100644
index 000000000000..544cfecba0ee
--- /dev/null
+++ b/games-action/orbital-eunuchs-sniper/Manifest
@@ -0,0 +1,8 @@
+AUX orbital-eunuchs-sniper-1.30-datadir.patch 1017 SHA256 212e5995e72f21497338ace77502b800df0228e838a8293e54f051d8fdc82e04 SHA512 ad26d66bce8d90cb80360d113a55973a97131ab7dfda5580dd34539e9388acb08f171f6a266b83aa550642e395072f70e953ec01dadaeddfee3ec1508c34f5d0 WHIRLPOOL 151247b66f71c1b492b2a313b95c8fdac5d4048da967c97a46762ba629eb3b7cd68aa8392b3c41b91a88ae92dc67413702271ba41845b620077685070b9a9fc6
+AUX orbital-eunuchs-sniper-1.30-gcc43.patch 210 SHA256 04dec68ce8969cdb445cd5118d0f0f175c3a67e4ae676723de7d50a9860765b4 SHA512 60e33b96494b078ab5d11c79494f7e3e44f46644ab5731a32d7b3c5c6365e31f5e81755d301ba1d623aedba3839ae23c08442f22f70adf63c6a133fdb5c7a3ac WHIRLPOOL 4c23f0234c696ca074872cd6b2f9fd17f10575371a1462542df33070988e127f1a70aee8331e915bb9fb5b4c931ad264dcfa09b90dd0dd1251db835ac0a01169
+DIST orbital_eunuchs_sniper-1.30.tar.gz 4056847 SHA256 4c9c909183d27309cb967f64fef13f8c69f1c9a9d559bffb87045d21059ee70a SHA512 81da382bdb6cd25ea3f1a3ecebc2827173cd7c77903cd37b88f328ae2c42f5db5a668597ebb2fca1c5c307d6db2745614aebee6f5e1be48fade184381558f21a WHIRLPOOL b2c2108451629c06382375569cbf937318028236745aa25d74343b1b7de3c0634c92e8874c739f6343cbe48c0c6a0cfb7e11628c0a2529dbdc49eb674e317f6e
+EBUILD orbital-eunuchs-sniper-1.30-r1.ebuild 817 SHA256 7662b5a5774bdb0d3500deb3b8b3919fc0e9e40c544195d82ee32bedb715eac9 SHA512 060dd8f745d7f7c011f128af6ad63e8f87d23bb3359363cf35651b774e32acb42fe400171aa662e8e84bd019882332baac583dc5a935854e663e5ff1ec8428ba WHIRLPOOL 35ece634a36f632ea5c6f9978137cf2d6cda53de91ee88e7d90d3e860ea68032571b321414689f56d14c80645a9250a38b442cedebde0d4be6f9db0293f9c532
+EBUILD orbital-eunuchs-sniper-1.30.ebuild 828 SHA256 c25108adeb4580ff086629a1a07d679067a8382fd3fc59c6b331ade6c6980335 SHA512 a653a11db71a8011b39b7874df3b09be990e7e30948d1c2975bab45fa7e9ef24e660ba1837dcadfa1c4d366ee6305a629f32947e960a4403f600004207836d2d WHIRLPOOL 0d329fa7596595c3894d477438adda3b40baedf0d7cfb3b68b5fb4201269f0e4146d16a232aa71a1f20b617f2e2c6f2c54acb9dddda3006f343ce974758cb501
+MISC ChangeLog 2863 SHA256 a6b448f8965d75c6228d5ccedab1c471b9c9ec9544535210ad9064cadec5a787 SHA512 e8645082a1f9d5af2e7d271c976a7cddf42d6aba8f9580ec803105361eb3bfae75506f196c5f757f467092b886e8b46d119fd7dc72439d393e610824aa7bff28 WHIRLPOOL 3789d8c7f9c6a973774430408581ddc6c72f198ee6435d0e0ad0d80c87f927586b8c220981bd46cbda2206f78545ca0a8c3b89e71515afea3f0c78d0c08d7f74
+MISC ChangeLog-2015 2289 SHA256 9acccd038e258caaceb33e391161e72eb777981251faff457727a0b0b1de2540 SHA512 9d06acfd4544b1539ddc8634fc59387b98884102c310861e6b6f7253d21c1668d226f9358738f4c80201b5c2475a636a6b2d268ce2d185e6f6784e31580b5e5a WHIRLPOOL 716769688427236c3630d78df275ac2f1a0c416de53a17f4c8e2be9f65d05f9e776d4c9943efca3bd202539d60bdf4e50e81ccc06c11a516fb278fe0b9ee41ad
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-action/orbital-eunuchs-sniper/files/orbital-eunuchs-sniper-1.30-datadir.patch b/games-action/orbital-eunuchs-sniper/files/orbital-eunuchs-sniper-1.30-datadir.patch
new file mode 100644
index 000000000000..9492e1e8b967
--- /dev/null
+++ b/games-action/orbital-eunuchs-sniper/files/orbital-eunuchs-sniper-1.30-datadir.patch
@@ -0,0 +1,36 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -64,14 +64,12 @@
+ ,dnl default action of assigning shell value
+ with_games_dir="${runtime_datadir}/games"
+ )
+-AC_SUBST(datadir,"${with_games_dir}")
+ AC_DEFINE_UNQUOTED([GAMEDATADIR], "${datadir}/$PACKAGE_NAME",
+ [Game data directory])
+
+
+ #These should be automagically determined somehow.
+ #CPU Instruction Set. Should be automagic.
+-AC_SUBST(CPU_IS,`uname -m`)
+
+
+ echo $ac_n "ordering crap from http://www.amazon.com/gp/registry/296ST2NHEBO0Z" 1>&6
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -1,6 +1,4 @@
+-pkgdata_PROGRAMS = snipe2d.@CPU_IS@.dynamic snipe2d.@CPU_IS@.static
+-BUILT_SOURCES = snipe2d
+-bin_SCRIPTS = snipe2d
++bin_PROGRAMS = snipe2d
+ snipe2d_common = \
+ ai.cpp \
+ binds.cpp \
+@@ -28,7 +26,7 @@
+ sexpr/io.c \
+ sexpr/parser.c
+
+-snipe2d_@CPU_IS@_dynamic_SOURCES = $(snipe2d_common)
++snipe2d_SOURCES = $(snipe2d_common)
+
+ #snipe2d_@CPU_IS@_static_LDFLAGS = -static
+ snipe2d_@CPU_IS@_static_SOURCES = $(snipe2d_common)
diff --git a/games-action/orbital-eunuchs-sniper/files/orbital-eunuchs-sniper-1.30-gcc43.patch b/games-action/orbital-eunuchs-sniper/files/orbital-eunuchs-sniper-1.30-gcc43.patch
new file mode 100644
index 000000000000..d3747ed0802b
--- /dev/null
+++ b/games-action/orbital-eunuchs-sniper/files/orbital-eunuchs-sniper-1.30-gcc43.patch
@@ -0,0 +1,10 @@
+--- a/src/snipe2d.h
++++ b/src/snipe2d.h
+@@ -39,6 +39,7 @@
+ #include <stdlib.h>
+ #include <math.h>
+ #include <string.h>
++#include <climits>
+ #include <libgen.h>
+ #include <SDL/SDL.h>
+ #include <SDL/SDL_image.h>
diff --git a/games-action/orbital-eunuchs-sniper/metadata.xml b/games-action/orbital-eunuchs-sniper/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-action/orbital-eunuchs-sniper/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 type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/games-action/orbital-eunuchs-sniper/orbital-eunuchs-sniper-1.30-r1.ebuild b/games-action/orbital-eunuchs-sniper/orbital-eunuchs-sniper-1.30-r1.ebuild
new file mode 100644
index 000000000000..191962741a35
--- /dev/null
+++ b/games-action/orbital-eunuchs-sniper/orbital-eunuchs-sniper-1.30-r1.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools eutils
+
+MY_P=${PN//-/_}-${PV}
+DESCRIPTION="Snipe terrorists from your orbital base"
+HOMEPAGE="http://icculus.org/oes/"
+SRC_URI="http://filesingularity.timedoctor.org/${MY_P}.tar.gz"
+
+LICENSE="ZLIB"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="media-libs/libsdl[joystick,video]
+ media-libs/sdl-image[png]
+ media-libs/sdl-mixer[vorbis]"
+RDEPEND=${DEPEND}
+
+S=${WORKDIR}/${MY_P}
+
+PATCHES=(
+ "${FILESDIR}"/${P}-datadir.patch
+ "${FILESDIR}"/${P}-gcc43.patch
+)
+src_prepare() {
+ default
+
+ sed -i \
+ -e '/^sleep /d' \
+ configure.ac || die
+ eautoreconf
+}
+
+src_install() {
+ DOCS="AUTHORS ChangeLog readme.txt README TODO" \
+ default
+ make_desktop_entry snipe2d "Orbital Eunuchs Sniper"
+}
diff --git a/games-action/orbital-eunuchs-sniper/orbital-eunuchs-sniper-1.30.ebuild b/games-action/orbital-eunuchs-sniper/orbital-eunuchs-sniper-1.30.ebuild
new file mode 100644
index 000000000000..6cc4e47b2220
--- /dev/null
+++ b/games-action/orbital-eunuchs-sniper/orbital-eunuchs-sniper-1.30.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit autotools eutils games
+
+MY_P=${PN//-/_}-${PV}
+DESCRIPTION="Snipe terrorists from your orbital base"
+HOMEPAGE="http://icculus.org/oes/"
+SRC_URI="http://filesingularity.timedoctor.org/${MY_P}.tar.gz"
+
+LICENSE="ZLIB"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="media-libs/libsdl[joystick,video]
+ media-libs/sdl-mixer[vorbis]
+ media-libs/sdl-image[png]"
+RDEPEND=${DEPEND}
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-datadir.patch \
+ "${FILESDIR}"/${P}-gcc43.patch
+ sed -i \
+ -e '/^sleep /d' \
+ configure.ac || die
+ eautoreconf
+}
+
+src_install() {
+ DOCS="AUTHORS ChangeLog readme.txt README TODO" \
+ default
+ make_desktop_entry snipe2d "Orbital Eunuchs Sniper"
+ prepgamesdirs
+}
diff --git a/games-action/phobiaii/Manifest b/games-action/phobiaii/Manifest
new file mode 100644
index 000000000000..278d6590730c
--- /dev/null
+++ b/games-action/phobiaii/Manifest
@@ -0,0 +1,6 @@
+DIST linuxphobia-1.1-i386.tar.bz2 7709686 SHA256 f70b66a919d04e828d0c2e3e84f7e90659dd6891cbadfe66413298c5db7c87af SHA512 c8a799eb1e9b25781ef37487951b4213be29a60613bb2455df44e484e3553f153e5872aa97c70286eaf64ba78c621941318f702e5dc680a5442728866d2f7a1d WHIRLPOOL 42f23f89134e9635d217b3572ce85cfafecf2bacc759c0a938e1675e3ab6775be311e083df2409db4732c938a76af807e7659d130f79423c922aa2779f83d96c
+EBUILD phobiaii-1.1-r1.ebuild 968 SHA256 1daf5970e8004c5064b18460f9e1ded7f6a1634fb08edde28c39615c7692b79c SHA512 b7ad3f9ef90c2e898d77391943d20b558081536e65d0aef6adb98c51e0176ec4a121653218ddfd82d9228bc4c1df854d72a7d6db692cc760475fddb71dd05d5d WHIRLPOOL 7b5a35c5d9881561accabc93a20474e924ef354a9c28264b8cee81e581737ab53275f762864ac39d98bca4f070373184b6e0e13060228207e44394eff9725e1e
+EBUILD phobiaii-1.1.ebuild 1006 SHA256 57b2893c3bc33a296d1aa0f7f7175e13f4189910548ef112855d7af930e904eb SHA512 b88ded57b3af0458ac55242b2538ecdb33be814047e72b720694a2f15cd82cc2680a8ff74fc25bcb98d0c60693e56c5ba69ebe0b8a41dbb8370c8778e657b973 WHIRLPOOL c839fc2d5231d41cf3350a7902ea2f88fa7c20ab443f406938f081aba1d902abc61d8f92dfc7617ea0359881dddb5de272c5da655e7a5bbed3fc6bf0e54c30b9
+MISC ChangeLog 2430 SHA256 0b983d036409bff8baeb7f6afd03c47ee054d75bab9e1aa11797247e362259ac SHA512 9e3cc4b778dae893c1ae8334705151723accba817f9c33424a52716c4d1ba54ebaa5c88ed99563e04bb03c52ffd8e92621de604eeddc80f4aab10b89ab688eab WHIRLPOOL 35acc68a2b17b83662510f90264c4121396a105ce61fe1d995d1fe191fd072ea40a84085457e03421c7863b8710694c13e432fae0dce3660499be4e2327912e8
+MISC ChangeLog-2015 2256 SHA256 144979a6b256a1c52565698f5f57e22df5b088af046a759c151808687ade32ca SHA512 ee60f03227ee19289e86c51e2a519b17bd4a87251cc0effaa8b7798dd3523712402eb9c4eedbf63571c27535e25907fde9299ed9db0ae04f6c9ac7d9bf3c367f WHIRLPOOL 03128e47ce78b85ae57c0b3d232c99f0189ae441ada6062ad9090b82648546231e38d67d1dce6f7d5150c97ed2885557dfae8ef40e7aee60dbe9583a201c51d2
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-action/phobiaii/metadata.xml b/games-action/phobiaii/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-action/phobiaii/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 type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/games-action/phobiaii/phobiaii-1.1-r1.ebuild b/games-action/phobiaii/phobiaii-1.1-r1.ebuild
new file mode 100644
index 000000000000..4a1a879bf68a
--- /dev/null
+++ b/games-action/phobiaii/phobiaii-1.1-r1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils
+
+MY_P="linuxphobia-${PV}"
+DESCRIPTION="Just a moment ago, you were safe inside your ship, behind five inch armour"
+HOMEPAGE="http://www.lynxlabs.com/games/linuxphobia/index.html"
+SRC_URI="http://www.lynxlabs.com/games/linuxphobia/${MY_P}-i386.tar.bz2"
+
+LICENSE="freedist" #505612
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+ media-libs/libsdl[abi_x86_32(-)]
+ media-libs/sdl-mixer[abi_x86_32(-)]
+ sys-libs/lib-compat"
+
+S=${WORKDIR}/${MY_P}
+
+QA_PRESTRIPPED="opt/phobiaii/linuxphobia"
+QA_FLAGS_IGNORED="opt/phobiaii/linuxphobia"
+
+src_install() {
+ local dir=/opt/${PN}
+ make_wrapper phobiaII ./linuxphobia "${dir}"
+ newicon phobia2.ico ${PN}.ico
+ make_desktop_entry phobiaII "Phobia II" /usr/share/pixmaps/${PN}.ico
+ insinto "${dir}"
+ doins -r *
+ rm -rf "${D}/${dir}"/{*.desktop,*.sh,/pics/.xvpics}
+ fperms 775 "${dir}"/linuxphobia
+}
diff --git a/games-action/phobiaii/phobiaii-1.1.ebuild b/games-action/phobiaii/phobiaii-1.1.ebuild
new file mode 100644
index 000000000000..82d6f4d5b38a
--- /dev/null
+++ b/games-action/phobiaii/phobiaii-1.1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils games
+
+MY_P="linuxphobia-${PV}"
+DESCRIPTION="Just a moment ago, you were safe inside your ship, behind five inch armour"
+HOMEPAGE="http://www.lynxlabs.com/games/linuxphobia/index.html"
+SRC_URI="http://www.lynxlabs.com/games/linuxphobia/${MY_P}-i386.tar.bz2"
+
+LICENSE="freedist" #505612
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND="sys-libs/lib-compat
+ media-libs/sdl-mixer[abi_x86_32(-)]
+ media-libs/libsdl[abi_x86_32(-)]"
+
+S=${WORKDIR}/${MY_P}
+
+QA_PRESTRIPPED="opt/phobiaii/linuxphobia"
+QA_FLAGS_IGNORED="opt/phobiaii/linuxphobia"
+
+src_install() {
+ local dir=${GAMES_PREFIX_OPT}/${PN}
+ games_make_wrapper phobiaII ./linuxphobia "${dir}"
+ newicon phobia2.ico ${PN}.ico
+ make_desktop_entry phobiaII "Phobia II" /usr/share/pixmaps/${PN}.ico
+ insinto "${dir}"
+ doins -r *
+ rm -rf "${D}/${dir}"/{*.desktop,*.sh,/pics/.xvpics}
+ fperms 750 "${dir}"/linuxphobia
+ prepgamesdirs
+}
diff --git a/games-action/postalplus/Manifest b/games-action/postalplus/Manifest
new file mode 100644
index 000000000000..147eeb1b36b7
--- /dev/null
+++ b/games-action/postalplus/Manifest
@@ -0,0 +1,5 @@
+EBUILD postalplus-1-r1.ebuild 821 SHA256 0b743a8f5e50e615b9a1800f0a712c7fe874ffb77ce6f461371504fdfab3309c SHA512 709242ec1096a0041ebecf97e890e6aef0561536efdabe6dda665c0fe7e9841568ee681fc543391419741837f55ad45cadce588ef73ccf4e2bb128f84b3a67df WHIRLPOOL a294f8e787a99447bed2e1d613ad8150a2c3a2e2b28ddcb588e2ebe30f8f2898ebb47865ad942a433bbc1c09580666d4387f99435136c29c6bfac83690268f29
+EBUILD postalplus-1.ebuild 857 SHA256 dd8021b45c685f7ed2032ecdc47b38ff57d0d229d828425b999a8a93da83a71e SHA512 d86af0dc954016dcaa6c3b4c84496490c9471996f991a39765ca6be6e3f2266f3686986b75968bf51a287d69ddd30bbc5d897f4f844a0dd44d8745951ea98569 WHIRLPOOL f3796227a1634f5eb5f86e0dc86abfef00aca31e1d040937f72a76b05b3d4e84084873091c8bb649f897573cdd98b6b1905bc85eea51b205b7fca06110834ae8
+MISC ChangeLog 2432 SHA256 552ee8957ed5569887a3262118d4ec9e093317bbbbb08ee80a6524872c6ec469 SHA512 8e6b13ad9deca25bc9a527828c03e2c6c934c230ab1bcb0d07982a97dfef9018f4e1dc576f57a547a8f9857bf6d72ab50d8a7629e396330bb05eef97acad8e05 WHIRLPOOL f03a07a2cdc150d109b230fa655b39476c354661502840727f622638ed8a967b2dcc78e5cdf4b48b873f0cfe5ae06fdc3bde41bc01742462f0907a4bb5fc6c17
+MISC ChangeLog-2015 802 SHA256 d5a22b481fbb3277d0d580b3022b0145b2d52cb74a9f6488707691f5d1a9f9b8 SHA512 3def56e70252cd54c02d6e3b903e427c5ee416d0cec2572dbef5f36b2ac6d9d4d5bab8e2d040253d073f5fc70cdd32198eddb726f3a269b71431c97312d5d3fe WHIRLPOOL fcdfe7705c6a4991dc0746d4fa92834d1aa7a447b9faa4030a66506f255004c6e658f836d9242730827d785c8e3e34f445076d7fc64e063f4a3335f4b31d389d
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-action/postalplus/metadata.xml b/games-action/postalplus/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-action/postalplus/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 type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/games-action/postalplus/postalplus-1-r1.ebuild b/games-action/postalplus/postalplus-1-r1.ebuild
new file mode 100644
index 000000000000..569d32f5fa13
--- /dev/null
+++ b/games-action/postalplus/postalplus-1-r1.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils cdrom
+
+DESCRIPTION="Ultraviolent and controversial game featuring the Postal Dude"
+HOMEPAGE="http://www.lokigames.com/products/postal/"
+SRC_URI=""
+
+LICENSE="LOKI-EULA"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+RESTRICT="strip"
+
+S=${WORKDIR}
+
+src_install() {
+ local dir=/opt/${PN}
+
+ cdrom_get_cds postal_plus.ini
+ exeinto "${dir}"
+ doexe "${CDROM_ROOT}"/bin/x86/postal
+ insinto "${dir}"
+ doins "${CDROM_ROOT}"/{icon.{bmp,xpm},postal_plus.ini,README}
+ cp "${CDROM_ROOT}"/icon.xpm ${PN}.xpm || die
+
+ cp -r "${CDROM_ROOT}"/res "${D}${dir}" || die
+ find "${D}" -name TRANS.TBL -exec rm '{}' + || die
+
+ make_wrapper ${PN} ./postal "${dir}"
+ doicon ${PN}.xpm
+ make_desktop_entry ${PN} "Postal Plus" ${PN}
+}
diff --git a/games-action/postalplus/postalplus-1.ebuild b/games-action/postalplus/postalplus-1.ebuild
new file mode 100644
index 000000000000..eb18db26279c
--- /dev/null
+++ b/games-action/postalplus/postalplus-1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils cdrom games
+
+DESCRIPTION="Ultraviolent and controversial game featuring the Postal Dude"
+HOMEPAGE="http://www.lokigames.com/products/postal/"
+SRC_URI=""
+
+LICENSE="LOKI-EULA"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+RESTRICT="strip"
+
+S=${WORKDIR}
+
+src_install() {
+ local dir=${GAMES_PREFIX_OPT}/${PN}
+
+ cdrom_get_cds postal_plus.ini
+ exeinto "${dir}"
+ doexe "${CDROM_ROOT}"/bin/x86/postal
+ insinto "${dir}"
+ doins "${CDROM_ROOT}"/{icon.{bmp,xpm},postal_plus.ini,README}
+ cp "${CDROM_ROOT}"/icon.xpm ${PN}.xpm || die
+
+ cp -r "${CDROM_ROOT}"/res "${D}${dir}" || die
+ find "${D}" -name TRANS.TBL -exec rm '{}' +
+
+ games_make_wrapper ${PN} ./postal "${dir}"
+ doicon ${PN}.xpm
+ make_desktop_entry ${PN} "Postal Plus" ${PN}
+
+ prepgamesdirs
+}
diff --git a/games-action/powermanga/Manifest b/games-action/powermanga/Manifest
new file mode 100644
index 000000000000..1b4b4978f7d9
--- /dev/null
+++ b/games-action/powermanga/Manifest
@@ -0,0 +1,13 @@
+AUX powermanga-0.91-automake-1.13.patch 235 SHA256 e0aee03ac7f683e2545e58e148a4ca35d32e70ec394792e56202bea07700a95f SHA512 acbef65ce595a0dcf597cb02e1f6c05d3d24a2e9bd3c61efbdceb796edcf9015623157533d7389789dd0bc5b719f9e095aad05a948cdf21804e8a424a9b63ed4 WHIRLPOOL 2b66eff41b7cf8df9889da0d7d5da7706e9e7c75afa4aa8727745c87100f3940bfed6b049e87ef6f1931a81da185435c8e28bb97389cb99a29800af54ff8601c
+AUX powermanga-0.91-flags.patch 352 SHA256 18732d77eaa18d08973f66667048e899684f09b907b69403a2ba63eeaec62e44 SHA512 f10dd6d2c45c520085433a40085d79d48122870804283c309f317658f01238323d23075787751bab85bdde0a1d70c4d065fb7947c14a7bbe8e60e728503769e1 WHIRLPOOL bcee3f2147a4b79fdf85f4f1c79a43104a5814bbfa2640b1fcdb8211fbaa5c003ceedf8f62ae6d491d74f0f520a98021f1baac73c858309fcf3211ca56dbb348
+AUX powermanga-0.91-segfault.patch 877 SHA256 c7915dce8f27193fc398f2719d8f91885259086073ece3ebe2eba2955a7d205e SHA512 d9c8a3f02c528d2a18003818495e62996cb7884961427db6e4cf45f5cf4f0af052a24d097569c203bccb2e434b35baa9ea9cae22463e17ec7a39734df158fe0d WHIRLPOOL 8c3b4256d31e2b375691c7716afa7ca7b91a0c6793594511b80cd2f7ad734b9771d911eb263cdb6cdc10c76d25296f6e16346c460921c5cafdd80d5185398416
+AUX powermanga-0.91-underlink.patch 647 SHA256 bf57b08064282223389ef931be351ffc513371c895952bfa7f3e96c2caae1db5 SHA512 782f3833c11c83fb2549b9c9f616d6fd0b8f4cb177ebc0247e1f2457d62204269d829eae428017e17caafb44682673c17cb6387d075b5f8df02244f2fe351280 WHIRLPOOL 17f020997ef113d2fda277b82a841a0c35bc620b719e2c2e577adc91e7d9342e6a0e7b1e00f63d48d1623b8a7d253abdc9fdbc37412f81b9561497c6a3d0dfe0
+AUX powermanga-0.93.1-flags.patch 394 SHA256 2045e8f7ce04a9498dd83dd9f37ed48d6046e4170825e3ec379a20d5dbb02df9 SHA512 16cb19ea59cd632b7d9c7b2b61f74e664e81160d9bfd25604613057e2dd08d84e112cb355a0e18e76069fcf2693bffb381ce467f8d86218850659cb6ce5bd756 WHIRLPOOL 4d44084f4742759dc09816c4786afeccb4a8c372b62aad2035557bfe6f786addf9987bd2947fd1e5906f1d97c4556ed2440d416af44134c17c31f4735021f53e
+DIST powermanga-0.91.tgz 11114130 SHA256 b4830169682fecf4237d169a62a2d8fbf1a42ee66e811f7f60fa1b9a725ee9b3 SHA512 8c261d8802d8ac6c39910be56442c12fc7028c9677f0df0d975feb9bb38707c6886e06d9e14b45980a3805191b63a38e2c0d91833f4272f3f657f6dbc7b79452 WHIRLPOOL 9e150678e766377c0765cccf75c46411cdb17bb71ac05ba85970a3db71d3b94dad3d1005c4706685227cba5943cf30fa381ae0a443bf955a460d71ddc72dba93
+DIST powermanga-0.93.1.tgz 11855703 SHA256 da753fce83905a6db3fd8ea65c70c57d662362c86c429d6c6954417144f943e8 SHA512 852c0b4550db6c9e4ecd380077d390327f6649b6e8ab4cad246f23e7335e8622008f9fc753e2f474bf9cf7a5654b071e3f117f6a2b5be72ea53709912f4a0f41 WHIRLPOOL 856aa00fdd2a178530dd12750c514486982e02c004f00d8cc50adcfcdf9064ed76aae217a597ff21240f2054382ed5e7f169d46b9f6c490664e4f6b20d987bc0
+EBUILD powermanga-0.91.ebuild 1813 SHA256 1b5cdc11c42c9f5f4139e67f23a40959a964c926f63cd9824b1737cff38308ac SHA512 8fc95c4b340aa2bf1a1a2b087c2b93330c5b0b0675599c65fb4a373c3a0b4502a58dbb4949752c94a23b9057437b91809016ffd557edf52a8291df83f21ba3f6 WHIRLPOOL 77215d7682aa93d7e5623c1b92d175c8097886b93cffca28b90cdc24afd8dfe59ccef69de4ae909be8d15eb9215610d6520d9f460efce3418b5a12efc2f5d2fb
+EBUILD powermanga-0.93.1-r1.ebuild 1623 SHA256 271f07dfd3e18ad86c47e2ccee6d4a02526cd48a29e8da6cd9767da2c34009a9 SHA512 097b59d1286f4f44dd8afe51ea9dbb3b4f511e63eefba71784a06353dcabe764870657f5630115c1c5bdfe213b9c1c402d0e934125ce91b19b3957402636ebf6 WHIRLPOOL 9202adf89fec906d38ee6f193dfc11540e70cf64e71b40f6cab9bcb72795a22a1d681f337c0f6bdd4d726ae4c995f76bc8a2908e5ce54d16142adc73db9a78f7
+EBUILD powermanga-0.93.1.ebuild 1687 SHA256 553402d062c1878969d656b35391b108e2ae1df90a2bed99390ea7bfaed49710 SHA512 2d8cfd3937f9ea534f167da0cf8c4908e2de5e81e1fc032f221b3fcdd4cc8bf994ddd5e1ff846891cd5e686574d16d6e88dbb618f37c4b9230ea6f78484aad3b WHIRLPOOL 404aff181bf0d2f265169c03b21bc823807da4e34f77f58b5d29d6fb9cda28e9028efca2b534a96060fdd1861d5442c277d41a222605cc54f9515680537f70e4
+MISC ChangeLog 3632 SHA256 cd52865306356ce0c5653a420e6b1671476318247fd154a8c8198b60a9e047c8 SHA512 f88ca8966d8d0dafd5857ab255759c0757830a1968b83b29f1a3e9d4a2f17bb5f1db660324942fe404d409237d13afeed60f04ab2691f67d833ef78ef96ceaf0 WHIRLPOOL 540c4d6818b0abda15e1280d9839855e67d16eda7ef673567248f30604820cffb085633f853d94634a975182b1a4a8f54ed9a62aecec976d1f05725fcb304cc2
+MISC ChangeLog-2015 5902 SHA256 a3e14af78bdefdef86cd5e2d7f05eb6e4447619c3e8ac73cb55dd12e3ef94059 SHA512 41b2004c42b3b8190c4344701ece0558c9a391a475b0fc43ccbc49e10a4c76d2b3b7ce71aff8c31f368a3579fe1770e5900e6ebce9a611849a87a7f065fffbe3 WHIRLPOOL 909cd09dc8ec647f3e4cd1c7e3b8518ded106ead95fa6888dc39e543b87f3bb4f0230f323921dc5fa535d58713ba463e2035cd54b1d4eae6a2615c2069c6f302
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-action/powermanga/files/powermanga-0.91-automake-1.13.patch b/games-action/powermanga/files/powermanga-0.91-automake-1.13.patch
new file mode 100644
index 000000000000..bac18db0f4c9
--- /dev/null
+++ b/games-action/powermanga/files/powermanga-0.91-automake-1.13.patch
@@ -0,0 +1,11 @@
+--- configure.ac
++++ configure.ac
+@@ -5,7 +5,7 @@
+ AC_CANONICAL_SYSTEM
+ #AM_INIT_AUTOMAKE(powermanga,0.90)
+ AM_INIT_AUTOMAKE([foreign])
+-AM_CONFIG_HEADER(config.h)
++AC_CONFIG_HEADERS(config.h)
+
+ dnl Check our build tools
+ AC_PROG_CC
diff --git a/games-action/powermanga/files/powermanga-0.91-flags.patch b/games-action/powermanga/files/powermanga-0.91-flags.patch
new file mode 100644
index 000000000000..ca665add06cc
--- /dev/null
+++ b/games-action/powermanga/files/powermanga-0.91-flags.patch
@@ -0,0 +1,11 @@
+--- powermanga-0.91/configure.ac
++++ powermanga-0.91/configure.ac
+@@ -54,7 +54,7 @@
+ AC_DEFINE(USE_MALLOC_WRAPPER, 1, Define to use a malloc wrapper)
+ CFLAGS="-Wall -Werror -pedantic -Wextra -std=gnu99 -g"
+ else
+- CFLAGS="-O3 -Werror -Wall -pedantic -Wextra -std=gnu99"
++ CFLAGS="$CFLAGS -Wall -Wextra -std=gnu99"
+ fi
+
+ dnl Check for SDL_mixer
diff --git a/games-action/powermanga/files/powermanga-0.91-segfault.patch b/games-action/powermanga/files/powermanga-0.91-segfault.patch
new file mode 100644
index 000000000000..2b6d177373de
--- /dev/null
+++ b/games-action/powermanga/files/powermanga-0.91-segfault.patch
@@ -0,0 +1,22 @@
+https://bugs.gentoo.org/show_bug.cgi?id=422915
+
+--- src/shots.c
++++ src/shots.c
+@@ -490,8 +490,6 @@
+ {
+ bullet->img_angle = (Sint16) (bullet->angle / PI_BY_16);
+ }
+- /* save current angle for the calculation of the next angle */
+- bullet->img_old_angle = bullet->img_angle;
+ /* avoid negative indexes */
+ bullet->img_angle = (Sint16) abs (bullet->img_angle);
+ /* avoid a shot angle higher than the number of images */
+@@ -499,6 +497,8 @@
+ {
+ bullet->img_angle = (Sint16) (bullet->spr.numof_images - 1);
+ }
++ /* save current angle for the calculation of the next angle */
++ bullet->img_old_angle = bullet->img_angle;
+ /* draw the shot sprite */
+ draw_sprite (bullet->spr.img[bullet->img_angle],
+ (Uint32) bullet->spr.xcoord,
diff --git a/games-action/powermanga/files/powermanga-0.91-underlink.patch b/games-action/powermanga/files/powermanga-0.91-underlink.patch
new file mode 100644
index 000000000000..bb6f832cbd4c
--- /dev/null
+++ b/games-action/powermanga/files/powermanga-0.91-underlink.patch
@@ -0,0 +1,21 @@
+--- src/Makefile.am.old
++++ src/Makefile.am
+@@ -8,7 +8,7 @@
+ powermanga_CFLAGS = -DPREFIX=\"$(prefix)\" \
+ -DSCOREFILE=\"$(scoredir)/$(score)\" \
+ @XLIB_CFLAGS@ @SDL_CFLAGS@
+-powermanga_LDADD = @XLIB_LIBS@ @SDL_LIBS@
++powermanga_LDADD = @XLIB_LIBS@ @SDL_LIBS@ -lm
+
+ install-data-hook:
+ -chown root:games "$(DESTDIR)/$(gamesdir)/powermanga"
+--- src/images.c
++++ src/images.c
+@@ -31,6 +31,7 @@
+ #include "display.h"
+ #include "images.h"
+ #include "log_recorder.h"
++#include <zlib.h>
+
+ static char *bitmap_read (bitmap * bmp, Uint32 num_of_obj,
+ Uint32 num_of_images, char *addr,
diff --git a/games-action/powermanga/files/powermanga-0.93.1-flags.patch b/games-action/powermanga/files/powermanga-0.93.1-flags.patch
new file mode 100644
index 000000000000..e8a013a2e04e
--- /dev/null
+++ b/games-action/powermanga/files/powermanga-0.93.1-flags.patch
@@ -0,0 +1,11 @@
+--- a/configure.ac 2015-07-12 17:31:49.673817375 -0400
++++ b/configure.ac 2015-07-12 17:32:18.567700880 -0400
+@@ -54,7 +54,7 @@
+ AC_DEFINE(USE_MALLOC_WRAPPER, 1, Define to use a malloc wrapper)
+ CFLAGS="-Wall -Werror -pedantic -Wextra -std=gnu99 -g $CFLAGS"
+ else
+- CFLAGS="-O3 -Wall -Wextra -std=gnu99 $CFLAGS"
++ CFLAGS="$CFLAGS -Wall -Wextra -std=gnu99"
+ fi
+
+ dnl Check for SDL_mixer
diff --git a/games-action/powermanga/metadata.xml b/games-action/powermanga/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-action/powermanga/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 type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/games-action/powermanga/powermanga-0.91.ebuild b/games-action/powermanga/powermanga-0.91.ebuild
new file mode 100644
index 000000000000..777d44c0a3e2
--- /dev/null
+++ b/games-action/powermanga/powermanga-0.91.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils autotools games
+
+DESCRIPTION="An arcade 2D shoot-em-up game"
+HOMEPAGE="http://linux.tlk.fr/"
+SRC_URI="http://linux.tlk.fr/games/Powermanga/download/${P}.tgz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND=">=media-libs/libsdl-1.2[sound,joystick,video]
+ media-libs/libpng:0
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXxf86dga
+ media-libs/sdl-mixer[mod]"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ local f
+ for f in src/assembler.S src/assembler_opt.S ; do
+ einfo "patching $f"
+ cat <<-EOF >> ${f}
+ #if defined(__linux__) && defined(__ELF__)
+ .section .note.GNU-stack,"",%progbits
+ #endif
+ EOF
+ done
+ epatch \
+ "${FILESDIR}"/${P}-underlink.patch \
+ "${FILESDIR}"/${P}-segfault.patch \
+ "${FILESDIR}"/${P}-flags.patch \
+ "${FILESDIR}"/${P}-automake-1.13.patch
+ sed -i \
+ -e "/scoredir/s#/var/games/powermanga#${GAMES_STATEDIR}#" \
+ src/Makefile.am || die
+ eautoreconf
+}
+
+src_configure() {
+ egamesconf --prefix=/usr
+}
+
+src_install() {
+ newgamesbin src/powermanga powermanga.bin
+ doman powermanga.6
+ dodoc AUTHORS CHANGES README
+
+ insinto "${GAMES_DATADIR}/powermanga"
+ doins -r data sounds graphics texts
+
+ find "${D}${GAMES_DATADIR}/powermanga/" -name "Makefil*" -execdir rm -f \{\} +
+
+ insinto "${GAMES_STATEDIR}"
+ local f
+ for f in powermanga.hi-easy powermanga.hi powermanga.hi-hard ; do
+ touch "${D}${GAMES_STATEDIR}/${f}" || die
+ fperms 660 "${GAMES_STATEDIR}/${f}"
+ done
+
+ games_make_wrapper powermanga powermanga.bin "${GAMES_DATADIR}/powermanga"
+ make_desktop_entry powermanga Powermanga
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ ewarn "NOTE: The highscore file format has changed."
+ ewarn "Older highscores will not be retained."
+}
diff --git a/games-action/powermanga/powermanga-0.93.1-r1.ebuild b/games-action/powermanga/powermanga-0.93.1-r1.ebuild
new file mode 100644
index 000000000000..01a45a6d43cd
--- /dev/null
+++ b/games-action/powermanga/powermanga-0.93.1-r1.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils autotools user
+
+DESCRIPTION="An arcade 2D shoot-em-up game"
+HOMEPAGE="http://linux.tlk.fr/"
+SRC_URI="http://linux.tlk.fr/games/Powermanga/download/${P}.tgz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=media-libs/libsdl-1.2[sound,joystick,video]
+ media-libs/libpng:0
+ media-libs/sdl-mixer[mod]
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXxf86dga"
+DEPEND=${RDEPEND}
+
+PATCHES=(
+ "${FILESDIR}"/${P}-flags.patch
+)
+
+pkg_setup(){
+ enewgroup gamestat 36
+}
+
+src_prepare() {
+ default
+
+ local f
+ for f in src/assembler.S src/assembler_opt.S ; do
+ einfo "patching $f"
+ cat <<-EOF >> ${f}
+ #if defined(__linux__) && defined(__ELF__)
+ .section .note.GNU-stack,"",%progbits
+ #endif
+ EOF
+ done
+ eautoreconf
+}
+
+src_install() {
+ newbin src/powermanga powermanga.bin
+ doman powermanga.6
+ dodoc AUTHORS CHANGES README
+
+ insinto "/usr/share/${PN}"
+ doins -r data sounds graphics texts
+
+ find "${D}/usr/share/${PN}" -name "Makefil*" -execdir rm -f \{\} +
+
+ dodir "/var/games/${PN}"
+ fowners root:gamestat /var/games/${PN} /usr/bin/${PN}.bin
+ fperms 660 /var/games/${PN}
+ fperms 2755 /usr/bin/${PN}.bin
+
+ local f
+ for f in powermanga.hi-easy powermanga.hi powermanga.hi-hard ; do
+ touch "${D}/var/games/${f}" || die
+ fperms 660 "/var/games/${f}"
+ done
+
+ make_wrapper powermanga powermanga.bin "/usr/share/${PN}"
+ make_desktop_entry powermanga Powermanga
+}
+
+pkg_postinst() {
+ ewarn "NOTE: The highscore file format has changed."
+ ewarn "Older highscores will not be retained."
+}
diff --git a/games-action/powermanga/powermanga-0.93.1.ebuild b/games-action/powermanga/powermanga-0.93.1.ebuild
new file mode 100644
index 000000000000..52aa04caee1a
--- /dev/null
+++ b/games-action/powermanga/powermanga-0.93.1.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils autotools games
+
+DESCRIPTION="An arcade 2D shoot-em-up game"
+HOMEPAGE="http://linux.tlk.fr/"
+SRC_URI="http://linux.tlk.fr/games/Powermanga/download/${P}.tgz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND=">=media-libs/libsdl-1.2[sound,joystick,video]
+ media-libs/libpng:0
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXxf86dga
+ media-libs/sdl-mixer[mod]"
+DEPEND=${RDEPEND}
+
+src_prepare() {
+ local f
+ for f in src/assembler.S src/assembler_opt.S ; do
+ einfo "patching $f"
+ cat <<-EOF >> ${f}
+ #if defined(__linux__) && defined(__ELF__)
+ .section .note.GNU-stack,"",%progbits
+ #endif
+ EOF
+ done
+ epatch "${FILESDIR}"/${P}-flags.patch
+ sed -i \
+ -e "/scoredir/s#/var/games/powermanga#${GAMES_STATEDIR}#" \
+ src/Makefile.am || die
+ eautoreconf
+}
+
+src_configure() {
+ egamesconf --prefix=/usr
+}
+
+src_install() {
+ newgamesbin src/powermanga powermanga.bin
+ doman powermanga.6
+ dodoc AUTHORS CHANGES README
+
+ insinto "${GAMES_DATADIR}/powermanga"
+ doins -r data sounds graphics texts
+
+ find "${D}${GAMES_DATADIR}/powermanga/" -name "Makefil*" -execdir rm -f \{\} +
+
+ insinto "${GAMES_STATEDIR}"
+ local f
+ for f in powermanga.hi-easy powermanga.hi powermanga.hi-hard ; do
+ touch "${D}${GAMES_STATEDIR}/${f}" || die
+ fperms 660 "${GAMES_STATEDIR}/${f}"
+ done
+
+ games_make_wrapper powermanga powermanga.bin "${GAMES_DATADIR}/powermanga"
+ make_desktop_entry powermanga Powermanga
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ ewarn "NOTE: The highscore file format has changed."
+ ewarn "Older highscores will not be retained."
+}
diff --git a/games-action/rafkill/Manifest b/games-action/rafkill/Manifest
new file mode 100644
index 000000000000..a4de28a8a5c6
--- /dev/null
+++ b/games-action/rafkill/Manifest
@@ -0,0 +1,10 @@
+AUX rafkill-1.2.3-build.patch 779 SHA256 b877d78f5494aa758365b0c24c6151f1332e49fedaf2bda80801f5972ab3bccf SHA512 8b74f5de9b868beb436c7d63d444b5e375edfab22e1f80be2cc6b81b5b6ffe76970357a11f24c4a72ea8ad8b7ed660e7ebb2d4a1378411681a8780b5e18f151d WHIRLPOOL 0ec99894620eeca2e1671acd0a2213498b410b6278cdcb66e2c919e807a0689266386b1d39124cf3f771dbca4ad51a3396bf8ae85dff388982888beea9d06e1a
+AUX rafkill-1.2.3-gcc43.patch 3780 SHA256 adc119bac173cebd1c03efa048dde0f0bbd20dd7dd4da2f6003e38b0aae27f86 SHA512 5201e8d4d357780d94286387b673a5feb8f8392a4e13a154025841a4242c0be96fbf7af3a4a6224d429e1abb16bf8726983be69abef72de73ec97b902b381c6f WHIRLPOOL 59ca98a993624c3c783a4aef06162af79df4d1b1d45c0220d36fd4c373cfb86ea207cd69fc6a1025ba40066ba03ad9c42873e5fc5c69f6eda5fa54f0ac363d50
+AUX rafkill-1.2.3-gcc47.patch 283 SHA256 365a91c98d5f2ce72a99151b4e7ba498f03ab1f4197504c1c7bc47383702155e SHA512 135a0b48bc5020870b45836c38f30c73f5f2ea798016ee5f96d01870d59a71712f277f9c151facdd358c3106b625d4d1884316dd4f8cc7958d0f22bc606c21ae WHIRLPOOL 0e20a2287c965039e65b65f9eea4759eed532cac3c97aefb8f75919063150dd913e3c8b7a477cc06c2530e13f1e36da0649d9e1b012b800d56009e4efce455ca
+AUX rafkill-1.2.3-ldflags.patch 511 SHA256 9e4182b10bd7d9cebe0a62b70e6cc91cd3859163b5c8a53c62d22f784f4d4c1c SHA512 b52f17e4ac5dc2d8f1ea61860cb51342add7cd7621fb8dcf452ee523c2eab6d18d712a74d94a7ac69d4d64c7134d31be9153d4dd354ce30d448187363c39cc27 WHIRLPOOL 939f481be199a6398842150ae67ba3a2b354934ac264e6f6ae8532ff2d87c3489e03e3af498b71880d16c99d69568847163925426281b9442798c2247e282229
+DIST rafkill-1.2.3.tar.gz 6221729 SHA256 7d43026b33b63b2b01ea2d0169653749e6f8404b30ba5a2701e797bb16d0a63a SHA512 1ab8ce90f9b823092432519dbafed43db3eb6f9189dda4ced1bbce78b826b37759d0768fffdd2df1c77cbbbf1c3c88db1cc9fe1b59c815d832ebc9aed279d03c WHIRLPOOL 657296a4f843c680672f2262359796086cb9f7c2d9e88ecef591713738edcbf02d8d527902ed2b4366d3de3aea7f11e95e62746ed259bbbeb5e6d427531d4b2c
+EBUILD rafkill-1.2.3-r1.ebuild 844 SHA256 246fa8fc3f8d251d2025a85391e59bcac73215761246aea87d320347048e72e4 SHA512 214925f66904d69ed5c3d6fe4b512d48dc217361f7c481a1bdc1b0136927a1469c5ad1e06a6b58b81d6ce3b5db8cd5881e1db59ec6a37a59737f71116b47c99e WHIRLPOOL a16fcc0dd95e6d07f55c4c3604e03b5869b5bc553c8e3692a3376b35691bea78a862703d4d705959d818be85b665e2a84fc468648732a12513e7ae7c4d472b9f
+EBUILD rafkill-1.2.3.ebuild 839 SHA256 2e394b36f15dffc1fd90e9537f5aafa7ef4d5c87b17ccdfba4ef4a35b64fb17c SHA512 6d538ff30c2627d7d1abaa5a57bcccea666a53449b4b6d20726961861ed857977d8509e93b3021d1e048eafbed7da9de8f51edc8da73173b4f3e2a269bba648d WHIRLPOOL b4e758a6382f068d19d0c0851407210f765dc40d9f7e40e8f18300f41a91427e7d4862411a2af5a09bc75aba1b95e15d71a9948ecd5eb680df28a8dec5e79ce6
+MISC ChangeLog 2710 SHA256 db9aadf664bf7fbb96a988f35ce5617a696ad682a6f034f1a0220a8ebb939ded SHA512 2ff19ef908c49d808fbca9315f93c2ec6fc37de56fb0ab971606266b8a8b648fe8cef433e85658fde334637f93fda40c522c2251a496ce6f40658dfeff6e4469 WHIRLPOOL 3c515fc9adb81ee94f2bdc8b74bba68c51acfdfe13b96a11437dfcb80a1cf29cc38cc62d58772fc40058afef9b89b2b7d9ef3e9c8b60a6c7aaebcfea81d1ccad
+MISC ChangeLog-2015 1837 SHA256 ccaad71c002d9c8be3ac9a6e60c7aeb39d70d0f07e94cc51b4d2c1d98fad34ab SHA512 d9ca329ca4dfdb5380b26907a0237647e7950fc99243f3c0557e2ffea26fa3d30b169d74024f82b02d5c8ecf7c64cf946eb0d958d7f88aaf4e75b163739727bc WHIRLPOOL cd5e4bcd391450a4bb7b2a60d364613499e56597bcffd77bed560b4cac998ce791b99effc03c35129cae8b35852ba7cd3b1cfdfba6672e1f357c79b446be9e49
+MISC metadata.xml 331 SHA256 04b7b54f0f9baf0c3eab73d23e3e9a8aa99bf2ae008c7d80551d3a6e15876eeb SHA512 ed3115f06f8e3884e5b1944f244adc2b396bdc0c6b51436f443868ed3c92651157157eaf9a4fe22d6cd352ad6fa856b39d35ef72503a622c4fff8d70a6ba5232 WHIRLPOOL 0a6ac9ade0889effcd699eaa1cb180abb8f09b52b5ae98314f5160e7b68ce6871fc87cb3b813daba12bc2779df01437a1c25e81e973c656f980326b2bf5c64fe
diff --git a/games-action/rafkill/files/rafkill-1.2.3-build.patch b/games-action/rafkill/files/rafkill-1.2.3-build.patch
new file mode 100644
index 000000000000..26e5aa64c101
--- /dev/null
+++ b/games-action/rafkill/files/rafkill-1.2.3-build.patch
@@ -0,0 +1,27 @@
+--- a/SConstruct
++++ b/SConstruct
+@@ -8,8 +8,8 @@
+
+ print "Use 'scons -h' for help"
+
+-prefix = '/usr/local/games'
+-bin = '/usr/local/bin'
++prefix = 'data'
++bin = 'src'
+ if sys.platform == 'win32':
+ try:
+ Execute(Mkdir('gen'))
+@@ -46,7 +46,12 @@
+ # print "Install directory = $prefix"
+ # print "Directory where symlinked binary will go = $bin"
+
+-flags = [ '-g3', '-Wall', '-fno-rtti', '-Woverloaded-virtual', '-O2', '-DINSTALL_DIR=\\\"$prefix\\\"' ];
++SConsignFile()
++env.Replace(CXX = os.environ['CXX'])
++if os.environ.get('CXXFLAGS'):
++ env.Replace(CPPFLAGS = os.environ['CXXFLAGS'])
++
++flags = [ '-Wall', '-fno-rtti', '-Woverloaded-virtual' ];
+ env.Append( CCFLAGS = flags, CPPPATH = [ "build" ] )
+
+ # SConscript( 'src/SConscript', build_dir='build', exports = 'env' );
diff --git a/games-action/rafkill/files/rafkill-1.2.3-gcc43.patch b/games-action/rafkill/files/rafkill-1.2.3-gcc43.patch
new file mode 100644
index 000000000000..7284a74a1ac5
--- /dev/null
+++ b/games-action/rafkill/files/rafkill-1.2.3-gcc43.patch
@@ -0,0 +1,106 @@
+Index: rafkill-1.2.2/src/guns/gun_findgun.cpp
+===================================================================
+--- rafkill-1.2.2.orig/src/guns/gun_findgun.cpp 2006-05-07 15:50:04.000000000 +0100
++++ rafkill-1.2.2/src/guns/gun_findgun.cpp 2008-04-09 22:54:54.000000000 +0100
+@@ -5,6 +5,7 @@
+ #include "weaponobj.h"
+ #include "hulls/hull_weapon_machine.h"
+ #include "spaceobj.h"
++#include <cstdlib>
+ #include <vector>
+ #include <math.h>
+
+Index: rafkill-1.2.2/src/guns/gun_machine_circle.cpp
+===================================================================
+--- rafkill-1.2.2.orig/src/guns/gun_machine_circle.cpp 2006-05-02 02:50:40.000000000 +0100
++++ rafkill-1.2.2/src/guns/gun_machine_circle.cpp 2008-04-09 22:54:54.000000000 +0100
+@@ -3,6 +3,7 @@
+ #include "weaponobj.h"
+ #include "hulls/hull_weapon_machine.h"
+ #include "trigtable.h"
++#include <cstdlib>
+
+ // #define d_circle_move (2.9*8)
+
+Index: rafkill-1.2.2/src/guns/gun_saber.cpp
+===================================================================
+--- rafkill-1.2.2.orig/src/guns/gun_saber.cpp 2006-05-02 02:52:23.000000000 +0100
++++ rafkill-1.2.2/src/guns/gun_saber.cpp 2008-04-09 22:54:54.000000000 +0100
+@@ -5,6 +5,7 @@
+ #include "weapons/weapon_beam.h"
+ #include "spaceobj.h"
+ #include "ebox.h"
++#include <cstdlib>
+ #include <vector>
+
+ using namespace std;
+Index: rafkill-1.2.2/src/menu.cpp
+===================================================================
+--- rafkill-1.2.2.orig/src/menu.cpp 2008-04-09 22:53:35.000000000 +0100
++++ rafkill-1.2.2/src/menu.cpp 2008-04-09 22:54:54.000000000 +0100
+@@ -1,4 +1,5 @@
+ #include <stdio.h>
++#include <cstdlib>
+ #include "defs.h"
+ #include "menu.h"
+ #include "loadsave.h"
+Index: rafkill-1.2.2/src/weapons/weapon_follow.cpp
+===================================================================
+--- rafkill-1.2.2.orig/src/weapons/weapon_follow.cpp 2006-03-25 23:29:05.000000000 +0000
++++ rafkill-1.2.2/src/weapons/weapon_follow.cpp 2008-04-09 22:54:54.000000000 +0100
+@@ -3,6 +3,7 @@
+ #include "weapon_follow.h"
+ #include "hulls/hull_weapon_follow.h"
+ #include "spaceobj.h"
++#include <cstdlib>
+ #include <vector>
+
+ using namespace std;
+Index: rafkill-1.2.2/src/hulls/hull_weapon_beam.cpp
+===================================================================
+--- rafkill-1.2.2.orig/src/hulls/hull_weapon_beam.cpp 2006-05-02 03:12:50.000000000 +0100
++++ rafkill-1.2.2/src/hulls/hull_weapon_beam.cpp 2008-04-09 22:54:54.000000000 +0100
+@@ -4,6 +4,7 @@
+ #include "hull_weapon_beam.h"
+ #include "trigtable.h"
+ #include "ebox.h"
++#include <cstdlib>
+
+ #ifndef debug
+ #include <iostream>
+Index: rafkill-1.2.2/src/drawer.cpp
+===================================================================
+--- rafkill-1.2.2.orig/src/drawer.cpp 2008-04-09 22:55:06.000000000 +0100
++++ rafkill-1.2.2/src/drawer.cpp 2008-04-09 22:55:55.000000000 +0100
+@@ -11,6 +11,7 @@
+ #include "trigtable.h"
+ #include "pck.h"
+ #include <iostream>
++#include <cstring>
+
+ /* TODO:
+ * Add weapon icons to HUD
+Index: rafkill-1.2.2/src/loadsave.cpp
+===================================================================
+--- rafkill-1.2.2.orig/src/loadsave.cpp 2008-04-09 22:55:19.000000000 +0100
++++ rafkill-1.2.2/src/loadsave.cpp 2008-04-09 22:55:55.000000000 +0100
+@@ -7,6 +7,7 @@
+ #include "spaceobj.h"
+ #include "strings.h"
+ #include <string>
++#include <cstring>
+ #include <vector>
+ #include "gunobj.h"
+ #include "hull.h"
+Index: rafkill-1.2.2/src/system.cpp
+===================================================================
+--- rafkill-1.2.2.orig/src/system.cpp 2008-04-09 22:55:29.000000000 +0100
++++ rafkill-1.2.2/src/system.cpp 2008-04-09 22:55:55.000000000 +0100
+@@ -1,6 +1,7 @@
+ #include "system.h"
+ #include <strings.h>
+ #include <string>
++#include <cstring>
+
+ #ifdef WINDOWS
+ static const char * type(){
diff --git a/games-action/rafkill/files/rafkill-1.2.3-gcc47.patch b/games-action/rafkill/files/rafkill-1.2.3-gcc47.patch
new file mode 100644
index 000000000000..3c95e02869d1
--- /dev/null
+++ b/games-action/rafkill/files/rafkill-1.2.3-gcc47.patch
@@ -0,0 +1,11 @@
+--- a/src/system.cpp 2012-07-19 13:37:12.324303303 +0200
++++ b/src/system.cpp 2012-07-19 13:38:05.451584273 +0200
+@@ -2,6 +2,8 @@
+ #include <strings.h>
+ #include <string>
+ #include <cstring>
++#include <unistd.h>
++#include <sys/types.h>
+
+ #ifdef WINDOWS
+ static const char * type(){
diff --git a/games-action/rafkill/files/rafkill-1.2.3-ldflags.patch b/games-action/rafkill/files/rafkill-1.2.3-ldflags.patch
new file mode 100644
index 000000000000..4adf853e912a
--- /dev/null
+++ b/games-action/rafkill/files/rafkill-1.2.3-ldflags.patch
@@ -0,0 +1,17 @@
+--- a/SConstruct 2010-10-07 10:37:26.000000000 +0200
++++ b/SConstruct 2010-10-07 10:39:33.000000000 +0200
+@@ -1,5 +1,6 @@
+ import os
+ import sys
++import SCons.Util
+
+ env = Environment( ENV = os.environ );
+ config = env.Configure();
+@@ -36,6 +37,7 @@
+
+ env.BuildDir( 'build/', 'src/' )
+ env.Append( LIBS = [ 'aldmb', 'dumb' ] );
++env['LINKFLAGS'] += SCons.Util.CLVar(os.environ['LDFLAGS'])
+ if sys.platform == 'win32':
+ env.Append( CCFLAGS = [ '-DWINDOWS' ] )
+ env.Append( LIBS = [ 'alleg', 'pthreadGC2' ] )
diff --git a/games-action/rafkill/metadata.xml b/games-action/rafkill/metadata.xml
new file mode 100644
index 000000000000..cf6a276e7664
--- /dev/null
+++ b/games-action/rafkill/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">raptorv2</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-action/rafkill/rafkill-1.2.3-r1.ebuild b/games-action/rafkill/rafkill-1.2.3-r1.ebuild
new file mode 100644
index 000000000000..7a28f29f9448
--- /dev/null
+++ b/games-action/rafkill/rafkill-1.2.3-r1.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils scons-utils toolchain-funcs
+
+DESCRIPTION="Space shoot-em-up game"
+HOMEPAGE="http://raptorv2.sourceforge.net/"
+SRC_URI="mirror://sourceforge/raptorv2/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="<media-libs/allegro-5
+ media-libs/aldumb"
+RDEPEND=${DEPEND}
+
+PATCHES=(
+ "${FILESDIR}"/${P}-build.patch
+ "${FILESDIR}"/${P}-gcc43.patch
+ "${FILESDIR}"/${P}-gcc47.patch
+ "${FILESDIR}"/${P}-ldflags.patch
+)
+
+src_prepare() {
+ default
+
+ rm -f {data,music}/.sconsign || die
+
+ sed -i \
+ -e "/^#define INSTALL_DIR/s:\.:/usr/share:" \
+ src/defs.cpp || die
+}
+
+src_compile() {
+ tc-export CXX
+ escons
+}
+
+src_install() {
+ dobin ${PN}
+ insinto /usr/share/${PN}
+ doins -r data music
+ dodoc README
+}
diff --git a/games-action/rafkill/rafkill-1.2.3.ebuild b/games-action/rafkill/rafkill-1.2.3.ebuild
new file mode 100644
index 000000000000..9a8e4bc51e30
--- /dev/null
+++ b/games-action/rafkill/rafkill-1.2.3.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils scons-utils games
+
+DESCRIPTION="space shoot-em-up game"
+HOMEPAGE="http://raptorv2.sourceforge.net/"
+SRC_URI="mirror://sourceforge/raptorv2/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="<media-libs/allegro-5
+ media-libs/aldumb"
+RDEPEND=${DEPEND}
+
+src_prepare() {
+ rm -f {data,music}/.sconsign
+ epatch \
+ "${FILESDIR}"/${P}-build.patch \
+ "${FILESDIR}"/${P}-gcc43.patch \
+ "${FILESDIR}"/${P}-gcc47.patch \
+ "${FILESDIR}"/${P}-ldflags.patch
+ sed -i \
+ -e "/^#define INSTALL_DIR/s:\.:${GAMES_DATADIR}:" \
+ src/defs.cpp || die
+}
+
+src_compile() {
+ escons
+}
+
+src_install() {
+ dogamesbin ${PN}
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r data music
+ dodoc README
+ prepgamesdirs
+}
diff --git a/games-action/rrootage/Manifest b/games-action/rrootage/Manifest
new file mode 100644
index 000000000000..7ea7554fddc2
--- /dev/null
+++ b/games-action/rrootage/Manifest
@@ -0,0 +1,7 @@
+AUX rrootage-0.23a-gcc41.patch 959 SHA256 0bf69bcf48f434a62b22a893c3e07bc3c9412deee756081b2626118af58b08cb SHA512 9eb927ad7389cc77823903b641608248330046034010551badd06be7dc0def5a04d2e1f78ef2e4631c97279d0eacae10006b1564c4ad21dae306a427a95972fc WHIRLPOOL f543a751c6af79a8f3eb2ff08219deb08462fdb9ccf72d85f366e199e7e4839ef06bfad5180e292b1f54d182473b0be1e5d640d1bef163178be23523d8f84c38
+DIST rRootage-0.23a.tar.gz 3910941 SHA256 964edbe21802e3e40d6a8da19b61132decacd13bf9a71bac86abce012379ff07 SHA512 29af79ef7bae46a103abf31696209b1ff5915caeb614d474b6a83f7e9657c19dea586e64a99437bba3e1121bfacc92c8d8b3c8a6831214d0d7da89927ca64f66 WHIRLPOOL 81a87e78e0baa1c252825977db3463be5ac7d00537373d937f938c200fe25f3a78c15ff0e380810cd0f47f9b4c135e48c2ed0cbff357b764c9dd155b47084d23
+EBUILD rrootage-0.23a-r1.ebuild 1589 SHA256 863efef146a5e45abbeb1d0d2b4b068e64a641eb76537c68408e35b533012405 SHA512 ec1980bab563671d7380e418d3a6842dbe8a6682d800b8b814780fea028a3fe9675fe2b85c6d4322f8309a88e6ed8f6bb1dd17f6cb4d8aac1b90c5acca218a94 WHIRLPOOL de9fa44aa7ea19a0c11b2f6d0eb7f5c38d6c1a3684815eee483a446e7dcbad88789003565f91a9a60ad4093149a5bf026889dfa4cf052950749614ebd56ff151
+EBUILD rrootage-0.23a.ebuild 1634 SHA256 954f1ecdac4e5545bb060962611c5ce746f6957b0a0fb5260bfa3fc2ccbda2c5 SHA512 a80580ed49923623c44387de444fc7da663cd022c793f4751a2595db3fe0c110b7ff13beecceeb3f419a480e9de626edbb32cab8059a5b1c37b251347968893e WHIRLPOOL 222d3981d071190e364e30737c5289a0c2384aac7735abfb5d1cc67f850dffebbd230e6f742b4688f1ed1ae6dacb64ec171b76ba6447c5ee11f4e700cc370598
+MISC ChangeLog 2607 SHA256 2f4662058083718fe3170c1931a42f17f99d44360ca7d439a1897d79ebddf945 SHA512 486e20a944132de17c458f39536446f501b73390675b5ef0eb2dbaf39303c7d26aafefb11dc30e82df06285789ae79440d385148bc1a59daecb4021b32699fd0 WHIRLPOOL d45c5e23845c9fff50b93088847b816b0f5e57fa90c8c315cd6c4dee04c725f5bf5758ddd1daab2be7e03f60c9558de8547653bf0a2e85765cf7430c10be3090
+MISC ChangeLog-2015 1668 SHA256 31d721ec7e765bdf61919d91ffe43a33bda65796ef017ade437287ecae379977 SHA512 64b740e0de76ced9702cbe77f8ee9b892e81d39e2a6a50d79a51af44da74ddc5c6c9fcd67d135336c3e0ed548170b1077e6b2ab20722ddff789e35e60ce394be WHIRLPOOL 69c9bdfff9d5dad0ce8b1db9929605ad30ed31d61efd2810da22e48abb8947c8049c0c663cb44c251c2c9860d0c98f5ffd8f1bc18f1f2297c1af64d31d0571fe
+MISC metadata.xml 331 SHA256 472d0296ea2f05bd8274868e06ff2b8f29b13b68e1e95f9820b9377a925f0dc9 SHA512 28663cb0e771cf17a0face9241359ca7eab7360b0dbcec162a3238c9fd89a81ea858cb3c66948b18ecca17cd26b6d855be24d955588aa4f38af54eaa6775278b WHIRLPOOL 08bf9283375c267c55fa776bbb3c24a929da080f0886ccc31afd8ad219c2ae22cc912a3d1edd46f9c84b7609a5d28447ef57534a975edcf5e1d0df24511bb009
diff --git a/games-action/rrootage/files/rrootage-0.23a-gcc41.patch b/games-action/rrootage/files/rrootage-0.23a-gcc41.patch
new file mode 100644
index 000000000000..1e6e50e683fd
--- /dev/null
+++ b/games-action/rrootage/files/rrootage-0.23a-gcc41.patch
@@ -0,0 +1,28 @@
+--- src/foecommand.h.old 2006-04-21 23:26:03.000000000 +0200
++++ src/foecommand.h 2006-04-21 23:26:26.000000000 +0200
+@@ -39,10 +39,10 @@
+
+ virtual void doChangeDirection(double d);
+ virtual void doChangeSpeed(double s);
+- virtual void FoeCommand::doAccelX(double ax);
+- virtual void FoeCommand::doAccelY(double ay);
+- virtual double FoeCommand::getBulletSpeedX();
+- virtual double FoeCommand::getBulletSpeedY();
++ virtual void doAccelX(double ax);
++ virtual void doAccelY(double ay);
++ virtual double getBulletSpeedX();
++ virtual double getBulletSpeedY();
+
+ private:
+ struct foe *foe;
+--- src/screen.c.old 2006-04-21 23:50:01.000000000 +0200
++++ src/screen.c 2006-04-21 23:50:30.000000000 +0200
+@@ -73,7 +73,7 @@
+ void loadGLTexture(char *fileName, GLuint *texture) {
+ SDL_Surface *surface;
+
+- char name[32];
++ char name[128];
+ strcpy(name, SHARE_LOC);
+ strcat(name, "images/");
+ strcat(name, fileName);
diff --git a/games-action/rrootage/metadata.xml b/games-action/rrootage/metadata.xml
new file mode 100644
index 000000000000..dbea52d36fff
--- /dev/null
+++ b/games-action/rrootage/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">rrootage</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-action/rrootage/rrootage-0.23a-r1.ebuild b/games-action/rrootage/rrootage-0.23a-r1.ebuild
new file mode 100644
index 000000000000..a36a0047c48b
--- /dev/null
+++ b/games-action/rrootage/rrootage-0.23a-r1.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils
+
+MY_PN="rRootage"
+MY_P="${MY_PN}-${PV}"
+DESCRIPTION="Abstract shooter - defeat auto-created huge battleships"
+HOMEPAGE="http://www.asahi-net.or.jp/~cs8k-cyu/windows/rr_e.html
+ http://rrootage.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="
+ >=dev-libs/libbulletml-0.0.3
+ media-libs/libsdl[video]
+ media-libs/sdl-mixer[vorbis]
+ virtual/glu
+ virtual/opengl"
+RDEPEND=${DEPEND}
+
+S=${WORKDIR}/${MY_PN}/src
+
+PATCHES=(
+ "${FILESDIR}/${P}"-gcc41.patch
+)
+
+src_prepare() {
+ default
+
+ sed \
+ -e "s/-lglut/-lGL -lGLU -lm/" \
+ -e "/^CC/d" \
+ -e "/^CXX/d" \
+ -e "/^LDFLAGS/s/=/+=/" \
+ -e "/^CPPFLAGS/s/MORE_CFLAGS/MORE_CXXFLAGS/" \
+ -e "/^CPPFLAGS/s/MORE_CFLAGS/MORE_CXXFLAGS/" \
+ -e "s/ -mwindows//" \
+ -e "s:-I./bulletml/:-I/usr/include/bulletml:" \
+ makefile.lin > Makefile || die
+
+ sed -i \
+ -e "s:/usr/share/games:/usr/share:" \
+ barragemanager.cc screen.c soundmanager.c || die
+}
+
+src_compile() {
+ emake \
+ MORE_CFLAGS="-DLINUX ${CFLAGS}" \
+ MORE_CXXFLAGS="-DLINUX ${CXXFLAGS}"
+}
+
+src_install() {
+ newbin rr ${PN}
+ dodir "/usr/share/${MY_PN}"
+ cp -r ../rr_share/* "${D}/usr/share/${MY_PN}" || die
+ dodoc ../readme*
+}
+
+pkg_postinst() {
+ if ! has_version "media-libs/sdl-mixer[vorbis]" ; then
+ elog "${PN} will not have sound since sdl-mixer"
+ elog "is built with USE=-vorbis"
+ elog "Please emerge sdl-mixer with USE=vorbis"
+ elog "if you want sound support"
+ fi
+}
diff --git a/games-action/rrootage/rrootage-0.23a.ebuild b/games-action/rrootage/rrootage-0.23a.ebuild
new file mode 100644
index 000000000000..ace4ee1f5337
--- /dev/null
+++ b/games-action/rrootage/rrootage-0.23a.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils games
+
+MY_PN="rRootage"
+MY_P="${MY_PN}-${PV}"
+DESCRIPTION="Abstract shooter - defeat auto-created huge battleships"
+HOMEPAGE="http://www.asahi-net.or.jp/~cs8k-cyu/windows/rr_e.html
+ http://rrootage.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="virtual/opengl
+ virtual/glu
+ media-libs/libsdl[video]
+ media-libs/sdl-mixer[vorbis]
+ >=dev-libs/libbulletml-0.0.3"
+RDEPEND=${DEPEND}
+
+S=${WORKDIR}/${MY_PN}/src
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}"-gcc41.patch
+ sed \
+ -e "s/-lglut/-lGL -lGLU -lm/" \
+ -e "/^CC/d" \
+ -e "/^CXX/d" \
+ -e "/^LDFLAGS/s/=/+=/" \
+ -e "/^CPPFLAGS/s/MORE_CFLAGS/MORE_CXXFLAGS/" \
+ -e "/^CPPFLAGS/s/MORE_CFLAGS/MORE_CXXFLAGS/" \
+ -e "s/ -mwindows//" \
+ -e "s:-I./bulletml/:-I/usr/include/bulletml:" \
+ makefile.lin > Makefile || die
+
+ sed -i \
+ -e "s:/usr/share/games:${GAMES_DATADIR}:" \
+ barragemanager.cc screen.c soundmanager.c || die
+}
+
+src_compile() {
+ emake \
+ MORE_CFLAGS="-DLINUX ${CFLAGS}" \
+ MORE_CXXFLAGS="-DLINUX ${CXXFLAGS}"
+}
+
+src_install() {
+ newgamesbin rr ${PN}
+ dodir "${GAMES_DATADIR}/${MY_PN}"
+ cp -r ../rr_share/* "${D}/${GAMES_DATADIR}/${MY_PN}" || die
+ dodoc ../readme*
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ if ! has_version "media-libs/sdl-mixer[vorbis]" ; then
+ elog "${PN} will not have sound since sdl-mixer"
+ elog "is built with USE=-vorbis"
+ elog "Please emerge sdl-mixer with USE=vorbis"
+ elog "if you want sound support"
+ fi
+}
diff --git a/games-action/rune/Manifest b/games-action/rune/Manifest
new file mode 100644
index 000000000000..6b512f79593d
--- /dev/null
+++ b/games-action/rune/Manifest
@@ -0,0 +1,6 @@
+DIST rune-all-0.2.tar.bz2 6507237 SHA256 432a21d03e3728000c484eec9a5f2a27837c58265d89bf3674716354dbed1632 SHA512 5c86306c84a6b606e13c3b1eebf676479cfe8d1112a2c5b31d6332fc7305fea74485d9a4b89286db38b968f473a40d7b5e500c17aaa8b2010edb17cc95b1695b WHIRLPOOL 75a357df7c4c231e060973fb3816782b0dcbceedc6dc18f2e35ae115e79dcd9fe74eec04e74fdf1772c695161cb63d39d27e146a554ca7473e8f88755c1d6919
+EBUILD rune-1.07-r2.ebuild 3314 SHA256 72b5fff2ce5781e154b66b4784a850f981c22869699c12b3a3ea4f3795008949 SHA512 312ef6b8c1e7b81eebe8fcfa2434f4f7f2314acf9d6bff3696314c610ef58f3167ec329bf396f120f3333d9899066dbb77690914a267e9d9860f58119b351a8d WHIRLPOOL 4b1d9e3b673cbf9bb7b057690b756a989d85c1dec11a68a2e9d97afaea222818e086bea7b04a4158110b02f0c06c104813139184575789cb80fa440dce63fc8a
+EBUILD rune-1.07-r3.ebuild 3287 SHA256 6b72d3c25a15771a9510a42a17eab6cc37ef11b04bd0eaf0cc9dc48225f04e36 SHA512 b911960b002dbe6c5052054c8a83ab6a3049f06ef72b671a7a3992d6b09342fa78f4b76ef20da53b1f63a536cc7a870af71847ff93b584873cf0cefb8f49b4a3 WHIRLPOOL 29223d5c648cec3869e9edda67f6ee6977cbb5846f60e0b9d18e6231d0782af91d4c740bcee6526773965d8bca68fb8ceff91e3eb0715800680099697962d690
+MISC ChangeLog 2426 SHA256 1d1d5b5df6b27eaa7c9ac4fdf61a73b557f62c4b6b1ef914fc7895e82783d315 SHA512 af22223aeb59f9090ba62f67e5d6d2ac787bb3b4dda8e2185a865e1703c1599b643aa6b1947fb713d80838225e75e74a094d04e86b562f5b2d25615222a8c46c WHIRLPOOL 5136eba0fd65990520bfaf51c6bb00ef6c461bb53ad9cb06058b4fb698c88204ac812ce500e25c30cf7f800e02db842453ade3efbcaba8ac6a4d38d5bf865382
+MISC ChangeLog-2015 4010 SHA256 58cf75d57f2956bbca3e0ae1458936797ca4b9c08c91663ac8fe1be0ab7381c6 SHA512 7e3a81d5eba92fe0a233bc3a9962c5416f2d4f4400e882308f201597152a5679d9941dde1dc193d841ad25218953ef35cfac1dc3b6e28869ebda04f10db8d890 WHIRLPOOL e339ffbffd832afc7742fc8ec404ee4afe3758cff1ff78cf1a2eaeddf94fdb40d4791102d51c57c23bb972da134a4660d8a31d1867553deec9817dc791b79607
+MISC metadata.xml 2118 SHA256 04d9a3d7189ac3eca6385d8edf39d3e33c7918e594579f10e58bce8343f497bb SHA512 64d64e07f93b267b5e8682f716f2fc6cfeef77732a5c2a583d3c00bf20f5be1c257f8259c52a5c0962d5ce96bfc892b2bf1185c9219016808876164700f2ebdc WHIRLPOOL c4cd4af5d64e9a0801cad11ef967efb9ae6653b7222e5b73eebb33e37d700099885eda2cf1a381b04aee4780a19527be5aa184c4c78f794d039d633cb3b390cd
diff --git a/games-action/rune/metadata.xml b/games-action/rune/metadata.xml
new file mode 100644
index 000000000000..51b5f12f9019
--- /dev/null
+++ b/games-action/rune/metadata.xml
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+</maintainer>
+<longdescription>
+Loki, god of deception and mischief was the bane of the gods, a black sheep who
+tormented all the heavens with his persistent schemes for personal power.
+Asgard, the high heaven where the gods dwelt while determining the fates of man
+and beast was often filled with the howls of pain and anguish as god after god
+fell victim to one of Loki's plots. Having one day taken these malicious schemes
+against his Asgardian brethren too far for a final time, Loki, lord of lies, was
+imprisoned by Odin the All Father and his, Thor, the god of thunder:
+
+Loki was chained to a bleak promontory hundreds of miles below the surface of
+the earth. A venomous snake of immense proportions was wound around the
+stalactites above him. From the mouth of this fearsome reptile dripped a steady
+supply of acidic venom. The torment was horrific. The steady drops would eat
+away the exiled god's midriff right down to the backbone. In turn, his immortal
+powers of healing would slowly re-issue the flesh, only to have it burned away
+again. The snake was unfailing, as were Loki's immortal healing powers.
+
+And the excruciating agony for Loki was unending.
+
+As Thor chained him to the rock, Odin All Father proclaimed that Loki would
+remain under the constant drip of the venom until the day of Ragnarok; when
+gods, men and giants would enter into a final battle and all reality as it
+existed would perish. Then, and only then, would Loki be freed from his torment.
+
+In that distant climactic battle between the gods of heaven and the monsters who
+dwelt deep in the earth, it was assumed that Loki would fulfill his fate and
+take up sides against the Asgardians. Of course, Loki was the bane of fate, and
+he had other plans.
+
+Rune was ported to Linux by Loki Entertainment Software and is a commercial
+game, requiring the original media for installation.
+</longdescription>
+</pkgmetadata>
diff --git a/games-action/rune/rune-1.07-r2.ebuild b/games-action/rune/rune-1.07-r2.ebuild
new file mode 100644
index 000000000000..6a78e4c95db8
--- /dev/null
+++ b/games-action/rune/rune-1.07-r2.ebuild
@@ -0,0 +1,129 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils cdrom games
+
+DESCRIPTION="Viking hack and slay game"
+HOMEPAGE="http://www.runegame.com"
+SRC_URI="mirror://gentoo/rune-all-0.2.tar.bz2"
+
+LICENSE="LOKI-EULA"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+RESTRICT="strip"
+
+RDEPEND="dev-util/xdelta:0
+ >=media-libs/libsdl-1.2.9-r1[abi_x86_32(-)]
+ x11-libs/libXext[abi_x86_32(-)]
+ x11-libs/libX11[abi_x86_32(-)]
+ virtual/opengl[abi_x86_32(-)]"
+
+S=${WORKDIR}
+
+dir=${GAMES_PREFIX_OPT}/${PN}
+Ddir=${D}/${dir}
+
+src_unpack() {
+ export CDROM_SET_NAMES=("Linux Rune CD" "Windows Rune CD")
+ cdrom_get_cds System/rune-bin:System/Rune.exe
+ dodir "${dir}"
+ if [[ ${CDROM_SET} -eq 0 ]]
+ then
+ # unpack the data files
+ tar xzf "${CDROM_ROOT}"/data.tar.gz || die
+ elif [[ ${CDROM_SET} -eq 1 ]]
+ then
+ # unpack the runelinuxfiles.tar.gz
+ unpack ${A}
+ fi
+}
+
+src_install() {
+ insinto "${dir}"
+ exeinto "${dir}"
+ einfo "Copying files... this may take a while..."
+
+ case ${CDROM_SET} in
+ 0)
+ for x in Help Maps Meshes Sounds System Textures Web
+ do
+ doins -r $x
+ done
+
+ # copy linux specific files
+ doins -r "${CDROM_ROOT}"/System
+
+ # the most important things: rune and ucc :)
+ doexe "${CDROM_ROOT}"/bin/x86/rune
+ fperms 750 "${dir}"/System/{ucc{,-bin},rune-bin}
+
+ # installing documentation/icon
+ dodoc "${CDROM_ROOT}"/{README,CREDITS}
+ newicon "${CDROM_ROOT}"/icon.xpm rune.xpm
+ ;;
+ 1)
+ # copying Maps Sounds and Web
+ for x in Maps Sounds Web
+ do
+ doins -r "${CDROM_ROOT}"/$x
+ done
+
+ # copying the texture files
+ dodir "${dir}"/Textures
+ for x in $(find "${CDROM_ROOT}"/Textures/ -type f -printf '%f ')
+ do
+ echo -ne '\271\325\036\214' | cat - "${CDROM_ROOT}"/Textures/$x \
+ | sed -e '1 s/\(....\)..../\1/' > "${Ddir}"/Textures/$x \
+ || die
+ done
+
+ doins -r "${S}"/System
+ doins -r "${S}"/Help
+ sed -e "s:.*\(\w+/\w+\)\w:\1:"
+ for x in $(ls "${S}"/patch/{System,Maps,Meshes} |sed -e \
+ "s:.*/\([^/]\+/[^/]\+\).patch$:\1:")
+ do
+ xdelta patch "${S}"/patch/${x}.patch "${CDROM_ROOT}"/${x} "${S}"/patch/${x}
+ doins "${S}"/patch/${x}
+ done
+
+ insinto "${dir}"/System
+
+ # copying system files from the Windows CD
+ for x in "${CDROM_ROOT}"/System/*.{int,u,url}; do
+ doins $x
+ done
+
+ # modify the files
+ mv "${Ddir}"/System/OpenGlDrv.int "${Ddir}"/System/OpenGLDrv.int \
+ || die
+ mv "${Ddir}"/Textures/bloodFX.utx "${Ddir}"/Textures/BloodFX.utx \
+ || die
+ mv "${Ddir}"/Textures/RUNESTONES.UTX "${Ddir}"/Textures/RUNESTONES.utx \
+ || die
+ mv "${Ddir}"/Textures/tedd.utx "${Ddir}"/Textures/Tedd.utx \
+ || die
+ mv "${Ddir}"/Textures/UNDERANCIENT.utx "${Ddir}"/Textures/UnderAncient.utx \
+ || die
+ rm "${Ddir}"/System/{Setup.int,SGLDrv.int,MeTaLDrv.int,Manifest.int,D3DDrv.int,Galaxy.int,SoftDrv.int,WinDrv.int,Window.int} || die
+
+ # the most important things: rune and ucc :)
+ doexe "${S}"/bin/x86/rune
+ fperms 750 "${dir}"/System/{ucc,ucc-bin,rune-bin}
+
+ # installing documentation/icon
+ dodoc "${S}"/{README,CREDITS}
+ doicon "${S}"/rune.xpm rune.xpm
+ ;;
+ esac
+
+ use amd64 && mv "${Ddir}"/System/libSDL-1.2.so.0 \
+ "${Ddir}"/System/libSDL-1.2.so.0.backup
+
+ games_make_wrapper rune ./rune "${dir}" "${dir}"
+ make_desktop_entry rune "Rune" rune
+ find "${Ddir}" -exec touch '{}' \;
+ prepgamesdirs
+}
diff --git a/games-action/rune/rune-1.07-r3.ebuild b/games-action/rune/rune-1.07-r3.ebuild
new file mode 100644
index 000000000000..2f649202e4e4
--- /dev/null
+++ b/games-action/rune/rune-1.07-r3.ebuild
@@ -0,0 +1,129 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils cdrom
+
+DESCRIPTION="Viking hack and slay game"
+HOMEPAGE="http://www.runegame.com"
+SRC_URI="mirror://gentoo/rune-all-0.2.tar.bz2"
+
+LICENSE="LOKI-EULA"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+RESTRICT="strip"
+
+RDEPEND="dev-util/xdelta:0
+ >=media-libs/libsdl-1.2.9-r1[abi_x86_32(-)]
+ x11-libs/libXext[abi_x86_32(-)]
+ x11-libs/libX11[abi_x86_32(-)]
+ virtual/opengl[abi_x86_32(-)]"
+
+S=${WORKDIR}
+
+dir=/opt/${PN}
+Ddir=${D}/${dir}
+
+src_unpack() {
+ export CDROM_SET_NAMES=("Linux Rune CD" "Windows Rune CD")
+ cdrom_get_cds System/rune-bin:System/Rune.exe
+ dodir "${dir}"
+ if [[ ${CDROM_SET} -eq 0 ]]
+ then
+ # unpack the data files
+ tar xzf "${CDROM_ROOT}"/data.tar.gz || die
+ elif [[ ${CDROM_SET} -eq 1 ]]
+ then
+ # unpack the runelinuxfiles.tar.gz
+ unpack ${A}
+ fi
+}
+
+src_install() {
+ insinto "${dir}"
+ exeinto "${dir}"
+ einfo "Copying files... this may take a while..."
+
+ case ${CDROM_SET} in
+ 0)
+ for x in Help Maps Meshes Sounds System Textures Web
+ do
+ doins -r $x
+ done
+
+ # copy linux specific files
+ doins -r "${CDROM_ROOT}"/System
+
+ # the most important things: rune and ucc :)
+ doexe "${CDROM_ROOT}"/bin/x86/rune
+ fperms 750 "${dir}"/System/{ucc{,-bin},rune-bin}
+
+ # installing documentation/icon
+ dodoc "${CDROM_ROOT}"/{README,CREDITS}
+ newicon "${CDROM_ROOT}"/icon.xpm rune.xpm
+ ;;
+ 1)
+ # copying Maps Sounds and Web
+ for x in Maps Sounds Web
+ do
+ doins -r "${CDROM_ROOT}"/$x
+ done
+
+ # copying the texture files
+ dodir "${dir}"/Textures
+ for x in $(find "${CDROM_ROOT}"/Textures/ -type f -printf '%f ')
+ do
+ echo -ne '\271\325\036\214' | cat - "${CDROM_ROOT}"/Textures/$x \
+ | sed -e '1 s/\(....\)..../\1/' > "${Ddir}"/Textures/$x \
+ || die
+ done
+
+ doins -r "${S}"/System
+ doins -r "${S}"/Help
+ sed -e "s:.*\(\w+/\w+\)\w:\1:"
+ for x in $(ls "${S}"/patch/{System,Maps,Meshes} | sed -e \
+ "s:.*/\([^/]\+/[^/]\+\).patch$:\1:")
+ do
+ xdelta patch "${S}"/patch/${x}.patch "${CDROM_ROOT}"/${x} "${S}"/patch/${x}
+ doins "${S}"/patch/${x}
+ done
+
+ insinto "${dir}"/System
+
+ # copying system files from the Windows CD
+ for x in "${CDROM_ROOT}"/System/*.{int,u,url}; do
+ doins $x
+ done
+
+ # modify the files
+ mv "${Ddir}"/System/OpenGlDrv.int "${Ddir}"/System/OpenGLDrv.int \
+ || die
+ mv "${Ddir}"/Textures/bloodFX.utx "${Ddir}"/Textures/BloodFX.utx \
+ || die
+ mv "${Ddir}"/Textures/RUNESTONES.UTX "${Ddir}"/Textures/RUNESTONES.utx \
+ || die
+ mv "${Ddir}"/Textures/tedd.utx "${Ddir}"/Textures/Tedd.utx \
+ || die
+ mv "${Ddir}"/Textures/UNDERANCIENT.utx "${Ddir}"/Textures/UnderAncient.utx \
+ || die
+ rm "${Ddir}"/System/{Setup.int,SGLDrv.int,MeTaLDrv.int,Manifest.int,D3DDrv.int,Galaxy.int,SoftDrv.int,WinDrv.int,Window.int} \
+ || die
+
+ # the most important things: rune and ucc :)
+ doexe "${S}"/bin/x86/rune
+ fperms 750 "${dir}"/System/{ucc,ucc-bin,rune-bin}
+
+ # installing documentation/icon
+ dodoc "${S}"/{README,CREDITS}
+ doicon "${S}"/rune.xpm rune.xpm
+ ;;
+ esac
+
+ use amd64 && mv "${Ddir}"/System/libSDL-1.2.so.0 \
+ "${Ddir}"/System/libSDL-1.2.so.0.backup
+
+ make_wrapper rune ./rune "${dir}" "${dir}"
+ make_desktop_entry rune "Rune" rune
+ find "${Ddir}" -exec touch '{}' \; || die
+}
diff --git a/games-action/shadowgrounds-bin/Manifest b/games-action/shadowgrounds-bin/Manifest
new file mode 100644
index 000000000000..59ff0880edd2
--- /dev/null
+++ b/games-action/shadowgrounds-bin/Manifest
@@ -0,0 +1,5 @@
+DIST ShadowgroundsBeta12.run 817462792 SHA256 583e9df5a40f46fd093a3aeeb1f1150ed437064566d77ae5e59daf7a059306c0 SHA512 b522722d60f2fd946a1e4596bf1333eebc79c28b67ce0f20c50dc5558787c61975d275afccbec71906003bdabb83821852ec5e7bb4aa36feebae7083587cff15 WHIRLPOOL 46587b90c167b5744fbd7c5566da222d588d8eaf34125fac5480e4616251348c7cba70de4d476b681746d83983a4f2e61562d25bb1eff351229f771ef6b83543
+EBUILD shadowgrounds-bin-0_beta12-r1.ebuild 1471 SHA256 24e4ae32e93644593a7d3baa97978fdee0a88a89060abededfc8b391c397d1e6 SHA512 a92823b645697d829c53e48d756cf88c0c4bd229aa271c9163f57e55dfc3998c43c59800ff5d28b35a3479904b2a1d44bbdb777802822db74e4b013ea619b386 WHIRLPOOL c45d2e80aa1dc7db79ee6e5426d7beef57c0a5e94d46ab00d8f76ee0927665a2da55827dd082b9faa918b997e91edc867e88b0a0514f44f7267da35b44e6c6e3
+MISC ChangeLog 2473 SHA256 68298e7e1e6563e3ffb64f2aad03ea9b376057f697043993a2229873e0bdda98 SHA512 d8ccc1d7a895733d3fbdc62e093611277c07318f56b93b2d7157abaefe5aefe61e0a1aa4e0c8adab05b7d415d384adbcc5cdbac9fd9fdc705503ed811263edac WHIRLPOOL 2483a07ec8d7dbdc374246a7c7dfff4f8c80da8f41fd942cd530c9fba76320d96cafb3defdd2bcc970e834db5e2971606a3ad6e4475480a0d1b5c5f47b4a83f5
+MISC ChangeLog-2015 1473 SHA256 fd442d6a9289741052684bdf7eb610a7c0910099ffdb723104b21d087e4ab0f8 SHA512 315d7e8914b8e5d3b05d4aa5e168ce238e633006330fab9f0c253c46a1d8ba21f8570011dd8805724025a31b04fd935774e4026309566125c3840b7d7fa06b5d WHIRLPOOL 1263544f690e64f61e7b11749ddcd3834c49783f77e812448a9c5d6288941879547534eb3e0635b566282bbfc44ac6b418eb7a868d97bbc59882be05e89ad03f
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-action/shadowgrounds-bin/metadata.xml b/games-action/shadowgrounds-bin/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-action/shadowgrounds-bin/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 type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/games-action/shadowgrounds-bin/shadowgrounds-bin-0_beta12-r1.ebuild b/games-action/shadowgrounds-bin/shadowgrounds-bin-0_beta12-r1.ebuild
new file mode 100644
index 000000000000..42dd4167c67c
--- /dev/null
+++ b/games-action/shadowgrounds-bin/shadowgrounds-bin-0_beta12-r1.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit unpacker games eutils
+
+DESCRIPTION="an epic action experience combining modern technology with addictive playability"
+HOMEPAGE="http://shadowgroundsgame.com/"
+SRC_URI="Shadowgrounds${PV/*_b/B}.run"
+
+LICENSE="frozenbyte-eula"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE=""
+RESTRICT="fetch strip"
+
+DEPEND="app-arch/unzip"
+RDEPEND=">=sys-libs/glibc-2.4
+ >=sys-devel/gcc-4.3.0
+ !amd64? (
+ gnome-base/libglade
+ sys-libs/zlib
+ )
+ amd64? (
+ >=gnome-base/libglade-2.6.4-r1[abi_x86_32(-)]
+ sys-libs/zlib[abi_x86_32(-)]
+ )"
+
+S=${WORKDIR}
+
+d="${GAMES_PREFIX_OPT}/${PN}"
+QA_TEXTRELS_x86="`echo ${d#/}/lib32/lib{avcodec.so.51,avformat.so.52,avutil.so.49,FLAC.so.8}`"
+QA_TEXTRELS_amd64=${QA_TEXTRELS_x86}
+
+pkg_nofetch() {
+ einfo "Fetch ${SRC_URI} and put it into ${DISTDIR}"
+ einfo "See http://www.humblebundle.com/ for more info."
+}
+
+src_unpack() {
+ # manually run unzip as the initial seek causes it to exit(1)
+ unpack_zip ${A}
+ rm lib*/lib{gcc_s,m,rt,selinux,z}.so.?
+}
+
+src_install() {
+ local b bb
+
+ doicon Shadowgrounds.xpm
+ for b in bin launcher ; do
+ bb="shadowgrounds-${b}"
+ exeinto ${d}
+ newexe ${bb} ${bb} || die
+ games_make_wrapper ${bb} "./${bb}" "${d}"
+ make_desktop_entry ${bb} "Shadowgrounds ${b}" Shadowgrounds
+ done
+
+ exeinto ${d}/lib32
+ doexe lib32/*
+
+ insinto ${d}
+ doins -r Config data Profiles *.fbz *.glade *-logo.png
+
+ prepgamesdirs
+}
diff --git a/games-action/shadowgrounds-survivor-bin/Manifest b/games-action/shadowgrounds-survivor-bin/Manifest
new file mode 100644
index 000000000000..7eae2e7e8b04
--- /dev/null
+++ b/games-action/shadowgrounds-survivor-bin/Manifest
@@ -0,0 +1,5 @@
+DIST SurvivorBeta11.run 1157906524 SHA256 891ec8ad4e4a5a2592b386b0d0ffb03747577b1b3c14eb9fe251ec02d4beb04f SHA512 101042fc62acbd7daf0fbd5de0b404016e5ec0b5e964794d8ba439d546eb67e26a4817306cb81898457236f037dffc858b729c2618eb0c14ec3758fe7a957177 WHIRLPOOL 967a205e79e32361452d9b05bdf4916dc5fa701e5bb765298c6b98dc546b1ac9cbdc83e524ad89a43bc88534d91594dc63f295421121f3d924250188be7a25c9
+EBUILD shadowgrounds-survivor-bin-0_beta11-r1.ebuild 1418 SHA256 4576fcc6e59436bbf7bfdd1245451c454c78ff766be272fb340bd7ba2635f9d3 SHA512 8003183760687e2a317dba3c21bf15a296af0b9c61f4c8712db1d4cd785e49d5e6be1868efa19a71c098427634090d1b371a89ce8adb7123721dbff4a262c743 WHIRLPOOL 3fac9737171610bb762993c9f99cfa8255eb183a16f0412d5f5c4a65136a51b54c80a7dcabf63c97522e218892fafcfa85821de4b3f3b82421b281ec98a986ac
+MISC ChangeLog 2500 SHA256 b1c0cce85e56bcfcc47840d9c7cb59db4291fda3ba05ab9c1f8ec5921724816c SHA512 6ec0a0e61bc58958b6d6fad12a7e5f6b34020a8b3b051fd302e3374a6343f35eb10516e932cce6c3f8dbe2af08dccbefef45c4e85654221c967e832d0d89d760 WHIRLPOOL 5d1f4846e3ee75e57a09c115fba017f6b397cb452fe7493187ca9b1571e0ba10e7f1b105df01745122e172eda694363e5430f2797322e97c4a05044d3f74ba93
+MISC ChangeLog-2015 1523 SHA256 f3be8da54e6d8497efb8869ca339feadc138df43df636b7610178efc5de73433 SHA512 d113c57623dc3be19f12ccd71877d4cbb66134f29131e243c8d2553b1f2aa172b0399988ed9d20dad29890f3d26c407c459fe2273b7758992b5ed6b4b2cdbbde WHIRLPOOL df6bcd5224e58a394016d61df1071b9dfc3d1e4e9ee5fc3c7697b82d999295a5fd550f57766f97f1bc6ce0321b1102eff24007d749b8d1ee271793262f4f2384
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-action/shadowgrounds-survivor-bin/metadata.xml b/games-action/shadowgrounds-survivor-bin/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-action/shadowgrounds-survivor-bin/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 type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/games-action/shadowgrounds-survivor-bin/shadowgrounds-survivor-bin-0_beta11-r1.ebuild b/games-action/shadowgrounds-survivor-bin/shadowgrounds-survivor-bin-0_beta11-r1.ebuild
new file mode 100644
index 000000000000..1f0d7692f9b5
--- /dev/null
+++ b/games-action/shadowgrounds-survivor-bin/shadowgrounds-survivor-bin-0_beta11-r1.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit unpacker eutils games
+
+DESCRIPTION="human survivors who battle against the ongoing alien onslaught"
+HOMEPAGE="http://shadowgroundsgame.com/survivor/"
+SRC_URI="Survivor${PV/*_b/B}.run"
+
+LICENSE="frozenbyte-eula"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE=""
+RESTRICT="fetch strip"
+
+DEPEND="app-arch/unzip"
+RDEPEND=">=sys-libs/glibc-2.4
+ >=sys-devel/gcc-4.3.0
+ !amd64? (
+ gnome-base/libglade
+ )
+ amd64? (
+ >=gnome-base/libglade-2.6.4-r1[abi_x86_32(-)]
+ )"
+
+S=${WORKDIR}
+
+d="${GAMES_PREFIX_OPT}/${PN}"
+QA_TEXTRELS_x86="`echo ${d#/}/lib32/lib{avcodec.so.51,avformat.so.52,avutil.so.49,FLAC.so.8}`"
+QA_TEXTRELS_amd64=${QA_TEXTRELS_x86}
+
+pkg_nofetch() {
+ einfo "Fetch ${SRC_URI} and put it into ${DISTDIR}"
+ einfo "See http://www.humblebundle.com/ for more info."
+}
+
+src_unpack() {
+ # manually run unzip as the initial seek causes it to exit(1)
+ unpack_zip ${A}
+ rm lib*/lib{gcc_s,m,rt,selinux}.so.?
+}
+
+src_install() {
+ local b bb
+
+ doicon Survivor.xpm || die
+ for b in bin launcher ; do
+ bb="survivor-${b}"
+ exeinto ${d}
+ newexe ${bb} ${bb}
+ games_make_wrapper ${bb} "./${bb}" "${d}"
+ make_desktop_entry ${bb} "Shadowgrounds Survivor ${b}" "Shadowgrounds Survivor"
+ done
+
+ exeinto ${d}/lib32
+ doexe lib32/*
+
+ insinto ${d}
+ doins -r Config data Profiles *.fbz *.glade *-logo.png
+
+ prepgamesdirs
+}
diff --git a/games-action/shootingstar/Manifest b/games-action/shootingstar/Manifest
new file mode 100644
index 000000000000..ab4f2bbfeaf7
--- /dev/null
+++ b/games-action/shootingstar/Manifest
@@ -0,0 +1,8 @@
+AUX 1.2.0-gcc34.patch 1053 SHA256 af546d3f6201db0e42b4f1bade2ba214f10959986b95892887e17f33f1e23ee2 SHA512 0941733f645f1fa97dfc860d2f9d33bf6e96a75ada97fd477d60d9aa21a693a067731834df3c31fd2abfde3e7d2a4fe429b8aeeb154100cd730c0713a70cd247 WHIRLPOOL 046791c9aa997bee7a4e150576bb82e8fa62fe35845f673327d9dd0474b00cf7809cc2dfb84dbb5ebadebcbff2ba4a602f7a57aa1743b947bea37dcd2b84e2d5
+AUX shootingstar-1.2.0-gcc44.patch 324 SHA256 70e521231c187761bb99ca6e0fbceb5e6be266084f6536acbe999846e3089d4d SHA512 3bda8a966ed6d6536390b228606bc65b4789d8c2adde8e993089b8e63a62bbdceae4d0ec97c3c7f5d87b5b9c3149eb85d4eee64db295b5aa8c67f2f5349b21f1 WHIRLPOOL d9de8a0ab19a4b25e5e9d308bff8200719b723a34c553f5721c474815f89c5585d5ee3f2695120873aae0858d214d7b3e68bd10f0da9d4fa7b9b7658ae5d4dd6
+DIST shootingstar-1.2.0.tar.gz 7755911 SHA256 21ed7e557a77a12c1bde5f968c55659667c1b14702f3b0ca5762d10374c6b1d9 SHA512 5bc13a444c925ab834482fad7f055ea02eac471f454a3f0ed80e50c3b0956586b7bfa68db82e3034696fa2e8ce5beaf10fc8b8583508e1c29c276469ef7b2b74 WHIRLPOOL 543e20c6fc7513d0c61262bab2f949d3b8855e8cbf78dc4dd594d641ae10583621ccac4276557e3bc0fc2fc71dfe2cc4362b774e32123a12f882a4edfcdce9af
+EBUILD shootingstar-1.2.0-r1.ebuild 992 SHA256 1b4c8d701eff9bbee16cd3fd3f852589f9974cca1f72a29c94ea6519cd084ebe SHA512 cc9efb4a567400d14b86a62081e94f66306322d110c07c3868efdde08b74b8e57101426cdbbe27fcfb05da768e61065529cb4e88e55b40fd4c7a6b57c17041fb WHIRLPOOL 892c24ab6de2bb1e75840246f5500252c665cb92c2aec6e765e11bf64515ead95cac05ed1d961cfcb81d6c3226bd029c5a4283bd86d49b1f8e6a687cc0bf6e6b
+EBUILD shootingstar-1.2.0.ebuild 923 SHA256 2a74f07bbfe050809626aa220cc18dee59bb3053b7a5c6495e9da86d8659f978 SHA512 62d34067557cecbb480f2757debeadb0b71d39696bc33aedabea2fe96fda66bdea0c8fd8d4e7fa41ab2ea3ab79cf559ae05930c721dfe31a57e663842a8258d0 WHIRLPOOL da5ec262f238d95b9feaf5ad4183f78486fb3d4fea648921149f0a8d3a68100efa2a3c62544c4f30221d537250040629dc94e98b4e10b5acaceafcde7bd9c614
+MISC ChangeLog 2513 SHA256 3af88f332f5daa3954da212fc5b672c9fb15189cdb618c1b7c44e5314663011e SHA512 83dfae3d540772b3728ff5fbd7f377291df015072a4eac8a6204fdb94ee1501cb1eacc087169b602556cc2a3faa0291d2adc56f2e7b563534e6c15d5e7ed20e9 WHIRLPOOL 2c63a0731dd8cec60e1ca247ac6223ac4d0ff8aeddd121e125cb229b06b2b9ffdc04f576bf80fd741d69c5dea53f08715bba8dc4084027e17a2baca960df8c60
+MISC ChangeLog-2015 1543 SHA256 c7e3ac1a5f645c1c042971ca2d96a0d03af740002026ebbc53f102cae45b6f1f SHA512 aee44beae2b30824b0ab77d748fb5834212151f40a1a9b553eccad5bbabb4e2568254b015188e06636ed2f625ccdf79809d8232b32082fb0ec943a543f2084ef WHIRLPOOL 043c6fe7fd6f7ebb89337d3451e6ab3c5ecd6afcfbc4d5a21e51c56026415eb7aa42532ff6ea4d3069ebe322791752113f992c1a6038076a1abdfbdab5a7b737
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-action/shootingstar/files/1.2.0-gcc34.patch b/games-action/shootingstar/files/1.2.0-gcc34.patch
new file mode 100644
index 000000000000..b55997552fc8
--- /dev/null
+++ b/games-action/shootingstar/files/1.2.0-gcc34.patch
@@ -0,0 +1,23 @@
+diff -ur shootingstar-1.2.0/src/engine/cTextureFont.cpp shootingstar-1.2.0.loz/src/engine/cTextureFont.cpp
+--- shootingstar-1.2.0/src/engine/cTextureFont.cpp 2003-07-06 19:31:10.000000000 +0100
++++ shootingstar-1.2.0.loz/src/engine/cTextureFont.cpp 2004-07-26 20:51:16.992768063 +0100
+@@ -31,6 +31,7 @@
+ #include <stdio.h>
+ #include <GL/gl.h>
+ #include <GL/glu.h>
++#include <math.h>
+ #include "cTextureManager.hpp"
+ #include "Debug.hpp"
+ //------------------------------------------------------------------------------
+diff -ur shootingstar-1.2.0/src/game/cOptions.cpp shootingstar-1.2.0.loz/src/game/cOptions.cpp
+--- shootingstar-1.2.0/src/game/cOptions.cpp 2003-12-22 05:09:06.000000000 +0000
++++ shootingstar-1.2.0.loz/src/game/cOptions.cpp 2004-07-26 21:00:25.265284270 +0100
+@@ -201,7 +201,7 @@
+ dbgError () << "Unable to read from options file\n";
+ throw runtime_error ("Unable to load options");
+ }
+- int (keys.keys[i]) = key; // IS THIS SAFE?
++ keys.keys[i] = (SDLKey)key; // IS THIS SAFE?
+
+ fin >> key;
+ keys.buttons[i] = key;
diff --git a/games-action/shootingstar/files/shootingstar-1.2.0-gcc44.patch b/games-action/shootingstar/files/shootingstar-1.2.0-gcc44.patch
new file mode 100644
index 000000000000..dfc1a8d8e77e
--- /dev/null
+++ b/games-action/shootingstar/files/shootingstar-1.2.0-gcc44.patch
@@ -0,0 +1,10 @@
+--- a/src/engine/dbg.cpp 2009-06-03 15:15:46.000000000 +0200
++++ b/src/engine/dbg.cpp 2009-06-03 16:09:19.000000000 +0200
+@@ -28,6 +28,7 @@
+ #include <vector>
+ #include <map>
+ #include <algorithm>
++#include <cstdio>
+
+ /**********************************************************************
+ * Implementation notes
diff --git a/games-action/shootingstar/metadata.xml b/games-action/shootingstar/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-action/shootingstar/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 type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/games-action/shootingstar/shootingstar-1.2.0-r1.ebuild b/games-action/shootingstar/shootingstar-1.2.0-r1.ebuild
new file mode 100644
index 000000000000..11411f402d59
--- /dev/null
+++ b/games-action/shootingstar/shootingstar-1.2.0-r1.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools eutils gnome2-utils
+
+# Note: currently segfaults on startup, but that's also in the previous ebuild
+# See https://bugs.gentoo.org/607428
+
+DESCRIPTION="A topdown shooter"
+HOMEPAGE="http://linux.softpedia.com/get/GAMES-ENTERTAINMENT/Arcade/Shooting-Star-19754.shtml"
+SRC_URI="mirror://gentoo/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="
+ media-libs/libsdl[video]
+ media-libs/sdl-image
+ media-libs/sdl-mixer
+ virtual/glu
+ virtual/opengl"
+RDEPEND=${DEPEND}
+
+PATCHES=(
+ "${FILESDIR}"/${PV}-gcc34.patch
+ "${FILESDIR}"/${P}-gcc44.patch
+)
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_install () {
+ default
+ newicon -s 128 data/textures/body1.png ${PN}.png
+ make_desktop_entry ${PN} "Shooting Star"
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/games-action/shootingstar/shootingstar-1.2.0.ebuild b/games-action/shootingstar/shootingstar-1.2.0.ebuild
new file mode 100644
index 000000000000..8e46a06ad764
--- /dev/null
+++ b/games-action/shootingstar/shootingstar-1.2.0.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit autotools eutils gnome2-utils games
+
+DESCRIPTION="A topdown shooter"
+HOMEPAGE="http://linux.softpedia.com/get/GAMES-ENTERTAINMENT/Arcade/Shooting-Star-19754.shtml"
+SRC_URI="mirror://gentoo/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="virtual/opengl
+ virtual/glu
+ media-libs/libsdl[video]
+ media-libs/sdl-mixer
+ media-libs/sdl-image"
+RDEPEND=${DEPEND}
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${PV}-gcc34.patch \
+ "${FILESDIR}"/${P}-gcc44.patch
+ eautoreconf
+}
+
+src_install () {
+ default
+ newicon -s 128 data/textures/body1.png ${PN}.png
+ make_desktop_entry ${PN} "Shooting Star"
+ 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-action/slune/Manifest b/games-action/slune/Manifest
new file mode 100644
index 000000000000..0d37a85c7e39
--- /dev/null
+++ b/games-action/slune/Manifest
@@ -0,0 +1,5 @@
+DIST Slune-1.0.15.tar.bz2 9549694 SHA256 a982f1af18937a3429cee82cff9315838f508dfb71116ba08519cdfa6ed4dfa4 SHA512 7f26f91a7db5ccfd2b7063592c53a0b5791f5db5dee582c0f2208af7615c3b7f0b1ed420ecef1f1396a6b1573cb99cc40e886bc47bc22d064bc3ad4814421920 WHIRLPOOL e862ac1f318fef512ddbd3e6c76554341a67e54bed8fdecd9df5f63be0176d35a4b3441e65667205fa77c46826fd2ad83e2af6bc7ee3d63e93214388e5b39475
+EBUILD slune-1.0.15-r1.ebuild 1531 SHA256 6722d53f180805dd7a798f5d08d7125b1e960fbb99241460be5d9f8c1ab278aa SHA512 ba25efa2e0eac7ac8791581a7b7d65888641e0c6cbea9a2b720ff06134d4762d53b424c87ae780bfae1d2fc4c4bc1156f248e93ef2b577ff3b899c2eeb7ff8e8 WHIRLPOOL b355bb81c2c35dd429c2b82c3cd3eec64ea0162781183652bd1c7dfc63d38ff71c9bbc9ecbba8a95c662351d0db037cedfb7f712613479b88d5f869cb9c76467
+MISC ChangeLog 2433 SHA256 85b41acd513110ad5112ebc554b3d9d11ab0e432ba88f3ce5ecd8582e223ef3e SHA512 6fede0cab386c1e30200580cfa1fec1a2f4b796024158e2075d41c82e2404d83d1caff34d29b7dc3fd555b141e1bc943bc03fba06d11c968838e85aca4188385 WHIRLPOOL bc8547f8fd7fe24a826ce69d7cbdf20ad6315fb1597d5e628c91b52f591d5d362f7eb9469aeb18214366351c6f98c43dec1dfc6cc77f4993af0143f7951c1600
+MISC ChangeLog-2015 3339 SHA256 93965cf997871d8259b893ce29a551cd86a2c7a4f95214a69b4282d95faf069c SHA512 87851b3f18a9e8905d87e7c9610c3096e1398d518ed2e72bc2731b79be60f02ffcbf737654516eecabe9240249bad2bd86ade74a5cd527eceaea27990485261b WHIRLPOOL 1a49c73245f6eb786819c42e68d33c22cd298fbc798bab1e82f4e496213be49fd0cd0cb6b5c2e7c9aa0fdcbcd48fc8465337dde20c384788e458820f39d5e029
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-action/slune/metadata.xml b/games-action/slune/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-action/slune/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 type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/games-action/slune/slune-1.0.15-r1.ebuild b/games-action/slune/slune-1.0.15-r1.ebuild
new file mode 100644
index 000000000000..3dc3e885cb03
--- /dev/null
+++ b/games-action/slune/slune-1.0.15-r1.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit gnome2-utils python-utils-r1 distutils-r1 games
+
+DESCRIPTION="A 3D action game with multiplayer mode and amazing graphics"
+HOMEPAGE="http://oomadness.tuxfamily.org/en/slune/"
+SRC_URI="http://download.gna.org/slune/Slune-${PV}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND="virtual/opengl
+ >=media-libs/libsdl-1.2.6
+ >=dev-python/soya-0.9
+ >=dev-python/py2play-0.1.9
+ >=dev-python/pyopenal-0.1.3
+ >=dev-python/pyogg-1.1
+ >=dev-python/pyvorbis-1.1"
+DEPEND="${RDEPEND}"
+
+S=${WORKDIR}/Slune-${PV}
+
+python_install() {
+ distutils-r1_python_install \
+ --install-scripts="${GAMES_BINDIR}" \
+ --install-data="${GAMES_DATADIR}" \
+ --install-lib="$(python_get_sitedir)"
+
+ # FHS broke the logic, fix it
+ local i
+ for i in $(ls -I locale "${ED}${GAMES_DATADIR}"/${PN}) ; do
+ dosym "${GAMES_DATADIR}/${PN}/${i}" "$(python_get_sitedir)/${PN}/${i}"
+ done
+}
+
+src_prepare() {
+ distutils-r1_src_prepare
+}
+
+src_compile() {
+ distutils-r1_src_compile
+}
+
+src_install() {
+ distutils-r1_src_install
+
+ # fix install dest of locales
+ mv "${ED}${GAMES_DATADIR}"/${PN}/locale "${ED}"/usr/share/locale || die
+
+ newicon -s 48 images/${PN}.48.png ${PN}.png
+ make_desktop_entry ${PN} "Slune"
+
+ 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-action/snipes/Manifest b/games-action/snipes/Manifest
new file mode 100644
index 000000000000..4bedfd29e576
--- /dev/null
+++ b/games-action/snipes/Manifest
@@ -0,0 +1,7 @@
+AUX snipes-1.0.4-nongnulinker.patch 711 SHA256 4095a2752356f8f318786855b4249856cdf366a999d019a951f2cc291b6e418c SHA512 20ecb0e76e79b91fae7d9a8f3448cc88161ebbb8ee10e82c3f3eabf120c53c14392e0df4eb61530ae89f2ebbcf84db69affa9239e376c6a3d93b4f2f5dca1259 WHIRLPOOL e9d8add5db3ff3581d86686508d82029334cf4826bf32dfb23834497afe0f7762771fca34742a213cd3cf90c778afad11160d549f4ba13d47a78f8188e24a390
+DIST snipes-1.0.4.tar.gz 39150 SHA256 61096e82e2467e3b8ada0560e08d0745022cfe674cdf333e2ee7e140e841a913 SHA512 de2cfdc3062055bfd04766f11894786af2ccd57ee1c8bcfe28d2d6894fe543830061ad7d16fa5e0363a25dcfd4a4c297ec0b81e449392a7b2b7d65da2e2a2f9b WHIRLPOOL 38c801035217a68ee43a209011fd17f66a4acace1e3f6896984aa9e9242366c897a344d35c4775a20b6439f16b098569156718f720c11b2c1f30bf616615abc5
+EBUILD snipes-1.0.4-r1.ebuild 643 SHA256 64f99b5c8392b55f0edbada702f1c050f7176d63a23ade2b18c78dffa8a118af SHA512 dc9b4c48a03190d611ea15d32b2a4177748f522808c776c7211a1cf891a043588b9f1f16bd30b5a3af713a9f5e309f738e92a831de78274ed099164819fae7b3 WHIRLPOOL e640ba5e2fa25ed8dea092924c84d749e0017b031566f4a60e9970920f011d38321787ff88daf0de68b803a820c2b6432c423b1ace8b93c40cfc3335a8f54605
+EBUILD snipes-1.0.4.ebuild 680 SHA256 40f7fa0e5a14e790cb82011c69b27612c47a33e02d4aa4bc76a49d2637affdbf SHA512 e7e31bf9eceee71008edd1a3f43cb164e476241463d7f2e497423f3571543ba413b895f532616977d9baa8ac0fdc8c34daff02b53fc3e42eb61aed4356fdc2fd WHIRLPOOL e314d6ed315a019e6a805942aff91a33509cda5e9a31b973f919134bafd671075ab636406a6d228262dc3563c3291193cb57d203de6e98153433fa0d85d2f665
+MISC ChangeLog 2694 SHA256 cfb4d65adba6edfd9ec7993e143d698f66ef62e5a4b37780ac0fbe6c2fe9a72c SHA512 94a06a2c7abb80224f26dbc439c98a1abad40d19d3e586d6008ec1f4e829cf571761c3f2b7d00e392e0acbf09a975aa36b286e29c7d798de98a395099b98f00c WHIRLPOOL 6877ee42f63f980ff72fb243f12ddfcfac09c9b1c88cffb853861668b7b17e6cf343deafaab12d183ce710e4d808c2e7248f1f34031d58e99dec78094807ccb0
+MISC ChangeLog-2015 1434 SHA256 1dc01580d31349b36808cfc8386f15082318a1ef2be4df474dd15233225b2306 SHA512 e7d51f355668860c18cb9587b8f84b4c330532a4a350fe401df01f26cab8b8f03d6167f9563826496206b9964e05157ec00edbf752dec7333d1d2e24ca792e83 WHIRLPOOL 380cc18b8d7d361b20915e89545c09534358a00b3a8289187d57bc97dcdc3d46d2d0d56f5b69e19e82c08593a7d1838424cf207937c6bdc74947801cbcb87284
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-action/snipes/files/snipes-1.0.4-nongnulinker.patch b/games-action/snipes/files/snipes-1.0.4-nongnulinker.patch
new file mode 100644
index 000000000000..8bdaeef3e356
--- /dev/null
+++ b/games-action/snipes/files/snipes-1.0.4-nongnulinker.patch
@@ -0,0 +1,20 @@
+--- a/Makefile 2011-12-18 17:24:28.795315064 +0100
++++ b/Makefile 2011-12-18 17:24:59.005311478 +0100
+@@ -33,7 +33,7 @@
+ IMGOBJ = $(OIMGS:%.pbm=$(INTERMEDIATE)/%.o)
+
+ CFLAGS += `sdl-config --cflags` -I$(INTERMEDIATE)
+-LDLIBS += `sdl-config --libs`
++LDLIBS += `sdl-config --libs` -lm
+ LDFLAGS += -Wl,-z,noexecstack
+
+
+@@ -52,7 +52,7 @@
+
+ # Why does this result in an executable stack? Can I run my bitmaps? Do bitmaps behave like Conway's game of life, when run?
+ $(INTERMEDIATE)/%.o: $(IMG)/%.pbm
+- $(LD) -r -b binary -z noexecstack -z really_noexecstack -z pretty_please_noexecstack -o $@ $<
++ $(LD) -r -b binary -z noexecstack -o $@ $<
+
+ snipes.6: snipes.6.in
+ sed s/'`VERSION`'/`cat VERSION`/ < $< > $@
diff --git a/games-action/snipes/metadata.xml b/games-action/snipes/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-action/snipes/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 type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/games-action/snipes/snipes-1.0.4-r1.ebuild b/games-action/snipes/snipes-1.0.4-r1.ebuild
new file mode 100644
index 000000000000..9d8e9a36c48b
--- /dev/null
+++ b/games-action/snipes/snipes-1.0.4-r1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit toolchain-funcs eutils
+
+DESCRIPTION="2D scrolling shooter, resembles the old DOS game of same name"
+HOMEPAGE="https://cyp.github.com/snipes/"
+SRC_URI="https://cyp.github.com/snipes/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="media-libs/libsdl[sound,video]"
+RDEPEND=${DEPEND}
+
+PATCHES=(
+ "${FILESDIR}"/${P}-nongnulinker.patch
+)
+
+src_compile() {
+ tc-getLD
+ default
+}
+
+src_install() {
+ dobin snipes
+ doman snipes.6
+ dodoc ChangeLog
+ doicon ${PN}.png
+ make_desktop_entry snipes "Snipes"
+}
diff --git a/games-action/snipes/snipes-1.0.4.ebuild b/games-action/snipes/snipes-1.0.4.ebuild
new file mode 100644
index 000000000000..e7acfa91955d
--- /dev/null
+++ b/games-action/snipes/snipes-1.0.4.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit toolchain-funcs eutils games
+
+DESCRIPTION="2D scrolling shooter, resembles the old DOS game of same name"
+HOMEPAGE="https://cyp.github.com/snipes/"
+SRC_URI="https://cyp.github.com/snipes/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="media-libs/libsdl[sound,video]"
+RDEPEND=${DEPEND}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-nongnulinker.patch
+}
+
+src_compile() {
+ tc-getLD
+ default
+}
+
+src_install() {
+ dogamesbin snipes
+ doman snipes.6
+ dodoc ChangeLog
+ doicon ${PN}.png
+ make_desktop_entry snipes "Snipes"
+ prepgamesdirs
+}
diff --git a/games-action/solar2/Manifest b/games-action/solar2/Manifest
new file mode 100644
index 000000000000..c0314efcc047
--- /dev/null
+++ b/games-action/solar2/Manifest
@@ -0,0 +1,6 @@
+DIST solar2-linux-1.10.tar.gz 106202569 SHA256 33211605946741db730082478c4a408547a89facfc2e3535b124c6706809d8b2 SHA512 68475cfe9220a1f19608cd2dfb575979e231dcf1bc61e12230db5a39856a03afceeb8c3f2b0ea6d958b36a53945bdb2768261f2b0bcc50a88f2b3eeddc48df9d WHIRLPOOL 86d0ed2c7a28e498323949e871f7ba8f1714f39f98ab625f6dddb0249af7c1e653264ebc4b76cc9be5579f99395e2c578363effcd2c97bb27690b05ec4e73a4e
+DIST solar2.png 6478 SHA256 ab62168651de322dc68a9094baf1ba92524d2d9e76b1650eef60527cd7e3f611 SHA512 b1110d19d62274ac90391f9611fc8efaa1c2ca70cf62f146969768ed2dd76e013054b1a9dfdb123b56536f5ba7788971747219485811eeb6652f22e0867348d9 WHIRLPOOL 358a3fb56c13710abf4ac3115c968579c787ed67f4c8672e0236ce379a56d6540f8c5ad6f8ca16370c0b080ae2763ec2256cbcd1ff2bb0765a7dc5164fc39972
+EBUILD solar2-1.10.ebuild 2473 SHA256 7f4def6eeea53573179a6c37f14dd6be0b839903d2c8a64da736b227cdffd583 SHA512 12888fadce16a8efa9508f20a2df750049de7258227c0dd33dd554e57f146ce5663e3a0fe67e7879ea804e0f1b2dcc620f2f84db2a9ba54aaf6f2ca2fbd33b9e WHIRLPOOL cd2376baf0589c873dbcabb5cd52002fa503a9166b1ea7a7ed519fe71962a285948d625eb1d929d000363986fc0ff2f68fbbe68a33299d27c7701404df4ef0be
+MISC ChangeLog 2841 SHA256 95b5914a8484fb2a4eda24a0dfdf00068b7881bba1dd2ef7062978ef6c23bdcf SHA512 4c3984968bedce16d865a6c10136328415925949ed68e3b8d1a9f5d9fb24724d7b05a2aa2beb3d9d6aaee6361cb22284e9f39c3a08299b1f54d865ce2bd5f9e4 WHIRLPOOL 49e9009f99aa2b25043760c50072dbfed559aa2c2ac662aaa2dcd783398a9c6482a2b32e28929ac026b978fe9a6ab7b7ae82b08f26b033a6c4c48c58cc89c90e
+MISC ChangeLog-2015 1323 SHA256 3af6efda21a9db3eec4f04aae96ce0ac3978d425b0625ba9ebdc4cb6a6d27837 SHA512 cbe8f905c5a6abf81ae94974981ce971d37b80414f107926071dd396744cea8179179b95bfa3e121fde2b3be201d21bc1f494ccf4c1abd1f39b7957ba49156e6 WHIRLPOOL 5be6138ae8cce569a00158cc6016d2043676aa18349c1cfaf40689c08ec3886b68d567ed92d8e1913532d416d5f49b922f843d667b87e7ee686690fa9c2da4eb
+MISC metadata.xml 355 SHA256 3fe59ecadf91cdd661b063661864ef57eb3df8d59bd55a2eb9e61dc1a75e5bd8 SHA512 78f8cc8f1f1be915da206e4b8be196a21b58a6f209023594755e481136a1b86ee31c8d0dfedd516d756a47db624e89728875b073b71c3b08ac94a5cde8ff3b83 WHIRLPOOL adc2ef67e7870008ce851a78268832c5ff50649850b2614fb66edd3a16ccbad441306f00c44000385a742552b91b4a805408b19aad2ef3b7dda9e86532703dba
diff --git a/games-action/solar2/metadata.xml b/games-action/solar2/metadata.xml
new file mode 100644
index 000000000000..b878aaa1812d
--- /dev/null
+++ b/games-action/solar2/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <use>
+ <flag name="bundled-libs">
+ Use the upstream provided bundled libraries.
+ </flag>
+ </use>
+</pkgmetadata>
diff --git a/games-action/solar2/solar2-1.10.ebuild b/games-action/solar2/solar2-1.10.ebuild
new file mode 100644
index 000000000000..d2490df9c0c7
--- /dev/null
+++ b/games-action/solar2/solar2-1.10.ebuild
@@ -0,0 +1,105 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# TODO: - unbundle libmono for 64bit
+# - unbundling libSDL_mixer breaks the game
+# - provide icon
+# - test useflags for libsdl on x86
+
+EAPI=5
+
+inherit eutils gnome2-utils games
+
+DESCRIPTION="An open-world, sandbox game set in an infinite abstract universe"
+HOMEPAGE="http://murudai.com/solar/"
+GAMEBALL="${PN}-linux-${PV}.tar.gz"
+ICONFILE="https://dev.gentoo.org/~hasufell/distfiles/${PN}.png"
+SRC_URI="${GAMEBALL} ${ICONFILE}"
+
+LICENSE="all-rights-reserved"
+SLOT="0"
+KEYWORDS="-* amd64 x86"
+IUSE="bundled-libs"
+RESTRICT="bindist fetch splitdebug"
+
+MYGAMEDIR=${GAMES_PREFIX_OPT}/${PN}
+QA_PREBUILT="${MYGAMEDIR#/}/lib/*
+ ${MYGAMEDIR#/}/Solar2.bin.x86"
+
+RDEPEND="
+ virtual/opengl
+ amd64? (
+ >=media-libs/flac-1.2.1-r5[abi_x86_32(-)]
+ >=media-libs/libsdl-1.2.15-r4[X,sound,video,joystick,abi_x86_32(-)]
+ >=media-libs/libvorbis-1.3.3-r1[abi_x86_32(-)]
+ >=virtual/opengl-7.0-r1[abi_x86_32(-)]
+ !bundled-libs? (
+ >=media-libs/libmad-0.15.1b-r8[abi_x86_32(-)]
+ >=media-libs/openal-1.15.1[abi_x86_32(-)]
+ >=media-libs/sdl-mixer-1.2.12-r4[flac,mikmod,mad,mp3,vorbis,abi_x86_32(-)]
+ >=media-libs/libmikmod-3.2.0[abi_x86_32(-)]
+ )
+ )
+ x86? (
+ media-libs/flac
+ media-libs/libsdl[X,sound,video,joystick]
+ media-libs/libvorbis
+ !bundled-libs? (
+ dev-lang/mono
+ media-libs/libmad
+ media-libs/libmikmod
+ media-libs/openal
+ media-libs/sdl-mixer[flac,mikmod,mad,mp3,vorbis]
+ )
+ )"
+
+S=${WORKDIR}/Solar2
+
+pkg_nofetch() {
+ einfo "Please buy & download ${GAMEBALL} from:"
+ einfo " ${HOMEPAGE}"
+ einfo "Also download ${ICONFILE}"
+ einfo "and move both to ${DISTDIR}"
+ einfo
+}
+
+src_prepare() {
+ # remove unused files
+ rm solar2.sh || die
+
+ if ! use bundled-libs ; then
+ einfo "Removing bundled libs..."
+ if use amd64 ; then
+ # no mono 32bit libs on amd64 yet
+ rm -v lib/libmad.so* lib/libmikmod.so* lib/libopenal.so* || die
+ else
+ rm -v lib/libmad.so* lib/libmikmod.so* lib/libopenal.so* lib/libmono-2.0.so* || die
+ fi
+ fi
+}
+
+src_install() {
+ insinto "${MYGAMEDIR}"
+ doins -r *
+
+ games_make_wrapper ${PN} "./Solar2.bin.x86" "${MYGAMEDIR}"
+ make_desktop_entry ${PN}
+ doicon -s 64 "${DISTDIR}"/${PN}.png
+
+ fperms +x "${MYGAMEDIR}"/Solar2.bin.x86
+ 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-action/spacearyarya-kxl/Manifest b/games-action/spacearyarya-kxl/Manifest
new file mode 100644
index 000000000000..a3e366d964a2
--- /dev/null
+++ b/games-action/spacearyarya-kxl/Manifest
@@ -0,0 +1,9 @@
+AUX spacearyarya-kxl-1.0.2-clang.patch 304 SHA256 f5ac4fbe22580d55368ed866ed1231194e62cd247fca393c877180e6ddf28b0c SHA512 b70d09c918a80af4432d72d3bfe1c89c4e4b5d1c1ae2eb2eb0a9073e5410a144e1e8164d243d070f37b30e0d29d64c932d2525b83efc19a7adf570d44ba9cca1 WHIRLPOOL 49e09899fe01c71025b3588608f3ea5779fb71b3fb81c81e999128977197388a1724d1e37945ac3081d879d823f65e4d56d9b2ec9a62d3a3e0c7e3ff9b7fabd0
+AUX spacearyarya-kxl-1.0.2-flags.patch 304 SHA256 b2a81707187e302f0773ba0e3a53a6fa044eb75930401efd1b9ad6d78a58350e SHA512 bc341e05daed7c4f2d0009dec73f068bc2d4bca3d627a3eed040360c41d96967211f4bd186f203aa41a713c31191e4a16c4754c4b22a7607ae2eebba3ddb3394 WHIRLPOOL b5b29833417ad3af7514d8ea3a70c0d29ce1cfbed33e0522fe6657dbab719b3543c79cc2812fd3e13b9944e353da2a10779834d690e280bfcea5b7a92893d37f
+AUX spacearyarya-kxl-1.0.2-gentoo-paths.patch 2384 SHA256 912a878a01995c65b92ee8d5556f58c7d0f315de20f3effc8bbf95ded8e18e00 SHA512 93351d22824d3fcc525ca33b2ae1b9949283541e62a717530d675bf63981f450a1667df22097d07ec27c1e43ed0386142ec424fa89601df0158821924ae06011 WHIRLPOOL 9bd95e0f1981a264184e65f2aa21209600ae82853072c2609b81d91ae6317889dfbc17393c3ba4186a2e72db691a00d2d794dd36907b6d6eb50d8dc22a29b0d0
+DIST SpaceAryarya-KXL-1.0.2.tar.gz 279894 SHA256 54cdcbd299fc5cc618ed88d7729db1a64dd48edefbfe569d5352289a9f11ce63 SHA512 1109606741bab6c290395cdfd8d19cf12e68cfef41f50164586c316fc425a32232e0f8dd822207d969c27c3f7a8478d1a65f36fe5468f3cfa8932c99ab3cb125 WHIRLPOOL d26f387bb70610cfe84b9c45d464035b4e6c9b30d9d26690484e90b1dfd68f24397203bf16f3a10940547d45f8ec3eea139ded584c1fffd8dde6aaec448011d4
+EBUILD spacearyarya-kxl-1.0.2-r1.ebuild 804 SHA256 d746ef5d99ecfdc27ee099f71b4201f417a9bbea09da026db6ddc6fe6ca92f0e SHA512 51ac9ed4014d44bf2955de776014dfe90dabf4831f8c41904542b6b827169333173d0bdfe1d0ac8b3e55b99838ee6ac0df229c29a2468c9cebbb61ae7c9d886e WHIRLPOOL a50a63ea6d74efcb9cd5359353960b8216d0b69654b7d40bc5aba62c1f2c2667939489efc38f5c1a0a54dece9d53dd7b5e7afe7cee9a2e66099d1d0b8bb85848
+EBUILD spacearyarya-kxl-1.0.2-r2.ebuild 830 SHA256 ef6a703ba2f6d7cab4a1ca4210bb4892f24000e7cc365ad051a36ec47f2f5384 SHA512 9491e2c8658923ebda634a635e750bc12542c41252fa41d2ecc8a1c8a373e530abc670fb27d91f2b7428b8e900f4cc4b7aecf75e112f5aba3c48a2dd470f44f9 WHIRLPOOL 7711391e85c5c2b526fc92d684f5155b3594b0f578d576bf18095de12dfc8d2ab360fe28faeb051fd1bbb6aafae70154c06a14e77c06eecb14876d0928075fb6
+MISC ChangeLog 3096 SHA256 e8e455d5178ddd58d15a8ece47ca944f3da7a2ac9b02a4aa2b44adaf4c5aced8 SHA512 dd8df83350f45c5efab9ddbccc1f74a5835a579b0a9a926195afdeb17fc93887ab242803de4b89d7b52916bab825d2a497611999e3a783a6ccbc5893432d66f1 WHIRLPOOL 7c2195ccaae2f570922b9b3c5b6262fb2e278584934efb6ea1ab676bb42a218da26189154934a27bfd05b4787ad22897631235f0258daac2f1ffc16fd99cff92
+MISC ChangeLog-2015 1833 SHA256 330c89722e7ca26150753fdecfa0b86736687df2c8e4af9a622f5e6443a4627e SHA512 3be6fdb5a64477849fc4c3dd52f0132e1ece2e2d46ac3cfc63b0205b72f708067918a24b036b9551fd627eb40489a42ba9d5f6fa1281a89be948d8e3ac73b73d WHIRLPOOL 070c5002ee2d92c2aeed7b87b5becbdeb4d2a1f76f123a8251f1a914fdcd69754e011324336a96acac94bb8b0d21546f6a8478814637205732e100804b3fd7f2
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-action/spacearyarya-kxl/files/spacearyarya-kxl-1.0.2-clang.patch b/games-action/spacearyarya-kxl/files/spacearyarya-kxl-1.0.2-clang.patch
new file mode 100644
index 000000000000..3b9b68b745c0
--- /dev/null
+++ b/games-action/spacearyarya-kxl/files/spacearyarya-kxl-1.0.2-clang.patch
@@ -0,0 +1,11 @@
+--- a/src/ranking.c.bak 2016-07-27 16:42:34.367945713 -0500
++++ b/src/ranking.c 2016-07-27 16:43:34.679949783 -0500
+@@ -5,7 +5,7 @@
+ /**********************
+ ¥¹¥³¥¢¥é¥ó¥­¥ó¥°
+ **********************/
+-int ScoreRanking(void)
++void ScoreRanking(void)
+ {
+ Uint16 i, j, k;
+ struct passwd *pw;
diff --git a/games-action/spacearyarya-kxl/files/spacearyarya-kxl-1.0.2-flags.patch b/games-action/spacearyarya-kxl/files/spacearyarya-kxl-1.0.2-flags.patch
new file mode 100644
index 000000000000..2239858be998
--- /dev/null
+++ b/games-action/spacearyarya-kxl/files/spacearyarya-kxl-1.0.2-flags.patch
@@ -0,0 +1,11 @@
+respect CFLAGS
+
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -5,5 +5,5 @@ spacearyarya_SOURCES = extern.h \
+ your.c your.h ranking.c ranking.h \
+ boss.c boss.h
+
+-CFLAGS = @X_CFLAGS@ @KXL_CFLAGS@
++AM_CFLAGS = @X_CFLAGS@ @KXL_CFLAGS@
+ LIBS = @X_LIBS@ -lX11 @KXL_LIBS@ -lKXL
diff --git a/games-action/spacearyarya-kxl/files/spacearyarya-kxl-1.0.2-gentoo-paths.patch b/games-action/spacearyarya-kxl/files/spacearyarya-kxl-1.0.2-gentoo-paths.patch
new file mode 100644
index 000000000000..81321b76857a
--- /dev/null
+++ b/games-action/spacearyarya-kxl/files/spacearyarya-kxl-1.0.2-gentoo-paths.patch
@@ -0,0 +1,74 @@
+--- a/bmp/Makefile.am
++++ b/bmp/Makefile.am
+@@ -1,4 +1,4 @@
+-bmpdir = $(prefix)/share/SpaceAryarya/bmp
++bmpdir = $(BMP_PATH)
+ bmp_DATA = my.bmp enemy1.bmp shot.bmp bomb.bmp\
+ enemy2.bmp kage.bmp wall.bmp wall2.bmp eshot.bmp\
+ boss1_b.bmp boss1_do.bmp boss1_f.bmp\
+--- a/configure.in
++++ b/configure.in
+@@ -25,17 +25,20 @@
+ BMP_PATH=/usr/local/share/SpaceAryarya/bmp
+ WAV_PATH=/usr/local/share/SpaceAryarya/wav
+ else
+- DATA_PATH=$prefix/share/SpaceAryarya/data
+- BMP_PATH=$prefix/share/SpaceAryarya/bmp
+- WAV_PATH=$prefix/share/SpaceAryarya/wav
++ DATA_PATH=$datadir/SpaceAryarya/data
++ BMP_PATH=$datadir/SpaceAryarya/bmp
++ WAV_PATH=$datadir/SpaceAryarya/wav
++ SCORE_PATH=$localstatedir/SpaceAryarya
+ fi
+ AC_DEFINE_UNQUOTED(DATA_PATH,"$DATA_PATH")
+ AC_DEFINE_UNQUOTED(BMP_PATH,"$BMP_PATH")
+ AC_DEFINE_UNQUOTED(WAV_PATH,"$WAV_PATH")
++AC_DEFINE_UNQUOTED(SCORE_PATH,"$SCORE_PATH")
+ AC_DEFINE_UNQUOTED(TITLE,"$PACKAGE $VERSION")
+ AC_SUBST(DATA_PATH)
+ AC_SUBST(BMP_PATH)
+ AC_SUBST(WAV_PATH)
++AC_SUBST(SCORE_PATH)
+
+ AC_OUTPUT([data/Makefile wav/Makefile bmp/Makefile src/Makefile
+ spacearyarya.spec Makefile])
+--- a/data/Makefile.am
++++ b/data/Makefile.am
+@@ -1,6 +1,7 @@
+-datadir = $(prefix)/share/SpaceAryarya/data
++datadir = $(DATA_PATH)
+ data_DATA = stage1.dat stage2.dat
+ EXTRA_DIST = stage1.dat stage2.dat .score
+
+-install:
+- $(INSTALL) -c -m 666 ./.score $(DESTDIR)$(DATA_PATH)
++install-data-local:
++ $(mkinstalldirs) $(DESTDIR)$(SCORE_PATH)
++ $(INSTALL) -m 660 .score $(DESTDIR)$(SCORE_PATH)
+--- a/src/ranking.c
++++ b/src/ranking.c
+@@ -36,7 +36,7 @@
+ FILE *fp;
+ Uint16 i;
+
+- if ((fp = fopen(DATA_PATH "/.score", "r"))) {
++ if ((fp = fopen(SCORE_PATH "/.score", "r"))) {
+ fscanf(fp, "%d", &(Root->HiScore));
+ for (i = 0; i < 5; i ++)
+ fscanf(fp, "%d %d %s",
+@@ -65,7 +65,7 @@
+ FILE *fp;
+ Uint16 i;
+
+- if ((fp = fopen(DATA_PATH "/.score", "w"))) {
++ if ((fp = fopen(SCORE_PATH "/.score", "w"))) {
+ fprintf(fp, "%d\n", Root->HiScore);
+ for (i = 0; i < 5; i ++)
+ fprintf(fp, "%d %d %s\n",
+--- a/wav/Makefile.am
++++ b/wav/Makefile.am
+@@ -1,3 +1,3 @@
+-wavdir = $(prefix)/share/SpaceAryarya/wav
++wavdir = $(WAV_PATH)
+ wav_DATA = bgm1.wav bomb.wav hit.wav fire.wav die.wav boss.wav
+ EXTRA_DIST = bgm1.wav bomb.wav hit.wav fire.wav die.wav boss.wav
diff --git a/games-action/spacearyarya-kxl/metadata.xml b/games-action/spacearyarya-kxl/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-action/spacearyarya-kxl/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 type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/games-action/spacearyarya-kxl/spacearyarya-kxl-1.0.2-r1.ebuild b/games-action/spacearyarya-kxl/spacearyarya-kxl-1.0.2-r1.ebuild
new file mode 100644
index 000000000000..0c9b28221066
--- /dev/null
+++ b/games-action/spacearyarya-kxl/spacearyarya-kxl-1.0.2-r1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit autotools eutils games
+
+MY_P=SpaceAryarya-KXL-${PV}
+DESCRIPTION="A 2D/3D shooting game"
+HOMEPAGE="http://triring.net/ps2linux/games/kxl/kxlgames.html"
+SRC_URI="mirror://gentoo/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="dev-games/KXL"
+RDEPEND="${DEPEND}
+ media-fonts/font-adobe-100dpi
+ media-fonts/font-bitstream-100dpi"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-gentoo-paths.patch \
+ "${FILESDIR}"/${P}-flags.patch
+ mv configure.{in,ac}
+ rm aclocal.m4
+ eautoreconf
+}
+
+src_install() {
+ default
+ newicon bmp/enemy1.bmp ${PN}.bmp
+ make_desktop_entry spacearyarya SpaceAryarya /usr/share/pixmaps/${PN}.bmp
+ prepgamesdirs
+}
diff --git a/games-action/spacearyarya-kxl/spacearyarya-kxl-1.0.2-r2.ebuild b/games-action/spacearyarya-kxl/spacearyarya-kxl-1.0.2-r2.ebuild
new file mode 100644
index 000000000000..2396a9a92a19
--- /dev/null
+++ b/games-action/spacearyarya-kxl/spacearyarya-kxl-1.0.2-r2.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools eutils
+
+MY_P=SpaceAryarya-KXL-${PV}
+DESCRIPTION="A 2D/3D shooting game"
+HOMEPAGE="http://triring.net/ps2linux/games/kxl/kxlgames.html"
+SRC_URI="mirror://gentoo/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-games/KXL"
+RDEPEND="${DEPEND}
+ media-fonts/font-adobe-100dpi
+ media-fonts/font-bitstream-100dpi"
+
+S=${WORKDIR}/${MY_P}
+
+PATCHES=(
+ "${FILESDIR}"/${P}-gentoo-paths.patch
+ "${FILESDIR}"/${P}-flags.patch
+ "${FILESDIR}"/${P}-clang.patch
+)
+
+src_prepare() {
+ default
+
+ mv configure.{in,ac}
+ rm aclocal.m4
+ eautoreconf
+}
+
+src_install() {
+ default
+ newicon bmp/enemy1.bmp ${PN}.bmp
+ make_desktop_entry spacearyarya SpaceAryarya /usr/share/pixmaps/${PN}.bmp
+}
diff --git a/games-action/spacetripper-demo/Manifest b/games-action/spacetripper-demo/Manifest
new file mode 100644
index 000000000000..af16629dbd3f
--- /dev/null
+++ b/games-action/spacetripper-demo/Manifest
@@ -0,0 +1,6 @@
+DIST spacetripperdemo.sh 5179095 SHA256 0045e78c96f124cad6c04c6d69fef12db4b3cfe7e53ca91bfad84ce797144f21 SHA512 43c0aac805671716816dfba58fe1ccad333886a1a20a3dfdaba7b78512dbe2ca6fbe6c09782e14f81d475c9c9bccb4043bac4c8bd756800fe43596dbee5018a0 WHIRLPOOL ba1bf7c58abe7b26c613ed10cc678dc61e1f1e5899ca44c526a0bdfb050bc7796011a9d2635f2977de841f9ff356cd977b6ebc3ae89f52c88d03d28021fb5123
+EBUILD spacetripper-demo-1-r1.ebuild 1122 SHA256 30acef47af80a9bf551856495f872ff91eb1eee46420aa680e9da452d6be12fe SHA512 f84cc7d97f13cec694b21e56c52e22ea75d746edbfa42cdf0a9d719761049bac94108ae43257e0481412cfa1fa6ad84aaae333c4905c268f2f7e7e86c98fd7bc WHIRLPOOL 19d4c2051dd864a70b7451965bd7295fdd673b9258a7b55e354aca6baed196dbd93ee36ce8b59d6c64aae632611e72d8e4ab56878cafcb03f33beca7bcc329e1
+EBUILD spacetripper-demo-1.ebuild 1156 SHA256 668d8c17285ccb5842cb01740fa429100d07c41fc7846a9e15ee65dc34fd3cfb SHA512 6f97ceed30c7c6ee6a04509b4f3309431a35763bc19ac54c7c9ac97cf39648c7579c3ffb3900f2083c6464ef373c4258d4170833a24ea154f8c0c867d27ed96d WHIRLPOOL 059f80ef6047f7bad1614eb18d55798e18df5771e45973302d7811245d3f066c636e11ee2ef8fe49d143bf59a063d761ad03bd600ecf2b7c688a5ec15909b895
+MISC ChangeLog 2453 SHA256 c765f9aaa05239f4c490f6bee9477590b50252bf6ca5676b26c5497ae9100915 SHA512 b210007be1983e75bb618d47a4d763c13eeb71f21c3adffd75763d37dd612e5ae24cba0cf63bf7ebc79b299a1718eeb9211f200aec6d3da0b29711b1a2deb6ed WHIRLPOOL c97469255d10a31fdd83e39d7475d473346167cbef850f8fcf0fdbdd41ded65714ab786efa6f7d77c3f06f496149356ce5dbbaba9a68db05378d6f08b3130977
+MISC ChangeLog-2015 2690 SHA256 1c84c441a10725ed091d67320702547b165f6cbb09db8df6b21e7f8e9f752eb3 SHA512 b77685deeb418bf9e8c8db03b248c43c197dde9f874d7ab80a897798ede473f2d7f1524037487cbf4812e4eaae7ca5489634b811d0e903e995a917b8045f73f7 WHIRLPOOL 75c13bd0da637eff42bd200894b4fbe548cb61a1bbcee3e4a80f74bc19c395b8f3f436f670c95d3993d58c19a34e4d9e9de1e27743bd1f0d945ce41a9f3f2628
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-action/spacetripper-demo/metadata.xml b/games-action/spacetripper-demo/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-action/spacetripper-demo/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 type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/games-action/spacetripper-demo/spacetripper-demo-1-r1.ebuild b/games-action/spacetripper-demo/spacetripper-demo-1-r1.ebuild
new file mode 100644
index 000000000000..40bcbf3485b8
--- /dev/null
+++ b/games-action/spacetripper-demo/spacetripper-demo-1-r1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils unpacker
+
+MY_P="spacetripperdemo"
+DESCRIPTION="Hardcore arcade shoot-em-up"
+HOMEPAGE="http://www.pompomgames.com/"
+SRC_URI="http://www.btinternet.com/~bongpig/${MY_P}.sh"
+
+LICENSE="POMPOM"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE=""
+RESTRICT="strip"
+
+RDEPEND="
+ >=virtual/opengl-7.0-r1[abi_x86_32(-)]
+ >=media-libs/libsdl-1.2.15-r4[abi_x86_32(-),X,video,joystick,opengl,sound]"
+
+S=${WORKDIR}
+
+dir=/opt/${PN}
+Ddir=${D}/${dir}
+
+QA_PREBUILT="${dir}/*"
+
+src_unpack() {
+ unpack_makeself
+}
+
+src_install() {
+ exeinto "${dir}"
+ doexe bin/x86/*
+ # Remove libSDL since we use the system version and our version doesn't
+ # have TEXTRELs in it.
+ rm -f "${Ddir}"/libSDL-1.2.so.0.0.5 || die
+ sed -i -e "s:XYZZY:${dir}:" "${Ddir}/${MY_P}" || die
+
+ insinto "${dir}"
+ doins -r preview run styles README license.txt icon.xpm
+ newicon icon.xpm spacetripper-demo.png
+
+ make_wrapper spacetripper-demo ./spacetripperdemo "${dir}" "${dir}"
+ make_desktop_entry spacetripper-demo spacetripper-demo spacetripper-demo
+}
diff --git a/games-action/spacetripper-demo/spacetripper-demo-1.ebuild b/games-action/spacetripper-demo/spacetripper-demo-1.ebuild
new file mode 100644
index 000000000000..8ab3710656c6
--- /dev/null
+++ b/games-action/spacetripper-demo/spacetripper-demo-1.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils unpacker games
+
+MY_P="spacetripperdemo"
+DESCRIPTION="hardcore arcade shoot-em-up"
+HOMEPAGE="http://www.pompomgames.com/"
+SRC_URI="http://www.btinternet.com/~bongpig/${MY_P}.sh"
+
+LICENSE="POMPOM"
+SLOT="0"
+KEYWORDS="-* amd64 x86"
+IUSE=""
+RESTRICT="strip"
+
+RDEPEND="
+ >=virtual/opengl-7.0-r1[abi_x86_32(-)]
+ >=media-libs/libsdl-1.2.15-r4[abi_x86_32(-),X,video,joystick,opengl,sound]"
+
+S=${WORKDIR}
+
+dir=${GAMES_PREFIX_OPT}/${PN}
+Ddir=${D}/${dir}
+
+QA_PREBUILT="${dir}/*"
+
+src_unpack() {
+ unpack_makeself
+}
+
+src_install() {
+ exeinto "${dir}"
+ doexe bin/x86/*
+ # Remove libSDL since we use the system version and our version doesn't
+ # have TEXTRELs in it.
+ rm -f "${Ddir}"/libSDL-1.2.so.0.0.5
+ sed -i -e "s:XYZZY:${dir}:" "${Ddir}/${MY_P}" || die
+
+ insinto "${dir}"
+ doins -r preview run styles README license.txt icon.xpm
+ newicon icon.xpm spacetripper-demo.png
+
+ games_make_wrapper spacetripper-demo ./spacetripperdemo "${dir}" "${dir}"
+ make_desktop_entry spacetripper-demo spacetripper-demo spacetripper-demo
+
+ prepgamesdirs
+}
diff --git a/games-action/super-hexagon/Manifest b/games-action/super-hexagon/Manifest
new file mode 100644
index 000000000000..13149c401795
--- /dev/null
+++ b/games-action/super-hexagon/Manifest
@@ -0,0 +1,5 @@
+DIST superhexagon-10272014-bin 29469168 SHA256 f079cd5f644ba69a1123491a3d2bd19069670e6a9884ad756d927be331f3d9c8 SHA512 ec07576e897cddcbb1ef1da104750001b7610ca31d40f41044dc412d8a149fa07b71e9fbc5df8b1d3ad6f110b28e5891dde618e39f4b2565d73fcfae28d3a85a WHIRLPOOL 4c73f6cddce5d4fb6aace87c2b7c660f7e2be9cfcdc37355ba953e83bb06aa3cba554d15e3051ffcbbcc15b0e6473079b811fbf261771a302dfd496e9505057f
+EBUILD super-hexagon-20141027.ebuild 1841 SHA256 ba19310cdef119d54fc7197e1ebee5cdb02d6a63ca545657de5ed6e59abbd615 SHA512 6a1aa0b7576c13dc30724d99ae3d65a5dab9d0c320157fe73d9c80fd05a1061b16e16c27eb46be99bb85733767801b6b386669114c86f212cc98b783c032b45c WHIRLPOOL 37802186e2480ee1923220d115c830f0c9d1f446f56e9364e34686ca0bd5f3059d5922ad59f10980c5b0cdf1e95bab288c222dcc331537fddcb82f888b8a181e
+MISC ChangeLog 2848 SHA256 6fd8f75a89af8930e2c3bc9ef2eff740c793700f9490f37420fa3f7b9f06d782 SHA512 f2baa6b102cd5131f3b48a613c4ce30fdbe6b8b616b10586fb730fc31fa95d563df8e4c08888c7a08a1d72bcde91f0fbfbca8a35700d5d4b44340b8b19a60ca2 WHIRLPOOL 3a8192deaf6f6d22ce8d65fc990eea0d747afa6a0d00b3c91aedfdd7a05ca6621cd4c168683fd324d8657fa1c6ef3d8d5fa8ef6afee0dca41e317de76d9a873f
+MISC ChangeLog-2015 1715 SHA256 82daf06066fff7d8858b1fdab03f83ce8728540bf87beaa4ecfe6498e8a4815c SHA512 461e50af32b81a836b93d528ffe28d01cc8c355a0c544c9ff1e8e6699d09b046ce426c579c3fbbfbe0521d716d7c9fcbe073f98a39498b750604b20c71742f17 WHIRLPOOL 2fce08e81c4f921497b97dbcccdb609013a9bb43a81e41e41146ecaad584fe3db2d13773ab7755263c76e4adb9ec68a0ffa848b1ea4e67c54826981e3df1b310
+MISC metadata.xml 355 SHA256 3fe59ecadf91cdd661b063661864ef57eb3df8d59bd55a2eb9e61dc1a75e5bd8 SHA512 78f8cc8f1f1be915da206e4b8be196a21b58a6f209023594755e481136a1b86ee31c8d0dfedd516d756a47db624e89728875b073b71c3b08ac94a5cde8ff3b83 WHIRLPOOL adc2ef67e7870008ce851a78268832c5ff50649850b2614fb66edd3a16ccbad441306f00c44000385a742552b91b4a805408b19aad2ef3b7dda9e86532703dba
diff --git a/games-action/super-hexagon/metadata.xml b/games-action/super-hexagon/metadata.xml
new file mode 100644
index 000000000000..b878aaa1812d
--- /dev/null
+++ b/games-action/super-hexagon/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <use>
+ <flag name="bundled-libs">
+ Use the upstream provided bundled libraries.
+ </flag>
+ </use>
+</pkgmetadata>
diff --git a/games-action/super-hexagon/super-hexagon-20141027.ebuild b/games-action/super-hexagon/super-hexagon-20141027.ebuild
new file mode 100644
index 000000000000..dbd986011ba8
--- /dev/null
+++ b/games-action/super-hexagon/super-hexagon-20141027.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# we use bundled glew, cause slotting 1.6 does not give us
+# much benefit for one consumer
+
+EAPI=5
+
+inherit eutils unpacker games
+
+DESCRIPTION="A minimal action game by Terry Cavanagh, with music by Chipzel"
+HOMEPAGE="http://www.superhexagon.com/"
+SRC_URI="superhexagon-${PV:4:4}${PV:0:4}-bin"
+
+LICENSE="all-rights-reserved"
+SLOT="0"
+KEYWORDS="-* amd64 x86"
+IUSE="bundled-libs"
+RESTRICT="bindist fetch splitdebug"
+
+MYGAMEDIR=${GAMES_PREFIX_OPT}/${PN}
+QA_PREBUILT="${MYGAMEDIR#/}/x86/*
+ ${MYGAMEDIR#/}/x86_64/*"
+
+DEPEND="app-arch/unzip"
+RDEPEND="
+ virtual/glu
+ virtual/opengl
+ x11-libs/libX11
+ x11-libs/libXau
+ x11-libs/libxcb
+ x11-libs/libXdmcp
+ x11-libs/libXext
+ x11-libs/libXi
+ x11-libs/libXrandr
+ x11-libs/libXrender
+ x11-libs/libXxf86vm
+ !bundled-libs? (
+ media-libs/freeglut
+ media-libs/libogg
+ media-libs/libvorbis
+ media-libs/openal
+ )"
+
+S=${WORKDIR}/data
+
+pkg_nofetch() {
+ einfo "Please buy & download ${SRC_URI} from:"
+ einfo " ${HOMEPAGE}"
+ einfo "and move it to ${DISTDIR}"
+ einfo
+}
+
+src_unpack() {
+ unpack_zip ${A}
+}
+
+src_prepare() {
+ einfo "removing ${ARCH} unrelated files"
+ rm -r $(usex amd64 "x86" "x86_64") || die
+
+ if ! use bundled-libs ; then
+ einfo "removing bundled-libs..."
+ cd $(usex amd64 "x86_64" "x86") || die
+ rm libglut.so* libogg.so* libopenal.so* libstdc++.so* \
+ libvorbis.so* libvorbisfile.so*
+ fi
+}
+
+src_install() {
+ local myarch=$(usex amd64 "x86_64" "x86")
+
+ insinto "${MYGAMEDIR}"
+ doins -r data ${myarch} SuperHexagon.png
+
+ dodoc Linux.README
+
+ newicon SuperHexagon.png ${PN}.png
+ make_desktop_entry ${PN}
+ games_make_wrapper ${PN} "./${myarch}/superhexagon.${myarch}" "${MYGAMEDIR}" "${MYGAMEDIR}/${myarch}"
+
+ fperms +x "${MYGAMEDIR}/${myarch}/superhexagon.${myarch}"
+ prepgamesdirs
+}
diff --git a/games-action/supermariowar/Manifest b/games-action/supermariowar/Manifest
new file mode 100644
index 000000000000..25ee1c4229cb
--- /dev/null
+++ b/games-action/supermariowar/Manifest
@@ -0,0 +1,5 @@
+AUX smwd.initd 902 SHA256 c8d861aee90bf90101ebd6184d161215310f0432fe5f7bc74d56ab6c26fa3cd5 SHA512 0c3c9efaa9d239899abf754dee6af71b59f4706e057484502e76abbc0b8ae3a620581c0b3eb7a7ef2f2d050676de46854b033c34d87596b18f195fb7d19495a0 WHIRLPOOL bbf0f01a27d02e9f338cb8d3873e4def9436d08c39fcd9001bcff40be99de8c2c6e99f81b83b6b9735df4d97b7575decb0321ff93b7c3a00f8795f1b67b65744
+AUX supermariowar-2.0_beta1-yaml-cpp-config.cmake 655 SHA256 16dbf6a62973b5e798ac6f6bead51771d3a261895a8f357372745c9d71cad162 SHA512 a43d28d12962f23a0689533315415597e046bcb09c28a1457d2320da00e376e39939b89839b60e73f368c044ced42b5ccdb909dcdc40a1a345b70fa313ba0bfa WHIRLPOOL f8c7490d9895f03f4cfff21ddc43dfc2f4be1ba4e8a038bf98e3752f53ce99741edebde027d5bb23575d30c3a079e41cfa4a4d123daad838bc54ed4ecc40688b
+DIST supermariowar-2.0_beta1.tar.gz 13545366 SHA256 7b1197cd9dd99f1470c9118f7fe78489cd6ade3ecbb444e336e86fc87c0c8a08 SHA512 0849d23ea613d69f32c184dd5f470815a4c68b15836e46e40c30c5a3a6ea2216d4d3305f356e8fdd5b42f4008d9b07f0b9fac84b9f801a4b9f888ba188c56e0b WHIRLPOOL eadca1a65bca8280a8b10f8a5da3c47217fe67c375a3aca3730b7e81e8f6b4fc2fe1d8530ad30912263febea89eb517a6f59018c0e68273b94a6b3dcf261a308
+EBUILD supermariowar-2.0_beta1-r1.ebuild 2492 SHA256 81209210fc5a8a905123ab9b22ecb368041d917084b5f00f2498ad79ca64d386 SHA512 b8f6668e0a345f0f16cec24ed3c9a8baa81720920532c410024d8bc6384a7623f0f9d44cd0c7647fdb1e74fa6a5f1095fa05f2ba582f4edf78a6d42f95e74b9c WHIRLPOOL 130e649b5b0c1653013658c35286132885577b86825eb1cc6577f1c15849b9c7eaa3b5e55ab3d1566ae50221c3ecdfda76a0d3457de6ba0bff6781deed2a6c94
+MISC metadata.xml 430 SHA256 4fb037aaaa53a418e8cf4d72660baa376b8bb0df8799358a3e41ef25cceb28ca SHA512 7f7e6599a60ee829ecc2a7db5d956c6ac23b8e213d2e56d8c414a30e1dc7ea5577c080bb79430287ae6df8cae863c99a268fabc0ca2cc06c7d301cc7d9668df1 WHIRLPOOL 7d0e3d008f8e8b12d2eed9a99da980b09ec877af9dc95f8e1f3c8d3c09cc29a3306130256a80a8843e128a3f059af812813a7cbb22af64df293c40e5cc658aa1
diff --git a/games-action/supermariowar/files/smwd.initd b/games-action/supermariowar/files/smwd.initd
new file mode 100644
index 000000000000..da4fa9a87ee4
--- /dev/null
+++ b/games-action/supermariowar/files/smwd.initd
@@ -0,0 +1,39 @@
+#!/sbin/openrc-run
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+command="/usr/sbin/smw-server"
+command_background="true"
+pidfile="/var/run/${RC_SVCNAME}.pid"
+name="Super Mario War server"
+description="The Super Mario War server process is in charge of hosting Super Mario War games"
+smw_serverdir="@SMW_SERVERDIR@"
+
+depend() {
+ use net
+ before logger
+}
+
+start() {
+ if [[ ! -d "${smw_serverdir}" ]]; then
+ eerror "Cannot cd into ${smw_serverdir}"
+ return 1
+ fi
+ cd "${smw_serverdir}" || return 1
+ ebegin "Starting ${name}"
+ start-stop-daemon \
+ --start \
+ --background \
+ --pidfile ${pidfile} \
+ --make-pidfile \
+ --exec ${command}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ${name}"
+ start-stop-daemon \
+ --stop \
+ --pidfile ${pidfile}
+ eend $?
+}
diff --git a/games-action/supermariowar/files/supermariowar-2.0_beta1-yaml-cpp-config.cmake b/games-action/supermariowar/files/supermariowar-2.0_beta1-yaml-cpp-config.cmake
new file mode 100644
index 000000000000..03fb190aad65
--- /dev/null
+++ b/games-action/supermariowar/files/supermariowar-2.0_beta1-yaml-cpp-config.cmake
@@ -0,0 +1,21 @@
+find_package(PkgConfig REQUIRED)
+pkg_check_modules(YAML-CPP REQUIRED yaml-cpp)
+find_path(YAML-CPP_INCLUDE_DIRECTORY
+ NAMES yaml.h
+ PATHS ${YAML-CPP_INCLUDE_DIRS} /usr/include/yaml-cpp
+)
+find_library(YAML-CPP_LIBRARY
+ NAMES yaml-cpp
+ PATHS ${YAML-CPP_LIBRARY_DIRS})
+
+include(FindPackageHandleStandardArgs)
+find_package_handle_standard_args(yaml-cpp
+ FOUND_VAR yaml-cpp_FOUND
+ REQUIRED_VARS YAML-CPP_LIBRARY YAML-CPP_INCLUDE_DIRECTORY
+)
+
+if (yaml-cpp_FOUND)
+ set(yaml-cpp_INCLUDE_DIRS ${YAML-CPP_INCLUDE_DIRECTORY})
+ set(yaml-cpp_LIBRARIES ${YAML-CPP_LIBRARY})
+endif ()
+mark_as_advanced(YAML-CPP_INCLUDE_DIRECTORY YAML-CPP_LIBRARY)
diff --git a/games-action/supermariowar/metadata.xml b/games-action/supermariowar/metadata.xml
new file mode 100644
index 000000000000..bd948f685035
--- /dev/null
+++ b/games-action/supermariowar/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>monsieurp@gentoo.org</email>
+ <name>Patrice Clement</name>
+ </maintainer>
+ <use>
+ <flag name="server">Compile and install Super Mario War server files</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">mmatyas/supermariowar</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-action/supermariowar/supermariowar-2.0_beta1-r1.ebuild b/games-action/supermariowar/supermariowar-2.0_beta1-r1.ebuild
new file mode 100644
index 000000000000..3df6782843cc
--- /dev/null
+++ b/games-action/supermariowar/supermariowar-2.0_beta1-r1.ebuild
@@ -0,0 +1,110 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils cmake-utils versionator
+
+MY_PV=$(replace_version_separator 2 '-')
+MY_PV="${MY_PV/beta1/beta.1}"
+MY_PN="smw"
+
+DESCRIPTION="Fan-made multiplayer Super Mario Bros. style deathmatch game"
+HOMEPAGE="https://github.com/mmatyas/supermariowar"
+SRC_URI="https://github.com/mmatyas/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="server"
+
+RDEPEND="
+ sys-libs/zlib:=
+ dev-cpp/yaml-cpp
+ net-libs/enet:1.3=
+ media-libs/sdl-mixer[vorbis]
+ media-libs/sdl-image[png,jpeg]"
+
+DEPEND="
+ ${RDEPEND}
+ app-arch/unzip
+ virtual/pkgconfig"
+
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}" || die
+ unpack ./data.zip
+}
+
+src_prepare() {
+ cmake-utils_src_prepare
+
+ einfo "Copying Findyaml-cpp.cmake"
+ cp "${FILESDIR}/${P}-yaml-cpp-config.cmake" cmake/Findyaml-cpp.cmake || die
+ eend $?
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_STATIC_LIBS=OFF
+ -DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr"
+ -DSMW_BINDIR="${EPREFIX}/usr/bin"
+ -DSMW_DATADIR="${EPREFIX}/usr/share/${PF}"
+ )
+
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ local bin
+ for bin in "${ED}/usr/bin"/*; do
+ chmod 0755 "${bin}" || die
+ done
+
+ local smw_datadir="usr/share/${PF}"
+ local smw_bindir="${smw_datadir}/bin"
+ mkdir -p "${ED}/${smw_bindir}" || die
+
+ einfo "Moving ${PN} binary files to /${smw_bindir}"
+ mv "${ED}/usr/bin"/* "${ED}/${smw_bindir}" || die
+ eend $?
+
+ local base_bin
+ for bin in "${ED}/${smw_bindir}"/*; do
+ base_bin=$(basename "${bin}")
+ einfo "Creating ${base_bin} launcher in /usr/bin"
+ cat << EOF > "${base_bin}" || die
+#!/usr/bin/env bash
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# ${PF} launcher: ${base_bin}
+exec /${smw_bindir}/${base_bin} /${smw_datadir}
+EOF
+ dobin "${base_bin}"
+ eend $?
+ done
+
+ if use server; then
+ local smw_server="${BUILD_DIR}/Binaries/Release/${MY_PN}-server"
+ local smw_serverdir="/${smw_datadir}/server"
+
+ einfo "Installing ${MY_PN}-server files"
+ dosbin "${smw_server}"
+
+ dodir "${smw_serverdir}"
+ insinto "${smw_serverdir}"
+ doins "${S}/src/server/serverconfig"
+
+ dosym "${smw_serverdir}/serverconfig" "/etc/${MY_PN}d.conf"
+
+ newinitd "${FILESDIR}/smwd.initd" "${MY_PN}d"
+ sed -i -e \
+ "s#@SMW_SERVERDIR@#${smw_serverdir}#g;" \
+ "${ED}/etc/init.d/${MY_PN}d" || die
+ eend $?
+ fi
+}
diff --git a/games-action/supertuxkart/Manifest b/games-action/supertuxkart/Manifest
new file mode 100644
index 000000000000..c5ff1a4c5952
--- /dev/null
+++ b/games-action/supertuxkart/Manifest
@@ -0,0 +1,14 @@
+AUX supertuxkart-0.9.2-fix-angelscript.patch 1114 SHA256 918511e2c1435df3f996be8b585cf8292fb21cc5c842f6c5d8b3ca1f3641dd09 SHA512 6e87046b760bb059c0e30692c1da6306ebfcfaf1b68a6ad19b0a563bae64ef7d30c955aec075600a4e36f327c6670779fa8923b438898389be35618112a7fbc5 WHIRLPOOL 773f190e3467c60f37e912315b0850a39b5d420926762eec7f046ca347c772b2ce6b724c0da6d793336a49a26c7b51533b17b2d862701f16cc4d3024b5b0ccbc
+AUX supertuxkart-0.9.2-fix-buildsystem.patch 3381 SHA256 2384b56b93be6faef4615f78ee234808c27bde077547321e34faee1b3d3f9941 SHA512 aba636401f6aa5957ddcaca6983c029d3abfbca0fc67f5ac408bda8053a39d9013a190182aae68506740ff8ab336e47dd39dd6dc045c5b21572a22e939b297d2 WHIRLPOOL 53e65ea36bea376b0cd0f2272b30964344521b7736966fb3fc542fbdc59b15c81beb92929325f1b8e5a8950ed40a26f839c61ea6cd589c123bd5a789863441d1
+AUX supertuxkart-0.9.2-irrlicht-arch-support.patch 1575 SHA256 767350981d5b4591638ffe50bdfb881da754e98ca8e72b4dbaa274e01bab2e30 SHA512 c2cbb2c7644c85863722bc6179196251bbe75db021717f6d7136385ad87d5d9a32beb74d876b32525cc5e44a9994156e7fe44fa8ff3c65cdf0556e4ed8d1e611 WHIRLPOOL a57a39ada797d75438bd556a7e8ef216ef7f542b0af8c98c8ab6187712c6f29fcf7a6ef3c1413bb4d8cca6d55fc4f9dbd7df4d48398733ecce019f8a5704ccc7
+AUX supertuxkart-0.9.2-irrlicht-as-needed.patch 883 SHA256 57f6bb9d5454bd3efdc0f9bbcb02adfd8341e89c2f53747b3d86e46a22c44af9 SHA512 dd2b1319d9a46449ce60ad19eabd5e78ed94f5f780798e47ddedeb8da91e1eb7f065f94a3c0ffd028cb1d241ad921f410cff105f439ff4b5b967a4d0799b6d31 WHIRLPOOL 6ed6f4cb7985f8e44a47d1c632d5be96beea304eeac47918cc0ec6ad10dd21298a351e0571810fdeabaed11fc541a1de682aa22bc5ff5008acdeecfaead78c3f
+AUX supertuxkart-0.9.2-irrlicht-bundled-libs.patch 1244 SHA256 494d48382c6d757aa8677e90cd0200bbb012a32173a5ef9b2588d91fff55de7f SHA512 d004b7808d9e2977d76f9b7cfe2dbed23765a6216d4ae9f69a868b42b541ed1cee5550a9d27ebea9c2884371f7caa8fdaed1b48f090f32da0db7d675b1f67397 WHIRLPOOL 68cfcb0aa56b9008ca7927b92e9405978b84c5b7c5f61b66298c7a1642f4aa8ec8fa60461aa00fdd9cfae906e08512cd64af4b9a5c5e2f74f52cb093ab006d1e
+AUX supertuxkart-0.9.2-irrlicht-system-libs.patch 5294 SHA256 d6d5aec41ea0256df1f4456a768d911fa3fac7cf0a601884670c04a6ae486a58 SHA512 10f904c7626471a075dd639f8988b36b903c56b8cdcb5519e72fd93cd500c377a3015d70e055d193acc282b103ed41835b10152fa6323215a633fbe1449792ac WHIRLPOOL 1c5d055b0435a1c52ffbd6968b550627543152334584d42517183b8a37a55e42a96aa3da5a4d5f69cc5ac0222bf78b3d0adf57a1139c58a817f66efb48804f1e
+AUX supertuxkart-0.9.2-unbundle-enet.patch 1590 SHA256 9f747a72f65eaad5c87e2a2a63b42faf6dda19948bada37609e81afcf3043c3a SHA512 28e5a9704636fd018599d16540d15f6dc0c07f19a848cdea460a4be610e85a41289a327ebceb5ae054c2989d0a09b3357405e95322ed3e202738c2a833484524 WHIRLPOOL 1884a2ece7eacb18867e6866d1868a42652b98668996fefed39d90323dcf720af8af0eca8a5a191c74154495cb1003e971aff3703b05f2a791a39fc355f66645
+AUX supertuxkart-0.9.2-unbundle-libs.patch 370 SHA256 6c80312f0ed6583b83a01ba33ca1f00631447101ec1ef0b4b744ff8299dae6da SHA512 08df379c8ce590541c718fcbf6b8405d923c02053854d7601269e606f16f893a62d1f296d4fffb961950a30aa1314ba4a315f2a827c08117c3f58136808b3370 WHIRLPOOL ec11f364995b9954527dbe8db2b94c242a7427ef1f4aebaf5af323868d3aba40e232eb30759eeb8189b751a3c0f8e039c8970d267609fdffaf57e32e90f57a2b
+DIST supertuxkart-0.9.2-src.tar.xz 501606188 SHA256 0b080bb098a26adb552d6fd48905bcb6b1e873ef1567457d7268d7d3aaa48282 SHA512 57f11d518736f88044d1cb73e1dfcc92f5667f3b1147ab7e54435f6bc560fe856c3650410410da5fa048bf23d0b64fc8a9887c830001e1435b0359c9163e71b0 WHIRLPOOL c534854127981821412437632fdf9ff239988199d60f8d582b59bd624dff87f5e37a5cb54020b679e9fb6d440187a5bd0e0c2eb00311e2ae8de6ba58fb1d1d82
+DIST supertuxkart.png 4435 SHA256 99bc1801cb0514946cb0171d6d5a84484b6dc881edfa7f096b6eb5fea2f28828 SHA512 a180332f79220431922fa8b351cb476ebc5d9d1df09f20707eb3bdd7002fd264cb027b8190c73c5221050e6e8601beb6758a5809d05aedfb18f0bdb426f47eda WHIRLPOOL eef651802a927b451226fc06a682d7dea68b65b05195130ccfc7544165f26f65bda4fc9565e09d6487d02be3cf57880b0c6c257f26587c6bc6d30afc6aa5d3c2
+EBUILD supertuxkart-0.9.2.ebuild 2126 SHA256 430179a4f1b3c6b0eab16a44a33b5694908566650aa68fcb7ab61e6f1815c8fa SHA512 79289f2e9b4f5c8cd1cdfc4a373e097a0ae59a24eb92c278b53f5a4155d64210fb1d9bc1336248896f9fb6d461acf88a33f9b39f7476541f0c9ed470acfea395 WHIRLPOOL 9bbead36fc2aa4df65bfded0d529258679436999791179875986bfe09f49fbd265f350f644f2c112ed9b6bca5813604d15c1602e91418d571247df3e3f6a2f11
+MISC ChangeLog 4410 SHA256 5293b25c5f62cf3be2330c26269c2ea834676fc874aff95d94c4baa91140269d SHA512 0e0003eed23b712cb18dbfb925146b84b06aacd26a1000e9a7cb1d3b4dbf0852cb85a2b3c74feb9b5bf4ebb95f9d56788df811b575a76dc9bff9b07569eb018a WHIRLPOOL fa02a61bc4b1c3655c6e6047d1bb08e8147d662e36fc0bf48408b5f475f708634cb6861776f510ebb37100c2bbf5f8f6eab5c91886958c16296c7c50635046ef
+MISC ChangeLog-2015 7113 SHA256 25a58e3df4b2f5b0d9410b47f0676da26f35503027f4da2604d3493e4a3d69ab SHA512 ce379b50af6e3b197bcf1a92ff74f07394ee62e41dd1f49dfd9d8afb41af395b0d3b04a0036846cd072ba0d0979ecb222b100deffb61bcc67541e0c11bf2d3df WHIRLPOOL fd5580d255bbce447c0eda384e7576cbe023082f9fa67c880863c2ad71fe1aba260069506a3302c523582d145b730588a90ee195eb68ff0fd8d9bdedacfedcd6
+MISC metadata.xml 480 SHA256 81f16dd141550c31b13675cd3ee03c9aef343547515d7645b49d3b6945c18325 SHA512 6c0348a5e7978d5893a5c6cc3b2c54e69c10c03ed5f8f4e511b1cdd783b96d27889f839b4bad27338e3b9e098724142bafb6425e18f74483e0544f0312189f7d WHIRLPOOL cc40cce360f3cbc6faff4139b0ce109c5621ea1409e02802dbf71e6ef6ffe3b6c0bbe83c239f1e1c189b69a9a704c7a19dc1398839455e978a79deda03402e41
diff --git a/games-action/supertuxkart/files/supertuxkart-0.9.2-fix-angelscript.patch b/games-action/supertuxkart/files/supertuxkart-0.9.2-fix-angelscript.patch
new file mode 100644
index 000000000000..a2f4fb1829e7
--- /dev/null
+++ b/games-action/supertuxkart/files/supertuxkart-0.9.2-fix-angelscript.patch
@@ -0,0 +1,27 @@
+Description: Fix FTBFS on arm64, mips/mips64/mipsel, ppc64el, s390x
+Origin: upstream, https://github.com/supertuxkart/stk-code/commit/5e05f1178ce6bc5f3a653b55ab3dc6d016196341
+Bug: https://github.com/supertuxkart/stk-code/issues/2569
+Bug-Debian: https://bugs.debian.org/830748
+Last-Update: 2016-12-03
+
+--- a/lib/angelscript/projects/cmake/CMakeLists.txt
++++ b/lib/angelscript/projects/cmake/CMakeLists.txt
+@@ -68,6 +68,7 @@ set(ANGELSCRIPT_SOURCE
+ ../../source/as_bytecode.cpp
+ ../../source/as_callfunc.cpp
+ ../../source/as_callfunc_x86.cpp
++ ../../source/as_callfunc_mips.cpp
+ ../../source/as_callfunc_x64_gcc.cpp
+ ../../source/as_callfunc_x64_msvc.cpp
+ ../../source/as_callfunc_x64_mingw.cpp
+--- a/lib/angelscript/source/as_config.h
++++ b/lib/angelscript/source/as_config.h
+@@ -844,7 +844,7 @@
+ #define THISCALL_PASS_OBJECT_POINTER_ON_THE_STACK
+ #define AS_X86
+ #undef AS_NO_THISCALL_FUNCTOR_METHOD
+- #elif defined(__LP64__) && !defined(__arm64__)
++ #elif defined(__x86_64__)
+ #define AS_X64_GCC
+ #undef AS_NO_THISCALL_FUNCTOR_METHOD
+ #define HAS_128_BIT_PRIMITIVES
diff --git a/games-action/supertuxkart/files/supertuxkart-0.9.2-fix-buildsystem.patch b/games-action/supertuxkart/files/supertuxkart-0.9.2-fix-buildsystem.patch
new file mode 100644
index 000000000000..6f1c39b36937
--- /dev/null
+++ b/games-action/supertuxkart/files/supertuxkart-0.9.2-fix-buildsystem.patch
@@ -0,0 +1,97 @@
+* Unbundle remaining libraries: GLEW, zlib, png, jpeg
+* Add -DAS_DEPRECATED for Angelscript
+* Remove definition of debug macros
+* Build bundled Irrlicht with user flags
+
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -68,37 +68,10 @@
+ include_directories(${ENET_INCLUDE_DIR})
+
+ # Build glew library
++find_package(GLEW REQUIRED)
++include_directories(${GLEW_INCLUDE_DIRS})
+ add_definitions(-DGLEW_NO_GLU)
+-add_subdirectory("${PROJECT_SOURCE_DIR}/lib/glew")
+-include_directories("${PROJECT_SOURCE_DIR}/lib/glew/include")
+
+-if((WIN32 AND NOT MINGW) OR APPLE)
+- if (NOT APPLE)
+- # Build zlib library
+- add_subdirectory("${PROJECT_SOURCE_DIR}/lib/zlib")
+- include_directories("${PROJECT_SOURCE_DIR}/lib/zlib")
+-
+- set(ZLIB_INCLUDE_DIR "${PROJECT_SOURCE_DIR}/lib/zlib" "${PROJECT_BINARY_DIR}/lib/zlib/")
+- set(ZLIB_LIBRARY zlibstatic)
+- endif()
+-
+- # Build png library
+- set (SKIP_INSTALL_ALL TRUE)
+- set (PNG_STATIC TRUE)
+- set (PNG_TESTS FALSE)
+- set (PNG_SHARED FALSE)
+- add_subdirectory("${PROJECT_SOURCE_DIR}/lib/libpng")
+- include_directories("${PROJECT_SOURCE_DIR}/lib/libpng")
+-
+- #build jpeg library
+- add_subdirectory("${PROJECT_SOURCE_DIR}/lib/jpeglib")
+- include_directories("${PROJECT_SOURCE_DIR}/lib/jpeglib")
+-
+- set(PNG_PNG_INCLUDE_DIR "${PROJECT_SOURCE_DIR}/lib/libpng/")
+- set(PNG_LIBRARY png15_static)
+- set(JPEG_INCLUDE_DIR "${PROJECT_SOURCE_DIR}/lib/jpeglib/")
+- set(JPEG_LIBRARY jpeglib)
+-endif()
+ # Build the irrlicht library
+ add_subdirectory("${PROJECT_SOURCE_DIR}/lib/irrlicht")
+ include_directories("${PROJECT_SOURCE_DIR}/lib/irrlicht/include")
+@@ -130,6 +103,7 @@
+ find_package(Angelscript)
+ if(ANGELSCRIPT_FOUND)
+ include_directories(${Angelscript_INCLUDE_DIRS})
++ add_definitions(-DAS_DEPRECATED)
+ else()
+ message(FATAL_ERROR "Angelscript not found. "
+ "Either install angelscript or use built-in version using "
+@@ -245,14 +219,6 @@
+ # VS will automatically add NDEBUG for release mode, but only _DEBUG in debug mode.
+ # Since STK uses DEBUG, this is added for debug compilation only:
+ set_property(DIRECTORY PROPERTY COMPILE_DEFINITIONS_DEBUG DEBUG)
+-else()
+- # All non VS generators used create only a single compile mode, so
+- # compile flags can be simplye be added
+- if(CMAKE_BUILD_TYPE MATCHES Debug)
+- add_definitions(-DDEBUG)
+- else()
+- add_definitions(-DNDEBUG)
+- endif()
+ endif()
+
+ # TODO: remove this switch
+@@ -342,7 +308,7 @@
+ bulletdynamics
+ bulletcollision
+ bulletmath
+- glew
++ ${GLEW_LIBRARIES}
+ stkirrlicht
+ ${Angelscript_LIBRARIES}
+ ${CURL_LIBRARIES}
+--- a/lib/irrlicht/CMakeLists.txt
++++ b/lib/irrlicht/CMakeLists.txt
+@@ -20,15 +20,6 @@
+ elseif(MINGW)
+ add_definitions(-D_IRR_STATIC_LIB_)
+ add_definitions(-D_CRT_SECURE_NO_WARNINGS) # Shut up about unsafe stuff
+-else()
+- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -pipe -O3 -fno-exceptions -fstrict-aliasing -I/usr/X11R6/include")
+- set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -Wall -pipe -O3 -fno-exceptions -fstrict-aliasing -I/usr/X11R6/include")
+- if(CMAKE_COMPILER_IS_GNUCC)
+- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fexpensive-optimizations")
+- endif()
+- if(CMAKE_COMPILER_IS_GNUCXX)
+- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fexpensive-optimizations")
+- endif()
+ endif()
+
+ # Xrandr
diff --git a/games-action/supertuxkart/files/supertuxkart-0.9.2-irrlicht-arch-support.patch b/games-action/supertuxkart/files/supertuxkart-0.9.2-irrlicht-arch-support.patch
new file mode 100644
index 000000000000..ec5683839590
--- /dev/null
+++ b/games-action/supertuxkart/files/supertuxkart-0.9.2-irrlicht-arch-support.patch
@@ -0,0 +1,49 @@
+From: Christoph Egger <debian@christoph-egger.org>
+Subject: [PATCH] debian/arch-support
+
+Building on non-linux architectures currently fails with unpatched
+irrlicht because irrlicht tries to create Joystick support using
+linux-specific headers. However there's infrastructure to disable
+Joystick support, we just need to activate that on non-linux
+architectures.
+
+Additionally if built on a sparc machine irrlicht assumes wrongly it's
+a solaris system. We fix this wrong assumption as our sparc builds are
+all on linux.
+
+Finally irrlicht exceeds the size constraights for -fpic requiering to
+build with -fPIC. As upstream doesn't do that we need to fix this for
+sparc and s390 builds (powerPC?).
+
+Signed-off-by: Christoph Egger <debian@christoph-egger.org>
+
+---
+ lib/irrlicht/include/IrrCompileConfig.h | 10 +++++-----
+ 1 files changed, 5 insertions(+), 5 deletions(-)
+
+--- a/lib/irrlicht/include/IrrCompileConfig.h
++++ b/lib/irrlicht/include/IrrCompileConfig.h
+@@ -101,6 +101,10 @@
+ #ifndef _IRR_SOLARIS_PLATFORM_
+ #if !defined(__linux__) && !defined(__FreeBSD__)
+ #define _IRR_LINUX_PLATFORM_
++#include <endian.h>
++ #if __BYTE_ORDER == __BIG_ENDIAN
++ #define __BIG_ENDIAN__
++ #endif
+ #endif
+ #endif
+ #define _IRR_POSIX_API_
+@@ -406,11 +410,7 @@
+ #undef _IRR_WCHAR_FILESYSTEM
+ #endif
+
+-#if defined(__sparc__) || defined(__sun__)
+-#define __BIG_ENDIAN__
+-#endif
+-
+-#if defined(_IRR_SOLARIS_PLATFORM_)
++#if defined(_IRR_SOLARIS_PLATFORM_) || defined(__FreeBSD_kernel__) || defined(__gnu_hurd__)
+ #undef _IRR_COMPILE_WITH_JOYSTICK_EVENTS_
+ #endif
+
diff --git a/games-action/supertuxkart/files/supertuxkart-0.9.2-irrlicht-as-needed.patch b/games-action/supertuxkart/files/supertuxkart-0.9.2-irrlicht-as-needed.patch
new file mode 100644
index 000000000000..b6cb0fe4c151
--- /dev/null
+++ b/games-action/supertuxkart/files/supertuxkart-0.9.2-irrlicht-as-needed.patch
@@ -0,0 +1,24 @@
+From: Christoph Egger <Christoph.Egger@gmx.de>
+Subject: [PATCH] debian/link-against-needed-libs
+
+There are quite some libraries irrlicht needs but does not link
+against. This patch makes irrlicht link correctly against all the
+needed libraries.
+
+Signed-off-by: Christoph Egger <Christoph.Egger@gmx.de>
+
+---
+ lib/irrlicht/source/Irrlicht/Makefile | 2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+--- a/lib/irrlicht/source/Irrlicht/Makefile
++++ b/lib/irrlicht/source/Irrlicht/Makefile
+@@ -88,7 +88,7 @@
+ LIB_PATH = ../../lib/$(SYSTEM)
+ INSTALL_DIR = /usr/local/lib
+ sharedlib install: SHARED_LIB = libIrrlicht.so
+-sharedlib: LDFLAGS += -L/usr/X11R6/lib$(LIBSELECT) -lGL -lXxf86vm
++staticlib sharedlib: LDFLAGS += -L/usr/X11R6/lib$(LIBSELECT) -lGL -lXxf86vm -lX11 -lz -lpng -ljpeg -lbz2
+ staticlib sharedlib: CXXINCS += -I/usr/X11R6/include
+
+ #OSX specific options
diff --git a/games-action/supertuxkart/files/supertuxkart-0.9.2-irrlicht-bundled-libs.patch b/games-action/supertuxkart/files/supertuxkart-0.9.2-irrlicht-bundled-libs.patch
new file mode 100644
index 000000000000..1a1013e415a9
--- /dev/null
+++ b/games-action/supertuxkart/files/supertuxkart-0.9.2-irrlicht-bundled-libs.patch
@@ -0,0 +1,35 @@
+Description: Remove embedded libraries in Irrlicht source (flagged by lintian)
+ Since removing the subdirectories containing libjpeg/libpng/zlib/bzip2/lzma
+ would make this patch way too large, this patch should be applied on top of
+ rm -rf lib/jpeglib/
+ rm -rf lib/zlib/
+ rm -rf lib/libpng/
+ in debian/rules (e.g. in the clean target).
+Forwarded: no
+Author: Vincent Cheng <vcheng@debian.org>
+Last-Update: 2016-07-07
+
+--- a/lib/irrlicht/CMakeLists.txt
++++ b/lib/irrlicht/CMakeLists.txt
+@@ -2,11 +2,7 @@
+ find_package(PNG REQUIRED)
+ find_package(JPEG REQUIRED)
+
+-include_directories("${CMAKE_CURRENT_SOURCE_DIR}/include/"
+- "${JPEG_INCLUDE_DIR}"
+- "${PNG_INCLUDE_DIRS}"
+- "${ZLIB_INCLUDE_DIR}"
+- "${CMAKE_CURRENT_BINARY_DIR}/../zlib/") # For zconf.h on WIN32
++include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include/)
+
+ find_package(OpenGL REQUIRED)
+ include_directories(${OPENGL_INCLUDE_DIR})
+@@ -508,7 +504,7 @@
+ endif()
+
+ add_library(stkirrlicht STATIC ${IRRLICHT_SOURCES})
+-target_link_libraries(stkirrlicht ${PNG_LIBRARY} ${JPEG_LIBRARY} ${ZLIB_LIBRARY})
++target_link_libraries(stkirrlicht png jpeg z)
+
+ if(WIN32)
+ target_link_libraries(stkirrlicht imm32)
diff --git a/games-action/supertuxkart/files/supertuxkart-0.9.2-irrlicht-system-libs.patch b/games-action/supertuxkart/files/supertuxkart-0.9.2-irrlicht-system-libs.patch
new file mode 100644
index 000000000000..f82dc5060d06
--- /dev/null
+++ b/games-action/supertuxkart/files/supertuxkart-0.9.2-irrlicht-system-libs.patch
@@ -0,0 +1,105 @@
+Subject: [PATCH] debian/use-system-libs
+
+Path to build irrlicht using the system libraries for png,zlib and
+jpeg as well as the glext family of header files.
+
+Signed-off-by: Christoph Egger <debian@christoph-egger.org
+
+--- a/lib/irrlicht/source/Irrlicht/CIrrDeviceLinux.h
++++ b/lib/irrlicht/source/Irrlicht/CIrrDeviceLinux.h
+@@ -23,7 +23,7 @@
+ #include <GL/glx.h>
+ #ifdef _IRR_OPENGL_USE_EXTPOINTER_
+ #define GLX_GLXEXT_PROTOTYPES
+-#include "glxext.h"
++#include <GL/glxext.h>
+ #endif
+ #endif
+
+--- a/lib/irrlicht/source/Irrlicht/COpenGLExtensionHandler.h
++++ b/lib/irrlicht/source/Irrlicht/COpenGLExtensionHandler.h
+@@ -21,7 +21,7 @@
+ #endif
+ #include <GL/gl.h>
+ #if defined(_IRR_OPENGL_USE_EXTPOINTER_)
+- #include "glext.h"
++ #include <GL/glext.h>
+ #endif
+ #include "wglext.h"
+
+@@ -36,7 +36,7 @@
+ #endif
+ #include <OpenGL/gl.h>
+ #if defined(_IRR_OPENGL_USE_EXTPOINTER_)
+- #include "glext.h"
++ #include <GL/glext.h>
+ #endif
+ #elif defined(_IRR_COMPILE_WITH_SDL_DEVICE_) && !defined(_IRR_COMPILE_WITH_X11_DEVICE_)
+ #if defined(_IRR_OPENGL_USE_EXTPOINTER_)
+@@ -50,7 +50,7 @@
+ #include <SDL/SDL_video.h>
+ #include <SDL/SDL_opengl.h>
+ typedef void (APIENTRYP PFNGLBLENDEQUATIONPROC) (GLenum mode);
+- #include "glext.h"
++ #include <GL/glext.h>
+ #else
+ #if defined(_IRR_OPENGL_USE_EXTPOINTER_)
+ #define GL_GLEXT_LEGACY 1
+--- a/lib/irrlicht/source/Irrlicht/COpenGLSLMaterialRenderer.h
++++ b/lib/irrlicht/source/Irrlicht/COpenGLSLMaterialRenderer.h
+@@ -12,7 +12,7 @@
+ #define WIN32_LEAN_AND_MEAN
+ #include <windows.h>
+ #include <GL/gl.h>
+- #include "glext.h"
++ #include <GL/glext.h>
+ #else
+ #if defined(_IRR_OPENGL_USE_EXTPOINTER_)
+ #define GL_GLEXT_LEGACY 1
+@@ -25,7 +25,7 @@
+ #include <GL/gl.h>
+ #endif
+ #if defined(_IRR_OPENGL_USE_EXTPOINTER_)
+- #include "glext.h"
++ #include <GL/glext.h>
+ #endif
+ #endif
+
+--- a/lib/irrlicht/source/Irrlicht/Makefile
++++ b/lib/irrlicht/source/Irrlicht/Makefile
+@@ -43,7 +43,7 @@
+ CImageWriterBMP.o CImageWriterJPG.o CImageWriterPCX.o CImageWriterPNG.o CImageWriterPPM.o CImageWriterPSD.o CImageWriterTGA.o
+ IRRVIDEOOBJ = CVideoModeList.o CFPSCounter.o $(IRRDRVROBJ) $(IRRIMAGEOBJ)
+ IRRSWRENDEROBJ = CSoftwareDriver.o CSoftwareTexture.o CTRFlat.o CTRFlatWire.o CTRGouraud.o CTRGouraudWire.o CTRNormalMap.o CTRStencilShadow.o CTRTextureFlat.o CTRTextureFlatWire.o CTRTextureGouraud.o CTRTextureGouraudAdd.o CTRTextureGouraudNoZ.o CTRTextureGouraudWire.o CZBuffer.o CTRTextureGouraudVertexAlpha2.o CTRTextureGouraudNoZ2.o CTRTextureLightMap2_M2.o CTRTextureLightMap2_M4.o CTRTextureLightMap2_M1.o CSoftwareDriver2.o CSoftwareTexture2.o CTRTextureGouraud2.o CTRGouraud2.o CTRGouraudAlpha2.o CTRGouraudAlphaNoZ2.o CTRTextureDetailMap2.o CTRTextureGouraudAdd2.o CTRTextureGouraudAddNoZ2.o CTRTextureWire2.o CTRTextureLightMap2_Add.o CTRTextureLightMapGouraud2_M4.o IBurningShader.o CTRTextureBlend.o CTRTextureGouraudAlpha.o CTRTextureGouraudAlphaNoZ.o CDepthBuffer.o CBurningShader_Raster_Reference.o
+-IRRIOOBJ = CFileList.o CFileSystem.o CLimitReadFile.o CMemoryFile.o CReadFile.o CWriteFile.o CXMLReader.o CXMLWriter.o CWADReader.o CZipReader.o CPakReader.o CNPKReader.o CTarReader.o CMountPointReader.o irrXML.o CAttributes.o lzma/LzmaDec.o
++IRRIOOBJ = CFileList.o CFileSystem.o CLimitReadFile.o CMemoryFile.o CReadFile.o CWriteFile.o CXMLReader.o CXMLWriter.o CWADReader.o CZipReader.o CPakReader.o CNPKReader.o CTarReader.o CMountPointReader.o irrXML.o CAttributes.o
+ IRROTHEROBJ = CIrrDeviceSDL.o CIrrDeviceLinux.o CIrrDeviceConsole.o CIrrDeviceStub.o CIrrDeviceWin32.o CIrrDeviceFB.o CLogger.o COSOperator.o Irrlicht.o os.o
+ IRRGUIOBJ = CGUIButton.o CGUICheckBox.o CGUIComboBox.o CGUIContextMenu.o CGUIEditBox.o CGUIEnvironment.o CGUIFileOpenDialog.o CGUIFont.o CGUIImage.o CGUIInOutFader.o CGUIListBox.o CGUIMenu.o CGUIMeshViewer.o CGUIMessageBox.o CGUIModalScreen.o CGUIScrollBar.o CGUISpinBox.o CGUISkin.o CGUIStaticText.o CGUITabControl.o CGUITable.o CGUIToolBar.o CGUIWindow.o CGUIColorSelectDialog.o CDefaultGUIElementFactory.o CGUISpriteBank.o CGUIImageList.o CGUITreeView.o
+ ZLIBOBJ = zlib/adler32.o zlib/compress.o zlib/crc32.o zlib/deflate.o zlib/inffast.o zlib/inflate.o zlib/inftrees.o zlib/trees.o zlib/uncompr.o zlib/zutil.o
+@@ -56,14 +56,14 @@
+ EXTRAOBJ =
+ LINKOBJ = $(IRRMESHOBJ) $(IRROBJ) $(IRRPARTICLEOBJ) $(IRRANIMOBJ) \
+ $(IRRVIDEOOBJ) $(IRRSWRENDEROBJ) $(IRRIOOBJ) $(IRROTHEROBJ) \
+- $(IRRGUIOBJ) $(ZLIBOBJ) $(JPEGLIBOBJ) $(LIBPNGOBJ) $(LIBAESGM) \
+- $(BZIP2OBJ) $(EXTRAOBJ)
++ $(IRRGUIOBJ) $(LIBAESGM) \
++ $(EXTRAOBJ)
+
+ ###############
+ #Compiler flags
+-CXXINCS = -I../../include -Izlib -Ijpeglib -Ilibpng
++CXXINCS = -I../../include # -Izlib -Ijpeglib -Ilibpng
+ CPPFLAGS += $(CXXINCS) -DIRRLICHT_EXPORTS=1
+-CXXFLAGS += -Wall -pipe -fno-exceptions -fno-rtti -fstrict-aliasing
++CXXFLAGS += -Wall -pipe -fno-exceptions -fstrict-aliasing
+ ifndef NDEBUG
+ CXXFLAGS += -g -D_DEBUG
+ else
+@@ -154,6 +154,7 @@
+ mkdir -p $(INSTALL_DIR)/../include/irrlicht
+ cp ../../include/*.h $(INSTALL_DIR)/../include/irrlicht/
+ cp $(LIB_PATH)/$(SHARED_FULLNAME) $(INSTALL_DIR)
++ cp $(LIB_PATH)/$(STATIC_LIB) $(INSTALL_DIR)
+ cd $(INSTALL_DIR) && ln -s -f $(SHARED_FULLNAME) $(SONAME)
+ cd $(INSTALL_DIR) && ln -s -f $(SONAME) $(SHARED_LIB)
+ # ldconfig -n $(INSTALL_DIR)
diff --git a/games-action/supertuxkart/files/supertuxkart-0.9.2-unbundle-enet.patch b/games-action/supertuxkart/files/supertuxkart-0.9.2-unbundle-enet.patch
new file mode 100644
index 000000000000..259627adb2a5
--- /dev/null
+++ b/games-action/supertuxkart/files/supertuxkart-0.9.2-unbundle-enet.patch
@@ -0,0 +1,58 @@
+Description: Build supertuxkart against system enet instead of embedded copy
+Forwarded: not-yet
+Author: Vincent Cheng <vcheng@debian.org>
+Last-Update: 2016-07-17
+
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -63,9 +63,9 @@
+ add_subdirectory("${PROJECT_SOURCE_DIR}/lib/bullet")
+ include_directories("${PROJECT_SOURCE_DIR}/lib/bullet/src")
+
+-# Build the ENet UDP network library
+-add_subdirectory("${PROJECT_SOURCE_DIR}/lib/enet")
+-include_directories("${PROJECT_SOURCE_DIR}/lib/enet/include")
++# ENet
++find_package(ENet REQUIRED)
++include_directories(${ENET_INCLUDE_DIR})
+
+ # Build glew library
+ add_definitions(-DGLEW_NO_GLU)
+@@ -342,11 +342,11 @@
+ bulletdynamics
+ bulletcollision
+ bulletmath
+- enet
+ glew
+ stkirrlicht
+ ${Angelscript_LIBRARIES}
+ ${CURL_LIBRARIES}
++ ${ENET_LIBRARIES}
+ ${OGGVORBIS_LIBRARIES}
+ ${OPENAL_LIBRARY}
+ ${OPENGL_LIBRARIES}
+--- /dev/null
++++ b/cmake/FindENet.cmake
+@@ -0,0 +1,22 @@
++# - Find ENet
++# Find the ENet includes and libraries
++#
++# Following variables are provided:
++# ENET_FOUND
++# True if ENet has been found
++# ENET_INCLUDE_DIR
++# The include directories of ENet
++# ENET_LIBRARIES
++# ENet library list
++
++
++find_path(ENET_INCLUDE_DIR enet/enet.h /usr/include)
++find_library(ENET_LIBRARY NAMES enet PATHS /usr/lib)
++
++include(FindPackageHandleStandardArgs)
++find_package_handle_standard_args(ENet DEFAULT_MSG ENET_INCLUDE_DIR ENET_LIBRARY)
++
++# Publish variables
++set(ENET_INCLUDE_DIRS ${ENET_INCLUDE_DIR})
++set(ENET_LIBRARIES ${ENET_LIBRARY})
++mark_as_advanced(ENET_INCLUDE_DIR ENET_LIBRARY)
diff --git a/games-action/supertuxkart/files/supertuxkart-0.9.2-unbundle-libs.patch b/games-action/supertuxkart/files/supertuxkart-0.9.2-unbundle-libs.patch
new file mode 100644
index 000000000000..1ea29e1db3cf
--- /dev/null
+++ b/games-action/supertuxkart/files/supertuxkart-0.9.2-unbundle-libs.patch
@@ -0,0 +1,19 @@
+Description: Link against system copies of zlib/libpng/libjpeg/bzip2
+Forwarded: not-yet
+Author: Vincent Cheng <vcheng@debian.org>
+Last-Update: 2016-07-17
+
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -351,6 +351,11 @@
+ ${OPENAL_LIBRARY}
+ ${OPENGL_LIBRARIES}
+ ${FREETYPE_LIBRARIES}
++ X11
++ z
++ png
++ jpeg
++ bz2
+ )
+
+ if(UNIX AND NOT APPLE)
diff --git a/games-action/supertuxkart/metadata.xml b/games-action/supertuxkart/metadata.xml
new file mode 100644
index 000000000000..62c1f65db331
--- /dev/null
+++ b/games-action/supertuxkart/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <use>
+ <flag name="fribidi">Support for right-to-left languages</flag>
+ <flag name="wiimote">Support for wiimote input devices</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">supertuxkart</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-action/supertuxkart/supertuxkart-0.9.2.ebuild b/games-action/supertuxkart/supertuxkart-0.9.2.ebuild
new file mode 100644
index 000000000000..05ff5a68fc1c
--- /dev/null
+++ b/games-action/supertuxkart/supertuxkart-0.9.2.ebuild
@@ -0,0 +1,90 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils eutils gnome2-utils
+
+DESCRIPTION="A kart racing game starring Tux, the linux penguin (TuxKart fork)"
+HOMEPAGE="https://supertuxkart.net/"
+SRC_URI="mirror://sourceforge/${PN}/SuperTuxKart/${PV}/${P}-src.tar.xz
+ mirror://gentoo/${PN}.png"
+
+LICENSE="GPL-2 GPL-3 CC-BY-SA-3.0 CC-BY-2.0 public-domain ZLIB"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="debug fribidi wiimote"
+
+# don't unbundle irrlicht and bullet
+# both are modified and system versions will break the game
+# https://sourceforge.net/p/irrlicht/feature-requests/138/
+
+RDEPEND="
+ media-libs/glew:0=
+ media-libs/libpng:0=
+ media-libs/libvorbis
+ media-libs/openal
+ net-libs/enet:1.3=
+ net-misc/curl
+ sys-libs/zlib
+ virtual/glu
+ virtual/jpeg:0
+ virtual/libintl
+ virtual/opengl
+ x11-libs/libX11
+ x11-libs/libXxf86vm
+ fribidi? ( dev-libs/fribidi )
+ wiimote? ( net-wireless/bluez )"
+DEPEND="${RDEPEND}
+ sys-devel/gettext
+ virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.9.2-unbundle-enet.patch
+ "${FILESDIR}"/${PN}-0.9.2-unbundle-libs.patch
+ "${FILESDIR}"/${PN}-0.9.2-fix-angelscript.patch
+ "${FILESDIR}"/${PN}-0.9.2-irrlicht-arch-support.patch
+ "${FILESDIR}"/${PN}-0.9.2-irrlicht-as-needed.patch
+ "${FILESDIR}"/${PN}-0.9.2-irrlicht-bundled-libs.patch
+ "${FILESDIR}"/${PN}-0.9.2-irrlicht-system-libs.patch
+ "${FILESDIR}"/${PN}-0.9.2-fix-buildsystem.patch
+)
+
+src_prepare() {
+ cmake-utils_src_prepare
+
+ # remove bundled libraries, just to be sure
+ rm -r lib/{enet,glew,jpeglib,libpng,zlib} || die
+}
+
+src_configure() {
+ local mycmakeargs=(
+ # system dev-libs/angelscript leads
+ # to failed assert segfaults
+ -DUSE_SYSTEM_ANGELSCRIPT=OFF
+ -DUSE_FRIBIDI=$(usex fribidi)
+ -DUSE_WIIUSE=$(usex wiimote)
+ -DSTK_INSTALL_BINARY_DIR=bin
+ -DSTK_INSTALL_DATA_DIR=share/${PN}
+ )
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+ dodoc CHANGELOG.md TODO.md
+
+ doicon -s 64 "${DISTDIR}"/${PN}.png
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/games-action/swordandsworcery/Manifest b/games-action/swordandsworcery/Manifest
new file mode 100644
index 000000000000..c499d1ac4bf1
--- /dev/null
+++ b/games-action/swordandsworcery/Manifest
@@ -0,0 +1,6 @@
+AUX swordandsworcery-wrapper 641 SHA256 c41756f783cde7a5bfc7c77cf644f49e971443149cee89353b9fbf8952866b94 SHA512 a29ff0cfadfd537129f5561fe9fa6acd88630340da49cc754f219aa125d01b8f73be7500dcc636140bbf707d73d8376b229e1897017819614fe6f4f28df1a545 WHIRLPOOL 8165d2852dbe5538a76e15c808437dbca95139ec1dc16fb47621a110df2f86dc6d93f8ec74b3adfe2f25aaacf5abefc9739d9fb371b32a38c32c5f1b0e4aab35
+DIST swordandsworcery_1.02.tar.gz 325277619 SHA256 e7be30816059d5fa0bda2378d06f51984de13a17abd835cdc015e591354f59de SHA512 1178492628e8b8196bbb57b3d4d7526d5545bd31d0da34bcbed92150753fbb768c8682f071e2a473b95f1b6ee7c3efb30ccb9fce2e3e319d76673b79617e47c0 WHIRLPOOL 9ec0365372a62b7fadfa6b68e945918a1a2ade3c5e7bae561e16251ed0bf4e76b176bfed31e30b259e9a569858d1ae0b07a83067375ca26fe2da049602a570fd
+EBUILD swordandsworcery-1.02.ebuild 2651 SHA256 d781261bcc66a24617f7f9305b3b8085b9e39d468597f0212a98d0d15305932f SHA512 b2ec1667d0ab3c493531cd996c98aa0430cc9ad904257d65aded4ee2a6365a246aa7b9f51ef77adac2919f2f2166dec8cd7ec458fb097b82b1b883cb27f23100 WHIRLPOOL 261bdae2be250622db2012bdf919214eece4f7e01f9a40923399e1f998a934adea087d247278d973f55fe04c6974531e03e32f17adbbc10b6f24e0dbc3d491fe
+MISC ChangeLog 3035 SHA256 404c14caa37dadf5f94e576086e6d5f1a9171ea2f9179d0f1534edca50528d05 SHA512 23e43ba57e125abd97e1eba613b341f79b530eaeaa8d67db02ec4de71e9517954b0bb722d6f1ec2ba8e3f064305ecec756820ded1cb119fac558c9285b5dfa00 WHIRLPOOL b9a9a8b0e6f63b74f070a46e8e63187ad9c779ab715bca542cfc0bb89bd0fa2094f62b6f5499aa5ab2bae46ad00e6ff777347550200cc13c9b24321beaed749f
+MISC ChangeLog-2015 1473 SHA256 a04d8f10c41042782bd18f3253e983cdee058b9f9d1356f73d9868b9e9386757 SHA512 503f02f0b903d4affa2a301bf0f79ee971dd1f92aaf7cf3d710a6c6aaac36e6dd22a03e2c19cc0b23bc448455e9183de46d4358ff2b4d2f1e3e0508aa47f7fc3 WHIRLPOOL 189f3087de49b57ff5689fe3836dc719a0fe980d88caf51e3b477b2c33c4e94f5f249b0e34ac48d1e351e61e47b199d7825cf15597f6d28062bbb99362ae060d
+MISC metadata.xml 355 SHA256 3fe59ecadf91cdd661b063661864ef57eb3df8d59bd55a2eb9e61dc1a75e5bd8 SHA512 78f8cc8f1f1be915da206e4b8be196a21b58a6f209023594755e481136a1b86ee31c8d0dfedd516d756a47db624e89728875b073b71c3b08ac94a5cde8ff3b83 WHIRLPOOL adc2ef67e7870008ce851a78268832c5ff50649850b2614fb66edd3a16ccbad441306f00c44000385a742552b91b4a805408b19aad2ef3b7dda9e86532703dba
diff --git a/games-action/swordandsworcery/files/swordandsworcery-wrapper b/games-action/swordandsworcery/files/swordandsworcery-wrapper
new file mode 100644
index 000000000000..ce668c71843a
--- /dev/null
+++ b/games-action/swordandsworcery/files/swordandsworcery-wrapper
@@ -0,0 +1,23 @@
+#!/bin/sh
+# Get game directory
+GAMEDIR="@GAMEDIR@"
+LIB=$GAMEDIR/lib
+BIN=$GAMEDIR/bin
+
+# Ensure the log directory exists
+LOGDIR=~/.capy/SwordAndSworcery
+[ -e ~/.capy ] || mkdir ~/.capy
+[ -e ~/.capy/SwordAndSworcery ] || mkdir ~/.capy/SwordAndSworcery
+
+# For multi-monitor displays, choose a screen to display on to avoid having
+# the game be displayed in the middle across both screens in fullscreen mode
+#export SDL_VIDEO_FULLSCREEN_DISPLAY=0
+
+# Modify library paths here
+export LD_LIBRARY_PATH="$LIB:$LD_LIBRARY_PATH"
+
+# Run the game and try to log any errors if any
+cd "$BIN"
+exec ./swordandsworcery $@ 2>&1 | tee -a $LOGDIR/log.txt
+
+exit
diff --git a/games-action/swordandsworcery/metadata.xml b/games-action/swordandsworcery/metadata.xml
new file mode 100644
index 000000000000..b878aaa1812d
--- /dev/null
+++ b/games-action/swordandsworcery/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <use>
+ <flag name="bundled-libs">
+ Use the upstream provided bundled libraries.
+ </flag>
+ </use>
+</pkgmetadata>
diff --git a/games-action/swordandsworcery/swordandsworcery-1.02.ebuild b/games-action/swordandsworcery/swordandsworcery-1.02.ebuild
new file mode 100644
index 000000000000..6ea8534569b6
--- /dev/null
+++ b/games-action/swordandsworcery/swordandsworcery-1.02.ebuild
@@ -0,0 +1,108 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# TODO: unbundle liblua-5.1 when available for multilib
+
+EAPI=5
+
+inherit eutils games
+
+DESCRIPTION="An exploratory action adventure game with an emphasis on audiovisual style"
+HOMEPAGE="http://www.swordandsworcery.com/"
+SRC_URI="${PN}_${PV}.tar.gz"
+
+LICENSE="CAPYBARA-EULA LGPL-3"
+SLOT="0"
+KEYWORDS="-* amd64 x86"
+IUSE="bundled-libs"
+RESTRICT="bindist fetch splitdebug"
+
+MYGAMEDIR=${GAMES_PREFIX_OPT}/${PN}
+QA_PREBUILT="${MYGAMEDIR#/}/bin/*
+ ${MYGAMEDIR#/}/lib/*"
+
+# linked to pulseaudio
+RDEPEND="
+ virtual/opengl
+ amd64? (
+ >=dev-libs/openssl-1.0.1h-r2:0=[abi_x86_32(-)]
+ >=sys-libs/zlib-1.2.8-r1[abi_x86_32(-)]
+ >=virtual/glu-9.0-r1[abi_x86_32(-)]
+ >=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/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(-)]
+ >=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(-)]
+ !bundled-libs? (
+ >=net-misc/curl-7.36.0[abi_x86_32(-)]
+ >=media-libs/libsdl-1.2.15-r4[X,sound,video,opengl,joystick,abi_x86_32(-)]
+ )
+ )
+ x86? (
+ dev-libs/openssl:0=
+ media-libs/alsa-lib
+ media-libs/flac
+ media-libs/libogg
+ media-libs/libsndfile
+ media-libs/libvorbis
+ media-sound/pulseaudio
+ sys-libs/zlib
+ virtual/glu
+ x11-libs/libICE
+ x11-libs/libSM
+ x11-libs/libX11
+ x11-libs/libXau
+ x11-libs/libxcb
+ x11-libs/libXdmcp
+ x11-libs/libXext
+ x11-libs/libXi
+ x11-libs/libXtst
+ !bundled-libs? (
+ net-misc/curl
+ media-libs/libsdl[X,sound,video,opengl,joystick]
+ )
+ )"
+
+S=${WORKDIR}
+
+pkg_nofetch() {
+ einfo "Please buy & download ${SRC_URI} from:"
+ einfo " ${HOMEPAGE}"
+ einfo "and move it to ${DISTDIR}"
+}
+
+src_prepare() {
+ if ! use bundled-libs ; then
+ einfo "removing bundled libs..."
+ rm -v lib/libcurl.so* lib/libSDL-1.2.so* \
+ lib/libstdc++.so* || die
+ fi
+
+ sed \
+ -e "s#@GAMEDIR@#${MYGAMEDIR}#" \
+ "${FILESDIR}"/${PN}-wrapper > "${T}"/${PN} || die
+}
+
+src_install() {
+ insinto "${MYGAMEDIR}"
+ doins -r bin lib res
+
+ dogamesbin "${T}"/${PN}
+ make_desktop_entry ${PN}
+
+ dohtml README.html
+
+ fperms +x "${MYGAMEDIR}"/bin/${PN}
+ prepgamesdirs
+}
diff --git a/games-action/teeworlds/Manifest b/games-action/teeworlds/Manifest
new file mode 100644
index 000000000000..d8f8da1fd61e
--- /dev/null
+++ b/games-action/teeworlds/Manifest
@@ -0,0 +1,13 @@
+AUX 0.6/01-use-system-wavpack.patch 3182 SHA256 266ebb1e36bbcb9ef3008a53bc9fb1e726fd4c53d00107022759789ff70b0b76 SHA512 2210a018c3917b78109e31b3fa51a292c5c3714371880d2b9ce10de4cde999f014ff44555fa657fed78d961dbada2511601b3aa8e9356eb34de187f24b16dbad WHIRLPOOL 85faa33f93e8994cf5c0321ac0d9376b994f865a781b25bd98f08b9bb53d6789cb4d1da1ade1b1dfb4f5136f40113a1ca4ce8a76bb65d3b8127f253c176bcabb
+AUX 0.6/02-fixed-wavpack-sound-loading.patch 2916 SHA256 5f75a6dd06bd69d90bc53e69ff714d1a469ae50a566e64dbbf926493b603692b SHA512 9cada7356b588a220dba4a0c104a28738969c7755c80f9e9f10c4bf1f57ae1b6ea64c084aa012410de135fed0267e0e7ab8375137f2f16aba2d81c0441de2e8a WHIRLPOOL a7e13d2b8aec541bd3f8677edd31b0c2bde5c91bc7722a87285403efd01c4d1fff0757770c607b401ef9107980b2891e0783a95905987a8bf8bea04d684db22a
+AUX 0.6/03-use-system-pnglite.patch 5703 SHA256 3fb1df74e020704d0a4cd1849f2955ce753be9d2ac614a4a325b986529a95e85 SHA512 c069fc15de002b9e3f01bf9a36e40396aa62158bec1bb70a2dae6fbbace07299c298854319f80141d26e34b49dd270b9478383c55eb4b7e8873aedd323eb412b WHIRLPOOL 6cf80cef92040a0c952bac59ae3e4673693d4ab1c5d1ec82137cab0a79dac88c8fbf0f38825062984b9f3ba99ac295a1bc2bf4acce6e80c39865afc0596eec9d
+AUX 0.6/04-dedicated.patch 491 SHA256 2dcf3a886a5e22c308b041463d3e40ac1e6047f93c5022028ba915b0598e45ed SHA512 c292b638e58e69fcf6b273617fc43cc4c8d96ffe4c75ad7911c1b319a129de6c01255f988569a0532b8e6c29f775ececc679274f7f85c6a9933bf713620ab8fb WHIRLPOOL cd224d0f8897749c3bbca245ef93b5ddb2ba42cd743fbe3e4ce6a745ea08e25da7bd0419780a0fd153b76bd3654240ffe6ca69446607ce6ccd3d980a3677856e
+AUX 0.6/05-cc-cflags.patch 482 SHA256 ab634107cb694cf1030e3311c3c0bbc1c4bdc723a8840bb3656b56532479bb69 SHA512 92b74845413c20cf4626cb89b8b825bc5cb2f25e9af1d61d2ecabbda3acf024ee0c5e03abf8de2b57d6a8c739a8cf343fcb109a3a72d4baa016711e53368d0f8 WHIRLPOOL f38b40006b8978b82731cf2d422f9af98206057a493c49698138a7b75255306cf13a325803d6c40f4e551385a7a7d1a0a206e260ff623ecf0416ae6697da297e
+AUX teeworlds-init.d 1000 SHA256 3561dc1b41a4b5d482b5009ec0c9dee9d18f919f38b07692b4be65fb85ca0117 SHA512 01d39e8a0b5991000d336a4d51f8b61e296c0c9fce7b4247d24007b119c9c7a863e284e670b6286923a1e22fd25c4a171d20846feacea34bcc0c4d33120e98bd WHIRLPOOL dff65c3a3cf412ce77765d1c568dc0934ba0c450fc5b165807a6dce3117952859694e4404efd15671244cff7b2dfc7b205e95af6aa3e98debabc18600f174071
+AUX teeworlds.xpm 2785 SHA256 0b31cc3e65ca26676324a7b66de29cb91df90221e28f9e4b5adfec0e37729284 SHA512 f8a8a1c3a5675f12b13ddaf9b68bc2757698725d406356c871d58e62f735413b5f4f0bcb3dbf783e0aa6b3ecb0ec7f9eddbcef044506a6a07a374fe46d2616c0 WHIRLPOOL f7f70bf612b4d69bacc68b29c9ffd2fa194755285b389523df30ff53e190df821595dbc9381049c6a9443950b30fa3caa946445d336e86113d05ec195f8eff22
+AUX teeworlds_srv.cfg 193 SHA256 9c00eca2c72d02893c288282793b81abb472ee0a7302847e472e964179339687 SHA512 d9a55f749f6974caddf96438eb38e490e0e507fbe07ebdac070fe91ab46eed93afb5dd6300a5b7a86b6282c6b97fdd178a00720483c3e71490be816b8c6a73b5 WHIRLPOOL 93726bef063d4d280f9058d3698c4f76492e2705d1f0c5506400c391fdb3c0feeb99374fbe814c0b3735e41f6d4a77f80b90baa206f1bac7dad6c740e115b6a2
+DIST teeworlds-0.6.4-src.tar.gz 8771622 SHA256 c261d19ebb00b5451faa2ceb4a7ca945cad2add48b06046eb43b40ccc9fd98e2 SHA512 7546ee358a2126339f6c727bb7b5f49009a8fad0b5e77a796202cba4d8fc5dfcaf79b7e65151d85fead2a70ad61ef3e1888b8c07fe0206f87575d5dd8c9f91ce WHIRLPOOL ea45aeb1eeef511e38b19e051dc575b7506dba002ed27a3850aabbb9bfac9a0530bc033d3428ede75a0081c054a573a91c0c942cf49477645674ad5d4aa28764
+EBUILD teeworlds-0.6.4.ebuild 2388 SHA256 1b54c07d4f8d8128378294f32c5b32293997ba2bfac6bbc2da44124fea4eb087 SHA512 1b16f30a138ef1f0c3b25008fccbff704edce0aecdb2a65a56095a737e365a191c14441de09f39fca9cce068ed8540a176490b7bc516a4e47a60b366dda5be55 WHIRLPOOL b5e47973a2ec5b06c2dd56da5d082b8349bb373fcddd13983ad138763c49ccd9d8afafd66984ab1db80f8352a3706fb4fe5256c0c1484c710fd477089154c761
+MISC ChangeLog 3247 SHA256 71c01951a64e50cb6ca7f5e178fd423cf1ef121b9adb994283b1e3ac2b229931 SHA512 846b7fa1804b635a6ba17d6e8bcb4c5ee41474650459acf89a5ee1d7c5b23b86fcd2d4aa51027afa2f638fd45a0724983bd344765426764e676dc4940300cf41 WHIRLPOOL c216857f3d018c218a8a2a31d29d8ac236037f4fe5fb917e5c15b683cfc025072d8f19be550f3772d52042d7d177537713b13ff706496fd02df7bff1a5ea09c3
+MISC ChangeLog-2015 4127 SHA256 3d84f6ae4c0cb796049893aeeb44c2076e08ee4d2db8d4ad3551e5797b8a687a SHA512 4f477dc1308eeba27bbc4a99485970f5155a0e6f0cd5ed6deeb7a543b4347f390292c497adb4345b3b183a178551904ac566533bf323000b4632a2ca46613723 WHIRLPOOL 0a46aa80c7465a3020250ef520b0ae0ec1346cbd3055e2e12fd91f84d42290510ba77cdf49e25576931882fe43cdb0bd6136d0861fcc8465be17418ac5d67230
+MISC metadata.xml 253 SHA256 2c95b2eb99144a3b66de17be35eebcf65e5a152a2ec2f176165bb9cd78e5394e SHA512 61c4689cbc649d84a00be211b7b5b98dd03e1d3f813eff370df549f2998cd4343f391c18b57cf20e4a8f4dd2311e3bfa04eb60f356f2bbac78f0b68f5091f254 WHIRLPOOL fd044f0a960e57257f4a15ab16f066bbfe9983e60cd5fc072e631efc7027306c612a01d7fbbf57eb08d957487a7ce1961250194653d6ed87ee23f20d631ef854
diff --git a/games-action/teeworlds/files/0.6/01-use-system-wavpack.patch b/games-action/teeworlds/files/0.6/01-use-system-wavpack.patch
new file mode 100644
index 000000000000..4a11a866511d
--- /dev/null
+++ b/games-action/teeworlds/files/0.6/01-use-system-wavpack.patch
@@ -0,0 +1,101 @@
+commit 7202b142891ee10771af9f1f3063664d75a38bbc
+Author: hasufell <hasufell@gentoo.org>
+Date: Thu Sep 5 12:28:30 2013 +0200
+
+ Use system wavpack. Based on patch from Gentoo Bugzilla
+
+ From: Azamat H. Hackimov <azamat.hackimov@gmail.com>
+
+ https://bugs.gentoo.org/show_bug.cgi?id=363395
+
+diff --git a/bam.lua b/bam.lua
+index 11ac7b9..35c1d8d 100644
+--- a/bam.lua
++++ b/bam.lua
+@@ -11,6 +11,7 @@ config:Add(OptTestCompileC("stackprotector", "int main(){return 0;}", "-fstack-p
+ config:Add(OptTestCompileC("minmacosxsdk", "int main(){return 0;}", "-mmacosx-version-min=10.5 -isysroot /Developer/SDKs/MacOSX10.5.sdk"))
+ config:Add(OptTestCompileC("macosxppc", "int main(){return 0;}", "-arch ppc"))
+ config:Add(OptLibrary("zlib", "zlib.h", false))
++config:Add(OptLibrary("wavpack", "wavpack/wavpack.h", false))
+ config:Add(SDL.OptFind("sdl", true))
+ config:Add(FreeType.OptFind("freetype", true))
+ config:Finalize("config.lua")
+@@ -187,7 +188,7 @@ function build(settings)
+ end
+
+ -- compile zlib if needed
+- if config.zlib.value == 1 then
++ if config.zlib.value == true then
+ settings.link.libs:Add("z")
+ if config.zlib.include_path then
+ settings.cc.includes:Add(config.zlib.include_path)
+@@ -198,8 +199,18 @@ function build(settings)
+ settings.cc.includes:Add("src/engine/external/zlib")
+ end
+
++ if config.wavpack.value == true then
++ settings.link.libs:Add("wavpack")
++ if config.wavpack.include_path then
++ settings.cc.includes:Add(config.wavpack.include_path)
++ end
++ wavpack = {}
++ else
++ wavpack = Compile(settings, Collect("src/engine/external/wavpack/*.c"))
++ settings.cc.includes:Add("src/engine/external/") --The header is wavpack/wavpack.h so include the external folder
++ end
++
+ -- build the small libraries
+- wavpack = Compile(settings, Collect("src/engine/external/wavpack/*.c"))
+ pnglite = Compile(settings, Collect("src/engine/external/pnglite/*.c"))
+
+ -- build game components
+diff --git a/src/engine/client/sound.cpp b/src/engine/client/sound.cpp
+index 343fa2e..e32cac9 100644
+--- a/src/engine/client/sound.cpp
++++ b/src/engine/client/sound.cpp
+@@ -13,7 +13,7 @@
+ #include "sound.h"
+
+ extern "C" { // wavpack
+- #include <engine/external/wavpack/wavpack.h>
++ #include <wavpack/wavpack.h>
+ }
+ #include <math.h>
+
+@@ -351,19 +351,25 @@ int CSound::LoadWV(const char *pFilename)
+ if(!m_pStorage)
+ return -1;
+
++ #ifndef WAVPACK_H
+ ms_File = m_pStorage->OpenFile(pFilename, IOFLAG_READ, IStorage::TYPE_ALL);
+ if(!ms_File)
+ {
+ dbg_msg("sound/wv", "failed to open file. filename='%s'", pFilename);
+ return -1;
+ }
++ #endif
+
+ SampleID = AllocID();
+ if(SampleID < 0)
+ return -1;
+ pSample = &m_aSamples[SampleID];
+
++ #ifndef WAVPACK_H
+ pContext = WavpackOpenFileInput(ReadData, aError);
++ #else
++ pContext = WavpackOpenFileInput(pFilename, aError, 0, 0);
++ #endif
+ if (pContext)
+ {
+ int m_aSamples = WavpackGetNumSamples(pContext);
+@@ -419,8 +425,10 @@ int CSound::LoadWV(const char *pFilename)
+ dbg_msg("sound/wv", "failed to open %s: %s", pFilename, aError);
+ }
+
++ #ifndef WAVPACK_H
+ io_close(ms_File);
+ ms_File = NULL;
++ #endif
+
+ if(g_Config.m_Debug)
+ dbg_msg("sound/wv", "loaded %s", pFilename);
diff --git a/games-action/teeworlds/files/0.6/02-fixed-wavpack-sound-loading.patch b/games-action/teeworlds/files/0.6/02-fixed-wavpack-sound-loading.patch
new file mode 100644
index 000000000000..e207a4a354bf
--- /dev/null
+++ b/games-action/teeworlds/files/0.6/02-fixed-wavpack-sound-loading.patch
@@ -0,0 +1,109 @@
+commit b96981f5f23b4269108afb465f29a23abbd32ae2
+Author: hasufell <hasufell@gentoo.org>
+Date: Thu Sep 5 12:31:19 2013 +0200
+
+ Fixing wavpack sound loading. Based on Gentoo Bugzilla
+
+ From: Azamat H. Hackimov <azamat.hackimov@gmail.com>
+
+ https://bugs.gentoo.org/show_bug.cgi?id=363395
+
+diff --git a/src/engine/client/sound.cpp b/src/engine/client/sound.cpp
+index e32cac9..2a4c653 100644
+--- a/src/engine/client/sound.cpp
++++ b/src/engine/client/sound.cpp
+@@ -51,6 +51,55 @@ struct CVoice
+ int m_X, m_Y;
+ } ;
+
++#ifdef WAVPACK_H
++static int32_t ReadBytes(void *pFile, void *pBuffer, int32_t Size)
++{
++ return (int32_t)io_read((IOHANDLE)pFile, pBuffer, Size);
++}
++static uint32_t GetPos(void *pFile)
++{
++ return (uint32_t)io_tell((IOHANDLE)pFile);
++}
++static int SetPosAbs(void *pFile, uint32_t Offset)
++{
++ return io_seek((IOHANDLE)pFile, Offset, IOSEEK_START);
++}
++static int SetPosRel(void *pFile, int32_t Offset, int Mode)
++{
++ switch(Mode)
++ {
++ case SEEK_SET:
++ Mode = IOSEEK_START;
++ break;
++ case SEEK_CUR:
++ Mode = IOSEEK_CUR;
++ break;
++ case SEEK_END:
++ Mode = IOSEEK_END;
++ }
++ return io_seek((IOHANDLE)pFile, Offset, Mode);
++}
++
++//TODO: Fix if 'real' functionality is needed by the wavpack header
++static int PushBackByte(void *pFile, int Char)
++{
++ return io_seek((IOHANDLE)pFile, -1, IOSEEK_CUR);
++}
++static uint32_t GetLength(void *pFile)
++{
++ return (uint32_t)io_length((IOHANDLE)pFile);
++}
++// Essentially assuming this to always be true, should fix if this isn't the case
++static int CanSeek(void *pFile)
++{
++ return pFile != NULL;
++}
++static WavpackStreamReader CWavpackReader = {
++ ReadBytes, GetPos, SetPosAbs, SetPosRel, PushBackByte, GetLength, CanSeek, 0
++};
++#endif
++
++
+ static CSample m_aSamples[NUM_SAMPLES] = { {0} };
+ static CVoice m_aVoices[NUM_VOICES] = { {0} };
+ static CChannel m_aChannels[NUM_CHANNELS] = { {255, 0} };
+@@ -351,14 +400,12 @@ int CSound::LoadWV(const char *pFilename)
+ if(!m_pStorage)
+ return -1;
+
+- #ifndef WAVPACK_H
+ ms_File = m_pStorage->OpenFile(pFilename, IOFLAG_READ, IStorage::TYPE_ALL);
+ if(!ms_File)
+ {
+ dbg_msg("sound/wv", "failed to open file. filename='%s'", pFilename);
+ return -1;
+ }
+- #endif
+
+ SampleID = AllocID();
+ if(SampleID < 0)
+@@ -368,7 +415,7 @@ int CSound::LoadWV(const char *pFilename)
+ #ifndef WAVPACK_H
+ pContext = WavpackOpenFileInput(ReadData, aError);
+ #else
+- pContext = WavpackOpenFileInput(pFilename, aError, 0, 0);
++ pContext = WavpackOpenFileInputEx(&CWavpackReader, ms_File, 0, aError, 0, 0);
+ #endif
+ if (pContext)
+ {
+@@ -422,13 +469,11 @@ int CSound::LoadWV(const char *pFilename)
+ }
+ else
+ {
+- dbg_msg("sound/wv", "failed to open %s: %s", pFilename, aError);
++ dbg_msg("sound/wv", "failed to open '%s': %s", pFilename, aError);
+ }
+
+- #ifndef WAVPACK_H
+ io_close(ms_File);
+ ms_File = NULL;
+- #endif
+
+ if(g_Config.m_Debug)
+ dbg_msg("sound/wv", "loaded %s", pFilename);
diff --git a/games-action/teeworlds/files/0.6/03-use-system-pnglite.patch b/games-action/teeworlds/files/0.6/03-use-system-pnglite.patch
new file mode 100644
index 000000000000..81c3d915316b
--- /dev/null
+++ b/games-action/teeworlds/files/0.6/03-use-system-pnglite.patch
@@ -0,0 +1,160 @@
+commit 291a375000ac8d9cd5548a863ea6b49c46cfb1bb
+Author: hasufell <hasufell@gentoo.org>
+Date: Thu Sep 5 12:36:53 2013 +0200
+
+ Use system pnglite. Based on Gentoo Bugzilla
+
+ From: Azamat H. Hackimov <azamat.hackimov@gmail.com>
+
+ https://bugs.gentoo.org/show_bug.cgi?id=363395
+
+diff --git a/bam.lua b/bam.lua
+index 35c1d8d..7902a2c 100644
+--- a/bam.lua
++++ b/bam.lua
+@@ -11,6 +11,7 @@ config:Add(OptTestCompileC("stackprotector", "int main(){return 0;}", "-fstack-p
+ config:Add(OptTestCompileC("minmacosxsdk", "int main(){return 0;}", "-mmacosx-version-min=10.5 -isysroot /Developer/SDKs/MacOSX10.5.sdk"))
+ config:Add(OptTestCompileC("macosxppc", "int main(){return 0;}", "-arch ppc"))
+ config:Add(OptLibrary("zlib", "zlib.h", false))
++config:Add(OptLibrary("pnglite", "pnglite.h", false))
+ config:Add(OptLibrary("wavpack", "wavpack/wavpack.h", false))
+ config:Add(SDL.OptFind("sdl", true))
+ config:Add(FreeType.OptFind("freetype", true))
+@@ -199,26 +200,34 @@ function build(settings)
+ settings.cc.includes:Add("src/engine/external/zlib")
+ end
+
++ -- build game components
++ engine_settings = settings:Copy()
++ server_settings = engine_settings:Copy()
++ client_settings = engine_settings:Copy()
++ launcher_settings = engine_settings:Copy()
++
++ if config.pnglite.value == true then
++ client_settings.link.libs:Add("pnglite")
++ if config.pnglite.include_path then
++ client_settings.cc.includes:Add(config.pnglite.include_path)
++ end
++ pnglite = {}
++ else
++ pnglite = Compile(settings, Collect("src/engine/external/pnglite/*.c"))
++ client_settings.cc.includes:Add("src/engine/external/pnglite")
++ end
++
+ if config.wavpack.value == true then
+- settings.link.libs:Add("wavpack")
++ client_settings.link.libs:Add("wavpack")
+ if config.wavpack.include_path then
+- settings.cc.includes:Add(config.wavpack.include_path)
++ client_settings.cc.includes:Add(config.wavpack.include_path)
+ end
+ wavpack = {}
+ else
+ wavpack = Compile(settings, Collect("src/engine/external/wavpack/*.c"))
+- settings.cc.includes:Add("src/engine/external/") --The header is wavpack/wavpack.h so include the external folder
++ client_settings.cc.includes:Add("src/engine/external/") --The header is wavpack/wavpack.h so include the external folder
+ end
+
+- -- build the small libraries
+- pnglite = Compile(settings, Collect("src/engine/external/pnglite/*.c"))
+-
+- -- build game components
+- engine_settings = settings:Copy()
+- server_settings = engine_settings:Copy()
+- client_settings = engine_settings:Copy()
+- launcher_settings = engine_settings:Copy()
+-
+ if family == "unix" then
+ if platform == "macosx" then
+ client_settings.link.frameworks:Add("OpenGL")
+diff --git a/src/engine/client/graphics.cpp b/src/engine/client/graphics.cpp
+index 2e8a855..97e4fd7 100644
+--- a/src/engine/client/graphics.cpp
++++ b/src/engine/client/graphics.cpp
+@@ -9,7 +9,7 @@
+ #include "SDL_opengl.h"
+
+ #include <base/system.h>
+-#include <engine/external/pnglite/pnglite.h>
++#include <pnglite.h>
+
+ #include <engine/shared/config.h>
+ #include <engine/graphics.h>
+diff --git a/src/engine/client/graphics_threaded.cpp b/src/engine/client/graphics_threaded.cpp
+index e34b725..60246d1 100644
+--- a/src/engine/client/graphics_threaded.cpp
++++ b/src/engine/client/graphics_threaded.cpp
+@@ -6,7 +6,7 @@
+ #include <base/tl/threading.h>
+
+ #include <base/system.h>
+-#include <engine/external/pnglite/pnglite.h>
++#include <pnglite.h>
+
+ #include <engine/shared/config.h>
+ #include <engine/graphics.h>
+diff --git a/src/tools/dilate.cpp b/src/tools/dilate.cpp
+index 55094a5..42a5b83 100644
+--- a/src/tools/dilate.cpp
++++ b/src/tools/dilate.cpp
+@@ -2,7 +2,7 @@
+ /* If you are missing that file, acquire a complete release at teeworlds.com. */
+ #include <base/system.h>
+ #include <base/math.h>
+-#include <engine/external/pnglite/pnglite.h>
++#include <pnglite.h>
+
+ typedef struct
+ {
+diff --git a/src/tools/tileset_borderadd.cpp b/src/tools/tileset_borderadd.cpp
+index 25e2fa5..88f760a 100644
+--- a/src/tools/tileset_borderadd.cpp
++++ b/src/tools/tileset_borderadd.cpp
+@@ -2,7 +2,7 @@
+ /* If you are missing that file, acquire a complete release at teeworlds.com. */
+ #include <base/math.h>
+ #include <base/system.h>
+-#include <engine/external/pnglite/pnglite.h>
++#include <pnglite.h>
+
+ typedef struct
+ {
+diff --git a/src/tools/tileset_borderfix.cpp b/src/tools/tileset_borderfix.cpp
+index 0facb9a..ab36292 100644
+--- a/src/tools/tileset_borderfix.cpp
++++ b/src/tools/tileset_borderfix.cpp
+@@ -1,7 +1,7 @@
+ /* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
+ /* If you are missing that file, acquire a complete release at teeworlds.com. */
+ #include <base/system.h>
+-#include <engine/external/pnglite/pnglite.h>
++#include <pnglite.h>
+
+ typedef struct
+ {
+diff --git a/src/tools/tileset_borderrem.cpp b/src/tools/tileset_borderrem.cpp
+index d604ecb..8673e41 100644
+--- a/src/tools/tileset_borderrem.cpp
++++ b/src/tools/tileset_borderrem.cpp
+@@ -2,7 +2,7 @@
+ /* If you are missing that file, acquire a complete release at teeworlds.com. */
+ #include <base/math.h>
+ #include <base/system.h>
+-#include <engine/external/pnglite/pnglite.h>
++#include <pnglite.h>
+
+ typedef struct
+ {
+diff --git a/src/tools/tileset_borderset.cpp b/src/tools/tileset_borderset.cpp
+index 8b3e299..c762ee2 100644
+--- a/src/tools/tileset_borderset.cpp
++++ b/src/tools/tileset_borderset.cpp
+@@ -2,7 +2,7 @@
+ /* If you are missing that file, acquire a complete release at teeworlds.com. */
+ #include <base/math.h>
+ #include <base/system.h>
+-#include <engine/external/pnglite/pnglite.h>
++#include <pnglite.h>
+
+ typedef struct
+ {
diff --git a/games-action/teeworlds/files/0.6/04-dedicated.patch b/games-action/teeworlds/files/0.6/04-dedicated.patch
new file mode 100644
index 000000000000..fc61b71283b6
--- /dev/null
+++ b/games-action/teeworlds/files/0.6/04-dedicated.patch
@@ -0,0 +1,15 @@
+From: Julian Ospald <hasufell@gentoo.org>
+Date: Sun Sep 8 11:05:26 UTC 2013
+Subject: fix DATADIR detection for minimal setups
+
+--- a/src/engine/shared/storage.cpp
++++ b/src/engine/shared/storage.cpp
+@@ -208,7 +208,7 @@
+ for (i = 0; i < DirsCount; i++)
+ {
+ char aBuf[128];
+- str_format(aBuf, sizeof(aBuf), "%s/mapres", aDirs[i]);
++ str_format(aBuf, sizeof(aBuf), "%s/maps", aDirs[i]);
+ if(fs_is_dir(aBuf))
+ {
+ str_copy(m_aDatadir, aDirs[i], sizeof(m_aDatadir));
diff --git a/games-action/teeworlds/files/0.6/05-cc-cflags.patch b/games-action/teeworlds/files/0.6/05-cc-cflags.patch
new file mode 100644
index 000000000000..dec6b8d306fc
--- /dev/null
+++ b/games-action/teeworlds/files/0.6/05-cc-cflags.patch
@@ -0,0 +1,18 @@
+From: Julian Ospald <hasufell@gentoo.org>
+Date: Sun Sep 8 12:25:19 UTC 2013
+Subject: respect our gentoo settings
+
+ this has to be at this place or later
+ otherwise some of our settings would be overwritten
+
+--- a/bam.lua
++++ b/bam.lua
+@@ -168,6 +168,8 @@
+ -- set some platform specific settings
+ settings.cc.includes:Add("src")
+
++ dofile("gentoo.lua") addSettings(settings)
++
+ if family == "unix" then
+ if platform == "macosx" then
+ settings.link.frameworks:Add("Carbon")
diff --git a/games-action/teeworlds/files/teeworlds-init.d b/games-action/teeworlds/files/teeworlds-init.d
new file mode 100644
index 000000000000..fa1a95831ff5
--- /dev/null
+++ b/games-action/teeworlds/files/teeworlds-init.d
@@ -0,0 +1,40 @@
+#!/sbin/openrc-run
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+PIDFILE=/var/run/teeworlds.pid
+GAME_DIRECTORY=/usr/games/bin
+CONFIG=/etc/teeworlds/teeworlds_srv.cfg
+
+depend() {
+ use dns logger net
+}
+
+checkconfig() {
+ if [ ! -e ${CONFIG} ] ; then
+ eerror "You need an ${CONFIG} config file to run TeeWorlds"
+ return 1
+ fi
+}
+
+start() {
+ ebegin "Starting TeeWorlds"
+ start-stop-daemon --start --background --pidfile "${PIDFILE}" \
+ --make-pidfile -d ${GAME_DIRECTORY} --user games \
+ --exec ${GAME_DIRECTORY}/teeworlds_srv -- -f ${CONFIG}
+ eend $?
+}
+
+reload() {
+ ebegin "Reloading TeeWorlds configs and restarting processes"
+ start-stop-daemon --stop --oknodo --user games \
+ --pidfile "${PIDFILE}" --signal HUP \
+ --exec ${GAME_DIRECTORY}/teeworlds_srv -- -f ${CONFIG}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping TeeWorlds"
+ start-stop-daemon --stop --quiet --pidfile "${PIDFILE}"
+ eend $?
+}
diff --git a/games-action/teeworlds/files/teeworlds.xpm b/games-action/teeworlds/files/teeworlds.xpm
new file mode 100644
index 000000000000..76e30166dd35
--- /dev/null
+++ b/games-action/teeworlds/files/teeworlds.xpm
@@ -0,0 +1,66 @@
+/* XPM */
+static char *teeworlds__[] = {
+/* columns rows colors chars-per-pixel */
+"48 48 12 1",
+" c #000000",
+". c #800000",
+"X c #FF0000",
+"o c #008000",
+"O c #808000",
+"+ c #FFFF00",
+"@ c #000080",
+"# c #800080",
+"$ c #008080",
+"% c #808080",
+"& c #C0C0C0",
+"* c None",
+/* pixels */
+"*********************%%.%%%*********************",
+"*****************% %*****************",
+"*************** .%O%OOO. ***************",
+"************* ..%+&++++++++&O @*************",
+"***********% O&&++++++++++++++% ************",
+"**********O .+&&+++++++++++++++++O %**********",
+"*********@ O&&&+++++++++++++++++++% %*********",
+"******** .O&+++++++++++++++++++++++% %********",
+"*******% O+&++++++++++++++++++++++++% ********",
+"******* O+&&+++++++++++++++++++++++++% *******",
+"****** O+X&+++++++++++++++++++++++++++O .******",
+"*****% .OX++++++++++++++++++++++++++++++ ******",
+"***** .++++++++++++ +++++O@ ++++++++++ *****",
+"****% ++X+++++++++ +++O . +++++++++ *****",
+"**** O+X++++++++++ +++ +++++++++O %****",
+"**** X++X+++++++++ +++ ++++++++++ ****",
+"**** ++X+&++++++++ +++ ++++++++++ ****",
+"***% .+X+O+++++++++ +++ ++++++++++O ****",
+"***% O++X+&++++++++ +++ ++++++++++% %***",
+"*** O+X+++++++++++ +++O ++++++++++O %***",
+"*** OX+X+X+++++++++ +++++ +++++++++++& .***",
+"*** ++++X+&++++++++++++++++++++++++++++++O $***",
+"*** OX+X++%++++++++++++++++++++++++++++++% .***",
+"*** O+O++X+++++++++++++++++++++++++++++++% %***",
+"*** O+X+X+++++++++++++++++++++++++++++++&O %***",
+"***% .+O++X+X+++++++++++++++++++++++++++++ ****",
+"**** +X+X+++%+++++++++++++++++++++++++++& ****",
+"**** O++O+OX+&++++++++++++++++++++++++++% ****",
+"****% .+X+X++++&+++++++++++++++++++++++++. %****",
+"***** O+O+X+OX+&+++++++++++++++++++++++% *****",
+"***** O+X++X+++++++++++++++++++++++++++@ %*****",
+"****** OO+X++X+X++++++++++++++++++++++% ******",
+"******% ++O+X++O+++++++++++++++++++++& %******",
+"******* .O o .O.O+&+++++++++++++++&. %*******",
+"******% O.OOO#o. OO+&+++++++++++&. ********",
+"*****% .O+X&X+X+X%+. OX++&+&+&X+X+ *******",
+"***** .%OX+O+%O+&+X&+O oO+X+X++++O .OO ******",
+"****% .OO+%+&X+&+X+%+X&X .+O++X+O. #%+X+. *****",
+"**** O+X+X+X+%+X&++%+O+% O+X+OO .O+X+&OO. *****",
+"**** OX+%+O%+%+%+&X+&X+XO OO .O%+%+%X+%O $****",
+"**** +OOX+X+X+X+X+%+X+%+. ..O%X+X+X+%+X% .****",
+"**** OX+%+%+%+%+%+%+%+X+. O+%+O+%+%+%+X+O ****",
+"**** OOX+X+X+X+OX+X+X+OO.OX+X+XOX+X+X+OO %****",
+"****% OOOOOOO+XO+OOOOO. OOOOOO+OOOOOO. %****",
+"***** %*****",
+"******* .%*******",
+"***********%%%%%%%%%%%**%%%%%%%%%%%%************",
+"************************************************"
+};
diff --git a/games-action/teeworlds/files/teeworlds_srv.cfg b/games-action/teeworlds/files/teeworlds_srv.cfg
new file mode 100644
index 000000000000..dc675622c78b
--- /dev/null
+++ b/games-action/teeworlds/files/teeworlds_srv.cfg
@@ -0,0 +1,7 @@
+# sample Teeworlds server config file
+# see http://www.teeworlds.com/?page=docs&wiki=ServerSettings for details
+sv_gametype dm
+sv_map dm1
+sv_name gentoo-teeworlds
+sv_register 1
+sv_scorelimit 20 \ No newline at end of file
diff --git a/games-action/teeworlds/metadata.xml b/games-action/teeworlds/metadata.xml
new file mode 100644
index 000000000000..26079e608bed
--- /dev/null
+++ b/games-action/teeworlds/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 type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/games-action/teeworlds/teeworlds-0.6.4.ebuild b/games-action/teeworlds/teeworlds-0.6.4.ebuild
new file mode 100644
index 000000000000..4ffbb88a2c8e
--- /dev/null
+++ b/games-action/teeworlds/teeworlds-0.6.4.ebuild
@@ -0,0 +1,118 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+inherit eutils multiprocessing python-any-r1 toolchain-funcs versionator
+
+REVISION="b177-rff25472"
+
+DESCRIPTION="Online multi-player platform 2D shooter"
+HOMEPAGE="http://www.teeworlds.com/"
+SRC_URI="https://downloads.teeworlds.com/${P}-src.tar.gz"
+
+LICENSE="ZLIB"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="debug dedicated"
+
+RDEPEND="
+ !dedicated? (
+ app-arch/bzip2
+ media-libs/freetype
+ media-libs/libsdl[X,sound,opengl,video]
+ media-libs/pnglite
+ media-sound/wavpack
+ virtual/glu
+ virtual/opengl
+ x11-libs/libX11 )
+ sys-libs/zlib"
+DEPEND="${RDEPEND}
+ ${PYTHON_DEPS}
+ ~dev-util/bam-0.4.0"
+
+S=${WORKDIR}/${P}-src
+MY_PV=$(get_version_component_range 1-2)
+
+PATCHES=(
+ "${FILESDIR}/${MY_PV}/01-use-system-wavpack.patch"
+ "${FILESDIR}/${MY_PV}/02-fixed-wavpack-sound-loading.patch"
+ "${FILESDIR}/${MY_PV}/03-use-system-pnglite.patch"
+ "${FILESDIR}/${MY_PV}/04-dedicated.patch"
+ "${FILESDIR}/${MY_PV}/05-cc-cflags.patch"
+)
+
+pkg_setup() {
+ python-any-r1_pkg_setup
+}
+
+src_prepare() {
+ default
+
+ rm -r src/engine/external/* || die
+
+ cat <<- __EOF__ > "${S}/gentoo.lua"
+ function addSettings(settings)
+ print("Adding Gentoo settings")
+ settings.optimize = 0
+ settings.cc.exe_c = "$(tc-getCC)"
+ settings.cc.exe_cxx = "$(tc-getCXX)"
+ settings.cc.flags_c:Add("${CFLAGS}")
+ settings.cc.flags_cxx:Add("${CXXFLAGS}")
+ settings.link.exe = "$(tc-getCXX)"
+ settings.link.flags:Add("${LDFLAGS}")
+ end
+ __EOF__
+}
+
+src_configure() {
+ bam -v config || die
+}
+
+src_compile() {
+ local myopt
+
+ if use debug; then
+ myopt=" server_debug"
+ else
+ myopt=" server_release"
+ fi
+ if ! use dedicated; then
+ if use debug; then
+ myopt+=" client_debug"
+ else
+ myopt+=" client_release"
+ fi
+ fi
+
+ bam -v -a -j $(makeopts_jobs) ${myopt} || die
+}
+
+src_install() {
+ if use debug; then
+ newbin ${PN}_srv_d ${PN}_srv
+ else
+ dobin ${PN}_srv
+ fi
+ if ! use dedicated; then
+ if use debug; then
+ newbin ${PN}_d ${PN}
+ else
+ dobin ${PN}
+ fi
+
+ doicon "${FILESDIR}"/${PN}.xpm
+ make_desktop_entry ${PN} Teeworlds
+
+ insinto /usr/share/${PN}/data
+ doins -r data/*
+ else
+ insinto /usr/share/${PN}/data/maps
+ doins -r data/maps/*
+ fi
+ newinitd "${FILESDIR}"/${PN}-init.d ${PN}
+ insinto "/etc/${PN}"
+ doins "${FILESDIR}"/teeworlds_srv.cfg
+
+ dodoc readme.txt
+}
diff --git a/games-action/towbowl-tactics/Manifest b/games-action/towbowl-tactics/Manifest
new file mode 100644
index 000000000000..034d35f0bf9c
--- /dev/null
+++ b/games-action/towbowl-tactics/Manifest
@@ -0,0 +1,6 @@
+AUX towbowl-tactics-0.5-gentoo.patch 1731 SHA256 20b4a372aa98fe6e0838dbe8b516806a6ab02a49567ae50a7fc1fa1c74fcd0ff SHA512 3292a83b642f23f1549acdb53586a5ea0860b7ace4643cf42bb0248bdbf5a7c5b9f66fcd62e5d2432fb1ba5a029061215657a9d65932523e3dbd51f54843295d WHIRLPOOL f2032b7d866dfb628266889b9183a4f3e675437e74aae7b9dcfba72292a33c13ce696ec36132f13633e2eb8d04fa8a83bb00f6143f6fd7d2cc9f4eb3a4ac440d
+DIST tbt.0.5.src.zip 5321239 SHA256 a4640db7039d3ffd9e7a136cc81e33e3b090da03bb4daf6a2d908aec0d4b70b2 SHA512 930d7ba78210e0ad566989279e6d77235c61c641c18da36618de36fcd82d28dd8ca40516ce1384c2a000e4efe86584928cf9c7d2da5fb455f89d358653089f97 WHIRLPOOL 843bc36c5c3a7911d3529b3ca78d30fa483067646fd77e059cc92d0e334637b024a0ee1d50c8e66853c547ab10858a98977e0a7fff94e69966fa13c50224833c
+EBUILD towbowl-tactics-0.5.ebuild 1258 SHA256 f7850a82f57f28c0574957c331f4b78886de88bac147f425923baede824f25dc SHA512 f8669493a9687bf6b8e1d51b285f50da667d6f089938f03932d7ba0eb4f957f7bdf28aeb9a3acbd72d6ec92b48e60408919679c2a3eb7c65543d498825b35628 WHIRLPOOL 9f74b36187160be829b41f86a7acbc2701854414fcad3da8db449814fc5dc63c1ea1f3825e0b6770198600f7733670593309dab5df98a00adb6e3bbff15680b1
+MISC ChangeLog 2624 SHA256 05b4e14298a38d3c71cbfb14eb12bde704d6227195029cff62d56e6e032ab4a0 SHA512 c7d7a00229713be4b28d696b75be3d7210965e37a446df63d06c638b013b15e976476dacd48ae980a06fa17e251f13f5ae24e96b67c0bc01990925dbf07a409d WHIRLPOOL 9fbbbd2084f17a35649ca8cfb23a5801cbb94245eb01975fe85fb51d55f13adbee28502607039b472c9459fe3aee32ef3a66101ccf8cc6f1e9dfcfec764d65da
+MISC ChangeLog-2015 1408 SHA256 d6f6e69a959d40b22bc96d5a4983360d98b9fe5dc0688a759f08603b6152a073 SHA512 f4deb8f291d46dc3e40c7fb60b0971be3ff04f0239b577de0001efe4f494a4a4eef07d4b7d57b143890ce041590e73b1c5f3d52c714819d70ab3cb993eb62a69 WHIRLPOOL 59675dc808fec5b253b7e843e07d88c71c66fde4f76af7ca73d49c5f9b7b4735aac0d66910087be7c7ecc32940b4c83502aa24093f0425411a9b064e6df6cc49
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-action/towbowl-tactics/files/towbowl-tactics-0.5-gentoo.patch b/games-action/towbowl-tactics/files/towbowl-tactics-0.5-gentoo.patch
new file mode 100644
index 000000000000..aa6a950e9a07
--- /dev/null
+++ b/games-action/towbowl-tactics/files/towbowl-tactics-0.5-gentoo.patch
@@ -0,0 +1,42 @@
+diff -ru tbt.orig/config.xml tbt/config.xml
+--- tbt.orig/config.xml 2003-02-01 15:14:56.000000000 -0500
++++ tbt/config.xml 2011-01-10 12:08:01.564649048 -0500
+@@ -5,5 +5,5 @@
+ <screen_h>600</screen_h>
+ <sound_enabled>1</sound_enabled>
+ <video_enabled>1</video_enabled>
+-<language>0</language>
++<language>1</language>
+ </config>
+diff -ru tbt.orig/src/Makefile tbt/src/Makefile
+--- tbt.orig/src/Makefile 2003-02-01 15:07:40.000000000 -0500
++++ tbt/src/Makefile 2011-01-10 12:07:29.075274834 -0500
+@@ -1,24 +1,20 @@
+ TBTHOME = /usr/local/games/tbt
+ INCDIR = -I /usr/include/smpeg -I /usr/include/libxml2 -I /usr/include/SDL/
+-CFLAGS = -O2 -g -fno-strength-reduce -Wall -W -DTBTHOME=\"$(TBTHOME)\"
+-LFLAGS = -L. -lm -lSDL -lSDL_net -lSDL_image -lSDL_mixer -ldl -pthread -lxml2 -lsmpeg
+-CC = g++
++CXXFLAGS += -DTBTHOME=\"$(TBTHOME)\"
++LIBS = -lm -lSDL -lSDL_net -lSDL_image -lSDL_mixer -ldl -pthread -lxml2 -lsmpeg
+ SOURCES = movies.cpp sounds.cpp SFont.cpp Ball.cpp CON_console.cpp CON_consolecommands.cpp CON_internal.cpp Config.cpp Console.cpp DT_drawtext.cpp DialogBox.cpp Dice.cpp Formation.cpp Main.cpp MoviePlayer.cpp NetClient.cpp NetServer.cpp Network.cpp Path.cpp Player.cpp ProgressBar.cpp Public.cpp Screen.cpp Shared.cpp SoundPlayer.cpp Square.cpp State.cpp Team.cpp Transformation.cpp Translator.cpp XmlParser.cpp dir_func.cpp
+ OBJS = $(patsubst %.c,%.o,$(SOURCES:%.cpp=%.o))
+ PRGM = tbt
+
+ .SUFFIXES: .cpp .c
+
+-.c.o:
+- $(CC) -c $< $(CFLAGS) $(INCDIR) -o $@
+-
+ .cpp.o:
+- $(CC) -c $< $(CFLAGS) $(INCDIR) -o $@
++ $(CXX) -c $< $(CXXFLAGS) $(INCDIR) -o $@
+
+ all: $(PRGM)
+
+ $(PRGM): $(OBJS)
+- $(CC) $(OBJS) -o $(PRGM) $(LFLAGS)
++ $(CXX) $(OBJS) -o $(PRGM) $(LDFLAGS) $(LIBS)
+
+ clean:
+ -rm -f $(PRGM) *core *~ *.o
diff --git a/games-action/towbowl-tactics/metadata.xml b/games-action/towbowl-tactics/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-action/towbowl-tactics/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 type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/games-action/towbowl-tactics/towbowl-tactics-0.5.ebuild b/games-action/towbowl-tactics/towbowl-tactics-0.5.ebuild
new file mode 100644
index 000000000000..a940449a7064
--- /dev/null
+++ b/games-action/towbowl-tactics/towbowl-tactics-0.5.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="Tow Bowl Tactics is a game based on Games Workshop's Blood Bowl"
+HOMEPAGE="http://www.towbowltactics.com/index_en.html"
+SRC_URI="http://www.towbowltactics.com/download/tbt.${PV}.src.zip"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND="dev-libs/libxml2
+ media-libs/smpeg
+ media-libs/libsdl[sound,video]
+ media-libs/sdl-net
+ media-libs/sdl-image[jpeg,png]
+ media-libs/sdl-mixer"
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+S=${WORKDIR}/tbt/src
+
+src_prepare() {
+ cd ..
+ edos2unix $(find src -type f) config.xml
+ epatch "${FILESDIR}"/${P}-gentoo.patch
+ sed -i \
+ -e "/^TBTHOME/ s:/.*:${GAMES_DATADIR}/tbt:" \
+ src/Makefile || die
+ sed -i \
+ -e "/tbt.ico/ s:\"\./:TBTHOME \"/:" \
+ src/Main.cpp || die
+ sed -i \
+ -e "s:TBTHOME \"/config.xml:\"${GAMES_SYSCONFDIR}/tbt/config.xml:g" \
+ src/global.h || die
+}
+
+src_install() {
+ dogamesbin tbt
+ dodir "${GAMES_DATADIR}/tbt"
+ cp -r ../data ../tbt.ico "${D}${GAMES_DATADIR}/tbt" || die
+ insinto "${GAMES_SYSCONFDIR}/tbt"
+ doins ../config.xml
+ newicon ../data/images/panel/turn.png ${PN}.png
+ make_desktop_entry tbt "Tow Bowl Tactics"
+ prepgamesdirs
+}
diff --git a/games-action/transcend/Manifest b/games-action/transcend/Manifest
new file mode 100644
index 000000000000..7ae831f55e03
--- /dev/null
+++ b/games-action/transcend/Manifest
@@ -0,0 +1,7 @@
+AUX transcend-0.3-sound.patch 3101 SHA256 11e6ee4ec7c7e5bfaafee730aca28b36dd2c95d44211105d9ab3bbbeeb6d6151 SHA512 aa51287cb46fd55db9d7d213b135a099dd1d2cdf07f033143356571d06ad16dd8ba7dcd71b78e98430c9126ddcb5484fa63c82c9e26e1ca2d6de855cc55a293f WHIRLPOOL d47906808e5e27e9462e61e7086df8bb9ff37e81eefff0b97e41194f62b1e48093e6bd726e29e730d1ecdd5b8725fd4a587e82f1e37b8772b7fd8e5bd1ad7d97
+DIST Transcend_0.3_UnixSource.tar.gz 1847261 SHA256 46dae7cbd1b95c6865a664022ca804c462f1731c974882a527e43810e99fcd40 SHA512 5a2d21256c202ee045f8e2c926705f79885f6efbb5f44d3129e5b05cb1e28f909a32a5d873a9673d5fa48cbe4e79766c44947f147089e988e2fa3f83cde1b91d WHIRLPOOL 92c4ac48d5d6b8104fd4a975ed4f13a375296ce1227515e634f36f0fbf3bd7d446620c11f8662a9c24c123156fddcb40c007af988535da5bc27ca2ecbbcdc525
+EBUILD transcend-0.3-r1.ebuild 1360 SHA256 4585e988afdef6516274639772599792003491888ef252d23b7a41e6c51de4b6 SHA512 2f1415de806e104a0e69635b25b7c9549b7a7ec2349d5925fbd66bf23315751efcf431489c2931c0dc2585080249cce58e43e3aeabead00d417232ee8cae615b WHIRLPOOL 19d72899b8e1200cb426a4b784881f7099ea943fb2be86f142f6b2f8d221224ccce8b8a93cbbe8ffe66f592eea80a0ac9c8cf10f6c8fabc29d97c76c71492162
+EBUILD transcend-0.3.ebuild 1381 SHA256 b51271d6464abbe7169fdafc728707e05813352156df896ccdbd69c20f46d673 SHA512 9e1f6e00483928011f04a2d4f3599f20c14ac14267db6b932308ca0349e4ae4770d474e87292dd14ba824ec340f58ed58cd0e062a7f0c857a618790ad8b7c2b6 WHIRLPOOL 41b5d6f12c9764634f521a799871c347f1d8f1bc7aab7211bf0815a7badd178a9e119cd1c54555247e879f9a3d856adc5ffaaec9f9134635453001c08ac218b1
+MISC ChangeLog 2653 SHA256 ea9a5bcb93eb2e2ff9b4ba295ab681d4cd0f9f7999fdce38bb03f3e7b58aa54b SHA512 b49f3e3ff617e55ed44b0aa5378ccefdb130042d11e4d528afe8cbea67b9779a1f2b1d1ce395eb4149c2386b8af06222cbb01a56184dfedbf3667ed1e1a62f5f WHIRLPOOL 2a15bb7f730bb6cf39b83b4be5cdbce4ba81cf2b01fe3a5f2f696d9869e0802a8570772240f2073e8ddbd6dbba2ff88f5cf36d3c363756e06468bf5cabe34a51
+MISC ChangeLog-2015 1623 SHA256 2484bd7267964b4a0cec3f7bb022c3f52062f6960aa7f70b1cd26ebd98b5eb8e SHA512 c994a74e7d15e44b6520b5e7019abc9fce9c387ade2fdf6dde1f282da4749d13a73b0d085f6b227ff4ed76241ee00c12fcdd011cac16abddc9f4626a82d6e135 WHIRLPOOL 238e720fcce3c7f796b27251a653dcad37c85d93c31f11c4565ea1c71a89a87e20bcff94b9a6f866d1db655d7ad10a14edff563c94653818fd91b4b355347f02
+MISC metadata.xml 332 SHA256 7f79c72877bf0c1a0e2982acd92766eb36cd65aedc187ab673a1165e9bd95c57 SHA512 3af008eea1264d7db9571d88c2e63b767afb43881ab456844c448eedf9bf68577c4c0a27bb2559691b8c92482af38ead48036c8bd429df7489048053054ccdf9 WHIRLPOOL 02cd440e0420edd7e1381e7a6def441b21d61400badfcb1b51976d5edbc648f04c3555538c074f6e917e69f38b90a7a1a2c52e707790f133bbb5dbc1ba07b2f2
diff --git a/games-action/transcend/files/transcend-0.3-sound.patch b/games-action/transcend/files/transcend-0.3-sound.patch
new file mode 100644
index 000000000000..836cd03754ad
--- /dev/null
+++ b/games-action/transcend/files/transcend-0.3-sound.patch
@@ -0,0 +1,89 @@
+Author: Barry deFreese <bdefreese@debian.org>
+Description: Build with portaudio19.
+--- a/game/SoundPlayer.h
++++ b/game/SoundPlayer.h
+@@ -204,7 +204,7 @@
+ double mMusicLoudness;
+
+
+- PortAudioStream *mAudioStream;
++ PaStream *mAudioStream;
+
+ // realtime sounds that should be mixed into the next to-speaker call
+ SimpleVector<PlayableSound *> *mRealtimeSounds;
+--- a/game/SoundPlayer.cpp
++++ b/game/SoundPlayer.cpp
+@@ -47,9 +47,11 @@
+
+
+ // callback passed into portaudio
+-static int portaudioCallback( void *inputBuffer, void *outputBuffer,
++int portaudioCallback( const void *inputBuffer, void *outputBuffer,
+ unsigned long framesPerBuffer,
+- PaTimestamp outTime, void *userData ) {
++ const PaStreamCallbackTimeInfo *outTime,
++ PaStreamCallbackFlags statusFlags,
++ void *userData ) {
+
+
+ SoundPlayer *player = (SoundPlayer *)userData;
+@@ -147,21 +149,13 @@
+
+ if( error == paNoError ) {
+
+- error = Pa_OpenStream(
++ error = Pa_OpenDefaultStream(
+ &mAudioStream,
+- paNoDevice,// default input device
+ 0, // no input
+- paFloat32, // 32 bit floating point input
+- NULL,
+- Pa_GetDefaultOutputDeviceID(),
+ 2, // stereo output
+ paFloat32, // 32 bit floating point output
+- NULL,
+ mSampleRate,
+ 1024, // frames per buffer
+- 0, // number of buffers, if zero then use default minimum
+- paClipOff, // we won't output out of range samples so
+- // don't bother clipping them
+ portaudioCallback,
+ (void *)this ); // pass self-pointer to callback function
+
+Description: Link to dynamic portaudio instead of static.
+Author: Miriam Ruiz <miriam@debian.org>
+--- a/Makefile.GnuLinuxX86
++++ b/Makefile.GnuLinuxX86
+@@ -22,7 +22,7 @@
+
+ # pthread library needed for linux
+ # also need portaudio library (which in turn needs pthreads)
+-PLATFORM_LINK_FLAGS = -L/usr/X11R6/lib -lGL -lglut -lGLU -lX11 -lXi -lXext -lXmu ${ROOT_PATH}/Transcend/portaudio/lib/libportaudio.a -lpthread
++PLATFORM_LINK_FLAGS = -L/usr/X11R6/lib -lGL -lglut -lGLU -lX11 -lXi -lXext -lXmu $(shell pkg-config portaudio-2.0 --libs)
+
+
+ # All platforms but OSX support g++ and need no linker hacks
+--- a/game/SoundPlayer.h
++++ b/game/SoundPlayer.h
+@@ -46,8 +46,7 @@
+ #include "SoundFilter.h"
+ #include "PlayableSound.h"
+
+-#include "Transcend/portaudio/pa_common/portaudio.h"
+-#include "Transcend/portaudio/pablio/pablio.h"
++#include <portaudio.h>
+
+
+ #include "minorGems/util/SimpleVector.h"
+--- a/game/SoundPlayerActive.h
++++ b/game/SoundPlayerActive.h
+@@ -16,8 +16,7 @@
+
+ #include "SoundSamples.h"
+
+-#include "Transcend/portaudio/pa_common/portaudio.h"
+-#include "Transcend/portaudio/pablio/pablio.h"
++#include <portaudio.h>
+
+
+ #include "minorGems/util/SimpleVector.h"
diff --git a/games-action/transcend/metadata.xml b/games-action/transcend/metadata.xml
new file mode 100644
index 000000000000..af830ea1122e
--- /dev/null
+++ b/games-action/transcend/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">transcend</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-action/transcend/transcend-0.3-r1.ebuild b/games-action/transcend/transcend-0.3-r1.ebuild
new file mode 100644
index 000000000000..5f95cff17b5f
--- /dev/null
+++ b/games-action/transcend/transcend-0.3-r1.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils
+
+DESCRIPTION="Retro-style, abstract, 2D shooter"
+HOMEPAGE="http://transcend.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/Transcend_${PV}_UnixSource.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="
+ media-libs/freeglut
+ media-libs/portaudio
+ x11-libs/libXi
+ x11-libs/libXmu
+ virtual/glu
+ virtual/opengl"
+RDEPEND=${DEPEND}
+
+S=${WORKDIR}/Transcend_${PV}_UnixSource/Transcend
+
+# Apply patch from Debian in order to get sound working. bug #372413
+PATCHES=(
+ "${FILESDIR}"/${P}-sound.patch
+)
+
+src_prepare() {
+ default
+
+ rm -rf game/Makefile portaudio/ || die
+ sed \
+ -e '/^GXX=/d' \
+ -e 's/GXX/CXX/' \
+ -e '/^COMPILE_FLAGS =/ s/OPTIMIZE_FLAG/CXXFLAGS/' \
+ -e '/^EXE_LINK =/ s/LINK_FLAGS/LDFLAGS/' \
+ Makefile.GnuLinuxX86 \
+ Makefile.common \
+ Makefile.minorGems \
+ game/Makefile.all \
+ Makefile.minorGems_targets \
+ > game/Makefile || die
+ sed -i \
+ -e "s:\"levels\":\"/usr/share/${PN}/levels\":" \
+ game/LevelDirectoryManager.cpp \
+ game/game.cpp || die
+}
+
+src_configure() { :; }
+
+src_compile() {
+ emake -C game
+}
+
+src_install() {
+ newbin game/Transcend ${PN}
+ insinto /usr/share/${PN}
+ doins -r levels/
+ dodoc doc/{how_to_play.txt,changeLog.txt}
+ make_desktop_entry ${PN} "Transcend"
+}
diff --git a/games-action/transcend/transcend-0.3.ebuild b/games-action/transcend/transcend-0.3.ebuild
new file mode 100644
index 000000000000..48c39da3facf
--- /dev/null
+++ b/games-action/transcend/transcend-0.3.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="retro-style, abstract, 2D shooter"
+HOMEPAGE="http://transcend.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/Transcend_${PV}_UnixSource.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="x11-libs/libXmu
+ x11-libs/libXi
+ virtual/opengl
+ virtual/glu
+ media-libs/portaudio
+ media-libs/freeglut"
+RDEPEND=${DEPEND}
+
+S=${WORKDIR}/Transcend_${PV}_UnixSource/Transcend
+
+src_prepare() {
+ # apply patch from debian in order to get sound working. bug #372413
+ epatch "${FILESDIR}"/${P}-sound.patch
+ rm -rf game/Makefile portaudio/ || die
+ sed \
+ -e '/^GXX=/d' \
+ -e 's/GXX/CXX/' \
+ -e '/^COMPILE_FLAGS =/ s/OPTIMIZE_FLAG/CXXFLAGS/' \
+ -e '/^EXE_LINK =/ s/LINK_FLAGS/LDFLAGS/' \
+ Makefile.GnuLinuxX86 \
+ Makefile.common \
+ Makefile.minorGems \
+ game/Makefile.all \
+ Makefile.minorGems_targets \
+ > game/Makefile || die
+ sed -i \
+ -e "s:\"levels\":\"${GAMES_DATADIR}/${PN}/levels\":" \
+ game/LevelDirectoryManager.cpp \
+ game/game.cpp || die
+}
+
+src_configure() { :; }
+
+src_compile() {
+ emake -C game
+}
+
+src_install() {
+ newgamesbin game/Transcend ${PN}
+ insinto "${GAMES_DATADIR}/${PN}"
+ doins -r levels/
+ dodoc doc/{how_to_play.txt,changeLog.txt}
+ make_desktop_entry ${PN} "Transcend"
+ prepgamesdirs
+}
diff --git a/games-action/trine-bin/Manifest b/games-action/trine-bin/Manifest
new file mode 100644
index 000000000000..6f6c3990ff10
--- /dev/null
+++ b/games-action/trine-bin/Manifest
@@ -0,0 +1,6 @@
+DIST Trine.64.run 648471997 SHA256 1c9067cb19e3c954b460b4df27e6ca5d80b31c7ead49bd5779dcbce5528177db SHA512 400200a3ebc6003545df460f9a8af7fe4f6f370655432c66ca8a5ceb10e40bf205e81f70cfbe3fe7386de9ec0aeb5e23f02590776c2b0f35a32f9fbc1012ea3a WHIRLPOOL b6610f53e8e4079383de9a664b8cb019fbe9daa7cdbb204116c3e34b27327325dfdc39649185076524429f8ba2fc1a0889f9006e6873db65c3f73784f440e1e9
+EBUILD trine-bin-1.08-r1.ebuild 1633 SHA256 7e90a8c24b18c42c7e4e1cfc5f4153c84fbd92604bc270c1d72a104f28b8e788 SHA512 a1a5287a3590a08e95a728bbdc1d1f0ce94e37b4c4136803dea5ce051f018e7c21dcbfcc912068d76fa5081f340e48e6935cd51ea737cafea00661bfdf295f60 WHIRLPOOL a315207ee70a2d9d7e4c69dcc5803dad36d56263780363c260abe92eb606942f7807822de707e6309e1a2306d27202b051a7f22adefbe8052db49a2ffd81a8f2
+EBUILD trine-bin-1.08.ebuild 1667 SHA256 e723ef1b800933f218dd14f79169014070a4f1d34906d4039ed503b671c3fb2c SHA512 5e395ec3eba04aab6367b1fe6933b010060595593aa082d8e5f6820c538131d218a4c1fa796cc1df2a5ac196dbd9bcdc5de4260ac4feaf80e9586e3875b96ae7 WHIRLPOOL ee8aaf3b55de7d7955a4777be6feebf81f0c0790bf9910fb9b8433f11ec0a086fd9a8440ffc0333c9f2a09a49956e9a6837e8059fc4010e1bccc5dd52a321901
+MISC ChangeLog 2576 SHA256 bb3834e2df65d657a58083ed7114870fb7828d57d4e23d9d5b2a93354cd11e7c SHA512 b6a21c5e15bcb84953bee7fe4a403d10a3c78163c5d647226c53b8a1c3b02e6349403c72176e5c9ca6cb041cc10409f355f07f0b522bd90bdd690dff346fb154 WHIRLPOOL 1e033460af0b23fbf8ff6f7e8464ee869ef027fcc04e3e4ca73017e776c523e0a6fff14311fa94e8964fcaad02a62259530ebd24d31d5dc1a8ebf4f87f892948
+MISC ChangeLog-2015 701 SHA256 830412518c4a20979aa7eb1f0bed3bfd1b9b3f07272068d62c32c5d716b1a4c0 SHA512 39e2b1d2eafc790ee9a057a979fb27a1a705c0458f4d01a4dd89fe017a0b919e3d440f97a54389eba5099ba39ae1752f5b6c3b95616be61755e6953fc4bc36ca WHIRLPOOL 6ac8b8746899bda2426d8eeadc8e55118210e85f04fab5d1962fee2783d9327a3681f4fc3c34f396ae863b263327a8f3f42af312c7d1123244b7e7529d3b69e8
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-action/trine-bin/metadata.xml b/games-action/trine-bin/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-action/trine-bin/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 type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/games-action/trine-bin/trine-bin-1.08-r1.ebuild b/games-action/trine-bin/trine-bin-1.08-r1.ebuild
new file mode 100644
index 000000000000..2d39d775cb8e
--- /dev/null
+++ b/games-action/trine-bin/trine-bin-1.08-r1.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# these are ELFs that include a ZIP (504b0304) appended to it
+# dd if=Trine.64.run of=Trine.64.zip ibs=$((0x342a8)) skip=1
+# dd if=Trine.32.run of=Trine.32.zip ibs=$((0x31c24)) skip=1
+# but `unzip` will skip the ELF at the start. both ELFs contain
+# the same zip appended, so only need to hash one of them.
+
+EAPI=6
+inherit unpacker eutils
+
+DESCRIPTION="A physics-based action game where diff characters allow diff solutions to challenges"
+HOMEPAGE="http://trine-thegame.com/"
+SRC_URI="Trine.64.run"
+
+LICENSE="frozenbyte-eula"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE=""
+RESTRICT="fetch strip"
+
+DEPEND="app-arch/unzip"
+RDEPEND="
+ dev-libs/libx86
+ gnome-base/libglade
+ >=sys-devel/gcc-4.3.0
+ >=sys-libs/glibc-2.4"
+
+S=${WORKDIR}
+
+d=/opt/${PN}
+QA_PREBUILT="${d#/}/trine-launcher ${d#/}/trine-bin ${d#/}/lib*/lib*.so*"
+
+pkg_nofetch() {
+ einfo "Fetch ${SRC_URI} and put it into ${DISTDIR}"
+ einfo "See http://www.humblebundle.com/ for more info."
+}
+
+src_unpack() {
+ # manually run unzip as the initial seek causes it to exit(1)
+ unpack_zip ${A}
+ rm lib*/lib{gcc_s,m,rt,selinux}.so.? || die
+}
+
+src_install() {
+ local b bb
+ local sfx=$(usex x86 32 64)
+
+ doicon Trine.xpm
+ for b in bin launcher ; do
+ bb="trine-${b}"
+ exeinto ${d}
+ newexe ${bb}${sfx} ${bb}
+ make_wrapper ${bb} "./${bb}" "${d}"
+ make_desktop_entry ${bb} "Trine ${b}" Trine
+ done
+
+ exeinto ${d}/lib${sfx}
+ doexe lib${sfx}/*
+
+ insinto ${d}
+ doins -r binds config data dev profiles *.fbz *.glade trine-logo.png
+
+ dodoc Trine_Manual_linux.pdf Trine_updates.txt
+}
diff --git a/games-action/trine-bin/trine-bin-1.08.ebuild b/games-action/trine-bin/trine-bin-1.08.ebuild
new file mode 100644
index 000000000000..076c1d9893b8
--- /dev/null
+++ b/games-action/trine-bin/trine-bin-1.08.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# these are ELFs that include a ZIP (504b0304) appended to it
+# dd if=Trine.64.run of=Trine.64.zip ibs=$((0x342a8)) skip=1
+# dd if=Trine.32.run of=Trine.32.zip ibs=$((0x31c24)) skip=1
+# but `unzip` will skip the ELF at the start. both ELFs contain
+# the same zip appended, so only need to hash one of them.
+
+EAPI=5
+inherit unpacker eutils games
+
+DESCRIPTION="a physics-based action game where diff characters allow diff solutions to challenges"
+HOMEPAGE="http://trine-thegame.com/"
+SRC_URI="Trine.64.run"
+
+LICENSE="frozenbyte-eula"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE=""
+RESTRICT="fetch strip"
+
+DEPEND="app-arch/unzip"
+RDEPEND=">=sys-libs/glibc-2.4
+ >=sys-devel/gcc-4.3.0
+ dev-libs/libx86
+ gnome-base/libglade"
+
+S=${WORKDIR}
+
+d=${GAMES_PREFIX_OPT}/${PN}
+QA_PREBUILT="${d#/}/trine-launcher ${d#/}/trine-bin ${d#/}/lib*/lib*.so*"
+
+pkg_nofetch() {
+ einfo "Fetch ${SRC_URI} and put it into ${DISTDIR}"
+ einfo "See http://www.humblebundle.com/ for more info."
+}
+
+src_unpack() {
+ # manually run unzip as the initial seek causes it to exit(1)
+ unpack_zip ${A}
+ rm lib*/lib{gcc_s,m,rt,selinux}.so.?
+}
+
+src_install() {
+ local b bb
+ local sfx=$(usex x86 32 64)
+
+ doicon Trine.xpm
+ for b in bin launcher ; do
+ bb="trine-${b}"
+ exeinto ${d}
+ newexe ${bb}${sfx} ${bb}
+ games_make_wrapper ${bb} "./${bb}" "${d}"
+ make_desktop_entry ${bb} "Trine ${b}" Trine
+ done
+
+ exeinto ${d}/lib${sfx}
+ doexe lib${sfx}/*
+
+ insinto ${d}
+ doins -r binds config data dev profiles *.fbz *.glade trine-logo.png
+
+ dodoc Trine_Manual_linux.pdf Trine_updates.txt
+
+ prepgamesdirs
+}
diff --git a/games-action/trine2/Manifest b/games-action/trine2/Manifest
new file mode 100644
index 000000000000..f869ecd33dc3
--- /dev/null
+++ b/games-action/trine2/Manifest
@@ -0,0 +1,5 @@
+DIST trine2_linux_installer.run 1631149097 SHA256 39edf004fb4001360bb4b432cd365ab4b14350612e5632df789d568d682177e7 SHA512 d0c402f4f73f45290784c9414a5b59f89513b14bd09ade815d4456a77ae95909082e0a6a1afad198f6f58707a5d10eedbacd30d6cc5d063eabb702b03a7dc56e WHIRLPOOL 888073296772659c87d9955c14ac116c93bcf5da6ec2715e6a74b10520f2dcd94c5e50a794d0833f3242e3c47689f3f0042883b6673c6f8e0563fea829e06ad0
+EBUILD trine2-1.16-r1.ebuild 3228 SHA256 92fe09aaa17b9cfda2aff608622516c147ff612b8e1077296880e3ca50e508bf SHA512 cc0df4e8fd6d0ba5cca3146f31c497562ed4178f1ae07df341cbab04d9d787253f279a436f6f393aaed7713588cfccb6f89a75b48aad6869f7a8c3119276036c WHIRLPOOL dfe57dd85339a39231eaf6ad3182ca14a0f1df9d1319c59cd630552ad38e82411ef90fb908a93f635ea683be59ad6716f834e559a55dcdd3026fb07b6afaebdf
+MISC ChangeLog 3041 SHA256 ac3db9e42ee2a8b0e302f69a2220624d1a9baeb3013bb8628acdeb00566ff8de SHA512 e60b0e253ea5eb5e291a32d8017a678930d5a82c6d546b29ef18bc565f1083ce5c4c5f850bc8a7c9d3ffd73aacfdef3829eafd68066070362e04ba298e68dec6 WHIRLPOOL 5cd9c7cd14f28cef3894f3e4ba73caa1e5c2295d3a839d1e89eb8c19ca82081d9994b513a49f2439fead56fba989539a80c55d6718f1094bc68bf3e17b736be3
+MISC ChangeLog-2015 1505 SHA256 28b2607474e5dbdd230ab1943bce1890a15faf65b4b7ce2bd6bf503d5e99fc95 SHA512 71056061aa8ee5ea09a02ee70de0d2d0eca3297f5eeb8b4f674f06d250341759746f8ff43673e892fcbc19561570c37254b3e329d4956ab24745595a78d7109e WHIRLPOOL 3d058ae3217a8d38cb13fe405bcca7674685d1f704ba65f74950f07b95a06c7303beb381b85cb925c9a983f021607e88e43cae682ade07fd8faf67072df9393b
+MISC metadata.xml 379 SHA256 30182f8e0acd413d548effd18316a03cd4bee68b6483db9cf42fbe70f4a47c58 SHA512 666d5ad642fce9cd2e64e1ba63c89dd85fb1a0c9969916bf93a1421f3c9691a5b90b36d2778c41177c1fab5a1f8957adb757ab2d0fe034b7d9244d22f05f161a WHIRLPOOL 6fc1b3fe9760f4afd5c8b661fbf3aba2f2f140e794b4da1383dcd88d9f79c5cbdf75ee50a7e469bcbe9f25f128b1844c150d421391d168d1848b32c93e3c5357
diff --git a/games-action/trine2/metadata.xml b/games-action/trine2/metadata.xml
new file mode 100644
index 000000000000..cc071fac0574
--- /dev/null
+++ b/games-action/trine2/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <use>
+ <flag name="bundled-libs">Use bundled libraries.</flag>
+ <flag name="launcher">Install gtk+ launcher</flag>
+ </use>
+</pkgmetadata>
diff --git a/games-action/trine2/trine2-1.16-r1.ebuild b/games-action/trine2/trine2-1.16-r1.ebuild
new file mode 100644
index 000000000000..e80cc561e163
--- /dev/null
+++ b/games-action/trine2/trine2-1.16-r1.ebuild
@@ -0,0 +1,133 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils unpacker gnome2-utils games
+
+MY_PN="Trine 2"
+DESCRIPTION="A sidescrolling game of action, puzzles and platforming"
+HOMEPAGE="http://www.trine2.com/"
+SRC_URI="${PN}_linux_installer.run"
+
+LICENSE="all-rights-reserved"
+SLOT="0"
+KEYWORDS="-* amd64 x86"
+IUSE="bundled-libs +launcher"
+RESTRICT="fetch bindist splitdebug"
+
+QA_PREBUILT="${GAMES_PREFIX_OPT}/${PN}/${PN}*
+ ${GAMES_PREFIX_OPT}/${PN}/lib/*"
+
+# TODO: bundled-libs: no libsdl-1.3, no physx
+RDEPEND="
+ amd64? (
+ >=dev-libs/glib-2.34.3:2[abi_x86_32(-)]
+ >=sys-libs/zlib-1.2.8-r1[abi_x86_32(-)]
+ >=virtual/glu-9.0-r1[abi_x86_32(-)]
+ >=virtual/opengl-7.0-r1[abi_x86_32(-)]
+ >=media-libs/openal-1.15.1[abi_x86_32(-)]
+ >=media-libs/libogg-1.3.0[abi_x86_32(-)]
+ >=media-libs/libvorbis-1.3.3-r1[abi_x86_32(-)]
+ >=media-libs/freetype-2.5.0.1[abi_x86_32(-)]
+ launcher? (
+ >=media-libs/fontconfig-2.10.92[abi_x86_32(-)]
+ >=media-libs/libpng-1.5.18:1.5[abi_x86_32(-)]
+ >=x11-libs/gtk+-2.24.23:2[abi_x86_32(-)]
+ >=x11-libs/libSM-1.2.1-r1[abi_x86_32(-)]
+ >=x11-libs/libX11-1.6.2[abi_x86_32(-)]
+ >=x11-libs/libXinerama-1.1.3[abi_x86_32(-)]
+ >=x11-libs/libXxf86vm-1.1.3[abi_x86_32(-)]
+ )
+ !bundled-libs? (
+ >=media-gfx/nvidia-cg-toolkit-3.1.0013-r3[abi_x86_32(-)]
+ )
+ )
+ x86? (
+ dev-libs/glib:2
+ media-libs/freetype
+ media-libs/libogg
+ media-libs/libvorbis
+ media-libs/openal
+ sys-libs/zlib
+ virtual/glu
+ virtual/opengl
+ launcher? (
+ media-libs/fontconfig
+ media-libs/libpng:1.5
+ x11-libs/gtk+:2
+ x11-libs/libSM
+ x11-libs/libX11
+ x11-libs/libXinerama
+ x11-libs/libXxf86vm
+ )
+ !bundled-libs? ( media-gfx/nvidia-cg-toolkit )
+ )"
+
+S=${WORKDIR}
+
+pkg_nofetch() {
+ einfo
+ einfo "Please buy & download \"${SRC_URI}\" from:"
+ einfo " ${HOMEPAGE}"
+ einfo "and move/link it to \"${DISTDIR}\""
+ einfo
+}
+
+src_unpack() {
+ local offset="$(( $(grep -a -h -n -m 1 -F -e THIS_IS_THE_LAST_SCRIPT_LINE_ARCHIVE_DATA_FOLLOWS "${DISTDIR}"/${A} | cut -d':' -f1) + 1 ))"
+ unpack_makeself ${A} "${offset}" "tail"
+}
+
+src_install() {
+ local dir=${GAMES_PREFIX_OPT}/${PN}
+
+ insinto "${dir}"
+ doins -r data*
+
+ exeinto "${dir}"
+ newexe "bin/trine2_linux_32bit" ${PN}
+
+ exeinto "${dir}/lib"
+ use bundled-libs || { find lib/lib32 -type f -name "libCg*.so*" -delete || die ;}
+ doexe lib/lib32/*
+
+ games_make_wrapper ${PN} "./${PN}" "${dir}" "${dir}/lib"
+ doicon -s 64 ${PN}.png
+ make_desktop_entry ${PN} "${MY_PN}"
+
+ if use launcher ; then
+ exeinto "${dir}"
+ newexe bin/trine2_linux_launcher_32bit ${PN}-launcher
+
+ games_make_wrapper ${PN}-launcher "./${PN}-launcher" "${dir}" "${dir}/lib"
+ make_desktop_entry ${PN}-launcher "${MY_PN} (launcher)"
+
+ # launcher binary has hardcoded the script path
+ dodir "${dir}"/bin
+ dosym "${GAMES_BINDIR}"/trine2 "${dir}"/bin/trine2_bin_starter.sh
+ fi
+
+ dodoc KNOWN_LINUX_ISSUES README
+
+ prepgamesdirs
+}
+
+pkg_preinst() {
+ games_pkg_preinst
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+
+ einfo
+ elog "${MY_PN} savegames and configurations are stored in:"
+ elog " \${HOME}/.frozenbyte/${MY_PN//\ /}"
+ einfo
+
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/games-action/trosh/Manifest b/games-action/trosh/Manifest
new file mode 100644
index 000000000000..993a7e10879e
--- /dev/null
+++ b/games-action/trosh/Manifest
@@ -0,0 +1,6 @@
+DIST trosh-20.zip 5182303 SHA256 585342c1fd835017f83704be10a02151cfaafdae836ab89a5ffd0d7206b34465 SHA512 2a8988f5715340850a61acde54403c968947d41d5f0a1ac098c4cc3959f69f150cee567933fd5148a2c23c237210c10dc58005de1bd949d6db59cd794a0003ec WHIRLPOOL 0adbd2948162e177a64301021c5ddde19c7a88365b414019ffe4201a16b4ead614f4707dae370fbb195c98923cbdf0d01424c176a7726f6eb5d52ab05b5f544d
+DIST trosh.png 242 SHA256 567bf00d204e9de9c42a87fac040fdac2fcc17c114427c8175a3f859b455111f SHA512 85ff46c8c75b018a59a8e7dace85fc5ccf2439babedb0e4d134301eb9f7edfe5d7f4f3af1329f04257c16d978f27df38f10cb3ffbc4b424808a5f3c5c78bfc69 WHIRLPOOL 5831ffa87b90d3102c58fef94caff287ac727e7eda9b100ceff9d29a2a50c851e73126b7da28d8ae614887db40863c19f7136f44bb02398f0b92ed0d44ad226c
+EBUILD trosh-20.ebuild 980 SHA256 2937b24a0bc51058f59bf55081cc48efb8235c18aa260262546dd3372694c250 SHA512 7f87773f364b36c352ed27809a238ffa5bb5f474d587f07d4746c81f97ad41ea3ab9317f0c32a2fd299d1304093376f27ba13dbfca592183cc9ae9bd1cf8c9ec WHIRLPOOL 6ff64085e33961cc3dda7d11605e8e052276d4a720cab58bbd14fd1bb10a3ad3d9850a2fb4e572aa8edd5e5f2fbec79d65fe2ddd16e4aa5dfc766c9256994485
+MISC ChangeLog 2829 SHA256 5c8622e6861448b05f804a1c3e874f1d3b70c88be29ab5c988ace9f48e08cae4 SHA512 9be432a74fcd5067abec4ea0dacf924468fe2f865996e823f03ea7cf7334f29fdee9b8655313eb26e2300b2904863d668eee2d95367daa2bc9c9dfeab37f1b2e WHIRLPOOL 4616b64d202c2fc2a5bd28e6018bf347f9e87b2e454df09921e346e392b6e7e4ce58287a1bf4ee26d4eba60aff5f1b63796d1a44d21c3481d6f85fb81e886e30
+MISC ChangeLog-2015 643 SHA256 a9db68a26b284837697b949216436a2d4a97b451b5353c77a20978900014917d SHA512 1802e5b71b7c9bb61903c7a55e58a62ecb93e54b241b618f5b839e61d36e7657e655bfc4322f098851e76b437c5861f37dcf139273740bc324c7ab678f3b4cf9 WHIRLPOOL da79c1194b410433754dcc5c38bcc8da6a5d675e1f6303b7ff4f7ef49621569c2321df7268dbc3b74baf2b647147d5e7605b012658312632f7d47aa38989d28e
+MISC metadata.xml 253 SHA256 2c95b2eb99144a3b66de17be35eebcf65e5a152a2ec2f176165bb9cd78e5394e SHA512 61c4689cbc649d84a00be211b7b5b98dd03e1d3f813eff370df549f2998cd4343f391c18b57cf20e4a8f4dd2311e3bfa04eb60f356f2bbac78f0b68f5091f254 WHIRLPOOL fd044f0a960e57257f4a15ab16f066bbfe9983e60cd5fc072e631efc7027306c612a01d7fbbf57eb08d957487a7ce1961250194653d6ed87ee23f20d631ef854
diff --git a/games-action/trosh/metadata.xml b/games-action/trosh/metadata.xml
new file mode 100644
index 000000000000..26079e608bed
--- /dev/null
+++ b/games-action/trosh/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 type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/games-action/trosh/trosh-20.ebuild b/games-action/trosh/trosh-20.ebuild
new file mode 100644
index 000000000000..d151e8ebeb8e
--- /dev/null
+++ b/games-action/trosh/trosh-20.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils gnome2-utils games
+
+DESCRIPTION="A game made in 20 hours for a friend. It has explosions"
+HOMEPAGE="http://stabyourself.net/trosh/"
+SRC_URI="http://stabyourself.net/dl.php?file=trosh/trosh-linux.zip -> ${P}.zip
+ https://dev.gentoo.org/~hasufell/distfiles/${PN}.png"
+
+LICENSE="WTFPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+
+RDEPEND=">=games-engines/love-0.8.0
+ media-libs/devil[png]"
+DEPEND="app-arch/unzip"
+
+S=${WORKDIR}
+
+src_install() {
+ local dir=${GAMES_DATADIR}/love/${PN}
+
+ exeinto "${dir}"
+ doexe ${PN}.love
+
+ dodoc {LICENSE,readme}.txt README
+
+ doicon -s 32 "${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-action/tuxkart/Manifest b/games-action/tuxkart/Manifest
new file mode 100644
index 000000000000..4c4f7fad99cb
--- /dev/null
+++ b/games-action/tuxkart/Manifest
@@ -0,0 +1,6 @@
+DIST tuxkart-0.4.0.tar.gz 4932535 SHA256 2d9048435ac558debf92d430efa55ccf15c68e1253c97648babe67437ff82c12 SHA512 5c49b417a1e582d0151a79c0ee5f746ff22c118ce7ed6d243ae43c9d465cb23891736afd10db771cd1f133414f34fce7747e63dafbbe8ebe4f3997ab77ec31a9 WHIRLPOOL 518b0bc0b4457848f72ce75da8f1107d26e04314e4cb1bf165d0e38d2064735e2dd4fd741d4e3ee76606315d793535ad7837aed4fd52031429e206922a2a96f4
+EBUILD tuxkart-0.4.0-r1.ebuild 958 SHA256 39d6e4f96e6b00bbd8427dec2b18f932b5977932a196084d199fd79350af8647 SHA512 062fbd50900eefe69a79e741ede394c17d8e61e23dc34ca620340f69a955cda75876374aec907a32e8fe0aff890792e33ca5894a9b89d993ed2c59e0ebfd7686 WHIRLPOOL 82c7580562c47cc8da0448e32789ffb93ec4386b8b53b614e83d6586a210c303ee22ce7e2a8c0fbcbfd68a169c51c8942362c8b5d25239245ac467d716756bce
+EBUILD tuxkart-0.4.0.ebuild 1036 SHA256 dde3e7c79882bd07c304e1dc5e644e0af06a188372df827fdb83479550eaab58 SHA512 9db416a077507f038179ba901b967c51389c2043389ee1f45c2c4a7f5ad9ef8290ac6179fbe1c8f48fee6f3d3ebddb4192fcadab0119a3aa55b8b09d2180fdae WHIRLPOOL cc852ae05202c0f44f8f66f90a501584e7a43bb2a11dd67d043b1172e83f0a9751deecbcd24fb146fed288bd0e5ef1cb14de4075b59ace608a3b4a26a63b588f
+MISC ChangeLog 2568 SHA256 399a7df0065bf7aaf1124cdefa159b8777ace6151e9b0c8e5ce4e02e9c93c7d2 SHA512 70d4bee81d3d2b1796582ec9ebc4718f962743719ef09d86d0c85eafa5634f9a8e97d7a3a63a895835fcaccba0eba12f529b083c6f38c4ac70976ca153b1f134 WHIRLPOOL efba12bd4afab7e13dc73f3d9c5a7cbf4db17b6f5fc4a3a3a167de2c78903b2f93df172d7bf1d52b50eea3359d11df8e8dd44ea2d15201d771b993be0cb17b69
+MISC ChangeLog-2015 1770 SHA256 1c0fc395841d283f10db52e0ea9dd52aacb3057c77681d06d7dd98c84d4d5e35 SHA512 7a5565ee8f7feff24c43717e0f9dfca73e282f1ba5db6ce2409408ed06a2d2d058951ef9a45935b29f20f35a24d3d90cfe0a62a2e844cdf0d81454b1903533e6 WHIRLPOOL a8ec4ba2c0da65ac77f2abe34a49fa378b39d151daf43cb4e9d18d0f92a5c64f83ac8c4dac5d543a1d917bc52042a3e14dd5c7e361fb26db02438e40e207d4a4
+MISC metadata.xml 330 SHA256 7eff5b96ff45e0266eee8136c5b752de832353d9a3611e94edaaaee8be7df1a0 SHA512 c9f7ed02c9b379ea9a73974dcbf03d601ef34b58c8aa957167da59d223eaecb262fcaaa6042a8dd54bfac5397a60c1452ac5855c044e048e12f1c00fd9fe2df0 WHIRLPOOL 76e854cd45ef671139d9f53a4da950d56b9f5e053053bdd444b660b60cf05dfb47a0da8324ed6380b6ca93a8e75700e118d934191adb673022a8eef4bf537e52
diff --git a/games-action/tuxkart/metadata.xml b/games-action/tuxkart/metadata.xml
new file mode 100644
index 000000000000..36527bbe0db8
--- /dev/null
+++ b/games-action/tuxkart/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">tuxkart</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-action/tuxkart/tuxkart-0.4.0-r1.ebuild b/games-action/tuxkart/tuxkart-0.4.0-r1.ebuild
new file mode 100644
index 000000000000..4591388145c1
--- /dev/null
+++ b/games-action/tuxkart/tuxkart-0.4.0-r1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="A racing game starring Tux, the Linux penguin"
+HOMEPAGE="http://tuxkart.sourceforge.net/"
+SRC_URI="mirror://sourceforge/tuxkart/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=media-libs/plib-1.8.0
+ x11-libs/libX11
+ x11-libs/libICE
+ x11-libs/libSM
+ x11-libs/libXext
+ x11-libs/libXi
+ x11-libs/libXmu
+ virtual/opengl"
+DEPEND="${RDEPEND}
+ x11-libs/libXt"
+
+src_prepare() {
+ default
+
+ # apparently <sys/perm.h> doesn't exist on alpha
+ if use alpha; then
+ sed -i \
+ -e '/#include <sys\/perm.h>/d' src/gfx.cxx || die
+ fi
+ sed -i \
+ -e "/^plib_suffix/ s/-lplibul/-lplibul -lplibjs/" \
+ -e "s/-malign-double//; s/-O6//" configure || die
+ sed -i \
+ -e "/^bindir/s/=.*/=@bindir@/" src/Makefile.in || die
+}
+
+src_install() {
+ default
+ dodoc doc/*.html
+ rm -rf "${D}/usr/share/tuxkart/" || die
+}
diff --git a/games-action/tuxkart/tuxkart-0.4.0.ebuild b/games-action/tuxkart/tuxkart-0.4.0.ebuild
new file mode 100644
index 000000000000..bf20f3590cea
--- /dev/null
+++ b/games-action/tuxkart/tuxkart-0.4.0.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit games
+
+DESCRIPTION="A racing game starring Tux, the linux penguin"
+HOMEPAGE="http://tuxkart.sourceforge.net/"
+SRC_URI="mirror://sourceforge/tuxkart/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 x86"
+IUSE=""
+
+RDEPEND=">=media-libs/plib-1.8.0
+ x11-libs/libX11
+ x11-libs/libICE
+ x11-libs/libSM
+ x11-libs/libXext
+ x11-libs/libXmu
+ x11-libs/libXi
+ virtual/opengl"
+DEPEND="${RDEPEND}
+ x11-libs/libXt"
+
+src_prepare() {
+ # apparently <sys/perm.h> doesn't exist on alpha
+ if use alpha; then
+ sed -i \
+ -e '/#include <sys\/perm.h>/d' src/gfx.cxx || die
+ fi
+ sed -i \
+ -e "/^plib_suffix/ s/-lplibul/-lplibul -lplibjs/" \
+ -e "s/-malign-double//; s/-O6//" configure || die
+ sed -i \
+ -e "/^bindir/s/=.*/=@bindir@/" src/Makefile.in || die
+}
+
+src_configure() {
+ egamesconf --datadir="${GAMES_DATADIR_BASE}"
+}
+
+src_install() {
+ default
+ dohtml doc/*.html
+ rm -rf "${D}/usr/share/tuxkart/"
+
+ prepgamesdirs
+}
diff --git a/games-action/violetland/Manifest b/games-action/violetland/Manifest
new file mode 100644
index 000000000000..03301ba85e3e
--- /dev/null
+++ b/games-action/violetland/Manifest
@@ -0,0 +1,6 @@
+AUX violetland-0.4.3-boost150.patch 1431 SHA256 48ed266e255edc85ed374506188470bbc525b871e2d60e0070d8bf2869f77b60 SHA512 1cff30cc2cab843f52b37bf3e5d52de0fdc81f1a24c713a133d557cc72fbd050ff4512a71badb9f3d536838fccbe6e737719ae87345f2dcc7f719433eecd1d58 WHIRLPOOL 1d8e7a40a182402e30b1732c31ad8b5ff09989acc2491c533cf7430b515ab716d8435239cb4dd3e865c138c02329933e7535d9026e08ac426c9779054bf63944
+DIST violetland-0.4.3.tar.gz 9257919 SHA256 678996c02ba780f6cb4199e7d85e508c6c86dd8d3793b9ff9618f1cc7c7755ad SHA512 678e1aea42c9358794c6b8b83bdd113baf26e16db4cb815c756cb6c1d268b8210d18a47d1a98a019556633b4db62cd8cf7fc6a1e1ec3b7e3647a9d8353020fae WHIRLPOOL eaaea512ea6ff16d8d312182d981516da7420d05f8541ba7d0ab2e50b1960ed2956e018c3a7afcadc0125f57996c0db6b0e238de50a00b0f4e7ebbb8dc6afaa3
+EBUILD violetland-0.4.3-r1.ebuild 1053 SHA256 af92f8b2b13681b8f0296465540a7353d85b753e217bde507a1edaa9a9c354d8 SHA512 b518e230acc0520b62e93d05956236bbbfe071062381137488da1d683fadd052f336644eeb7e05845faab9e31295d450ad3073c2649f19fc20e132d0376f6bbd WHIRLPOOL 003f5ac4ca97826a5aa7b1e5a4edf6898c44fb992d6a8f1b7c2651c14560626a3360c202a5dfd0f12286d4b1a3f450b2e3a50919036672bbbd92301643278d16
+MISC ChangeLog 2806 SHA256 77cbd331fc9959732834b768c2b92915f4a1aa2d43c6cd06cde79b39fa96d976 SHA512 bdb60bb1872d33b7d8eaa4cd6de2a7ba8faf9ee75ec7a7b0fbc207a5ad946511b7103ccfbca27b5c9252626e1be4f97c93950e8de8cdfe6888d06db7a3994e07 WHIRLPOOL 022962341cc13d905614513a10c71062f335027c5aceebef35f83a0a1d5f79c20d9235bd58c7a620c39bb507538c5ed2ea0153b619ed2fca3fd38afa3561b2d2
+MISC ChangeLog-2015 4452 SHA256 ed0d85ec6afbdcfd8455731f879b974720938b286fec991b89a1bab21841baa5 SHA512 54aa697a8180493470d1b709c52702b336b8cdbadbca12c651134856bc2e63d1cd651e02e20a38b8b2fc5aecede387cb95fa0c1f30e559add0db81621c2fd294 WHIRLPOOL 84c31a42b7f0667caeced2c719e1ac6ad111b779f84a9c68ab9f3ab3f586d915bde1baf161a1c593bd820b99867512587363a90d976270a095315412fb24900a
+MISC metadata.xml 328 SHA256 a3e2879c174d70bd0d86a5b6cc84e385708d50c1a03a18c166b2bf5d4c078132 SHA512 b19362a0378f6fe898217e14002f5d55c16f79924e2b152e16224c7873cb5910e343e0d2be6a31767f26c51a354c050d42175dfbbe428911b6985c0495ad9f5f WHIRLPOOL 4d3020e9062fa70c5679673b2b949db3be1c619ada98910ba10547d26eee396aae949902dbd0e8979b9c3470e8e9af62b169ebb52ff6dd97bf450a2de8a2f2be
diff --git a/games-action/violetland/files/violetland-0.4.3-boost150.patch b/games-action/violetland/files/violetland-0.4.3-boost150.patch
new file mode 100644
index 000000000000..5ddd5e8445b8
--- /dev/null
+++ b/games-action/violetland/files/violetland-0.4.3-boost150.patch
@@ -0,0 +1,41 @@
+--- a/CMakeLists.txt 2012-11-05 15:19:11.501044743 +0100
++++ b/CMakeLists.txt 2012-11-05 15:19:25.415250207 +0100
+@@ -8,7 +8,6 @@
+ find_package(SDL_mixer REQUIRED)
+ find_package(OpenGL REQUIRED)
+ find_package(Boost COMPONENTS filesystem system REQUIRED)
+-add_definitions(-DBOOST_FILESYSTEM_VERSION=2)
+
+ if(${MINGW})
+ set(INTL_LIBRARY intl)
+--- a/src/system/utility/FileUtility.cpp 2012-11-05 21:26:07.865488297 +0100
++++ b/src/system/utility/FileUtility.cpp 2012-11-05 21:30:44.881208230 +0100
+@@ -20,7 +20,7 @@
+
+ while (dir_it != boost::filesystem::directory_iterator()) {
+ if (boost::filesystem::is_regular_file(*dir_it))
+- files.push_back(dir_it->filename());
++ files.push_back(dir_it->path().filename().string());
+ ++dir_it;
+ }
+ return files;
+@@ -32,8 +32,8 @@
+
+ while (dir_it != boost::filesystem::directory_iterator()) {
+ if (boost::filesystem::is_directory(*dir_it))
+- if (dir_it->path().filename()[0] != '.')
+- subDirs.push_back(dir_it->path().filename());
++ if (dir_it->path().filename().string()[0] != '.')
++ subDirs.push_back(dir_it->path().filename().string());
+ ++dir_it;
+ }
+ return subDirs;
+@@ -45,7 +45,7 @@
+
+ while (dir_it != boost::filesystem::directory_iterator()) {
+ if (boost::filesystem::is_directory(*dir_it))
+- if (dir_it->path().filename()[0] != '.')
++ if (dir_it->path().filename().string()[0] != '.')
+ ++count;
+ ++dir_it;
+ }
diff --git a/games-action/violetland/metadata.xml b/games-action/violetland/metadata.xml
new file mode 100644
index 000000000000..21c980e6339f
--- /dev/null
+++ b/games-action/violetland/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">violetland</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-action/violetland/violetland-0.4.3-r1.ebuild b/games-action/violetland/violetland-0.4.3-r1.ebuild
new file mode 100644
index 000000000000..0611b91d5ba7
--- /dev/null
+++ b/games-action/violetland/violetland-0.4.3-r1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils cmake-utils
+
+DESCRIPTION="Help a girl named Violet in the struggle with hordes of monsters"
+HOMEPAGE="https://code.google.com/p/violetland/"
+SRC_URI="https://github.com/ooxi/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3 CC-BY-SA-3.0"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND="
+ dev-libs/boost:=[threads(+)]
+ media-libs/libsdl[sound,video]
+ media-libs/sdl-image[png]
+ media-libs/sdl-mixer[vorbis]
+ media-libs/sdl-ttf
+ virtual/glu
+ virtual/opengl"
+DEPEND="${RDEPEND}"
+
+PATCHES=( "${FILESDIR}"/${P}-boost150.patch )
+
+src_prepare() {
+ cmake-utils_src_prepare
+
+ sed -i \
+ -e "/README_EN.TXT/d" \
+ -e "/README_RU.TXT/d" \
+ CMakeLists.txt || die "sed failed"
+ rm README_RU.TXT || die
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DDATA_INSTALL_DIR=share/${PN}
+ )
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ newicon icon-light.png ${PN}.png
+ make_desktop_entry ${PN} VioletLand
+}
diff --git a/games-action/wordwarvi/Manifest b/games-action/wordwarvi/Manifest
new file mode 100644
index 000000000000..6e73ed543583
--- /dev/null
+++ b/games-action/wordwarvi/Manifest
@@ -0,0 +1,7 @@
+AUX wordwarvi-1.00-sound.patch 2869 SHA256 36f8b038927784f46aec2e98e0bb880a8a5ad2171d33c8f7dc31e50497a6f394 SHA512 df90b18dedb7280e3789c276411e3d11c7b5096906d53ba3f16cbc297f939116a030898d00c87f8e8b5d3dcf08910ab249f62d7b99feeb881960f8742a4c1878 WHIRLPOOL 38cc2942f62cc763323c24319efdc56c2367ed09a0dcebe930ac0ff4928853519bf7bcb7cdf0ac53fc49fbad21592efd64afec9100a0e013d159b5c1663bc771
+DIST wordwarvi-1.00.tar.gz 8828099 SHA256 7aa668b18096e85583ee0cfa1e21316b6754268df564adb4ff6ae8a8fe791ee9 SHA512 e8f8609300fa2f9bd2ff763fee11699c5f30e96ccb3a5d531456134e983148227bb12fb6421b4ad00bcac46cddcdb5a036d416b8e55aedf037d1c3f0b5e04fa9 WHIRLPOOL 66000d4af4ac769cd7830d9291d38d30748eb4ad55700fd7b53391b522237c681e5563acfa7e1404d98148688eca8e7f255a6f97b55bfb0950c2a0ab39172fa3
+EBUILD wordwarvi-1.00-r1.ebuild 1239 SHA256 c0c201fa537607fdebed85b8b5d7ba898e02d640c9e02f69c6db4cd45480cbb6 SHA512 133c80268c899eaff58cc8c5a36ef3d5eaa74b4db797836d7278d43001c74c0dac8e418b9f2c5ae9ae25a633dd932c2f4daa2ceb9ce6a02b85458ce5bff9d7ec WHIRLPOOL 0b432620717acd1a428bee8f01146db37502f78e5bcee7f3a4a0f7aa103f2e3bf1bcac6ada5da1a43b0defb9b7715a67660b108eb64e93bcfaa97b6a329c9c77
+EBUILD wordwarvi-1.00.ebuild 1264 SHA256 9348ea2865cf17d3ae22191058881556bd0b501c2ab70fc9dbffaf945cb1fa43 SHA512 4dd3af27b6e7507639fb5db0cb1d529099ea8dba2c7d7678e6e5e9a3d19e9080e58124dcae518208a5f8e3578bfe466d3f99eb59baacd69fae7dcff0f761753a WHIRLPOOL 4d67c975328ad9fc14f14eaf8d24292c24d5dfb33b75fe64024e679d0aa74ff6c534ed08807fa7b3857028b1aa172b1ddf576867d9fedde27be473cc99e61bc6
+MISC ChangeLog 2608 SHA256 74db1bfd153fe7f168dfea0f1b2a487763a20e6866c5a9b8cd9ba197c4867d72 SHA512 def6c02729393014ccb8cf4f338de4a97032e2eefc2460efbc682189dd03165c9560dfbd2d6c440b3133ea2f6540502e62f71b82e8afca7c73be94fe5e31c430 WHIRLPOOL c5343abf48e3f65958ef73f1e53ee453159f859f8a05976ef48e2f677afe818155afa20d77ff210aa0fe533a9ee3d44bfa328b5a9ff041557debfc6f36e92e60
+MISC ChangeLog-2015 1985 SHA256 0ebe033aafe31809066afc05808e954b98f5c665eeb900ced3bd4aff58fd8c45 SHA512 46fd29172f1c5049014a02e7f53740208b3b6237342b3d9069d7f34ce936362e6697438c972d0185e3a2f0d12ffc7b5c61af461f916723316bb95abd37c27cf6 WHIRLPOOL 296432e318fccf584adb29e74ed80d605b8a53b0a3bc21ec76d0c880ba1db19d354eba02baf79626a216908ca943741d6b4c51addf0e74321b0493baf42274eb
+MISC metadata.xml 332 SHA256 451f3b404114d4c49d8b3b4c7a22bda681931f989da91230b395f13ae8435c6a SHA512 50b4b9f74a0629d49db7c041b965ae31b425803b667be69e5304ce8df2e49dca66d923f44df209ca02299ac088728d059724ff1ea325a2bb249a49a520037efe WHIRLPOOL 9428b6f549a794aa0db6992db9014702040ae2ab0945c114e3084092d4cee85a2b9ad2714ac3e3de46e27ef72a9951be8a3e43865fb7890501d734ea43823d8b
diff --git a/games-action/wordwarvi/files/wordwarvi-1.00-sound.patch b/games-action/wordwarvi/files/wordwarvi-1.00-sound.patch
new file mode 100644
index 000000000000..5ad7bc8440b9
--- /dev/null
+++ b/games-action/wordwarvi/files/wordwarvi-1.00-sound.patch
@@ -0,0 +1,80 @@
+diff -ru wordwarvi-1.00.orig/Makefile wordwarvi-1.00/Makefile
+--- wordwarvi-1.00.orig/Makefile 2011-06-09 00:06:22.000000000 -0400
++++ wordwarvi-1.00/Makefile 2011-06-11 19:57:55.609619777 -0400
+@@ -1,5 +1,5 @@
+ PREFIX=/usr
+-DATADIR=${PREFIX}/share/wordwarvi
++DATADIR?=${PREFIX}/share/wordwarvi
+ MANDIR?=${PREFIX}/share/man
+ MANPAGEDIR=${MANDIR}/man6
+
+@@ -24,18 +24,6 @@
+ CC ?= gcc
+ BUILD_CC ?= gcc
+
+-# DEBUG=-g
+-# DEBUG=
+-# PROFILE_FLAG=-pg
+-#PROFILE_FLAG=
+-#OPTIMIZE_FLAG=
+-# OPTIMIZE_FLAG=-O3
+-#OPTIMIZE_FLAG=-O3 -pedantic -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
+-OPTIMIZE_FLAG=-O3 -pedantic
+-
+-
+-LDFLAGS=${PROFILE_FLAG}
+-
+ DEFINES=${SNDFLAGS} -DDATADIR=\"${DATADIR}/\"
+
+ all: wordwarvi wordwarvi.6.gz
+@@ -53,24 +41,24 @@
+ endif
+
+ joystick.o: joystick.c joystick.h Makefile
+- $(CC) ${DEBUG} ${PROFILE_FLAG} ${OPTIMIZE_FLAG} -pthread -Wall -c joystick.c
++ $(CC) ${DEBUG} ${PROFILE_FLAG} ${CFLAGS} -pthread -Wall -c joystick.c
+
+ ogg_to_pcm.o: ogg_to_pcm.c ogg_to_pcm.h Makefile
+- $(CC) ${DEBUG} ${PROFILE_FLAG} ${OPTIMIZE_FLAG} `pkg-config --cflags vorbisfile` \
++ $(CC) ${DEBUG} ${PROFILE_FLAG} ${CFLAGS} `pkg-config --cflags vorbisfile` \
+ -pthread -Wall -c ogg_to_pcm.c
+
+ wwviaudio.o: wwviaudio.c wwviaudio.h ogg_to_pcm.h my_point.h Makefile
+- $(CC) -Wall ${DEBUG} ${PROFILE_FLAG} ${OPTIMIZE_FLAG} \
++ $(CC) -Wall ${DEBUG} ${PROFILE_FLAG} ${CFLAGS} \
+ ${DEFINES} \
+ -pthread `pkg-config --cflags vorbisfile` \
+ -c wwviaudio.c
+
+ rumble.o: rumble.c rumble.h Makefile
+- $(CC) ${DEBUG} ${PROFILE_FLAG} ${OPTIMIZE_FLAG} `pkg-config --cflags vorbisfile` \
++ $(CC) ${DEBUG} ${PROFILE_FLAG} ${CFLAGS} `pkg-config --cflags vorbisfile` \
+ -pthread -Wall -c rumble.c
+
+ wwvi_font.o: wwvi_font.c wwvi_font.h my_point.h Makefile
+- $(CC) ${DEBUG} ${PROFILE_FLAG} ${OPTIMIZE_FLAG} -pthread -Wall -c wwvi_font.c
++ $(CC) ${DEBUG} ${PROFILE_FLAG} ${CFLAGS} -pthread -Wall -c wwvi_font.c
+
+ stamp: stamp.c
+ $(BUILD_CC) -o stamp stamp.c
+@@ -78,7 +66,7 @@
+ wordwarvi: wordwarvi.c joystick.o rumble.o ${OGGOBJ} wwviaudio.o wwvi_font.o \
+ Makefile version.h stamp levels.h rumble.h
+ ./stamp > stamp.h
+- $(CC) ${DEBUG} ${PROFILE_FLAG} ${OPTIMIZE_FLAG} ${SCREENSAVERFLAG} -pthread -Wall ${DEFINES} \
++ $(CC) $(LDFLAGS) ${DEBUG} ${PROFILE_FLAG} ${CFLAGS} ${SCREENSAVERFLAG} -pthread -Wall ${DEFINES} \
+ joystick.o \
+ rumble.o \
+ wwvi_font.o \
+diff -ru wordwarvi-1.00.orig/wwviaudio.c wordwarvi-1.00/wwviaudio.c
+--- wordwarvi-1.00.orig/wwviaudio.c 2011-06-09 00:06:22.000000000 -0400
++++ wordwarvi-1.00/wwviaudio.c 2011-06-11 19:57:17.394274660 -0400
+@@ -121,7 +121,7 @@
+ if (clipnum >= max_sound_clips || clipnum < 0)
+ return -1;
+
+- snprintf(filebuf, PATH_MAX, "%s/%s", DATADIR, filename);
++ snprintf(filebuf, PATH_MAX, "GENTOO_DATADIR/%s", DATADIR, filename);
+ rc = stat(filebuf, &statbuf);
+ if (rc != 0) {
+ strncpy(filebuf, filename, PATH_MAX);
diff --git a/games-action/wordwarvi/metadata.xml b/games-action/wordwarvi/metadata.xml
new file mode 100644
index 000000000000..594ad45f07b0
--- /dev/null
+++ b/games-action/wordwarvi/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">wordwarvi</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-action/wordwarvi/wordwarvi-1.00-r1.ebuild b/games-action/wordwarvi/wordwarvi-1.00-r1.ebuild
new file mode 100644
index 000000000000..df7ee9102eb8
--- /dev/null
+++ b/games-action/wordwarvi/wordwarvi-1.00-r1.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils
+
+DESCRIPTION="A retro side-scrolling shoot'em up based on the editor war story"
+HOMEPAGE="http://wordwarvi.sourceforge.net"
+SRC_URI="mirror://sourceforge/wordwarvi/${P}.tar.gz"
+
+LICENSE="GPL-2 CC-BY-2.0 CC-BY-SA-3.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="portaudio"
+
+RDEPEND="x11-libs/gtk+:2
+ portaudio? ( media-libs/libvorbis
+ >=media-libs/portaudio-19_pre1 )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-sound.patch
+)
+
+src_prepare() {
+ default
+
+ sed -i \
+ -e "/^WITHAUDIO/s/yes/$(use portaudio && echo yes || echo no)/" \
+ Makefile || die
+ sed -i \
+ -e "s:GENTOO_DATADIR:/usr/share/${PN}:" \
+ wwviaudio.c || die
+}
+
+src_compile() {
+ emake \
+ PREFIX="/usr" \
+ DATADIR="/usr/share/${PN}" \
+ MANDIR="/usr/share/man"
+}
+
+src_install() {
+ emake \
+ DESTDIR="${D}" \
+ PREFIX="/usr" \
+ DATADIR="/usr/share/${PN}" \
+ MANDIR="/usr/share/man" \
+ install
+
+ if ! use portaudio ; then
+ rm -rf "${D}/usr/share" || die
+ fi
+
+ dodoc README AUTHORS changelog.txt AAA_HOW_TO_MAKE_NEW_LEVELS.txt
+ newicon icons/wordwarvi_icon_128x128.png ${PN}.png
+ make_desktop_entry ${PN} "Word War vi"
+}
diff --git a/games-action/wordwarvi/wordwarvi-1.00.ebuild b/games-action/wordwarvi/wordwarvi-1.00.ebuild
new file mode 100644
index 000000000000..0e0dddb230e7
--- /dev/null
+++ b/games-action/wordwarvi/wordwarvi-1.00.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="A retro side-scrolling shoot'em up based on the editor war story"
+HOMEPAGE="http://wordwarvi.sourceforge.net"
+SRC_URI="mirror://sourceforge/wordwarvi/${P}.tar.gz"
+
+LICENSE="GPL-2 CC-BY-2.0 CC-BY-SA-3.0"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="portaudio"
+
+RDEPEND="x11-libs/gtk+:2
+ portaudio? ( media-libs/libvorbis
+ >=media-libs/portaudio-19_pre1 )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-sound.patch
+ sed -i \
+ -e "/^WITHAUDIO/s/yes/$(use portaudio && echo yes || echo no)/" \
+ Makefile || die
+ sed -i \
+ -e "s:GENTOO_DATADIR:${GAMES_DATADIR}/${PN}:" \
+ wwviaudio.c || die
+}
+
+src_compile() {
+ emake \
+ PREFIX="${GAMES_PREFIX}" \
+ DATADIR="${GAMES_DATADIR}/${PN}" \
+ MANDIR="/usr/share/man"
+}
+
+src_install() {
+ emake \
+ DESTDIR="${D}" \
+ PREFIX="${GAMES_PREFIX}" \
+ DATADIR="${GAMES_DATADIR}/${PN}" \
+ MANDIR="/usr/share/man" \
+ install
+ use portaudio || rm -rf "${D}${GAMES_DATADIR}"
+ dodoc README AUTHORS changelog.txt AAA_HOW_TO_MAKE_NEW_LEVELS.txt
+ newicon icons/wordwarvi_icon_128x128.png ${PN}.png
+ make_desktop_entry ${PN} "Word War vi"
+ prepgamesdirs
+}
diff --git a/games-action/xblast/Manifest b/games-action/xblast/Manifest
new file mode 100644
index 000000000000..edc1d9ba718c
--- /dev/null
+++ b/games-action/xblast/Manifest
@@ -0,0 +1,11 @@
+DIST images-2005-01-06.tar.gz 860830 SHA256 24b627af1d4884fa39cbfb4ad2d953661aa5283f96ee678137ba554b67423542 SHA512 7254acc664997af5dae8c906a7b90570103c17295e463e8c313f5531810734241fa6485625a7a48a4859f92dbbf2b94332348a1bc85c8930ad6688e5f56be588 WHIRLPOOL cb909a564aa467b9e782d70bd8ae02f9ba4ff13e61c789bc26a26c9fdc27e32d01a1b74d7826d806a5d9bddc6b7c7dad2a09e2a161c89fbe32ced1671282a637
+DIST levels-2005-01-06.tar.gz 283353 SHA256 af145dcb40c94e07953f3a12adf2ab67411428b31a0446df3df7c91d5f26075a SHA512 ece07564fbdf6c21b3b65f3345929c65612f3bf8ed17d4d78e1fe1e2c25f83eb174a086c66fcb891c173f56a24625f8a53623beaaea7013e536f577380680031 WHIRLPOOL b8eade12ef1993852e5c13e24b8b3da3ba89c774c34476a797fc17552fba6c6c2b0d8a2d4812c979d50d2a065a5d9c20ddead8b2bb4bb520d56a34273115ca34
+DIST models-2005-01-06.tar.gz 1738564 SHA256 daed0d50c0371afe187159c7692d7d26d124e80e9c3208043d83a5b6ca610f77 SHA512 20925bf6b0a5bde43df6bab86078e6b7e550a79d1695e3d076254deb3ba556f2c09afa5847c0b3a12f09f3b4386df2da8256cad09c0ea07d9937b98e0c3438b8 WHIRLPOOL 611d667c196e3ece9fe9a6ab4c5efd3db3b796be40f3e2a82da1979731ce664e76bb8f93d4b1378bf903d1f63b43720daf34eb0ddcbdd5c8334431d7a44a50a3
+DIST musics-2005-01-06.tar.gz 5317575 SHA256 42a45b074925755d7d2a0effb9a59e9e3874f92a7aa9e10bb90f98eeb11cbc61 SHA512 885591cf5f32d76bc5bae150b24592c8eccd6f33afa5d40570429371b328671c3902c565446dae24bf949ac67b681e39e46e8d4ea737f52c66d467c09a210ede WHIRLPOOL 99aae8691d3f36ab086978f5b34ad43d120327dcd0a9f4c649adae0e86b53349eb19d8f8632dd50d83aaa5bc15c083590319fc77ab7d6c0a15fd5e2b6b1325f1
+DIST sounds.tar.gz 1612625 SHA256 310c89592139df617e6e981ab5bf3bfca84a7778d5191334bda8eb069c924b61 SHA512 69518766ce1cc1bef543964acb077de51c361f1a880ebc11bd0d381fe082af0e013d116aad606a18c94855a08c5a2892cb5d0d5a259b081119bb8d355a94e2b2 WHIRLPOOL ceb56911b8372b0f91516c48f523fa26296e503a299033fb2598646e1c259c7e1058feca155bd8630ab066a4757a76db0aed32d3f7e48bd69e141e12ddd06024
+DIST xblast-2.10.4.tar.gz 684965 SHA256 93cd7c47ff83e00655605fcbec6a031f75d170d7eb467b85bcbe6c1733bcc213 SHA512 6b3be0d41d18cf8da721030fa87c00ffed81d29706a20dd254a07b9cc8af79bd09f63ebb7f575c1665b77b9f58f29bec74b84f27fd2106d704c2fe2d5513a835 WHIRLPOOL 48a308e63c7b684eabb18ad4c6f70b0a6c41caf94616830712edcbe2d6003cd230f5ddf7a243fdf7f71844d10e9be870363f4da96d8e44bdf326b4700489a603
+EBUILD xblast-2.10.4-r1.ebuild 1503 SHA256 8d56dc1f7467d32e70cff728a6d51859751a4f99cd6b5c056bdfb91ac8db1c8e SHA512 b0a4ca6525db40e7808907b99b57749306f853f265db446c7c9c39008d79c2ed2a73565b457138e3150b82c1c3c6b762a1025d6af085b5e3e815a8d83fbcb79b WHIRLPOOL 3beeb36e7e33e8996b373717049e0b5b0e725501b1efe5b48e82afd15964e7f1d861d6bcef7f410d641bc2716cc2eb418e442cf6bd1e29de6066e946bd3bab65
+EBUILD xblast-2.10.4.ebuild 1550 SHA256 63e588e43b24e803afe8bb976dc42b630716a9aaa7fb304a6f09bd7dbae95e82 SHA512 bf6f4d7ec230fabcadb38e1d7268a369c77fbc6a1c920eadce4d7f8874478459644019f76df782058807c81186d48c24fcc6fe3e9dde82ebd3ef7bc87b830cb5 WHIRLPOOL 30bf7eb381cff32435e5933dd6758f2ddf3a4e218d51311cd17858858cdb81214f708d5e6c89240ba2bfbdf4fbd3899a8581dfb647b206809debf0bbf4f3914a
+MISC ChangeLog 2717 SHA256 f03c5c0a83141389f0672964c481c91f66d35e089e5d80f3572db10ab6b8b112 SHA512 c76444848f5bc9a3e34e397750fb2752870f10c201e667508a93a2563b13da504af32dea4027b00320363df75d74921ad1f9eb4099eba92f784e59978144fe86 WHIRLPOOL a6c74ab1a96214b9ff5bddf00b7fb01e13f2fd59a0971821b24f28f0ea8ed23d627e147e811cbf09f48fa86693af53dda08f4a3aa59fe2522d1fce58a4de2c59
+MISC ChangeLog-2015 2236 SHA256 048bbe0bb93c7771364e761474e079ac7e65fb6bc2ac18cca8d66b729e7298f8 SHA512 8c34b78cc4b5984b2572485088b9b46880daf6f9bba6d7fa6119b59c60f5895cfd1828d05375d71431d132e9f5eccc4f4378ef7104a5bf73ddae190ff2629cce WHIRLPOOL 2c1f3fa66d16ad18d14ceaa1342884514870c4be64792851ced4a7462c536cd1deec8ab33f33265c2b5b061cc4c572cf1b90952c0895f8f8e607e0b64f4135de
+MISC metadata.xml 329 SHA256 02b5a6133cf52e07783758363a5bd10db08e394599b65866cc7e7c08b40dbc5a SHA512 6afab2e751e3e0a5a2199915dc2ae3149af070ee43ca200c88514ad783b0801f0e22c1c7a4026079af36d3a9b3deb016f2f57e93867d8a8e989660e744f56744 WHIRLPOOL 760097d8261bbfc1e25dc3924fff0310256b4e5cb038691b0555c8b74c746d988a03e02d91115b27f29d53b6e52d067a277e59364b21ce791cf5f227648811bd
diff --git a/games-action/xblast/metadata.xml b/games-action/xblast/metadata.xml
new file mode 100644
index 000000000000..c02ee380b861
--- /dev/null
+++ b/games-action/xblast/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">xblast</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-action/xblast/xblast-2.10.4-r1.ebuild b/games-action/xblast/xblast-2.10.4-r1.ebuild
new file mode 100644
index 000000000000..eb24fa6b6493
--- /dev/null
+++ b/games-action/xblast/xblast-2.10.4-r1.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools
+
+# Change these as releases changes
+IMAGES="images-2005-01-06"
+LEVELS="levels-2005-01-06"
+MODELS="models-2005-01-06"
+MUSICS="musics-2005-01-06"
+SOUNDS="sounds"
+
+DESCRIPTION="Bomberman clone w/network support for up to 6 players"
+HOMEPAGE="http://xblast.sourceforge.net/"
+SRC_URI="mirror://sourceforge/xblast/${P}.tar.gz
+ mirror://sourceforge/xblast/${IMAGES}.tar.gz
+ mirror://sourceforge/xblast/${LEVELS}.tar.gz
+ mirror://sourceforge/xblast/${MODELS}.tar.gz
+ mirror://sourceforge/xblast/${MUSICS}.tar.gz
+ mirror://sourceforge/xblast/${SOUNDS}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+ media-libs/libpng:0
+ x11-libs/libICE
+ x11-libs/libX11"
+DEPEND="${RDEPEND}
+ x11-libs/libXt"
+
+src_prepare() {
+ default
+
+ eautoreconf #255857
+}
+
+src_configure() {
+ econf \
+ --with-otherdatadir=/usr/share/${PN} \
+ --enable-sound
+}
+
+src_install() {
+ local IMAGE_INSTALL_DIR="/usr/share/${PN}/image"
+
+ default
+
+ # Images
+ dodir "${IMAGE_INSTALL_DIR}"
+ cp -pPR "${WORKDIR}/${IMAGES}"/* "${D}/${IMAGE_INSTALL_DIR}" || die
+
+ # Levels
+ insinto "$/usr/share/${PN}/level"
+ doins "${WORKDIR}/${LEVELS}"/*
+
+ # Models
+ insinto "/usr/share/${PN}/image/sprite"
+ doins "${WORKDIR}/${MODELS}"/*
+
+ # Music and sound
+ insinto "/usr/share/${PN}/sounds"
+ doins "${WORKDIR}/${MUSICS}"/* "${WORKDIR}/${SOUNDS}"/*
+
+ # Cleanup
+ find "${D}" -name Imakefile -exec rm \{\} \;
+}
diff --git a/games-action/xblast/xblast-2.10.4.ebuild b/games-action/xblast/xblast-2.10.4.ebuild
new file mode 100644
index 000000000000..318cd1e59465
--- /dev/null
+++ b/games-action/xblast/xblast-2.10.4.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit autotools games
+
+# Change these as releases changes
+IMAGES="images-2005-01-06"
+LEVELS="levels-2005-01-06"
+MODELS="models-2005-01-06"
+MUSICS="musics-2005-01-06"
+SOUNDS="sounds"
+
+DESCRIPTION="Bomberman clone w/network support for up to 6 players"
+HOMEPAGE="http://xblast.sourceforge.net/"
+SRC_URI="mirror://sourceforge/xblast/${P}.tar.gz
+ mirror://sourceforge/xblast/${IMAGES}.tar.gz
+ mirror://sourceforge/xblast/${LEVELS}.tar.gz
+ mirror://sourceforge/xblast/${MODELS}.tar.gz
+ mirror://sourceforge/xblast/${MUSICS}.tar.gz
+ mirror://sourceforge/xblast/${SOUNDS}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND="x11-libs/libICE
+ x11-libs/libX11
+ media-libs/libpng:0"
+DEPEND="${RDEPEND}
+ x11-libs/libXt"
+
+src_prepare() {
+ eautoreconf #255857
+}
+
+src_configure() {
+ egamesconf \
+ --with-otherdatadir="${GAMES_DATADIR}"/${PN} \
+ --enable-sound
+}
+
+src_install() {
+ local IMAGE_INSTALL_DIR="${GAMES_DATADIR}/${PN}/image"
+
+ default
+
+ # Images
+ dodir "${IMAGE_INSTALL_DIR}"
+ cp -pPR "${WORKDIR}/${IMAGES}"/* "${D}/${IMAGE_INSTALL_DIR}" || die
+
+ # Levels
+ insinto "${GAMES_DATADIR}/xblast/level"
+ doins "${WORKDIR}/${LEVELS}"/*
+
+ # Models
+ insinto "${GAMES_DATADIR}/xblast/image/sprite"
+ doins "${WORKDIR}/${MODELS}"/*
+
+ # Music and sound
+ insinto "${GAMES_DATADIR}/xblast/sounds"
+ doins "${WORKDIR}/${MUSICS}"/* "${WORKDIR}/${SOUNDS}"/*
+
+ # Cleanup
+ find "${D}" -name Imakefile -exec rm \{\} \;
+
+ prepgamesdirs
+}
diff --git a/games-action/xbomber/Manifest b/games-action/xbomber/Manifest
new file mode 100644
index 000000000000..52db103073a0
--- /dev/null
+++ b/games-action/xbomber/Manifest
@@ -0,0 +1,10 @@
+AUX xbomber-101-clang.patch 2141 SHA256 6ecb1c9a5914abb95e85d97e6dda06263a6e65da233821168149a7a0d77bde87 SHA512 3954bcf1793e2acf0213861920b0831935e3c3224090c1430bd085603ea1acca59ec542df64f09b4165d06ee2f1264a3add308a2d3f472be0a7200b640d44bef WHIRLPOOL 27035cfc5c3eaa422b4c014bd4513418c5119b7fe2c3c4e7d3c7018e8d82efb12aa1f40a50533ed7c8084d8b41362f154f95feb6d1eda5555ac123dbc55f75c2
+AUX xbomber-101-gcc4.patch 368 SHA256 252f8e65adb129ec4f2f726d2b509988f8356e320acbd497caeab24ac04b847f SHA512 06cfd4e13f42d6669fb96db5c207bbb035510155f9e1b0de5ab741585300e6c9afb8e9ecc0c7a326baf34527fa4af87243dada7fb86bcf0587f6cf67648ec688 WHIRLPOOL aa011fff0a2780d8341714dfab1b51f1ef708914bcdd07d5e14ace8f3616fb66c612b9b11ed3f1ec961c3fb8c24625232866d0f90a790e04ec651645d3a4aa3b
+AUX xbomber-101-ldflags.patch 454 SHA256 b153f7f4c2ee9a6c41a59c03edca1896e0504d25bab2967d0cf5ea263bd070fb SHA512 8fe9a9b934ab9bc624a8b18a199947b98c6abfd9e3c748a2de54b46f557710121ea0c0179ea565f57c469186afaf11e0bd0d389f42f0df346809f114ef02a109 WHIRLPOOL fa7f9022f39518f3406cd7b805a230ce7dc511ef8d8518317d71ada1ef8cc13458a8bef6c5e3a646dc06c5303471e282a208641e2b652237f0321285686ce176
+AUX xbomber-101-va_list.patch 904 SHA256 ea0f3746222ae9b8d583784fdcd98e16ce598e03d07e6ca2edb468eb0b1ad48c SHA512 87a7a4c5decb5e406521b2b5401a7c9053700f026df6aee936e6d1accf0c82c2468cb6e03483d0e2f8e551685d5f2edaa35d81df23b2e42ca11a2b305748f5b1 WHIRLPOOL a69dbd196af9bed557a9bdb40a67f226c7c4cc0dd8ef0a657b964ea6fe250b65f9a7e5459472511b1166fe250ab04f37c2b152aa984c459cef4d235b7b24860a
+DIST xbomber-101.tgz 396707 SHA256 d2f127519b779f83e029be4a6dd0299d126505bbe49a9981d913ac10a4b3f640 SHA512 3f7259ad7f4bf3ec15997c187e354a5cb91cd19743003f480b4900caa2a888d977aa3d6f1e96411666bb0a971fcf17593b76fde9804bb6e1e1b0dab9d4b6abb2 WHIRLPOOL 70f5973bc69d20f2bbf7b3190b9eeac75119dc4765944bb668b6241063c237c2d8b1474dcbf049f896d7d8d5a92524c0c02bd3b1719360103a037fb67049e353
+EBUILD xbomber-101-r1.ebuild 942 SHA256 6bcfdcfdb26fe93c95bc742b728ddaa71afc5b6e0ebe8f7eda0615d4d0bfdfb9 SHA512 f3f5e4f0c16f7f44fbf3bbfee1a08eb8030e30c66ec93f99d23ecb6899f83c34e1ffef4b67ecb24a8d3dbb78c591ed384cc610e163bbcb7f37e490e9831c1ac4 WHIRLPOOL 9a75eb2a8b8414a91c9e753732165f54c3b3ee885bdb561bd7677aa26474f2eee7da33803f70760e7e159de5081e05c0cb02361568a797e3b9d74d176681abad
+EBUILD xbomber-101.ebuild 882 SHA256 3d2e87520e1ced9a50be6be9495f3a9dd850343e2f1a67b1c9910b2e4cc47a4f SHA512 8439184a11eb11315d54e55b6142b23696fd52391b5f8a7ae5f045eb21ede239d24c7d720f88111157094067a6fc8bfeea0807d50bee8db50dede23081247fe5 WHIRLPOOL 4fac9c4f8d50ceb6797eb7c675bc9ce0c55c3970b6b82caca27bf45283e8d34286c5fc0deaab381cf8831f5c2ce019b26410af4e942deb70993fd097c4023a57
+MISC ChangeLog 3327 SHA256 4ef06118c25906c7f3e2866f8645c7f74b45b6057a8d4c5fd5827db980992642 SHA512 4ada1266a59a76780f2530fc102ba889785cb3a71cac1d325c161f3a33e0eb16cd555d2c9bdd19b5bcf0db6cbd7d156314b6060f46f95c3c7e9a636523a97dae WHIRLPOOL 23b15cd851255dd38e9a64fc8844558668ca7fa4cfc0f2c6efee4bc534eb9e8ea1334b76ca17cb38b2dcd659ea4e1bf3330ee67cbc98d6d6c6078c99b8810fb7
+MISC ChangeLog-2015 1769 SHA256 e2773d8ee13b39fcb8c7b2d3e601743c589e512f7ba11960d08c8e3b26af4cba SHA512 59541d4723090188e9921304b681e026a7411920946467cc0e594eb6b176517a3b889a589aa9c89fc27f3b892c92ff27e7032f0507051560834b846fc08a9d28 WHIRLPOOL 1438cb827690f86603db4e7a790edb6f8a566ea4956680a0353e4b0e543fecdb1ac07fe18d5945774639b857cd77a9349d492432606f05f9988d9c69f0609a60
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-action/xbomber/files/xbomber-101-clang.patch b/games-action/xbomber/files/xbomber-101-clang.patch
new file mode 100644
index 000000000000..1771f15abc5e
--- /dev/null
+++ b/games-action/xbomber/files/xbomber-101-clang.patch
@@ -0,0 +1,123 @@
+--- a/bomber.c 2016-07-13 16:35:34.596802964 -0500
++++ b/bomber.c 2016-07-13 16:40:43.110797439 -0500
+@@ -350,7 +350,7 @@
+ inform1(i);
+ }
+
+-networktraffic()
++void networktraffic()
+ {
+ int i,j,k;
+ int length;
+@@ -1252,7 +1252,7 @@
+ }
+ }
+
+-addsprite(int x,int y,figure *fig)
++void addsprite(int x,int y,figure *fig)
+ {
+ sprite *sp;
+ if(spritesused==MAXSPRITES) return;
+@@ -1262,7 +1262,7 @@
+ sp->ypos=y;
+ sp->fig=fig;
+ }
+-adddamage(int xpos,int ypos,int xsize,int ysize)
++void adddamage(int xpos,int ypos,int xsize,int ysize)
+ {
+ damage *dm;
+ if(damageused==MAXDAMAGES) return;
+@@ -1375,7 +1375,7 @@
+ return (y>>FRACTION)+arraystarty;
+ }
+
+-int trymove(player *pl,int dx,int dy)
++void trymove(player *pl,int dx,int dy)
+ {
+ int wx,wy;
+ int sx,sy;
+@@ -1520,7 +1520,7 @@
+ }
+ }
+
+-doplayer(player *pl)
++void doplayer(player *pl)
+ {
+ int last;
+ int color;
+@@ -1640,7 +1640,7 @@
+ 8,14,4,
+ };
+
+-initplayers()
++void initplayers()
+ {
+ int i;
+ unsigned char *p;
+@@ -1794,7 +1794,7 @@
+ copyup();
+ }
+
+-pulseon()
++void pulseon()
+ {
+ if(havepulse) return;
+ havepulse=1;
+@@ -1803,7 +1803,7 @@
+ thandler(0);
+ setitimer(ITIMER_REAL,&itval,NULL);
+ }
+-pulseoff()
++void pulseoff()
+ {
+ if(!havepulse) return;
+ havepulse=0;
+@@ -2235,7 +2235,7 @@
+ failure(char *str,...)
+ {
+ gamemode=0;
+- return;
++ return 1;
+ }
+ drawmode3()
+ {
+@@ -2261,7 +2261,7 @@
+ }
+
+
+-domode3()
++void domode3()
+ {
+ int size;
+ int i,j;
+@@ -2351,7 +2351,7 @@
+
+ gamemode=0;
+ }
+-domode4()
++void domode4()
+ {
+ unsigned char querystr[16];
+ long now;
+--- a/bomber.h 2016-07-13 16:35:34.596802964 -0500
++++ b/bomber.h 2016-07-13 16:40:26.797797731 -0500
+@@ -210,6 +210,8 @@
+ extern void scrprintf(char *str, ...);
+ extern int textx,texty,fontxsize,fontysize;
+ extern void texthome(void);
++extern void adddamage(int xpos,int ypos,int xsize,int ysize);
++extern void addsprite(int x,int y,figure *fig);
+
+ extern unsigned char field[32][32];
+ extern void *info[32][32];
+--- a/sound.c 2016-07-13 16:35:34.596802964 -0500
++++ b/sound.c 2016-07-13 16:40:57.702797177 -0500
+@@ -44,7 +44,7 @@
+
+
+
+-soundinit(char *name)
++void soundinit(char *name)
+ {
+ int fd[2];
+ char devname[256];
diff --git a/games-action/xbomber/files/xbomber-101-gcc4.patch b/games-action/xbomber/files/xbomber-101-gcc4.patch
new file mode 100644
index 000000000000..0ee82d81801b
--- /dev/null
+++ b/games-action/xbomber/files/xbomber-101-gcc4.patch
@@ -0,0 +1,11 @@
+--- a/bomber.c 2006-01-28 12:06:34.000000000 -0700
++++ b/bomber.c 2006-01-28 12:06:46.000000000 -0700
+@@ -1699,7 +1699,7 @@
+ }
+ void addtail(void *header,void *entry)
+ {
+- while(((list *)header)->next) ((list *)header)=((list *)header)->next;
++ while(((list *)header)->next) header=((list *)header)->next;
+ ((list *)header)->next=entry;
+ ((list *)entry)->next=0;
+ }
diff --git a/games-action/xbomber/files/xbomber-101-ldflags.patch b/games-action/xbomber/files/xbomber-101-ldflags.patch
new file mode 100644
index 000000000000..a0bf2f89d735
--- /dev/null
+++ b/games-action/xbomber/files/xbomber-101-ldflags.patch
@@ -0,0 +1,15 @@
+--- a/Makefile 2010-10-19 09:17:43.000000000 +0200
++++ b/Makefile 2010-10-19 09:18:12.000000000 +0200
+@@ -1,10 +1,8 @@
+-CFLAGS = -O3
+-
+ bomber: bomber.o x.o sound.o matcher
+- $(CC) -o bomber bomber.o x.o sound.o -lX11 -L/usr/X11R6/lib/
++ $(CC) $(CFLAGS) $(LDFLAGS) -o bomber bomber.o x.o sound.o -lX11 -L/usr/X11R6/lib/
+
+ matcher: matcher.c
+- $(CC) matcher.c -o matcher
++ $(CC) $(CFLAGS) $(LDFLAGS) matcher.c -o matcher
+
+ bomber.o: bomber.c bomber.h
+
diff --git a/games-action/xbomber/files/xbomber-101-va_list.patch b/games-action/xbomber/files/xbomber-101-va_list.patch
new file mode 100644
index 000000000000..5a1691a65ad8
--- /dev/null
+++ b/games-action/xbomber/files/xbomber-101-va_list.patch
@@ -0,0 +1,48 @@
+--- a/bomber.c 2005-11-06 16:50:04.000000000 +0100
++++ b/bomber.c 2005-11-06 16:47:35.000000000 +0100
+@@ -1,5 +1,6 @@
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <stdarg.h>
+ #include <unistd.h>
+ #include <string.h>
+ #include <sys/uio.h>
+@@ -626,8 +627,11 @@
+ void scrprintf(char *str,...)
+ {
+ char output[256],*p,*p2;
++va_list ap;
+
+- vsprintf(output,str,&str+1);
++ va_start(ap, str);
++ vsprintf(output,str,ap);
++ va_end(ap);
+ p=output;
+ for(;;)
+ {
+@@ -653,8 +657,11 @@
+ void bigscrprintf(char *str,...)
+ {
+ char output[256],*p,*p2;
++va_list ap;
+
+- vsprintf(output,str,&str+1);
++ va_start(ap, str);
++ vsprintf(output,str,ap);
++ va_end(ap);
+ p=output;
+ for(;;)
+ {
+@@ -1873,8 +1880,11 @@
+ additem(char *item,...)
+ {
+ char output[256];
++va_list ap;
+
+- vsprintf(output,item,&item+1);
++ va_start(ap, item);
++ vsprintf(output,item,ap);
++ va_end(ap);
+ if(menunum<0)
+ menutitle=menuput;
+ else
diff --git a/games-action/xbomber/metadata.xml b/games-action/xbomber/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-action/xbomber/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 type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/games-action/xbomber/xbomber-101-r1.ebuild b/games-action/xbomber/xbomber-101-r1.ebuild
new file mode 100644
index 000000000000..2757b322f5db
--- /dev/null
+++ b/games-action/xbomber/xbomber-101-r1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Bomberman clone w/multiplayer support"
+HOMEPAGE="http://www.xdr.com/dash/bomber.html"
+SRC_URI="http://www.xdr.com/dash/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="x11-libs/libX11"
+RDEPEND="!sci-biology/emboss
+ ${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-va_list.patch
+ "${FILESDIR}"/${P}-gcc4.patch
+ "${FILESDIR}"/${P}-ldflags.patch
+ "${FILESDIR}"/${P}-clang.patch
+)
+
+src_prepare() {
+ sed -i \
+ -e "/^CC/d" \
+ -e 's/gcc/$(CC)/g' \
+ -e "s:X386:X11R6:" \
+ Makefile || die
+
+ # ${P}-ldflags.patch depends on the munged Makefile
+ default
+
+ sed -i \
+ -e "s:data/%s:/usr/share/${PN}/%s:" bomber.c || die
+ sed -i \
+ -e "s:=\"data\":=\"/usr/share/${PN}\":" sound.c || die
+}
+
+src_install() {
+ dobin matcher bomber
+ insinto /usr/share/${PN}
+ doins -r data/*
+ dodoc README Changelog
+}
diff --git a/games-action/xbomber/xbomber-101.ebuild b/games-action/xbomber/xbomber-101.ebuild
new file mode 100644
index 000000000000..ea3a93e6f871
--- /dev/null
+++ b/games-action/xbomber/xbomber-101.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="Bomberman clone w/multiplayer support"
+HOMEPAGE="http://www.xdr.com/dash/bomber.html"
+SRC_URI="http://www.xdr.com/dash/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="x11-libs/libX11"
+RDEPEND=${DEPEND}
+
+src_prepare() {
+ sed -i \
+ -e "/^CC/d" \
+ -e 's/gcc/$(CC)/g' \
+ -e "s:X386:X11R6:" \
+ Makefile || die
+ sed -i \
+ -e "s:data/%s:${GAMES_DATADIR}/${PN}/%s:" bomber.c || die
+ sed -i \
+ -e "s:=\"data\":=\"${GAMES_DATADIR}/${PN}\":" sound.c || die
+ epatch \
+ "${FILESDIR}"/${P}-va_list.patch \
+ "${FILESDIR}"/${P}-gcc4.patch \
+ "${FILESDIR}"/${P}-ldflags.patch
+}
+
+src_install() {
+ dogamesbin matcher bomber
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r data/*
+ dodoc README Changelog
+ prepgamesdirs
+}
diff --git a/games-action/xpilot/Manifest b/games-action/xpilot/Manifest
new file mode 100644
index 000000000000..c86812e9709a
--- /dev/null
+++ b/games-action/xpilot/Manifest
@@ -0,0 +1,6 @@
+DIST xpilot-4.5.5.tar.bz2 1115502 SHA256 5e40424d093c8b712170a5dff3396df63302775f42da829b8832840f359cd92a SHA512 002fbdbee3035e21f441d749d68ac41da2816a691e1c0d1cf9de9cddaa479c92da57eb36081884b9908a6ae83454f6f532c24c89280d27e2cbf9570442ef301c WHIRLPOOL eebaf2fc0aab431ca94f627aa59d38bf708d3e905e6c502381643c239247397eb8cc6131867c84245e0455caabbc874b738d41402c7832045ab250cda7a1de6d
+EBUILD xpilot-4.5.5-r1.ebuild 1192 SHA256 c13ab5f6680067ec67b88d9a9be73519cbbd8119993b22348c2bceeb319ef655 SHA512 b0f1905bd71d84ac1469b09bec8949805c22b96c97212f2d9c27454125992e10633b2f6b7671dd08f6ec185a3d2b236c1681ca01ca64f09fc15263aa8698a270 WHIRLPOOL 6880280c3c0f329a436ce04e38fb4d48c50061b20c933d080b07787e4a17f6d89c8ec7bbdb9f6eecdde23943bfc8ca7ae1a96eafc89f9830cd8637d4686d1496
+EBUILD xpilot-4.5.5.ebuild 1177 SHA256 7fabbea03494dcff3c890b681048e0ee63bd5192cbfbfedd24449a0763b7f042 SHA512 f38ae12bdc0a57adbb4eb5917abfd75f5afdefc9fe5c5f0ae6957b3b8ef8f9cf201947f394ed98fd1c73c758df73dcfa2de8e5d4e9b354297072c128ee5384d0 WHIRLPOOL f57116bc9c83381847a67ab0638c4b521c11378b7511649cbd4e5ba2cfb0d3f838f939cb636c0b523d9746f0b5ef21efadb99e6753239e5b01eec30e5e9651e8
+MISC ChangeLog 2428 SHA256 43840056f12b68819c83158bf0d397e09fe760283acc61655b9f85637953993b SHA512 b7aa20d268490561e49c00b692740d5503ca3d73ee4c9359412c142c3c62414c3237d27326408275a76cf7715619124e391a1d08be8892706620af7cf3462fd6 WHIRLPOOL 0abb1c85f7bac9ff3150addabbdcc4c94c348b72ec310dbda04e69c0c5c59365585cbe61225bbbd4f7a7a9040546935375f3fc987ff24d3769cb5a525d58745d
+MISC ChangeLog-2015 2298 SHA256 d8dde34958fb151c6dc61bff5ac394a2099508f2aaf0fd472f584343c58628fc SHA512 b962b3ece27d7c6a6abe5bd98acc08eb505bbdc3697b36948199549e50a438e924a1471768edaed5414f480720ccb099f8296a306e5a69ccd030cd356c2a6c76 WHIRLPOOL f44cd5e563241d591a363d9198f534c40b7631dfba7975555f18e1903974bbbf8c15cbc5f40ea76ec69ac8b0486780882e82019740ccba21c0270cc876f30057
+MISC metadata.xml 333 SHA256 0d8221adb35c2940dfad9ca5c6b1681d701fcddbc99752745aacaa790d9fb8ee SHA512 b6a52a4afe7804b04646d42366ef3812a70fba44d44e9da662a70c7c646aba015792fd8bef65da9c5abdc4b5188cf0657ba80ab1d1920b6b692606274c3afca4 WHIRLPOOL 9028aba86794884a720484700106472da189bd03b894febcfc19290e33c7c1ea3eb60e56e70ba105dff78f781f1f197a91523853a3825bcaa25c7e2e68354044
diff --git a/games-action/xpilot/metadata.xml b/games-action/xpilot/metadata.xml
new file mode 100644
index 000000000000..8276088f013b
--- /dev/null
+++ b/games-action/xpilot/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">xpilotgame</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-action/xpilot/xpilot-4.5.5-r1.ebuild b/games-action/xpilot/xpilot-4.5.5-r1.ebuild
new file mode 100644
index 000000000000..cfd0162fb1aa
--- /dev/null
+++ b/games-action/xpilot/xpilot-4.5.5-r1.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils toolchain-funcs
+
+DESCRIPTION="A multi-player 2D client/server space game"
+HOMEPAGE="http://www.xpilot.org/"
+SRC_URI="mirror://sourceforge/xpilotgame/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="x11-libs/libX11
+ x11-libs/libXext"
+DEPEND="${RDEPEND}
+ app-text/rman
+ x11-misc/gccmakedep
+ x11-misc/imake
+ x11-proto/xextproto
+ x11-proto/xproto"
+
+src_prepare() {
+ #default
+ eapply_user
+
+ sed -i \
+ -e '/^INSTMAN/s:=.*:=/usr/share/man/man6:' \
+ -e "/^INSTLIB/s:=.*:=/usr/share/${PN}:" \
+ -e "/^INSTBIN/s:=.*:=/usr/bin:" \
+ Local.config || die
+
+ # work with glibc-2.20
+ sed -i \
+ -e 's/getline/lgetline/' \
+ src/client/textinterface.c || die
+}
+
+src_compile() {
+ xmkmf || die
+ emake Makefiles
+ emake includes
+ emake depend
+ emake CC="$(tc-getCC)" CDEBUGFLAGS="${CFLAGS} ${LDFLAGS}"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ emake DESTDIR="${D}" install.man
+ newicon lib/textures/logo.ppm ${PN}.ppm
+ make_desktop_entry ${PN} XPilot /usr/share/pixmaps/${PN}.ppm
+ dodoc README.txt doc/{ChangeLog,CREDITS,FAQ,README*,TODO}
+}
diff --git a/games-action/xpilot/xpilot-4.5.5.ebuild b/games-action/xpilot/xpilot-4.5.5.ebuild
new file mode 100644
index 000000000000..578c69b90d88
--- /dev/null
+++ b/games-action/xpilot/xpilot-4.5.5.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="A multi-player 2D client/server space game"
+HOMEPAGE="http://www.xpilot.org/"
+SRC_URI="mirror://sourceforge/xpilotgame/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND="x11-libs/libX11
+ x11-libs/libXext"
+DEPEND="${RDEPEND}
+ x11-proto/xextproto
+ x11-proto/xproto
+ x11-misc/gccmakedep
+ x11-misc/imake
+ app-text/rman"
+
+src_prepare() {
+ sed -i \
+ -e '/^INSTMAN/s:=.*:=/usr/share/man/man6:' \
+ -e "/^INSTLIB/s:=.*:=${GAMES_DATADIR}/${PN}:" \
+ -e "/^INSTBIN/s:=.*:=${GAMES_BINDIR}:" \
+ Local.config || die
+ # work with glibc-2.20
+ sed -i \
+ -e 's/getline/lgetline/' \
+ src/client/textinterface.c || die
+}
+
+src_compile() {
+ xmkmf || die
+ emake Makefiles
+ emake includes
+ emake depend
+ emake CC="${CC}" CDEBUGFLAGS="${CFLAGS} ${LDFLAGS}"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ emake DESTDIR="${D}" install.man
+ newicon lib/textures/logo.ppm ${PN}.ppm
+ make_desktop_entry ${PN} XPilot /usr/share/pixmaps/${PN}.ppm
+ dodoc README.txt doc/{ChangeLog,CREDITS,FAQ,README*,TODO}
+ prepgamesdirs
+}