summaryrefslogtreecommitdiff
path: root/games-fps
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /games-fps
reinit the tree, so we can have metadata
Diffstat (limited to 'games-fps')
-rw-r--r--games-fps/aaquake2/Manifest10
-rw-r--r--games-fps/aaquake2/aaquake2-0.1.ebuild62
-rw-r--r--games-fps/aaquake2/files/0.1-gentoo.patch90
-rw-r--r--games-fps/aaquake2/files/aaquake2-0.1-gcc41.patch39
-rw-r--r--games-fps/aaquake2/files/aaquake2-0.1-glibc.patch22
-rw-r--r--games-fps/aaquake2/files/aaquake2-0.1-ldflags.patch97
-rw-r--r--games-fps/aaquake2/metadata.xml21
-rw-r--r--games-fps/aaut/Manifest5
-rw-r--r--games-fps/aaut/aaut-1.ebuild23
-rw-r--r--games-fps/aaut/files/aaut5
-rw-r--r--games-fps/aaut/metadata.xml15
-rw-r--r--games-fps/alephone-infinity/Manifest6
-rw-r--r--games-fps/alephone-infinity/alephone-infinity-20080622.ebuild40
-rw-r--r--games-fps/alephone-infinity/metadata.xml8
-rw-r--r--games-fps/alephone/Manifest7
-rw-r--r--games-fps/alephone/alephone-20150620-r1.ebuild88
-rw-r--r--games-fps/alephone/alephone-20150620.ebuild87
-rw-r--r--games-fps/alephone/files/alephone.sh28
-rw-r--r--games-fps/alephone/metadata.xml12
-rw-r--r--games-fps/alienarena/Manifest6
-rw-r--r--games-fps/alienarena/alienarena-20130827.ebuild72
-rw-r--r--games-fps/alienarena/files/alienarena-20130827-format.patch11
-rw-r--r--games-fps/alienarena/metadata.xml12
-rw-r--r--games-fps/avp/Manifest6
-rw-r--r--games-fps/avp/avp-20150214-r1.ebuild46
-rw-r--r--games-fps/avp/avp-20150214.ebuild50
-rw-r--r--games-fps/avp/metadata.xml8
-rw-r--r--games-fps/blackshades/Manifest8
-rw-r--r--games-fps/blackshades/blackshades-20070723-r1.ebuild60
-rw-r--r--games-fps/blackshades/blackshades-20070723.ebuild55
-rw-r--r--games-fps/blackshades/files/blackshades-datadir.patch18
-rw-r--r--games-fps/blackshades/metadata.xml8
-rw-r--r--games-fps/darkplaces/Manifest7
-rw-r--r--games-fps/darkplaces/darkplaces-20140513.ebuild186
-rw-r--r--games-fps/darkplaces/metadata.xml14
-rw-r--r--games-fps/doom-data/Manifest5
-rw-r--r--games-fps/doom-data/doom-data-1-r1.ebuild42
-rw-r--r--games-fps/doom-data/metadata.xml11
-rw-r--r--games-fps/doom3-cdoom/Manifest5
-rw-r--r--games-fps/doom3-cdoom/doom3-cdoom-1.3.1.ebuild30
-rw-r--r--games-fps/doom3-cdoom/metadata.xml8
-rw-r--r--games-fps/doom3-chextrek/Manifest5
-rw-r--r--games-fps/doom3-chextrek/doom3-chextrek-0.52.ebuild36
-rw-r--r--games-fps/doom3-chextrek/metadata.xml8
-rw-r--r--games-fps/doom3-data/Manifest4
-rw-r--r--games-fps/doom3-data/doom3-data-1.1.1282-r1.ebuild46
-rw-r--r--games-fps/doom3-data/metadata.xml14
-rw-r--r--games-fps/doom3-demo/Manifest6
-rw-r--r--games-fps/doom3-demo/doom3-demo-1.1.1286-r1.ebuild61
-rw-r--r--games-fps/doom3-demo/metadata.xml8
-rw-r--r--games-fps/doom3-ducttape/Manifest5
-rw-r--r--games-fps/doom3-ducttape/doom3-ducttape-0007.ebuild35
-rw-r--r--games-fps/doom3-ducttape/metadata.xml8
-rw-r--r--games-fps/doom3-eventhorizon/Manifest5
-rw-r--r--games-fps/doom3-eventhorizon/doom3-eventhorizon-1.3.ebuild30
-rw-r--r--games-fps/doom3-eventhorizon/metadata.xml8
-rw-r--r--games-fps/doom3-hellcampaign/Manifest6
-rw-r--r--games-fps/doom3-hellcampaign/doom3-hellcampaign-1-r1.ebuild46
-rw-r--r--games-fps/doom3-hellcampaign/metadata.xml8
-rw-r--r--games-fps/doom3-inhell/Manifest5
-rw-r--r--games-fps/doom3-inhell/doom3-inhell-1.1-r1.ebuild28
-rw-r--r--games-fps/doom3-inhell/metadata.xml8
-rw-r--r--games-fps/doom3-lms/Manifest5
-rw-r--r--games-fps/doom3-lms/doom3-lms-4.ebuild29
-rw-r--r--games-fps/doom3-lms/metadata.xml8
-rw-r--r--games-fps/doom3-mitm/Manifest5
-rw-r--r--games-fps/doom3-mitm/doom3-mitm-20070129.ebuild44
-rw-r--r--games-fps/doom3-mitm/metadata.xml8
-rw-r--r--games-fps/doom3-roe/Manifest4
-rw-r--r--games-fps/doom3-roe/doom3-roe-1.ebuild53
-rw-r--r--games-fps/doom3-roe/metadata.xml16
-rw-r--r--games-fps/doom3/Manifest6
-rw-r--r--games-fps/doom3/doom3-1.3.1304-r1.ebuild99
-rw-r--r--games-fps/doom3/metadata.xml20
-rw-r--r--games-fps/doomsday-resources/Manifest6
-rw-r--r--games-fps/doomsday-resources/doomsday-resources-1.01-r1.ebuild37
-rw-r--r--games-fps/doomsday-resources/metadata.xml11
-rw-r--r--games-fps/doomsday/Manifest5
-rw-r--r--games-fps/doomsday/doomsday-1.15.8.ebuild182
-rw-r--r--games-fps/doomsday/metadata.xml22
-rw-r--r--games-fps/duke3d-data/Manifest5
-rw-r--r--games-fps/duke3d-data/duke3d-data-1.0-r3.ebuild77
-rw-r--r--games-fps/duke3d-data/metadata.xml11
-rw-r--r--games-fps/duke3d-demodata/Manifest5
-rw-r--r--games-fps/duke3d-demodata/duke3d-demodata-1.3.ebuild50
-rw-r--r--games-fps/duke3d-demodata/metadata.xml8
-rw-r--r--games-fps/duke3d/Manifest16
-rw-r--r--games-fps/duke3d/duke3d-20040817-r2.ebuild114
-rw-r--r--games-fps/duke3d/files/20040817-credits.patch38
-rw-r--r--games-fps/duke3d/files/20040817-duke3d-makefile-opts.patch33
-rw-r--r--games-fps/duke3d/files/20040817-endian.patch26
-rw-r--r--games-fps/duke3d/files/20040817-gcc34.patch82
-rw-r--r--games-fps/duke3d/files/duke3d-20040817-as-needed.patch74
-rw-r--r--games-fps/duke3d/files/duke3d-20040817-gcc4.patch180
-rw-r--r--games-fps/duke3d/files/duke3d-20040817-ldflags.patch66
-rw-r--r--games-fps/duke3d/files/duke3d-20040817-noinline.patch18
-rw-r--r--games-fps/duke3d/files/duke3d.cfg194
-rw-r--r--games-fps/duke3d/files/network.cfg15
-rw-r--r--games-fps/duke3d/metadata.xml61
-rw-r--r--games-fps/eduke32/Manifest11
-rw-r--r--games-fps/eduke32/eduke32-20131119.4169.ebuild218
-rw-r--r--games-fps/eduke32/files/eduke32-20131119.4169-QA.patch150
-rw-r--r--games-fps/eduke32/metadata.xml27
-rw-r--r--games-fps/enemy-territory-etpro/Manifest5
-rw-r--r--games-fps/enemy-territory-etpro/enemy-territory-etpro-3.2.6-r1.ebuild21
-rw-r--r--games-fps/enemy-territory-etpro/metadata.xml8
-rw-r--r--games-fps/enemy-territory-omnibot/Manifest11
-rw-r--r--games-fps/enemy-territory-omnibot/enemy-territory-omnibot-0.82.ebuild18
-rw-r--r--games-fps/enemy-territory-omnibot/enemy-territory-omnibot-0.83.1.ebuild21
-rw-r--r--games-fps/enemy-territory-omnibot/enemy-territory-omnibot-0.85.ebuild20
-rw-r--r--games-fps/enemy-territory-omnibot/metadata.xml12
-rw-r--r--games-fps/enemy-territory-truecombat/Manifest6
-rw-r--r--games-fps/enemy-territory-truecombat/enemy-territory-truecombat-0.49b.ebuild36
-rw-r--r--games-fps/enemy-territory-truecombat/metadata.xml8
-rw-r--r--games-fps/enemy-territory/Manifest7
-rw-r--r--games-fps/enemy-territory/enemy-territory-2.60b-r1.ebuild126
-rw-r--r--games-fps/enemy-territory/metadata.xml11
-rw-r--r--games-fps/etqw-bin/Manifest5
-rw-r--r--games-fps/etqw-bin/etqw-bin-1.5-r1.ebuild71
-rw-r--r--games-fps/etqw-bin/metadata.xml8
-rw-r--r--games-fps/etqw-data/Manifest4
-rw-r--r--games-fps/etqw-data/etqw-data-1.0.ebuild63
-rw-r--r--games-fps/etqw-data/metadata.xml8
-rw-r--r--games-fps/etqw-demo/Manifest5
-rw-r--r--games-fps/etqw-demo/etqw-demo-2.0_p1-r1.ebuild60
-rw-r--r--games-fps/etqw-demo/metadata.xml8
-rw-r--r--games-fps/ezquake-bin/Manifest8
-rw-r--r--games-fps/ezquake-bin/ezquake-bin-2.2.ebuild71
-rw-r--r--games-fps/ezquake-bin/metadata.xml11
-rw-r--r--games-fps/freedoom/Manifest10
-rw-r--r--games-fps/freedoom/freedoom-0.10.1.ebuild42
-rw-r--r--games-fps/freedoom/freedoom-0.7.ebuild42
-rw-r--r--games-fps/freedoom/metadata.xml11
-rw-r--r--games-fps/glxquake-bin/Manifest5
-rw-r--r--games-fps/glxquake-bin/glxquake-bin-0-r2.ebuild42
-rw-r--r--games-fps/glxquake-bin/metadata.xml8
-rw-r--r--games-fps/industri/Manifest10
-rw-r--r--games-fps/industri/files/industri-1.01-exec-stack.patch36
-rw-r--r--games-fps/industri/files/industri-1.01-glext.patch18
-rw-r--r--games-fps/industri/files/industri-1.01-ldflags.patch20
-rw-r--r--games-fps/industri/files/industri.pretty2
-rw-r--r--games-fps/industri/industri-1.01.ebuild80
-rw-r--r--games-fps/industri/metadata.xml20
-rw-r--r--games-fps/legends/Manifest7
-rw-r--r--games-fps/legends/legends-0.4.1.43-r1.ebuild73
-rw-r--r--games-fps/legends/legends-0.4.1.43-r2.ebuild69
-rw-r--r--games-fps/legends/metadata.xml31
-rw-r--r--games-fps/lsdldoom/Manifest6
-rw-r--r--games-fps/lsdldoom/files/lsdldoom-1.5-paths.patch64
-rw-r--r--games-fps/lsdldoom/lsdldoom-1.5.ebuild39
-rw-r--r--games-fps/lsdldoom/metadata.xml13
-rw-r--r--games-fps/metadata.xml34
-rw-r--r--games-fps/nexuiz/Manifest8
-rw-r--r--games-fps/nexuiz/files/nexuiz-2.5.2-libpng-1.4.patch42
-rw-r--r--games-fps/nexuiz/metadata.xml14
-rw-r--r--games-fps/nexuiz/nexuiz-2.5.2-r1.ebuild136
-rw-r--r--games-fps/nexuiz/nexuiz-2.5.2.ebuild133
-rw-r--r--games-fps/openarena/Manifest8
-rw-r--r--games-fps/openarena/files/openarena-0.8.8-makefile.patch36
-rw-r--r--games-fps/openarena/files/openarena-0.8.8-unbundling.patch104
-rw-r--r--games-fps/openarena/metadata.xml11
-rw-r--r--games-fps/openarena/openarena-0.8.8.ebuild77
-rw-r--r--games-fps/postal2/Manifest6
-rw-r--r--games-fps/postal2/metadata.xml8
-rw-r--r--games-fps/postal2/postal2-1409.2-r2.ebuild68
-rw-r--r--games-fps/postal2mp-demo/Manifest5
-rw-r--r--games-fps/postal2mp-demo/metadata.xml8
-rw-r--r--games-fps/postal2mp-demo/postal2mp-demo-1409.ebuild48
-rw-r--r--games-fps/prboom/Manifest9
-rw-r--r--games-fps/prboom/files/prboom-2.5.0-libpng14.patch22
-rw-r--r--games-fps/prboom/files/prboom-2.5.0-nvidia-test.c3
-rw-r--r--games-fps/prboom/files/prboom-2.5.0-nvidia.patch48
-rw-r--r--games-fps/prboom/metadata.xml11
-rw-r--r--games-fps/prboom/prboom-2.5.0.ebuild79
-rw-r--r--games-fps/quake1-data/Manifest4
-rw-r--r--games-fps/quake1-data/metadata.xml8
-rw-r--r--games-fps/quake1-data/quake1-data-2.40.ebuild56
-rw-r--r--games-fps/quake1-demodata/Manifest5
-rw-r--r--games-fps/quake1-demodata/metadata.xml8
-rw-r--r--games-fps/quake1-demodata/quake1-demodata-1.06.ebuild80
-rw-r--r--games-fps/quake1-killer/Manifest5
-rw-r--r--games-fps/quake1-killer/metadata.xml8
-rw-r--r--games-fps/quake1-killer/quake1-killer-2.2z.ebuild30
-rw-r--r--games-fps/quake1-rally/Manifest6
-rw-r--r--games-fps/quake1-rally/metadata.xml8
-rw-r--r--games-fps/quake1-rally/quake1-rally-1.2.ebuild37
-rw-r--r--games-fps/quake1-teamfortress/Manifest6
-rw-r--r--games-fps/quake1-teamfortress/metadata.xml8
-rw-r--r--games-fps/quake1-teamfortress/quake1-teamfortress-2.9.ebuild36
-rw-r--r--games-fps/quake1-textures/Manifest6
-rw-r--r--games-fps/quake1-textures/metadata.xml8
-rw-r--r--games-fps/quake1-textures/quake1-textures-20050820.ebuild50
-rw-r--r--games-fps/quake2-data/Manifest5
-rw-r--r--games-fps/quake2-data/metadata.xml8
-rw-r--r--games-fps/quake2-data/quake2-data-3.20.ebuild85
-rw-r--r--games-fps/quake2-demodata/Manifest5
-rw-r--r--games-fps/quake2-demodata/metadata.xml8
-rw-r--r--games-fps/quake2-demodata/quake2-demodata-3.14.ebuild59
-rw-r--r--games-fps/quake2-icculus/Manifest22
-rw-r--r--games-fps/quake2-icculus/files/0.16-rogue-armor.patch12
-rw-r--r--games-fps/quake2-icculus/files/0.16-rogue-nan.patch7
-rw-r--r--games-fps/quake2-icculus/files/README-postinstall79
-rw-r--r--games-fps/quake2-icculus/files/quake2-icculus-0.16.1-alsa.patch172
-rw-r--r--games-fps/quake2-icculus/files/quake2-icculus-0.16.1-amd64.patch18
-rw-r--r--games-fps/quake2-icculus/files/quake2-icculus-0.16.1-gcc41.patch14
-rw-r--r--games-fps/quake2-icculus/files/quake2-icculus-0.16.1-gentoo-paths.patch213
-rw-r--r--games-fps/quake2-icculus/files/quake2-icculus-0.16.1-gnusource.patch12
-rw-r--r--games-fps/quake2-icculus/files/quake2-icculus-0.16.1-ia64.patch97
-rw-r--r--games-fps/quake2-icculus/files/quake2-icculus-0.16.1-ldflags.patch56
-rw-r--r--games-fps/quake2-icculus/files/quake2-icculus-0.16.1-no-asm-io.patch25
-rw-r--r--games-fps/quake2-icculus/files/quake2-icculus-0.16.1-x11_mouse.patch13
-rw-r--r--games-fps/quake2-icculus/files/quake2-icculus-0.16.1-x11_soft.patch45
-rw-r--r--games-fps/quake2-icculus/files/quake2.xpm37
-rw-r--r--games-fps/quake2-icculus/metadata.xml14
-rw-r--r--games-fps/quake2-icculus/quake2-icculus-0.16.1-r1.ebuild195
-rw-r--r--games-fps/quake2-textures/Manifest5
-rw-r--r--games-fps/quake2-textures/metadata.xml8
-rw-r--r--games-fps/quake2-textures/quake2-textures-0_beta8.ebuild40
-rw-r--r--games-fps/quake3-alliance/Manifest6
-rw-r--r--games-fps/quake3-alliance/metadata.xml8
-rw-r--r--games-fps/quake3-alliance/quake3-alliance-3.3-r1.ebuild23
-rw-r--r--games-fps/quake3-alternatefire/Manifest6
-rw-r--r--games-fps/quake3-alternatefire/files/server.cfg109
-rw-r--r--games-fps/quake3-alternatefire/metadata.xml8
-rw-r--r--games-fps/quake3-alternatefire/quake3-alternatefire-2.0-r1.ebuild17
-rw-r--r--games-fps/quake3-bfp/Manifest5
-rw-r--r--games-fps/quake3-bfp/metadata.xml8
-rw-r--r--games-fps/quake3-bfp/quake3-bfp-1.2-r1.ebuild17
-rw-r--r--games-fps/quake3-bin/Manifest8
-rw-r--r--games-fps/quake3-bin/files/q3ded.conf.d5
-rw-r--r--games-fps/quake3-bin/files/q3ded.rc34
-rw-r--r--games-fps/quake3-bin/metadata.xml24
-rw-r--r--games-fps/quake3-bin/quake3-bin-1.32c-r2.ebuild105
-rw-r--r--games-fps/quake3-cpma/Manifest7
-rw-r--r--games-fps/quake3-cpma/files/server.cfg146
-rw-r--r--games-fps/quake3-cpma/metadata.xml37
-rw-r--r--games-fps/quake3-cpma/quake3-cpma-1.48.ebuild26
-rw-r--r--games-fps/quake3-data/Manifest5
-rw-r--r--games-fps/quake3-data/metadata.xml8
-rw-r--r--games-fps/quake3-data/quake3-data-1.32b.ebuild53
-rw-r--r--games-fps/quake3-defrag/Manifest17
-rw-r--r--games-fps/quake3-defrag/metadata.xml8
-rw-r--r--games-fps/quake3-defrag/quake3-defrag-1.91.21.ebuild44
-rw-r--r--games-fps/quake3-demo/Manifest5
-rw-r--r--games-fps/quake3-demo/metadata.xml11
-rw-r--r--games-fps/quake3-demo/quake3-demo-1.11-r1.ebuild63
-rw-r--r--games-fps/quake3-excessiveplus/Manifest5
-rw-r--r--games-fps/quake3-excessiveplus/metadata.xml20
-rw-r--r--games-fps/quake3-excessiveplus/quake3-excessiveplus-2.3.ebuild22
-rw-r--r--games-fps/quake3-lrctf/Manifest5
-rw-r--r--games-fps/quake3-lrctf/metadata.xml8
-rw-r--r--games-fps/quake3-lrctf/quake3-lrctf-1.1.ebuild16
-rw-r--r--games-fps/quake3-matrix/Manifest5
-rw-r--r--games-fps/quake3-matrix/metadata.xml8
-rw-r--r--games-fps/quake3-matrix/quake3-matrix-2.4_beta-r1.ebuild22
-rw-r--r--games-fps/quake3-nsco/Manifest7
-rw-r--r--games-fps/quake3-nsco/files/server.cfg97
-rw-r--r--games-fps/quake3-nsco/metadata.xml29
-rw-r--r--games-fps/quake3-nsco/quake3-nsco-1.93-r1.ebuild22
-rw-r--r--games-fps/quake3-osp/Manifest6
-rw-r--r--games-fps/quake3-osp/files/server.cfg165
-rw-r--r--games-fps/quake3-osp/metadata.xml8
-rw-r--r--games-fps/quake3-osp/quake3-osp-1.03a-r1.ebuild22
-rw-r--r--games-fps/quake3-ra3/Manifest5
-rw-r--r--games-fps/quake3-ra3/metadata.xml8
-rw-r--r--games-fps/quake3-ra3/quake3-ra3-1.76-r1.ebuild18
-rw-r--r--games-fps/quake3-reaction/Manifest6
-rw-r--r--games-fps/quake3-reaction/metadata.xml8
-rw-r--r--games-fps/quake3-reaction/quake3-reaction-3.2.ebuild20
-rw-r--r--games-fps/quake3-ruinhunters/Manifest6
-rw-r--r--games-fps/quake3-ruinhunters/metadata.xml8
-rw-r--r--games-fps/quake3-ruinhunters/quake3-ruinhunters-1.0a-r1.ebuild22
-rw-r--r--games-fps/quake3-teamarena/Manifest5
-rw-r--r--games-fps/quake3-teamarena/metadata.xml8
-rw-r--r--games-fps/quake3-teamarena/quake3-teamarena-1.32b.ebuild53
-rw-r--r--games-fps/quake3-threewave/Manifest6
-rw-r--r--games-fps/quake3-threewave/metadata.xml8
-rw-r--r--games-fps/quake3-threewave/quake3-threewave-1.7-r1.ebuild21
-rw-r--r--games-fps/quake3/Manifest7
-rw-r--r--games-fps/quake3/files/quake3-1.36-bots.patch20
-rw-r--r--games-fps/quake3/metadata.xml26
-rw-r--r--games-fps/quake3/quake3-1.36-r1.ebuild122
-rw-r--r--games-fps/quake3/quake3-9999.ebuild137
-rw-r--r--games-fps/quake4-bin/Manifest5
-rw-r--r--games-fps/quake4-bin/metadata.xml25
-rw-r--r--games-fps/quake4-bin/quake4-bin-1.4.2-r1.ebuild144
-rw-r--r--games-fps/quake4-data/Manifest4
-rw-r--r--games-fps/quake4-data/metadata.xml8
-rw-r--r--games-fps/quake4-data/quake4-data-1.0.2147.12.ebuild56
-rw-r--r--games-fps/quake4-demo/Manifest5
-rw-r--r--games-fps/quake4-demo/metadata.xml24
-rw-r--r--games-fps/quake4-demo/quake4-demo-1.0-r1.ebuild87
-rw-r--r--games-fps/quakeforge/Manifest7
-rw-r--r--games-fps/quakeforge/files/quakeforge-0.7.2-gentoo.patch33
-rw-r--r--games-fps/quakeforge/metadata.xml39
-rw-r--r--games-fps/quakeforge/quakeforge-0.7.2-r1.ebuild126
-rw-r--r--games-fps/quakeforge/quakeforge-0.7.2.ebuild122
-rw-r--r--games-fps/qudos/Manifest8
-rw-r--r--games-fps/qudos/files/qudos-0.40.1-gnusource.patch12
-rw-r--r--games-fps/qudos/files/qudos-0.40.1-libpng15.patch10
-rw-r--r--games-fps/qudos/metadata.xml17
-rw-r--r--games-fps/qudos/qudos-0.40.1.ebuild174
-rw-r--r--games-fps/red-blue-quake2/Manifest9
-rw-r--r--games-fps/red-blue-quake2/files/0.1-gentoo.patch63
-rw-r--r--games-fps/red-blue-quake2/files/red-blue-quake2-0.1-gcc41.patch39
-rw-r--r--games-fps/red-blue-quake2/files/red-blue-quake2-0.1-ldflags.patch92
-rw-r--r--games-fps/red-blue-quake2/metadata.xml8
-rw-r--r--games-fps/red-blue-quake2/red-blue-quake2-0.1.ebuild57
-rw-r--r--games-fps/rott/Manifest7
-rw-r--r--games-fps/rott/metadata.xml25
-rw-r--r--games-fps/rott/rott-1.1.2-r1.ebuild55
-rw-r--r--games-fps/rott/rott-1.1.2.ebuild55
-rw-r--r--games-fps/rtcw/Manifest7
-rw-r--r--games-fps/rtcw/files/wolf-ded.rc24
-rw-r--r--games-fps/rtcw/metadata.xml11
-rw-r--r--games-fps/rtcw/rtcw-1.41b.ebuild94
-rw-r--r--games-fps/rtcwmp-demo/Manifest7
-rw-r--r--games-fps/rtcwmp-demo/files/rtcwmp-demo-ded.rc24
-rw-r--r--games-fps/rtcwmp-demo/metadata.xml11
-rw-r--r--games-fps/rtcwmp-demo/rtcwmp-demo-1.1-r1.ebuild73
-rw-r--r--games-fps/rtcwmp-demo/rtcwmp-demo-1.1-r2.ebuild69
-rw-r--r--games-fps/rtcwsp-demo/Manifest6
-rw-r--r--games-fps/rtcwsp-demo/metadata.xml12
-rw-r--r--games-fps/rtcwsp-demo/rtcwsp-demo-1.1b-r1.ebuild58
-rw-r--r--games-fps/rtcwsp-demo/rtcwsp-demo-1.1b-r2.ebuild56
-rw-r--r--games-fps/sauerbraten/Manifest9
-rw-r--r--games-fps/sauerbraten/files/sauerbraten-2013.02.03-QA.patch50
-rw-r--r--games-fps/sauerbraten/files/sauerbraten-2013.02.03-system-enet.patch64
-rw-r--r--games-fps/sauerbraten/files/sauerbraten.conf28
-rw-r--r--games-fps/sauerbraten/files/sauerbraten.init74
-rw-r--r--games-fps/sauerbraten/metadata.xml14
-rw-r--r--games-fps/sauerbraten/sauerbraten-2013.02.03.ebuild123
-rw-r--r--games-fps/serious-sam-tfe/Manifest8
-rw-r--r--games-fps/serious-sam-tfe/metadata.xml5
-rw-r--r--games-fps/serious-sam-tfe/serious-sam-tfe-1_beta3.ebuild137
-rw-r--r--games-fps/serious-sam-tse/Manifest6
-rw-r--r--games-fps/serious-sam-tse/metadata.xml5
-rw-r--r--games-fps/serious-sam-tse/serious-sam-tse-1_beta1-r1.ebuild136
-rw-r--r--games-fps/serious-sam-tse/serious-sam-tse-1_beta1.ebuild142
-rw-r--r--games-fps/soldieroffortune-demo/Manifest5
-rw-r--r--games-fps/soldieroffortune-demo/metadata.xml11
-rw-r--r--games-fps/soldieroffortune-demo/soldieroffortune-demo-0.57-r1.ebuild67
-rw-r--r--games-fps/soldieroffortune/Manifest5
-rw-r--r--games-fps/soldieroffortune/metadata.xml11
-rw-r--r--games-fps/soldieroffortune/soldieroffortune-1.06a-r1.ebuild83
-rw-r--r--games-fps/tenebrae/Manifest10
-rw-r--r--games-fps/tenebrae/files/1.04-glhax.patch32
-rw-r--r--games-fps/tenebrae/files/tenebrae-1.04-exec-stack.patch36
-rw-r--r--games-fps/tenebrae/files/tenebrae-1.04-redef.patch19
-rw-r--r--games-fps/tenebrae/metadata.xml18
-rw-r--r--games-fps/tenebrae/tenebrae-1.04-r1.ebuild73
-rw-r--r--games-fps/tenebrae/tenebrae-1.04.ebuild69
-rw-r--r--games-fps/transfusion-bin/Manifest8
-rw-r--r--games-fps/transfusion-bin/files/transfusion2
-rw-r--r--games-fps/transfusion-bin/metadata.xml11
-rw-r--r--games-fps/transfusion-bin/transfusion-bin-1.01.ebuild49
-rw-r--r--games-fps/tribes2/Manifest5
-rw-r--r--games-fps/tribes2/metadata.xml8
-rw-r--r--games-fps/tribes2/tribes2-25034.ebuild76
-rw-r--r--games-fps/turtlearena/Manifest9
-rw-r--r--games-fps/turtlearena/files/turtlearena-0.6.1-build.patch201
-rw-r--r--games-fps/turtlearena/files/turtlearena-0.6.1-freetype.patch17
-rw-r--r--games-fps/turtlearena/metadata.xml13
-rw-r--r--games-fps/turtlearena/turtlearena-0.6.1-r1.ebuild122
-rw-r--r--games-fps/turtlearena/turtlearena-0.6.1.ebuild125
-rw-r--r--games-fps/unreal-tournament-bonuspacks/Manifest5
-rw-r--r--games-fps/unreal-tournament-bonuspacks/metadata.xml8
-rw-r--r--games-fps/unreal-tournament-bonuspacks/unreal-tournament-bonuspacks-436.ebuild46
-rw-r--r--games-fps/unreal-tournament-goty/Manifest8
-rw-r--r--games-fps/unreal-tournament-goty/metadata.xml39
-rw-r--r--games-fps/unreal-tournament-goty/unreal-tournament-goty-436.ebuild169
-rw-r--r--games-fps/unreal-tournament-goty/unreal-tournament-goty-451.ebuild171
-rw-r--r--games-fps/unreal-tournament-strikeforce/Manifest7
-rw-r--r--games-fps/unreal-tournament-strikeforce/metadata.xml8
-rw-r--r--games-fps/unreal-tournament-strikeforce/unreal-tournament-strikeforce-1.81.ebuild46
-rw-r--r--games-fps/unreal-tournament/Manifest6
-rw-r--r--games-fps/unreal-tournament/metadata.xml36
-rw-r--r--games-fps/unreal-tournament/unreal-tournament-451.ebuild120
-rw-r--r--games-fps/unreal/Manifest8
-rw-r--r--games-fps/unreal/files/unreal3
-rw-r--r--games-fps/unreal/metadata.xml24
-rw-r--r--games-fps/unreal/unreal-226.ebuild85
-rw-r--r--games-fps/urbanterror-data/Manifest7
-rw-r--r--games-fps/urbanterror-data/metadata.xml16
-rw-r--r--games-fps/urbanterror-data/urbanterror-data-4.3.2-r1.ebuild62
-rw-r--r--games-fps/urbanterror-data/urbanterror-data-4.3.2.ebuild64
-rw-r--r--games-fps/urbanterror/Manifest10
-rw-r--r--games-fps/urbanterror/files/urbanterror-4.3-respect_CFLAGS.patch53
-rw-r--r--games-fps/urbanterror/metadata.xml27
-rw-r--r--games-fps/urbanterror/urbanterror-4.3.2_p20170426.ebuild152
-rw-r--r--games-fps/urbanterror/urbanterror-4.3.2_p20170713.ebuild152
-rw-r--r--games-fps/urbanterror/urbanterror-4.3.2_p20170915.ebuild152
-rw-r--r--games-fps/ut2003-bonuspack-cm/Manifest5
-rw-r--r--games-fps/ut2003-bonuspack-cm/metadata.xml11
-rw-r--r--games-fps/ut2003-bonuspack-cm/ut2003-bonuspack-cm-1.ebuild38
-rw-r--r--games-fps/ut2003-bonuspack-de/Manifest5
-rw-r--r--games-fps/ut2003-bonuspack-de/metadata.xml11
-rw-r--r--games-fps/ut2003-bonuspack-de/ut2003-bonuspack-de-1.ebuild35
-rw-r--r--games-fps/ut2003-bonuspack-epic/Manifest6
-rw-r--r--games-fps/ut2003-bonuspack-epic/files/epic-installer48
-rw-r--r--games-fps/ut2003-bonuspack-epic/metadata.xml8
-rw-r--r--games-fps/ut2003-bonuspack-epic/ut2003-bonuspack-epic-1.ebuild110
-rw-r--r--games-fps/ut2003-data/Manifest5
-rw-r--r--games-fps/ut2003-data/metadata.xml11
-rw-r--r--games-fps/ut2003-data/ut2003-data-2107.ebuild135
-rw-r--r--games-fps/ut2003-demo/Manifest11
-rw-r--r--games-fps/ut2003-demo/files/benchmark37
-rw-r--r--games-fps/ut2003-demo/files/results.py61
-rw-r--r--games-fps/ut2003-demo/files/results.sh79
-rw-r--r--games-fps/ut2003-demo/files/ut2003-demo30
-rw-r--r--games-fps/ut2003-demo/metadata.xml11
-rw-r--r--games-fps/ut2003-demo/ut2003-demo-2206-r3.ebuild123
-rw-r--r--games-fps/ut2003/Manifest5
-rw-r--r--games-fps/ut2003/metadata.xml11
-rw-r--r--games-fps/ut2003/ut2003-2225-r4.ebuild99
-rw-r--r--games-fps/ut2004-action/Manifest5
-rw-r--r--games-fps/ut2004-action/metadata.xml8
-rw-r--r--games-fps/ut2004-action/ut2004-action-1.ebuild24
-rw-r--r--games-fps/ut2004-airbuccaneers/Manifest5
-rw-r--r--games-fps/ut2004-airbuccaneers/metadata.xml8
-rw-r--r--games-fps/ut2004-airbuccaneers/ut2004-airbuccaneers-1.6-r2.ebuild18
-rw-r--r--games-fps/ut2004-bonuspack-cbp1/Manifest5
-rw-r--r--games-fps/ut2004-bonuspack-cbp1/metadata.xml8
-rw-r--r--games-fps/ut2004-bonuspack-cbp1/ut2004-bonuspack-cbp1-1-r2.ebuild17
-rw-r--r--games-fps/ut2004-bonuspack-cbp2/Manifest6
-rw-r--r--games-fps/ut2004-bonuspack-cbp2/metadata.xml8
-rw-r--r--games-fps/ut2004-bonuspack-cbp2/ut2004-bonuspack-cbp2-1-r2.ebuild33
-rw-r--r--games-fps/ut2004-bonuspack-ece/Manifest6
-rw-r--r--games-fps/ut2004-bonuspack-ece/metadata.xml8
-rw-r--r--games-fps/ut2004-bonuspack-ece/ut2004-bonuspack-ece-1-r3.ebuild56
-rw-r--r--games-fps/ut2004-bonuspack-mega/Manifest5
-rw-r--r--games-fps/ut2004-bonuspack-mega/metadata.xml8
-rw-r--r--games-fps/ut2004-bonuspack-mega/ut2004-bonuspack-mega-1-r2.ebuild38
-rw-r--r--games-fps/ut2004-cor/Manifest6
-rw-r--r--games-fps/ut2004-cor/metadata.xml8
-rw-r--r--games-fps/ut2004-cor/ut2004-cor-1.01-r1.ebuild22
-rw-r--r--games-fps/ut2004-crossfire/Manifest5
-rw-r--r--games-fps/ut2004-crossfire/metadata.xml8
-rw-r--r--games-fps/ut2004-crossfire/ut2004-crossfire-1.95.ebuild31
-rw-r--r--games-fps/ut2004-data/Manifest4
-rw-r--r--games-fps/ut2004-data/metadata.xml8
-rw-r--r--games-fps/ut2004-data/ut2004-data-3186-r4.ebuild377
-rw-r--r--games-fps/ut2004-deathball/Manifest5
-rw-r--r--games-fps/ut2004-deathball/metadata.xml8
-rw-r--r--games-fps/ut2004-deathball/ut2004-deathball-2.4w.ebuild24
-rw-r--r--games-fps/ut2004-demo/Manifest5
-rw-r--r--games-fps/ut2004-demo/metadata.xml8
-rw-r--r--games-fps/ut2004-demo/ut2004-demo-3334.ebuild84
-rw-r--r--games-fps/ut2004-fragops/Manifest5
-rw-r--r--games-fps/ut2004-fragops/metadata.xml8
-rw-r--r--games-fps/ut2004-fragops/ut2004-fragops-2.20.ebuild22
-rw-r--r--games-fps/ut2004-hamsterbash/Manifest5
-rw-r--r--games-fps/ut2004-hamsterbash/metadata.xml8
-rw-r--r--games-fps/ut2004-hamsterbash/ut2004-hamsterbash-1.ebuild29
-rw-r--r--games-fps/ut2004-muralis/Manifest5
-rw-r--r--games-fps/ut2004-muralis/metadata.xml8
-rw-r--r--games-fps/ut2004-muralis/ut2004-muralis-1.15.ebuild21
-rw-r--r--games-fps/ut2004-strikeforce/Manifest5
-rw-r--r--games-fps/ut2004-strikeforce/metadata.xml8
-rw-r--r--games-fps/ut2004-strikeforce/ut2004-strikeforce-4.1.ebuild21
-rw-r--r--games-fps/ut2004-troopers/Manifest5
-rw-r--r--games-fps/ut2004-troopers/metadata.xml8
-rw-r--r--games-fps/ut2004-troopers/ut2004-troopers-6.0.ebuild28
-rw-r--r--games-fps/ut2004-unwheel/Manifest6
-rw-r--r--games-fps/ut2004-unwheel/metadata.xml8
-rw-r--r--games-fps/ut2004-unwheel/ut2004-unwheel-0_beta5.ebuild32
-rw-r--r--games-fps/ut2004/Manifest6
-rw-r--r--games-fps/ut2004/metadata.xml8
-rw-r--r--games-fps/ut2004/ut2004-3369.3-r1.ebuild140
-rw-r--r--games-fps/warsow-community-map-pack/Manifest4
-rw-r--r--games-fps/warsow-community-map-pack/metadata.xml8
-rw-r--r--games-fps/warsow-community-map-pack/warsow-community-map-pack-01.ebuild30
-rw-r--r--games-fps/wolfgl/Manifest13
-rw-r--r--games-fps/wolfgl/files/0.93-gcc.patch209
-rw-r--r--games-fps/wolfgl/files/0.93-gcc4.patch80
-rw-r--r--games-fps/wolfgl/files/0.93-sample-rate.patch11
-rw-r--r--games-fps/wolfgl/files/0.93-sprite.patch82
-rw-r--r--games-fps/wolfgl/files/wolfgl-0.93-as-needed.patch11
-rw-r--r--games-fps/wolfgl/metadata.xml15
-rw-r--r--games-fps/wolfgl/wolfgl-0.93-r1.ebuild57
-rw-r--r--games-fps/wolfgl/wolfgl-0.93-r2.ebuild56
-rw-r--r--games-fps/worldofpadman/Manifest7
-rw-r--r--games-fps/worldofpadman/files/worldofpadman-1.6-gentoo.patch92
-rw-r--r--games-fps/worldofpadman/metadata.xml14
-rw-r--r--games-fps/worldofpadman/worldofpadman-1.6.ebuild99
-rw-r--r--games-fps/xonotic/Manifest7
-rw-r--r--games-fps/xonotic/metadata.xml11
-rw-r--r--games-fps/xonotic/xonotic-0.8.1.ebuild117
-rw-r--r--games-fps/xonotic/xonotic-0.8.2.ebuild118
489 files changed, 17696 insertions, 0 deletions
diff --git a/games-fps/aaquake2/Manifest b/games-fps/aaquake2/Manifest
new file mode 100644
index 000000000000..eda9bc360d7d
--- /dev/null
+++ b/games-fps/aaquake2/Manifest
@@ -0,0 +1,10 @@
+AUX 0.1-gentoo.patch 2539 SHA256 60d4883d1c50bf806c04254db29c784f0baafc69c2d093c45cd89f94a6bd1c80 SHA512 2d288074c7181f0359d83b84dc4733d99924455fe733b67e52ee95976e8103536e2935b79ab9a1b8fc481c57d1c7472386fdb9e185db64adca61ea376aae1d09 WHIRLPOOL 338731d1be571bcb953228c8741e7f8decc92e8e9daed98cf1a3f897270f3656e53c71ca4af754d15aa6e9c9689e9987fc3f1d0218527f055018e3e9f4a0f39c
+AUX aaquake2-0.1-gcc41.patch 739 SHA256 18e8b7dcf3234b8422b90a32049a89ba3c91d29e4d6165e92c73185b168ef10f SHA512 d5678631a35cb19beb99001fdaeb2223c89e699cd57dbaee8c0c30d77d8d75cc9505bb382c1cbda00f308133c26551f2e528b2880de378df92e3ec5370e8135e WHIRLPOOL 50933b612f3c9aecf4c50fcfe713eb429b208000e8161545fd48477d60bc950c69ccaa87a0f10b7dd9bcc9fa5fe17c0aa0e68bbf3c550c07e1496648bc1d899d
+AUX aaquake2-0.1-glibc.patch 338 SHA256 68f6ac5ec933fa6a0bf88c6460627d65a54204361c5cf7987a0a4733e81f699f SHA512 6aca1c77b20030c3a70fbec76ec5c27ec767434069fa4cddcac478e52cc52d286b4c9765e50309e64aff0a0fcb3021c47059a5b027ad98cb5a3d3ced0d92e824 WHIRLPOOL f5ed5cc66cff5f9caa9008fd7e39b7fb255afa2cb650a87a361d6c6e4681f009047f3bea970aab70d42d6ed90cfe959b80f7fcb58db61157bb88dff57c6ae12b
+AUX aaquake2-0.1-ldflags.patch 3564 SHA256 26534690b339a0d064c80089f83e35af19767ce0ab66b81678c4f59827027871 SHA512 4ef54ac768e76e4abc917f9c6ddbde426bbd8c71510ce398bbebaf1a5969ee59ca642dedea32b3150a58c2550b14b0a8953123017bf101ec3fac09f90e92ad72 WHIRLPOOL de135c52107455be7cf1c9a441aca8e3bca2889e11fbc6453e8177cb5df683d99ee7933ad17acd5780ecd2d342b64dc6ee1b00a1bacbe2b43336eb6905fee642
+DIST q2source-3.21.zip 1477764 SHA256 c9200316de189638d0d997a0092f36b85f2c3f9e4ebe30f4b1c356745ad676ca SHA512 eb3fcf3327272b7472a044336be4d73111f5b9f50b4916609996ecb690555654990c1f86e63cd6e7d4a30844e66d3eca2e428e29a598bce52e953c326caf9752 WHIRLPOOL 7b372c99d97e4bf807b07d93726cba748116e21c9e5f3348e0571632742a2574cc395e762e7e30a529fe5d45a82e3f047605cc4d788fb1e67d0ee9a615d8af34
+DIST quake2-ref_softaa-0.1.tar.gz 12931 SHA256 e848919804e65c99dc900b640e5d5c6f018d2181908a48bb1b0330efa90d3a6a SHA512 d5f7e46485084217f5cb8fdcfa360106eafbfac9dad03e4853367e9cf6857a9789ec4d37d3bca656730282649b3e33b0ab04d4c0a73de36f794d98f3c048401c WHIRLPOOL 568c28704c9577d9b789b6fff32baf05ceaab692c65ebd84a2200222d98178e53909375a859dac35d60e37664e9450252c8d9d8d286252836b49663b12ab8f74
+EBUILD aaquake2-0.1.ebuild 1463 SHA256 2ba115f7e33e4c7870a7bd10b008e173c393b043881198d96e777ac92f9c2991 SHA512 f06bb2580e7029c435f43c7e25f86234871be6a750f6cb47ef1b7aa2eccff0a66b0f68d02efbf1b2c4adf02dcb111c833dca39f44db16e7217e29989d1fec94f WHIRLPOOL df539f5626c79a5079e9df83c854f3e8cf0cac221b1030868439bf898f7b6a27831464c46cd0d8de636bcf3bea9ba537f3e401bcf8cdf651bcb13edcb80d6c68
+MISC ChangeLog 2557 SHA256 c48e8f3f28ac17db8d705a137bfe93a6e48749f12f3c95c3f51848a03bc8c3eb SHA512 567b5e4fa9951159ab0d3395fb67848b15d6e8114d350e94ff81f9c2339829237c3cbb30db266043533a64c71c9f5abfaa76c32c413b810c311770e3f2796d20 WHIRLPOOL 2a64d20b320066a773640f362f955a73a9712202d369c891f2b4f5706cf719f04e6140805a32f92d0a43682b3e668c91ce8720ec70d91aa5733ede26d79a2334
+MISC ChangeLog-2015 1503 SHA256 ac4bfdd59ee9f5414be669656d766621a1e2e9e63d9140e56d0d2bf05ef10962 SHA512 2bf681c4835a7cd031ac8d51e3ae1b2337bb7b6e1554a77c6ece821b5527e76ecb4581bf6e5abdc9f72aa386c1f0472ea39e5e6dd57e5b937defe84b45729be3 WHIRLPOOL 92e56b14d7b95f03f3d8e01d0cb86c4fae1686e01e6cf7567eb7347d7dc995f1983eb6a8eb59ead6be1c03ca2cb62a0312563ae53e596ce7494353a91494e329
+MISC metadata.xml 627 SHA256 994fe8da648aa2676bead29f8842f4cd4d68dc8cb8e9b3dbbbbd71ede4be0f4a SHA512 f212c3b4649df80d15c769067fe816d491201fc3d9193f5a54bad860aa19aab23cd5d6f82be7985ffe9493079de3c56348052657ac55bbbe8e298392887fabc1 WHIRLPOOL c261ecc0fb612faeb11e91cd2d42deddafd062c93fc07bd25b53fa600d92938c7f4443bce82edc7ca8706f23a60a04247c2f535d8d061bf35a4e97836e9bf020
diff --git a/games-fps/aaquake2/aaquake2-0.1.ebuild b/games-fps/aaquake2/aaquake2-0.1.ebuild
new file mode 100644
index 000000000000..302eb4ad067f
--- /dev/null
+++ b/games-fps/aaquake2/aaquake2-0.1.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="text mode Quake II"
+HOMEPAGE="https://www.jfedor.org/aaquake2/"
+SRC_URI="mirror://idsoftware/source/q2source-3.21.zip
+ https://www.jfedor.org/aaquake2/quake2-ref_softaa-${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86"
+IUSE=""
+
+RDEPEND="media-libs/aalib"
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+S=${WORKDIR}/quake2-3.21/linux
+
+src_prepare() {
+ cd .. && epatch \
+ "${FILESDIR}"/${PV}-gentoo.patch \
+ "${FILESDIR}"/${P}-gcc41.patch
+ cd "${S}" && epatch \
+ "${FILESDIR}"/${P}-glibc.patch \
+ "${FILESDIR}"/${P}-ldflags.patch
+ sed -i \
+ -e "s:GENTOO_DIR:$(games_get_libdir)/${PN}:" sys_linux.c || die
+ sed -i \
+ -e "s:/etc/quake2.conf:${GAMES_SYSCONFDIR}/${PN}.conf:" \
+ sys_linux.c vid_so.c || die
+}
+
+src_compile() {
+ mkdir -p releasei386-glibc/ref_soft
+ emake -j1 \
+ GENTOO_CFLAGS="${CFLAGS}" \
+ GENTOO_DATADIR="${GAMES_DATADIR}"/quake2/baseq2/ \
+ build_release
+}
+
+src_install() {
+ cd release* || die
+
+ exeinto "$(games_get_libdir)"/${PN}
+ doexe gamei386.so ref_softaa.so
+ dosym ref_softaa.so "$(games_get_libdir)"/${PN}/ref_softx.so
+ dosym ref_softaa.so "$(games_get_libdir)"/${PN}/ref_soft.so
+ exeinto "$(games_get_libdir)"/${PN}/ctf
+ doexe ctf/gamei386.so
+
+ newgamesbin quake2 aaquake2
+
+ insinto "${GAMES_SYSCONFDIR}"
+ echo "$(games_get_libdir)"/${PN} > ${PN}.conf
+ doins ${PN}.conf
+
+ prepgamesdirs
+}
diff --git a/games-fps/aaquake2/files/0.1-gentoo.patch b/games-fps/aaquake2/files/0.1-gentoo.patch
new file mode 100644
index 000000000000..cc7bb1733f64
--- /dev/null
+++ b/games-fps/aaquake2/files/0.1-gentoo.patch
@@ -0,0 +1,90 @@
+--- linux/Makefile.old
++++ linux/Makefile
+@@ -54,7 +54,7 @@
+ RELEASE_CFLAGS=$(BASE_CFLAGS) -O6 -ffast-math -funroll-loops \
+ -fomit-frame-pointer -fexpensive-optimizations
+ else
+-RELEASE_CFLAGS=$(BASE_CFLAGS) -g -mpentiumpro -O6 -ffast-math -funroll-loops \
++RELEASE_CFLAGS=$(BASE_CFLAGS) -g $(GENTOO_CFLAGS) -DGENTOO_DATADIR=\\\"$(GENTOO_DATADIR)\\\" -O6 -ffast-math -funroll-loops \
+ -fomit-frame-pointer -fexpensive-optimizations
+ endif
+
+@@ -92,7 +92,7 @@
+ #############################################################################
+
+ ifeq ($(ARCH),axp)
+-TARGETS=$(BUILDDIR)/q2ded \
++TARGETS=\
+ $(BUILDDIR)/game$(ARCH).$(SHLIBEXT) \
+ $(BUILDDIR)/ctf/game$(ARCH).$(SHLIBEXT) \
+ # $(BUILDDIR)/xatrix/game$(ARCH).$(SHLIBEXT) \
+@@ -100,11 +100,7 @@
+ else
+ TARGETS=$(BUILDDIR)/quake2 \
+ $(BUILDDIR)/game$(ARCH).$(SHLIBEXT) \
+- $(BUILDDIR)/ref_soft.$(SHLIBEXT) \
+- $(BUILDDIR)/ref_softx.$(SHLIBEXT) \
+ $(BUILDDIR)/ref_softaa.$(SHLIBEXT) \
+- $(BUILDDIR)/ref_gl.$(SHLIBEXT) \
+- $(BUILDDIR)/ref_glx.$(SHLIBEXT) \
+ $(BUILDDIR)/ctf/game$(ARCH).$(SHLIBEXT) \
+ # $(BUILDDIR)/xatrix/game$(ARCH).$(SHLIBEXT) \
+ # $(BUILDDIR)/rogue/game$(ARCH).$(SHLIBEXT)
+@@ -125,9 +121,6 @@
+ build_release:
+ @-mkdir $(BUILD_RELEASE_DIR) \
+ $(BUILD_RELEASE_DIR)/client \
+- $(BUILD_RELEASE_DIR)/ded \
+- $(BUILD_RELEASE_DIR)/ref_soft \
+- $(BUILD_RELEASE_DIR)/ref_gl \
+ $(BUILD_RELEASE_DIR)/game \
+ $(BUILD_RELEASE_DIR)/ctf \
+ # $(BUILD_RELEASE_DIR)/xatrix \
+--- linux/sys_linux.c.old
++++ linux/sys_linux.c
+@@ -220,7 +220,7 @@
+ char curpath[MAX_OSPATH];
+ char *path;
+ #ifdef __i386__
+- const char *gamename = "gamei386.so";
++ const char *gamename = "GENTOO_DIR/gamei386.so";
+ #elif defined __alpha__
+ const char *gamename = "gameaxp.so";
+ #else
+@@ -250,6 +250,14 @@
+ {
+ Com_Printf ("LoadLibrary (%s)\n",name);
+ break;
++ } else {
++ sprintf (name, "%s", gamename);
++ game_library = dlopen (name, RTLD_LAZY );
++ if (game_library)
++ {
++ Com_Printf ("LoadLibrary (%s)\n",name);
++ break;
++ }
+ }
+ }
+
+--- qcommon/files.c.old
++++ qcommon/files.c
+@@ -865,7 +865,7 @@
+ //
+ // start up with baseq2 by default
+ //
+- FS_AddGameDirectory (va("%s/"BASEDIRNAME, fs_basedir->string) );
++ FS_AddGameDirectory (va(BASEDIRNAME) );
+
+ // any set gamedirs will be freed up to here
+ fs_base_searchpaths = fs_searchpaths;
+--- qcommon/qcommon.h.old
++++ qcommon/qcommon.h
+@@ -25,7 +25,7 @@
+
+ #define VERSION 3.21
+
+-#define BASEDIRNAME "baseq2"
++#define BASEDIRNAME GENTOO_DATADIR
+
+ #ifdef WIN32
+
diff --git a/games-fps/aaquake2/files/aaquake2-0.1-gcc41.patch b/games-fps/aaquake2/files/aaquake2-0.1-gcc41.patch
new file mode 100644
index 000000000000..bb2e8e5979e5
--- /dev/null
+++ b/games-fps/aaquake2/files/aaquake2-0.1-gcc41.patch
@@ -0,0 +1,39 @@
+--- game/g_local.h.old
++++ game/g_local.h
+@@ -458,11 +458,6 @@
+ extern int sm_meat_index;
+ extern int snd_fry;
+
+-extern int jacket_armor_index;
+-extern int combat_armor_index;
+-extern int body_armor_index;
+-
+-
+ // means of death
+ #define MOD_UNKNOWN 0
+ #define MOD_BLASTER 1
+--- ctf/g_local.h.old
++++ ctf/g_local.h
+@@ -466,11 +466,6 @@
+ extern int sm_meat_index;
+ extern int snd_fry;
+
+-extern int jacket_armor_index;
+-extern int combat_armor_index;
+-extern int body_armor_index;
+-
+-
+ // means of death
+ #define MOD_UNKNOWN 0
+ #define MOD_BLASTER 1
+@@ -556,10 +556,6 @@
+
+ extern cvar_t *sv_maplist;
+
+-//ZOID
+-extern qboolean is_quad;
+-//ZOID
+-
+ #define world (&g_edicts[0])
+
+ // item spawnflags
diff --git a/games-fps/aaquake2/files/aaquake2-0.1-glibc.patch b/games-fps/aaquake2/files/aaquake2-0.1-glibc.patch
new file mode 100644
index 000000000000..638e91b2c393
--- /dev/null
+++ b/games-fps/aaquake2/files/aaquake2-0.1-glibc.patch
@@ -0,0 +1,22 @@
+--- rw_aa.c.old
++++ rw_aa.c
+@@ -61,7 +61,7 @@
+ #include <signal.h>
+ #include <sys/mman.h>
+
+-#include <asm/io.h>
++#include <sys/io.h>
+
+ #include <aalib.h>
+
+--- rw_in_aa.c.old
++++ rw_in_aa.c
+@@ -46,7 +46,7 @@
+ #include <signal.h>
+ #include <sys/mman.h>
+
+-#include <asm/io.h>
++#include <sys/io.h>
+
+ #include <aalib.h>
+
diff --git a/games-fps/aaquake2/files/aaquake2-0.1-ldflags.patch b/games-fps/aaquake2/files/aaquake2-0.1-ldflags.patch
new file mode 100644
index 000000000000..dc2359ac48d7
--- /dev/null
+++ b/games-fps/aaquake2/files/aaquake2-0.1-ldflags.patch
@@ -0,0 +1,97 @@
+--- Makefile.old
++++ Makefile
+@@ -59,7 +59,7 @@
+ endif
+
+ DEBUG_CFLAGS=$(BASE_CFLAGS) -g
+-LDFLAGS=-ldl -lm
++LDLIBS=-ldl -lm
+ SVGALDFLAGS=-lvga -lm
+ XLDFLAGS=-L/usr/X11R6/lib -lX11 -lXext -lXxf86dga
+ AALDFLAGS=-lm -laa
+@@ -195,7 +195,7 @@
+ endif
+
+ $(BUILDDIR)/quake2 : $(QUAKE2_OBJS) $(QUAKE2_AS_OBJS)
+- $(CC) $(CFLAGS) -o $@ $(QUAKE2_OBJS) $(QUAKE2_AS_OBJS) $(LDFLAGS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(QUAKE2_OBJS) $(QUAKE2_AS_OBJS) $(LDLIBS)
+
+ $(BUILDDIR)/client/cl_cin.o : $(CLIENT_DIR)/cl_cin.c
+ $(DO_CC)
+@@ -374,7 +374,7 @@
+ $(BUILDDIR)/ded/cd_null.o
+
+ $(BUILDDIR)/q2ded : $(Q2DED_OBJS)
+- $(CC) $(CFLAGS) -o $@ $(Q2DED_OBJS) $(LDFLAGS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(Q2DED_OBJS) $(LDLIBS)
+
+ $(BUILDDIR)/ded/cmd.o : $(COMMON_DIR)/cmd.c
+ $(DO_DED_CC)
+@@ -503,7 +503,7 @@
+ $(BUILDDIR)/game/m_flash.o
+
+ $(BUILDDIR)/game$(ARCH).$(SHLIBEXT) : $(GAME_OBJS)
+- $(CC) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(GAME_OBJS)
++ $(CC) $(CFLAGS) $(LDFLAGS) $(SHLIBLDFLAGS) -o $@ $(GAME_OBJS)
+
+ $(BUILDDIR)/game/g_ai.o : $(GAME_DIR)/g_ai.c
+ $(DO_SHLIB_CC)
+@@ -682,7 +682,7 @@
+ $(BUILDDIR)/ctf/q_shared.o
+
+ $(BUILDDIR)/ctf/game$(ARCH).$(SHLIBEXT) : $(CTF_OBJS)
+- $(CC) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(CTF_OBJS)
++ $(CC) $(CFLAGS) $(LDFLAGS) $(SHLIBLDFLAGS) -o $@ $(CTF_OBJS)
+
+ $(BUILDDIR)/ctf/g_ai.o : $(CTF_DIR)/g_ai.c
+ $(DO_SHLIB_CC)
+@@ -821,7 +821,7 @@
+ $(BUILDDIR)/xatrix/q_shared.o
+
+ $(BUILDDIR)/xatrix/game$(ARCH).$(SHLIBEXT) : $(XATRIX_OBJS)
+- $(CC) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(XATRIX_OBJS)
++ $(CC) $(CFLAGS) $(LDFLAGS) $(SHLIBLDFLAGS) -o $@ $(XATRIX_OBJS)
+
+ $(BUILDDIR)/xatrix/g_ai.o : $(XATRIX_DIR)/g_ai.c
+ $(DO_SHLIB_CC)
+@@ -1048,7 +1048,7 @@
+ $(BUILDDIR)/rogue/q_shared.o
+
+ $(BUILDDIR)/rogue/game$(ARCH).$(SHLIBEXT) : $(ROGUE_OBJS)
+- $(CC) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(ROGUE_OBJS)
++ $(CC) $(CFLAGS) $(LDFLAGS) $(SHLIBLDFLAGS) -o $@ $(ROGUE_OBJS)
+
+ $(BUILDDIR)/rogue/dm_ball.o : $(ROGUE_DIR)/dm_ball.c
+ $(DO_SHLIB_CC)
+@@ -1291,15 +1291,15 @@
+ $(BUILDDIR)/ref_soft/rw_in_aa.o
+
+ $(BUILDDIR)/ref_soft.$(SHLIBEXT) : $(REF_SOFT_OBJS) $(REF_SOFT_SVGA_OBJS)
+- $(CC) $(CFLAGS) $(SHLIBLDFLAGS) -Xlinker -Map -Xlinker map.out -o $@ $(REF_SOFT_OBJS) \
++ $(CC) $(CFLAGS) $(LDFLAGS) $(SHLIBLDFLAGS) -Xlinker -Map -Xlinker map.out -o $@ $(REF_SOFT_OBJS) \
+ $(REF_SOFT_SVGA_OBJS) $(SVGALDFLAGS)
+
+ $(BUILDDIR)/ref_softx.$(SHLIBEXT) : $(REF_SOFT_OBJS) $(REF_SOFT_X11_OBJS)
+- $(CC) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(REF_SOFT_OBJS) \
++ $(CC) $(CFLAGS) $(LDFLAGS) $(SHLIBLDFLAGS) -o $@ $(REF_SOFT_OBJS) \
+ $(REF_SOFT_X11_OBJS) $(XLDFLAGS)
+
+ $(BUILDDIR)/ref_softaa.$(SHLIBEXT) : $(REF_SOFT_OBJS) $(REF_SOFT_AA_OBJS)
+- $(CC) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(REF_SOFT_OBJS) \
++ $(CC) $(CFLAGS) $(LDFLAGS) $(SHLIBLDFLAGS) -o $@ $(REF_SOFT_OBJS) \
+ $(REF_SOFT_AA_OBJS) $(AALDFLAGS)
+
+ $(BUILDDIR)/ref_soft/r_aclip.o : $(REF_SOFT_DIR)/r_aclip.c
+@@ -1445,10 +1445,10 @@
+ $(BUILDDIR)/ref_gl/gl_glx.o
+
+ $(BUILDDIR)/ref_gl.$(SHLIBEXT) : $(REF_GL_OBJS) $(REF_GL_FXMESA_OBJS)
+- $(CC) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(REF_GL_OBJS) $(REF_GL_FXMESA_OBJS) $(GLLDFLAGS)
++ $(CC) $(CFLAGS) $(LDFLAGS) $(SHLIBLDFLAGS) -o $@ $(REF_GL_OBJS) $(REF_GL_FXMESA_OBJS) $(GLLDFLAGS)
+
+ $(BUILDDIR)/ref_glx.$(SHLIBEXT) : $(REF_GL_OBJS) $(REF_GL_GLX_OBJS)
+- $(CC) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(REF_GL_OBJS) $(REF_GL_GLX_OBJS) $(GLXLDFLAGS)
++ $(CC) $(CFLAGS) $(LDFLAGS) $(SHLIBLDFLAGS) -o $@ $(REF_GL_OBJS) $(REF_GL_GLX_OBJS) $(GLXLDFLAGS)
+
+ $(BUILDDIR)/ref_gl/gl_draw.o : $(REF_GL_DIR)/gl_draw.c
+ $(DO_GL_SHLIB_CC)
diff --git a/games-fps/aaquake2/metadata.xml b/games-fps/aaquake2/metadata.xml
new file mode 100644
index 000000000000..0ac912115906
--- /dev/null
+++ b/games-fps/aaquake2/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>
+<longdescription>
+aaquake2 - Text Mode Quake II
+
+What?
+Just what you heard - text mode Quake II.
+
+Why?
+Why not? You can watch TV in text mode, you can play DVDs in text mode,
+you can play Quake 1 in text mode. Quake II is the logical next step.
+
+Or, as the author of ttyquake put it, "If you have to ask why, you're
+not a member of the intended audience."
+</longdescription>
+</pkgmetadata>
diff --git a/games-fps/aaut/Manifest b/games-fps/aaut/Manifest
new file mode 100644
index 000000000000..e3ff9d761037
--- /dev/null
+++ b/games-fps/aaut/Manifest
@@ -0,0 +1,5 @@
+AUX aaut 130 SHA256 a9b10b01c808a2cd17d87a2202f4ac2a9ba4efc56aca6c6fb158c4acbd27d5d4 SHA512 95ca9e718dafed4190b733cec3f2409cfeea251965084a79a8c22ffb4aca4e017867e062679403e9f21c0c975b02005808c25e829d07bc228b68c7ccedf9f7ae WHIRLPOOL 8fb006e1fefd0efc9a9bec0b300421ae24503c579c69e1ab9589f89c28f4bb2254b30503bfbe94efea7451bc78fe4db5146703783ecb47a09173a6660b415652
+EBUILD aaut-1.ebuild 435 SHA256 a477c495f0ec9d2609965fc7fd5d7c2c4915fd55efb6d0265d37e4bd8b9653fc SHA512 6b423580f585102d49f1e82e46f065b0aaff648a418c7dad8e0ac367ba243c53dfe4f09c2b8f16b3503ee79ad0a807bfdd46d997161d59e783cca5ca2d96bfca WHIRLPOOL d95b35e3ab0fe82b84f40d6775abce0b88debc24371d2afbe8a5cd72162a0cf2fcdc9f20dabcdb5ca8d223e460bca23b84ff292c9d47ebbe77665748fad54086
+MISC ChangeLog 2539 SHA256 36e2b632b0e84718424ee2da8633dcc4dfd4f54cadb2c849d8a6c43f9aac5166 SHA512 d684fc76f19f5095f4e416ffa28944596d4f81de236ba1f32d1d4390a05310929f959f4996611724f87f06bfb68eccb82af33dd5e7dbc3ff3ecc1a80b6286a4f WHIRLPOOL b0bfb3f048517b8009cc0cbbb328a390b5905dbf7ecf8514c6d19f66ffb534e1ea211c769363486c3e260c377b3a22645b2066bb6cb1ee6696ccf812f4006af2
+MISC ChangeLog-2015 428 SHA256 914de4a5b9988140adc6dc1ed34874abe6ffeb25bebd6dce81944564877eed1e SHA512 3ec4fa0ed70da22c0dd7bc5b522f5958b1b024b46642e8705180ca8dccb26ea838cd12131d09ca1f492d46959b12e57f8a701f0ad6ca82d66d9b599451541b4f WHIRLPOOL bf4378de925f53262a7dd2caf9212fd3ec0e5cba896991b6225df753834d2534ca10417430a5d6e3b81b08b540a72f559f67a628e017d1689964a42b26de4331
+MISC metadata.xml 473 SHA256 2a01297e93b836934c531eeaa72366c3235dd72ef642e141edd63235e48e89fb SHA512 5ecddbe93ff1401fdce2a74fa0b7f44a3e0475eeb21b2563578bc3a96559e87911d88f45f2bb9c085ec2c6ff778a5067557416a3e5bb94f398d1fb86061af56c WHIRLPOOL c0cef912a0d74adfa02ea7330d6ce9161f43661dba163a311cd71cae69af7acec5a7645142f4e6b5079169b3131e1a1e18e307680fd82793c21fb7e08873d6e8
diff --git a/games-fps/aaut/aaut-1.ebuild b/games-fps/aaut/aaut-1.ebuild
new file mode 100644
index 000000000000..e2824ffb32d8
--- /dev/null
+++ b/games-fps/aaut/aaut-1.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit games
+
+DESCRIPTION="ascii mode unreal tournament"
+HOMEPAGE="http://icculus.org/~chunky/ut/aaut/"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86"
+IUSE=""
+
+RDEPEND="|| (
+ games-fps/unreal-tournament
+ games-fps/unreal-tournament-goty )
+ media-libs/aalib"
+
+src_install() {
+ dogamesbin "${FILESDIR}/aaut"
+ prepgamesdirs
+}
diff --git a/games-fps/aaut/files/aaut b/games-fps/aaut/files/aaut
new file mode 100644
index 000000000000..d7f9aa805abf
--- /dev/null
+++ b/games-fps/aaut/files/aaut
@@ -0,0 +1,5 @@
+#!/bin/sh
+[ -z "${AAOPTS}" ] && AAOPTS="-width 150 -height 70"
+SDL_VIDEODRIVER="aalib"
+export AAOPTS SDL_VIDEODRIVER
+exec ut "$@"
diff --git a/games-fps/aaut/metadata.xml b/games-fps/aaut/metadata.xml
new file mode 100644
index 000000000000..1e1a02589cef
--- /dev/null
+++ b/games-fps/aaut/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>
+AAUT: Text Mode Unreal Tournament
+Remember, Kids. It's not big, and it's not clever
+
+Is UT just a little too high-end for your
+look-I'm-using-my-15-year-old-P100-as-a-Linux-box machine?
+</longdescription>
+</pkgmetadata>
diff --git a/games-fps/alephone-infinity/Manifest b/games-fps/alephone-infinity/Manifest
new file mode 100644
index 000000000000..34b9aaec6cd8
--- /dev/null
+++ b/games-fps/alephone-infinity/Manifest
@@ -0,0 +1,6 @@
+DIST MarathonInfinity.zip 30109883 SHA256 e8294df4dcd81b11d74ceedd6d13580ea13ca62d3952eb535b009387a9a4b90a SHA512 1f347615b96d2c07914cda78bdc6971311f3933af78debfcd9fa87a0a3048220726a082602b7a76f516f7b3dd3240d1ea843794ab34e4e9e7733342d9d9fe5b1 WHIRLPOOL a8fefe0dc8c625fcb2fba9da65148d622513189bbb62ae27545b27f39d610f96045498aeabe1a2b35487524e078041e14a17089dda488280fc038a6191ce0710
+DIST alephone-infinity.png 19193 SHA256 cb2e18364347b5e4e256401f2fd9b35b92ed3763375f2f4ea2c190915a7df5c0 SHA512 ad5c683aae4ee0afa306aaf33c9ad93a2eee59a4283166aada58a48a8dbbe8de62c8af0b04b143366448ef101ba8b2530cbc8bc5b3e1de62c5177775fae6bfd3 WHIRLPOOL b1179b771dc2b43823a648eb44b8197c3d777976820cc6650a7be7e8e415bfdff77b76a5331f9f56e8e49b7efd5df335b98f72e2e0645beb0c317e12706640c5
+EBUILD alephone-infinity-20080622.ebuild 939 SHA256 1fa1a8eb8ab47e0ec28bb6525a2ab332d654796720c35c07cdaee0cff01e4c85 SHA512 bb5c35b17f4d5c2f6d953c0e91bda5ddad0a11929808b1c87fd592cdd44097062d6406743b9e36782c18cb183c55e0b2f22646b72a625e5e4bc0b77a846ae76e WHIRLPOOL 096666c3420fd9bdcddbdedcb2a8defb22ffcead45a1dce7bfa09d9f6140d39095042f15806efa44013766b9269bf13416cf3361b5def8f2a2e2d40abef09ece
+MISC ChangeLog 2464 SHA256 c24bc5529da766baac0a397db3328ef12bb8f9e8736c389da6d7be2f7ef5efb4 SHA512 b4c2f15742e99db6388b7cc5b8f86d80855de0f5e8fd7281f925515625dcd504674a1c54de7a92b7c1638c81c22c044b59715dcf0bf9a343629730d86a769651 WHIRLPOOL 0de8f3acd31e4b48e45d2a10130f7ca126b928411522198fdc5466bafe1355b9c2de6f179dc01a541e264bbc3e045f0a84a0023069299d4942f1b80ba65ff84a
+MISC ChangeLog-2015 1534 SHA256 a68a115dad5e297377f4d6da6c39510180e5156c8abe5df22eb0d565692be483 SHA512 0a09d7a9710335aa1225e1549733030ecbece90f019a6d521eb0c053dc58d95c955906eed687bbdcd2756608f63df98637565b2a0d19d8f458341a68391f6c5d WHIRLPOOL 62d1772b26bc2878cc300df03e6ac42b8fdf1225e90539a2148158d68c898e0bccd8c56668a286373148f24f78f5917cdec56f4ca6ae4ba5036e0322a3750344
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-fps/alephone-infinity/alephone-infinity-20080622.ebuild b/games-fps/alephone-infinity/alephone-infinity-20080622.ebuild
new file mode 100644
index 000000000000..2d624e7e9fe8
--- /dev/null
+++ b/games-fps/alephone-infinity/alephone-infinity-20080622.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="Aleph One - Marathon Infinity"
+HOMEPAGE="http://trilogyrelease.bungie.org/"
+SRC_URI="http://files3.bungie.org/trilogy/MarathonInfinity.zip
+ mirror://gentoo/${PN}.png"
+
+LICENSE="bungie-marathon"
+SLOT="0"
+KEYWORDS="amd64 ~ppc64 x86"
+IUSE=""
+RESTRICT="mirror"
+
+RDEPEND="games-fps/alephone"
+DEPEND="app-arch/unzip"
+
+S=${WORKDIR}/Marathon\ Infinity
+
+src_install() {
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r *
+
+ doicon "${DISTDIR}"/${PN}.png
+ make_desktop_entry "alephone.sh infinity" "Aleph One - Marathon Infinity"
+
+ # Make sure the extra dirs exist in case the user wants to add some data
+ keepdir "${GAMES_DATADIR}"/${PN}/{Scripts,"Physics Models",Textures,Themes}
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ elog "To play this scenario, run:"
+ elog "alephone.sh infinity"
+}
diff --git a/games-fps/alephone-infinity/metadata.xml b/games-fps/alephone-infinity/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-fps/alephone-infinity/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-fps/alephone/Manifest b/games-fps/alephone/Manifest
new file mode 100644
index 000000000000..cf895eb311a6
--- /dev/null
+++ b/games-fps/alephone/Manifest
@@ -0,0 +1,7 @@
+AUX alephone.sh 442 SHA256 03d4eaec18bed5fd909604ff7efbcf4ba737a2cc76ca80161bdcb4bdf527d8b9 SHA512 e6bda9a286cfbc2971af2ac4fc3a119e680ca8fe987ab4a1599a23de766b09702fe2a2c7713598918884a998636f58fd15da083c4b5130e1ae85e09720b2d0f1 WHIRLPOOL b793d2144a6d1f12a93d33f500d60d77e92f97aae93fb37e4def83fefaf39b19cfde449aab67c28d8a9311ec91dc4dbc76ba825a7c782db6b7430bcc75213f20
+DIST AlephOne-20150620.tar.bz2 5031898 SHA256 c0f360dfb74a6264f95d375103a74000930cf0439ffb0464f915f5379443e133 SHA512 fb47969137b791f83b111171d7b92b3708597db294ce19fb682ce28c49edcd4cb84a6ce4dcceb6630812a8c676dfe7f39f3fb4642f40ef7086a0d6c6fdeba8df WHIRLPOOL a00150e8c28763d7d01a5d805e449247dc9ff612eb0e9f0aa2d10e7fcf17654342fa31eb5a2eeb3bc756c80cce84dd9664179977900d635e67401036c71a7c10
+EBUILD alephone-20150620-r1.ebuild 2126 SHA256 1d83a338a13df1059ce65854edfd52ce50ab27f543debf9368b63f0af2d6a854 SHA512 0836de5d9303996e619669e23b819ca4698796e1730d0697efc642784b3f70894f94dc9049945391ae0852d6fe0e44ed3a2835ed9f4ea95da02b5a462e6e60ee WHIRLPOOL 36f5b6ce510b4dd69e000d0ad9f646d7eed287d022e31a3b0046b97f38f4374d719c4b80a70d35854a20f35b6c708459895cdd653e2d1089b45817eb27e5d736
+EBUILD alephone-20150620.ebuild 2170 SHA256 884c3067ce970534c01854b2f3ea4e81a8efcf2e3fda410889c66d66a638c7d6 SHA512 f9b78c8c13a1f640a5969099e5a94567b1a69c8b62147a7e3b1102c0fa7623c0d4644558f9c5933030a0dd9f9efa8841f9f40092579f79d82ccbc081f6132175 WHIRLPOOL ebe3df6ffac59156773f952340d9f151c85c8109d643b37d870285800c16b672246df24459a7387bda4797741b48d83779a9dfb33cd087cd2f814141aac4663a
+MISC ChangeLog 3942 SHA256 554ac0e7a269ba051aac5a8b6c205dd1405840e58d9ce92b7bec8c633c1b5eec SHA512 4ba20e445df8f04bd61300c4c57d29f5a8967ae25eb03cc120ce2abe2c25910e299f293ca3d0c3635f0095d3cc9e59250b3003d8712e83cbce4dd8a801d70f79 WHIRLPOOL d3581d3602a5ce73b7f58fc61810f216906971b61a28322a369e7147882b72d8ded49befeace14af5c675aaa6bf78ab26034502c01dc9a21a35fd98b23b5457c
+MISC ChangeLog-2015 6249 SHA256 51a39595099270ea5e09f30336dc1673802d710f08aaa9286add57a3adac4504 SHA512 051d4470be1d6f16d2a0293d81b0d0f5f1d8c97a9063aa3954a248625aac0df60449f1ddcaa017a4af3d3067b18bebf090ed4fb7fd0fc0917495c21a1b77d362 WHIRLPOOL 3e9d2d030c321b2c767b82b7a5e5d718061f696082835e9a99e8e0912e23a3d24139c9cf382536d0c1adfba717a6111e6fd5335434080625cf59da91023103ff
+MISC metadata.xml 398 SHA256 c175daac46eddc675bf22bc5d71f7c01b54e112d2f0dc6b328d186dacb50bd33 SHA512 2c4d493556b9b5407016ff655d093dc22fc1462a6d92c21c6e37bd4ba6566b64cbf848668fa1db1442f8f712dca592c38779641e3c522b23c44056405061fbe9 WHIRLPOOL 972aa8140e09bbbc331906c4fe5195d1489e5a8962b827104ccc6c1c10ae9054d7a34d299058ccc28f5aeca69b02931d6027ee7a1113506c9774ff2725f67f68
diff --git a/games-fps/alephone/alephone-20150620-r1.ebuild b/games-fps/alephone/alephone-20150620-r1.ebuild
new file mode 100644
index 000000000000..4672cf9d6742
--- /dev/null
+++ b/games-fps/alephone/alephone-20150620-r1.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools eutils
+
+MY_P=AlephOne-${PV}
+DESCRIPTION="An enhanced version of the game engine from the classic Mac game, Marathon"
+HOMEPAGE="http://source.bungie.org/"
+SRC_URI="https://github.com/Aleph-One-Marathon/alephone/releases/download/release-${PV}/AlephOne-${PV}.tar.bz2"
+
+LICENSE="GPL-3+ BitstreamVera OFL-1.1"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc64 ~x86"
+IUSE="alsa curl ffmpeg mad mpeg sndfile speex vorbis"
+
+RDEPEND="
+ dev-libs/boost
+ dev-libs/expat
+ dev-libs/zziplib
+ media-libs/libpng:0
+ media-libs/libsdl[joystick,opengl,video]
+ media-libs/sdl-image[png]
+ media-libs/sdl-net
+ media-libs/sdl-ttf
+ virtual/opengl
+ virtual/glu
+ alsa? ( media-libs/alsa-lib )
+ curl? ( net-misc/curl )
+ ffmpeg? ( virtual/ffmpeg )
+ mad? ( media-libs/libmad )
+ mpeg? ( media-libs/smpeg )
+ sndfile? ( media-libs/libsndfile )
+ speex? ( media-libs/speex )
+ vorbis? ( media-libs/libvorbis )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ default
+
+ sed "s:GAMES_DATADIR:/usr/share:g" \
+ "${FILESDIR}"/${PN}.sh > "${T}"/${PN}.sh \
+ || die
+
+ # try using the system expat - bug #251108
+ sed -i \
+ -e '/SUBDIRS/ s/Expat//' \
+ -e 's/Expat\/libexpat.a/-lexpat/' \
+ Source_Files/Makefile.am || die
+ sed -i -e '/Expat/d' configure.ac || die
+ rm -r Source_Files/Expat || die
+
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --enable-lua \
+ --enable-opengl \
+ $(use_with alsa) \
+ $(use_with ffmpeg) \
+ $(use_with mad) \
+ $(use_with mpeg smpeg) \
+ $(use_with sndfile) \
+ $(use_with speex) \
+ $(use_with vorbis)
+}
+
+src_install() {
+ default
+ dobin "${T}"/${PN}.sh
+ doman docs/${PN}.6
+ dodoc docs/*.html
+}
+
+pkg_postinst() {
+ echo
+ elog "Read the docs and install the data files accordingly to play."
+ echo
+ elog "If you only want to install one scenario, read"
+ elog "http://traxus.bungie.org/index.php/Aleph_One_install_guide#Single_scenario_3"
+ elog "If you want to install multiple scenarios, read"
+ elog "http://traxus.bungie.org/index.php/Aleph_One_install_guide#Multiple_scenarios_3"
+ echo
+}
diff --git a/games-fps/alephone/alephone-20150620.ebuild b/games-fps/alephone/alephone-20150620.ebuild
new file mode 100644
index 000000000000..c7b76c3a9b97
--- /dev/null
+++ b/games-fps/alephone/alephone-20150620.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit autotools eutils games
+
+MY_P=AlephOne-${PV}
+DESCRIPTION="An enhanced version of the game engine from the classic Mac game, Marathon"
+HOMEPAGE="http://source.bungie.org/"
+SRC_URI="https://github.com/Aleph-One-Marathon/alephone/releases/download/release-${PV}/AlephOne-${PV}.tar.bz2"
+
+LICENSE="GPL-3+ BitstreamVera OFL-1.1"
+SLOT="0"
+KEYWORDS="amd64 ~ppc64 x86"
+IUSE="alsa curl ffmpeg mad mpeg sndfile speex vorbis"
+
+RDEPEND="media-libs/sdl-net
+ media-libs/sdl-ttf
+ media-libs/sdl-image[png]
+ media-libs/libsdl[joystick,opengl,video]
+ dev-libs/expat
+ dev-libs/zziplib
+ dev-libs/boost
+ media-libs/libpng:0
+ virtual/opengl
+ virtual/glu
+ alsa? ( media-libs/alsa-lib )
+ curl? ( net-misc/curl )
+ ffmpeg? ( virtual/ffmpeg )
+ mad? ( media-libs/libmad )
+ mpeg? ( media-libs/smpeg )
+ sndfile? ( media-libs/libsndfile )
+ speex? ( media-libs/speex )
+ vorbis? ( media-libs/libvorbis )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ sed "s:GAMES_DATADIR:${GAMES_DATADIR}:g" \
+ "${FILESDIR}"/${PN}.sh > "${T}"/${PN}.sh \
+ || die
+
+ # try using the system expat - bug #251108
+ sed -i \
+ -e '/SUBDIRS/ s/Expat//' \
+ -e 's/Expat\/libexpat.a/-lexpat/' \
+ Source_Files/Makefile.am || die
+ sed -i -e '/Expat/d' configure.ac || die
+ rm -r Source_Files/Expat || die
+
+ eautoreconf
+}
+
+src_configure() {
+ egamesconf \
+ --enable-lua \
+ --enable-opengl \
+ $(use_with alsa) \
+ $(use_with ffmpeg) \
+ $(use_with mad) \
+ $(use_with mpeg smpeg) \
+ $(use_with sndfile) \
+ $(use_with speex) \
+ $(use_with vorbis)
+}
+
+src_install() {
+ default
+ dogamesbin "${T}"/${PN}.sh
+ doman docs/${PN}.6
+ dohtml docs/*.html
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ echo
+ elog "Read the docs and install the data files accordingly to play."
+ echo
+ elog "If you only want to install one scenario, read"
+ elog "http://traxus.bungie.org/index.php/Aleph_One_install_guide#Single_scenario_3"
+ elog "If you want to install multiple scenarios, read"
+ elog "http://traxus.bungie.org/index.php/Aleph_One_install_guide#Multiple_scenarios_3"
+ echo
+}
diff --git a/games-fps/alephone/files/alephone.sh b/games-fps/alephone/files/alephone.sh
new file mode 100644
index 000000000000..62ac98f85770
--- /dev/null
+++ b/games-fps/alephone/files/alephone.sh
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+DIR=$(dirname "${0}")
+CMD=$(basename "${0}")
+ALEPHONE=${CMD%%.sh}
+
+if [[ -z "${1}" ]]
+then
+ echo "Usage: ${0} SCENARIO FLAGS"
+ echo "Where SCENARIO is one of:"
+ for d in "GAMES_DATADIR"/alephone-*
+ do
+ echo " ${d##*/alephone-}"
+ done
+ exit 2
+fi
+
+export ALEPHONE_DATA="GAMES_DATADIR/alephone-${1}"
+
+shift
+
+# kill ARTS, because we're just that nice
+if artsshell terminate 2> /dev/null
+then
+ sleep 2
+fi
+
+"${DIR}"/"${ALEPHONE}" "$@"
diff --git a/games-fps/alephone/metadata.xml b/games-fps/alephone/metadata.xml
new file mode 100644
index 000000000000..f7a55faa0217
--- /dev/null
+++ b/games-fps/alephone/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>
+ <upstream>
+ <remote-id type="sourceforge">marathon</remote-id>
+ <remote-id type="github">Aleph-One-Marathon/alephone</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-fps/alienarena/Manifest b/games-fps/alienarena/Manifest
new file mode 100644
index 000000000000..49a2ff999183
--- /dev/null
+++ b/games-fps/alienarena/Manifest
@@ -0,0 +1,6 @@
+AUX alienarena-20130827-format.patch 396 SHA256 5445b99187d5689ddaf8a03151e368f276da7f3883dae78911c9d2c204e203b7 SHA512 3ce9e89be705d52efcefc5af79c0d61bc2d19b5ed2f4074494560ead4293749e14bb74e9575f328e133c7db4e038630bf607f17edc9243d34a4cfab74bdd1873 WHIRLPOOL 83997e37eaa13f270a476e1fc7a048ec3afc66d933278d0c3bc0687e2f16e48892e3c45e85c847e35422890f9e448f74382bd957cc42cc2413f245db957f482c
+DIST alienarena-7.66-linux20130827.tar.gz 617636649 SHA256 29086098eacb18319e6dcc9156355c44db4b1aa8a4f7b0bb63e6856d8128b012 SHA512 6b86387b12fc82c01cf7945df5da7beb1a60e42a492b70096c64ace254d6300107a4b40762d20969eefbfe11c7365fbb3a5603b71f288e2330410feef48141a3 WHIRLPOOL 986774a9eb97c6ee0b325cc23801a5320c541ea201b51bf90aa8e13a37c03c24251f8d9f2f1efb2c33a8ff3257926265d440200984087264fee666691f1ee55b
+EBUILD alienarena-20130827.ebuild 1577 SHA256 8e3a40a3b00fa8ed6bb78c6ec52384ae1ff08240bc14c45d6a66c5b818e74f98 SHA512 2215be7235e71d5943e51abb69c57dbc59b4536cb72771d3e2fc00daf0d9db679a27bcad2f02f04d817cb1406ce2131221078226c47f7a8737d6a3ac30406862 WHIRLPOOL bccb33dd392f52100064f82ac09929ae3283575d2563b519bad8220023be9d1dba97fae31002a208a9d2f738915c7c37852b7386a0af0220a9fb1f84b45c82d5
+MISC ChangeLog 4090 SHA256 1f77af104e4e3b941a2acfe612cf6da3948075c70353e2fcfef70127b7d65c04 SHA512 2df86b920c7425862146c77264d4426aa7d8f603206c1cadf8b24847fb21c53cd6f0416025df92be6774634661030e84c7e8daf2a84c2260bc5203053c0dc05a WHIRLPOOL fb615952bef9ae194baa1f8244ce218b8fa73992a0f660a84a473fc86e76205905a343b2da1c069fc6ffbde25bc768178bf14f7742c1065d6db3968363d9850d
+MISC ChangeLog-2015 6835 SHA256 5a51503acc4a6c6d9335b2bc42dcafb8d2b088d84f0047ac7915c81f5ed42f93 SHA512 6e0b613752c27fa6f088aba42b32f06c2ab73946dba5c9d5920fd2b22bc636bb1aeabf211e9f0d0024d46db787b5bb19499213b1c64c3badb5236bbc88bad06d WHIRLPOOL 71548c624bcef0add47c2fad2c0140c3f3e661549ff99044ac8fdf47d679df240a03b95928194599be4d319a344a6c843e2acef9deabcfd849b42d879aaf9406
+MISC metadata.xml 386 SHA256 2077fbde61c29b307685ee2e3b127866b6a9c20cd71fe058fa3640bb5e615964 SHA512 dc9f5c2111b899663002e5024c9a32f96786d56418c67515a1e8c31f5aaa1aa2d8424c3005d180936a82e74010eb47eebdaac4d1f0abb7a4727908510f939e9a WHIRLPOOL 0e7a23aac7c07d646a77a8e613ecf5493ebf12d022a7d7c2b74a7e7566ae93b57cb14eee458c9c807e05bb5e397952cbe7a152efd327b7402da52b00964b56fb
diff --git a/games-fps/alienarena/alienarena-20130827.ebuild b/games-fps/alienarena/alienarena-20130827.ebuild
new file mode 100644
index 000000000000..4406027c14aa
--- /dev/null
+++ b/games-fps/alienarena/alienarena-20130827.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils gnome2-utils eutils games
+
+MY_PN=alienarena-7.66
+DESCRIPTION="Fast-paced multiplayer deathmatch game"
+HOMEPAGE="http://red.planetarena.org/"
+SRC_URI="http://icculus.org/alienarena/Files/${MY_PN}-linux${PV}.tar.gz
+ http://red.planetarena.org/files/${MY_PN}-linux${PV}.tar.gz"
+
+LICENSE="GPL-2 free-noncomm"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="dedicated +dga +vidmode +zlib"
+
+UIRDEPEND="virtual/jpeg:0
+ media-libs/openal
+ media-libs/libvorbis
+ media-libs/freetype:2
+ virtual/glu
+ virtual/opengl
+ dga? ( x11-libs/libXxf86dga )
+ vidmode? ( x11-libs/libXxf86vm )
+ zlib? ( sys-libs/zlib )
+ net-misc/curl"
+UIDEPEND="dga? ( x11-proto/xf86dgaproto )
+ vidmode? ( x11-proto/xf86vidmodeproto )"
+RDEPEND="!dedicated? ( ${UIRDEPEND} )"
+DEPEND="${RDEPEND}
+ !dedicated? ( ${UIDEPEND} )
+ virtual/pkgconfig"
+
+S=${WORKDIR}/${MY_PN/_/.}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-format.patch
+}
+
+src_configure() {
+ egamesconf \
+ --with-icondir=/usr/share/icons/hicolor/48x48/apps/ \
+ --without-system-libode \
+ --disable-documents \
+ $(use_enable !dedicated client) \
+ $(use_with zlib) \
+ $(use_with vidmode xf86vm) \
+ $(use_with dga xf86dga)
+}
+
+src_install() {
+ DOCS="docs/README.txt README" default
+ if ! use dedicated ; then
+ make_desktop_entry ${PN} "Alien Arena"
+ fi
+ 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-fps/alienarena/files/alienarena-20130827-format.patch b/games-fps/alienarena/files/alienarena-20130827-format.patch
new file mode 100644
index 000000000000..4a88eab840fc
--- /dev/null
+++ b/games-fps/alienarena/files/alienarena-20130827-format.patch
@@ -0,0 +1,11 @@
+--- source/game/p_client.c.old 2016-01-18 20:13:25.147714704 +0100
++++ source/game/p_client.c 2016-01-18 20:13:38.776476727 +0100
+@@ -2123,7 +2123,7 @@
+ #else
+ ent->ctype = 0; //alien is default
+ sprintf(modelpath, "players/%s/human", playermodel);
+- sprintf(ent->charModel, playermodel);
++ sprintf(ent->charModel, "%s", playermodel);
+ Q2_FindFile (modelpath, &file);
+ if(file)
+ {
diff --git a/games-fps/alienarena/metadata.xml b/games-fps/alienarena/metadata.xml
new file mode 100644
index 000000000000..a46f69349d3c
--- /dev/null
+++ b/games-fps/alienarena/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="vidmode">Link against <pkg>x11-libs/libXxf86vm</pkg>.
+ Required for full-screen support.</flag>
+ </use>
+</pkgmetadata>
diff --git a/games-fps/avp/Manifest b/games-fps/avp/Manifest
new file mode 100644
index 000000000000..53183f1776ba
--- /dev/null
+++ b/games-fps/avp/Manifest
@@ -0,0 +1,6 @@
+DIST avp-20150214.tar.gz 1718303 SHA256 3cfed951482deae709a7e0743ebba9e3ef27aeec2d68d0588e6361b6368a4a85 SHA512 c485a55ff455498bcf82bc17f2056d35d4c646bdf7809f4c326fc7063a9ce5db9e4893af67dff3f6bedb7d5f96e82f792d7f516044fdbab638113091a5505158 WHIRLPOOL 5fd6ee1d893c0feddab44fd84fb7d3bcd231bd337e28bf2089a2120b367bdc5f22bf9ddad5cb0b911065944266fe7d7efb207e64d34b7ba0090c252e74e8efd3
+EBUILD avp-20150214-r1.ebuild 853 SHA256 ebe35758e0816118cb13f5d3e807efc0318e4be5933701d6790619813a0d1718 SHA512 a4a61535565aca35c1460cd01730331862c2fe0395876961e7844995a2a5953ed8d86ff8b359b38558e824e3c05397dae505f8747f73ffaf1a121347c26812ea WHIRLPOOL e0b432789c261cce1042d61c58e2dd629200a0d53b3cf97be668b3114aea333925ca5b04978edd49d170f5c6ae28f3449edcdc39f8a7e01b61ecaf998be074dc
+EBUILD avp-20150214.ebuild 1014 SHA256 f782481f6722fe2ed9ada2f8acd8a42adc7a2f191c6f9042c889599ef1db91e3 SHA512 7dfe2b66ea8ec9ebab2ca09a6fc3c7529b16ca4df64dcec5796adfee6c9ce0ad1ab3970e83a77f460a2f269c0069c7ea50c8f882b4fdb42a52510cb34e82ae05 WHIRLPOOL bcc2741db78e996b85b3fa8d9564b966d41a9c98873ca9d69e6d2e724e87f121dd24820c217e0eb5eb422ffcfa547c072c86098bdc2fdf1d0bc17d93debdffdd
+MISC ChangeLog 2422 SHA256 f4b75b2e24ec3b41a61f91c8a448979e18fe27450e25443b75229d9ef7a70269 SHA512 6197f1590f4067316712715a8c67d727017f2bad894c66ae115af7ad62280b47a369b61d16bb85fdd0b71ca1a715e8a6dd14a5574ef5d72509edfcb063acf568 WHIRLPOOL 2c0958bfae209eb460a63396467a5ecddd66400672f6ab85ac0b1f45fa7bfefe9d1806fb28538565b54ae090d5af6006ceeaf4fd91e3abae689c7a44a2440c5a
+MISC ChangeLog-2015 4550 SHA256 45f32538c2036b2ff4a79149fec3469ec003eab2feb865aa7f66f4a9c1ceaab7 SHA512 52d290ee5329465c6cafd5260610360079f60dbb1d5d5aa1a9cebee13e5f0b1947378108dda109b6fcaf87485612f5ab5e313c9ca2c8d3c751ca65efdcfc71e3 WHIRLPOOL 30cdb15462f79eb63e153d5f56e42683e313d422340ff28fcd3613aa7fe5cdc339d67e9a6c7e2b67f8c162f58c9384ba138a21f9f2de8a8334b092e87876272c
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-fps/avp/avp-20150214-r1.ebuild b/games-fps/avp/avp-20150214-r1.ebuild
new file mode 100644
index 000000000000..7a41b588eaad
--- /dev/null
+++ b/games-fps/avp/avp-20150214-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 eutils cmake-utils
+
+DESCRIPTION="Linux port of Aliens vs Predator"
+HOMEPAGE="http://www.icculus.org/avp/"
+SRC_URI="http://www.icculus.org/avp/files/${P}.tar.gz"
+
+LICENSE="AvP"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+ media-libs/libsdl[video,joystick,opengl]
+ media-libs/openal"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+CMAKE_BUILD_TYPE=Release
+
+src_configure() {
+ local mycmakeargs=(
+ "-DCMAKE_VERBOSE_MAKEFILE=TRUE"
+ -DSDL_TYPE=SDL
+ -DOPENGL_TYPE=OPENGL
+ )
+
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+}
+
+src_install() {
+ dobin "${BUILD_DIR}/${PN}"
+ dodoc README
+}
+
+pkg_postinst() {
+ elog "Please follow the instructions in /usr/share/doc/${PF}"
+ elog "to install the rest of the game."
+}
diff --git a/games-fps/avp/avp-20150214.ebuild b/games-fps/avp/avp-20150214.ebuild
new file mode 100644
index 000000000000..e65a4044530a
--- /dev/null
+++ b/games-fps/avp/avp-20150214.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils cmake-utils games
+
+DESCRIPTION="Linux port of Aliens vs Predator"
+HOMEPAGE="http://www.icculus.org/avp/"
+SRC_URI="http://www.icculus.org/avp/files/${P}.tar.gz"
+
+LICENSE="AvP"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND="media-libs/openal
+ media-libs/libsdl[video,joystick,opengl]"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+CMAKE_BUILD_TYPE=Release
+
+src_configure() {
+ local mycmakeargs=(
+ "-DCMAKE_VERBOSE_MAKEFILE=TRUE"
+ -DSDL_TYPE=SDL
+ -DOPENGL_TYPE=OPENGL
+ "-DINSTALL_PREFIX=${GAMES_PREFIX}"
+ "-DINSTALL_DATADIR=${GAMES_DATADIR}/${PN}"
+ "-DINSTALL_BINDIR=${GAMES_BINDIR}"
+ )
+
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+}
+
+src_install() {
+ dogamesbin "${BUILD_DIR}/${PN}"
+ dodoc README
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ elog "Please follow the instructions in /usr/share/doc/${PF}"
+ elog "to install the rest of the game."
+}
diff --git a/games-fps/avp/metadata.xml b/games-fps/avp/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-fps/avp/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-fps/blackshades/Manifest b/games-fps/blackshades/Manifest
new file mode 100644
index 000000000000..2290a4ac7371
--- /dev/null
+++ b/games-fps/blackshades/Manifest
@@ -0,0 +1,8 @@
+AUX blackshades-datadir.patch 249 SHA256 8dd140b4c33a764edc44e77b4613cec798f173cca530b16087bb4764cb10dc4b SHA512 e1f564b29fee08ab3f335933acafb90ddf2e382f7ad72a7d7d9410d3a46222864e8370ee48bbd117493ee01c01a6ba58a8f68daa6641d250cb6c6dd135ac84dd WHIRLPOOL 01a5bff10e930ec260456b67624d846bb0cbdecb4cc0565fb8dc261038ed00025f7bcc9d1a2df2da21f944f7b9f82c30a5b21ff4356e30952b7ba8dd27275944
+DIST Textures.tar.bz2 340110 SHA256 084f4592e1c83a0ae79a14823f59fe210dc6ae83ff35111972d3b0239b276607 SHA512 42a2a28072972b0919a67a17ab06cf74d6bb611cbf91ff017d72726fa2d01b3c5dec905c6760a199b710eabfff8d980867269d6ad3476096beab5c4edb2cae10 WHIRLPOOL 7e182176a216939fd553f305b3cb49e1c1bc384a157571c0385a0d9a74a2ea19bbaca618e6ad8f0591940f564bd0f43b408ad75657ff2e0cf73ac6b14348b52b
+DIST blackshades-20070723.tar.bz2 761669 SHA256 2fbd1ed3778a834010fe4de94063149b60461d6e9d155b281747c2e14fc30056 SHA512 9477c59d685227650980c16aeb59f567764bc983c01da4e256b2ec582b5a063ef89222eb4ab0d42552bf6a4ffd95ba270229800decc9ba7a9b289f093c5b9c61 WHIRLPOOL 2eed49d46090509c4ddd1638b6066c7017453beae646d8dd7e42d6f54d8f8195b0a7f07b7ec22164f952acc0902e2a4c0dcb915dae8cd3e46567a14e68a92f02
+EBUILD blackshades-20070723-r1.ebuild 1266 SHA256 b31ef2f6f2ae2d3f93ee05b5dccfad8d53644b4ee0c7fd1932f99814fecc8178 SHA512 f6b39d40ece5a33caa9c95bedd97dc9060cb3f624f23472730e53129c5ebbca675e5edff0f93f5b675c2170645303755cf9aaf6e5ad02dc843f6175f7ddd5b76 WHIRLPOOL 70a071e860b9d711a76a7bbc5ffaa57a8e277f2088d38bd80ff25682b57a3061279d8bbdcdbe5c13e017be7a23b01bda4e7d98531dcadbf82fb09fbb8320679b
+EBUILD blackshades-20070723.ebuild 1272 SHA256 4056b48181b83bb0034b81a4236bea5362e6b8fdc01aae82242ea133db47a0e9 SHA512 02132285aa7b9187ca7ee845a9687d537fd6a27a66e5e2fc78ce96640684480b444613940d75499c72262829e17a764cb68ab70e6a9131b274468dd7ed2f0ce5 WHIRLPOOL fffe48c1cbeef4618e03f804ca2169c9afae68382e0a3e776862f83b294a4a81cea65a34a5d36f07839ed4a6b549a8143bf4c416a999c61bfc3e776094c6e983
+MISC ChangeLog 2746 SHA256 16e3fe9f29fb173e635cc724c832b2851ac111f41c6f9b4d38c2bddbfc5af896 SHA512 807a8e4c05002d8e9c7e5cec7aa5a5f77205abd06a0915bf16350f78ce58543a9f015f265259251e57eaf6b76910502f18d0d038342eaaf5102ac443aedd1ac4 WHIRLPOOL 7c88c79235d4e6526f8670f630e1cb63c3963b973c8066c3a31a5f7116e4b4aa08b337cc46cf0aa2fc17dce399cb5954a95eb1066af0c1e5a65c3622c32a7b9d
+MISC ChangeLog-2015 3340 SHA256 8cb22dc09d00e5fe0b0dde6a0cabd801011021ef9715d458b1da8cca269e8724 SHA512 2bd47eb813ff2fd03d530eebf36345ff3e307a1de43c5c357db68eb77d374428f7e5511763bf9193dd850297966cf8a0b27f09798a81ebd94b24e6d2d37f2395 WHIRLPOOL 335ae943f943e9025c68144eebf6650100f43bf863a26e7754d362a493b6fb3420c74aad7cb2ff41fbe420939400462e4e5c9dec1c29bea0aad347ae8fe2f3ca
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-fps/blackshades/blackshades-20070723-r1.ebuild b/games-fps/blackshades/blackshades-20070723-r1.ebuild
new file mode 100644
index 000000000000..a531ebbe5987
--- /dev/null
+++ b/games-fps/blackshades/blackshades-20070723-r1.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils
+
+DESCRIPTION="You control a psychic bodyguard, and try to protect the VIP"
+HOMEPAGE="http://www.wolfire.com/blackshades.html
+ http://www.icculus.org/blackshades/"
+SRC_URI="http://filesingularity.timedoctor.org/Textures.tar.bz2
+ mirror://gentoo/${P}.tar.bz2"
+
+LICENSE="blackshades"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="
+ media-libs/freealut
+ media-libs/libsdl
+ media-libs/libvorbis
+ media-libs/openal
+ virtual/glu
+ virtual/opengl"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${PN}
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-datadir.patch
+)
+
+src_prepare() {
+ default
+
+ rm -rf Data/Textures || die
+ rm -f ../Textures/{,Blood/}._* || die
+ mv -f ../Textures Data || die "mv failed"
+ sed -i \
+ -e "s/-O2 \(-Wall\) -g/${CXXFLAGS} \1/" \
+ -e "/^LINKER/s:$: ${LDFLAGS}:" \
+ Makefile \
+ || die "sed Makefile failed"
+ sed -i "s:@DATADIR@:/usr/share/${PN}:" \
+ Source/Main.cpp \
+ || die "sed Main.cpp failed"
+}
+
+src_compile() {
+ emake bindir
+ emake
+}
+
+src_install() {
+ newbin objs/blackshades ${PN}
+ insinto /usr/share/${PN}
+ doins -r Data
+ dodoc IF_THIS_IS_A_README_YOU_HAVE_WON Readme TODO uDevGame_Readme
+ make_desktop_entry ${PN} "Black Shades"
+}
diff --git a/games-fps/blackshades/blackshades-20070723.ebuild b/games-fps/blackshades/blackshades-20070723.ebuild
new file mode 100644
index 000000000000..7e976e731790
--- /dev/null
+++ b/games-fps/blackshades/blackshades-20070723.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="you control a psychic bodyguard, and try to protect the VIP"
+HOMEPAGE="http://www.wolfire.com/blackshades.html
+ http://www.icculus.org/blackshades/"
+SRC_URI="http://filesingularity.timedoctor.org/Textures.tar.bz2
+ mirror://gentoo/${P}.tar.bz2"
+
+LICENSE="blackshades"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="virtual/opengl
+ virtual/glu
+ media-libs/libvorbis
+ media-libs/openal
+ media-libs/freealut
+ media-libs/libsdl"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${PN}
+
+src_prepare() {
+ rm -rf Data/Textures
+ rm -f ../Textures/{,Blood/}._*
+ mv -f ../Textures Data || die "mv failed"
+ epatch "${FILESDIR}"/${PN}-datadir.patch
+ sed -i \
+ -e "s/-O2 \(-Wall\) -g/${CXXFLAGS} \1/" \
+ -e "/^LINKER/s:$: ${LDFLAGS}:" \
+ Makefile \
+ || die "sed Makefile failed"
+ sed -i "s:@DATADIR@:${GAMES_DATADIR}/${PN}:" \
+ Source/Main.cpp \
+ || die "sed Main.cpp failed"
+}
+
+src_compile() {
+ emake bindir
+ emake
+}
+
+src_install() {
+ newgamesbin objs/blackshades ${PN}
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r Data
+ dodoc IF_THIS_IS_A_README_YOU_HAVE_WON Readme TODO uDevGame_Readme
+ make_desktop_entry ${PN} "Black Shades"
+ prepgamesdirs
+}
diff --git a/games-fps/blackshades/files/blackshades-datadir.patch b/games-fps/blackshades/files/blackshades-datadir.patch
new file mode 100644
index 000000000000..ee6cdf8e0364
--- /dev/null
+++ b/games-fps/blackshades/files/blackshades-datadir.patch
@@ -0,0 +1,18 @@
+--- a/Source/Main.cpp
++++ b/Source/Main.cpp
+@@ -1,6 +1,7 @@
+ /********************> Headers <*****/
+
+ #include "Game.h"
++#include <unistd.h>
+
+
+
+@@ -17,6 +18,7 @@
+ int main( int argc, char *argv[] )
+
+ {
++ chdir("@DATADIR@");
+
+
+ #ifdef OS9
diff --git a/games-fps/blackshades/metadata.xml b/games-fps/blackshades/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-fps/blackshades/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-fps/darkplaces/Manifest b/games-fps/darkplaces/Manifest
new file mode 100644
index 000000000000..2edfdda6515b
--- /dev/null
+++ b/games-fps/darkplaces/Manifest
@@ -0,0 +1,7 @@
+DIST darkplacesengine20140513.zip 28113487 SHA256 69e5a50991884196e403bd6aab4a33bba553a934a167be366672ab4e223b06c9 SHA512 45864b590057c6de0ea978b3cc967feb879b87b2d376f3b4d8525e037b10ca1fc68599c152506494bb06669c6c2304e0aa0ee1b28f7a0d589d10c23f7285052c WHIRLPOOL 0fca6d87c9d3482112992965b70f829dfd6ecd926d940ad66f5f75aec4438c2b5b33fb6ac51f69c5199f06d53fbc16f1c8d0780db40b8cbd71c7ceb0e67a4048
+DIST fuhquake-lits.rar 8388829 SHA256 066fd58e2a6d157a1aa7925334d7e3e6cffa7f5c556e707bc31da8bfecea873c SHA512 6e59f5e08a6c401b329b86b0cd677a04b1a5aee11f24973c77c9e7ea50cab9dedf4fc15c4f3d6b73bdc87bacdc9612a3c244d0a4ceceef943abb6e256ac23925 WHIRLPOOL d398b57c03d02c8180f8ca93f6964ac2118ef50cace3ecbc9da9113b1e91ed3a7b7e5473ebb9ad2f5198828eb8565c7c0470aea2095152b2898335562bef821d
+DIST id1.pk3 350470 SHA256 f1ee6e144d1942ebf91a8c71d0333eac94c73efae35377fbe7ae43e0e4ab37dc SHA512 d4d7233bc1e5049e89d09448818219b0ce7941fecde5381cd95933e4c96ebc9b4e34ff7eae5eb5d0d1e3cc2ceb4f5254f4d600aded7dda373713149817621331 WHIRLPOOL 30fe7e6d6ac6408c54e704586d4f4e15d139c0330e4f3e758651bfc2e6582eadae08c590e87264cfb26faae56a7033b383d51f93bf54ddfce7db38e47d569280
+EBUILD darkplaces-20140513.ebuild 4441 SHA256 e5c8ed4ad3f2388080db604b9eb31cdf665e1d230a11cf4e43f9c4920a582b55 SHA512 534a1d198c5d3f55751b20ab1de1ab1dbb904ca8ad085b414e8fcc8024d6b53bb1a3239f237c050061f292348d51f281390f7579e36eb3dc3e6cce1fd48ef95e WHIRLPOOL 59afa401cd14860389eeb684132dc6e9a3720097bd39e7c61c09a96bf12c6b2e9772c638a58de475503071a77becc2caf0bc3bdf7e4ad59fdb55301062fda1f8
+MISC ChangeLog 3430 SHA256 12c35a6c2efb9902b8ffe4a47a431a3e7d94311d9a7ef14771c63a1ed5fba0b2 SHA512 322d9ac63a1d7ca2280ea20e5e72b032fef052cb721bb1190f2b2bd5811e9725b6b32f17474473c28886e82fa6e55b80800bd838922e1a0ce4bf2dd58afc3666 WHIRLPOOL 1c9d1f7a42127027dd60a9add7e0230e920415845b9bac50a2e912027f0f669c85e2d06118fe901f952ced808b663a7df68dfa08e5ca0b5f9ee16f12f57bb65a
+MISC ChangeLog-2015 3307 SHA256 79bcd4fe4c3d8659f5f887a9a16dde6fc601984f7a36f144f0e31ec42b3dafd9 SHA512 4aea1945eadacb9aca9c4af918171c1703ecb553dba0a0ab39c8e44a9af718623dd4fe16edff17af382929220e942d4b8f03500d24496716b60dbfd749791471 WHIRLPOOL c6b8cd293cc7f96259518ac1bd994ea1314987ed5f5ee4df9f1f7452236630b9182fec89e822fed490f8646345c1c46721e1aa9b5fff97f498a90991a508c6e6
+MISC metadata.xml 567 SHA256 1ac394967e8eae3810269c61595c8d3d5466b4088f245f7f0543189fe63bf4b9 SHA512 719f0053b4390b1dccb63e70bddb518f9aad79c8b240dd37ed16b1680a1053a51e309632893c87c51d6057e2602bc6a3fbe8c7d11330da76d5646b3c8c542bbd WHIRLPOOL dfa0530ade2a873d6992b65de47fc03b45d4c72594c29965e13ee110e153a8f407775798496e09d1dd285018fd4c756e96077f9c1124b3ea20ac47a170019d9a
diff --git a/games-fps/darkplaces/darkplaces-20140513.ebuild b/games-fps/darkplaces/darkplaces-20140513.ebuild
new file mode 100644
index 000000000000..b203f597fc6a
--- /dev/null
+++ b/games-fps/darkplaces/darkplaces-20140513.ebuild
@@ -0,0 +1,186 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit unpacker eutils flag-o-matic games
+
+# Latest versions are in http://icculus.org/twilight/darkplaces/files/
+MY_PV=${PV/_beta/beta}
+MY_ENGINE="${PN}engine${MY_PV}.zip"
+
+# Different Quake 1 engines expect the lights in different directories
+# http://www.fuhquake.net/download.html and http://www.kgbsyndicate.com/romi/
+MY_LIGHTS="fuhquake-lits.rar"
+
+DESCRIPTION="Enhanced engine for iD Software's Quake 1"
+HOMEPAGE="http://icculus.org/twilight/darkplaces/"
+SRC_URI="http://icculus.org/twilight/${PN}/files/${MY_ENGINE}
+ lights? (
+ http://www.fuhquake.net/files/extras/${MY_LIGHTS}
+ http://www.kgbsyndicate.com/romi/id1.pk3 )"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="alsa cdinstall cdsound debug dedicated demo lights opengl oss sdl textures"
+
+UIRDEPEND="virtual/jpeg:0
+ media-libs/libogg
+ media-libs/libvorbis
+ virtual/opengl
+ alsa? ( media-libs/alsa-lib )
+ sdl? ( media-libs/libsdl )
+ x11-libs/libX11
+ x11-libs/libXpm
+ x11-libs/libXxf86dga
+ x11-libs/libXxf86vm"
+UIDEPEND="x11-proto/xextproto
+ x11-proto/xf86dgaproto
+ x11-proto/xf86vidmodeproto
+ x11-proto/xproto"
+RDEPEND="net-misc/curl
+ cdinstall? ( games-fps/quake1-data )
+ demo? ( games-fps/quake1-demodata )
+ textures? ( >=games-fps/quake1-textures-20050820 )
+ opengl? ( ${UIRDEPEND} )
+ !opengl? ( sdl? ( ${UIRDEPEND} ) )
+ !opengl? ( !sdl? ( !dedicated? ( ${UIRDEPEND} ) ) )"
+DEPEND="lights? ( || (
+ app-arch/unrar
+ app-arch/rar ) )
+ opengl? (
+ ${UIRDEPEND}
+ ${UIDEPEND} )
+ !opengl? ( sdl? (
+ ${UIRDEPEND}
+ ${UIDEPEND} ) )
+ !opengl? ( !sdl? ( !dedicated? (
+ ${UIRDEPEND}
+ ${UIDEPEND} ) ) )
+ virtual/pkgconfig
+ app-arch/unzip"
+
+S=${WORKDIR}/${PN}
+dir=${GAMES_DATADIR}/quake1
+
+opengl_client() { use opengl || ( ! use dedicated && ! use sdl ) }
+
+src_unpack() {
+ if use lights ; then
+ unpack "${MY_LIGHTS}"
+ unpack_zip "${DISTDIR}"/id1.pk3
+ mv *.lit maps/ || die
+ mv ReadMe.txt rtlights.txt
+ fi
+ unpack "${MY_ENGINE}"
+ unpack ./${PN}*.zip
+}
+
+src_prepare() {
+ rm "${WORKDIR}"/README-SDL.txt
+ cd "${S}"
+ rm mingw_note.txt
+
+ strip-flags
+
+ # Only additional CFLAGS optimization is the -march flag
+ local march=$(get-flag -march)
+ sed -i \
+ -e "s:-lasound:$(pkg-config --libs alsa):" \
+ -e "/^CPUOPTIMIZATIONS/d" \
+ -e '/^OPTIM_RELEASE/s/=.*/=$(CFLAGS)/' \
+ -e '/^OPTIM_DEBUG/s/=.*/=$(CFLAGS)/' \
+ -e '/^LDFLAGS_DEBUG/s/$/ $(LDFLAGS)/' \
+ -e '/^LDFLAGS_RELEASE/s/$/ $(LDFLAGS)/' \
+ -e "s:strip:true:" \
+ makefile.inc || die
+
+ if ! use cdsound ; then
+ # Turn the CD accesses off
+ sed -i \
+ -e "s:/dev/cdrom:/dev/null:" \
+ cd_linux.c || die
+ sed -i \
+ -e 's:COM_CheckParm("-nocdaudio"):1:' \
+ cd_shared.c || die
+ fi
+}
+
+src_compile() {
+ local opts="DP_FS_BASEDIR=\"${dir}\" DP_LINK_TO_LIBJPEG=1"
+
+ # Preferred sound is alsa
+ local sound_api="NULL"
+ use oss && sound_api="OSS"
+ use alsa && sound_api="ALSA"
+ opts="${opts} DP_SOUND_API=${sound_api}"
+
+ local type="release"
+ use debug && type="debug"
+
+ # Only compile a maximum of 1 client
+ if use sdl ; then
+ emake ${opts} "sdl-${type}"
+ elif opengl_client ; then
+ emake ${opts} "cl-${type}"
+ fi
+
+ if use dedicated ; then
+ emake ${opts} "sv-${type}"
+ fi
+}
+
+src_install() {
+ if opengl_client || use sdl ; then
+ local type=glx
+
+ use sdl && type=sdl
+
+ # darkplaces executable is needed, even just for demo
+ newgamesbin "${PN}-${type}" ${PN}
+ newicon darkplaces72x72.png ${PN}.png
+
+ if use demo ; then
+ # Install command-line for demo, even if not desktop entry
+ games_make_wrapper ${PN}-demo "${PN} -game demo"
+ fi
+
+ if use demo && ! use cdinstall ; then
+ make_desktop_entry ${PN}-demo "Dark Places (Demo)"
+ else
+ # Full version takes precedence over demo
+ make_desktop_entry ${PN} "Dark Places"
+ fi
+ fi
+
+ if use dedicated ; then
+ newgamesbin ${PN}-dedicated ${PN}-ded
+ fi
+
+ dodoc *.txt ChangeLog todo "${WORKDIR}"/*.txt
+
+ if use lights ; then
+ insinto "${dir}"/id1
+ doins -r "${WORKDIR}"/{cubemaps,maps}
+ if use demo ; then
+ # Set up symlinks, for the demo levels to include the lights
+ local d
+ for d in cubemaps maps ; do
+ dosym "${dir}/id1/${d}" "${dir}/demo/${d}"
+ done
+ fi
+ fi
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+
+ if ! use cdinstall && ! use demo ; then
+ elog "Place pak0.pak and pak1.pak in ${dir}/id1"
+ fi
+
+ if use sdl ; then
+ ewarn "Select opengl with alsa, instead of sdl USE flag, for better audio latency."
+ fi
+}
diff --git a/games-fps/darkplaces/metadata.xml b/games-fps/darkplaces/metadata.xml
new file mode 100644
index 000000000000..f8d65d3d1216
--- /dev/null
+++ b/games-fps/darkplaces/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>
+ <use>
+ <flag name="cdsound">Enables using CD audio in the engine</flag>
+ <flag name="demo">Uses the demo data from quake1 (quake1-demodata)</flag>
+ <flag name="lights">Install and setup the updated light maps</flag>
+ <flag name="textures">Install and setup the updated textures</flag>
+ </use>
+</pkgmetadata>
diff --git a/games-fps/doom-data/Manifest b/games-fps/doom-data/Manifest
new file mode 100644
index 000000000000..5bcf817a901d
--- /dev/null
+++ b/games-fps/doom-data/Manifest
@@ -0,0 +1,5 @@
+DIST doom1.wad.bz2 1689021 SHA256 77009084330d2d14540ffd78b05deef4cb5cb4058cb50cf17316fede43d4dcae SHA512 f3aa78fd1e36d2dbd176c8c5284f8cee4f39d8e34df5386fd668565e752410e2b776413c78c1e7a3571695a1668f1e4820338ebc9a2b1a0ed1a81896260534fe WHIRLPOOL 801adc114c3d2c0029e80608641e7d4e2330334305b38fc05ba1bc4caf2db188635c862d2a743b54ce8b908b541e012743242d7b91d45d4ef2a6b514c5e338a5
+EBUILD doom-data-1-r1.ebuild 993 SHA256 87b04b49457f9b27b30e8f6a7e912daf47efc0aa173468c36f064dd579afef3f SHA512 5faae3ef52e52f990a6ece6ae9c9398c892b09b7a2393fc1af6d774721b921f82848083a8bd765614aaf8de44c4ca2f437a2af2ec9dace6f9c2896abe67a2363 WHIRLPOOL c6b3b439eca41d1d4214a3aa8aaeeb186fed1752a805f9f2e48c7c97fde1c83e3f7989bb5d8fa7bce1a4a85157da5b73e91db52b977fa3d46f77d37c0f02f96d
+MISC ChangeLog 2432 SHA256 f71abbad29efda9ee17378d57af2e44cdef89d919f42a34ad922bd2902f60949 SHA512 f7c20c665e648bab97f2993b113fa54cf4cb199e947aa35a42daf3afc70ffd346c238901d8e2f8bbfb25c1dc61834c051b52ebf9255bf357ca10f3e33be8dec2 WHIRLPOOL 42d324f79af7209053ffa03333d5f868a8874e5fcdb79b2e85e67153b26634d7862b43441282d76d539ebcea8eb1f2f4f6c0bd776b0124b15f7d064a0cfcf56e
+MISC ChangeLog-2015 1308 SHA256 e3e70d1cb31f16055ded36c20b6a691152903f87f0f4189b8417e506225e77ed SHA512 d735fbb2082f058996d19e46c92d324061dded569e02d1ec1496e3e3e28353a26a0959e5c71c0a716b8044ed74cbc3d7b568f3bdbcdcfd481c78df78d0a35fd9 WHIRLPOOL f938d9b47b9b3870aab229f8f5e01acea227d9ffd753f331f3a23a4fe6fca88772654ff463d67dafedf86e003c250a56cd2499e2bd961b17ea1af4707cec1563
+MISC metadata.xml 347 SHA256 b9a6d614beaffc89acbc06243fc729e0ed1edfbd8ac161bcdc9f94f12af7332c SHA512 2cf8dbebdc411b37294374d196748fa23a741e5ae37946d87b74fabba84dc67811db3f5e215b82be1ec0e8543ea4e0b5e3a5e46412dffb576b3492ebb79edd3a WHIRLPOOL 9cc4a72e3dd0222090c3d5fdba5b0b4705fd6f5752be902c769b6de9a5b7467a75839b2bdeea42acbf9e315a7c8b3dd3f900536c46c7b1b2ce7a259b248a4c9f
diff --git a/games-fps/doom-data/doom-data-1-r1.ebuild b/games-fps/doom-data/doom-data-1-r1.ebuild
new file mode 100644
index 000000000000..eed178d54e5c
--- /dev/null
+++ b/games-fps/doom-data/doom-data-1-r1.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 games
+
+DESCRIPTION="collection of doom wad files from id"
+HOMEPAGE="http://www.idsoftware.com/"
+SRC_URI="mirror://gentoo/doom1.wad.bz2"
+
+LICENSE="freedist"
+SLOT="0"
+KEYWORDS="amd64 arm x86"
+IUSE="doomsday"
+
+DEPEND="doomsday? ( games-fps/doomsday )
+ !<=games-fps/freedoom-0.4.1"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}
+
+src_install() {
+ insinto "${GAMES_DATADIR}"/doom-data
+ doins *.wad
+ if use doomsday; then
+ # Make wrapper for doomsday
+ games_make_wrapper doomsday-demo "jdoom -file \
+ ${GAMES_DATADIR}/doom-data/doom1.wad"
+ make_desktop_entry doomsday-demo "Doomsday - Demo"
+ fi
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ if use doomsday; then
+ elog "To use the doomsday engine, run doomsday-demo"
+ else
+ elog "A Doom engine is required to play the wad"
+ elog "Enable the doomsday use flag if you want to use"
+ elog " the doomsday engine"
+ fi
+}
diff --git a/games-fps/doom-data/metadata.xml b/games-fps/doom-data/metadata.xml
new file mode 100644
index 000000000000..343e8213e1cf
--- /dev/null
+++ b/games-fps/doom-data/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>
+ <use>
+ <flag name="doomsday">Add wrapper to run it within doomsday</flag>
+ </use>
+</pkgmetadata>
diff --git a/games-fps/doom3-cdoom/Manifest b/games-fps/doom3-cdoom/Manifest
new file mode 100644
index 000000000000..2f22aeacc12c
--- /dev/null
+++ b/games-fps/doom3-cdoom/Manifest
@@ -0,0 +1,5 @@
+DIST classic_doom_3_131.zip 212329377 SHA256 32ed98f373573906d5f5082ad9a09ae0d65e4ae7c47e42cee8468b95e4ce8171 SHA512 6e997b6d3c35296b1d0c9ece288cc9d8d8dee1dcc42b38e068e7c101c79ab01475093777bfcd6ffeab1943fef3bc1f62e5917288c4a28789448454db9e656e51 WHIRLPOOL dd6740d9315c3f94ff05519a6661fe154239207ff016c7510427a89deed5a49840b6b1be70411931ae03fef9900c64bb478d1a1f7425855c4dac3ab6289c9b92
+EBUILD doom3-cdoom-1.3.1.ebuild 640 SHA256 1ebb4ced97394a0e4b270d9b718260cfb301f5a04f22d57c43e060ed1f8fddbf SHA512 a381cab6315eba692c420494cf4b2becf7961348e64152c552fe101ba1efa800c9009cc4c52e2caa8a75c3575bd0ce9d40dd0b08eea6ab3e8e6a59d7bffff3e6 WHIRLPOOL 5f6a69050c2c296dac73ce4c7861742a9f0ba959e60973e3f5c740db31f00984027e384d7c8a1021f7eb15e9d8fe9087c7120d1e698315caa865c225592c055c
+MISC ChangeLog 2568 SHA256 77d66402bd0587605a8ae8025e3e7405d8eb0741a4561d056c5b43e788fc718f SHA512 d27dc2f4b4a54c5c78ef4b1754a920057a1b9f307d500a6e037d7222cbdb2b1b5a5a98802b74c88ee0c268efbf78f472343f27e3e2309a02038098e0b051cf7d WHIRLPOOL 4e26c7fe3c63ce0643b325c7b55ea9d86814fa7e7056ed9948b46bb18715f263328ccd6925a102a2467530184b679c53be230d6b52659a0bede0c8ffd7e4b073
+MISC ChangeLog-2015 1597 SHA256 9dbcafb13535a145ab0d1186fc290dcafe9445f0ace5a06fe30d2e895e5f3c9b SHA512 823001793d04cc3598e8e2e68b0dd85766e3d3e6417616ecfe5111f7ba8eae3c527f28d4b1177b1497cada6b7d96e5208b0f75b7329300d0082286dc676132a8 WHIRLPOOL 19c1bc4047c3c9d7a58d5fa58b2e6e013074662dc0da0e6d0def715c7ded6f0eaa1d8ae5664c810bdbb70fc3863cc41918bf1c65a10dab61c63f77c1705881a0
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-fps/doom3-cdoom/doom3-cdoom-1.3.1.ebuild b/games-fps/doom3-cdoom/doom3-cdoom-1.3.1.ebuild
new file mode 100644
index 000000000000..fa3ecba51d47
--- /dev/null
+++ b/games-fps/doom3-cdoom/doom3-cdoom-1.3.1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+MOD_DESC="Doom 1 conversion for Doom 3"
+MOD_NAME="Classic Doom"
+MOD_DIR="cdoom"
+MOD_ICON="cdoom.ico"
+
+inherit games games-mods
+
+HOMEPAGE="http://www.moddb.com/mods/classic-doom-3"
+SRC_URI="classic_doom_3_${PV//.}.zip"
+
+LICENSE="GameFront"
+KEYWORDS="amd64 x86"
+IUSE="dedicated opengl"
+RESTRICT="fetch bindist"
+
+pkg_nofetch() {
+ elog "Please download ${SRC_URI} from:"
+ elog "http://www.filefront.com/8748743"
+ elog "and move it to ${DISTDIR}"
+}
+
+src_prepare() {
+ cd ${MOD_DIR} || die
+ rm -f *.{bat,url} cdoom_{dll,mac}.pk4
+}
diff --git a/games-fps/doom3-cdoom/metadata.xml b/games-fps/doom3-cdoom/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-fps/doom3-cdoom/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-fps/doom3-chextrek/Manifest b/games-fps/doom3-chextrek/Manifest
new file mode 100644
index 000000000000..43a6535f0b48
--- /dev/null
+++ b/games-fps/doom3-chextrek/Manifest
@@ -0,0 +1,5 @@
+DIST chextrek_beta_052.zip 97683796 SHA256 ddaecd0d9868a38455682c6fd870aac4724c53d8ac84cc93b9d8405fe7d72396 SHA512 b8dcb80bb4d945c42acd446f7e9f07e1f4d3c0048b386709577b77233f7a971b6be6a9e1be7cd17d7d8491cd558f73ee82b94785de122bf781078f6705d04457 WHIRLPOOL a20f7576d28345e512fa8c455b9f4709f8927be7a9cbf16a266757902b304bf4aa70b5db83d72453687c53aadcf9a4c1e179e6440875728ef30a83a6a9e0f0b5
+EBUILD doom3-chextrek-0.52.ebuild 769 SHA256 b9ec49f54a3efbda7e9c95e81c8bfc5c96b3706712c750d124781ceb5434e4cd SHA512 5574f8a64d6eeee71efc228ec2f799c5175d897c0a25939f058ffd1b103bc7853181ca7ba5c2c278453683e0eb69d79788e3a72d01c877b465be05583fd7d629 WHIRLPOOL 5bd1686bb26b29dddd4560ff96f96f620dc671fc957695b1223b9e3cc425defa509090e6559d5412954d21c4247f81e2a9ae860be621fcab79a2967b04a899de
+MISC ChangeLog 2707 SHA256 63927ec5beca3e08f593aaff6454ce50ee9a3ae92394b372c635f275a8e45820 SHA512 190b18b13417ca68f8675271cd51a1c03dcafa7c69bdee3e39879c1908e41661697413b2db710d8b186e4713b5695d7c35309bd28709e6fdec74f218a5eb5ead WHIRLPOOL 3dd62e60e78587debaa6b978a0ee3775daeb886c6115ed246abeecb7c48965f038b25f3ece09ad957c99169cda8c91eb998be54e8611b413d27929a1156820ec
+MISC ChangeLog-2015 2073 SHA256 7508443f5bd03cca860269f5c5967bcdf284babbaa587cd636ef1bd11152e61a SHA512 7637e3888efbf1739011b671f31f7c09f9eeae54b94dc0c385c55239cd3cb0d41fffcf8eaf81746029a2edd239996a58fedfb8a864332285599956d9fb3ace81 WHIRLPOOL ba8da96e99d1a439ae09b9a176324bed66e5a8a84bc9d105e8ba0af6d7e04dbf760a1fe8871d990f31a35c7f74b92c800c11f9e1249c067cde50d93cbb0ed978
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-fps/doom3-chextrek/doom3-chextrek-0.52.ebuild b/games-fps/doom3-chextrek/doom3-chextrek-0.52.ebuild
new file mode 100644
index 000000000000..c986239abed2
--- /dev/null
+++ b/games-fps/doom3-chextrek/doom3-chextrek-0.52.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+MOD_DESC="Green slimeballs mod for kids"
+MOD_NAME="Chex Trek: Beyond the Quest"
+MOD_DIR="chextrek"
+MOD_ICON="flem.ico"
+
+inherit games-mods
+
+HOMEPAGE="http://www.moddb.com/mods/chex-trek-beyond-the-quest"
+SRC_URI="chextrek_beta_${PV/.}.zip"
+
+LICENSE="GameFront"
+KEYWORDS="amd64 x86"
+IUSE="dedicated opengl"
+RESTRICT="fetch bindist"
+
+pkg_nofetch() {
+ elog "Please download ${SRC_URI} from:"
+ elog "http://www.filefront.com/8396958"
+ elog "and move it to ${DISTDIR}"
+}
+
+src_prepare() {
+ mv -f chextrek_beta* ${MOD_DIR} || die
+}
+
+pkg_postinst() {
+ games-mods_pkg_postinst
+
+ elog "Press 'E' to open doors in the game."
+ elog "Press 'M' to toggle the map."
+}
diff --git a/games-fps/doom3-chextrek/metadata.xml b/games-fps/doom3-chextrek/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-fps/doom3-chextrek/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-fps/doom3-data/Manifest b/games-fps/doom3-data/Manifest
new file mode 100644
index 000000000000..302fac69b348
--- /dev/null
+++ b/games-fps/doom3-data/Manifest
@@ -0,0 +1,4 @@
+EBUILD doom3-data-1.1.1282-r1.ebuild 975 SHA256 699db9531a60ad88bfe8a17da87784caf3d69b22cfec2ddef0d8c3510af131d4 SHA512 bc32de0a0710196ed8a1b3b6b262a6a0c076ebefd8978c4cdb6a01a77653007e7a5e5f01bc405eceed704e90cf44e7cd0044ce556a4856fc3a8e70e0cc29e176 WHIRLPOOL 92de7245dfdcd175f5e94270f31646f5223f98808c813e99d79b55e6599f28c7e93cb4f3dce4855aa8ab5349c2ffb91ebb5115d42fa539f1bd02682e949f76cf
+MISC ChangeLog 2582 SHA256 4d5f86da25b078f0d7f0c76e4fcc676a595e7ac147c5c7b3179e27093c9fdbfd SHA512 1b5589db859c51d4dd6d8724f20e743825c8e3fff70aa943a0eee9524e6b0a2595e3a623d85a18b930fa36024e60c5bc1c071a17030bb2f92517931f1cbcda7c WHIRLPOOL 152adb4eb27b233cf5370153d7d6787acd65b08f34bebba1344c9b24149fc942dfae64bc908bdefb3d42ea67dbb1a64830148b4800e1b01bfa981939f45331de
+MISC ChangeLog-2015 2571 SHA256 204a7ab698d13a1166e46fe055bc36bbce4f3b582246033d488ff8672f8eb306 SHA512 28884c3b1646b15cdc5e3e7dcee6fcd47fe47dd9578619b713a62a1affab3ce83dc6a62fd6624f5af7b19a8fe1fbe6fa5ab2f5ad283f2309b5a19cd1875b3b5b WHIRLPOOL 20c665a238fd431d29eb578e2e01ad304b07bb02cb076d28fd0992c5813256e4e7433b0c201c75c92b4968ab3f7b68ff01db4ab3c047b332621126246936eaf0
+MISC metadata.xml 591 SHA256 9032753ca53c3d9390e077cfe04e35027d699eda2f86c8deb63f08416660e51b SHA512 c3c4b6bece181e97442362164c3a87f2c3c8bbaf378ea3f629497983c2a57077d92c9caf84fd7104c47430329e6789539bbb58bab92e6a6aecd47e93c04fd4f2 WHIRLPOOL 9e7f225165cb6504dec0d38bd1e0e5253cf33315c6fe498ae5369c85f7d33905a56c631dd44bf216a91dc261b9e07adc7295d1fbb71ba7e14dbc2b37d27a9cae
diff --git a/games-fps/doom3-data/doom3-data-1.1.1282-r1.ebuild b/games-fps/doom3-data/doom3-data-1.1.1282-r1.ebuild
new file mode 100644
index 000000000000..922b0a5fedc7
--- /dev/null
+++ b/games-fps/doom3-data/doom3-data-1.1.1282-r1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils cdrom games
+
+DESCRIPTION="Doom 3 - data portion"
+HOMEPAGE="http://www.doom3.com/"
+SRC_URI=""
+
+LICENSE="DOOM3"
+SLOT="0"
+KEYWORDS="-* amd64 x86"
+IUSE=""
+
+RDEPEND="games-fps/doom3"
+
+S=${WORKDIR}
+
+src_install() {
+ cdrom_get_cds \
+ Setup/Data/base/pak002.pk4 \
+ Setup/Data/base/pak000.pk4 \
+ Setup/Data/base/pak003.pk4
+
+ insinto "${GAMES_PREFIX_OPT}"/doom3/base
+
+ einfo "Copying files from CD 1..."
+ doins "${CDROM_ROOT}"/Setup/Data/base/pak002.pk4
+
+ cdrom_load_next_cd
+ einfo "Copying files from CD 2..."
+ doins "${CDROM_ROOT}"/Setup/Data/base/pak00{0,1}.pk4
+
+ cdrom_load_next_cd
+ einfo "Copying files from CD 3..."
+ doins "${CDROM_ROOT}"/Setup/Data/base/pak00{3,4}.pk4
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ elog "This is just the data portion of the game. You will need to install"
+ elog "games-fps/doom3 to play the game."
+}
diff --git a/games-fps/doom3-data/metadata.xml b/games-fps/doom3-data/metadata.xml
new file mode 100644
index 000000000000..5d323b38e051
--- /dev/null
+++ b/games-fps/doom3-data/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>
+This is the data portion of the commercial Id Software game Doom III. This is
+commercial software and requires the purchase of Doom III from any retailer.
+This package copies files from the Doom III media and is interactive, in that
+regard. To play the game, you will still need games-fps/doom3 merged.
+</longdescription>
+</pkgmetadata>
diff --git a/games-fps/doom3-demo/Manifest b/games-fps/doom3-demo/Manifest
new file mode 100644
index 000000000000..32f7a3a354f3
--- /dev/null
+++ b/games-fps/doom3-demo/Manifest
@@ -0,0 +1,6 @@
+DIST doom3-linux-1.1.1286-demo.x86.run 485257318 SHA256 b42260fd08feb13c2f035a3746f8c1e3472151f0f781b8a2d1da231dae818083 SHA512 9eeada64b60ef06c8380411050ea794a863c9672578bf4593a35835c6d4b7dc5d0ba8e8cb5e5c46cbbdfd7410483e5f6321ac1393655f29b481aea99dc00b3db WHIRLPOOL 090ecbb4a049a6def58cedea831c4595026087bd6f5ae2920d7a82f269fa26972aad1b383e7a004cc7d9f131f66967b604a85230dddcd72ee5fb4a15938a58f1
+DIST doom3.png 6502 SHA256 c9a701498a7b0f923182bf9f11aac8d2193026e509ae3643a5bc118b1a458c6b SHA512 9a2b3831babbf3fa0d354e1a4a779c972676edbcc0b287de9b9f3eb830e0a00d557ba9645fbf0e58e07d5705efb0ef2b7ab96cd92493e2a0afc30c8842c0043b WHIRLPOOL e568cdcf3ea510b9865a4c1f1577713c6a63954a22e572311a321c8c73cf70ca68b76134d45a9f1c77e2d6b464ec29e098b7fe39ce1eb38889f83fc3c9bfc05f
+EBUILD doom3-demo-1.1.1286-r1.ebuild 1469 SHA256 cda5baf04e3a79a4d246949537c7b2000ad4da37893e1699cee77de1a4cd7c34 SHA512 ba3991d6737c39f11f78349751aa22434adfef2c403cc92c824b16098037c3a1d5337ef381cd2d92f9f351b0f54abd848c90d40460e54bf63cd9846ad687431c WHIRLPOOL 25ea289eb18cf5c62bd4a06e71914198777ce3497ac416cb7a4b53b06aac3eb86d674cbe9a59c9650ba57b1d4f09e7d56bb38ffc112527b31139553861c12f9a
+MISC ChangeLog 2449 SHA256 9a151ab53b24ccc4dd3a097491829eebdc10c3b89ab81797f7fde22a2675db99 SHA512 a2e5fcef49f866af86ba5ea84cf6005a68955ea7e927e5f905f93416ed30090a4231594fe62ac1a4bf912dfacdb375217d8ebd4b90257517be3cdafc687bcbed WHIRLPOOL b5cf940e77c98294c8e517c535ed2a65a8cfeead0a28f0f3b76c238c7ce9bad1e37992224ba548c43ca61de55125292525470ab91f869755cb2205a141d940bb
+MISC ChangeLog-2015 5459 SHA256 0ac21c3b8d9969a82a7b38abb9db0ed5e5c96738fbffea05d1f1194884055010 SHA512 aa4022c546f451624a7d144a3bd7ea2a9fd07b9b837b8dbe68ed22ba577032d8817cadad2c955e9b9516579628f3080c5c06e9a4ede1c426d2b73bd24f4594e6 WHIRLPOOL 531a239b673289da44aa9c3526c86ad219ab6cdb054a3d5441c2154e9012dec11cba02d4e4830c166e4d9a72a8ed0448d053120a0cbca482bdff1c47225f00a7
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-fps/doom3-demo/doom3-demo-1.1.1286-r1.ebuild b/games-fps/doom3-demo/doom3-demo-1.1.1286-r1.ebuild
new file mode 100644
index 000000000000..c3f4751a0421
--- /dev/null
+++ b/games-fps/doom3-demo/doom3-demo-1.1.1286-r1.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils unpacker games
+
+DESCRIPTION="Doom III - 3rd installment of the classic id 3D first-person shooter"
+HOMEPAGE="http://www.doom3.com/"
+SRC_URI="mirror://3dgamers/doom3/doom3-linux-${PV}-demo.x86.run
+ mirror://idsoftware/doom3/linux/doom3-linux-${PV}-demo.x86.run
+ mirror://gentoo/doom3.png"
+
+LICENSE="DOOM3"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE=""
+RESTRICT="strip mirror"
+QA_EXECSTACK="${GAMES_PREFIX_OPT:1}/${PN}/*"
+
+# Do not remove the amd64 dep unless you are POSITIVE that it is not necessary.
+# See bug #88227 for more.
+RDEPEND="sys-libs/glibc
+ sys-libs/libstdc++-v3:5
+ amd64? ( sys-libs/glibc[multilib] sys-libs/libstdc++-v3:5[multilib] )
+ >=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(-)]"
+
+S=${WORKDIR}
+
+dir=${GAMES_PREFIX_OPT}/${PN}
+Ddir=${D}/${dir}
+
+src_unpack() {
+ unpack_makeself doom3-linux-${PV}-demo.x86.run
+}
+
+src_install() {
+ insinto "${dir}"
+ doins License.txt README version.info
+
+ insinto "${dir}"/demo
+ doins demo/* || die "doins base"
+
+ exeinto "${dir}"
+ doexe gamex86.so bin/Linux/x86/doom.x86
+
+ newicon "${DISTDIR}"/doom3.png ${PN}.png
+
+ games_make_wrapper ${PN} ./doom.x86 "${dir}" "${dir}"
+ make_desktop_entry ${PN} "Doom III (Demo)"
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+
+ elog "To play the game run:"
+ elog " doom3-demo"
+}
diff --git a/games-fps/doom3-demo/metadata.xml b/games-fps/doom3-demo/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-fps/doom3-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-fps/doom3-ducttape/Manifest b/games-fps/doom3-ducttape/Manifest
new file mode 100644
index 000000000000..4cfe195e9ee8
--- /dev/null
+++ b/games-fps/doom3-ducttape/Manifest
@@ -0,0 +1,5 @@
+DIST ducttape0007.zip 66501 SHA256 5a23113075cbb7b9219b8506bf657ba4c887657fa877dc496454d47fd43ba3fd SHA512 90c2a271881b3cc7823be5f01b0809d99aabb6f8a88c9a3806d6b4adc0f86a9a0f63cd34498fcd99ff1eb25de4271aac5912495a469bbb72d4b9ae7b90f003a2 WHIRLPOOL 24db1d3b874dca8b8a2144e295b5c7d8f27955274877a461552aea9e9b0753c5afdb0e405c98b20cc32d28086d304f172558a2e45de7d33fbbe7caf51b5a8894
+EBUILD doom3-ducttape-0007.ebuild 750 SHA256 281b3bf6bab739a5878db6c374b970e79e82b07139a103abbdadcd2ea4eadc60 SHA512 baee65cb335d6ff569ee0be173a7f43ffa8946be40ee0f79ebd3eadfd6ca71a2260e0a11c4b6aa5f89e09859b80a25f07ff8c871d4e03fe31702fca365bf53f6 WHIRLPOOL ec97ee29b149c86af52d7c7dac09eeab05332cf24554698909e55c1e8cae1a2700946a7a64a1d7895fc41f311a8d4d028b0a7e6d17338c992c4e0a350e6d21f6
+MISC ChangeLog 3044 SHA256 ba9f034df02b408d96c07c425e1b005c8806ef13627beea43f8a4f9d7567060c SHA512 b7d3a71416258225cdbff3e7b7ba08eea81dbc1a19c5bd10fa8afa5e28468315db6a338c618e04afe2f71e5c321a88ba512d6b66e7503793891913768df11d84 WHIRLPOOL bb5bacd8a51041d4b466a5e6130666dfd7726033bbf9ce3d905b443dee8180f1621da413619a39732d67586898b0a33ba94b731ba5a55ce3275838581c6ce225
+MISC ChangeLog-2015 1475 SHA256 8f0439b535e316ebe2d82e5feba8a700bd3d771ffd78e3b8c1c44268ad635664 SHA512 17bf63a8ea14966bba46a09bd93418455a1ab4c79d709758dd5b70d427e7caef778e5b3ce9446eafe596a1b7295b59bb41aa5e1f22f42ddafbf775426cca12a4 WHIRLPOOL cd69c757fc08aaba80674f9ead4c83b882e83cc7d2bde92701031885ae5961b2bc46cc542de2dad6391cdd062ec9b0d9d3495ec11a7dda9559b60d2492f9e9d1
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-fps/doom3-ducttape/doom3-ducttape-0007.ebuild b/games-fps/doom3-ducttape/doom3-ducttape-0007.ebuild
new file mode 100644
index 000000000000..b27109952b19
--- /dev/null
+++ b/games-fps/doom3-ducttape/doom3-ducttape-0007.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+MOD_DESC="sticks flashlights to your machinegun and shotgun"
+MOD_NAME="Duct Tape"
+MOD_DIR="ducttape"
+
+inherit games games-mods
+
+HOMEPAGE="http://ducttape.glenmurphy.com/"
+SRC_URI="http://ducttape.glenmurphy.com/ducttape${PV}.zip"
+
+LICENSE="freedist"
+KEYWORDS="amd64 x86"
+IUSE="dedicated opengl"
+
+src_unpack() {
+ mkdir ${MOD_DIR} || die
+ cd ${MOD_DIR} || die
+ unpack ${A}
+}
+
+src_prepare() {
+ rm -f ${MOD_DIR}/pak002.pk4 || die # for doom3-roe
+}
+
+pkg_postinst() {
+ games-mods_pkg_postinst
+
+ elog "To use old saved games with this mod, run:"
+ elog " mkdir -p ~/.doom3/ducttape"
+ elog " cp -r ~/.doom3/base/savegames ~/.doom3/ducttape"
+}
diff --git a/games-fps/doom3-ducttape/metadata.xml b/games-fps/doom3-ducttape/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-fps/doom3-ducttape/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-fps/doom3-eventhorizon/Manifest b/games-fps/doom3-eventhorizon/Manifest
new file mode 100644
index 000000000000..0fecb7d7cfe6
--- /dev/null
+++ b/games-fps/doom3-eventhorizon/Manifest
@@ -0,0 +1,5 @@
+DIST event_horizon_xv_1.3.zip 108659988 SHA256 3d653c61801348f8e58c80fcf1c29411987a311e64df23d873f40ededd242fac SHA512 af8d406b8b87ba22a43558cec034b5810bcee2a7dbb4bf87fd879d25f67b247e0d751443b4fcfe0a1b5072376f3941dd8e59d6d10e9ae9304c05b7ef6ae31944 WHIRLPOOL ff0fa512dac755ec7769d2b6e1ed495c59d0cf497d2ec61c4e04bfd3dc39a84017f7281d9d2c062b6078277584bd353a0251b046c7481cce9e93b74fc2c03441
+EBUILD doom3-eventhorizon-1.3.ebuild 649 SHA256 a1571f29331da3944ac71e7b14f392a8e8f9e9bee2be4b7ec3b0b6fd31d5fb36 SHA512 1ad57ff00539f6649e1a054e882b88aa7dc9f14b83df3044e7a18a1bc6feb6999f7fd4522431a7bc85d9d74020867035da7c3672982dc202805a1c2457f68bec WHIRLPOOL 4a60160da182e0b5e0ed171177f4ad01b6aef355f8a2e023c469dedcfceab4d13a5d4f7105543cca9a1fe9f8eac713d5d201b85464bdef5b91c74ab34c95f4c0
+MISC ChangeLog 2590 SHA256 1abfe3fc2ce27e9c6a3ca7d8f5b8c4886659f9869a7842989af999e16c014dce SHA512 41a8fca09ae2b6ce71e4e1c58966724307e039de67ba9cde80f8d12d18d8a460c09a7a2c40ed020cf5eb64de17d0a3cfa41a56ff6eb8b736f216704bce2f09ec WHIRLPOOL faef67fbb5f305c1bfeddaef0a03974f354d89e20144fabb5e74cdd0bdfd86f0d2b9bc83240a2a6e24658a206f1aefd94abc7843c073a65c52fdec3c4514b6b8
+MISC ChangeLog-2015 1131 SHA256 052a1e0ce0be3100ce388218b39cdcae1779b2bbae0f5f50b64f5c467d49459b SHA512 ac76f2e788fe0bf8ae5498bc5af352e7aac3ea65cb2f6027a90bc105e3ca01e5802d8fb6192679b8ecabeba3ff0428efd8667f87922724dd00139b87f5ba4a01 WHIRLPOOL 758bac1da8cec8f5037279d38aa6e31c81d0e78c17c89ab8feff1e70bb2cdca9216e95ee94a340f8af39a1a2add88feeb26ae3bce2b5bd9a42a1502de87cead7
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-fps/doom3-eventhorizon/doom3-eventhorizon-1.3.ebuild b/games-fps/doom3-eventhorizon/doom3-eventhorizon-1.3.ebuild
new file mode 100644
index 000000000000..e87f1150f6e6
--- /dev/null
+++ b/games-fps/doom3-eventhorizon/doom3-eventhorizon-1.3.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+MOD_DESC="single-player mission based on the Event Horizon film"
+MOD_NAME="Event Horizon"
+MOD_DIR="eventhorizon"
+
+inherit games games-mods
+
+HOMEPAGE="http://www.gamefront.com/files/10716974"
+SRC_URI="event_horizon_xv_${PV}.zip"
+
+LICENSE="all-rights-reserved"
+KEYWORDS="amd64 x86"
+IUSE="dedicated opengl"
+RESTRICT="fetch mirror"
+
+pkg_nofetch() {
+ einfo
+ einfo "Please download \"${SRC_URI}\" from:"
+ einfo " ${HOMEPAGE}"
+ einfo "and move/link it to \"${DISTDIR}\""
+ einfo
+}
+
+src_prepare() {
+ mv -f event_horizon* ${MOD_DIR} || die
+}
diff --git a/games-fps/doom3-eventhorizon/metadata.xml b/games-fps/doom3-eventhorizon/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-fps/doom3-eventhorizon/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-fps/doom3-hellcampaign/Manifest b/games-fps/doom3-hellcampaign/Manifest
new file mode 100644
index 000000000000..1a8e1dc6f7de
--- /dev/null
+++ b/games-fps/doom3-hellcampaign/Manifest
@@ -0,0 +1,6 @@
+DIST hardcorehellcampaign_patch.zip 532844 SHA256 98d0619e0dcd8f12bbb596c635831a37b396cab5fd49e004e95f6b8d0deefd92 SHA512 643d883c1e114af49dc573c90c19b6793cfb6f399a0050bd0c084aa56773c1a72b54cd22ec147f1981cfd1400a3253be44fc0add7b8bb1d5add8fe8163a781a0 WHIRLPOOL 7a2dcadc9b190151814b6c596e7dc85c4ae0c3b9160f066c3ec56b1541a3dcc1223b1efe6093942fafa4a940f182bbeb8b13dc3811da3c7f2664b33b8aa9ab78
+DIST sp_hc_final.zip 113992555 SHA256 3b0c4b19139f5c3341a09d4169760f1eac1029e87587a44651cde4a4bc46bcd4 SHA512 3af8466822882fda9094fd64ec50bbe7afa0e70e8e6dafa649f7798a14da37cfa1f725b855980e16cbe3cc48799363784f762782612617fdcd008b9490f07f2e WHIRLPOOL cc5b0b9e4a1d737d01ae8bcdfe031033709d7783e2bfff44e3d6fc0280ce4c417ae63508e5c02b706790f4a8fdcfb29e4c9b5ea02230362fd2c5605fbeb3d6b3
+EBUILD doom3-hellcampaign-1-r1.ebuild 1111 SHA256 46321c209214601ca940e51ea2b49e89397d64e263d5049b63bd043fc2669377 SHA512 0969549b57823edf05615f5d0b35379f88491a7f8ffc81ecfa20475df545ddee4971214257aa3eb023d76722392110418655d9ddbb1e0dbce610b9e71c08307f WHIRLPOOL 583875e6ea529d61f655b9dfdceeee667ed4c56c6468b7ebd5ed0cb34c0419a621e82bbd5bd18a6f64f944dcef65c81c5514cb07dab0a92a62c0f58ef1517a5e
+MISC ChangeLog 2593 SHA256 1b1097cebe3a5ce9f197e4c6a3e97c020fd3c854ab17eeced07324bb24632c0d SHA512 03ea53ae126cfe0cf2ac8b82676154faa6f53d00273587c7d75e0721413c3c60c07a73ba2c95a45706209d5043178fdefe3056285d385940087de32c0350f808 WHIRLPOOL d0af7c69526068c42a44e0b09fa46ccfc91a4776ea9aaed7de4a237af4ae2e29d9108bb5798f7ea90e420cb930e52eca3dc055ebd3f2992db09974a9d148d38c
+MISC ChangeLog-2015 1534 SHA256 9c141f5f4aa8207bc5eb73a1d39acf2c2758583e48b0997a5ef12a5f2a7066dd SHA512 24431405204e7ec5fe8ac667f14d97a6df828f4a29d2c27f74e7f6bdb028d10e43e77befc078dcd45b9c559051a651b636a785d380c594f7fae33e623d069d91 WHIRLPOOL da33336198abff5cd28663221a272e8a27688d9d5919bc8b85b2fd1c51163ab11cbc4605f328771db6a7c5cb9119da9fb87bd2a729cb8620150f9f5327605912
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-fps/doom3-hellcampaign/doom3-hellcampaign-1-r1.ebuild b/games-fps/doom3-hellcampaign/doom3-hellcampaign-1-r1.ebuild
new file mode 100644
index 000000000000..8e39f9e2fa7b
--- /dev/null
+++ b/games-fps/doom3-hellcampaign/doom3-hellcampaign-1-r1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+MOD_DESC="map pack for Doom 3"
+MOD_NAME="Hell Campaign"
+MOD_DIR="hell_campaign"
+
+inherit games games-mods
+
+HOMEPAGE="http://www.gamefront.com/files/listing/gamingfiles/Doom_III/Maps/Map_Packs/"
+SRC_URI="sp_hc_final.zip
+ hardcorehellcampaign_patch.zip"
+
+LICENSE="GameFront"
+KEYWORDS="amd64 x86"
+IUSE="dedicated opengl"
+RESTRICT="fetch bindist"
+
+pkg_nofetch() {
+ elog "Please download the following files:"
+ elog "http://www.filefront.com/4445166"
+ elog "http://www.filefront.com/4593578"
+ elog "and move them to ${DISTDIR}"
+}
+
+src_unpack() {
+ mkdir ${MOD_DIR}
+ cd ${MOD_DIR}
+ unpack ${A}
+}
+
+src_prepare() {
+ cd ${MOD_DIR}
+
+ # Prevent "non-portable" upper-case-filename warnings in Doom 3
+ mv -f "Hardcore Hell Campaign.pk4" hardcore_hell_campaign.pk4 || die
+ mv -f Q2Textures.pk4 q2Textures.pk4 || die
+ mv -f Q3Textures.pk4 q3Textures.pk4 || die
+
+ mv -f "Hardcore Hell Campaign.rtf" readme.rtf || die
+
+ # Show nice description in "mods" menu within Doom 3
+ echo "${MOD_NAME}" > description.txt
+}
diff --git a/games-fps/doom3-hellcampaign/metadata.xml b/games-fps/doom3-hellcampaign/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-fps/doom3-hellcampaign/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-fps/doom3-inhell/Manifest b/games-fps/doom3-inhell/Manifest
new file mode 100644
index 000000000000..b3f0132c40e1
--- /dev/null
+++ b/games-fps/doom3-inhell/Manifest
@@ -0,0 +1,5 @@
+DIST in_hell_v11.zip 356652597 SHA256 47437c4335b77e89705617841d3af9479ab4dbef124a4590c3a7ed9e92934cbe SHA512 6d97856f518161a445eb1b01eef9a987b9e0675729734539b57c56ff798cb257a6e337cd19c3b37dbea5bf5b22ae6694957a08e3fe8bc3207ea1b7982e3f8624 WHIRLPOOL c3fde484f74bc8c7470a1211168603f9cac5359e7e031202af76732872ff315a8086082862074d3f7c0c65fec225836fd656149e75dbe2e49cc2b84d6da2cd4d
+EBUILD doom3-inhell-1.1-r1.ebuild 580 SHA256 82c68ffe2eb4fb17cc38fc017c91c5795a8a364a1ec63d753db47e78aeaa986b SHA512 9b25b1bea694a2c728bfd5c0d062e0fa973570ebfa3391df4e188217263dd35bc215edd72907a94b45ddc6c81c818c90b7d0c1f000ac747556a2708330935ece WHIRLPOOL af1251575a294e0b81327cdf7e5ab4c5d754088aab31a58c75153187b796448901ed5c949ad7459ab5ec9e9a946d1a53494d1e7eb3cbac788959d6fc6155735f
+MISC ChangeLog 2575 SHA256 c52ca36157196cb9693ce68c8984668f2fd7d3ce649ccf5d4a3523a80bb705f1 SHA512 ea73546fcce2ed26f6e95e1c271e724c9af60b8e628c69e70f9961605522cc23fdcbee904571a124c804715801db4fdadb6d2ddd44d53c18c64fc8786b72f42f WHIRLPOOL 26dab85b7bdbd8baf55d2c2986d74cc7b7d67de4725567c42cb65cc8074a2dd575787bd4ba32a6452e1718d5e75f430656aa386013670f9ec0af0ea14aaddb67
+MISC ChangeLog-2015 1393 SHA256 cb07363452ac6e87e3e996fbcbb6b9cf0f57f34060341b061c99cdec4b03e7b7 SHA512 5883296cde6a787eb5e87e5bcf02e9e54cc18f500b54cd138b0e7167a49171a6fc0b3124dbbca6de8dfb69a9884158d40df769305b88149a6cddf7af880be798 WHIRLPOOL 674056a0b37affa29bbf2a19607759ffe54aa751d44a0d33fe77ae16cdb16b8785e83289dd01c087443a6c2cabc04257645fb70ec6a52f528e3f4b45ed3a8510
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-fps/doom3-inhell/doom3-inhell-1.1-r1.ebuild b/games-fps/doom3-inhell/doom3-inhell-1.1-r1.ebuild
new file mode 100644
index 000000000000..aa3b9d99ee33
--- /dev/null
+++ b/games-fps/doom3-inhell/doom3-inhell-1.1-r1.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+MOD_DESC="Ultimate Doom-inspired levels for Doom 3"
+MOD_NAME="In Hell"
+MOD_DIR="inhell"
+
+inherit games games-mods
+
+HOMEPAGE="http://www.doomerland.de.vu/"
+SRC_URI="in_hell_v${PV/.}.zip"
+
+LICENSE="GameFront"
+KEYWORDS="amd64 x86"
+IUSE="dedicated opengl"
+RESTRICT="fetch bindist"
+
+pkg_nofetch() {
+ elog "Please download ${SRC_URI} from:"
+ elog "http://www.filefront.com/4631315"
+ elog "and move it to ${DISTDIR}"
+}
+
+src_prepare() {
+ mv -f In_Hell ${MOD_DIR} || die
+}
diff --git a/games-fps/doom3-inhell/metadata.xml b/games-fps/doom3-inhell/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-fps/doom3-inhell/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-fps/doom3-lms/Manifest b/games-fps/doom3-lms/Manifest
new file mode 100644
index 000000000000..8b7c0eb6b175
--- /dev/null
+++ b/games-fps/doom3-lms/Manifest
@@ -0,0 +1,5 @@
+DIST LastManStandingCoop4Multiplatform.zip 309768743 SHA256 3e88196efc60a9046b9518a249c99021aca1c6341c654129a772b1f28f04c37e SHA512 f3d6fb1beab25dafc51a59153edb4cbb173ea4cdfd924b8f9610873bc1326efc2d85d62a23c6523b4a61319718a35ed44fecdf59bc8346fb1abb159ac93e6b15 WHIRLPOOL f9a2f06ac687df06782b0bb8ec54f2042ed5fc5051a2fa4fa893b57ba221c05b5f95f99eaad9bdcc0efca71b6ec38ba7c8d9919fd0cd3c207be55f29e85d7625
+EBUILD doom3-lms-4.ebuild 668 SHA256 0c3420c6867a774444c6fca136ad70faf4c075d2302843134d089a4cefcd0abc SHA512 2e1d84abda3c95507b6021ae56c9fce31f4074c72f62ee997d6a66ef17a2231cbf049336d45cd4a687c0f2d3d647fc86d37c71da1d8dc0bf58b7db0c75663e5a WHIRLPOOL b7af43080b6596ea8a89fbb7e3d7496d6fb535f4c521115fd6f74a507c557479dcc435de064759051576505eb150475a6ed5433794cb2d6e2e6877d55fb8df26
+MISC ChangeLog 2572 SHA256 cd18f13b12c7f3140e3b743725d90c767d7bfb9bea07724306dc9c65ec7ec8c4 SHA512 89b70b9b0d8e483633296d4cb221e0e10f261e83cbf86566b363c74b621c04179daf6f69e964138309f0d4c4f3c5a5eab0bafff2d338f9f49336545ba38e1894 WHIRLPOOL 1b131f8a368aefd2c2598f858f4a0134f969973a458a1c00f6d6eb7a005c44b54515d4adcb35b71fd8b045f27a0a28bfb8162e4c774a540ffe41adf09ba0e1b4
+MISC ChangeLog-2015 1752 SHA256 5606c2490ece2d7bce80d1233a268058e416ba89c0241899d19e7e716bd5414e SHA512 18634e347224be966e7c86c304da6ce75197f392e3b9f26d3f90ade99080b3f0bd2beb91528e7ead87c54fc4a6e2b3ee73093adf2fed341e753b3c5fd6e40ca5 WHIRLPOOL 9cc3915a9d268e366c65719afc49550f5d39a43ed19b35b17789b3876cb1173d6e2adc579dfd3ff1e8c64e0cba9fe25b41bbc4434ac3ee1d938ccef3272b6261
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-fps/doom3-lms/doom3-lms-4.ebuild b/games-fps/doom3-lms/doom3-lms-4.ebuild
new file mode 100644
index 000000000000..96e4e6f85b4d
--- /dev/null
+++ b/games-fps/doom3-lms/doom3-lms-4.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+MOD_DESC="add co-op support and/or play against swarms of monsters"
+MOD_NAME="Last Man Standing"
+MOD_DIR="lms4"
+
+inherit games games-mods
+
+HOMEPAGE="http://doom3coop.com/"
+SRC_URI="LastManStandingCoop4Multiplatform.zip"
+
+LICENSE="GameFront"
+KEYWORDS="amd64 x86"
+IUSE="dedicated opengl"
+RESTRICT="fetch bindist"
+
+pkg_nofetch() {
+ elog "Please download ${SRC_URI} from:"
+ elog "http://www.moddb.com/mods/last-man-standing-coop/downloads"
+ elog "and move it to ${DISTDIR}"
+}
+
+src_prepare() {
+ cd ${MOD_DIR} || die
+ rm -f *.{bat,url} game_lms40{0,2}.pk4
+}
diff --git a/games-fps/doom3-lms/metadata.xml b/games-fps/doom3-lms/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-fps/doom3-lms/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-fps/doom3-mitm/Manifest b/games-fps/doom3-mitm/Manifest
new file mode 100644
index 000000000000..90da70722c0d
--- /dev/null
+++ b/games-fps/doom3-mitm/Manifest
@@ -0,0 +1,5 @@
+DIST MakeItToMorning1-6.zip 184131772 SHA256 d9757e51f6d474fe992b19008d2723253f27496baea6729576e460c3c31b0e64 SHA512 5c8b58b51fb4308366db74705c6f1c5ed7a99f41992000c0ceb3b57fe1d61cb617cc03725ab213d6d7cfbad76104efebe647e50d5ad78e5b0ec480ed840118ea WHIRLPOOL 24317336168b2bc3d05582ed745858597f4248fc3261f102de8ca539641574221cd39850ef83f0ee422038ed43422801cf87c80330c1d85d35432bf23e2ebdf1
+EBUILD doom3-mitm-20070129.ebuild 1063 SHA256 cbe4b766692b44ec6716e6deb41bdf993234d622a8271a5db9acd23dbec51d02 SHA512 0d666464b32a6cf1596e0fea15202e8e5fa2632fe988ca6dd9310c39eed705474b3430646f20b6bd6aaafbca9776bd0303eec08a90f73218ae5bc2c2845eef4d WHIRLPOOL 6c1b760962e49c3c1d5fdbabf290dd060ed3fe3616c3488383e30d149ce86abc1b232b901e7b859927af42855de52cc749ec64e0bba188200c1364af65225f4e
+MISC ChangeLog 2734 SHA256 68e403a1d234a5c3c229d02cc26f9c7963f856b1130e10601738513043540ac2 SHA512 185b648453b88889613395406aba64b5eed0bee9fa270bfd2df7b023524684a6cd557fb22bd336217479d0098a19562e4621448a201bf97c971fea95f71ae60c WHIRLPOOL 398b3771c4b110b3c6b8b70f092bdacd8c01984f54ee430b8ce94204ef8f99ad5e612b6e9bc42ddbf48fe9bdf0b609a10051becd0896d1d64f9f4284f8ed1550
+MISC ChangeLog-2015 1344 SHA256 07bbc669cea7fe9b735de73ddb5c502798b6ac981bd1218815e70f236a2b1dc8 SHA512 42608a46ca8add35d2e8b2b78813ee244b1b34b1dab749694e941b79f8b14f93391907701ae6a648b25d2e1c4c0c4402a5cd6c05d38352e3bf0c5a4886405d9c WHIRLPOOL 0ae5d00fd656e712bcad8a131753b5aa1a1286246c1946a26845540d02a17a5e4a5b078f35f3c3a09434b41162bf30946cbef93e3c197e13b9894978e585fee0
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-fps/doom3-mitm/doom3-mitm-20070129.ebuild b/games-fps/doom3-mitm/doom3-mitm-20070129.ebuild
new file mode 100644
index 000000000000..08253af74d75
--- /dev/null
+++ b/games-fps/doom3-mitm/doom3-mitm-20070129.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+MOD_DESC="Single player maps"
+MOD_NAME="Make it to Morning"
+
+inherit eutils games games-mods
+
+HOMEPAGE="http://www.jimwilkie.co.uk/mitm/"
+SRC_URI="MakeItToMorning1-6.zip"
+
+LICENSE="all-rights-reserved"
+KEYWORDS="amd64 x86"
+IUSE=""
+RESTRICT="fetch"
+
+RDEPEND="games-fps/doom3-roe
+ games-fps/doom3[opengl,roe]"
+
+pkg_nofetch() {
+ elog "Go to http://www.gamewatcher.com/mods/doom-3-resurrection-of-evil-mod/make-it-to-morning-1-6"
+ elog "and download ${A} and place the file in ${DISTDIR}"
+}
+
+src_unpack() {
+ mkdir mitm || die
+ cd mitm || die
+ unpack ${A}
+}
+
+src_install() {
+ games_make_wrapper ${PN} \
+ "doom3 +set fs_game_base d3xp +set fs_game mitm +map mitm"
+ make_desktop_entry ${PN} "Doom 3 - ${MOD_NAME} (1)" doom3
+ local i
+ for i in {2..6} ; do
+ games_make_wrapper ${PN}${i} \
+ "doom3 +set fs_game_base d3xp +set fs_game mitm +map mitm${i}"
+ make_desktop_entry ${PN}${i} "Doom 3 - ${MOD_NAME} (${i})" doom3
+ done
+ games-mods_src_install
+}
diff --git a/games-fps/doom3-mitm/metadata.xml b/games-fps/doom3-mitm/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-fps/doom3-mitm/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-fps/doom3-roe/Manifest b/games-fps/doom3-roe/Manifest
new file mode 100644
index 000000000000..bf2e271af639
--- /dev/null
+++ b/games-fps/doom3-roe/Manifest
@@ -0,0 +1,4 @@
+EBUILD doom3-roe-1.ebuild 1123 SHA256 d04b475779f6fa7aaf8e453448abeaa4b439f53ce49a90420a95129717567bad SHA512 dc3dd6476b864084559eb1afc7f3e87fabddf1da91081eb39e71018ade0bdb943060e218efeb8d87835cc296ed9f88c5bf665c396adb1d7ffe7fc83127e6ecd8 WHIRLPOOL cfca0ef0182a059984f4e4d4bc1e25836f9e739db94ebc544f49c0a06a0b8b8082b928c8c6719d3ff731c59737a3cc0888fab5f39c8f32dfb14682e549b733f5
+MISC ChangeLog 2546 SHA256 b48a01ca65a3025fd661e898cc1925a054ed6fe964e0da5889d48aa9fb65538e SHA512 c6296a94336cb11867fd20657ebba4b53f6ca9300f9c71c6820ccfe5fdd14cf2511441d4f9f94e81f7f9cdeb934bbebfd4c8b4ef1d4b7088c628e7d7f3ef98f9 WHIRLPOOL 3dfc13e8d4ba47a80dd0eba667a75c06b4700f85d87d4eefd951b69ff149e94ffe82aabd466c11051866965d31e407e52eeb19fce5f5906e8eb776d8958d6bd0
+MISC ChangeLog-2015 2140 SHA256 f40fcd6c504f48304fa8d8bfb439bd0e6f4da78d2e7c048a3db1992e3931dd52 SHA512 50c2cbda79e20e95da246d966aabe601d734c7ecd8b522eafa18e45139c80d4ce323662079f9f21d60e736913966eb15ce632b050a3749c55a55d68e9b1fa00b WHIRLPOOL 784c71a9af240ebca684fcce278ff3f83842a63d3f386ee32caab1c3a60c85ba904e83dbe2d72cf4bf5b5033e49e307d300dced0eb0f3242709907c604fb2726
+MISC metadata.xml 708 SHA256 ecc6e5b9d45bdfacb786e6fa2070eebf1d780cc6704799c85545373f4c57580d SHA512 b6e3b1a4256c90d51a69f0c74f6a4e991f62af0721fce6c4e2ba884c08f92f7083c4b9ab1ea736f39f5886a2b246e11ababb6c0906151fe50fa0a0adaa8c01bf WHIRLPOOL 63a087d7f1c61c2bb11c3c90676c117a6d61b703f4dbd3ff78f0bcefceebf2823e2a4d4099595dcbc40901d94a2e3cba3a710b6bd64a59207c0987cfe3964f46
diff --git a/games-fps/doom3-roe/doom3-roe-1.ebuild b/games-fps/doom3-roe/doom3-roe-1.ebuild
new file mode 100644
index 000000000000..3519afb5a081
--- /dev/null
+++ b/games-fps/doom3-roe/doom3-roe-1.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils cdrom games
+
+DESCRIPTION="Doom III: Resurrection of Evil expansion pack"
+HOMEPAGE="http://www.doom3.com/"
+SRC_URI=""
+
+LICENSE="DOOM3"
+SLOT="0"
+KEYWORDS="-* amd64 x86"
+IUSE=""
+RESTRICT="strip"
+
+RDEPEND=">=games-fps/doom3-1.3.1302-r2"
+
+S=${WORKDIR}
+
+dir=${GAMES_PREFIX_OPT}/doom3
+Ddir=${D}/${dir}
+
+src_unpack() {
+ cdrom_get_cds Setup/Data/d3xp/pak000.pk4
+ # Change from showing "d3xp" in the "mods" menu within Doom 3
+ # The ^1 changes the text to red
+ echo '^1Resurrection of Evil' > description.txt
+}
+
+src_install() {
+ insinto "${dir}"/d3xp
+
+ einfo "Copying file from the disk..."
+ doins "${CDROM_ROOT}"/Setup/Data/d3xp/pak000.pk4
+
+ doins description.txt
+
+ find "${Ddir}" -exec touch '{}' +
+
+ games_make_wrapper ${PN} "doom3 +set fs_game d3xp"
+ make_desktop_entry ${PN} "Doom III - Resurrection of Evil" doom3
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+
+ elog "This is just the data portion of the game. You will need to emerge"
+ elog "games-fps/doom3 to play the game."
+ echo
+}
diff --git a/games-fps/doom3-roe/metadata.xml b/games-fps/doom3-roe/metadata.xml
new file mode 100644
index 000000000000..1cfc52506137
--- /dev/null
+++ b/games-fps/doom3-roe/metadata.xml
@@ -0,0 +1,16 @@
+<?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>
+Science has unlocked the gates to the unknown, and now only one man stands
+between Hell and Earth. A sci-fi horror masterpiece, DOOM 3 is like nothing you
+have experienced. Dramatic storyline, pulse-pounding action, incredible
+graphics, and revolutionary technology combine to draw you into the most
+frightening and gripping first person gaming experience ever created. For more
+information, checkout http://www.doom3.com
+</longdescription>
+</pkgmetadata>
diff --git a/games-fps/doom3/Manifest b/games-fps/doom3/Manifest
new file mode 100644
index 000000000000..ca116869b885
--- /dev/null
+++ b/games-fps/doom3/Manifest
@@ -0,0 +1,6 @@
+DIST doom3-linux-1.3.1.1304.x86.run 21145838 SHA256 2f90dff20f2d3c0c47f17b3d6d45c4f0e7d27b986bf6084f21b85180cd1e03b4 SHA512 f2a42478d84a6242a7982d1acd726b746596b7a13147acbd920d618223d6f52ab4c49aa7d7f07067674da2881372a181396a0bdd476e3956fb702c76eebb0d02 WHIRLPOOL e80d54176763c37ba21750dbd57cb02beec8cf3fe7d90916ee4024541966b14e7919fa41624dc9fabb44eb824cabcc862fefdf3e58316302a01042d5ee443382
+DIST doom3.png 6502 SHA256 c9a701498a7b0f923182bf9f11aac8d2193026e509ae3643a5bc118b1a458c6b SHA512 9a2b3831babbf3fa0d354e1a4a779c972676edbcc0b287de9b9f3eb830e0a00d557ba9645fbf0e58e07d5705efb0ef2b7ab96cd92493e2a0afc30c8842c0043b WHIRLPOOL e568cdcf3ea510b9865a4c1f1577713c6a63954a22e572311a321c8c73cf70ca68b76134d45a9f1c77e2d6b464ec29e098b7fe39ce1eb38889f83fc3c9bfc05f
+EBUILD doom3-1.3.1304-r1.ebuild 2468 SHA256 5667cf7c925dba6af3c700e93f079eb5a635fae1b4cf70e0559ee6915c2157ba SHA512 ad05556e1bdc829156ad8d21807dbc3df276e75f082a8f477f24bda8918dcf0c0705493fbbae3e3a8a687a1f73d5b515504b7ac9b71360c3c3af990a9149a9ca WHIRLPOOL cb58c1a8968eb5e6b30c374e0c6d268fcdb4096c7fac351472a451187b889b3c7480d1812566ccb0cd9abbe4d54bde08d420ea846e28454083d56c3df0183d02
+MISC ChangeLog 2827 SHA256 7fc17242b327bd79e0468db5f23a394a33c6e1b0554f86c5187ab292aaff9ed4 SHA512 a20275283a59882c5309188db5d5a160068c5080d33161dd7b4669198115c9ed348c4c1eb8f90d9187e68406d48d8e00e9364b4557b596cffe2987e5eec251b5 WHIRLPOOL b4e960f7f116b9ed807e14a06302a96f7c8e1dff53b9bb1daf610f1d77bf39d308d797fcfa3205f988a5ed18523b784e1c8caf47a29d9a53b04d12326f83672c
+MISC ChangeLog-2015 7206 SHA256 8b4faa9929c9aba443bdfccdd5653cd4469baa988ced25b343825d0a3cc0556f SHA512 72ee9c1e94e0be90db3591b04df562a642fdf6ac54d05dd6c10ab6be57e1fd155a9021b4428176e3197737e2c1f95e80b9e024b770463261ebf1d9c8089ddfb8 WHIRLPOOL 53116abc4c4dca64c2ea710de1213bce16496b817813264a98f30cfc03a1afff8ae9d1b99d6a205a097b0bf9281f90ce9fe16217a66dbbf977b859398ac7d2c1
+MISC metadata.xml 891 SHA256 438abd8fa753171d6f2be8eb541c6d0641b99f0601c66f1e4fe968123fd5f4ff SHA512 6652538b02d91c4fcb4ae39e6abdbfa66339481a4dc33c177cb9b5fca1787025b0819fcccd89de53fbc851b12db3d1b77f4d0c2baa03766f74e79458d463bdcd WHIRLPOOL b98deb7f71d2482986894f0e3830d8937dae3cf9b59cf08d2e9c27529b6d8cabb8493fd063ed12ecbe0444661bf1467ea4fc73a3cf1b9f270ecd5f6f07717414
diff --git a/games-fps/doom3/doom3-1.3.1304-r1.ebuild b/games-fps/doom3/doom3-1.3.1304-r1.ebuild
new file mode 100644
index 000000000000..04242157ec3f
--- /dev/null
+++ b/games-fps/doom3/doom3-1.3.1304-r1.ebuild
@@ -0,0 +1,99 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils unpacker games
+
+MY_PV="1.3.1.1304"
+
+DESCRIPTION="3rd installment of the classic iD 3D first-person shooter"
+HOMEPAGE="http://www.doom3.com/"
+SRC_URI="mirror://idsoftware/doom3/linux/doom3-linux-${MY_PV}.x86.run
+ http://zerowing.idsoftware.com/linux/${PN}.png"
+
+LICENSE="DOOM3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="cdinstall dedicated roe"
+RESTRICT="strip"
+
+DEPEND="app-arch/bzip2
+ app-arch/tar"
+RDEPEND="sys-libs/glibc
+ amd64? ( sys-libs/glibc[multilib] )
+ !dedicated? (
+ >=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(-)]
+ >=media-libs/alsa-lib-1.0.27.2[abi_x86_32(-)]
+ )
+ cdinstall? (
+ >=games-fps/doom3-data-1.1.1282-r1
+ roe? ( games-fps/doom3-roe ) )"
+
+S=${WORKDIR}
+dir=${GAMES_PREFIX_OPT}/${PN}
+
+QA_TEXTRELS="${dir:1}/pb/pbcl.so
+ ${dir:1}/pb/pbcls.so
+ ${dir:1}/pb/pbag.so
+ ${dir:1}/pb/pbsv.so
+ ${dir:1}/pb/pbags.so"
+
+QA_EXECSTACK="${dir:1}/doom.x86
+ ${dir:1}/doomded.x86"
+
+pkg_pretend() {
+ if use dedicated; then
+ ewarn "${CATEGORY}/${PN}[dedicated] will only install the dedicated game server"
+ fi
+}
+
+src_unpack() {
+ unpack_makeself ${PN}-linux-${MY_PV}.x86.run
+}
+
+src_install() {
+ insinto "${dir}"
+ doins License.txt CHANGES README version.info ${PN}.png
+ doins -r base d3xp pb
+
+ exeinto "${dir}"
+ doexe openurl.sh bin/Linux/x86/doomded.x86
+ if ! use dedicated; then
+ doexe bin/Linux/x86/doom.x86
+
+ games_make_wrapper ${PN} ./doom.x86 "${dir}" "${dir}"
+ doicon "${DISTDIR}"/${PN}.png || die "doicon"
+ make_desktop_entry ${PN} "Doom III"
+ fi
+ games_make_wrapper ${PN}-ded ./doomded.x86 "${dir}" "${dir}"
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+
+ if ! use cdinstall; then
+ elog "You need to copy pak000.pk4, pak001.pk4, pak002.pk4, pak003.pk4, and"
+ elog "pak004.pk4 from either your installation media or your hard drive to"
+ elog "${dir}/base before running the game,"
+ elog "or 'emerge games-fps/doom3-data' to install from CD."
+ if use roe ; then
+ echo
+ elog "To use the Resurrection of Evil expansion pack, you also need to copy"
+ elog "pak000.pk4 to ${dir}/d3xp from the RoE CD before running the game,"
+ elog "or 'emerge doom3-roe' to install from CD."
+ fi
+ fi
+
+ if ! use dedicated; then
+ echo
+ elog "To play the game, run:"
+ elog " doom3"
+ fi
+ echo
+ elog "To start the dedicated server, run:"
+ elog " doom3-ded"
+}
diff --git a/games-fps/doom3/metadata.xml b/games-fps/doom3/metadata.xml
new file mode 100644
index 000000000000..23889c3beb20
--- /dev/null
+++ b/games-fps/doom3/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="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <longdescription>
+Science has unlocked the gates to the unknown, and now only one man stands
+between Hell and Earth. A sci-fi horror masterpiece, DOOM 3 is like nothing you
+have experienced. Dramatic storyline, pulse-pounding action, incredible
+graphics, and revolutionary technology combine to draw you into the most
+frightening and gripping first person gaming experience ever created. For more
+information, checkout http://www.doom3.com
+</longdescription>
+ <use>
+ <flag name="dedicated">install only as a dedicated game server</flag>
+ <flag name="roe">Adds support for the Resurrection of Evil expansion</flag>
+ </use>
+</pkgmetadata>
diff --git a/games-fps/doomsday-resources/Manifest b/games-fps/doomsday-resources/Manifest
new file mode 100644
index 000000000000..7a5034e29c64
--- /dev/null
+++ b/games-fps/doomsday-resources/Manifest
@@ -0,0 +1,6 @@
+DIST jdoom-details.zip 1379495 SHA256 6c822f6a97eddb928d0c8b32f0c84eb5a0051207af0f820d309d94a8caa06556 SHA512 94f0c29940795368e9ffdb9fad57f0de65a936a90ad6256effe6fbaa72d1ddf45a016bb72431d1603ade84c01036f84b7dc3e739d04e6c33a41bdf50a9b45dce WHIRLPOOL 1fdf4158580e1c6c4ccdeb02c11ded119085872512e892e1a14b38b63f909e9247b74dc593d28bf9ee4e3fe81ac2fc8524c5ccc8604196df5fb96eb5f2844aa7
+DIST jdoom-resource-pack-1.01.zip 23114845 SHA256 6797f3b3ccfbb4871027e8bd86153ad5b1d4d87c801a94effc962dabba5a09ac SHA512 ec40f3920338040803b7cb3029e6b52352179fe63a1c56bb74ff398e9eca0ae4c7c058213c812644add70b833c26f9a69844c2ae068cdf7d4c7a4f6c9e277636 WHIRLPOOL 309b2c39e9308bc3ba25b32414fc295a7293e7444bf81c33146a6a78568fc983eb00791cc61cd2111bb8981eb4d79127541ffe4e7372af75a3428556e8b1d26c
+EBUILD doomsday-resources-1.01-r1.ebuild 906 SHA256 1451c382e8966fc68a4e1d8b9584471dadeaef4c4b382fbd07f4f77ee3c332f4 SHA512 a07ec1361f5b72a21da68de7465bcc85271cf0d36f95fd614c278f7b145d682bb6adb6b318020433c5e2a583c69eb8839f81a50f61326b1e80922ea8733a7f9a WHIRLPOOL 121e531a55a55d6a6492a8b8bd7f84ee3bd781156ccf82aed4763b56ad246aa4d7a379c1a23a17be18e14123456e98316ea3f2e87871400114240f986b251653
+MISC ChangeLog 2465 SHA256 fcb9fec5d80c395bf5de10e9066d8d2f4d768991fef2cdb1abe9418b0f0a3a47 SHA512 201a8e790b01220e0fac7c14a4159e12a0e050da17c3af2c2e23136400c6b197e4e215052a8c5ff1bc4af3ffadf166a17ab59b34c6d0026fba16772643935b7c WHIRLPOOL 9604cb7435200c1a41d8afe03bef11d7334e03003ebfde4cd63955fadd5101c76712aec91d3f5e03ebd2b3bd938377b9390782c1856c95f8e435841f5b77ba23
+MISC ChangeLog-2015 1545 SHA256 ec7d73c95cdf1868071b0d0e33826d34954c7bc6a64180c65861027f2277a6d0 SHA512 b45632acafea26310e5fd8082b9423b10f970860cb08977352e083d3671c9d0a1888e57055179eff8cee2b4bc4fed79dbbca3f3dbf35bd8d89e9bef9a58eb05b WHIRLPOOL 0544c892aaa476915c267ee505d8453c517781b0ee2bfeddca429c0410bf7cb7cbbe623989639677a38cc96996d17834b4c40e36bf8dbab34b291489e01491d8
+MISC metadata.xml 327 SHA256 a6b341a5fa2a3886baa0827edde92485a66cf0291040872877d1486c57fb0e03 SHA512 a28389106aa0322f671b0c09000457a24d4ccfe12e18385e9c6e10bfe5043e46318d6eefd264102f6ed65fe4f9a1511da0ba24baa0841a5072e17011520f6028 WHIRLPOOL 421c32d2acc904bd38b70e4b76fb368ede208566c0ae5c8999377cc415847091dd7bb9f2a93fc858a9d1b3946a184ee1d0fe98a17474da0f4513fdb4f93cb055
diff --git a/games-fps/doomsday-resources/doomsday-resources-1.01-r1.ebuild b/games-fps/doomsday-resources/doomsday-resources-1.01-r1.ebuild
new file mode 100644
index 000000000000..08af23f98d6e
--- /dev/null
+++ b/games-fps/doomsday-resources/doomsday-resources-1.01-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 eutils games
+
+DESCRIPTION="Improved models & textures for doomsday"
+HOMEPAGE="http://www.doomsdayhq.com/"
+SRC_URI="mirror://sourceforge/deng/jdoom-resource-pack-${PV}.zip
+ mirror://sourceforge/deng/jdoom-details.zip"
+
+LICENSE="free-noncomm" #505636
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND=">=games-fps/doomsday-1.9.8"
+DEPEND="app-arch/unzip"
+
+S=${WORKDIR}
+
+src_install() {
+ insinto "${GAMES_DATADIR}"/doomsday/data/jdoom/auto
+ doins data/jDoom/* *.pk3
+
+ # The definitions file cannot be auto-loaded
+ insinto "${GAMES_DATADIR}"/doomsday/defs/jdoom
+ doins defs/jDoom/*
+
+ dodoc *.txt docs/*
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ elog "Add the following to the jdoom/doomsday command-line options:"
+ elog " -def ${GAMES_DATADIR}/doomsday/defs/jdoom/jDRP.ded"
+}
diff --git a/games-fps/doomsday-resources/metadata.xml b/games-fps/doomsday-resources/metadata.xml
new file mode 100644
index 000000000000..f2f6b346799c
--- /dev/null
+++ b/games-fps/doomsday-resources/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">deng</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-fps/doomsday/Manifest b/games-fps/doomsday/Manifest
new file mode 100644
index 000000000000..472c2a1c0b8f
--- /dev/null
+++ b/games-fps/doomsday/Manifest
@@ -0,0 +1,5 @@
+DIST doomsday-stable-1.15.8.tar.gz 52054238 SHA256 4c7b1dfdb7f0a44257f47322fe58fd1befba8dac10f44594e1be5dac582f43bf SHA512 6d1b86c6e364cbd043b0714eb351113c8bbaf98daddde1bf615fe663c15a763e26d3e478d1adeb6d8a75ed4c89a5a19f3a891e12ea5937ff2fc54b84118f642c WHIRLPOOL 0f660a430c4b036c92d02f5f84be16fb658b4963bcd694ca2cc92476218afcea367c7ff9d159b9cb63d753d5d10b443dbfdc0684c2c28ce78217d92764f7bdb5
+EBUILD doomsday-1.15.8.ebuild 4862 SHA256 a711450eca199db7102be43a8ba883a6b7e04531d2de51782beb0ca361ec7a6d SHA512 7585416acb559eedd75e3f7e654c0c0bb59c537c0daeeceaa998b553d0e3e9965468525cb56b0690f09220cfbc21d14cc1a33ff38cb59cdf72f3d873d4185b07 WHIRLPOOL aaab5eefb6a7009e77bbe3e7bc8bf1d464df0d81504d7c8e3b28ffda1f47da9f57bf684f7ac844d8a3c1f086737c7028c469a5798d85380055ad42e972405d2c
+MISC ChangeLog 4759 SHA256 affeb5b1694b7653f06707555f9181a961edce6cef39e023aa152da89a9a7b29 SHA512 00aed2ce77889ea77a32a8cead755293909e61860c92c2758b3cba80b4dd4e0b9f6a491e42a2ffe3d9f8591d6ddb5e143075f38beb6af12c070054e17ee8164b WHIRLPOOL c483faef51d46b3acc0b3339895e4255af158ff5e271eaaa427496b8c381035c0b2810f9220c951764947425517823ca9fb2f8a3efc230e465a430753764d03a
+MISC ChangeLog-2015 10345 SHA256 fee336cbc34007b5f5f01485ea26c571f3ca604a8495446a2aeb864adb45e8fe SHA512 68e298af9a7faeea543e3afa3fde53431d40c78a35235569db230cb8b439b7d5bd4725f5f3ebadae383e7dd79727f7c988e0dcb68a6971f32f806c3610135dad WHIRLPOOL 5ac1e5cc2b39c1f170dd5235ba3aa12d3c9fd80c9fd88062425ab653a00519bbe57610251a51409ac2393990379927019ea3b847dda95257353ab21d9ec81803
+MISC metadata.xml 1055 SHA256 6b38dd8426490b850e7b8284a7a58344b0496618c9831fca9431765bc2b8902c SHA512 d7dac2852e2f256b2509a73c87f1f3320e8b19f80e859b2d20cb9a9fc24ac16f96ba792ca09773a7dad0aea9b4245bddce27579dfe3c0076371bf4c7d0392f2d WHIRLPOOL 631bd8a270fa7e65dadbb083e1f4c796b44f79eb56611aea229b9747def83df1d8691688693091dc0428fcef9d0364e9189c194c7267a50b6056368f0629c0de
diff --git a/games-fps/doomsday/doomsday-1.15.8.ebuild b/games-fps/doomsday/doomsday-1.15.8.ebuild
new file mode 100644
index 000000000000..abe5ae54c3ee
--- /dev/null
+++ b/games-fps/doomsday/doomsday-1.15.8.ebuild
@@ -0,0 +1,182 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# TODO: fmod support broken (deng_fmod)
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+inherit python-r1 eutils qmake-utils games
+
+DESCRIPTION="A modern gaming engine for Doom, Heretic, and Hexen"
+HOMEPAGE="http://www.dengine.net/"
+SRC_URI="mirror://sourceforge/deng/Doomsday%20Engine/${PV}/${PN}-stable-${PV}.tar.gz"
+
+LICENSE="GPL-3+ LGPL-3+"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="dedicated fluidsynth openal snowberry +doom demo freedoom heretic hexen resources tools"
+# we need python at build time, so
+# snowberry? ( ${PYTHON_REQUIRED_USE} )
+# could break the build
+REQUIRED_USE="${PYTHON_REQUIRED_USE}
+ demo? ( doom ) freedoom? ( doom ) resources? ( doom )"
+
+DEPEND="
+ dev-qt/qtnetwork:5
+ dev-qt/qtopengl:5
+ dev-qt/qtwidgets:5
+ dev-qt/qtx11extras:5
+ dev-qt/qtgui:5[-gles2]
+ dev-qt/qtcore:5
+ net-misc/curl
+ sys-libs/zlib
+ media-libs/assimp
+ !dedicated? (
+ media-libs/libsdl2[joystick,sound]
+ media-libs/sdl2-mixer
+ media-libs/libpng:0
+ virtual/opengl
+ virtual/glu
+ x11-libs/libX11
+ x11-libs/libXrandr
+ x11-libs/libXxf86vm
+ )
+ fluidsynth? ( media-sound/fluidsynth )
+ openal? ( media-libs/openal )
+ tools? ( sys-libs/ncurses:0 )"
+RDEPEND="${DEPEND}
+ !dedicated? (
+ snowberry? (
+ ${PYTHON_DEPS}
+ dev-lang/python-exec:2[${PYTHON_USEDEP}]
+ dev-python/wxpython[${PYTHON_USEDEP}]
+ )
+ )"
+DEPEND="${DEPEND}
+ ${PYTHON_DEPS}
+ virtual/pkgconfig"
+PDEPEND="
+ !dedicated? (
+ demo? ( games-fps/doom-data )
+ freedoom? ( games-fps/freedoom )
+ resources? ( games-fps/doomsday-resources )
+ )"
+
+S=${WORKDIR}/${PN}-stable-${PV}/${PN}
+
+pkg_setup() {
+ games_pkg_setup
+ python_setup
+}
+
+src_prepare() {
+ sed -i \
+ -e '/readme.path/s#$$PREFIX#/usr#' \
+ client/client.pro server/server.pro || die
+
+ sed -i \
+ -e "/DENG_BASE_DIR =/s:\$\$PREFIX/share:${GAMES_DATADIR}:" \
+ config_unix.pri || die
+
+ {
+ echo "CONFIG += nostrip"
+ echo "PREFIX=${GAMES_PREFIX}"
+
+ if use dedicated ; then
+ echo "CONFIG += deng_noclient"
+ echo "CONFIG += deng_nosnowberry"
+ else
+ echo "CONFIG += deng_$(usex snowberry '' no)snowberry"
+ fi
+
+ use fluidsynth && echo "CONFIG += deng_fluidsynth"
+
+ use tools || echo "CONFIG += deng_notools"
+
+ use openal && echo "CONFIG += deng_openal"
+ true
+
+ } > config_user.pri || die
+}
+
+#Usage: doom_make_wrapper <name> <game> <icon> <desktop entry title> [args]
+doom_make_wrapper() {
+ local name=$1 game=$2 icon=$3 de_title=$4
+ shift 4
+ games_make_wrapper $name "doomsday -game ${game} $@"
+ make_desktop_entry $name "${de_title}" ${icon}
+}
+
+src_configure() {
+ eqmake5 doomsday.pro
+}
+
+src_install() {
+ emake INSTALL_ROOT="${D}" install
+ dodoc "${S}"/../README.md
+
+ mv "${D}/${GAMES_DATADIR}"/{${PN}/data/jdoom,doom-data} || die
+ dosym "${GAMES_DATADIR}"/doom-data "${GAMES_DATADIR}"/${PN}/data/jdoom
+
+ if use !dedicated ; then
+ if use snowberry ; then
+ python_replicate_script "${D}"/"${GAMES_BINDIR}"/launch-doomsday
+
+ installmodules() {
+ # relocate snowberry module directory recursively into site-packages
+ python_domodule "${D}/${GAMES_DATADIR}"/${PN}/snowberry
+ # hack around improper path handling
+ sed -i \
+ -e "s:os.chdir.*$:os.chdir('$(python_get_sitedir)/snowberry'):" \
+ "${D%/}$(python_get_scriptdir)"/launch-doomsday || die
+ }
+ python_foreach_impl installmodules
+ # remove old module dir
+ rm -r "${D}/${GAMES_DATADIR}"/${PN}/snowberry || die
+
+ make_desktop_entry launch-doomsday "Snowberry DoomsDay" snowberry
+ doicon ../snowberry/graphics/snowberry.png
+ fi
+
+ if use doom; then
+ local res_arg
+
+ if use resources; then
+ res_arg="-def \"${GAMES_DATADIR}\"/${PN}/defs/jdoom/jDRP.ded"
+ fi
+
+ doicon ../snowberry/graphics/orb-doom.png
+ doom_make_wrapper jdoom doom1 orb-doom "DoomsDay Engine: Doom 1" "${res_arg}"
+ elog "Created jdoom launcher. To play Doom place your doom.wad to"
+ elog "\"${GAMES_DATADIR}\"/doom-data"
+ elog
+
+ if use demo; then
+ doom_make_wrapper jdoom-demo doom1-share orb-doom "DoomsDay Engine: Doom 1 Demo" \
+ "-iwad \"${GAMES_DATADIR}\"/doom-data/doom1.wad ${res_arg}"
+ fi
+ if use freedoom; then
+ doom_make_wrapper jdoom-freedoom doom1-share orb-doom "DoomsDay Engine: FreeDoom" \
+ "-iwad \"${GAMES_DATADIR}\"/doom-data/freedoom/doom1.wad"
+ fi
+ fi
+ if use hexen; then
+ doicon ../snowberry/graphics/orb-hexen.png
+ doom_make_wrapper jhexen hexen orb-hexen "DoomsDay Engine: Hexen"
+
+ elog "Created jhexen launcher. To play Hexen place your hexen.wad to"
+ elog "\"${GAMES_DATADIR}\"/${PN}/data/jhexen"
+ elog
+ fi
+ if use heretic; then
+ doicon ../snowberry/graphics/orb-heretic.png
+ doom_make_wrapper jheretic heretic orb-heretic "DoomsDay Engine: Heretic"
+
+ elog "Created jheretic launcher. To play Heretic place your heretic.wad to"
+ elog "\"${GAMES_DATADIR}\"/${PN}/data/jheretic"
+ elog
+ fi
+ fi
+
+ prepgamesdirs
+}
diff --git a/games-fps/doomsday/metadata.xml b/games-fps/doomsday/metadata.xml
new file mode 100644
index 000000000000..daf0c62634d3
--- /dev/null
+++ b/games-fps/doomsday/metadata.xml
@@ -0,0 +1,22 @@
+<?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 launcher dor doom1.wad from <pkg>games-fps/doom-data</pkg></flag>
+ <flag name="doom">Install launcher for jdoom game</flag>
+ <flag name="fluidsynth">Build the FluidSynth sound driver</flag>
+ <flag name="freedoom">Install launcher for doom1.wad from <pkg>games-fps/freedoom</pkg></flag>
+ <flag name="heretic">Install launcher for jheretic game</flag>
+ <flag name="hexen">Install launcher for jhexen game</flag>
+ <flag name="resources">Enable support for <pkg>games-fps/doomsday-resources</pkg> in jdoom launcher</flag>
+ <flag name="snowberry">Install Snowberry doomsday front-end</flag>
+ <flag name="tools">Build additional tools such as doomsday-shell, md2tool and texc</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">deng</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-fps/duke3d-data/Manifest b/games-fps/duke3d-data/Manifest
new file mode 100644
index 000000000000..61bbc326a10e
--- /dev/null
+++ b/games-fps/duke3d-data/Manifest
@@ -0,0 +1,5 @@
+DIST gog_duke_nukem_3d_atomic_edition_2.0.0.8.sh 31823668 SHA256 7c70e60c621a13bdc2cd34048022df638ad478cae646f338021f7deea411f63b SHA512 9c74299ac2db58aed4eb50367e15124bea6073cdba6ba5f403032a292d141ba734943af4c15e776cc0a4087a6f92c85d2413a1a525660b75aa0da457b2fac378 WHIRLPOOL dde14e901711b17c87d5edc92587ef4c999c1ffdcf9c67f5527c92b65cd1d23774149dee12c7e9055a476d0b266acbb23519602e32a80a99f47dc3f9d751b44d
+EBUILD duke3d-data-1.0-r3.ebuild 1816 SHA256 2440fdad909241d0d84818e0b65ae54bc3f1f2dddf731fa1620ca85e40a73f35 SHA512 7bc135f0d018732e0ad82ea5241957f60559f11f2229c2e3a407386a739c8e8541b56ded2dfb636864397c3b1b366f01579feb42e76db3d90cc27450d0f95f3e WHIRLPOOL 5da5835a429810d814032701f30333a943c4ddf7ed1826f6788bdcc779bc2561244b37b0078e325dd1a17242732a29acc4d4799efdcaf4afcc16fa5b9a58c525
+MISC ChangeLog 4363 SHA256 dd51f74a4cb745e4c8d66e31e5f39f2f4a2676f5e64f2542e7176d412aa5106f SHA512 edb3ef955647865d2f361ecf7aac58aca8c0c4477f57c031da80da7afd20e926edd84e74f3f8e84026227488bd2a47d767319b0e67434309ea995dfad679568c WHIRLPOOL 5e994002eb0480448a3e7458eae9ddcf9b3c65e73a9b32212092ca34caa1fcc5a0f0bc2560ef31e3df8de9ee3dcd796570fd3c26f3dd75ef50d2b7a3f4a01c60
+MISC ChangeLog-2015 2075 SHA256 90687a044769b7db8b13e8b3cd73bfbed7a100c7f35791890f4013d1f98918fe SHA512 9499b5f6065cec60aa361b2a56c9b07aaea18d6f43e21d5bca64fa14b7334b3c1e50f1f8deb6dd76e86a7f7c210bd5255ea663d0062593aba44c0ea1ba21b0ab WHIRLPOOL 3ae7cf92728f3a5074ee286a921ab545f1ad1e781d57a4422c36d6154ce3631b327dccec16adae486828aedd23a8e66856a1d2033f025bde3771a6cc4968fe96
+MISC metadata.xml 339 SHA256 9e0fd943ea43528e6edcd16bff8b3294b6d7b1595bb52b379ed0542fe1264d34 SHA512 f5cfb8b76fafaea5c08660ecb9ed1a3d25efc85898b37a249c945547c4c4fc40335ec19711025955e12f6e3922f418f81e42c5dcc9a7f8ad82d3cc9dabbe50ef WHIRLPOOL 80d3bb172fb369f2e3b0e67c19a1f5723da60ea8dac3e436c4c1dfe5dee9e1a6f521cb3af4a8c1fc18c91cf43bd55ab8b083832f00f36400d33f2ad2a7a8c30e
diff --git a/games-fps/duke3d-data/duke3d-data-1.0-r3.ebuild b/games-fps/duke3d-data/duke3d-data-1.0-r3.ebuild
new file mode 100644
index 000000000000..cd74a277bde9
--- /dev/null
+++ b/games-fps/duke3d-data/duke3d-data-1.0-r3.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+CDROM_OPTIONAL="yes"
+inherit eutils cdrom unpacker games
+
+GOG_FILE="gog_duke_nukem_3d_atomic_edition_2.0.0.8.sh"
+DESCRIPTION="Duke Nukem 3D data files"
+HOMEPAGE="http://www.3drealms.com/"
+SRC_URI="gog? ( ${GOG_FILE} )"
+
+LICENSE="DUKE3D gog? ( GOG-EULA )"
+SLOT="0"
+KEYWORDS="amd64 hppa x86"
+IUSE="gog"
+REQUIRED_USE="^^ ( cdinstall gog )"
+RESTRICT="mirror bindist gog? ( fetch )"
+
+RDEPEND="|| ( games-fps/eduke32 games-fps/duke3d )"
+DEPEND="gog? ( app-arch/unzip )"
+
+S=${WORKDIR}
+
+pkg_nofetch() {
+ einfo "Please download ${GOG_FILE} from your GOG.com account after buying Duke Nukem 3d"
+ einfo "and put it into ${DISTDIR}."
+}
+
+src_unpack() {
+ if use cdinstall ; then
+ export CDROM_NAME_SET=(
+ "Existing Install"
+ "Duke Nukem 3D CD"
+ "Duke Nukem 3D Atomic Edition CD"
+ )
+ cdrom_get_cds duke3d.grp:dvd/dn3dinst/duke3d.grp:atominst/duke3d.grp
+
+ if [[ ${CDROM_SET} -ne 0
+ && ${CDROM_SET} -ne 1
+ && ${CDROM_SET} -ne 2 ]]
+ then
+ die "Error locating data files.";
+ fi
+ else
+ unpack_zip "${DISTDIR}"/${GOG_FILE}
+ cd data/noarch/data || die
+
+ # convert to lowercase
+ find . -type f \
+ -execdir sh -c 'echo "converting ${1} to lowercase"
+ lower="`echo "${1}" | tr [:upper:] [:lower:]`"
+ [ "${1}" = "${lower}" ] || mv "${1}" "${lower}"' - {} \;
+ fi
+}
+
+src_install() {
+ local DATAROOT
+
+ insinto "${GAMES_DATADIR}"/duke3d
+
+ if use cdinstall ; then
+ case ${CDROM_SET} in
+ 0) DATAROOT="" ;;
+ 1) DATAROOT="dn3dinst/" ;;
+ 2) DATAROOT="atominst/" ;;
+ esac
+
+ # avoid double slash
+ doins "${CDROM_ROOT}"/${DATAROOT}{duke3d.grp,duke.rts,game.con,user.con,demo?.dmo,defs.con}
+ else
+ doins data/noarch/data/{duke3d.grp,duke.rts,game.con,user.con,demo?.dmo,defs.con}
+ fi
+
+ prepgamesdirs
+}
diff --git a/games-fps/duke3d-data/metadata.xml b/games-fps/duke3d-data/metadata.xml
new file mode 100644
index 000000000000..bb71cbd28b6a
--- /dev/null
+++ b/games-fps/duke3d-data/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>
+ <use>
+ <flag name="gog">Extract the data from the GOG.com installer.</flag>
+ </use>
+</pkgmetadata>
diff --git a/games-fps/duke3d-demodata/Manifest b/games-fps/duke3d-demodata/Manifest
new file mode 100644
index 000000000000..d7ae9ffaf9ef
--- /dev/null
+++ b/games-fps/duke3d-demodata/Manifest
@@ -0,0 +1,5 @@
+DIST 3dduke13.zip 5924374 SHA256 c67efd179022bc6d9bde54f404c707cbcbdc15423c20be72e277bc2bdddf3d0e SHA512 eb92daa88b4e7cfeebe1fb3d2c021e0a4a66262d0d6e76b5e27fe3cedd382e381d23b392a6d9adb42a418b9318e011c2d8adfbdc77d7c5371e61d8c091c7eb65 WHIRLPOOL 9f3b9620d042a0209c707e83822fa1acff370504c76a558a6c36452b7f7c701e8289f8b389146cdd6899f47783c318a81792a7702f68d1ca62b31fc2c6844921
+EBUILD duke3d-demodata-1.3.ebuild 1134 SHA256 15580ea1834c39c9d997c0fcb35b7f291385ceb4261981bd47e8ce70ed324bcf SHA512 7a19dcb79570563547475a2b5c135a37fe5cd7101175539d38926ed3b73beb6dd410fa1023b1c75c4ece257180e2e6278559fe8ddc1b2d09d64d142df31fc240 WHIRLPOOL fb3b3a1fb4b86e2aedeca97bbda2e2ba5724977280f332a17fce9f5b59c63d6b35edc2adb9995d6352340db020cd331bdfc469ddd5f27a04631c57d7d87b301a
+MISC ChangeLog 2841 SHA256 dd1d7d6cffa55f1a2c84f2e55c09e006510e6f63ab5ffab4bcbcf066f692b91d SHA512 2c6d1f63e34f2183aaa3f18615a110713c567d7659c611179cc09ad3873ea01d71a24c5284ce708ed87aca6f54eac9bfd9ad7627176dd4497ddfc9483bb7cae2 WHIRLPOOL c7738291224f455c9ec38a5e5ccfd52098a05f5c231c5c960c98fa4ac5eb656d0bcc080dca570dc9968e01e6c001b8b30fd2711672442a37978f9c5ec252997f
+MISC ChangeLog-2015 552 SHA256 b86a48e26045d60e89f8f53deb19a25f65b60c481360c7e40348789eb14ab88e SHA512 44b25d6a2c72f871f6d8eafc494e38c3142af7e069f6306f49ab951587ca47615219824eb705f9e168349b0ce8bf62be8cd5612259122010f0c6626424268363 WHIRLPOOL edbaee24469b853ec32bd1878b72b09f136c7352fa953ed82fdd95a569af079af39f5cf2b644599303504cdb5eb04190349ba6baf154464d215e5378ce9bc3ae
+MISC metadata.xml 253 SHA256 2c95b2eb99144a3b66de17be35eebcf65e5a152a2ec2f176165bb9cd78e5394e SHA512 61c4689cbc649d84a00be211b7b5b98dd03e1d3f813eff370df549f2998cd4343f391c18b57cf20e4a8f4dd2311e3bfa04eb60f356f2bbac78f0b68f5091f254 WHIRLPOOL fd044f0a960e57257f4a15ab16f066bbfe9983e60cd5fc072e631efc7027306c612a01d7fbbf57eb08d957487a7ce1961250194653d6ed87ee23f20d631ef854
diff --git a/games-fps/duke3d-demodata/duke3d-demodata-1.3.ebuild b/games-fps/duke3d-demodata/duke3d-demodata-1.3.ebuild
new file mode 100644
index 000000000000..5374a6dda788
--- /dev/null
+++ b/games-fps/duke3d-demodata/duke3d-demodata-1.3.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit games
+
+DESCRIPTION="Duke Nukem 3D 1.3d shareware data"
+HOMEPAGE="http://www.3drealms.com/duke3d/"
+SRC_URI="ftp://ftp.3drealms.com/share/3dduke13.zip"
+
+LICENSE="DUKE3D"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="app-arch/unzip"
+RDEPEND="games-fps/eduke32"
+
+S=${WORKDIR}
+
+src_unpack() {
+ default
+ rm LICENSE.TXT || die
+ mv DN3DSW13.SHR DN3DSW13.SHR.zip || die
+ unpack ./DN3DSW13.SHR.zip
+}
+
+src_install() {
+ insinto "${GAMES_DATADIR}"/duke3d
+
+ # convert to lowercase
+ find . \( -iname "*.CON" -o -iname "*.DMO" -o -iname "*.RTS" -o -iname "*.GRP" -o -iname "*.PCK" -o -iname "*.INI" \) \
+ -exec sh -c 'echo "${1}"
+ mv "${1}" "$(echo "${1}" | tr [:upper:] [:lower:])"' - {} \;
+
+ doins {defs,game,user}.con demo{1,2,3}.dmo duke.rts duke3d.grp modem.pck ultramid.ini
+
+ dodoc FILE_ID.DIZ README.DOC
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ echo
+ einfo "Please note that many addons for Duke Nukem 3D require the registered version"
+ einfo "and will not work with this shareware version."
+ echo
+}
diff --git a/games-fps/duke3d-demodata/metadata.xml b/games-fps/duke3d-demodata/metadata.xml
new file mode 100644
index 000000000000..26079e608bed
--- /dev/null
+++ b/games-fps/duke3d-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-fps/duke3d/Manifest b/games-fps/duke3d/Manifest
new file mode 100644
index 000000000000..2ca2f91911de
--- /dev/null
+++ b/games-fps/duke3d/Manifest
@@ -0,0 +1,16 @@
+AUX 20040817-credits.patch 1267 SHA256 ea4d7540790ea937d97d5e87abdfa893e58b699fcb16abb30e84529edce061a9 SHA512 a337f40df1bc300110b507f7fd8cb090cef8c3e49d40379c6899a4a0520b80c26c85fca677cfa2a041a3afad84250480bb4611cb59ea0b5072f8074afaa84e3c WHIRLPOOL e6ec21c755818258834e50cbca815854295b5a9c49bd47fc1c9e2a7980cdcd36894824cf4dbda3dd0fd780d68d208c056355c9f7273e604afb690dbea9c72009
+AUX 20040817-duke3d-makefile-opts.patch 863 SHA256 afcc1bfc4e3977dbe02b1f390d184b00d8773b1690dce10f4728c535b9c69d56 SHA512 6475219290d41cc9b9974c47269237099d08d695f940ecc6bc3c21504a85635a3b934f0755e20b13fb6e3c9444e5dccafbe70474ec5d27fabfdb3ae35ec5d75b WHIRLPOOL 3c11bbb05801ae8ffbf2dff959e0b8e2a42a91bd1a1c3bdcd6d98e7a89a1c8c0aa2063b2b62b18266ebde84694fd0ac674e36b9008d315181187d43b128b2622
+AUX 20040817-endian.patch 772 SHA256 e0bd07c16123593627e888c102a84af033e906ace3aa3a1559828d83626ec16e SHA512 4f052ab4328c2d421487479c1cd3a81e108381ad1b7c63a2d8a6366826f72ce631b455558d410fd129fa3584d2a623a8329bc83719726ccc76e7e513f4d16c68 WHIRLPOOL c8cb31e1920c533d615b8ca39db77eb73b83f5da7547f85115d344df686a336381645dcf196090e49dc7118e1c93c3f3c8d6b2e71b72995511cdcccb45f41943
+AUX 20040817-gcc34.patch 1886 SHA256 f6f8271c95d898317b17eb22986a90294db4297482b011b01bf659c22686a3d8 SHA512 96e6ccffaa0334b1acfeb6542cf729eab22be5ea04c8985f5133c3a73d3ba26a568de7de00ff9bfbdc822edfb1b1438740f742d92b5fb3da62887e2aaf3f1076 WHIRLPOOL 5fb4b33c3ea62e92e0e2df1d447c193a5a441b414720dc87d801e023efa5b7b651429c9704c804b2fa146f62029ae918bb970e2a348eaa84fe55b7d81e34ef90
+AUX duke3d-20040817-as-needed.patch 2774 SHA256 b9e9e5040c845974a633987d8248bde62d9c04579d0b3e8e6eab18b8027b6701 SHA512 b2ae1da82658f0602b0270fd9095f5c848faf974170a3a9b761dae8160b60c7874a4587f10a70e657c9d1f1c5dc782cc4ce71a8d6bec84f2a7bc11cdbb91c327 WHIRLPOOL 0ddedf88ecf9b58c9618227c5a78f057b76c4a6c383e8bd01559636c36a37893f009988ab2926d0dd840303167bd4f94287e36f94dd7a34cb4e006d5775e1619
+AUX duke3d-20040817-gcc4.patch 10474 SHA256 010ceb7ff130da74d0f6349a9d12ddc206940d8545499cccb319220ba7d9d585 SHA512 9b368725ae518c01ea449568e700f1e515098608daae0055a66012a6ee4cb1583dd5a252e9782de6db6520820517dc126ae8b51280261f42b14b38ff0e0db4f3 WHIRLPOOL 81331cde93333b7867c08913cacf650b950e75fa61c88a906d679b6918fbaa77b513f3526dd3ec947db75ca7180d59eec60415cdd3d6c87697baae7760cc4734
+AUX duke3d-20040817-ldflags.patch 2132 SHA256 4044e2877f5b5c81c41cd8e868c5a9e3895f3e32ee2e03b55a2c2b1c3ca69555 SHA512 afdcbc422b98c3c07bc4aea54865f2c7a167838eaa2270109e0066fb2e1db069bf5034bb78c0dd428baa0372465be4614125243a33aedfba19938b8e8f905b27 WHIRLPOOL c616a84b2cce027fa4f4ef0ebcbac94b64ca44fe7d4fdb3cd1eb05b249138b07b945ba1f5ef92eb4d3b6599acb23ca2d4da06488257e15965dd5725ec120f822
+AUX duke3d-20040817-noinline.patch 545 SHA256 9d0783517eefc0a1d28189260e91af8318ab1d0395f336ab5f5c72e86504e0fa SHA512 aad5543419c762083a908b3905c22efa102cc6d9724a7fb5ee5eab96fd490c1afce632395a53049ec1b6d2123aed1c2440e583994773916eb1268bc75471ea79 WHIRLPOOL 12d45e4de548b9c97e4d19d5b41ee6c1624fb0a2610c517a34300c9ca1aed65def477c8ec6f32afec5c3f4f1f02eb2816506490c013b78c2664db31b183dc45d
+AUX duke3d.cfg 4314 SHA256 0ad9477e6185f0d812d726943beacdc7f7581f66c86640f44ee8e5621fe40556 SHA512 5b4d020d6ea9b5bfdc4333c2a0b90667577662ed32a826263560e74bd436372d689d179290a87c86d921c4accbaa75da013a3426d98f49cc7ffb6a1be5fb25a7 WHIRLPOOL e10f70b04d3e82c1a687104082076e41057322dc7eaaf885cfcc81bbdd56c9ab51efc17559f115b5f0453b390aa3ea183dd007feeec241ad1f9568ef3d70f22c
+AUX network.cfg 398 SHA256 fe5806712207d39812906034b76191effc96d7c6efa9c8bd9081e18fab76d7b5 SHA512 89a5261453c5ad14caed7e768ef6a337f601afd2e02809987708cfad9f356847a3249ab7b1fb6f0e084874100afc1494d62e4d898f4433c1f4f763a1e822f26b WHIRLPOOL aad04fdd9e18f7f93a06a377b034ac07ea3df04a8269e50cd99e74fdefab4c24e6a866d4c77e8946903e90d2bd10edb8c868e135cd80e9c73e317667298a8703
+DIST 3dduke13.zip 5924374 SHA256 c67efd179022bc6d9bde54f404c707cbcbdc15423c20be72e277bc2bdddf3d0e SHA512 eb92daa88b4e7cfeebe1fb3d2c021e0a4a66262d0d6e76b5e27fe3cedd382e381d23b392a6d9adb42a418b9318e011c2d8adfbdc77d7c5371e61d8c091c7eb65 WHIRLPOOL 9f3b9620d042a0209c707e83822fa1acff370504c76a558a6c36452b7f7c701e8289f8b389146cdd6899f47783c318a81792a7702f68d1ca62b31fc2c6844921
+DIST duke3d-20040817.tar.bz2 1509273 SHA256 c0dd72030f9c5b84aea3e4989831311c94ef21641d6a1fdb0f557d04076f641f SHA512 a08aa07153458501fb01878769af9797460525015b34d743250e3f04f15ee2dcfbb4110c94c83912ba2435e6d6c48127e2d36c0dc29833e0f6f95e3b925b571c WHIRLPOOL b0e27cae348601980e18f95a6507bc3080a51fe4f70919127eefd9cc90185dcd4cb287e970c2fa1ecc4a6b04422804748a071006e1b4551cde73e4cd18abe40a
+EBUILD duke3d-20040817-r2.ebuild 2808 SHA256 bd4082df1c89b29386cdc4e38e83c9b2de545c8d96eecb859e8722f4d2735c51 SHA512 65be36db5d302c0cbc1289080a3e681d337e250a5fb3ad09b94680baed6ecd305b54a54dd5fba51dc3a50db4b001f74c952c7d985389ffb52d2eb0c762710f4d WHIRLPOOL 912dd841920fa4561949d7ffd66acf27dbd187d4d850883be8661eebc60540d48815b6a6c8c5edc4b4ad6b595866584c9982f2e6468fd51db6f0111c0e756e26
+MISC ChangeLog 3474 SHA256 ba713a18a5b4e59b7e3d09269ead951074b7a1eaf577047be1c9de7141f87182 SHA512 9dffd886b948e2332da6d9aa4dde238c7100e4b3996807cb27115480d3ed683d895867d43014e3ae3ebe729dda5a90cf3c5e40dd11e6649cf86c69ca98f4fb56 WHIRLPOOL c2e4dfff6f41ff875bbed0f9070d80e9c28e3e3aa869a8dbf8f5b04e12b4cf266ff994a503af9e716ec89408553ba39869e02c0c09e0efda9fc6d1e5c6b949f8
+MISC ChangeLog-2015 5805 SHA256 01a5375f1a44877093dda0a43789bb1b8e53b64f442a30d90b981bf34f04606c SHA512 4d66f0eae271f72773b81b71711b8f7ada33e7ef2b4160757d29cf66503e1e06132b9603ca9dc88fa61323d97ad4ebdf494b62a1ec2e775d9aead3d74e458d0f WHIRLPOOL 3f8fcc6f6e231f60528e9f07cb7afeac5260950a124ad58008aaa1d85dc80c2a87b2c4b94db628cdfb3a56d24f9ab9e347860e6feef2a61b8c47a56cf27f3914
+MISC metadata.xml 2851 SHA256 2ab2e90d4887e107ee7b3d34356d6e5c5b11cf3fc4cff78348cec4083706f477 SHA512 ae872ac33570fc2f067e50a29e4a9c8d51477d64cbf2596889421a09a07b78e9041d8c60abf33cdaa4f16a6079fc49bd4307493620ea8d47c74b37b4cc697d04 WHIRLPOOL 9a357e3ad3b4dd1ea5600b3e72967896f81e50bdf0ea1b33fd22a75038104fde024d9af7156bca5893bd647dc9835583fe673a455283168cdded811f4b4f460e
diff --git a/games-fps/duke3d/duke3d-20040817-r2.ebuild b/games-fps/duke3d/duke3d-20040817-r2.ebuild
new file mode 100644
index 000000000000..01ee62481cdd
--- /dev/null
+++ b/games-fps/duke3d/duke3d-20040817-r2.ebuild
@@ -0,0 +1,114 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+fromcvs=0
+inherit unpacker eutils flag-o-matic games
+
+DEMO="3dduke13.zip"
+
+DESCRIPTION="Port of the original Duke Nukem 3D"
+HOMEPAGE="http://icculus.org/projects/duke3d/"
+SRC_URI="mirror://gentoo/${P}.tar.bz2
+ demo? (
+ ftp://ftp.3drealms.com/share/${DEMO}
+ ftp://ftp.planetmirror.com/pub/gameworld/downloads/${DEMO}
+ )"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="hppa x86"
+IUSE="demo pic perl opengl"
+
+RDEPEND="media-libs/libsdl
+ media-libs/sdl-mixer
+ media-sound/timidity++
+ media-sound/timidity-eawpatches
+ perl? ( dev-lang/perl[-ithreads] )
+ opengl? ( virtual/opengl )"
+DEPEND="${RDEPEND}
+ demo? ( app-arch/unzip )
+ !pic? ( x86? ( dev-lang/nasm ) )"
+
+S=${WORKDIR}/${PN}
+
+use_tf() { use ${1} && echo "true" || echo "false"; }
+
+src_unpack() {
+ unpack ${A}
+ if use demo ; then
+ unpack_zip DN3DSW13.SHR
+ fi
+}
+
+src_prepare() {
+ # configure buildengine
+ cd "${S}/source/buildengine"
+ sed -i \
+ -e "/^useperl := / s:=.*:= $(use_tf perl):" \
+ -e "/^useopengl := / s:=.*:= $(use_tf opengl):" \
+ -e "/^usephysfs := / s:=.*:= false:" \
+ -e 's:-O3::' -e 's: -g : :' \
+ -e 's:/usr/lib/perl5/i386-linux/CORE/libperl.a::' \
+ Makefile || die
+ epatch "${FILESDIR}/${PV}-endian.patch"
+
+ # configure duke3d
+ cd "${S}/source"
+ # need to sync features with build engine
+ epatch \
+ "${FILESDIR}/${PV}-credits.patch" \
+ "${FILESDIR}/${PV}-duke3d-makefile-opts.patch" \
+ "${FILESDIR}/${PV}-gcc34.patch" \
+ "${FILESDIR}"/${P}-gcc4.patch \
+ "${FILESDIR}"/${P}-noinline.patch \
+ "${FILESDIR}"/${P}-as-needed.patch \
+ "${FILESDIR}"/${P}-ldflags.patch
+ sed -i \
+ -e "/^use_opengl := / s:=.*:= $(use_tf opengl):" \
+ -e "/^use_physfs := / s:=.*:= false:" \
+ Makefile || die
+ if ! use pic && use x86 ; then
+ sed -i \
+ -e 's:^#USE_ASM:USE_ASM:' buildengine/Makefile || die
+ sed -i \
+ -e '/^#use_asm := /s:#::' Makefile || die
+ fi
+
+ # causes crazy redefine errors with gcc-3.[2-4].x
+ replace-flags -O3 -O2
+ strip-flags #203969
+}
+
+src_compile() {
+ emake -C source/buildengine OPTFLAGS="${CFLAGS}"
+ emake -C source OPTIMIZE="${CFLAGS}"
+}
+
+src_install() {
+ games_make_wrapper duke3d "${GAMES_BINDIR}/duke3d.bin" "${GAMES_DATADIR}/${PN}"
+ newgamesbin source/duke3d duke3d.bin
+
+ dodoc readme.txt
+
+ cd testdata
+ insinto "${GAMES_DATADIR}/${PN}"
+ newins defs.con DEFS.CON
+ newins game.con GAME.CON
+ newins user.con USER.CON
+ newins "${FILESDIR}/network.cfg" network.cfg.template
+ if use demo ; then
+ doins "${WORKDIR}/DUKE3D.GRP"
+ fi
+
+ insinto "${GAMES_SYSCONFDIR}"
+ doins "${FILESDIR}/duke3d.cfg"
+ dosym "${GAMES_SYSCONFDIR}/duke3d.cfg" "${GAMES_DATADIR}/${PN}/DUKE3D.CFG"
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ use demo || elog "Put the data files in ${GAMES_DATADIR}/${PN} before playing"
+}
diff --git a/games-fps/duke3d/files/20040817-credits.patch b/games-fps/duke3d/files/20040817-credits.patch
new file mode 100644
index 000000000000..176fcd74752b
--- /dev/null
+++ b/games-fps/duke3d/files/20040817-credits.patch
@@ -0,0 +1,38 @@
+--- menues.c 2003-08-17 22:16:10.000000000 +0200
++++ menues.c 2004-03-29 01:59:28.000000000 +0200
+@@ -1747,9 +1747,10 @@
+ case 996:
+ case 997:
+
+-// rotatesprite(c<<16,200<<15,65536L,0,MENUSCREEN,16,0,10+64,0,0,xdim-1,ydim-1);
+-// rotatesprite(c<<16,19<<16,65536L,0,MENUBAR,16,0,10,0,0,xdim-1,ydim-1);
+-// menutext(c,24,0,0,"CREDITS");
++ c = (320>>1);
++ rotatesprite(c<<16,200<<15,65536L,0,MENUSCREEN,16,0,10+64,0,0,xdim-1,ydim-1);
++ rotatesprite(c<<16,19<<16,65536L,0,MENUBAR,16,0,10,0,0,xdim-1,ydim-1);
++ menutext(c,24,0,0,"CREDITS");
+
+ if(KB_KeyPressed(sc_Escape)) { cmenu(0); break; }
+
+@@ -1926,6 +1927,21 @@
+
+ menutext(c,67+16+16+16+16+16,SHX(-7),PHX(-7),"QUIT");
+
++ gametext(c,67+16+16+16+16+16+16+16,"Duke Nukem 3D for "
++#if defined PLATFORM_MACOSX
++ "MacOS"
++#elif defined PLATFORM_DOS
++ "MS-Dos"
++#elif defined PLATFORM_WIN32
++ "Win32"
++#elif defined PLATFORM_UNIX
++ "Gentoo"
++#else
++ "unknown"
++#endif
++ ,16,2+8+16);
++ gametext(c,67+16+16+16+16+16+16+16+9,"build " __DATE__ " " __TIME__,16,2+8+16);
++
+ break;
+ // CTW END - MODIFICATION
+
diff --git a/games-fps/duke3d/files/20040817-duke3d-makefile-opts.patch b/games-fps/duke3d/files/20040817-duke3d-makefile-opts.patch
new file mode 100644
index 000000000000..d23f7a118f77
--- /dev/null
+++ b/games-fps/duke3d/files/20040817-duke3d-makefile-opts.patch
@@ -0,0 +1,33 @@
+--- Makefile.orig 2003-08-17 17:45:35.948650760 -0400
++++ Makefile 2003-08-17 17:46:36.894385600 -0400
+@@ -4,6 +4,8 @@
+ beos := false
+ macosx := false
+ #use_asm := true
++use_opengl := true
++use_physfs := false
+
+ #-----------------------------------------------------------------------------#
+ # If this makefile fails to detect Cygwin correctly, or you want to force
+@@ -80,6 +81,10 @@
+ buildengine/pragmas.o \
+ buildengine/unix_compat.o
+
++ifeq ($(strip $(use_opengl)),true)
++ BUILDOBJS += buildengine/buildgl.o
++endif
++
+ ifeq ($(strip $(use_asm)),true)
+ BUILDOBJS += buildengine/a_gnu.o buildengine/a_nasm.o
+ else
+@@ -106,6 +106,10 @@
+
+ LDLIBS = $(SDL_LDFLAGS) -lSDL -lSDL_mixer $(EXTRALDFLAGS)
+
++ifeq ($(strip $(use_physfs)),true)
++ LDLIBS += -lphysfs
++endif
++
+ # !!! FIXME: Do we even need this? It doesn't fly on MacOS X. --ryan.
+ #LDLIBS += -Wl,-E
+
diff --git a/games-fps/duke3d/files/20040817-endian.patch b/games-fps/duke3d/files/20040817-endian.patch
new file mode 100644
index 000000000000..a22d07fb09f1
--- /dev/null
+++ b/games-fps/duke3d/files/20040817-endian.patch
@@ -0,0 +1,26 @@
+--- duke3d/source/buildengine/platform.h 2003-08-07 12:06:17.000000000 +0200
++++ duke3d.new/source/buildengine/platform.h 2004-08-24 18:35:05.292291088 +0200
+@@ -5,6 +5,7 @@
+ #include "win32_compat.h"
+ #elif (defined PLATFORM_UNIX)
+ #include "unix_compat.h"
++#include <endian.h>
+ #elif (defined PLATFORM_DOS)
+ #include "doscmpat.h"
+ #else
+@@ -60,9 +61,15 @@
+ #define BUILDSWAP_INTEL16(x) _swap16(x)
+ #define BUILDSWAP_INTEL32(x) _swap32(x)
+ #else
++#if __BYTE_ORDER == __LITTLE_ENDIAN
+ #define PLATFORM_LITTLEENDIAN 1
+ #define BUILDSWAP_INTEL16(x) (x)
+ #define BUILDSWAP_INTEL32(x) (x)
++#else
++#define PLATFORM_BIGENDIAN 1
++#define BUILDSWAP_INTEL16(x) _swap16(x)
++#define BUILDSWAP_INTEL32(x) _swap32(x)
++#endif
+ #endif
+
+ extern int has_altivec; /* PowerPC-specific. */
diff --git a/games-fps/duke3d/files/20040817-gcc34.patch b/games-fps/duke3d/files/20040817-gcc34.patch
new file mode 100644
index 000000000000..a7de9c116383
--- /dev/null
+++ b/games-fps/duke3d/files/20040817-gcc34.patch
@@ -0,0 +1,82 @@
+--- source/astub.c.orig 2004-08-22 14:44:50.691126872 +0100
++++ source/astub.c 2004-08-22 14:47:15.532107696 +0100
+@@ -540,6 +540,11 @@
+ return(tempbuf);
+ } //end
+
++void SpriteName(short spritenum, char *lo2)
++{
++ sprintf(lo2,names[sprite[spritenum].picnum]);
++}// end SpriteName
++
+ const char *ExtGetSpriteCaption(short spritenum)
+ {
+
+@@ -608,7 +613,11 @@
+ // y1, y2 0-143 (status bar is 144 high, origin is top-left of STATUS BAR)
+ // col 0-15
+
+-
++void PrintStatus(char *string,int num,char x,char y,char color)
++{
++ sprintf(tempbuf,"%s %d",string,num);
++ printext16(x*8,y*8,color,-1,tempbuf,0);
++}
+
+ void TotalMem()
+ {
+@@ -1276,18 +1285,6 @@
+
+ }
+
+-
+-void PrintStatus(char *string,int num,char x,char y,char color)
+-{
+- sprintf(tempbuf,"%s %d",string,num);
+- printext16(x*8,y*8,color,-1,tempbuf,0);
+-}
+-
+-void SpriteName(short spritenum, char *lo2)
+-{
+- sprintf(lo2,names[sprite[spritenum].picnum]);
+-}// end SpriteName
+-
+ char GAMEpalette[768];
+ char WATERpalette[768];
+ char SLIMEpalette[768];
+@@ -1326,6 +1323,17 @@
+ ReadGamePalette();
+ }// end ReadPaletteTable
+
++void Ver()
++{
++ sprintf(tempbuf,"DUKE NUKEM BUILD: V032696");
++ if (qsetmode == 200) //In 3D mode
++ { printext256(60*8,24*8,11,-1,tempbuf,1);
++ rotatesprite((320-8)<<16,(200-8)<<16,64<<9,0,SPINNINGNUKEICON+(((4-totalclock>>3))&7),0,0,0,0,0,xdim-1,ydim-1);
++ }else
++ { printext16(0,0,15,-1,tempbuf,0);
++ }
++}
++
+ void Keys3d(void)
+ {
+ long i,count,rate,nexti;
+@@ -2206,17 +2214,6 @@
+ }
+ }
+
+-void Ver()
+-{
+- sprintf(tempbuf,"DUKE NUKEM BUILD: V032696");
+- if (qsetmode == 200) //In 3D mode
+- { printext256(60*8,24*8,11,-1,tempbuf,1);
+- rotatesprite((320-8)<<16,(200-8)<<16,64<<9,0,SPINNINGNUKEICON+(((4-totalclock>>3))&7),0,0,0,0,0,xdim-1,ydim-1);
+- }else
+- { printext16(0,0,15,-1,tempbuf,0);
+- }
+-}
+-
+ ActorMem(int i)
+ {int total=0,j;
+ switch(i)
diff --git a/games-fps/duke3d/files/duke3d-20040817-as-needed.patch b/games-fps/duke3d/files/duke3d-20040817-as-needed.patch
new file mode 100644
index 000000000000..5eb90fea3e14
--- /dev/null
+++ b/games-fps/duke3d/files/duke3d-20040817-as-needed.patch
@@ -0,0 +1,74 @@
+diff -ur duke3d/source/buildengine/Makefile duke3d-patched/source/buildengine/Makefile
+--- duke3d/source/buildengine/Makefile 2004-05-15 05:15:05.000000000 +0200
++++ duke3d-patched/source/buildengine/Makefile 2008-02-27 23:10:46.000000000 +0100
+@@ -99,11 +99,11 @@
+ ifeq ($(strip $(SDL_LIB_DIR)),please_set_me_cygwin_users)
+ $(error Cygwin users need to set the SDL_LIB_DIR envr var.)
+ else
+- SDL_LDFLAGS := -L$(SDL_LIB_DIR) -lSDL
++ SDL_LIBS := -L$(SDL_LIB_DIR) -lSDL
+ endif
+ else
+ SDL_CFLAGS := $(shell sdl-config --cflags)
+- SDL_LDFLAGS := $(shell sdl-config --libs)
++ SDL_LIBS := $(shell sdl-config --libs)
+ endif
+
+ CC = gcc
+@@ -202,7 +202,7 @@
+ ASMFLAGS = -f $(ASMOBJFMT) $(ASMDEFS)
+ LINKER = gcc
+ CFLAGS += $(USE_ASM) -funsigned-char -DPLATFORM_UNIX -Wall $(SDL_CFLAGS) -fno-omit-frame-pointer
+-LDFLAGS += $(SDL_LDFLAGS)
++LDLIBS += $(SDL_LIBS)
+
+ # Rules for turning source files into .o files
+ %.o: %.c
+@@ -236,17 +236,17 @@
+
+ ifeq ($(strip $(usedlls)),true)
+ $(ENGINEDLL) : $(ENGINEOBJS)
+- $(LINKER) -shared -o $(ENGINEDLL) $(LDFLAGS) $(ENGINEOBJS)
++ $(LINKER) -shared -o $(ENGINEDLL) $(LDFLAGS) $(ENGINEOBJS) $(LDLIBS)
+
+ $(NETDLL) : $(NETOBJS)
+- $(LINKER) -shared -o $(NETDLL) $(LDFLAGS) $(NETOBJS)
++ $(LINKER) -shared -o $(NETDLL) $(LDFLAGS) $(NETOBJS) $(LDLIBS)
+ endif
+
+ $(GAMEEXE) : $(ENGINEDLL) $(NETDLL) $(GAMEOBJS) $(PERLOBJS)
+- $(LINKER) -o $(GAMEEXE) $(LDFLAGS) $(LDPERL) $(PERLOBJS) $(GAMEOBJS) $(ENGINEDLL) $(NETDLL)
++ $(LINKER) -o $(GAMEEXE) $(LDFLAGS) $(PERLOBJS) $(GAMEOBJS) $(LDPERL) $(LDLIBS) $(ENGINEDLL) $(NETDLL)
+
+ $(BUILDEXE) : $(ENGINEDLL) $(BUILDOBJS)
+- $(LINKER) -o $(BUILDEXE) $(LDFLAGS) $(BUILDOBJS) $(ENGINEDLL)
++ $(LINKER) -o $(BUILDEXE) $(LDFLAGS) $(BUILDOBJS) $(LDLIBS) $(ENGINEDLL)
+
+ listclean:
+ @echo "A 'make clean' would remove" $(CLEANUP)
+diff -ur duke3d/source/Makefile duke3d-patched/source/Makefile
+--- duke3d/source/Makefile 2004-05-15 05:14:16.000000000 +0200
++++ duke3d-patched/source/Makefile 2008-02-27 23:09:57.000000000 +0100
+@@ -45,11 +45,11 @@
+ ifeq ($(strip $(SDL_LIB_DIR)),please_set_me_cygwin_users)
+ $(error Cygwin users need to set the SDL_LIB_DIR envr var.)
+ else
+- SDL_LDFLAGS := -L$(SDL_LIB_DIR) -lSDL
++ SDL_LIBS := -L$(SDL_LIB_DIR) -lSDL
+ endif
+ else
+ SDL_CFLAGS := $(shell sdl-config --cflags)
+- SDL_LDFLAGS := $(shell sdl-config --libs) -L.
++ SDL_LIBS := $(shell sdl-config --libs) -L.
+ endif
+
+ ifeq ($(strip $(macosx)),true)
+@@ -104,7 +104,7 @@
+ #CC = icc
+ #CFLAGS = -g $(SDL_CFLAGS) -DUSE_SDL=1 -DPLATFORM_UNIX=1 -DUSE_I386_ASM=1 $(EXTRACFLAGS) -O2
+
+-LDLIBS = $(SDL_LDFLAGS) -lSDL -lSDL_mixer $(EXTRALDFLAGS)
++LDLIBS = $(SDL_LIBS) -lSDL -lSDL_mixer $(EXTRALDFLAGS)
+
+ # !!! FIXME: Do we even need this? It doesn't fly on MacOS X. --ryan.
+ #LDLIBS += -Wl,-E
diff --git a/games-fps/duke3d/files/duke3d-20040817-gcc4.patch b/games-fps/duke3d/files/duke3d-20040817-gcc4.patch
new file mode 100644
index 000000000000..2a37148d799c
--- /dev/null
+++ b/games-fps/duke3d/files/duke3d-20040817-gcc4.patch
@@ -0,0 +1,180 @@
+iff -ur duke3d/source/buildengine/a.c duke3d-gcc4/source/buildengine/a.c
+--- duke3d/source/buildengine/a.c 2004-11-25 13:55:21.000000000 -0500
++++ duke3d-gcc4/source/buildengine/a.c 2005-06-18 18:14:24.000000000 -0400
+@@ -186,7 +186,9 @@
+ if (i3 == 0)
+ {
+ i1 += i4;
+- ((unsigned long)i4) >>= mach3_al;
++ unsigned long temp = i4;
++ temp >>= mach3_al;
++ i4 = temp;
+ i4 = (i4&0xffffff00) | (source[i4]&0xff);
+ *dest = ((unsigned char*)i2)[i4];
+ return i1;
+diff -ur duke3d/source/buildengine/pragmas.c duke3d-gcc4/source/buildengine/pragmas.c
+--- duke3d/source/buildengine/pragmas.c 2003-07-25 20:11:32.000000000 -0400
++++ duke3d-gcc4/source/buildengine/pragmas.c 2005-06-18 18:25:37.000000000 -0400
+@@ -56,28 +56,39 @@
+
+ void clearbufbyte(void *buffer, int size, long fill_value) {
+ int lsize;
++ unsigned char *p=buffer;
++ unsigned short *s=buffer;
+ switch(size){
+ case 0: return;
+- case 1: *((unsigned char*)buffer)++ = fill_value; return;
+- case 2: *((unsigned short*)buffer)++ = fill_value; return;
+- case 3: { unsigned char *p=buffer; p[2]=p[1]=p[0] = fill_value;} return;
++ case 1: *p = fill_value; return;
++ case 2: *s = fill_value; return;
++ case 3: { p[2]=p[1]=p[0] = fill_value;} return;
+ default:
+ if ((int)buffer&1) {
+- *((unsigned char*)buffer)++ = fill_value; size--;
++ *p = fill_value; ++p; size--;
++ buffer = p;
+ }
+ if ((int)buffer&2) {
+- *((unsigned short*)buffer)++ = fill_value; size-=2;
++ *s = fill_value; ++s; size-=2;
++ buffer = s;
+ }
+ lsize = size>>2;
++ unsigned int *up = buffer;
+ while(lsize) {
+- *((unsigned int*)buffer)++ = fill_value;
++ *up = fill_value;
++ ++up;
+ lsize--;
+ }
++ buffer = up;
+ if (size&2) {
+- *((unsigned short*)buffer)++ = fill_value;
++ s = buffer;
++ *s = fill_value;
++ ++s;
+ }
+ if (size&1) {
+- *((unsigned char*)buffer)++ = fill_value;
++ p = buffer;
++ *p = fill_value;
++ ++p;
+ }
+ }
+ }
+@@ -122,7 +133,7 @@
+ {
+ *((unsigned short *)source) = ((linum>>16)&0xffff);
+ linum += linum_inc;
+- ((unsigned char*)source) = ((unsigned char*)source) + 2;
++ source = ((unsigned char*)source) + 2;
+ size--;
+ if (size == 0) return;
+ }
+
+diff -u -r duke3d/source/buildengine/a.h duke3d.gcc4.1.1/source/buildengine/a.h
+--- duke3d/source/buildengine/a.h 2003-04-11 08:54:06.000000000 +0200
++++ duke3d.gcc4.1.1/source/buildengine/a.h 2006-06-22 12:14:40.366393568 +0200
+@@ -116,56 +116,56 @@
+
+ #if ((defined __GNUC__) && (!defined C_IDENTIFIERS_UNDERSCORED))
+
+- long asm_mmxoverlay(void) __attribute__ ((alias ("_asm_mmxoverlay")));
+- long asm_sethlinesizes(long,long,long) __attribute__ ((alias ("_asm_sethlinesizes")));
+- long asm_setpalookupaddress(char *) __attribute__ ((alias ("_asm_setpalookupaddress")));
+- long asm_setuphlineasm4(long,long) __attribute__ ((alias ("_asm_setuphlineasm4")));
+- long asm_hlineasm4(long,long,long,long,long,long) __attribute__ ((alias ("_asm_hlineasm4")));
+- long asm_setuprhlineasm4(long,long,long,long,long,long) __attribute__ ((alias ("_asm_setuprhlineasm4")));
+- long asm_rhlineasm4(long,long,long,long,long,long) __attribute__ ((alias ("_asm_rhlineasm4")));
+- long asm_setuprmhlineasm4(long,long,long,long,long,long) __attribute__ ((alias ("_asm_setuprmhlineasm4")));
+- long asm_rmhlineasm4(long,long,long,long,long,long) __attribute__ ((alias ("_asm_rmhlineasm4")));
+- long asm_setupqrhlineasm4(long,long,long,long,long,long) __attribute__ ((alias ("_asm_setupqrhlineasm4")));
+- long asm_qrhlineasm4(long,long,long,long,long,long) __attribute__ ((alias ("_asm_qrhlineasm4")));
+- long asm_setvlinebpl(long) __attribute__ ((alias ("_asm_setvlinebpl")));
+- long asm_fixtransluscence(long) __attribute__ ((alias ("_asm_fixtransluscence")));
+- long asm_prevlineasm1(long,long,long,long,long,long) __attribute__ ((alias ("_asm_prevlineasm1")));
+- long asm_vlineasm1(long,long,long,long,long,long) __attribute__ ((alias ("_asm_vlineasm1")));
+- long asm_setuptvlineasm(long) __attribute__ ((alias ("_asm_setuptvlineasm")));
+- long asm_tvlineasm1(long,long,long,long,long,long) __attribute__ ((alias ("_asm_tvlineasm1")));
+- long asm_setuptvlineasm2(long,long,long) __attribute__ ((alias ("_asm_setuptvlineasm2")));
+- long asm_tvlineasm2(long,long,long,long,long,long) __attribute__ ((alias ("_asm_tvlineasm2")));
+- long asm_mvlineasm1(long,long,long,long,long,long) __attribute__ ((alias ("_asm_mvlineasm1")));
+- long asm_setupvlineasm(long) __attribute__ ((alias ("_asm_setupvlineasm")));
+- long asm_vlineasm4(long,long) __attribute__ ((alias ("_asm_vlineasm4")));
+- long asm_setupmvlineasm(long) __attribute__ ((alias ("_asm_setupmvlineasm")));
+- long asm_mvlineasm4(long,long) __attribute__ ((alias ("_asm_mvlineasm4")));
+- void asm_setupspritevline(long,long,long,long,long,long) __attribute__ ((alias ("_asm_setupspritevline")));
+- void asm_spritevline(long,long,long,long,long,long) __attribute__ ((alias ("_asm_spritevline")));
+- void asm_msetupspritevline(long,long,long,long,long,long) __attribute__ ((alias ("_asm_msetupspritevline")));
+- void asm_mspritevline(long,long,long,long,long,long) __attribute__ ((alias ("_asm_mspritevline")));
+- void asm_tsetupspritevline(long,long,long,long,long,long) __attribute__ ((alias ("_asm_tsetupspritevline")));
+- void asm_tspritevline(long,long,long,long,long,long) __attribute__ ((alias ("_asm_tspritevline")));
+- long asm_mhline(long,long,long,long,long,long) __attribute__ ((alias ("_asm_mhline")));
+- long asm_mhlineskipmodify(long,long,long,long,long,long) __attribute__ ((alias ("_asm_mhlineskipmodify")));
+- long asm_msethlineshift(long,long) __attribute__ ((alias ("_asm_msethlineshift")));
+- long asm_thline(long,long,long,long,long,long) __attribute__ ((alias ("_asm_thline")));
+- long asm_thlineskipmodify(long,long,long,long,long,long) __attribute__ ((alias ("_asm_thlineskipmodify")));
+- long asm_tsethlineshift(long,long) __attribute__ ((alias ("_asm_tsethlineshift")));
+- long asm_setupslopevlin(long,long,long) __attribute__ ((alias ("_asm_setupslopevlin")));
+- long asm_slopevlin(long,long,long,long,long,long) __attribute__ ((alias ("_asm_slopevlin")));
+- long asm_settransnormal(void) __attribute__ ((alias ("_asm_settransnormal")));
+- long asm_settransreverse(void) __attribute__ ((alias ("_asm_settransreverse")));
+- long asm_setupdrawslab(long,long) __attribute__ ((alias ("_asm_setupdrawslab")));
+- long asm_drawslab(long,long,long,long,long,long) __attribute__ ((alias ("_asm_drawslab")));
+- long asm_stretchhline(long,long,long,long,long,long) __attribute__ ((alias ("_asm_stretchhline")));
+- long asm_isvmwarerunning(void) __attribute__ ((alias ("_asm_isvmwarerunning")));
++ long asm_mmxoverlay(void) asm ("_asm_mmxoverlay");
++ long asm_sethlinesizes(long,long,long) asm ("_asm_sethlinesizes");
++ long asm_setpalookupaddress(char *) asm ("_asm_setpalookupaddress");
++ long asm_setuphlineasm4(long,long) asm ("_asm_setuphlineasm4");
++ long asm_hlineasm4(long,long,long,long,long,long) asm ("_asm_hlineasm4");
++ long asm_setuprhlineasm4(long,long,long,long,long,long) asm ("_asm_setuprhlineasm4");
++ long asm_rhlineasm4(long,long,long,long,long,long) asm ("_asm_rhlineasm4");
++ long asm_setuprmhlineasm4(long,long,long,long,long,long) asm ("_asm_setuprmhlineasm4");
++ long asm_rmhlineasm4(long,long,long,long,long,long) asm ("_asm_rmhlineasm4");
++ long asm_setupqrhlineasm4(long,long,long,long,long,long) asm ("_asm_setupqrhlineasm4");
++ long asm_qrhlineasm4(long,long,long,long,long,long) asm ("_asm_qrhlineasm4");
++ long asm_setvlinebpl(long) asm ("_asm_setvlinebpl");
++ long asm_fixtransluscence(long) asm ("_asm_fixtransluscence");
++ long asm_prevlineasm1(long,long,long,long,long,long) asm ("_asm_prevlineasm1");
++ long asm_vlineasm1(long,long,long,long,long,long) asm ("_asm_vlineasm1");
++ long asm_setuptvlineasm(long) asm ("_asm_setuptvlineasm");
++ long asm_tvlineasm1(long,long,long,long,long,long) asm ("_asm_tvlineasm1");
++ long asm_setuptvlineasm2(long,long,long) asm ("_asm_setuptvlineasm2");
++ long asm_tvlineasm2(long,long,long,long,long,long) asm ("_asm_tvlineasm2");
++ long asm_mvlineasm1(long,long,long,long,long,long) asm ("_asm_mvlineasm1");
++ long asm_setupvlineasm(long) asm ("_asm_setupvlineasm");
++ long asm_vlineasm4(long,long) asm ("_asm_vlineasm4");
++ long asm_setupmvlineasm(long) asm ("_asm_setupmvlineasm");
++ long asm_mvlineasm4(long,long) asm ("_asm_mvlineasm4");
++ void asm_setupspritevline(long,long,long,long,long,long) asm ("_asm_setupspritevline");
++ void asm_spritevline(long,long,long,long,long,long) asm ("_asm_spritevline");
++ void asm_msetupspritevline(long,long,long,long,long,long) asm ("_asm_msetupspritevline");
++ void asm_mspritevline(long,long,long,long,long,long) asm ("_asm_mspritevline");
++ void asm_tsetupspritevline(long,long,long,long,long,long) asm ("_asm_tsetupspritevline");
++ void asm_tspritevline(long,long,long,long,long,long) asm ("_asm_tspritevline");
++ long asm_mhline(long,long,long,long,long,long) asm ("_asm_mhline");
++ long asm_mhlineskipmodify(long,long,long,long,long,long) asm("_asm_mhlineskipmodify");
++ long asm_msethlineshift(long,long) asm("_asm_msethlineshift");
++ long asm_thline(long,long,long,long,long,long) asm("_asm_thline");
++ long asm_thlineskipmodify(long,long,long,long,long,long) asm("_asm_thlineskipmodify");
++ long asm_tsethlineshift(long,long) asm("_asm_tsethlineshift");
++ long asm_setupslopevlin(long,long,long) asm("_asm_setupslopevlin");
++ long asm_slopevlin(long,long,long,long,long,long) asm("_asm_slopevlin");
++ long asm_settransnormal(void) asm("_asm_settransnormal");
++ long asm_settransreverse(void) asm("_asm_settransreverse");
++ long asm_setupdrawslab(long,long) asm("_asm_setupdrawslab");
++ long asm_drawslab(long,long,long,long,long,long) asm("_asm_drawslab");
++ long asm_stretchhline(long,long,long,long,long,long) asm("_asm_stretchhline");
++ long asm_isvmwarerunning(void) asm("_asm_isvmwarerunning");
+
+ /*
+ * !!! I need a reference to this, for mprotect(), but the actual function
+ * !!! is never called in BUILD...just from other ASM routines. --ryan.
+ */
+- long asm_prohlineasm4(void) __attribute__ ((alias ("_asm_prohlineasm4")));
++ long asm_prohlineasm4(void) asm("_asm_prohlineasm4");
+
+ #endif /* ELF/GCC */
+ #endif /* defined USE_I386_ASM */
diff --git a/games-fps/duke3d/files/duke3d-20040817-ldflags.patch b/games-fps/duke3d/files/duke3d-20040817-ldflags.patch
new file mode 100644
index 000000000000..79179e663805
--- /dev/null
+++ b/games-fps/duke3d/files/duke3d-20040817-ldflags.patch
@@ -0,0 +1,66 @@
+--- source/buildengine/Makefile.old 2010-10-08 14:32:05.000000000 +0200
++++ source/buildengine/Makefile 2010-10-08 14:35:10.000000000 +0200
+@@ -73,7 +73,7 @@
+ endif
+
+ ifeq ($(strip $(solaris)),true)
+- LDFLAGS += -lsocket -lnsl
++ LIBS += -lsocket -lnsl
+ CFLAGS += -DPLATFORM_SOLARIS
+ endif
+
+@@ -129,7 +129,7 @@
+
+ ifeq ($(strip $(macosx)),true)
+ CFLAGS += -DPLATFORM_MACOSX=1 -faltivec -falign-loops=32 -falign-functions=32
+- LDFLAGS += -framework AppKit -lSDL -lSDLmain
++ LIBS += -framework AppKit -lSDL -lSDLmain
+ endif
+
+ ifeq ($(strip $(useopengl)),true)
+@@ -146,7 +146,7 @@
+
+ ifeq ($(strip $(usephysfs)),true)
+ CFLAGS += -DUSE_PHYSICSFS
+- LDFLAGS += -lphysfs
++ LIBS += -lphysfs
+ endif
+
+ ifeq ($(strip $(usedlls)),true)
+@@ -236,17 +236,17 @@
+
+ ifeq ($(strip $(usedlls)),true)
+ $(ENGINEDLL) : $(ENGINEOBJS)
+- $(LINKER) -shared -o $(ENGINEDLL) $(LDFLAGS) $(ENGINEOBJS) $(LDLIBS)
++ $(LINKER) -shared -o $(ENGINEDLL) $(LIBS) $(ENGINEOBJS) $(LDLIBS)
+
+ $(NETDLL) : $(NETOBJS)
+- $(LINKER) -shared -o $(NETDLL) $(LDFLAGS) $(NETOBJS) $(LDLIBS)
++ $(LINKER) -shared -o $(NETDLL) $(LIBS) $(NETOBJS) $(LDLIBS)
+ endif
+
+ $(GAMEEXE) : $(ENGINEDLL) $(NETDLL) $(GAMEOBJS) $(PERLOBJS)
+- $(LINKER) -o $(GAMEEXE) $(LDFLAGS) $(PERLOBJS) $(GAMEOBJS) $(LDPERL) $(LDLIBS) $(ENGINEDLL) $(NETDLL)
++ $(LINKER) $(LDFLAGS) -o $(GAMEEXE) $(LIBS) $(PERLOBJS) $(GAMEOBJS) $(LDPERL) $(LDLIBS) $(ENGINEDLL) $(NETDLL)
+
+ $(BUILDEXE) : $(ENGINEDLL) $(BUILDOBJS)
+- $(LINKER) -o $(BUILDEXE) $(LDFLAGS) $(BUILDOBJS) $(LDLIBS) $(ENGINEDLL)
++ $(LINKER) $(LDFLAGS) -o $(BUILDEXE) $(LIBS) $(BUILDOBJS) $(LDLIBS) $(ENGINEDLL)
+
+ listclean:
+ @echo "A 'make clean' would remove" $(CLEANUP)
+--- source/Makefile.old 2010-10-08 14:35:54.000000000 +0200
++++ source/Makefile 2010-10-08 14:37:34.000000000 +0200
+@@ -152,10 +152,10 @@
+ sounds.o \
+ dukemusc.o \
+ audiolib/audiolib.a
+- $(CC) $^ $(BUILDOBJS) $(LDLIBS) -o $@
++ $(CC) $(LDFLAGS) $^ $(BUILDOBJS) $(LDLIBS) -o $@
+
+ build: astub.o
+- $(CC) $^ $(BUILDOBJS) buildengine/build.o $(LDLIBS) -o $@
++ $(CC) $(LDFLAGS) $^ $(BUILDOBJS) buildengine/build.o $(LDLIBS) -o $@
+
+ clean:
+ $(MAKE) -C audiolib clean
diff --git a/games-fps/duke3d/files/duke3d-20040817-noinline.patch b/games-fps/duke3d/files/duke3d-20040817-noinline.patch
new file mode 100644
index 000000000000..a41c5c01d063
--- /dev/null
+++ b/games-fps/duke3d/files/duke3d-20040817-noinline.patch
@@ -0,0 +1,18 @@
+--- source/buildengine/engine.c.old 2009-02-06 09:11:54.000000000 +0100
++++ source/buildengine/engine.c 2009-02-06 09:19:12.000000000 +0100
+@@ -391,6 +391,7 @@
+ modify exact [eax ebx ecx]\
+
+ #elif (defined __GNUC__) || (defined __ICC)
++ __attribute__ ((noinline))
+ static long nsqrtasm(int i1)
+ {
+ long retval;
+@@ -601,6 +602,7 @@
+
+ #elif (defined __GNUC__) || (defined __ICC)
+
++ __attribute__ ((noinline))
+ int setgotpic(long i1)
+ {
+ int retval = 0;
diff --git a/games-fps/duke3d/files/duke3d.cfg b/games-fps/duke3d/files/duke3d.cfg
new file mode 100644
index 000000000000..2e8c4a0671b7
--- /dev/null
+++ b/games-fps/duke3d/files/duke3d.cfg
@@ -0,0 +1,194 @@
+[Setup]
+SetupVersion = "1.3D"
+
+[Screen Setup]
+ScreenMode = 2
+ScreenWidth = 1024
+ScreenHeight = 768
+Shadows = 1
+Password = ""
+Detail = 1
+Tilt = 1
+Messages = 1
+Out = 0
+ScreenSize = 8
+ScreenGamma = 0
+
+[Sound Setup]
+FXDevice = 0
+MusicDevice = 0
+FXVolume = 220
+MusicVolume = 200
+NumVoices = 8
+NumChannels = 2
+NumBits = 16
+MixRate = 44100
+MidiPort = 0x330
+BlasterAddress = 0x220
+BlasterType = 1
+BlasterInterrupt = 5
+BlasterDma8 = 1
+BlasterDma16 = 5
+BlasterEmu = 0x620
+ReverseStereo = 0
+SoundToggle = 1
+VoiceToggle = 1
+AmbienceToggle = 1
+MusicToggle = 1
+
+[KeyDefinitions]
+Move_Forward = "Up" "Kpad8"
+Move_Backward = "Down" "Kpad2"
+Turn_Left = "Left" "Kpad4"
+Turn_Right = "Right" "KPad6"
+Strafe = "LAlt" "RAlt"
+Fire = "LCtrl" "RCtrl"
+Open = "Space" ""
+Run = "LShift" "RShift"
+AutoRun = "CapLck" ""
+Jump = "A" "/"
+Crouch = "Z" ""
+Look_Up = "PgUp" "Kpad9"
+Look_Down = "PgDn" "Kpad3"
+Look_Left = "Insert" "Kpad0"
+Look_Right = "Delete" "Kpad."
+Strafe_Left = "," ""
+Strafe_Right = "." ""
+Aim_Up = "Home" "KPad7"
+Aim_Down = "End" "Kpad1"
+Weapon_1 = "1" ""
+Weapon_2 = "2" ""
+Weapon_3 = "3" ""
+Weapon_4 = "4" ""
+Weapon_5 = "5" ""
+Weapon_6 = "6" ""
+Weapon_7 = "7" ""
+Weapon_8 = "8" ""
+Weapon_9 = "9" ""
+Weapon_10 = "0" ""
+Inventory = "Enter" "KpdEnt"
+Inventory_Left = "[" ""
+Inventory_Right = "]" ""
+Holo_Duke = "H" ""
+Jetpack = "J" ""
+NightVision = "N" ""
+MedKit = "M" ""
+TurnAround = "BakSpc" ""
+SendMessage = "T" ""
+Map = "Tab" ""
+Shrink_Screen = "-" "Kpad-"
+Enlarge_Screen = "=" "Kpad+"
+Center_View = "KPad5" ""
+Holster_Weapon = "ScrLck" ""
+Show_Opponents_Weapon = "W" ""
+Map_Follow_Mode = "F" ""
+See_Coop_View = "K" ""
+Mouse_Aiming = "U" ""
+Toggle_Crosshair = "I" ""
+Steroids = "R" ""
+Quick_Kick = "`" ""
+Next_Weapon = "'" ""
+Previous_Weapon = ";" ""
+
+[Controls]
+ControllerType = 1
+JoystickPort = 0
+MouseSensitivity = 32768
+ExternalFilename = "EXTERNAL.EXE"
+EnableRudder = 0
+MouseAiming = 0
+MouseButton0 = "Fire"
+MouseButtonClicked0 = ""
+MouseButton1 = "Strafe"
+MouseButtonClicked1 = "Open"
+MouseButton2 = "Move_Forward"
+MouseButtonClicked2 = ""
+JoystickButton0 = "Fire"
+JoystickButtonClicked0 = ""
+JoystickButton1 = "Strafe"
+JoystickButtonClicked1 = "Inventory"
+JoystickButton2 = "Run"
+JoystickButtonClicked2 = "Jump"
+JoystickButton3 = "Open"
+JoystickButtonClicked3 = "Crouch"
+JoystickButton4 = "Aim_Down"
+JoystickButtonClicked4 = ""
+JoystickButton5 = "Look_Right"
+JoystickButtonClicked5 = ""
+JoystickButton6 = "Aim_Up"
+JoystickButtonClicked6 = ""
+JoystickButton7 = "Look_Left"
+JoystickButtonClicked7 = ""
+MouseAnalogAxes0 = "analog_turning"
+MouseDigitalAxes0_0 = ""
+MouseDigitalAxes0_1 = ""
+MouseAnalogScale0 = 0
+MouseAnalogAxes1 = "analog_moving"
+MouseDigitalAxes1_0 = ""
+MouseDigitalAxes1_1 = ""
+MouseAnalogScale1 = 0
+JoystickAnalogAxes0 = "analog_turning"
+JoystickDigitalAxes0_0 = ""
+JoystickDigitalAxes0_1 = ""
+JoystickAnalogScale0 = 0
+JoystickAnalogAxes1 = "analog_moving"
+JoystickDigitalAxes1_0 = ""
+JoystickDigitalAxes1_1 = ""
+JoystickAnalogScale1 = 0
+JoystickAnalogAxes2 = "analog_strafing"
+JoystickDigitalAxes2_0 = ""
+JoystickDigitalAxes2_1 = ""
+JoystickAnalogScale2 = 0
+JoystickAnalogAxes3 = ""
+JoystickDigitalAxes3_0 = "Run"
+JoystickDigitalAxes3_1 = ""
+JoystickAnalogScale3 = 0
+GamePadDigitalAxes0_0 = "Turn_Left"
+GamePadDigitalAxes0_1 = "Turn_Right"
+GamePadDigitalAxes1_0 = "Move_Forward"
+GamePadDigitalAxes1_1 = "Move_Backward"
+MouseAimingFlipped = 0
+GameMouseAiming = 0
+AimingFlag = 0
+
+[Comm Setup]
+ComPort = 2
+IrqNumber = 65535
+UartAddress = 65535
+PortSpeed = 9600
+ToneDial = 1
+SocketNumber = 65535
+NumberPlayers = 2
+ModemName = ""
+InitString = "ATZ"
+HangupString = "ATH0=0"
+DialoutString = ""
+PlayerName = "DUKE"
+RTSName = "DUKE.RTS"
+PhoneNumber = ""
+ConnectType = 0
+CommbatMacro#0 = "An inspiration for birth control."
+CommbatMacro#1 = "You're gonna die for that!"
+CommbatMacro#2 = "It hurts to be you."
+CommbatMacro#3 = "Lucky Son of a Bitch."
+CommbatMacro#4 = "Hmmm....Payback time."
+CommbatMacro#5 = "You bottom dwelling scum sucker."
+CommbatMacro#6 = "Damn, you're ugly."
+CommbatMacro#7 = "Ha ha ha...Wasted!"
+CommbatMacro#8 = "You suck!"
+CommbatMacro#9 = "AARRRGHHHHH!!!"
+
+[Misc]
+Executions = 5
+RunMode = 0
+Crosshairs = 1
+WeaponChoice0 = 3
+WeaponChoice1 = 4
+WeaponChoice2 = 5
+WeaponChoice3 = 7
+WeaponChoice4 = 8
+WeaponChoice5 = 6
+WeaponChoice6 = 0
+WeaponChoice7 = 2
+WeaponChoice8 = 9
+WeaponChoice9 = 1
diff --git a/games-fps/duke3d/files/network.cfg b/games-fps/duke3d/files/network.cfg
new file mode 100644
index 000000000000..46db8b3119fb
--- /dev/null
+++ b/games-fps/duke3d/files/network.cfg
@@ -0,0 +1,15 @@
+# lifted from happypenguin.org
+
+INTERFACE [your ip address]
+
+# only peer appears to work [SERVER or CLIENT or PEER]
+MODE peer
+
+# create an allow line for everyone who will connect
+ALLOW [another player's ip address]
+ALLOW [another player's ip address]
+ALLOW [another player's ip address]
+ALLOW [another player's ip address]
+
+# try to find [number] of players and start the game
+BROADCAST [number]
diff --git a/games-fps/duke3d/metadata.xml b/games-fps/duke3d/metadata.xml
new file mode 100644
index 000000000000..1f342d0fbdcc
--- /dev/null
+++ b/games-fps/duke3d/metadata.xml
@@ -0,0 +1,61 @@
+<?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>
+The third chapter in the series, and the first with a 3D perspective
+(the original Duke Nukem and the sequel, Duke Nukem II, are side
+scrolling platform games). This game, set sometime in the early 21st
+century, begins in a ravaged LA, which was overtaken by aliens while you
+were abducted during Duke Nukem II. Duke, upon returning to Earth, finds
+himself with another mess to clean up, and another alien race that needs
+exterminating. Duke is a can-do hero who realizes that sometimes
+innocent people have to die in order to save Earth, so accuracy of gun
+fire is not a real concern to him. :)
+
+This game has a long list of cool things that haven't been attempted in
+3D action games, yet. The weapons, for example, kick-butt:
+
+ * There's a mine that can be placed on any wall and sends out a
+laser trip beam-- perfect for multiplayer games.
+ * There's also a shrinker ray that reduces an opponent to the size
+of a G.I. Joe, at which point they are foot fodder--watch them splat!
+ * As in Shadow Warrior, you can swim under water, and even shoot
+players who are standing outside the water, or vice versa.
+
+ What works:
+ * Basic gameplay seems fine.
+ * Sound and music.
+ * keyboard input.
+ * mouse input.
+ * Hi-res (what would be "VESA modes" in DOS).
+ * Windowed/fullscreen support.
+ * Save games.
+ * Record and playback demos compatible with the Atomic Edition (1.5).
+ * Shareware and retail versions should all work.
+ * BUILD editor works to a large degree.
+ * DukeBots for multiplayer AI.
+ * Assembly code all has portable C fallbacks, now.
+ * TCP/IP Networking!
+ * Linux/x86 port.
+ * Windows/x86 port.
+ * BeOS/x86 port.
+ * (incomplete) MacOS X port.
+
+What doesn't work/known bugs:
+ * Joystick input isn't working yet.
+ * File cases need to be exact in some places, not others.
+ * Engine (game?) relies on compiler treating "char" as "unsigned" by default...this needs to be flushed out, for sanity's sake. But I'm anal. :)
+ * Netcode handles packet loss _VERY_ poorly...it's fine for stable connections and LANs, though.
+ * Configuring a multiplayer game involves editing text files and filling in IP addresses. Not very user-friendly.
+ * Some text prompts try to read the SDL input queue instead of stdin like they should.
+ * Probably other stuff. Do NOT consider this stable and complete yet!
+</longdescription>
+ <use>
+ <flag name="demo">Install the demo files</flag>
+ <flag name="pic">disable optimized assembly code that is not PIC friendly</flag>
+ </use>
+</pkgmetadata>
diff --git a/games-fps/eduke32/Manifest b/games-fps/eduke32/Manifest
new file mode 100644
index 000000000000..52fa4373c4c9
--- /dev/null
+++ b/games-fps/eduke32/Manifest
@@ -0,0 +1,11 @@
+AUX eduke32-20131119.4169-QA.patch 4485 SHA256 6676ba6a48369e73dcb4c00443c672a2226d4bc3ca533ae353b5165c61a40ff6 SHA512 6b23e5d9de1d6fbdf32fced01e9432f1d96442c44fdb591cf3e51830b57622c5734c10c2c0de8ef6849f75697fd9394c14ce5ab16271774a7bd46bde08502c4e WHIRLPOOL 728c09a7bd1b690683384d2af3f04965985e38a45d6770bda582bde4eecea8d7c5b36338df2933566b0b6902e4328da599767a437ad5a9f66d91839784d57593
+DIST duke3d_hrp_5.2.zip 709961560 SHA256 d5dc9ef4be517de1464e8ed886f2a6352402fdec2b9cf271d292a5aee82fae27 SHA512 6b80739082d01e879ee77c85d3702269a605bc5f5b9393ce2f391d50c2a14e8fd0cd274a7e3010636646c3b7725591f45f107503c04a84655621a197f5f3c69e WHIRLPOOL 03cbc7fe0b8f3f7d4eaf7e5df4d8c9537ffaa0e7a49d938f0138bf0a6c87a72ecfa30666a94ec228dc66da6e55a6632d08340edcb2c49d9c4aaa4031ab5f231c
+DIST duke3d_mus_3.0.zip 129992841 SHA256 6dc9eb70ee1850519b55e547a399e3f7f03ddf60a6b16b0e205edd8a05bdda4a SHA512 9b782a2b6bb006a01e7ca2a8c395fcbe0884cc7648fce03f7760d67e67e4b03d73e31fff5964a604270ffddf09df69f306147dffd115efcd738de416939060cf WHIRLPOOL dec7613bf321a8392361ed414c3cba1909adf6106ae16fe04858549d8574d696f677ac90b0a8a7ab7cf6fb31b6263223b03434536f528c7f50c8b77fd7c059d2
+DIST duke3d_musopl_2.0.zip 266444907 SHA256 4f0afc46bfb5f38b1a1417a6145c0c548355cf4c4438e0330a9de704b139f1c3 SHA512 e9ae69727f84ff71bf9abffa283fda1fcaf56fd6ae6b865d12f138d64b0fca0d36fd9695b1e60a64716154055373eecd6499ebd8801a4ecb55ddc4722208eff7 WHIRLPOOL b69b76050f97785b54a1693b3f9eeb124b208cb785719c9c37a499a7af8f9cdd2362a7ce0cab81b17a3ab7f80744eadd0a286b45844dee6bf37e0f320d61148a
+DIST duke3d_xxx_1.33.zip 26586453 SHA256 c31713e6400a175a1bfa3bd369d132f8a8abce8915c113549f98262b9a84b534 SHA512 4783d159610fc178e748446b7a5f9c13d90e1aca3cef34deb82e99655b7f4a254f1130e16dbcfad9013b95bc07161d5c5dccfcc552fbb7a88404b4b9cedbadbf WHIRLPOOL 1e7c8a06fd8ff558a8f5a5cc37093fe055555bdfd296194935c986978b4630c225a1f5da7d54e274bd8a5258a4b518ffc2456c79f515185bfb6e403488cad125
+DIST eduke32-icons.tar 102400 SHA256 efce5cddd9a55f07824f5739831b79cff2ea6e508f0b17b996316533af925842 SHA512 797f76cfc0e253ce3364e80f70b616fc004811c08519020727871addc90c7780b475ee7769398e13859f93893ccbb916bd4229a39f4c119169a69231e6fd411c WHIRLPOOL 9815abce63dcf8e865c61610f1b04915ced9b29c65cd831022f5b6f261bd55efc700b6fd5ee2741332023b85682b08d3a327998c57be33846dffdcb60eb1339b
+DIST eduke32_src_20131119-4169.tar.xz 12228040 SHA256 1aaeadb7b8ac68d6a7e3b0cc568875df6a2b319cc7626c6a4d38cb69fa5f162e SHA512 6ab7babc18c80e111603b9b731f37963f3bfe2ee753a2e383d58a21e77ad5a561cf95f5392adcf76259e6ded2dcd5eb5d0fc484edf65ec6887a746c4f422f292 WHIRLPOOL 576e0f0e73b383fe221ef5db8b54889bf3e8271e361a0af41fd1a914d8a9be3711a9b536d668790013f8fcd0ea3c11b31b47bf333e685bbf853f48152e2fc194
+EBUILD eduke32-20131119.4169.ebuild 6365 SHA256 c521c6531a48dd25bbe19b3a8482dcda50280197c107e2e1fdec3e86edcd6c53 SHA512 104199879c1a2294afc422032257dc09a3233eb19fa8cc70972ada75f1f9f0cd372740670c20a8dafded7f5c9fd4de755c7b39f0f2c3624ebc4e95c8ff5e48fe WHIRLPOOL 739019fcf20d4b8e131c966dcb7a0d39d906e7eb04e22ba3623561550f2a2c31eed78c93f65adf31525451be2fece6decad4a86ab8090c7c9f003719e2d6712b
+MISC ChangeLog 2910 SHA256 6674f8c6bd2002698884f76fda8f030b451daebd88df5e52389f26d3f355f034 SHA512 5f4b8f6a83137997a860e94e66a77bf1cce3d4988efadb545bd87193c8018749e03396d4d325b81c639aa5c032e5645e3628cf8abfb04ec7070930ed9180202d WHIRLPOOL 99d8c132530b96d61726d81be3452315373b8e4b698a147248cb1e5fd1cdbd1736b7a7cdd982c8771960d3357b48ed816599cb50ac3a3d4d8a6aa0d4a51011c7
+MISC ChangeLog-2015 2540 SHA256 532544bca48d70a84fc23f55e7530d97caeee36d1a270ccc53cf89f51c1280d6 SHA512 cfbdaada15d3ae4a94af4b794feddc351c007068f41490be7cfdfba66f20ccfcee940eb4187a8a363b4413d9060b7ebff9cdd224e6609f22e44285f1758332ac WHIRLPOOL 3a22af3c7ad97c734367fcd1a55936f03f72cd26e239560998d04ea62eefdc8fb9463c6190ad035990dababafeab750f8015d1a691103b0cb94d2fc65aa1af8c
+MISC metadata.xml 1019 SHA256 065eb1ab3f8cbceb5307a3ee2537d14b101bedcd70bcea18850ac481204da66d SHA512 7ccc4e4e8280f550d73d63def883319f452ba18205aa9af98ce26544143409d3b9a7ebadb71a3263c31b28c49e18d6c955fd583f57a0fcf34acc933a7af4836a WHIRLPOOL 0a130467954f3cfafde4a5ac1a52cebf0698dd6367361c0c2968448041ff3e39ac6e0d76660ea47a4648137533eda669c1b9ef4353a350c40f8854da1ee402e8
diff --git a/games-fps/eduke32/eduke32-20131119.4169.ebuild b/games-fps/eduke32/eduke32-20131119.4169.ebuild
new file mode 100644
index 000000000000..92044333b4de
--- /dev/null
+++ b/games-fps/eduke32/eduke32-20131119.4169.ebuild
@@ -0,0 +1,218 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# TODO/FIXME:
+# lunatic broken
+# lunatic? ( >=dev-lang/luajit-2.0.0_beta10:2 )
+# $(usex lunatic "LUNATIC=1" "LUNATIC=0")
+#
+# extras? ( games-fps/${PN}-extras )
+
+EAPI=5
+
+inherit eutils gnome2-utils games
+
+MY_PV=${PV%.*}
+MY_BUILD=${PV#*.}
+
+# extensions
+MY_HRP=5.2
+MY_SC55=3.0
+MY_OPL=2.0
+MY_XXX=1.33
+
+DESCRIPTION="Port of Duke Nukem 3D for SDL"
+HOMEPAGE="http://www.eduke32.com/ http://hrp.duke4.net/"
+SRC_URI="http://dukeworld.duke4.net/eduke32/synthesis/${MY_PV}-${MY_BUILD}/${PN}_src_${MY_PV}-${MY_BUILD}.tar.xz
+ https://dev.gentoo.org/~hasufell/distfiles/eduke32-icons.tar
+ textures? ( http://www.duke4.org/files/nightfright/duke3d_hrp.zip -> duke3d_hrp_${MY_HRP}.zip )
+ sc55-musicpack? ( http://www.duke4.org/files/nightfright/music/duke3d_mus.zip -> duke3d_mus_${MY_SC55}.zip )
+ opl-musicpack? ( http://www.duke4.org/files/nightfright/music/duke3d_musopl.zip -> duke3d_musopl_${MY_OPL}.zip )
+ offensive? ( http://www.duke4.org/files/nightfright/duke3d_xxx.zip -> duke3d_xxx_${MY_XXX}.zip )"
+
+LICENSE="GPL-2 BUILDLIC textures? ( hrp_art )"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="cdinstall debug demo gtk offensive +opengl opl-musicpack +png samples sc55-musicpack +server textures tools +vpx"
+REQUIRED_USE="?? ( opl-musicpack sc55-musicpack )"
+
+RDEPEND="media-libs/flac
+ media-libs/libogg
+ media-libs/libsdl[X,joystick,opengl?,video]
+ media-libs/libvorbis
+ media-libs/sdl-mixer[timidity]
+ sys-libs/zlib
+ gtk? ( x11-libs/gtk+:2 )
+ opengl? (
+ virtual/glu
+ virtual/opengl
+ vpx? ( media-libs/libvpx )
+ )
+ png? ( media-libs/libpng:0=
+ sys-libs/zlib )
+ "
+DEPEND="${RDEPEND}
+ app-arch/unzip
+ app-arch/xz-utils
+ x86? ( dev-lang/nasm )"
+PDEPEND="cdinstall? ( games-fps/duke3d-data )
+ demo? ( games-fps/duke3d-demodata )"
+
+S=${WORKDIR}/${PN}_${MY_PV}-${MY_BUILD}
+
+src_unpack() {
+ unpack ${PN}_src_${MY_PV}-${MY_BUILD}.tar.xz eduke32-icons.tar
+
+ if use textures; then
+ unzip -q "${DISTDIR}"/duke3d_hrp_${MY_HRP}.zip "hrp_readme.txt" \
+ || die "unzip hrp readme"
+ if use offensive; then
+ unzip -q "${DISTDIR}"/duke3d_xxx_${MY_XXX}.zip "xxx_readme.txt" \
+ || die "unzip xxx readme"
+ fi
+ fi
+ if use opl-musicpack; then
+ unzip -q "${DISTDIR}"/duke3d_musopl_${MY_OPL}.zip "readme.txt" \
+ || die "unzip musopl readme"
+ mv readme.txt musopl_readme.txt || die "mv musopl_readme"
+ elif use sc55-musicpack; then
+ unzip -q "${DISTDIR}"/duke3d_mus_${MY_SC55}.zip "music_readme.txt" \
+ || die "unzip mus readme"
+ fi
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-QA.patch
+
+ # Point eduke32 to data files in shared duke3d folder.
+ # Multiple search paths can be defined, so that with the default configuration as of
+ # the 20130128 release, this adds /usr/share/games/duke3d in ADDITION to
+ # /usr/share/games/eduke32 so that eduke32 and duke3d's base data can be kept separate.
+ # also redirect log file so it's not always written in $PWD
+ sed -i \
+ -e "s;/usr/local/share/games/${PN};${GAMES_DATADIR}/duke3d;" \
+ source/common.c || die "sed common.c path update failed"
+ sed -i \
+ -e "/OSD_SetLogFile/s;mapster32.log;${GAMES_LOGDIR}/mapster32.log;" \
+ source/astub.c || die "sed astub.c path update failed"
+ sed -i \
+ -e "/OSD_SetLogFile/s;${PN}.log;${GAMES_LOGDIR}/${PN}.log;" \
+ source/game.c || die "sed game.c path update failed"
+}
+
+src_compile() {
+ local MY_OPTS=(
+ AS=$(type -P nasm)
+ ARCH=
+ SYSARCH=
+ LTO=0
+ PRETTY_OUTPUT=0
+ RELEASE=1
+ LUNATIC=0
+ STRIP=touch
+ LINKED_GTK=1
+ CPLUSPLUS=0
+ SDL_TARGET=1
+ F_JUMP_TABLES=""
+ $(usex gtk "WITHOUT_GTK=0" "WITHOUT_GTK=1")
+ $(usex debug "DEBUGANYWAY=1" "DEBUGANYWAY=0")
+ $(usex x86 "NOASM=0" "NOASM=1")
+ $(usex server "NETCODE=1" "NETCODE=0")
+ $(usex opengl "USE_OPENGL=1 POLYMER=1" "USE_OPENGL=0 POLYMER=0")
+ $(usex png "USE_LIBPNG=1" "USE_LIBPNG=0")
+ $(usex opengl "$(usex vpx "USE_LIBVPX=1" "USE_LIBVPX=0")" "USE_LIBVPX=0")
+ )
+
+ emake ${MY_OPTS[@]}
+
+ if use tools; then
+ emake -C build ${MY_OPTS[@]}
+ fi
+}
+
+src_install() {
+ local ARGS
+
+ newgamesbin ${PN} ${PN}.bin
+ dogamesbin mapster32
+
+ if use tools; then
+ dobin build/{arttool,bsuite,cacheinfo,generateicon,givedepth,kextract,kgroup,kmd2tool,md2tool,mkpalette,transpal,unpackssi,wad2art,wad2map}
+ dodoc build/doc/*.txt
+ fi
+
+ insinto "${GAMES_DATADIR}/${PN}"
+ # Install optional components
+ if use textures; then
+ newins "${DISTDIR}"/duke3d_hrp_${MY_HRP}.zip duke3d_hrp.zip
+ dodoc "${WORKDIR}"/hrp_readme.txt
+ ARGS+=" -g duke3d_hrp.zip"
+
+ if use offensive; then
+ newins "${DISTDIR}"/duke3d_xxx_${MY_XXX}.zip duke3d_xxx.zip
+ dodoc "${WORKDIR}"/xxx_readme.txt
+ ARGS+=" -g duke3d_xxx.zip"
+ fi
+ fi
+
+ if use opl-musicpack; then
+ newins "${DISTDIR}"/duke3d_musopl_${MY_OPL}.zip duke3d_musopl.zip
+ dodoc "${WORKDIR}"/musopl_readme.txt
+ ARGS+=" -g duke3d_musopl.zip"
+ elif use sc55-musicpack; then
+ newins "${DISTDIR}"/duke3d_mus_${MY_SC55}.zip duke3d_mus.zip
+ dodoc "${WORKDIR}"/music_readme.txt
+ ARGS+=" -g duke3d_mus.zip"
+ fi
+
+ # Install game data
+ doins package/sdk/{SEHELP.HLP,STHELP.HLP,m32help.hlp,names.h,tiles.cfg}
+ use samples && doins -r package/samples
+
+ local i
+ for i in 16 32 128 256 ; do
+ newicon -s ${i} "${WORKDIR}"/${PN}_${i}x${i}x32.png ${PN}.png
+ newicon -s ${i} "${WORKDIR}"/mapster32_${i}x${i}x32.png mapster32.png
+ done
+
+ games_make_wrapper "${PN}" "${GAMES_BINDIR}/${PN}.bin ${ARGS}"
+ make_desktop_entry ${PN} EDuke32 ${PN}
+ make_desktop_entry mapster32 Mapster32 mapster32
+
+ dodoc build/buildlic.txt
+
+ keepdir "${GAMES_LOGDIR}"
+
+ prepgamesdirs
+}
+
+pkg_preinst() {
+ games_pkg_preinst
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ gnome2_icon_cache_update
+
+ use cdinstall || use demo || {
+ elog "Note: You must also install the game data files, either manually or with"
+ elog "games-fps/duke3d-demodata or games-fps/duke3d-data before playing."
+ }
+
+ einfo
+ elog "${PN} reads data files from ${GAMES_DATADIR}/duke3d"
+ einfo
+
+ [[ -e ${ROOT}/${GAMES_LOGDIR} ]] || mkdir -p "${ROOT}/${GAMES_LOGDIR}"
+ touch "${ROOT}/${GAMES_LOGDIR}"/${PN}.log
+ touch "${ROOT}/${GAMES_LOGDIR}"/mapster32.log
+ chown ${GAMES_USER}:${GAMES_GROUP} "${ROOT}/${GAMES_LOGDIR}"/${PN}.log
+ chown ${GAMES_USER}:${GAMES_GROUP} "${ROOT}/${GAMES_LOGDIR}"/mapster32.log
+ chmod g+w "${ROOT}/${GAMES_LOGDIR}"/${PN}.log
+ chmod g+w "${ROOT}/${GAMES_LOGDIR}"/mapster32.log
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/games-fps/eduke32/files/eduke32-20131119.4169-QA.patch b/games-fps/eduke32/files/eduke32-20131119.4169-QA.patch
new file mode 100644
index 000000000000..38e9b36fa2b3
--- /dev/null
+++ b/games-fps/eduke32/files/eduke32-20131119.4169-QA.patch
@@ -0,0 +1,150 @@
+From: Julian Ospald <hasufell@gentoo.org>
+Date: Sat Feb 2 01:16:21 UTC 2013
+Subject: build system
+
+ respect CC/CXX etc and CFLAGS/CXXFLAGS/LDFLAGS
+
+--- eduke32_20130201-3453/Makefile
++++ eduke32_20130201-3453/Makefile
+@@ -311,10 +311,10 @@
+ endif
+
+ COMPILER=$(CC) $(OURCONLYFLAGS)
+-LINKER=$(L_CC)
++LINKER=$(L_CC) $(OURCFLAGS) $(OURCONLYFLAGS)
+ ifneq ($(CPLUSPLUS),0)
+ COMPILER=$(CXX) $(OURCXXFLAGS)
+- LINKER=$(L_CXX)
++ LINKER=$(L_CXX) $(OURCXXFLAGS)
+ endif
+
+ ifeq ($(PRETTY_OUTPUT),1)
+--- eduke32_20130201-3453/Makefile.common
++++ eduke32_20130201-3453/Makefile.common
+@@ -10,13 +10,14 @@
+
+ # Tools
+ CROSS=
+-CC=$(CROSS)gcc
+-CXX=$(CROSS)g++
+-AS=$(CROSS)nasm
+-AR=$(CROSS)ar
+-RC=$(CROSS)windres
+-RANLIB=$(CROSS)ranlib
+-STRIP=$(CROSS)strip
++CC ?= $(CROSS)gcc
++CXX ?= $(CROSS)g++
++AS ?= $(CROSS)nasm
++AR ?= $(CROSS)ar
++RC ?= $(CROSS)windres
++RANLIB ?= $(CROSS)ranlib
++STRIP ?= $(CROSS)strip
++PKG_CONFIG ?= pkgconfig
+
+ L_CC=$(CC)
+ L_CXX=$(CXX)
+@@ -164,7 +165,6 @@
+ # FORCEWARNINGS - 1 = do not disable any compiler warnings within the source
+ # KRANDDEBUG - 1 = include logging of krand() calls for debugging the demo system
+ # EFENCE - 1 = compile with Electric Fence for malloc() debugging
+-# OPTLEVEL - 0..3 = GCC optimization strategy
+ # LTO - 1 = enable link-time optimization, for GCC 4.5 and up
+ #
+ CPLUSPLUS?=0
+@@ -178,13 +178,6 @@
+ PROFILER?=0
+ MUDFLAP?=0
+
+-# Select the default optimization level for release and debug builds.
+-ifeq ($(RELEASE),0)
+- OPTLEVEL?=0
+-else
+- OPTLEVEL?=2
+-endif
+-
+ ifeq ($(RELEASE),0)
+ override STRIP=
+ endif
+@@ -293,10 +286,9 @@
+
+ # compiler flags etc.
+ BASECFLAGS=
+-BASECONLYFLAGS=-Wimplicit -Wdeclaration-after-statement
+-BASECXXFLAGS= -fno-exceptions -fno-rtti -fpermissive -Wno-write-strings
+-BASEASFLAGS=-s #-g
+-BASELDFLAGS=
++BASECONLYFLAGS = $(CFLAGS) -std=gnu89 -Wimplicit -Wdeclaration-after-statement
++BASECXXFLAGS = $(CXXFLAGS) -fno-exceptions -fno-rtti -fpermissive -Wno-write-strings -Wno-narrowing
++BASELDFLAGS = $(LDFLAGS)
+
+
+ ifeq (1,$(strip $(shell expr $(GCC_MAJOR) \>= 4)))
+@@ -330,19 +322,6 @@
+ endif
+
+
+-ifneq ($(RELEASE)$(DEBUGANYWAY),10)
+- # debug build or DEBUGANYWAY=1 --> -g flag
+- ifneq (0,$(CLANG))
+- debug=-g
+- else ifeq ($(PLATFORM), WII)
+- debug=-g
+- else
+- debug=-ggdb
+- endif
+-endif
+-
+-debug+= -O$(OPTLEVEL)
+-
+ # See http://clang.llvm.org/docs/UsersManual.html#controlling-code-generation
+ # for a list of possible UBSan options.
+ # Clang 3.2 does only supports -fsanitize=address for the AddressSanitizer
+@@ -458,7 +437,7 @@
+
+ #### Lunatic development
+ # LuaJIT standalone interpreter executable:
+-LUAJIT:=luajit
++LUAJIT:=$(shell command -v luajit || command -v luajit-2 || command -v luajit-2.0)
+ # Options to "luajit -b" for synthesis. Since it runs on Linux, we need to tell
+ # the native LuaJIT to emit PE object files.
+ ifneq ($(SYNTHESIS),0)
+@@ -487,7 +466,8 @@
+ ifeq ($(PLATFORM),WINDOWS)
+ BASELIBS+= -lluajit
+ else
+- BASELIBS+= -lluajit-5.1
++ BASECOMMONFLAGS+= $(shell $(PKG_CONFIG) --cflags luajit 2>/dev/null || $(PKG_CONFIG) --cflags luajit-2.0)
++ BASELIBS+= $(shell $(PKG_CONFIG) --libs luajit 2>/dev/null || $(PKG_CONFIG) --libs luajit-2.0)
+ endif
+ endif
+
+--- eduke32_20130201-3453/build/Makefile
++++ eduke32_20130201-3453/build/Makefile
+@@ -167,13 +167,15 @@
+ OURCOMMONFLAGS+= $(BUILDCOMMONFLAGS)
+
+ COMPILER=$(CC) $(OURCONLYFLAGS)
+-LINKER=$(L_CC)
++LINKER=$(L_CC) $(OURCFLAGS) $(OURCONLYFLAGS)
+ ifneq ($(CPLUSPLUS),0)
+ COMPILER=$(CXX) $(OURCXXFLAGS)
+- LINKER=$(L_CXX)
++ LINKER=$(L_CXX) $(OURCXXFLAGS)
+ endif
+
+-.SILENT:
++ifeq ($(PRETTY_OUTPUT),1)
++ .SILENT:
++endif
+ .PHONY: clean cleanutils veryclean all utils dxutils sdlutils printutils printsdlutils printdxutils enginelib editorlib
+
+ # TARGETS
+@@ -266,7 +268,7 @@
+ if $(LINKER) -o $@ $^ $(OURLDFLAGS) $(UTILLIBS) -I$(SDLROOT)/include -I$(SDLROOT)/include/SDL; then $(ONESTEP_OK); else $(ONESTEP_FAILED); fi
+ arttool$(EXESUFFIX): $(OBJ)/arttool.$o $(UTILADDOBJS)
+ $(ONESTEP_STATUS)
+- if $(L_CXX) -o $@ $^ $(OURLDFLAGS) $(STATICSTDCPP) $(STDCPPLIB) $(UTILLIBS); then $(ONESTEP_OK); else $(ONESTEP_FAILED); fi
++ if $(L_CXX) $(OURCXXFLAGS) -o $@ $^ $(OURLDFLAGS) $(STATICSTDCPP) $(STDCPPLIB) $(UTILLIBS); then $(ONESTEP_OK); else $(ONESTEP_FAILED); fi
+ givedepth$(EXESUFFIX): $(OBJ)/givedepth.$o $(UTILADDOBJS)
+ $(ONESTEP_STATUS)
+ if $(LINKER) -o $@ $^ $(OURLDFLAGS) $(UTILLIBS); then $(ONESTEP_OK); else $(ONESTEP_FAILED); fi
diff --git a/games-fps/eduke32/metadata.xml b/games-fps/eduke32/metadata.xml
new file mode 100644
index 000000000000..418a07b7ce84
--- /dev/null
+++ b/games-fps/eduke32/metadata.xml
@@ -0,0 +1,27 @@
+<?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-fps/duke3d-demodata</pkg>
+ as well</flag>
+ <flag name="gtk">Compile with gtk launcher</flag>
+ <flag name="offensive">Include optional XXX texture pack
+ (needs USE 'textures')</flag>
+ <flag name="opl-musicpack">Include optional OPL (AdLib)
+ music pack</flag>
+ <flag name="samples">Install samples</flag>
+ <flag name="sc55-musicpack">Include optional Roland SC-55
+ music pack</flag>
+ <flag name="server">Compile with server support</flag>
+ <flag name="textures">Include optional high-resolution
+ textures (needs USE 'opengl')</flag>
+ <flag name="tools">Build several tools for modding and
+ development</flag>
+ <flag name="vpx">Enable support for WebM VP8 Codecs
+ (needs USE 'opengl')</flag>
+ </use>
+</pkgmetadata>
diff --git a/games-fps/enemy-territory-etpro/Manifest b/games-fps/enemy-territory-etpro/Manifest
new file mode 100644
index 000000000000..64f5634f3d0f
--- /dev/null
+++ b/games-fps/enemy-territory-etpro/Manifest
@@ -0,0 +1,5 @@
+DIST etpro-3_2_6.zip 3698539 SHA256 6778194ef4bcf81f0e976341dbc4c574d3d6372063375755c302c0c433fb4179 SHA512 366da5b7aaaa4b88da050aca95342425cba855182c59bf2fbe104252cc2241f79be629ae5dc15f9c396284910eb63721db01fc0aa02303cc51015d36263db9de WHIRLPOOL 1a773a6d3a89fa758006b7effa9b361f629bfa0921fedae46123229f394ff63c41d54825874b82490af8280ab2d348e814dfa10d825581e932d045f8e8f18bf5
+EBUILD enemy-territory-etpro-3.2.6-r1.ebuild 535 SHA256 239d30ce89392f170048451f5922e1308bbd63b93a23a57f8531db92b362ece8 SHA512 1ce93ef43a5bbb31ae048845364d6eb5026403e23be220f1aac56c7c7575894ba47b67d143e486291d8ad997a4b959150f89d55b77f982089c59355673fffbcb WHIRLPOOL 64253d659ab49b819d5efd08839b20ed6c6ec6edaa920c7cde1ffb6e846a656b79ab95bbcb4373ff2ad8c30961d9f9435aadbec3e2d062f3d20c1385728f5e10
+MISC ChangeLog 2814 SHA256 07b4de17363e1b5d53052eba214584affd68f3f6ac4e79a29ff5c15383d6da23 SHA512 a2dece4350661d213b2d704ae35ed75d9d88dc19fa2b8b18a1fb0200eeaad86a5e7be5dcf7b301b4f22dfe61f7b12d6c2dd5f48c9a2f705df7a3e597d4a051f5 WHIRLPOOL b0a3edeec5e70894da8f886409525f6a8d98733fcc2a05fed2d4f9475c74f5c45682e5dacbaf753f8405295a654af39cbd25c8b7562fe6aac62a9aa369bfaefe
+MISC ChangeLog-2015 3069 SHA256 3f51a5efa19aea186a17692e6f595a338f810c5b82cd4b843967cdb7c7de4f65 SHA512 29a3694e6008ade18f6f464c89452abe59e966516dfaf887452160d6e5359e0c1287b9af8d2cdcca596c21fd8ada422fa1c8b072920f88b3ead62ac8eefc7b6c WHIRLPOOL 016750c7c4fcba1d5d602a7274d66f725a800701fa4a8d310c507f7a36ae3744dac5b3986f31b23abdc7e378158f71f68eb9a4e97f36c94f8e321bbd1ddbbaf5
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-fps/enemy-territory-etpro/enemy-territory-etpro-3.2.6-r1.ebuild b/games-fps/enemy-territory-etpro/enemy-territory-etpro-3.2.6-r1.ebuild
new file mode 100644
index 000000000000..2ffe2cd61eb4
--- /dev/null
+++ b/games-fps/enemy-territory-etpro/enemy-territory-etpro-3.2.6-r1.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+GAME="enemy-territory"
+MOD_DESC="Minor additions to Enemy Territory to make it more fun"
+MOD_NAME="ETPro"
+MOD_DIR="etpro"
+
+inherit games games-mods
+
+HOMEPAGE="http://etpro.anime.net/"
+SRC_URI="http://bani.anime.net/etpro/etpro-${PV//./_}.zip
+ http://www.enemyterritory.sk/files/etpro-${PV//./_}.zip"
+
+LICENSE="all-rights-reserved"
+KEYWORDS="amd64 x86"
+IUSE="dedicated opengl"
+
+QA_PREBUILT="${INS_DIR:1}/${MOD_DIR}/*so"
diff --git a/games-fps/enemy-territory-etpro/metadata.xml b/games-fps/enemy-territory-etpro/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-fps/enemy-territory-etpro/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-fps/enemy-territory-omnibot/Manifest b/games-fps/enemy-territory-omnibot/Manifest
new file mode 100644
index 000000000000..62d1b04e7b46
--- /dev/null
+++ b/games-fps/enemy-territory-omnibot/Manifest
@@ -0,0 +1,11 @@
+DIST Omni-bot_0.82_ET_Linux.zip 22176480 SHA256 4ebeeb3806dcf95a9c24f5a1be7eae39ac04e2a4b6e0ebc3793d651b541657cd SHA512 ac1b55f9c5f660204611c63a78281561f6c73d68b33221bde7ef0bfc8bf5c372173112f89f5dce951922552c058a206cda2eeb075d00cc5a69b4746a311b7e15 WHIRLPOOL d59bc9983a1e9918a624a40ec5cff27a925b29b29a89d9664ac8643b2de25e049ab38aeaaeb375d7f84ff11f3d22911a6271606598e067e7ff829835da929391
+DIST omni-bot_0_831_ET_linux.zip 18392544 SHA256 4d1e631a67b690aed9a5f8b7388ae4032736984cef534a9688f533886fae9650 SHA512 642f27ae991b474e06a0768372c0d0f999bca6a6e59ba9c8e90b8be61bfe3a12bb7af2905b4d69f1149994378c6f15a4db88d06201588e998e94495b4ceedf40 WHIRLPOOL a14764872d3f1073e5211f2c520fe3a19b188d5b27c9af384987c40b6b9549f61b42809ca3b3ea54cd8dd481016a947b725da821942240fa462e9dde3f856c84
+DIST omni-bot_0_83_ET_waypoint_mod.zip 3247967 SHA256 225217bd6c06e0efa236de22a8ba47624d1c4ffcdecf73551854a69c03962618 SHA512 2747474e4d97315c61449c51ce5d6d87c26169de06fd4c0767cb558de38569a40cd095732be37cf5245d954eb1f4cecc5aa044ce9bb84cdb44a3502185efc969 WHIRLPOOL 42dc03315f6553cd54eb39453d041fe5e97a4789df58f3944983ed1f908334c24889c3a1279d6a6fe02f78d042bf6f90a371cb91ab55bffa1e7fd5a677e9d172
+DIST omni-bot_0_85_ET_linux.zip 19662449 SHA256 49b64a1e960d580d1ecec5e7f36da0dd791958490fa2143189a3fecb3ee815ce SHA512 83ca166556cbbae26ab8d498437b5922e1db5ad4e7be3718a6ccc158af8f143550b159bcc01b48e7c82901285edc3cbde02e59f7bb3d068d016c2fe5e0728b93 WHIRLPOOL 05c6ad00546f0f88e54d8122074d1607551376e05c8892ac301116c1882bc98d22b0322f721be186b08909b061449ef137517ab547ba72e24c9f8820375dfe30
+DIST omni-bot_0_85_ET_waypoint_mod.zip 4344830 SHA256 42c43b9213b3c08de8965a3c435e0bbbe8345d00ea46e6ab299e7b5660ddfeff SHA512 e63eb693879a4e85add3ac3def6698aa1a08c3293c2180664903adfede8aa6df682afb8ed8f549d573d3baee236d5eefe50a4f1142798cf1ac13e75b80b99558 WHIRLPOOL 1257ca793d284cb913344c9eeafd2974182dd3b00934281beb01a4e063c073bd68bb6dec437b898d83122083888a5ab214a48f1a7f5070495b97a18ba8fd68da
+EBUILD enemy-territory-omnibot-0.82.ebuild 487 SHA256 47624e962e62ca226572745031b7a877b6d897a2507d928a3c0677c30fe7a2a4 SHA512 ab3cf3498057cda32a2daeb724e130256b788c62e3a5be7cd7c1a645c07f7207a0090f2f4076fa3ffb9189d38d840c5a7237d1fba67d4b5086915dc2458eb059 WHIRLPOOL a315af91e46dc9eccbc2acf8b3aff451f8e9331cdcbb428f15e128075532cbfdf1f75fd9090aa3cd5db9d2a70bd14b350993cdd67b07fd65becc644a434cbb72
+EBUILD enemy-territory-omnibot-0.83.1.ebuild 675 SHA256 56696476b05c49cef38bbbd5dfa42e2e028874ea627eba6c07d732c835763dff SHA512 77f3e984ca5af7144de20ae4ebfde9f7b7b3d28e349a9a596b8682394773ab42535e8bfd598f9abd293dc30cf15a192e0e6fa574f0e4fbc39124b466e13691ee WHIRLPOOL 07cfbffc93739982b810f57fccb4993f154d106842b04c54054e224ad0ebce2ff6de81206697c77579ee9610bee3d1543b2bdb37718ebc00535e68f0e152a8f2
+EBUILD enemy-territory-omnibot-0.85.ebuild 641 SHA256 d83fb60544505af9e85800f1d03cc20f8ee558a67c1e44b299fd037c2cd73fc7 SHA512 508df412492bccbc27cea01f1eb72a29052556b110bc17ef91b4ab393844931847455bff7b5d4757114612610ab0aabf5631a00c713a0aa605bc540177956053 WHIRLPOOL 7c2e230465be7e7fa0ca04c948f13b1987f226aea9e8772e4a67129f445ab95b1ec8514850c6d281c109e36ef03390d63840edcd24520f6ea4c9e16f9173426a
+MISC ChangeLog 2889 SHA256 c06caf714629ac052a3f8cd0dd0b8657d17dacf2454c8fb06c202eab4b6e9111 SHA512 62ea747babc67bb8135563d3d893b8f99eca3b3d1109c1a9a33dd2dc0956acd6c69609880661a2d4fcbf9aa61eb3bf08b5d45df2ac77ce5063ab9a4feb920be8 WHIRLPOOL 2c1d67f83d385398af7d80b46073cd22266d763def645da92bfad9f565e42b08e3408347bdb6ed392cd24988f964f9dcf8c129bf8ca0b7b441a65bed6e330f62
+MISC ChangeLog-2015 677 SHA256 20cccdd423c7dfec4c3691533166f71e44ca27381783a168ec3b9e5c4fe45d5e SHA512 2a2020f1d6f69c75036190a97ceac6fefd3ce0cd0e032aa18d2ed86c02154a4b45af2a9e21f04140092da19fd4ac508b5a69419503090e0870cc71580eb2f4bf WHIRLPOOL a9503b6391ead17a9c63d7c9edc2d36380e93c2e80bf15eef7a24134972aa03a7d0e55929c1552d010c5077cd6d0443b68273d4ebbd71dadb1b383be7e945941
+MISC metadata.xml 368 SHA256 e966b92ed76a4859eca80ca690413a972a76ade9db0f13e5973d63830926da61 SHA512 99b24da1ab137ccf7078a2d845e52ed4cbb22b8e64f0b2514a3c02d87cbf1210fc0e60d938864623994a9f47f9e6bbe92a54eb361030bedd35afd18759d3137d WHIRLPOOL 5be8fbb410042953b40cc06a047750d05be9e95cf7d9905390407c2b6fed5691af9752ce549c9684436de40a7c53993b68aab7457bb6b37379422cb3d2f5b1a9
diff --git a/games-fps/enemy-territory-omnibot/enemy-territory-omnibot-0.82.ebuild b/games-fps/enemy-territory-omnibot/enemy-territory-omnibot-0.82.ebuild
new file mode 100644
index 000000000000..25fe5da06dab
--- /dev/null
+++ b/games-fps/enemy-territory-omnibot/enemy-territory-omnibot-0.82.ebuild
@@ -0,0 +1,18 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=2
+
+GAME="enemy-territory"
+MOD_DESC="Bots for Ennemy Territory"
+MOD_NAME="Omnibot"
+MOD_DIR="omnibot"
+
+inherit games games-mods
+
+HOMEPAGE="http://www.omni-bot.com/"
+SRC_URI="http://omni-bot.invisionzone.com/index.php?/files/getdownload/151-omni-bot-enemy-territory/ -> Omni-bot_${PV}_ET_Linux.zip"
+
+LICENSE="all-rights-reserved"
+KEYWORDS="~amd64 ~x86"
+RESTRICT="mirror strip"
diff --git a/games-fps/enemy-territory-omnibot/enemy-territory-omnibot-0.83.1.ebuild b/games-fps/enemy-territory-omnibot/enemy-territory-omnibot-0.83.1.ebuild
new file mode 100644
index 000000000000..5c0d2fa72dd1
--- /dev/null
+++ b/games-fps/enemy-territory-omnibot/enemy-territory-omnibot-0.83.1.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=2
+
+GAME="enemy-territory"
+MOD_DESC="Bots for Ennemy Territory"
+MOD_NAME="Omnibot"
+MOD_DIR="omnibot"
+
+inherit games games-mods
+
+HOMEPAGE="http://www.omni-bot.com/"
+MY_PV="${PV//./_}"
+MY_PV="${MY_PV%_*}${MY_PV##*_}"
+SRC_URI="http://omni-bot.invisionzone.com/index.php?/files/getdownload/158-omni-bot-enemy-territory -> omni-bot_${MY_PV}_ET_linux.zip
+ http://omni-bot.invisionzone.com/index.php?/files/getdownload/157-omni-bot-enemy-territory -> omni-bot_${MY_PV%?}_ET_waypoint_mod.zip"
+
+LICENSE="all-rights-reserved"
+KEYWORDS="~amd64 ~x86"
+RESTRICT="mirror strip"
diff --git a/games-fps/enemy-territory-omnibot/enemy-territory-omnibot-0.85.ebuild b/games-fps/enemy-territory-omnibot/enemy-territory-omnibot-0.85.ebuild
new file mode 100644
index 000000000000..f2e55798684e
--- /dev/null
+++ b/games-fps/enemy-territory-omnibot/enemy-territory-omnibot-0.85.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+GAME="enemy-territory"
+MOD_DESC="Bots for Ennemy Territory"
+MOD_NAME="Omnibot"
+MOD_DIR="omnibot"
+
+inherit games games-mods
+
+HOMEPAGE="http://www.omni-bot.com/"
+MY_PV="${PV//./_}"
+SRC_URI="http://omni-bot.invisionzone.com/index.php?/files/getdownload/208-omni-bot-enemy-territory -> omni-bot_${MY_PV}_ET_linux.zip
+ http://omni-bot.invisionzone.com/index.php?/files/getdownload/207-omni-bot-enemy-territory -> omni-bot_${MY_PV}_ET_waypoint_mod.zip"
+
+LICENSE="all-rights-reserved"
+KEYWORDS="~amd64 ~x86"
+RESTRICT="mirror strip"
diff --git a/games-fps/enemy-territory-omnibot/metadata.xml b/games-fps/enemy-territory-omnibot/metadata.xml
new file mode 100644
index 000000000000..907a3f30fd04
--- /dev/null
+++ b/games-fps/enemy-territory-omnibot/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="person">
+ <email>junghans@gentoo.org</email>
+ <name>Christoph Junghans</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ </pkgmetadata>
diff --git a/games-fps/enemy-territory-truecombat/Manifest b/games-fps/enemy-territory-truecombat/Manifest
new file mode 100644
index 000000000000..7fef54429ef6
--- /dev/null
+++ b/games-fps/enemy-territory-truecombat/Manifest
@@ -0,0 +1,6 @@
+DIST tce049b_all_os_fixed.zip 6795533 SHA256 b7eec5ba59e969c39525272236095f1e4635c9301bae716a8a4a39bc65163c3d SHA512 8814f193437551c29edf88087229ee813317df10e264c3a0200942ef7c1e876aacff4d985d28bd59d1b3bd9589c86ad034d59a8f434cb443a31e07db9b0562da WHIRLPOOL 4e3919f6a326ef00d17f9217818760a7442371c02c6a58656a97fb239e825a445f9bcdea47af25c2c0a784d0762d77129352273daffce385b669d8898a89f700
+DIST tcetest049.zip 472749193 SHA256 73d0fff098bfef196d6efc4bb2f0635ab8da2ebe19b5ead5801b1664d3b4b4d4 SHA512 9c5dfaad2f427b4fdc3fa0d5ed7b88e68776167049e0fa75e72a84a6735ff1e97926dfd0d5c290351ac0eb3123018afc1f478d8c0506b4c8ddfa39cc22474985 WHIRLPOOL d01945afba803459d78002835267a64d4043a168c5da3b64999574954b9fd678354b67c9ebcb5ce0f84631b4b7de1425cb868f244d63ff72f2d22635db96abee
+EBUILD enemy-territory-truecombat-0.49b.ebuild 842 SHA256 0a38b64f65aa7362266ba339dde32d50b1db9a27dc3ff8ba0d3f160f843a2908 SHA512 0d16749eada0c6b65c907ba7419ff38890b258a13ff0ed701a0a172dacdddc89e1aa4c0f9a07964211a49dabf4d83fd048bb2e2bdc1aeb3547be8e604874a15b WHIRLPOOL ab812869e395b55b6b988fee3dd713182823976d4e35b569252266e3619d033e0220bc350e461daa92c339f6d842a9c98783e3fed0743b4545e927f2b4744437
+MISC ChangeLog 2659 SHA256 0446d4fb1e09120c6b116c1f11b411dd85dc3a30aac0f5fa733b161cb05d08f0 SHA512 4db1a523b29cab99936afadac22e1085a3234bddbe84d997f0b211597177a015f1cc194d7746d99e0ae58a96251b90ac3867c892a0b4584178de6bfaf0fb8317 WHIRLPOOL 022268d8d2042f4a346a952756e7397df70f77547d90700336868b6ce7ad14c3f62f3e1f2d3d201d97a02686b9f3a2ad9ceeac4f8f94530a89ea76c61f66a2ab
+MISC ChangeLog-2015 3231 SHA256 2f09576d379a4a2908b9047dade15a53ba455b13c85d9a2dcf7f1e15ede4461b SHA512 af4e09fa2e910d4909b551bc1f1ef0aeb55e544f7d2a1eee92c1f1643f9a4e2c2ec7a1045199ef06916221d1128b79bb753fd1becaa154ecfd4d93dea176fbc6 WHIRLPOOL 6562a3fdcdc1c1f332ac1090840a89793e4bd05096a7598411e90629af3e2c734d966e8170c21d8894670c902b38c9f3a762133edc7b761de866cda4bdfc14af
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-fps/enemy-territory-truecombat/enemy-territory-truecombat-0.49b.ebuild b/games-fps/enemy-territory-truecombat/enemy-territory-truecombat-0.49b.ebuild
new file mode 100644
index 000000000000..6d4d7c38c4ec
--- /dev/null
+++ b/games-fps/enemy-territory-truecombat/enemy-territory-truecombat-0.49b.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+GAME="enemy-territory"
+MOD_DESC="a team-based realism modification"
+MOD_NAME="True Combat"
+MOD_DIR="tcetest"
+MOD_ICON="tce_icon_pc.ico"
+
+inherit games games-mods
+
+MY_PV=${PV/.}
+HOMEPAGE="http://www.truecombatelite.com/"
+SRC_URI="http://dragons-perch.net/tce/tcetest049.zip
+ http://freeserver.name/files/installer/linux/tcetest049.zip
+ http://mirror.rosvosektori.net/tcetest049.zip
+ http://dragons-perch.net/tce/tce${MY_PV}_all_os_fixed.zip"
+
+LICENSE="freedist"
+KEYWORDS="amd64 x86"
+IUSE="dedicated opengl"
+
+RDEPEND="~virtual/libstdc++-3.3"
+
+QA_PREBUILT="${INS_DIR:1}/${MOD_DIR}/*.so"
+
+src_unpack() {
+ unpack tcetest049.zip
+ cd ${MOD_DIR} || die
+ unpack tce${MY_PV}_all_os_fixed.zip
+}
+
+src_prepare() {
+ rm -rf ${MOD_DIR}/Mac*
+}
diff --git a/games-fps/enemy-territory-truecombat/metadata.xml b/games-fps/enemy-territory-truecombat/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-fps/enemy-territory-truecombat/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-fps/enemy-territory/Manifest b/games-fps/enemy-territory/Manifest
new file mode 100644
index 000000000000..299be72c81c5
--- /dev/null
+++ b/games-fps/enemy-territory/Manifest
@@ -0,0 +1,7 @@
+DIST ET-2.60b.zip 4143401 SHA256 6fb77e1ed0314b2da5c2a28807392ac638204faec8ef86361893937f182b22f8 SHA512 f86d0d172a170cd894f1c60a817d2159768bf7d03cb0146f3470edd54828096a62e890c24bac80a5851adc9356cb2716d5f0c756fab063a9c0eb561b72825b84 WHIRLPOOL 6e4718051b77201b5bdb87efebd492db46ca83cca380b7f4bac2833d3f95700a39801cfcd5b025ed2b4c51d6b3140b7a2021ba8e1056bf4d100e67204768170b
+DIST enemy-territory-all-0.1.tar.bz2 876 SHA256 8c3466db348eccd34bd108db57bc6fb656a7dcbacd190cc331fd8caf74c7cb64 SHA512 7e00ac4a30ebbbc5db646e0edf6683d8e4d99756c1010922ccfd16a3dc27c0a5b23a91c9f3adb3e120bfcd5f9a3302a466a86888ff1496dda29a3b09e87eacb2 WHIRLPOOL 1dec8052196a04a3cf834636bab54a15a0eceee2eb52df888a533fe4f78a3f774eb122d6b14d65738b9084b7d543d26ab3d9ef14cafd63a1ba68e50e60d63307
+DIST et-linux-2.60.x86.run 270965248 SHA256 41cbbc1afb8438bc8fc74a64a171685550888856005111cbf9af5255f659ae36 SHA512 7321a3d831dd375c49aff81f30098c5201880e9fc783a25dd7dee3bd2211372e0e07a482e6c78982bc1f27d62bceb769dffc30f820c3144b4a64268fd9ef5cfe WHIRLPOOL 43e4cdced441add2524e07412d06a5530627922b14549f847567b9e558eb7652f7a7c8b6dac26b5ed6c18f55597a8cf898c950026dcd0577731d86257ae59162
+EBUILD enemy-territory-2.60b-r1.ebuild 3268 SHA256 30972bbec68092a05eb129309b28c31430687b72f7d4dc0fdcc512edec6297b6 SHA512 b4f5f7d0b34006b37300406dafc5a2274f5005b9d2d599b4706d8bcf55b439e4c189067f4f54e0705259817b101244d833f31ad2c9b53806e5f7c0585963a2a9 WHIRLPOOL feada902bc99730d2619dcb47d475e79b51000539cfe02c29ccaa38f76e192a7ce805223e44bdaa713e82fc8b14a7ffcf9cc8ad49cb7315e22dfb6f68fed279a
+MISC ChangeLog 2705 SHA256 692a000982d8d8135c296cfa92defb6f95557537bec9b85c5b1a0ef0039750b3 SHA512 f56957620706f609ef18184689119a0bf4ade7e175690264712b5625ae0b94586faf3aff6c279a0d0bb447116005c0897ac1b2d63bc4e30dda0dc624687d16c8 WHIRLPOOL 8161e4c9dca074d4669631ee2b2147749dd6f3176cbfe6095eba7d5e98e73805aba1b74c36488e17e6b70c727b64bc8f6f27ad9a0265ff38afccb12ccaee9e6b
+MISC ChangeLog-2015 9132 SHA256 3751e677a0f08b9da4c560499b02eba8f0ffe2a070bffad9f7f39ec476e1f2c4 SHA512 85118986d3aff13377a12506a8e8f51585c0175771e5d680653c93a508534ecd93e3a035f42f6846551d36707600a7bd209e32e99577cc09947a1b711f359ae0 WHIRLPOOL fd2702c5f4fb40ee9394520f3154b072f48b22d671ea7260f4fd446113983a9a3b9493bb2bfec5f31af2d04cf3132ad478740f15d66d0df86dba94fd7b923567
+MISC metadata.xml 1044 SHA256 e35f8a9f18d8b1915bb9d5b809c8beb318a6193e0a682d9635a604276d723bc1 SHA512 8ec59ef948ae9471580cb39a80bb99fc1b524c45ad60f031560fde9f2358998335e414ba09fa49c9909a005da424db84543a0b39a8b68479c097d392c2ce9bb9 WHIRLPOOL 47dddf0082ae80b261615aaf072c63759cb4ad74a09e31318070ae0dd1e28fa7edd40d90ca60c49aa8898e30503e2b0aeda4236e9acaaeb86844d4e8b7d48471
diff --git a/games-fps/enemy-territory/enemy-territory-2.60b-r1.ebuild b/games-fps/enemy-territory/enemy-territory-2.60b-r1.ebuild
new file mode 100644
index 000000000000..62ea2448f19e
--- /dev/null
+++ b/games-fps/enemy-territory/enemy-territory-2.60b-r1.ebuild
@@ -0,0 +1,126 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils unpacker games
+
+DESCRIPTION="standalone multi-player game based on Return to Castle Wolfenstein"
+HOMEPAGE="http://www.idsoftware.com/"
+SRC_URI="mirror://3dgamers/wolfensteinet/et-linux-2.60.x86.run
+ mirror://idsoftware/et/linux/et-linux-2.60.x86.run
+ ftp://ftp.red.telefonica-wholesale.net/GAMES/ET/linux/et-linux-2.60.x86.run
+ mirror://idsoftware/et/ET-${PV}.zip
+ dedicated? (
+ https://dev.gentoo.org/~wolf31o2/sources/dump/${PN}-all-0.1.tar.bz2
+ mirror://gentoo/${PN}-all-0.1.tar.bz2
+ )"
+
+LICENSE="RTCW-ETEULA"
+SLOT="0"
+KEYWORDS="-* amd64 x86"
+IUSE="dedicated"
+RESTRICT="mirror strip"
+
+DEPEND="app-arch/unzip"
+RDEPEND="sys-libs/glibc
+ amd64? ( sys-libs/glibc[multilib] )
+ dedicated? ( app-misc/screen )
+ !dedicated? (
+ virtual/opengl[abi_x86_32(-)]
+ 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}/et.x86
+ ${dir:1}/etded.x86
+ ${dir:1}/etmain/cgame.mp.i386.so
+ ${dir:1}/etmain/qagame.mp.i386.so
+ ${dir:1}/etmain/ui.mp.i386.so
+ ${dir:1}/pb/pbag.so
+ ${dir:1}/pb/pbags.so
+ ${dir:1}/pb/pbcl.so
+ ${dir:1}/pb/pbcls.so
+ ${dir:1}/pb/pbsv.so
+ ${dir:1}/pb/pbweb.x86"
+
+src_unpack() {
+ unpack_makeself et-linux-2.60.x86.run
+ if use dedicated; then
+ unpack ${PN}-all-0.1.tar.bz2
+ fi
+ unpack ET-${PV}.zip
+}
+
+src_prepare() {
+ if use dedicated ; then
+ sed 's@/sbin/runscript@/sbin/openrc-run@' \
+ -i et-ded.rc || die
+ fi
+}
+
+src_install() {
+ exeinto "${dir}"
+ doexe openurl.sh
+
+ insinto "${dir}"
+ dodoc CHANGES README
+
+ cp -r Docs pb etmain "${Ddir}" || die
+ chmod og+x "${Ddir}"/pb/pbweb.x86 || die
+
+ if ! use dedicated ; then
+ doicon ET.xpm
+ doexe "Enemy Territory 2.60b"/linux/et.x86
+ games_make_wrapper et ./et.x86 "${dir}" "${dir}"
+ make_desktop_entry et "Enemy Territory" ET
+ else
+ doexe "Enemy Territory 2.60b"/linux/etded.x86
+ games_make_wrapper et-ded ./etded.x86 "${dir}"
+ newinitd "${S}"/et-ded.rc et-ded
+ sed -i \
+ -e "s:GAMES_USER_DED:${GAMES_USER_DED}:" \
+ -e "s:GENTOO_DIR:${GAMES_BINDIR}:" \
+ "${D}"/etc/init.d/et-ded || die
+ newconfd "${S}"/et-ded.conf.d et-ded
+ # TODO: move this to /var/ perhaps ?
+ keepdir "${dir}/etwolf-homedir"
+ chmod g+rw "${Ddir}/etwolf-homedir"
+ dosym "${dir}/etwolf-homedir" "${GAMES_PREFIX}/.etwolf"
+ fi
+
+ prepgamesdirs
+ chmod g+rw "${Ddir}" "${Ddir}/etmain"
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ ewarn "There are two possible security bugs in this package, both causing a"
+ ewarn "denial of service. One affects the game when running a server, the"
+ ewarn "other when running as a client."
+ ewarn "For more information, see bug #82149."
+ echo
+ if ! use dedicated; then
+ elog "To play the game run:"
+ elog " et"
+ echo
+ else
+ elog "To start a dedicated server run:"
+ elog " /etc/init.d/et-ded start"
+ echo
+ elog "To run the dedicated server at boot, type:"
+ elog " rc-update add et-ded default"
+ echo
+ elog "The dedicated server is started under the ${GAMES_USER_DED} user account."
+ echo
+ ewarn "Store your configurations under ${dir}/etwolf-homedir or they"
+ ewarn "will be erased on the next upgrade."
+ ewarn "See bug #132795 for more info."
+ echo
+ fi
+}
diff --git a/games-fps/enemy-territory/metadata.xml b/games-fps/enemy-territory/metadata.xml
new file mode 100644
index 000000000000..8ab2e0c01fff
--- /dev/null
+++ b/games-fps/enemy-territory/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>
+Enemy Territory is a first-person 3-D shooter based loosely on the original Wolfenstein series by id software. The game takes place in North Africa and Europe during World War II and allows you to play as either the Axis or the Allies. There are several classes of characters you can play, each with their own special abilities and weapon choices. You can also gain proficiency in your specialties and increase your abilities by performing your class's specialized duties, which helps promote teamwork. Enemy Territory was originally to be a single and milti-player add-on for Return to Castle Wofenstein, but John Carmack and company were not happy with the progress they had made on it, so instead, they released it as a multi-player stand-alone game.
+</longdescription>
+</pkgmetadata>
diff --git a/games-fps/etqw-bin/Manifest b/games-fps/etqw-bin/Manifest
new file mode 100644
index 000000000000..c6eb0557343f
--- /dev/null
+++ b/games-fps/etqw-bin/Manifest
@@ -0,0 +1,5 @@
+DIST ETQW-client-1.5-full.x86.run 556383725 SHA256 827395c5ad7bff36a8456f7f210ab43b8cc2b0d18e9f366d15ff4f11eacfc4c5 SHA512 32bb3d7ef47790ac6b790a5a5d61592c3504d034372254102985e58dee25b5d200e507330226bf8458c628154c246b2abcb08bf550fa044189c4c8de813af0c2 WHIRLPOOL 9b6dbdb642241972c75ec854c0e51bdb2f0f1b74b9f56a2259b2864b83f74385f33a283b59d20f4a8a744d0158a5471bbb8459bd18aa510b7197bb284ab0cdf2
+EBUILD etqw-bin-1.5-r1.ebuild 2010 SHA256 d431607f4a4c11534a0d3cf6c052d91227c59410cc656df5efec2ff3c30be5c5 SHA512 da319b9dd9b95f85c7b6d8816869fb5e211092494231719f1a147a0d5a29303c2d3b5928a09c5e62b04b653546c219d409566d299b9bbb1fe7a2f05876142906 WHIRLPOOL a146c50ac671156f2f42a24daac147070e50f36d2a1e642305a4112f07b674c655e80e5671fd0ddc0ffa60a048fd01a619953eec3e2ba5f8f704c129fb77f614
+MISC ChangeLog 2557 SHA256 ebd217f8b3104e371231d6bb43581db21b8a80298d558319d83905f30af1b2c9 SHA512 0f752b85e10dfa0620e2203d47a84c79c448a621fd1e4adcce711ed794fbe542fdb290760a9584d02a19b934b8e4972816a14567fd81c3b000613e16b60cdaab WHIRLPOOL 04d018447f0f0e364130b37915604b868ea9d0f9b24d28d0e8eeb8393b658c8b10652c325f3f9a4da1ea1fa4b31abaea3e76e27c2e4fe4717163a8326412c693
+MISC ChangeLog-2015 1540 SHA256 ffd3639ffcf79b0fb440f599ef0b6b6a082a27a39af7d50b758feda283609f05 SHA512 593514fa92e8c6243de8077dab948aa169e00cb0433a76089f67b673d89d39d81c3463ad078144b7e4f1801b7f9135f3a4eea4ff013af8b5d835d18930b77de8 WHIRLPOOL dc9a7f4d97d335ef03cbdad77af3f421ee7f2572c77ed41b07e1b2f32156fd35e3ac2692ce8a0f4dca42c400f9cc772ff3923b40899068883ae9ea45b0e6e5ad
+MISC metadata.xml 252 SHA256 0dd0e558bb7ccc4f24cb9c9c43790c108e559f3462861b2ff6eb267a345beaab SHA512 90798aff93ec7e3881b882e7b10bb1680e8cb7d82b0ef4280e562ab0c9e8a2daba8afe57333dc64697322267a4b651c00ee9b4fdeb56278ff70c073da7b91638 WHIRLPOOL c6c72f145f4ccc4863ad4c1a236eac601fb00f0e9550568f98d5e6f5eeb16f361b4c18eac8d80a1534e398fac595a6819a86297164be0818d04de6d643f01d7c
diff --git a/games-fps/etqw-bin/etqw-bin-1.5-r1.ebuild b/games-fps/etqw-bin/etqw-bin-1.5-r1.ebuild
new file mode 100644
index 000000000000..9312c3b33f71
--- /dev/null
+++ b/games-fps/etqw-bin/etqw-bin-1.5-r1.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 games
+
+DESCRIPTION="Enemy Territory: Quake Wars"
+HOMEPAGE="http://zerowing.idsoftware.com/linux/etqw/"
+SRC_URI="ftp://ftp.i3d.net/Games/Enemy%20Territory%20Quake%20Wars/Patches/ETQW-client-${PV}-full.x86.run"
+
+LICENSE="ETQW"
+SLOT="0"
+KEYWORDS="-* amd64 x86"
+IUSE="cdinstall"
+RESTRICT="strip"
+
+DEPEND="app-arch/unzip"
+RDEPEND="sys-libs/glibc
+ amd64? ( sys-libs/glibc[multilib] )
+ >=sys-libs/zlib-1.2.8-r1[abi_x86_32(-)]
+ >=virtual/jpeg-62:62[abi_x86_32(-)]
+ >=media-libs/libsdl-1.2.15-r4[video,sound,opengl,abi_x86_32(-)]
+ >=media-libs/alsa-lib-1.0.27.2[abi_x86_32(-)]
+ >=x11-libs/libX11-1.6.2[abi_x86_32(-)]
+ >=x11-libs/libXext-1.3.2[abi_x86_32(-)]
+ cdinstall? ( games-fps/etqw-data )"
+
+S=${WORKDIR}/data
+dir=${GAMES_PREFIX_OPT}/etqw
+
+QA_PREBUILT="${dir:1}/*.x86
+ ${dir:1}/*.so*"
+
+src_unpack() {
+ tail -c +194885 "${DISTDIR}"/${A} > ${A}.zip
+ unpack ./${A}.zip
+ rm -f ${A}.zip
+}
+
+src_install() {
+ insinto "${dir}"
+ doins -r base pb *.png
+ dodoc *.txt
+
+ exeinto "${dir}"
+ doexe etqw{,ded,-rthread}.x86 openurl.sh libCgx86.so libSDL*.id.so*
+
+ newicon etqw_icon.png etqw.png
+ games_make_wrapper etqw ./etqw.x86 "${dir}" "${dir}"
+ make_desktop_entry etqw "Enemy Territory: Quake Wars" etqw
+
+ games_make_wrapper etqw-dedicated ./etqwded.x86 "${dir}" "${dir}"
+ make_desktop_entry etqw-dedicated "Enemy Territory: Quake Wars (dedicated server)" etqw
+
+ games_make_wrapper etqw-rthread ./etqw-rthread.x86 "${dir}" "${dir}"
+ make_desktop_entry etqw-rthread "Enemy Territory: Quake Wars (SMP)" etqw
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+
+ if ! use cdinstall ; then
+ elog "You need to copy pak00*.pk4, zpak_*.pk4 and the megatextures"
+ elog "directory to ${dir}/base before running the game."
+ fi
+ elog "To change the game language from English, add"
+ elog "seta sys_lang \"your_language\" to your autoexec.cfg file."
+ elog "Menu fonts may not show up until you do so."
+}
diff --git a/games-fps/etqw-bin/metadata.xml b/games-fps/etqw-bin/metadata.xml
new file mode 100644
index 000000000000..3c186688e265
--- /dev/null
+++ b/games-fps/etqw-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-fps/etqw-data/Manifest b/games-fps/etqw-data/Manifest
new file mode 100644
index 000000000000..68fc46d1e755
--- /dev/null
+++ b/games-fps/etqw-data/Manifest
@@ -0,0 +1,4 @@
+EBUILD etqw-data-1.0.ebuild 1291 SHA256 a0a7740a355910f34d953fd23abc25b35c10033c8887a7944d2256de9786cb4a SHA512 ec6be32bcc747def75b89d5400a679e1fed2f3b0b9b81da1acd78a8079c60414f448afd7e0a583c3735035d3754352f7d892b972f4ed4c9b64da41fbf40b4dad WHIRLPOOL 05a4ce4065beb53bc73b6f10bd0dabcefa1d604e84c1062aa7194b19b4d1cad52d22a4e07c753228923edb5da4507e58f377803157052edc4c00384a6446c5f3
+MISC ChangeLog 2554 SHA256 ed30f566258b7d7263b9ccc03cd9d81d06efea2c360d8bb191c45db191c5e621 SHA512 2d6d227308e4eccc9759c7a48d51b7a85db5564c574688977261b05281040d4fda7f8c41fa15503a5eca2a99e138cb2da8d46c96b10f18810d50bdc0283b1d79 WHIRLPOOL 7e4d188b4c2e6ec9f7c0b7d4ee4bfb90d03197187278f518114a278fc18cc42b5759a64086729a953cd83b44baecacfa4736085de0d43293cda011f848765759
+MISC ChangeLog-2015 955 SHA256 edfa95275508132dfb28af3db623fa738b8d1b920b2f493de009004e90ac8de2 SHA512 85d5324009aff61399cb495eaf52d21b34c20cbf3c84c2d4a0f6718b2d576949225e53656ddf4fa070c23ceb05b4f17ff7146a72718114bfa29458921370d192 WHIRLPOOL 1a70e6af4d05cfe2796b6fbec1ed946a64c9a18e1914c501f5472a885bd53e10f51dfc01f7cca09cd898b2ad1ae0811a1257017cf7a244991a73d5e08ea793eb
+MISC metadata.xml 252 SHA256 0dd0e558bb7ccc4f24cb9c9c43790c108e559f3462861b2ff6eb267a345beaab SHA512 90798aff93ec7e3881b882e7b10bb1680e8cb7d82b0ef4280e562ab0c9e8a2daba8afe57333dc64697322267a4b651c00ee9b4fdeb56278ff70c073da7b91638 WHIRLPOOL c6c72f145f4ccc4863ad4c1a236eac601fb00f0e9550568f98d5e6f5eeb16f361b4c18eac8d80a1534e398fac595a6819a86297164be0818d04de6d643f01d7c
diff --git a/games-fps/etqw-data/etqw-data-1.0.ebuild b/games-fps/etqw-data/etqw-data-1.0.ebuild
new file mode 100644
index 000000000000..fc2868595b43
--- /dev/null
+++ b/games-fps/etqw-data/etqw-data-1.0.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils cdrom games
+
+DESCRIPTION="Enemy Territory: Quake Wars data files"
+HOMEPAGE="http://zerowing.idsoftware.com/linux/etqw/"
+SRC_URI=""
+
+LICENSE="ETQW"
+SLOT="0"
+KEYWORDS="-* amd64 x86"
+IUSE="videos"
+
+S=${WORKDIR}
+
+src_install() {
+ local dir=${GAMES_PREFIX_OPT}/etqw
+
+ cdrom_get_cds Setup/Data/base/DEU:Setup/Data/base/POL:Setup/Data/base
+
+ cd "${CDROM_ROOT}"/Setup/Data/base
+ insinto "${dir}"/base
+ doins pak00{0..4}.pk4 || die "doins pak failed"
+ doins -r megatextures || die "doins megatextures failed"
+
+ case ${CDROM_SET} in
+ 0)
+ doins \
+ zpak_english000.pk4 \
+ DEU/zpak_german000.pk4 \
+ ESP/zpak_spanish000.pk4 \
+ FRA/zpak_french000.pk4 \
+ || die "doins zpak failed"
+ ;;
+ 1)
+ doins \
+ POL/zpak_polish000.pk4 \
+ RUS/zpak_russian000.pk4 \
+ || die "doins zpak failed"
+ ;;
+ 2)
+ doins zpak_english000.pk4 || die "doins zpak failed"
+ ;;
+ esac
+
+ if use videos ; then
+ case ${CDROM_SET} in
+ 0|2)
+ doins -r video || die "doins video failed"
+ ;;
+ esac
+ fi
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+
+ elog "This is just the data portion of the game. You will need to install"
+ elog "games-fps/etqw-bin to play it."
+}
diff --git a/games-fps/etqw-data/metadata.xml b/games-fps/etqw-data/metadata.xml
new file mode 100644
index 000000000000..3c186688e265
--- /dev/null
+++ b/games-fps/etqw-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-fps/etqw-demo/Manifest b/games-fps/etqw-demo/Manifest
new file mode 100644
index 000000000000..ea7bfa36f7d7
--- /dev/null
+++ b/games-fps/etqw-demo/Manifest
@@ -0,0 +1,5 @@
+DIST ETQW-demo2-client-full.r1.x86.run 691248874 SHA256 dcee7afb734b259808fc7fe079afc57efa7ac23cb4c471d4897f35f3e6ca3c31 SHA512 41332208626449da74bea71a9926258f50986f0af85045d470d4405d27e497085ba318337181802be58eb50c724ab91df6b9c810e5fcc5f8dc131486d6529f38 WHIRLPOOL e564c01afaf249ed740d29a22a55733416b08253790eebbf2b25049994d6139397272ba280971ecad042ae094d9e21d4c7bc974314212cf1ce238656df3765e7
+EBUILD etqw-demo-2.0_p1-r1.ebuild 1571 SHA256 ac7a29d353853f5d5ba044edc2c1366d32a9b445c1d6a0a8c98ff1efe4b8a7bc SHA512 5491d3b22dcbc7c3d623863e61f5db062a8998f888a4554a02ebae745cd7cbb19c9edd3967c9387459825dd12e1eacf752ab43554d4affe39412b54837ac2824 WHIRLPOOL daac3358695a5417696ca4cc32c46c6651b8e09a788f740c39a14344acd27495e7772c852c5c9a5f8fb6394678d335a6bdaf3fd7afa86b4ccb07a57b20befdcc
+MISC ChangeLog 2442 SHA256 83925536dda43ae18f088d8e15564a303675bf426258e43e15805d7fb5749461 SHA512 47318d71a146903e1ce882bca957a51f911c78ac2fe726f1e04f105b0d4b4ffd402b2f721f9d88cf384fab500bdff4684f3256e1ffdc10da70a08d7aa9853898 WHIRLPOOL 4c93597a50386ce6e9ccb7e22cbfa47b10ef3544fdb7a508c0487cada1b79637ccf896714628e6c70321e7cd787a53ea1270e49c8325931006f1d9b78d8059c8
+MISC ChangeLog-2015 1897 SHA256 f8dc6c7676c4c3c96905407cc9ca756a1fde97c101fcbe89427eac36896707dc SHA512 600871aa16e4a6e703e64905e1243d4bab1f76de771495850bdc9a06d1b7ce2fcc0dd9c9a0fac79d53e74d533abc0292752ad3c5ef54f6a4be38aead23335e6d WHIRLPOOL 0da66963173dc0ce18cff2a7af000be759d4c8d91116cbfdb276ab4cf02d1789892fdf17e84bf4eb53fa4e640b088d56f0f27894ae75394f0dd275821970e559
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-fps/etqw-demo/etqw-demo-2.0_p1-r1.ebuild b/games-fps/etqw-demo/etqw-demo-2.0_p1-r1.ebuild
new file mode 100644
index 000000000000..8915a443830f
--- /dev/null
+++ b/games-fps/etqw-demo/etqw-demo-2.0_p1-r1.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit unpacker eutils versionator games
+
+MY_MAJOR=$(get_major_version)
+MY_REV=$(get_version_component_range 3)
+MY_BODY="ETQW-demo${MY_MAJOR}-client-full.r${MY_REV/p/}.x86"
+
+DESCRIPTION="Enemy Territory: Quake Wars demo"
+HOMEPAGE="http://zerowing.idsoftware.com/linux/etqw/"
+SRC_URI="mirror://idsoftware/etqw/${MY_BODY}.run"
+
+# See copyrights.txt
+LICENSE="ETQW"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+RESTRICT="strip mirror"
+
+DEPEND="app-arch/unzip"
+RDEPEND=">=sys-libs/zlib-1.2.8-r1[abi_x86_32(-)]
+ >=virtual/jpeg-62:62[abi_x86_32(-)]
+ >=media-libs/libsdl-1.2.15-r4[video,sound,opengl,abi_x86_32(-)]
+ >=x11-libs/libX11-1.6.2[abi_x86_32(-)]
+ >=x11-libs/libXext-1.3.2[abi_x86_32(-)]"
+
+S=${WORKDIR}
+dir=${GAMES_PREFIX_OPT}/${PN}
+
+QA_PREBUILT="${dir:1}/guis/libmojosetupgui_ncurses.so
+ ${dir:1}/data/*
+ ${dir:1}/data/pb/*.so"
+
+src_unpack() {
+ # exit status of 1 should just be warnings, not corrupt archive
+ unpack_zip ${A}
+}
+
+src_install() {
+ insinto "${dir}"
+ doins -r guis scripts
+
+ cd data
+ insinto "${dir}"/data
+ doins -r base pb etqw_icon.png
+ dodoc README.txt EULA.txt copyrights.txt etqwtv.txt
+
+ exeinto "${dir}"/data
+ doexe etqw *\.x86 etqw-* libCgx86* libSDL* *.sh
+
+ games_make_wrapper ${PN} ./etqw.x86 "${dir}"/data "${dir}"/data
+ # Matches with desktop entry for enemy-territory-truecombat
+ make_desktop_entry ${PN} "Enemy Territory - Quake Wars (Demo)"
+
+ games_make_wrapper ${PN}-ded ./etqwded.x86 "${dir}"/data "${dir}"/data
+
+ prepgamesdirs
+}
diff --git a/games-fps/etqw-demo/metadata.xml b/games-fps/etqw-demo/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-fps/etqw-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-fps/ezquake-bin/Manifest b/games-fps/ezquake-bin/Manifest
new file mode 100644
index 000000000000..ac12c10fc2e8
--- /dev/null
+++ b/games-fps/ezquake-bin/Manifest
@@ -0,0 +1,8 @@
+DIST ezquake_linux-x86_1.9.3.tar.gz 19230315 SHA256 a0a9c4f2cc0444f5a404b387fa33c933b826acf0ffe81fd5415e7cba93b24196 SHA512 c362b0103fa4beb578fec5653b4b9196d0202a00c662e3e001615c07041968daa7bd8edf194e310ac8501d01768b2bda79e250830733fb4dd56cb1517844d79f WHIRLPOOL a744edaf4f8ed46907dfd7c4bc58b399e955ca89929dbf83fc129caa8ec5abaeb25c96b79ad6929db96f712f3ce45d2425634b0c809207dbe4afd24e2d3cd710
+DIST ezquake_linux-x86_64.1.9.3.tar.gz 18624824 SHA256 3697482c2c8299ed02aef9d39d263f7d91ab783026cd9489beb28fe9566acacf SHA512 4c2f5060bbf08ca3b9583d4c3502e69bf6d503efd0e14df9d5fe54e1e8ac1c5ca0b920c3748e4a8e1f86c60d6e5809977352636d4758fd9cb3934cea03b1138f WHIRLPOOL d8c4886c4340c144d1f7358acc99cfb5b908044502331b761352bae81f6a2d1648e21fa3557a908d3147e1f1761e3bdfec14e60f1a3beed66283790f430452eb
+DIST ezquake_linux32_2.2.tar.gz 1685934 SHA256 655e8ec60c619ab5d1435882436296b88fc279c2963f01dd277f34939336c067 SHA512 2a42b43a0b4ad75c22c58bb53f8161eec1460cac3b841ccf2593e0cb803c4ef5cee23f939f859eb6d95409a01c4ccc3eabae108eac6c1cb850f9c5c3445bf5ab WHIRLPOOL f10b874bcbb37c084c3ae17ad2c410968f7ccd5bb9551e4d7ea13cafa91fe9601d4fe9435caed3739a11bc15c4a8ac949afb4aad2c79a04165e8c1ae2bf4dc76
+DIST ezquake_linux64_2.2.tar.gz 1804397 SHA256 b7735c680403678955f7d04a51265d216fb787fbdb343628b69418bfdb5c7203 SHA512 c1f1772971980a7b349da6c6eea5643591d5bc81a939b28e50651c5773d8372277fb6bc9a5681c59e8273ca6250fa712c3b76db488bf521dd3675aabd5e1af8e WHIRLPOOL 9fa74efcdd4acb489d6ccac0ab77b4b2732d07bb27f369100cb23bbfbd9bf0c72e62fb09ade0c3f042939435b69164a4629dd17ab6fc0b6eee3d1651f3579439
+EBUILD ezquake-bin-2.2.ebuild 1947 SHA256 d72e8ae9c1a41f86fd45524f683c1a760f45df074b0296a454052e864e373291 SHA512 00f22b5412d339d18b4d533cf976ae604649473ccf98217425977959f323980d06e2c9fa534c2e4bb0c94e0a124a8f2110316d7668bfeb5797c9edc261e9252f WHIRLPOOL 5dcad4cdabff5fc8df42b71bf3f5a82a11f7f66e00f8244a3364074986be0e5fef1bca972ab59bf4a31c9227be82fcd01f98eae477fe93398c9e32356fe3f1d8
+MISC ChangeLog 2436 SHA256 512d6ac2ea07a79911147d472b458df4b5de4a441d37bf705ca8d52258d63d25 SHA512 3e3435377470fb5dce6169a8fb29e2fb2b2ab96069e551457c4a40e781de3766a266b0a0c30941dae970e1c464e86ff139ed23ccb794923b68c36aea683665b5 WHIRLPOOL d22017cc706810844fde11eb6f08b7e07e47bb5d9b6d584d038d7f11ce6fe4759f5759d7632c1e047fec9cf79f4f053c2c3f0618fdefe2a08259d852f221f2c6
+MISC ChangeLog-2015 2619 SHA256 f67ca388f0141ddff4a3dcf8cc29084c16a61b15d82f1cfc6041fccc95bb92ab SHA512 591cefc36dee642185518dcc6977597278f889fda08a97905dc148c2e7c681fd3aacf6802d9b1caf0b805050ffc4b7433c41ad00462875e32269ab3d28cad9f2 WHIRLPOOL 35619eb3b7e7937854e3cf68483d99200a40f807729a069fc67f4f3734919c70e4d780456fb0a63f4a91be25ef54b6e426a342c7cd1d667b711ace91b4ac4198
+MISC metadata.xml 340 SHA256 3e551617485cc7d67b5c6ea2dc4278e2e5ff21bd8fbb3941fe7df01cd381d44f SHA512 4922600550155470211bb2fe2eab50f02e120d82261d2956f7f73604ec5e76c71e37be5d9a542d9f963eaa0927da7bcb9b464428a7b778d17a383135e423063e WHIRLPOOL c8b25c2f0be2a45249b1a28f885dc4843d6014ca6de7755fa0f0210043c6db5b95eadfc7fcf3f62d17b6150c5455ae676d4af1390c37ac08e28d43d80cf95c43
diff --git a/games-fps/ezquake-bin/ezquake-bin-2.2.ebuild b/games-fps/ezquake-bin/ezquake-bin-2.2.ebuild
new file mode 100644
index 000000000000..5e6fe5800999
--- /dev/null
+++ b/games-fps/ezquake-bin/ezquake-bin-2.2.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit games
+
+MY_FULL_PV=1.9.3
+MY_PN="${PN/-bin/}"
+DESCRIPTION="Quakeworld client with mqwcl functionality and many more features"
+HOMEPAGE="http://ezquake.sf.net/"
+SRC_URI="
+ amd64? ( mirror://sourceforge/${MY_PN}/${MY_PN}_linux-x86_64.${MY_FULL_PV}.tar.gz
+ mirror://sourceforge/${MY_PN}/${MY_PN}_linux64_${PV}.tar.gz )
+ x86? ( mirror://sourceforge/${MY_PN}/${MY_PN}_linux-x86_${MY_FULL_PV}.tar.gz
+ mirror://sourceforge/${MY_PN}/${MY_PN}_linux32_${PV}.tar.gz )"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+RESTRICT="strip mirror"
+IUSE="cdinstall"
+
+DEPEND="cdinstall? ( games-fps/quake1-data )"
+RDEPEND="${DEPEND}
+ virtual/opengl
+ x11-libs/libXxf86dga
+ x11-libs/libXxf86vm"
+
+S=${WORKDIR}/${MY_PN}
+
+dir=${GAMES_PREFIX_OPT}/${PN}
+
+QA_PREBUILT="${dir:1}/ezquake*"
+
+src_unpack() {
+ unpack ${A}
+ if use amd64; then
+ mv ${MY_PN}_linux-x86_64.${MY_FULL_PV} "${MY_PN}"
+ mv ezquake-gl_linux-x64.glx "${MY_PN}"/ezquake-gl.glx
+ else
+ mv ${MY_PN}_linux-x86.${MY_FULL_PV} "${MY_PN}"
+ mv ezquake-gl_linux-x86.glx "${MY_PN}"/ezquake-gl.glx
+ fi
+}
+
+src_install() {
+ exeinto "${dir}"
+ insinto "${dir}"
+
+ doexe ezquake-gl.glx
+ doins -r ezquake qw
+ dosym "${GAMES_DATADIR}"/quake1/id1 "${dir}"/id1
+ games_make_wrapper ezquake-gl.glx ./ezquake-gl.glx "${dir}" "${dir}"
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+
+ if ! use cdinstall; then
+ elog "NOTE that this client doesn't include .pak files. You *should*"
+ elog "enable \"cdinstall\" flag or install quake1-demodata with the symlink use flag."
+ elog "You can also copy the files from your Quake1 CD to"
+ elog " ${dir}/quake1/id1 (all names lowercase)"
+ elog ""
+ elog "You may also want to check:"
+ elog " http://fuhquake.quakeworld.nu - complete howto on commands and variables"
+ elog " http://equake.quakeworld.nu - free package containing various files"
+ fi
+}
diff --git a/games-fps/ezquake-bin/metadata.xml b/games-fps/ezquake-bin/metadata.xml
new file mode 100644
index 000000000000..8789378885ba
--- /dev/null
+++ b/games-fps/ezquake-bin/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">ezquake</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-fps/freedoom/Manifest b/games-fps/freedoom/Manifest
new file mode 100644
index 000000000000..68bb4e4812eb
--- /dev/null
+++ b/games-fps/freedoom/Manifest
@@ -0,0 +1,10 @@
+DIST freedm-0.10.1.zip 7230096 SHA256 da75ebe8af648fc315491f4051d46458b134ad844fc87742551aa1930ccd6857 SHA512 cc3b393e20b503e83ca2bf90ac528d42c951881b58d22970b154fd262e69f7bae038f7300d74e467af6e31e626a12d4a9fb5bf5ff3e9da84506df41be18577f2 WHIRLPOOL 05ca68e780b95bb2ea8c599821c6a20a151df9222104de0bede8089da3c5d2259ae482f8dc31131cd326a7e6ffdedbdeffa475d0dbc175435082e88bf93e036b
+DIST freedm-0.7.zip 4777958 SHA256 379e29e4ee2355d150fba04507c14544bc8af4cc5449aef2cf80b6709a78e59a SHA512 4f339f05d7a258b76b1d55ed8d69026b6870c181ba4a3f3672e12ed41a8c8eeeb7064193009f7c7ffb24ace18365d7744050f64cfd9db5dfa330983fa9669b8d WHIRLPOOL 02b0934fb5e28b623f4bfb05e2f91447aef1473e746e889269cbabfe3bc740dd012cdd8984de23b23c3668077707ace881e1166112fc6aed6e669787698d164b
+DIST freedoom-0.10.1.zip 18496121 SHA256 7d20c4b458b6966a58f8f1d9d67db67999364a66e67616e2c320d01b396338da SHA512 a98d400267801dfdf67aa035def6d62fffff1c3a2d1aebd482929274e1f86e05e79c9cbe528a80d5c87df7306364ca74a3b03674273a0079bad724e7b23e38eb WHIRLPOOL f7c926c80603c5631b00497195c4cf8e16d01bbefab4af48957d39683047259b50246381ce486c27fdae46ea52100c8dc03df9a86680562fec1cbb60501657b7
+DIST freedoom-demo-0.7.zip 2800744 SHA256 4caf386adbf217e3c96d1d8f18cbdf5335caf7c1e88d64cdc44065aa92785286 SHA512 5a101da1c473f0bec899db03ec8c8afce5c95a6c0e041dbfebe95a370e7d64746c3f1ff0304535b58ac766518e282899887f6bad415e3519dd811fc39a0c89d8 WHIRLPOOL de48bb1c19a557ef1a4bde2839a5f9c95d10a0c4364bb88f363cc0b4ab09033a19d4ee656e190a2b31d3e1edb194f24a8e80db3284a4692e3b16c442ddc95050
+DIST freedoom-iwad-0.7.zip 9697891 SHA256 f8f75fd1909801fe42de0e74db9adcfd33f753374e4923bd93e3d9a9b802ab1f SHA512 7363517097be2bb584a8481b3c658dc046dc35f8508cbd79af602e3d15b1f570537fbf1b620684e2931d644670fbb453064ab5699f542888a29cc1b4ca295b7a WHIRLPOOL b55fd43624f21a2f2c16c8f1e56ccd6e5d5c324c381a30a258bfa36c50f17e5b905fd552598cf2ae3f83bede5a0697f02959e1533e5bd5d2e62ed2b2b467c211
+EBUILD freedoom-0.10.1.ebuild 1102 SHA256 98ed44fcb8a44435265fb1df0c507717168cf7026222d045ac215174a2a11dba SHA512 99e0508878d31f488bd5f26a36e0da2c0947073e4440d543b680e77c02c54e3f3a050bbac0885425b9452528d37cac34e94f48314a71635d3aa5dcf8bc58b1e5 WHIRLPOOL e67e0510e0d78a78ccdf6be4dd2931c06531e612f2c47480dde55658d6af4bc2465d4890e63beda46cb31ee8ec2f6e83f143b78987aeb5ce370e54e06066b47f
+EBUILD freedoom-0.7.ebuild 1206 SHA256 ded6aee660084f7287d090e278d57061a099651d3acdf4e06af38e0d9f8f64fa SHA512 78291387646d965dac8e74d43a1891bd7d6300b927af1a7f2790895ba181cec37f28057c72ca73505e47ed788517ca629826514c738dcecae9343dcc02a6092c WHIRLPOOL bab6b99e7dabe8d6b0130b99cf47a0da44a21997895e464ff8e81e9227400c7230e0980ceeb40991d50c93e53351898a8978038ac4450b12d11bba961045581e
+MISC ChangeLog 3303 SHA256 c16aaca4788bdf803da995eaa5372169d8aad9594eb171aaccbacf104b5f1e20 SHA512 78660fab19ed8f7010ef661dce09ceaba7945f201a477e50a9a4d628ba3e5b1972773326cd80821e52ad9a9517e5d19117f0a4af356638f04048795f4803030b WHIRLPOOL a912e00a856dc5221679be4081df39531f8d169a0a60c8487dbd5b616990ae69c6e55297574b8e6e4d99b7b7784823e327492009988e9ad3154c302af1277c81
+MISC ChangeLog-2015 2710 SHA256 002ef6afb4d2e6c87767564d8e6816aefe78bd4e798d99b8ac1143f1681abd00 SHA512 d0a345af7768590efa01cca4b422e6f0513896a8d7b72dd12bfba2a40d223a94fcb5bdc2b5cc0ce71ba6d7b963b64d370eb5335de0e8b68576d28c767c39919b WHIRLPOOL aaf1a9a412e40744bf94734a55f482de342ca30b780e7b58109395578c4b3951453e5865996f9a27373c67d09d37d75c9c23f1d123d9857cc6c4ba0700bf41bb
+MISC metadata.xml 345 SHA256 6f03e652bd09387ca7fd719691a46adbcfead2a49b5653c7adbac64f577f5bcc SHA512 d830ba46200839ec37d298883c566cc63eafbc45ad6683ef028d4168e0bd4aa245fb13d4c5e84eb5113ee37db85d018f8ef7222da00682524157ff5d29a6da6b WHIRLPOOL 239e76433e601ec9d9a70d6184f4d78518885a5f81d839b94d93138d1f3da42adee445459b967ec766d71d6c4e9cc8cfe60d98b016dcfd012707120025518b2b
diff --git a/games-fps/freedoom/freedoom-0.10.1.ebuild b/games-fps/freedoom/freedoom-0.10.1.ebuild
new file mode 100644
index 000000000000..48aaf46cff14
--- /dev/null
+++ b/games-fps/freedoom/freedoom-0.10.1.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit games
+
+DESCRIPTION="Freedoom - Open Source Doom resources"
+HOMEPAGE="http://www.nongnu.org/freedoom/"
+SRC_URI="https://github.com/freedoom/freedoom/releases/download/v${PV}/freedoom-${PV}.zip
+ https://github.com/freedoom/freedoom/releases/download/v${PV}/freedm-${PV}.zip"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 ~arm x86"
+IUSE=""
+
+DEPEND="app-arch/unzip"
+
+S=${WORKDIR}
+
+src_install() {
+ insinto "${GAMES_DATADIR}"/doom-data/${PN}
+ doins */*.wad
+ dodoc ${P}/CREDITS
+ dohtml ${P}/README.html
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ elog "A Doom engine is required to play the wad"
+ elog "but games-fps/doomsday doesn't count since it doesn't"
+ elog "have the necessary features."
+ echo
+ ewarn "To play freedoom with Doom engines which do not support"
+ ewarn "subdirectories, create symlinks by running the following:"
+ ewarn "(Be careful of overwriting existing wads.)"
+ ewarn
+ ewarn " cd ${GAMES_DATADIR}/doom-data"
+ ewarn " ln -sn freedoom/*.wad ."
+ ewarn
+}
diff --git a/games-fps/freedoom/freedoom-0.7.ebuild b/games-fps/freedoom/freedoom-0.7.ebuild
new file mode 100644
index 000000000000..33ff0b3f0ea3
--- /dev/null
+++ b/games-fps/freedoom/freedoom-0.7.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 games
+
+DESCRIPTION="Freedoom - Open Source Doom resources"
+HOMEPAGE="http://www.nongnu.org/freedoom/"
+SRC_URI="mirror://nongnu/freedoom/freedoom-iwad/shareware/freedoom-demo-${PV}.zip
+ mirror://nongnu/freedoom/freedoom-iwad/freedoom-iwad-${PV}.zip
+ mirror://nongnu/freedoom/freedm/freedm-${PV}.zip"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 arm x86"
+IUSE=""
+
+DEPEND="app-arch/unzip"
+
+S=${WORKDIR}
+
+src_install() {
+ insinto "${GAMES_DATADIR}"/doom-data/${PN}
+ doins */*.wad
+ dodoc freedoom-iwad-${PV}/{CREDITS,ChangeLog,NEWS,README}
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ elog "A Doom engine is required to play the wad"
+ elog "but games-fps/doomsday doesn't count since it doesn't"
+ elog "have the necessary features."
+ echo
+ ewarn "To play freedoom with Doom engines which do not support"
+ ewarn "subdirectories, create symlinks by running the following:"
+ ewarn "(Be careful of overwriting existing wads.)"
+ ewarn
+ ewarn " cd ${GAMES_DATADIR}/doom-data"
+ ewarn " for f in doom{1,2} freedm ; do"
+ ewarn " ln -sn freedoom/\${f}.wad"
+ ewarn " done"
+}
diff --git a/games-fps/freedoom/metadata.xml b/games-fps/freedoom/metadata.xml
new file mode 100644
index 000000000000..700dad658c01
--- /dev/null
+++ b/games-fps/freedoom/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">freedoom/freedoom</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-fps/glxquake-bin/Manifest b/games-fps/glxquake-bin/Manifest
new file mode 100644
index 000000000000..7b0fa283ef51
--- /dev/null
+++ b/games-fps/glxquake-bin/Manifest
@@ -0,0 +1,5 @@
+DIST glxquake.tar.gz 164094 SHA256 975d8a59fa280dab7528d5afe3cdab217e0c09423f407dbe609478efb871f9d5 SHA512 0adb92dbdc8b3130bef7e46ad95a7efa6ddb3723e3e8891cacc3c2e46bccacb6235f688e12b8a1f35099615b6683b1409b2e380fd4278e0827897b2e0c8f3090 WHIRLPOOL 8c78befb5d03ce3c180dc4c9031c69be23c0f87c566a35892683454c101c4631feb74fc63538c16b4eba027fbe26dbbd89e5f13dbbb9a86fd597c9daac6bd1b8
+EBUILD glxquake-bin-0-r2.ebuild 1154 SHA256 500f14451895fd00ab85a662606bad5cfaf1b3a595d86a126cf3467999e23a5e SHA512 1cf70a31c64566006a956a8087aace6ac5563de66dcb60b0a6319e7f8581a220790377d8d57c7e83b56787f99ee0de1367f392d5ce35b20e5564ad71d945b2a0 WHIRLPOOL bdf93cdbf8c711dbe10bb3960abcf5e9607a077dbf496baab80fb572aab4f0987cc1fea6fbd77d9bc0f9ea2294ee157ddbe24d62408178fdfc7c447da6f1901e
+MISC ChangeLog 2441 SHA256 5e942719b46f217f3dbb302b7c4c62a0508fb8e28c47cbf9a04af3b174d0143e SHA512 314b94f93a55f47bef4f2b4ec38183f1000db4e92cc18bd108257213399c4d610c78dccff9653b217f489519567ade26b5ae3845080c637dea36af86bd1cf3f6 WHIRLPOOL 3869289405d67f1161a03579677c22cc6d346ef1c2cd6690949a80dbb3ab172cb485271e552a9d7f39b2c148eb79b72faf589069e2a98532dafa922f85f0b5d5
+MISC ChangeLog-2015 2057 SHA256 ed84cafa3625fc811c0733e3c3039b0d8a215f5aad00a73ec1d6c123b247d9da SHA512 7a72fab2f6db3fe004c8c61a0ecf8a6dac0ca568c3e7a21dc75f7b147e4e50113b5a00ba63759315b50dc8341eea3a2dfe635a2c0d10593c4d3ca1204d5d2cef WHIRLPOOL 93366eeb87eae9b608512af6ae4754c69582f0251795bb54a7cbfb5dae1e2f5cfd4d362d3a68c2f9d296829c9a9229917567c801030b09bd6355e0c5a1786b45
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-fps/glxquake-bin/glxquake-bin-0-r2.ebuild b/games-fps/glxquake-bin/glxquake-bin-0-r2.ebuild
new file mode 100644
index 000000000000..5b7ec6390df8
--- /dev/null
+++ b/games-fps/glxquake-bin/glxquake-bin-0-r2.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit games
+
+DESCRIPTION="a binary that works with every 3D-graphics-card that supports the glx X-extension"
+HOMEPAGE="http://mfcn.ilo.de/glxquake/"
+SRC_URI="http://www.wh-hms.uni-ulm.de/~mfcn/shared/glxquake/glxquake.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="-* amd64 x86"
+RESTRICT="strip"
+IUSE=""
+
+RDEPEND="sys-libs/glibc
+ amd64? ( sys-libs/glibc[multilib] )
+ virtual/opengl[abi_x86_32(-)]
+ x11-libs/libX11[abi_x86_32(-)]
+ x11-libs/libXext[abi_x86_32(-)]
+ x11-libs/libXxf86vm[abi_x86_32(-)]
+ x11-libs/libXxf86dga[abi_x86_32(-)]"
+
+S=${WORKDIR}/glxquake
+
+QA_PREBUILT="${GAMES_BINDIR:1}/glquake"
+
+src_install() {
+ dogamesbin glquake
+ dodoc README
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ elog "To play with it, create a subdirectory called id1"
+ elog "Copy the pak0.pak, and eventually pak1.pak into this subdirectory"
+ elog "You can eventually get pak0.pak emerging games-fps/quake1-demodata"
+ elog "The file pak0.pak will be on the ${GAMES_DATADIR}/quake1/demo/"
+ elog "You can now run glxquake by executing glquake"
+}
diff --git a/games-fps/glxquake-bin/metadata.xml b/games-fps/glxquake-bin/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-fps/glxquake-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-fps/industri/Manifest b/games-fps/industri/Manifest
new file mode 100644
index 000000000000..ce4559d49dee
--- /dev/null
+++ b/games-fps/industri/Manifest
@@ -0,0 +1,10 @@
+AUX industri-1.01-exec-stack.patch 642 SHA256 d04cbf31f16929b27040ea9f4e599db2ea4e14b696708034ae523ff406de011c SHA512 c23b38be46b3b692f7b04415b2893c9884d76e627910f9e93579c286e2142fd36bff0c335beffd541226920ce22dfbdb6ffc51537b42afe6d660466905c7be3e WHIRLPOOL 520532b61452d2ab910fc7a43bd485fa46b920a38abc1f1368be877182a2b4e0ab6e29d9bb4528a535ad20a88f2353cd14c525f93c48d3e2930ce216cd88c936
+AUX industri-1.01-glext.patch 983 SHA256 d7d877c58d4a77db421e21a12447ae38b208cfa201663a91355515e48f9843d9 SHA512 0d17e3c54fdce139a25b9c51892cf7d9c9b04b0fe2d4f543cabdce141cfe321892dbc630f40ba3e75ffb1612f6c1df5d4108f95d3a06bce3b7f49601cbb2282a WHIRLPOOL 76fa339f233afb70e58e2449649234ccfd12991e48a1266ea07a4d70f158c8bdb423f2169c961bc2aa1ac58104ecb5d82f402d0b1df94755081b1635e64693b0
+AUX industri-1.01-ldflags.patch 840 SHA256 a637626ff4d60619d9dc4751af0ce35dcecbc64c68779efc7e826b76f2a2988c SHA512 fc45f5edb2dfabf8815186c66cf071f119cb0c83cd785fa3be083bbcb1be11c1c898f73f7b1b3d3af83c95daddbc0fe226cfaa0ed9c0b9776d718a10562b496e WHIRLPOOL ae0eee8b55a30802f56f0f99b33e5b053feaae1bd3d290a2993a9f0fd6cfa734733fd7954989160418c6c694d48a25ad2bf23d987b28626646594084f9be6eef
+AUX industri.pretty 42 SHA256 127a00f5ce37b1502a09d049d9ad32e468c398ba0a98fbf66142d1408c382ba3 SHA512 4cd0732b3a9cc3a48a759b68b03c249c854ce90234984ca770f8e3fc61e7bd01651012d64320d9114eb4567ccab254b183af15bdce51dee25a71c35613013df1 WHIRLPOOL 26d52e207a2bc52febf5c8b722e97da7d287492f97025150e4e1db5ca0e84d76d4aa947d57ecf8eb978ae7d67ce905ba428f264d2dc14364f67275d9352c4483
+DIST industri-1.00.zip 30339989 SHA256 6c0761c6eacb501fffe37f9be4b9e2ae62074f8714c4ef36251241aba6b90652 SHA512 e0eea9d881819fbcc039d91ed613bb4603e76302c892ed315bf1535b023173b742f4b881dc345f9eaca255a5531e3afc5584c2da948a9c6127c9a815a6bfcae9 WHIRLPOOL ccdff4e5323bfb0cc94fe8809c7170b2b5f2153084536709114f39ddc4f2b3246a22b9022da3ac9630332987692711304e65c56eeba4632cbfa52f68c26824a8
+DIST industri_BIN-1.01-src.tar.gz 1086838 SHA256 b702b819c0b99cc9a7f8e9ec89c9a58812212826f592e3594904b4cd3cdd09f8 SHA512 023dfcc72faa685a042afcf66b21e040b21c881f3d936af9e4da3e7836320a262c014296ab6fa564d93038c34a106f70f7cc8dd760c6b79e11689df92bff3625 WHIRLPOOL a02883991ceb2980ea1f509202987dd9c3c0d674c03b4d687d0ab3780b0ec58aabf60684fd9b63004b8d0683fe849b06ec2d81a1aa59753041350b89dbd74894
+EBUILD industri-1.01.ebuild 1906 SHA256 73f625c63e255a408d31c74d0ba24099fd2151267335de1294f92d0dac70d385 SHA512 56527881b478f50b7102c0794e136699cdf7d1c13c9e9cd18f0d1f68ed81990eff46bddb2cdbc462b4adc0ddd143f8f0f4b23c3aee75ecfd63331cd9dfac5712 WHIRLPOOL d9226b0ff8fd7ae75823b05cba5b918669a1f57272633430d527f4ab97974b40d6ed7065df22c161117867b22517b964ccdc96c1d53f01db56b377008a8e0302
+MISC ChangeLog 3016 SHA256 d86280042e94b1aaa9ce895142e6bf7650cfbc91e2cb67d4e52e8347806fa560 SHA512 f61e08c584a57dc52c63ba4a9de9280c2450789db8b13944283588d55c408ab477d57ed21a460f5372f25a277e1d52b6d851761c9bddf8e6c998d80a0a3c4c38 WHIRLPOOL a0ba2304daea77a2e48ef8acb3219f51d768521326e06042670fda9af5853e91fe2006bc7f6d00bf7ff6f0e9e1494eda7ce15803181af19f6af3afdd22d388ca
+MISC ChangeLog-2015 1764 SHA256 91b8a3e9e94bfa43053ff687686e0fe7f3256d7b025728e89ee6362df7fa0d7f SHA512 0e8cf9d55c35765c6078d5d89689889c84ab0a33865dc2b595e170da1947f483e9a6f50ea411194b158fb466e877d3c04bde57ec616001cb50a981ed52b5ca06 WHIRLPOOL 5742f3bd93bff3a144a6515ba7e8effe7fe99f532a6b78347a81782873ef4bea81619766e7ddf81c354bed8db005f797192c2e0998624eb592016d89c7b05d26
+MISC metadata.xml 753 SHA256 5b0cdf5b998b1ccca847cac4c6efc167f7d12b9e386d2ab452de3e1a679fee8d SHA512 fe652528480dd111ae034805ffe48a75682fef68562e8ad55218f0b41b3ab05fd99d1b33b0959a09ed3fad97fe66d8171efd8e79f5472956aa42ac3263e6f9b0 WHIRLPOOL 56094ca7a7467efe2b31a4dde900e2cf0c83d37c861fc4f9c3363e3dd644663a4e05079c775f5e62318a6d5be8a6ca60a06a5979f5e18b6c9f7976a04628e585
diff --git a/games-fps/industri/files/industri-1.01-exec-stack.patch b/games-fps/industri/files/industri-1.01-exec-stack.patch
new file mode 100644
index 000000000000..bc74e951fe6a
--- /dev/null
+++ b/games-fps/industri/files/industri-1.01-exec-stack.patch
@@ -0,0 +1,36 @@
+--- math.s
++++ math.s
+@@ -416,3 +416,6 @@
+ call C(BOPS_Error)
+
+ #endif // id386
++#if defined(__linux__) && defined(__ELF__)
++.section .note.GNU-stack,"",%progbits
++#endif
+--- snd_mixa.s
++++ snd_mixa.s
+@@ -216,3 +216,6 @@
+
+ #endif // id386
+
++#if defined(__linux__) && defined(__ELF__)
++.section .note.GNU-stack,"",%progbits
++#endif
+--- sys_dosa.s
++++ sys_dosa.s
+@@ -93,3 +93,6 @@
+
+ ret
+
++#if defined(__linux__) && defined(__ELF__)
++.section .note.GNU-stack,"",%progbits
++#endif
+--- worlda.s
++++ worlda.s
+@@ -142,3 +142,6 @@
+
+ #endif // id386
+
++#if defined(__linux__) && defined(__ELF__)
++.section .note.GNU-stack,"",%progbits
++#endif
diff --git a/games-fps/industri/files/industri-1.01-glext.patch b/games-fps/industri/files/industri-1.01-glext.patch
new file mode 100644
index 000000000000..8a5042e431f2
--- /dev/null
+++ b/games-fps/industri/files/industri-1.01-glext.patch
@@ -0,0 +1,18 @@
+--- glquake.h.old 2011-04-29 12:36:53.000000000 +0200
++++ glquake.h 2011-04-29 12:44:39.000000000 +0200
+@@ -977,6 +977,7 @@
+ #define GL_MAP2_VERTEX_ATTRIB15_4_NV 0x867F
+
+ /* NV_vertex_program */
++#ifndef GL_NV_vertex_program
+ typedef GLboolean (APIENTRY * PFNGLAREPROGRAMSRESIDENTNVPROC) (GLsizei n, const GLuint *programs, GLboolean *residences);
+ typedef void (APIENTRY * PFNGLBINDPROGRAMNVPROC) (GLenum target, GLuint id);
+ typedef void (APIENTRY * PFNGLDELETEPROGRAMSNVPROC) (GLsizei n, const GLuint *programs);
+@@ -1040,6 +1041,7 @@
+ typedef void (APIENTRY * PFNGLVERTEXATTRIBS4FVNVPROC) (GLuint index, GLsizei count, const GLfloat *v);
+ typedef void (APIENTRY * PFNGLVERTEXATTRIBS4SVNVPROC) (GLuint index, GLsizei count, const GLshort *v);
+ typedef void (APIENTRY * PFNGLVERTEXATTRIBS4UBVNVPROC) (GLuint index, GLsizei count, const GLubyte *v);
++#endif
+
+ extern PFNGLAREPROGRAMSRESIDENTNVPROC qglAreProgramsResidentNV ;
+ extern PFNGLBINDPROGRAMNVPROC qglBindProgramNV ;
diff --git a/games-fps/industri/files/industri-1.01-ldflags.patch b/games-fps/industri/files/industri-1.01-ldflags.patch
new file mode 100644
index 000000000000..987d464f6b48
--- /dev/null
+++ b/games-fps/industri/files/industri-1.01-ldflags.patch
@@ -0,0 +1,20 @@
+--- linux/Makefile.old 2010-10-13 11:37:27.000000000 +0200
++++ linux/Makefile 2010-10-13 11:38:20.000000000 +0200
+@@ -42,7 +42,7 @@
+ RELEASE_CFLAGS = $(BASE_CFLAGS) -O2 -march=pentium4 -pipe -msse -mfpmath=sse \
+ -fomit-frame-pointer -fexpensive-optimizations
+ DEBUG_CFLAGS = $(BASE_CFLAGS) -g
+-LDFLAGS = -lm -ldl $(X11_LIBS) $(OPENGL_LIBS) $(PNG_LIBS) $(OPENAL_LIBS)
++LDLIBS = -lm -ldl $(X11_LIBS) $(OPENGL_LIBS) $(PNG_LIBS) $(OPENAL_LIBS)
+
+ DO_GL_CC = $(CC) $(CFLAGS) -o $@ -c $<
+ DO_GL_AS = $(CC) $(CFLAGS) -DELF -x assembler-with-cpp -o $@ -c $<
+@@ -156,7 +156,7 @@
+
+
+ $(BUILDDIR)/bin/industri.run : $(GLQUAKE_OBJS)
+- $(CC) $(CFLAGS) -o $@ $(GLQUAKE_OBJS) $(LDFLAGS)
++ $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $(GLQUAKE_OBJS) $(LDLIBS)
+
+ $(BUILDDIR)/glquake/cl_demo.o : $(MOUNT_DIR)/cl_demo.c
+ $(DO_GL_CC)
diff --git a/games-fps/industri/files/industri.pretty b/games-fps/industri/files/industri.pretty
new file mode 100644
index 000000000000..b328c803b9df
--- /dev/null
+++ b/games-fps/industri/files/industri.pretty
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec industri +sh_glares 1 "$@"
diff --git a/games-fps/industri/industri-1.01.ebuild b/games-fps/industri/industri-1.01.ebuild
new file mode 100644
index 000000000000..afffb89d9410
--- /dev/null
+++ b/games-fps/industri/industri-1.01.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils toolchain-funcs games
+
+DESCRIPTION="Quake/Tenebrae based, single player game"
+HOMEPAGE="http://industri.sourceforge.net/"
+SRC_URI="mirror://sourceforge/industri/industri_BIN-${PV}-src.tar.gz
+ mirror://sourceforge/industri/industri-1.00.zip"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86"
+IUSE="cdinstall"
+
+RDEPEND="virtual/opengl
+ x11-libs/libXxf86dga
+ x11-libs/libXext
+ x11-libs/libX11
+ x11-libs/libXxf86vm
+ media-libs/libpng:0
+ cdinstall? ( games-fps/quake1-data )"
+DEPEND="${RDEPEND}
+ x11-proto/xf86dgaproto
+ x11-proto/xextproto
+ x11-proto/xf86vidmodeproto
+ x11-proto/xproto
+ app-arch/unzip"
+
+S=${WORKDIR}/industri_BIN
+
+src_prepare() {
+ mv linux/Makefile{.i386linux,}
+ sed -i -e "s:-mpentiumpro.*:${CFLAGS} \\\\:" linux/Makefile || die
+
+ # Remove duplicated typedefs #71841
+ for typ in PFNGLFLUSHVERTEXARRAYRANGEAPPLEPROC PFNGLVERTEXARRAYRANGEAPPLEPROC ; do
+ if echo '#include <GL/gl.h>' | $(tc-getCC) -E - 2>/dev/null | grep -sq ${typ} ; then
+ sed -i \
+ -e "/^typedef.*${typ}/d" \
+ glquake.h || die
+ fi
+ done
+
+ sed -i \
+ -e 's:png_set_gray_1_2_4_to_8:png_set_expand_gray_1_2_4_to_8:g' \
+ gl_warp.c || die
+
+ epatch "${FILESDIR}"/${P}-exec-stack.patch \
+ "${FILESDIR}"/${P}-ldflags.patch \
+ "${FILESDIR}"/${P}-glext.patch
+}
+
+src_compile() {
+ emake \
+ -C linux \
+ MASTER_DIR="${GAMES_DATADIR}"/quake1 \
+ build_release
+}
+
+src_install() {
+ newgamesbin linux/release*/bin/industri.run industri
+ dogamesbin "${FILESDIR}"/industri.pretty
+ insinto /usr/share/icons
+ doins industri.ico quake.ico
+ dodoc linux/README
+ cd "${WORKDIR}"/${PN}
+ dodoc *.txt
+ insinto "${GAMES_DATADIR}"/quake1/${PN}
+ doins *.pak *.cfg
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ if ! use cdinstall ; then
+ elog "You need to copy pak0.pak to ${GAMES_DATADIR}/quake1 to play."
+ fi
+}
diff --git a/games-fps/industri/metadata.xml b/games-fps/industri/metadata.xml
new file mode 100644
index 000000000000..4ed41644ffca
--- /dev/null
+++ b/games-fps/industri/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="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <longdescription>
+industri is a Quake based, single player game using a modified version of the
+Tenebrae 1.x engine. The Tenebrae engine is an Open Source (GNU GPL) modification
+of Quake that brings per-pixel lighting, stencil shadows, hi-res textures,
+bumpmap and normalmaps to the gaming experince.
+
+The focus of industri is a rich single-player game and engine. There is no
+multi-player at all.
+</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">industri</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-fps/legends/Manifest b/games-fps/legends/Manifest
new file mode 100644
index 000000000000..b2cbcdfc47c1
--- /dev/null
+++ b/games-fps/legends/Manifest
@@ -0,0 +1,7 @@
+DIST legends.png 5092 SHA256 f4ac0db949c2f0a373f331a7a7528ef17c674a226c2366a5a443b5b5a44b6ce2 SHA512 7b9f336335dc69e2fbc24286b2076a228739ab4abf1b77d977321d9dccfb453897bdbd51388e3ed54369ba39b7faa92e458700928d8bf5ccc0f3639f8737489a WHIRLPOOL 19fc961afd861b7921847dfa9e7f7159227e37ff8a50c2edae9770d1fe5967652714ab94d549551349d91326ba3da94c766c715b3182926f33a6a25029fbe1b7
+DIST legends_linux-0.4.1.43.run 123964866 SHA256 cd4852b52f6d17afb22e1ee3592af450da712d060d8315faad23cfc7cf570ea4 SHA512 17b1caa3aa6124f2389e2220ced82c41c4523897bde2f8211d219dc9ef8620583c4ae68999b0761155e3d45cb1ad9679cd65ba50c8440dd1848ef3b1a7a590d2 WHIRLPOOL 2d51695cd5fac8422b5a14d7e836f7b3abbf9358e2e7349da1a3750d4a63c961f5b6d54f38331b9e4710f95baf8e9e4f52aef122398e25f979527e52ffef1fff
+EBUILD legends-0.4.1.43-r1.ebuild 1917 SHA256 38f13546b1b3e4141ef0ce1d59c26fadf7c541c55e725204d33c925a0a974314 SHA512 08d84baf943e93947cb47d1f57e128952401197caf8b73dbfa7f25d2872146050081d7502e1e821c6f5ed65530d5d258ec8bebb65672288b9f9fb0e947724c45 WHIRLPOOL 3b45a30316f71100685d9255a6afad82f9c3e6953ef7f718bf839df0ee264c0afdf11f988d2b18e03d48affdd9c543c39556f2c2345a05d1798a4b6d747d620b
+EBUILD legends-0.4.1.43-r2.ebuild 1856 SHA256 22d2ed8a09d48ad60c409bc95650dd9939242d78d37a8eb9d13712c48b34ad44 SHA512 f0c2de1529d004821b6b308553b1845908ce04e6ae85c2da00f788b935e91cde46bceeb22585064f3a1bd7c7238082f2eb9bb7a14d6324694774c175c6df28e6 WHIRLPOOL 7836c3bbb7b80e817c8a0d708fdd028aca996e458c83f06fc27d9055f96323f266cdfbd11a670e6e7d0542315b76af6c58b3ed063f8fadfe1f9a83f3f6f74da3
+MISC ChangeLog 2476 SHA256 4dd4bc2e92730b1607184496aa74012c02262f4ce94c8247bd8e08e4b961238d SHA512 6e817cb73d3897b6c441d533590f4dfff4ca83d596cff7712a4c5155b477cda1b250d2c26c376453eadbabd0fe27fc66e46f1b88d832d364f1389e022fb8d728 WHIRLPOOL 19036eb4e6a3624c95a7759efe2fe2377ddc1c508fc79844155f564eefd1d4a21f33293ae47fc6ec412a6d97de9ff8540e6e10fa364db8602de3c009ad95ebbf
+MISC ChangeLog-2015 4771 SHA256 a9f623f3e38fb8f14ffc0b90671855dcd3d80c5c0f901df1121d95249b796f5e SHA512 b0d4ce3d52bf0ab644850caaa1673d32086a88694e5e539f4ee9e645316ee5f7b71a4038fca875a07242502211c839fa9d3a0adbef0b9b46104229bf8f1a94f5 WHIRLPOOL f30d584c71eaabcd6e7e78aa1936958adba1f9f3da77f7db5fbeea0501657b3b93acd1b301955296446d12a3f6a3aa2c5cf7a80475319edc9ece7ba079ea5c0c
+MISC metadata.xml 1427 SHA256 3777b9e66ccaef45d47ab44b273ed463020101a0a1478a36ddcf91b9e067d695 SHA512 987ace71750e486c141c1010d1699194c656fda09a4952b51b31ad8f526de8f77372e57632d1636034e6de080871a4fc3140b1e2a49e98b3758d907a0eb3bba3 WHIRLPOOL d3fc6c0b7ffebe78f4e1c67d8882291ac23e5b60d29727ad057d898be955f82563311ed4f768c1bde616bebc434c31bbea804426d8e49f2aea1cec3389db7e90
diff --git a/games-fps/legends/legends-0.4.1.43-r1.ebuild b/games-fps/legends/legends-0.4.1.43-r1.ebuild
new file mode 100644
index 000000000000..2cff4a3ec2fa
--- /dev/null
+++ b/games-fps/legends/legends-0.4.1.43-r1.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 unpacker games
+
+MY_P=${PN}_linux-${PV}
+dir=${GAMES_PREFIX_OPT}/${PN}
+
+DESCRIPTION="Fast-paced first-person-shooter online multiplayer game, similar to Tribes"
+HOMEPAGE="http://legendsthegame.net/"
+SRC_URI="http://legendsthegame.net/files/${MY_P}.run
+ mirror://gentoo/${PN}.png"
+
+LICENSE="Legends LGPL-2.1+"
+SLOT="0"
+KEYWORDS="-* amd64 x86"
+IUSE="+dedicated"
+RESTRICT="strip"
+
+QA_TEXTRELS="${dir:1}/libSDL-1.3.so.0"
+QA_FLAGS_IGNORED="${dir:1}/libSDL-1.3.so.0 ${dir:1}/LinLegends ${dir:1}/lindedicated"
+
+DEPEND=""
+RDEPEND="sys-libs/glibc
+ amd64? ( sys-libs/glibc[multilib] )
+ media-fonts/font-adobe-75dpi
+ media-libs/libsdl[video,sound,opengl,abi_x86_32(-)]
+ x11-libs/libX11[abi_x86_32(-)]
+ x11-libs/libXext[abi_x86_32(-)]
+ media-libs/libogg[abi_x86_32(-)]
+ media-libs/libvorbis[abi_x86_32(-)]
+ media-libs/openal[abi_x86_32(-)]"
+
+S=${WORKDIR}
+
+src_unpack() {
+ unpack_makeself ${MY_P}.run
+ cd "${S}"
+
+ # keep libSDL-1.3.so because legends requires it as of 0.4.0, and
+ # 1.2.6 is highest in portage
+ # rm libSDL-*.so*
+ rm runlegends libSDL-1.2.so.0 libopenal.so libogg.so.0 libvorbis.so.0 *.DLL
+}
+
+src_install() {
+ insinto "${dir}"
+ doins -r * || die "doins * failed"
+
+ rm "${D}/${dir}/"/{lindedicated,LinLegends,*.so.0}
+ exeinto "${dir}"
+ doexe lindedicated LinLegends *.so.0 || die "doexe failed"
+
+ games_make_wrapper ${PN} "./LinLegends" "${dir}" "${dir}"
+ if use dedicated ; then
+ games_make_wrapper ${PN}-ded "./lindedicated" "${dir}" "${dir}"
+ fi
+
+ doicon "${DISTDIR}"/${PN}.png || die "doicon failed"
+ make_desktop_entry legends "Legends"
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+
+ ewarn "Version ${PV} of ${PN} may give problems if there are"
+ ewarn "config-files from earlier versions. Removing the ~/.legends dir"
+ ewarn "and restarting will solve this."
+ echo
+}
diff --git a/games-fps/legends/legends-0.4.1.43-r2.ebuild b/games-fps/legends/legends-0.4.1.43-r2.ebuild
new file mode 100644
index 000000000000..0412178e3f4b
--- /dev/null
+++ b/games-fps/legends/legends-0.4.1.43-r2.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 unpacker
+
+MY_P=${PN}_linux-${PV}
+dir=/opt/${PN}
+
+DESCRIPTION="Fast-paced first-person-shooter online multiplayer game, similar to Tribes"
+HOMEPAGE="http://legendsthegame.net/"
+SRC_URI="http://legendsthegame.net/files/${MY_P}.run
+ mirror://gentoo/${PN}.png"
+
+LICENSE="Legends LGPL-2.1+"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE="+dedicated"
+RESTRICT="strip"
+
+QA_TEXTRELS="${dir:1}/libSDL-1.3.so.0"
+QA_FLAGS_IGNORED="${dir:1}/libSDL-1.3.so.0 ${dir:1}/LinLegends ${dir:1}/lindedicated"
+
+DEPEND=""
+RDEPEND="sys-libs/glibc
+ amd64? ( sys-libs/glibc[multilib] )
+ media-fonts/font-adobe-75dpi
+ media-libs/libsdl[video,sound,opengl,abi_x86_32(-)]
+ x11-libs/libX11[abi_x86_32(-)]
+ x11-libs/libXext[abi_x86_32(-)]
+ media-libs/libogg[abi_x86_32(-)]
+ media-libs/libvorbis[abi_x86_32(-)]
+ media-libs/openal[abi_x86_32(-)]"
+
+S=${WORKDIR}
+
+src_unpack() {
+ unpack_makeself ${MY_P}.run
+ cd "${S}"
+
+ # keep libSDL-1.3.so because legends requires it as of 0.4.0, and
+ # 1.2.6 is highest in portage
+ # rm libSDL-*.so*
+ rm runlegends libSDL-1.2.so.0 libopenal.so libogg.so.0 libvorbis.so.0 *.DLL || die
+}
+
+src_install() {
+ insinto "${dir}"
+ doins -r * || die "doins * failed"
+
+ rm "${D}/${dir}/"/{lindedicated,LinLegends,*.so.0}
+ exeinto "${dir}"
+ doexe lindedicated LinLegends *.so.0 || die "doexe failed"
+
+ make_wrapper ${PN} "./LinLegends" "${dir}" "${dir}"
+ if use dedicated ; then
+ make_wrapper ${PN}-ded "./lindedicated" "${dir}" "${dir}"
+ fi
+
+ doicon "${DISTDIR}"/${PN}.png || die "doicon failed"
+ make_desktop_entry legends "Legends"
+}
+
+pkg_postinst() {
+ ewarn "Version ${PV} of ${PN} may give problems if there are"
+ ewarn "config-files from earlier versions. Removing the ~/.legends dir"
+ ewarn "and restarting will solve this."
+ echo
+}
diff --git a/games-fps/legends/metadata.xml b/games-fps/legends/metadata.xml
new file mode 100644
index 000000000000..f1ba53514225
--- /dev/null
+++ b/games-fps/legends/metadata.xml
@@ -0,0 +1,31 @@
+<?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>
+Legends is a fast-paced first-person-perspective online multiplayer
+game. The game is designed to take advantage of the beautiful
+environments available from the Torque engine it is based on while still
+offering the breakneck pacing and variety of styles available from such
+classics as Quake and Tribes.
+
+Gameplay is not the strafe-strafe-jump-strafe-shoot-strafe-run-like-hell
+style a lot of games espouse; the addition of a jetpack adds a third
+dimension of mobility that makes skill, forethought, and restraint
+necessities to winning.
+
+Team sizes are going to be ideal between 10 and 15 on each side, and the
+network code will allow anyone with any bandwidth to play relatively
+smoothly. Game type offerings will range from the classic Capture the
+Flag to our own new type, affectionately called "Knockout".
+
+Plenty of maps will be provided by us, but the beauty of this game is
+its customization possibilities. Mission creation has never been easier,
+with a stable, full-featured editor integrated into the game engine
+itself. Skins, models, and effects can all be modified by the end-user
+with commonly available tools.
+</longdescription>
+</pkgmetadata>
diff --git a/games-fps/lsdldoom/Manifest b/games-fps/lsdldoom/Manifest
new file mode 100644
index 000000000000..6521da93ae7a
--- /dev/null
+++ b/games-fps/lsdldoom/Manifest
@@ -0,0 +1,6 @@
+AUX lsdldoom-1.5-paths.patch 2315 SHA256 1802d087e060618d9b99ac2d23a501b831631c90d20e6950710e286e7859fcd6 SHA512 c1222ed33816ddd4aa9101ca55a8d70f9913320736f6b50a80e95ff6ee721fd794509aeb2196e8480ea469d7ed45686402f32df6592fa75bf4c55d296592564d WHIRLPOOL ab03f210d8a425953836e553004249789e864b400c2910341d9031c824eeeafdfb44ad631fda2a6fd24c90dc0dd03fd2b3df80fdd17c959e6631ec1199157b40
+DIST lsdldoom-1.5.tar.gz 1227060 SHA256 2e780775a1f31e3ee30e3d02b7f6b35409ec986fbfec07139b19ab48bdcf3ed8 SHA512 49d68040c312e8a27b452eb54acb1a4197dee157678de9e902cc2f17a38e621c5980eadf9c78e1945b9d5fb863dd1bdbdcd08c1c5e50971ee73857b7b3e47e33 WHIRLPOOL c36dfef22ee496652c5fd92d3a47b69e10eafa8c621984968881579e1c9e3db8bc9840e86bbb1e8c790d0f242c318787729b21627e431b3b8761a7ca269d653f
+EBUILD lsdldoom-1.5.ebuild 812 SHA256 9aaf4a63e2056cc7c2802531a6ecd732c7d9d78f0d22c609ede572d27b38b8d4 SHA512 da1076bf23a700ceb75c7462e0de7649f37aaea8ecbb2b3b0757641e6e1688aefe0425ce5c3e7d7e777ce26f5fc1df706e982d7ed67e8f3e524efee6551a5a7c WHIRLPOOL c7d6cddbcb3e14a8ad8c1bef2302cba37f1b6e2c22ee554e4658b440c6a96b1bed5b75be5c22d68e3d0c1288dfff5eb160eadc0349f6b8d5d60313319f0f063a
+MISC ChangeLog 3486 SHA256 e1d6bb98c9ba3d2323cd82b3d45b8138a9c7cb30ff941e04ef2934148fe75496 SHA512 a875b8e4a702d1f5c0a2f5e341ff20bfe885a29aac8dc37be88e8e8037fe374f101df1f166673f7469082619a72f9eb0dc4a02932de841b1e64e7a7bd5269cbc WHIRLPOOL 696869d21976440920fb419a650a4a7716b24860075ed0d319f80ba8c52e7637100b4875ffdc63568d1702758a5d4cfec1fa5861ff75f688b681c47c2232d7dc
+MISC ChangeLog-2015 2915 SHA256 d089c36d5b17e2666d3238993f7cca67dab9876b2a88dfc90b17d6752b8abcff SHA512 6bf9895a6ec98f5517b8444d046facde84c7845df46ab4bb8c826532df3f2375daecf34979fdbe8511dc27c591adf61b7f0016524211e918942b268d476484a4 WHIRLPOOL 43cf0622556518f1bc067b64acb86e029a756f38147e8711a18599654201eb6c2077799de421436c696e1429a7194abb03a7c354af39da171b433d62936ea50d
+MISC metadata.xml 486 SHA256 8316dbfed18d058ff83ff1bcf4bfae8e1563f4a7b8affceeb441ff25b16348be SHA512 7f58f30b49baa935063333338a91229452f799321774779ac67d965b5ccbeb40825fa97cffe2932d625219142767184e516159343b84f598559673f30ed2c1a1 WHIRLPOOL ec0fcd22c0f55b18b190d5a5bc7d157bd3ead44993c57290dc91c095eb43772771a09a9e754a380281f4e320ec2ab6c6d44f490dba9a50254f5fefa5dd8f1610
diff --git a/games-fps/lsdldoom/files/lsdldoom-1.5-paths.patch b/games-fps/lsdldoom/files/lsdldoom-1.5-paths.patch
new file mode 100644
index 000000000000..686e3450a620
--- /dev/null
+++ b/games-fps/lsdldoom/files/lsdldoom-1.5-paths.patch
@@ -0,0 +1,64 @@
+diff -urN lsdldoom-1.5.orig//Makefile.in lsdldoom-1.5/Makefile.in
+--- lsdldoom-1.5.orig//Makefile.in 2011-10-23 22:17:01.582705152 -0700
++++ lsdldoom-1.5/Makefile.in 2011-10-23 22:18:00.846237242 -0700
+@@ -209,7 +209,7 @@
+ builddir = @builddir@
+ datadir = @datadir@
+ datarootdir = @datarootdir@
+-docdir = $(prefix)/share/doc/@PACKAGE@
++docdir = /usr/share/doc/$(PF)
+ dvidir = @dvidir@
+ exec_prefix = @exec_prefix@
+ host = @host@
+diff -urN lsdldoom-1.5.orig//configure lsdldoom-1.5/configure
+--- lsdldoom-1.5.orig//configure 2011-10-23 22:17:01.544700322 -0700
++++ lsdldoom-1.5/configure 2011-10-23 22:18:00.829235080 -0700
+@@ -5689,10 +5689,10 @@
+ then exec_prefix=$prefix
+ fi
+
+-gamesdir=$prefix/games
++gamesdir=$bindir
+ exp_gamesdir=`eval "echo $gamesdir"`
+ exp_datadir=`eval "echo $datadir"`
+-waddir=$exp_datadir/games/doom
++waddir=$exp_datadir/doom-data
+ cat >>confdefs.h <<_ACEOF
+ #define DOOMWADDIR "$waddir"
+ _ACEOF
+diff -urN lsdldoom-1.5.orig//data/Makefile.in lsdldoom-1.5/data/Makefile.in
+--- lsdldoom-1.5.orig//data/Makefile.in 2011-10-23 22:17:01.634711762 -0700
++++ lsdldoom-1.5/data/Makefile.in 2011-10-23 22:18:00.844236988 -0700
+@@ -188,7 +188,7 @@
+ top_build_prefix = @top_build_prefix@
+ top_builddir = @top_builddir@
+ top_srcdir = @top_srcdir@
+-waddir = $(datadir)/games/doom
++waddir = $(datadir)/doom-data
+ wad_DATA = boomlump.wad
+ EXTRA_DIST = boomlump.wad
+ all: all-am
+diff -urN lsdldoom-1.5.orig//doc/Makefile.in lsdldoom-1.5/doc/Makefile.in
+--- lsdldoom-1.5.orig//doc/Makefile.in 2011-10-23 22:17:00.348548297 -0700
++++ lsdldoom-1.5/doc/Makefile.in 2011-10-23 22:18:00.840236480 -0700
+@@ -158,7 +158,7 @@
+ builddir = @builddir@
+ datadir = @datadir@
+ datarootdir = @datarootdir@
+-docdir = $(prefix)/share/doc/@PACKAGE@
++docdir = /usr/share/doc/$(PF)
+ dvidir = @dvidir@
+ exec_prefix = @exec_prefix@
+ host = @host@
+diff -urN lsdldoom-1.5.orig//src/Makefile.in lsdldoom-1.5/src/Makefile.in
+--- lsdldoom-1.5.orig//src/Makefile.in 2011-10-23 22:17:01.041636386 -0700
++++ lsdldoom-1.5/src/Makefile.in 2011-10-23 22:18:00.835235845 -0700
+@@ -242,7 +242,7 @@
+ # Process this file with automake to produce Makefile.in
+ #
+ #
+-gamesdir = $(prefix)/games
++gamesdir = $(bindir)
+ games_PROGRAMS = @BUILD_SDLDOOM@ @BUILD_SERVER@
+ @I386_ASM_FALSE@ASMS =
+ @I386_ASM_TRUE@ASMS = drawspan.S drawcol.S drawasm.h
diff --git a/games-fps/lsdldoom/lsdldoom-1.5.ebuild b/games-fps/lsdldoom/lsdldoom-1.5.ebuild
new file mode 100644
index 000000000000..8856b85ae3a8
--- /dev/null
+++ b/games-fps/lsdldoom/lsdldoom-1.5.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="Port of ID's doom to SDL"
+HOMEPAGE="http://jesshaas.com/lsdldoom/"
+SRC_URI="http://jesshaas.com/lsdldoom/src/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="arm x86"
+IUSE="+net +shareware freedoom"
+
+DEPEND="media-libs/libsdl[video]
+ media-libs/sdl-mixer
+ net? ( media-libs/sdl-net )"
+RDEPEND="${DEPEND}
+ shareware? ( games-fps/doom-data )
+ freedoom? ( games-fps/freedoom )"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-paths.patch
+}
+
+src_configure() {
+ # cpu-opt -> just adds -mcpu crap to CFLAGS
+ egamesconf \
+ --disable-dependency-tracking \
+ --disable-cpu-opt \
+ $(use_enable net net-game)
+}
+
+src_install() {
+ DOCS="ChangeLog" \
+ default
+ prepgamesdirs
+}
diff --git a/games-fps/lsdldoom/metadata.xml b/games-fps/lsdldoom/metadata.xml
new file mode 100644
index 000000000000..fdebef0b5c68
--- /dev/null
+++ b/games-fps/lsdldoom/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="net">Enables network game support</flag>
+ <flag name="shareware">Install <pkg>games-fps/doom-data</pkg> for shareware wad file</flag>
+ <flag name="freedoom">Install <pkg>games-fps/freedoom</pkg> wad file</flag>
+</use>
+</pkgmetadata>
diff --git a/games-fps/metadata.xml b/games-fps/metadata.xml
new file mode 100644
index 000000000000..9df41d653f06
--- /dev/null
+++ b/games-fps/metadata.xml
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE catmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<catmetadata>
+ <longdescription lang="en">
+ The games-fps category contains first person shooter games.
+ </longdescription>
+ <longdescription lang="de">
+ Die Kategorie games-fps enthält Egoshooter.
+ </longdescription>
+ <longdescription lang="es">
+ La categoría games-fps contiene juegos de disparo en primera persona.
+ </longdescription>
+ <longdescription lang="ja">
+ games-fpsカテゴリーã«ã¯ãƒ•ã‚¡ãƒ¼ã‚¹ãƒˆãƒ»ãƒ‘ーソン・シューター・ゲームãŒ
+ å«ã¾ã‚Œã¦ã„ã¾ã™ã€‚
+ </longdescription>
+ <longdescription lang="nl">
+ De games-fps categorie bevat schietspellen (uit persoonsperspectief).
+ </longdescription>
+ <longdescription lang="vi">
+ Nhóm games-fps chứa các trò chơi bắn súng dạng "First Person Shooter (FPS)".
+ </longdescription>
+ <longdescription lang="it">
+ La categoria games-fps contiene giochi sparatutto in prima persona "First Person Shooter (FPS)".
+ </longdescription>
+ <longdescription lang="pt">
+ A categoria games-fps contém jogos de tiro em primeira pessoa.
+ </longdescription>
+ <longdescription lang="pl">
+ Kategoria games-fps zawiera gry akcji oglÄ…dane z perspektywy pierwszej
+ osoby.
+ </longdescription>
+</catmetadata>
+
diff --git a/games-fps/nexuiz/Manifest b/games-fps/nexuiz/Manifest
new file mode 100644
index 000000000000..5d8893033ba3
--- /dev/null
+++ b/games-fps/nexuiz/Manifest
@@ -0,0 +1,8 @@
+AUX nexuiz-2.5.2-libpng-1.4.patch 1607 SHA256 9b5113290e3dda77711ac430ff1bcbefcd793a640d012ced5dfe462857befc71 SHA512 38aa8fbd0765283c03c0bf6cc13362ed692f4776a12ad23ef582eb9c238fda6eea475284a662ba84d70eab7a7df71a0cb28b5b90f19c12d2594c3ba67f0851aa WHIRLPOOL 90f8f1cddc9df3d67430573da309f7e5b52cc0005021392493d380ef394671a2522a98c657a9a21804180bcaa7554f9ef1646028f9ea927ef9f9092d6a9fad61
+DIST nexmappack_r2.zip 113533483 SHA256 15088c7632e0b4f487c789fba4296f44ef5a5d83b51adcb9e603e289e5b8241e SHA512 f7e2dd60530b58f3fc505cdf0d605208b6905136586107210031233cb870b1892bae59efc4fb38403a4f0fc5301321297d03107b38daa501cb90e5669455eac0 WHIRLPOOL 5385fc2fe5afc4d4c2c3404311ef00c25bdc6cfd0bb3846cfdf0dee79c8205ed5861c5b6b1095d1db2938e3fc726178084ad9b52eb73989d199fb136d8be6a82
+DIST nexuiz-252.zip 931253731 SHA256 a5e27ebcc9775c4a490d0d3536c32e4a8f8f96b038c0b6a78d1823c37a962000 SHA512 da661eb2ff1764fed1d5f5547b89e4f9aa47613d41a3999c0202d8858ec2b882e4ef0ec182a81d1bdb25dff2ef65aad6af132009884e3557206941a736c2a68c WHIRLPOOL e3d08e4936a1fec97e024d0273162e15fbd4c68b13939f82c59ed2b5f613fa6f683423c753fd11d23c9be39f1bc620f2c0013456762773663a283078687eb21d
+EBUILD nexuiz-2.5.2-r1.ebuild 2602 SHA256 a64a7e3be38fcc906970bb0399c3cd32f9720d9f10b558cda19a7461129c7bdf SHA512 fcaffaf301f44fc71fcad15ff890969c35c34c15125d5529f071957b8f1b6296235631ff4136acc592688c7f7741889d25b77bdce4de95226685bf364c4f9926 WHIRLPOOL 7bbf4e1f64010d2383e96ee1107e391847b3d0378777c20b2a29597cfaca70172099b778bbe2cd16e3918810a871968e067dd53b8a15d76ce76bfff35dcf6463
+EBUILD nexuiz-2.5.2.ebuild 2654 SHA256 6ff5d31c31b591c8b6223a4c58f5508e2b1df251fd0ceec23dd8ce37cb07fb92 SHA512 733ef71580ed445dd8d7f93bbf80dcb1277bcb5e669aab97811dca24a9fcc0a62455abd5b97e0f4eda24618ea6ceb2e590f33e3642c21b3e627b2a0c029cf352 WHIRLPOOL d9eea9a6ed820722e21fec983fa5e72cd341339b577b225f884fa2303bd60f123447df1b35270ecd8d23aba301b8546714dbc0f04904e668891fdf20352f4847
+MISC ChangeLog 2756 SHA256 5ef9341b60bfc4a7176f568ae43926bee689cb91d339dbd6fa744b1659f88c1e SHA512 13d2433b7cce0f53c62ac61bfd4a540919b1817ae4b2721e14a56442ab83b907b4ac9b6e2a34c29aec00d17de1cb19ced871ecbecc55b91249dd58cb4326d02f WHIRLPOOL 4c082b5dc34a7e1b860492808615e4459dab8ac088f4a95bb683477976c826cce7f3c51a3f35679927b7bfca82eeefb60596760aeb58cc29b92bec609c762f42
+MISC ChangeLog-2015 5825 SHA256 dac674708aa7a6cb99b589943fbc61d00c06a7e792e20fbe58b9c0cbb27c2de5 SHA512 79b0561d00c6b7d2051bd32898809cb61b9c66633dd1312d7c1ddaafd0c00e53c224fcd8f2ea957bca58ce9ef3c7e4977c160b3cc057c946324459d22a3dd804 WHIRLPOOL 1e41a802a064beb3631bc2e099cb4b7f0d337752bf3d9b61d7efd681bb3564a77ed29f099b9175d384261333ac0f111b6feabee1a9937dd2439890c588b318a7
+MISC metadata.xml 416 SHA256 bede1a0efa2589f88b8fdf09915e74e708149168d7ebfd01f53bb6a176ac88aa SHA512 f07e139d436fba2f1ef78c41788f8e860258755de93cb8bb1b7f4315b6f9efa140013584f627cbb4cd1d46bb3071021f8d3cef2084e46a81fdd52d9d277ede34 WHIRLPOOL d68c5bfa37070b9f13c11fbe12b8c158205aa8b83e445296f60502ecccbc6198302e578be0a578000ef51a03eb5bcd3736a975778c42f17c84cfbd45492c4735
diff --git a/games-fps/nexuiz/files/nexuiz-2.5.2-libpng-1.4.patch b/games-fps/nexuiz/files/nexuiz-2.5.2-libpng-1.4.patch
new file mode 100644
index 000000000000..0e064f8b6c3f
--- /dev/null
+++ b/games-fps/nexuiz/files/nexuiz-2.5.2-libpng-1.4.patch
@@ -0,0 +1,42 @@
+fix compatibility with >=libpng-1.4
+https://bugs.gentoo.org/show_bug.cgi?id=491610
+
+diff -Nur darkplaces.old/image_png.c darkplaces/image_png.c
+--- darkplaces.old/image_png.c 2009-09-15 06:08:02.000000000 +0300
++++ darkplaces/image_png.c 2010-01-28 01:23:24.000000000 +0200
+@@ -36,7 +36,7 @@
+ static void* (*qpng_create_info_struct) (void*);
+ static void (*qpng_read_info) (void*, void*);
+ static void (*qpng_set_expand) (void*);
+-static void (*qpng_set_gray_1_2_4_to_8) (void*);
++static void (*qpng_set_expand_gray_1_2_4_to_8) (void*);
+ static void (*qpng_set_palette_to_rgb) (void*);
+ static void (*qpng_set_tRNS_to_alpha) (void*);
+ static void (*qpng_set_gray_to_rgb) (void*);
+@@ -61,7 +61,7 @@
+ {"png_create_info_struct", (void **) &qpng_create_info_struct},
+ {"png_read_info", (void **) &qpng_read_info},
+ {"png_set_expand", (void **) &qpng_set_expand},
+- {"png_set_gray_1_2_4_to_8", (void **) &qpng_set_gray_1_2_4_to_8},
++ {"png_set_expand_gray_1_2_4_to_8", (void **) &qpng_set_expand_gray_1_2_4_to_8},
+ {"png_set_palette_to_rgb", (void **) &qpng_set_palette_to_rgb},
+ {"png_set_tRNS_to_alpha", (void **) &qpng_set_tRNS_to_alpha},
+ {"png_set_gray_to_rgb", (void **) &qpng_set_gray_to_rgb},
+@@ -110,7 +110,7 @@
+ #elif defined(MACOSX)
+ "libpng12.0.dylib",
+ #else
+- "libpng12.so.0",
++ "libpng14.so.0",
+ "libpng.so", // FreeBSD
+ #endif
+ NULL
+@@ -311,7 +311,7 @@
+ {
+ qpng_set_gray_to_rgb(png);
+ if (my_png.BitDepth < 8)
+- qpng_set_gray_1_2_4_to_8(png);
++ qpng_set_expand_gray_1_2_4_to_8(png);
+ }
+
+ if (qpng_get_valid(png, pnginfo, PNG_INFO_tRNS))
diff --git a/games-fps/nexuiz/metadata.xml b/games-fps/nexuiz/metadata.xml
new file mode 100644
index 000000000000..8655ab7fd6f6
--- /dev/null
+++ b/games-fps/nexuiz/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>
+ <use>
+ <flag name="maps">Install the community map pack</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">nexuiz</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-fps/nexuiz/nexuiz-2.5.2-r1.ebuild b/games-fps/nexuiz/nexuiz-2.5.2-r1.ebuild
new file mode 100644
index 000000000000..f7fffe7d20af
--- /dev/null
+++ b/games-fps/nexuiz/nexuiz-2.5.2-r1.ebuild
@@ -0,0 +1,136 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils
+
+MY_PN=Nexuiz
+MY_P=${PN}-${PV//./}
+MAPS=nexmappack_r2
+DESCRIPTION="Deathmatch FPS based on DarkPlaces, an advanced Quake 1 engine"
+HOMEPAGE="http://www.nexuiz.com/"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.zip
+ maps? ( mirror://sourceforge/${PN}/${MAPS}.zip )"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="alsa dedicated maps opengl sdl"
+
+# no headers for libpng needed
+UIRDEPEND="
+ media-libs/libmodplug
+ media-libs/libogg
+ >=media-libs/libpng-1.4:0
+ media-libs/libtheora
+ media-libs/libvorbis
+ x11-libs/libX11
+ x11-libs/libXau
+ x11-libs/libXdmcp
+ x11-libs/libXext
+ x11-libs/libXpm
+ x11-libs/libXxf86dga
+ x11-libs/libXxf86vm
+ virtual/opengl
+ alsa? ( media-libs/alsa-lib )
+ sdl? ( media-libs/libsdl[joystick,opengl,video] )"
+UIDEPEND="x11-proto/xextproto
+ x11-proto/xf86dgaproto
+ x11-proto/xf86vidmodeproto
+ x11-proto/xproto"
+RDEPEND="virtual/jpeg:0
+ net-misc/curl
+ opengl? ( ${UIRDEPEND} )
+ !dedicated? ( !opengl? ( ${UIRDEPEND} ) )"
+DEPEND="${RDEPEND}
+ app-arch/unzip
+ opengl? ( ${UIDEPEND} )
+ !dedicated? ( !opengl? ( ${UIDEPEND} ) )"
+
+S=${WORKDIR}/darkplaces
+
+PATCHES=(
+ "${FILESDIR}"/${P}-libpng-1.4.patch
+)
+
+src_unpack() {
+ unpack ${MY_P}.zip
+
+ local f
+ for f in "${MY_PN}"/sources/*.zip ; do
+ unpack ./${f}
+ done
+
+ if use maps ; then
+ cd "${WORKDIR}"/${MY_PN}
+ unpack ${MAPS}.zip
+ fi
+}
+
+src_prepare() {
+ default
+
+ # Make the game automatically look in the correct data directory
+ sed -i \
+ -e "/^CC=/d" \
+ -e "s:-O2:${CFLAGS}:" \
+ -e "/-lm/s:$: ${LDFLAGS}:" \
+ -e '/^STRIP/s/strip/true/' \
+ makefile.inc || die
+
+ sed -i \
+ -e '1i DP_LINK_TO_LIBJPEG=1' \
+ -e "s:ifdef DP_.*:DP_FS_BASEDIR=/usr/share/${PN}\n&:" \
+ makefile || die
+
+ if ! use alsa ; then
+ sed -i \
+ -e "/DEFAULT_SNDAPI/s:ALSA:OSS:" \
+ makefile || die
+ fi
+}
+
+src_compile() {
+ if use opengl || ! use dedicated ; then
+ emake cl-${PN}
+ if use sdl ; then
+ emake sdl-${PN}
+ fi
+ fi
+
+ if use dedicated ; then
+ emake sv-${PN}
+ fi
+}
+
+src_install() {
+ if use opengl || ! use dedicated ; then
+ dobin ${PN}-glx
+ doicon ${PN}.xpm
+ make_desktop_entry ${PN}-glx "Nexuiz (GLX)"
+ if use sdl ; then
+ dobin ${PN}-sdl
+ make_desktop_entry ${PN}-sdl "Nexuiz (SDL)"
+ dosym ${PN}-sdl /usr/bin/${PN}
+ else
+ dosym ${PN}-glx /usr/bin/${PN}
+ fi
+ fi
+
+ if use dedicated ; then
+ dobin ${PN}-dedicated
+ fi
+
+ cd "${WORKDIR}"/${MY_PN} || die
+
+ dodoc Docs/*.txt
+ dodoc -r readme.html Docs
+
+ insinto /usr/share/${PN}
+
+ if use dedicated ; then
+ doins -r server
+ fi
+
+ doins -r data havoc
+}
diff --git a/games-fps/nexuiz/nexuiz-2.5.2.ebuild b/games-fps/nexuiz/nexuiz-2.5.2.ebuild
new file mode 100644
index 000000000000..868069a68567
--- /dev/null
+++ b/games-fps/nexuiz/nexuiz-2.5.2.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 games
+
+MY_PN=Nexuiz
+MY_P=${PN}-${PV//./}
+MAPS=nexmappack_r2
+DESCRIPTION="Deathmatch FPS based on DarkPlaces, an advanced Quake 1 engine"
+HOMEPAGE="http://www.nexuiz.com/"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.zip
+ maps? ( mirror://sourceforge/${PN}/${MAPS}.zip )"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="alsa dedicated maps opengl sdl"
+
+# no headers for libpng needed
+UIRDEPEND="media-libs/libogg
+ media-libs/libvorbis
+ media-libs/libtheora
+ >=media-libs/libpng-1.4:0
+ media-libs/libmodplug
+ x11-libs/libX11
+ x11-libs/libXau
+ x11-libs/libXdmcp
+ x11-libs/libXpm
+ x11-libs/libXext
+ x11-libs/libXxf86dga
+ x11-libs/libXxf86vm
+ virtual/opengl
+ alsa? ( media-libs/alsa-lib )
+ sdl? ( media-libs/libsdl[joystick,opengl,video] )"
+UIDEPEND="x11-proto/xextproto
+ x11-proto/xf86dgaproto
+ x11-proto/xf86vidmodeproto
+ x11-proto/xproto"
+RDEPEND="virtual/jpeg:0
+ net-misc/curl
+ opengl? ( ${UIRDEPEND} )
+ !dedicated? ( !opengl? ( ${UIRDEPEND} ) )"
+DEPEND="${RDEPEND}
+ app-arch/unzip
+ opengl? ( ${UIDEPEND} )
+ !dedicated? ( !opengl? ( ${UIDEPEND} ) )"
+
+S=${WORKDIR}/darkplaces
+
+src_unpack() {
+ unpack ${MY_P}.zip
+
+ local f
+ for f in "${MY_PN}"/sources/*.zip ; do
+ unpack ./${f}
+ done
+
+ if use maps ; then
+ cd "${WORKDIR}"/${MY_PN}
+ unpack ${MAPS}.zip
+ fi
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-libpng-1.4.patch
+
+ # Make the game automatically look in the correct data directory
+ sed -i \
+ -e "/^CC=/d" \
+ -e "s:-O2:${CFLAGS}:" \
+ -e "/-lm/s:$: ${LDFLAGS}:" \
+ -e '/^STRIP/s/strip/true/' \
+ makefile.inc || die
+
+ sed -i \
+ -e '1i DP_LINK_TO_LIBJPEG=1' \
+ -e "s:ifdef DP_.*:DP_FS_BASEDIR=${GAMES_DATADIR}/nexuiz\n&:" \
+ makefile || die
+
+ if ! use alsa ; then
+ sed -i \
+ -e "/DEFAULT_SNDAPI/s:ALSA:OSS:" \
+ makefile || die
+ fi
+}
+
+src_compile() {
+ if use opengl || ! use dedicated ; then
+ emake cl-${PN}
+ if use sdl ; then
+ emake sdl-${PN}
+ fi
+ fi
+
+ if use dedicated ; then
+ emake sv-${PN}
+ fi
+}
+
+src_install() {
+ if use opengl || ! use dedicated ; then
+ dogamesbin ${PN}-glx
+ doicon ${PN}.xpm
+ make_desktop_entry ${PN}-glx "Nexuiz (GLX)"
+ if use sdl ; then
+ dogamesbin ${PN}-sdl
+ make_desktop_entry ${PN}-sdl "Nexuiz (SDL)"
+ dosym ${PN}-sdl "${GAMES_BINDIR}"/${PN}
+ else
+ dosym ${PN}-glx "${GAMES_BINDIR}"/${PN}
+ fi
+ fi
+
+ if use dedicated ; then
+ dogamesbin ${PN}-dedicated
+ fi
+
+ cd "${WORKDIR}"/${MY_PN} || die
+
+ dodoc Docs/*.txt
+ dohtml -r readme.html Docs
+
+ insinto "${GAMES_DATADIR}"/${PN}
+
+ if use dedicated ; then
+ doins -r server
+ fi
+
+ doins -r data havoc
+
+ prepgamesdirs
+}
diff --git a/games-fps/openarena/Manifest b/games-fps/openarena/Manifest
new file mode 100644
index 000000000000..32ef25967598
--- /dev/null
+++ b/games-fps/openarena/Manifest
@@ -0,0 +1,8 @@
+AUX openarena-0.8.8-makefile.patch 763 SHA256 c91a6de3154d9b86da367fe4cc5f7ce0797a75dbb52ea1d26a11ffbfb371d931 SHA512 2cc60cfd43536f55690dd90346f11d383f39d20be4509167604d0506bddd6375a73e933eeed2c7fbbd0e2c2c9c7ce126943549a9e0194d0f831d0a9b9e59c376 WHIRLPOOL fb077c2016fdbfa9e5863e346ed850ad662cc714b3309827be7f7647c785821f6ca9a0629c433a5880c5d22315168fee633495fc038be6b6ce9d4a9488ffa156
+AUX openarena-0.8.8-unbundling.patch 3054 SHA256 272266dc3ec9d7fa08aaa946b30b6a923a3500c66d0aa3c4d2ef1a805effba03 SHA512 85a7300e78f741d0bcb4c949e17ffac13790bbdf0942fc739fa357ac5cec7a27c67393bb42342981a78fbb12141e3a9e1ffead352db6073bdf63b4135f4dbb43 WHIRLPOOL 3fbc17715d13f9d69f45392f128e068ae4a70281648bb5ebb4d21caf2775315c6429d8d429c163b8c543dc4f8fbf5e57ec30f23e7d38728b18c5eed5a72d6e5d
+DIST openarena-0.8.8.zip 425189255 SHA256 5a8faf7f5b51f351b0a1618c06b6b98a5f1a6758f1d39818de2c87df2a0bac4a SHA512 9fa4dabe8a3428dc3cbec97f3b4d20c04569c14cdd00b60e6391c6dd61e310f246ff5ec97e7549821b3d6f5f94b140eb5411a2ddd83dafcad66937b7f78ea8dd WHIRLPOOL d9121b2e936063d02da7ed4de79f8d0da3fd3c9b196d3fbce9091be0d14c9f745317c833eed7ce9c0691cd8627396f0d3580eb244b7229500b44a03583612e4f
+DIST openarena-engine-source-0.8.8.tar.bz2 3777830 SHA256 95aa500cb7e42e57fb1f6db7b97a254168f4fa2e3676d6cdc33180b69fde0e77 SHA512 d4ba3655fae500cf5b7475c83d39c81b6abc759da15cfb4ea9e1dc0f47ffb11c1bbbc2b6f85d613ab1d729978eda93d4d7677c9a45a33853e363c820d8b81c43 WHIRLPOOL 6093e6d209983a268d21ea487f99ab065f1b050a3af43fead3461e24dc629be8b84be56644a4ca5a35512015f187eb9880f1228b0d501de091c482e141086f2b
+EBUILD openarena-0.8.8.ebuild 1778 SHA256 0ded964818bde0b816873876f42c162f46d1e1d4bd876463653a46e4e775fe60 SHA512 2552764c8e8c93e524553a7b1696d64e528e1835a9b4f9f59daebc2e0a0375a281aac0e1eb1459cefd76ab8f8f63e65d46353515f6ae21fd451093347dff03f4 WHIRLPOOL 03409f0b95a05e41c09825d4e0bc7bca94a23ef9b05b1811f36d4c140689d53455be6ca81a67c65c5405414f1d1465a1f5aea1f525fab846a1ef82a429362e39
+MISC ChangeLog 2991 SHA256 aa7d973b4807787f91517c8dd983d71179acf9d6a41ad2e4610357e0aef64bf9 SHA512 c84b74ef53d6610c6c6c0017b881a09a69421fb3419ac774dc9f95a779f73679354264b54ac0701002c9279840e778cf65a80c5fb1c455f89e0cf462ed605a80 WHIRLPOOL b6c4c271c9d48de0d3e6c2f06e10a5015560427f0b0f767902c78a8243ef15e373b3f4ff32a2132b9db2ce5cf9e6e5a0f0432ff925d3338e8d5ca7429cfd7774
+MISC ChangeLog-2015 4717 SHA256 7a04ba779b704e76ff8978302d9c0e6287e9997a6608760ac2aa7c79a8ea0477 SHA512 e43c71ff2c0b2e7248cc6508992b40748f5486e65f65a7dce7cf20f10eb9cf23082d67e3c32b124f7ee46b37445ba36a5fb0f78dfe7703b0c466cafe8c2e084a WHIRLPOOL e1ebc98ea28e07844d22cd25bcefb3925ef48c31bfbbdabfb6baf3aafd5af8b3d651e7649473ad55ddb43336216a5d58306834dfd0cacf79dc8416043e7a9567
+MISC metadata.xml 329 SHA256 2e1e2962e1f543f1a712c643e6dd221b885dd6141504c2d0d10b68f8bec8b64b SHA512 40e88c8cec824e6c3d815516c018292ec64e5b968ede35a4c3c235331cfb32370ceffa954f01ceedffbf64e182f4e6c753a5fe45ce2ed627b6383dfc6b0d39f7 WHIRLPOOL b3823a9d657134041ece2550afe7d9cc222dd102f1f441fb1cf44eab44f0724ba9580f432b6fcef05be1b24cbc2c351fba9c3aecb04179c86f0a800e7ce037f2
diff --git a/games-fps/openarena/files/openarena-0.8.8-makefile.patch b/games-fps/openarena/files/openarena-0.8.8-makefile.patch
new file mode 100644
index 000000000000..d72bbe79b29d
--- /dev/null
+++ b/games-fps/openarena/files/openarena-0.8.8-makefile.patch
@@ -0,0 +1,36 @@
+From: Julian Ospald <hasufell@gentoo.org>
+Date: Thu May 17 23:34:20 UTC 2012
+Subject: flags, arch
+
+--- openarena-engine-source-0.8.8/Makefile
++++ openarena-engine-source-0.8.8/Makefile
+@@ -73,6 +73,10 @@
+
+ ifndef ARCH
+ ARCH=$(COMPILE_ARCH)
++else
++ ifeq ($(ARCH),amd64)
++ ARCH=x86_64
++ endif
+ endif
+ export ARCH
+
+@@ -263,8 +267,7 @@
+ endif
+ endif
+
+- BASE_CFLAGS = -Wall -fno-strict-aliasing -Wimplicit -Wstrict-prototypes \
+- -pipe -DUSE_ICON
++ BASE_CFLAGS = -fno-strict-aliasing -DUSE_ICON -I.
+ CLIENT_CFLAGS = $(SDL_CFLAGS)
+ SERVER_CFLAGS =
+
+@@ -335,7 +338,7 @@
+ THREAD_LIBS=-lpthread
+ LIBS=-ldl -lm
+
+- CLIENT_LIBS=$(SDL_LIBS) -lGL
++ CLIENT_LIBS=$(SDL_LIBS) -lGL -ljpeg
+
+ ifeq ($(USE_OPENAL),1)
+ ifneq ($(USE_OPENAL_DLOPEN),1) \ No newline at end of file
diff --git a/games-fps/openarena/files/openarena-0.8.8-unbundling.patch b/games-fps/openarena/files/openarena-0.8.8-unbundling.patch
new file mode 100644
index 000000000000..b2c872f34cbd
--- /dev/null
+++ b/games-fps/openarena/files/openarena-0.8.8-unbundling.patch
@@ -0,0 +1,104 @@
+--- openarena-engine-source-0.8.8/Makefile
++++ openarena-engine-source-0.8.8/Makefile
+@@ -1406,41 +1406,6 @@
+ $(B)/client/l_script.o \
+ $(B)/client/l_struct.o \
+ \
+- $(B)/client/jcapimin.o \
+- $(B)/client/jcapistd.o \
+- $(B)/client/jccoefct.o \
+- $(B)/client/jccolor.o \
+- $(B)/client/jcdctmgr.o \
+- $(B)/client/jchuff.o \
+- $(B)/client/jcinit.o \
+- $(B)/client/jcmainct.o \
+- $(B)/client/jcmarker.o \
+- $(B)/client/jcmaster.o \
+- $(B)/client/jcomapi.o \
+- $(B)/client/jcparam.o \
+- $(B)/client/jcphuff.o \
+- $(B)/client/jcprepct.o \
+- $(B)/client/jcsample.o \
+- $(B)/client/jdapimin.o \
+- $(B)/client/jdapistd.o \
+- $(B)/client/jdatasrc.o \
+- $(B)/client/jdcoefct.o \
+- $(B)/client/jdcolor.o \
+- $(B)/client/jddctmgr.o \
+- $(B)/client/jdhuff.o \
+- $(B)/client/jdinput.o \
+- $(B)/client/jdmainct.o \
+- $(B)/client/jdmarker.o \
+- $(B)/client/jdmaster.o \
+- $(B)/client/jdpostct.o \
+- $(B)/client/jdsample.o \
+- $(B)/client/jdtrans.o \
+- $(B)/client/jerror.o \
+- $(B)/client/jfdctflt.o \
+- $(B)/client/jidctflt.o \
+- $(B)/client/jmemmgr.o \
+- $(B)/client/jmemnobs.o \
+- $(B)/client/jutils.o \
+ \
+ $(B)/client/tr_animation.o \
+ $(B)/client/tr_backend.o \
+--- openarena-engine-source-0.8.8/code/renderer/tr_image_jpg.c
++++ openarena-engine-source-0.8.8/code/renderer/tr_image_jpg.c
+@@ -31,7 +31,7 @@
+ */
+
+ #define JPEG_INTERNALS
+-#include "../jpeg-6b/jpeglib.h"
++#include <jpeglib.h>
+
+ void R_LoadJPG( const char *filename, unsigned char **pic, int *width, int *height ) {
+ /* This struct contains the JPEG decompression parameters and pointers to
+@@ -131,7 +131,10 @@
+ }
+
+ memcount = pixelcount * 4;
+- row_stride = cinfo.output_width * cinfo.output_components;
++ if (3 == cinfo.output_components)
++ row_stride = cinfo.output_width * 4;
++ else
++ row_stride = cinfo.output_width * cinfo.output_components;
+
+ out = ri.Malloc(memcount);
+
+@@ -144,14 +147,26 @@
+ /* Here we use the library's state variable cinfo.output_scanline as the
+ * loop counter, so that we don't have to keep track ourselves.
+ */
++ buf = out;
+ while (cinfo.output_scanline < cinfo.output_height) {
+ /* jpeg_read_scanlines expects an array of pointers to scanlines.
+ * Here the array is only one element long, but you could ask for
+ * more than one scanline at a time if that's more convenient.
+ */
+- buf = ((out+(row_stride*cinfo.output_scanline)));
+ buffer = &buf;
+ (void) jpeg_read_scanlines(&cinfo, buffer, 1);
++ if (3 == cinfo.output_components) {
++ /* turn RGB into RGBA */
++ int ioffset = cinfo.output_width * 3 - 1;
++ int ooffset = cinfo.output_width * 4 - 1;
++ do {
++ buf[ooffset--] = 255;
++ buf[ooffset--] = buf[ioffset--];
++ buf[ooffset--] = buf[ioffset--];
++ buf[ooffset--] = buf[ioffset--];
++ } while (ioffset > 0);
++ }
++ buf += row_stride;
+ }
+
+ buf = out;
+@@ -176,7 +191,7 @@
+ buf[--dindex] = greyshade;
+ } while(sindex);
+ }
+- else
++ else if (4 == cinfo.output_components)
+ {
+ // clear all the alphas to 255
+ int i; \ No newline at end of file
diff --git a/games-fps/openarena/metadata.xml b/games-fps/openarena/metadata.xml
new file mode 100644
index 000000000000..fb6c4d02068e
--- /dev/null
+++ b/games-fps/openarena/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">oarena</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-fps/openarena/openarena-0.8.8.ebuild b/games-fps/openarena/openarena-0.8.8.ebuild
new file mode 100644
index 000000000000..023db096e5ad
--- /dev/null
+++ b/games-fps/openarena/openarena-0.8.8.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils flag-o-matic versionator games
+
+DESCRIPTION="Open-source replacement for Quake 3 Arena"
+HOMEPAGE="http://openarena.ws/"
+SRC_URI="mirror://sourceforge/oarena/${P}.zip
+ mirror://sourceforge/oarena/src/${PN}-engine-source-${PV}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="+curl +openal +vorbis"
+
+RDEPEND="virtual/opengl
+ media-libs/libsdl[joystick,opengl,video]
+ media-libs/speex
+ virtual/jpeg:0
+ x11-libs/libXext
+ x11-libs/libX11
+ x11-libs/libXau
+ x11-libs/libXdmcp
+ curl? ( net-misc/curl )
+ openal? ( media-libs/openal )
+ vorbis? ( media-libs/libvorbis )"
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+MY_S=${WORKDIR}/${PN}-engine-source-${PV}
+BUILD_DIR=${PN}-build
+DIR=${GAMES_DATADIR}/${PN}
+
+src_prepare() {
+ cd "${WORKDIR}"
+ epatch "${FILESDIR}"/${P}-makefile.patch \
+ "${FILESDIR}"/${P}-unbundling.patch
+ cd "${MY_S}"
+ touch jpegint.h
+}
+
+src_compile() {
+ local myopts
+
+ # enable voip, disable mumble
+ # also build always server and use smp by default
+ myopts="USE_INTERNAL_SPEEX=0 USE_VOIP=1 USE_MUMBLE=0
+ BUILD_SERVER=1 BUILD_CLIENT_SMP=1 USE_LOCAL_HEADERS=0"
+ use curl || myopts="${myopts} USE_CURL=0"
+ use openal || myopts="${myopts} USE_OPENAL=0"
+ use vorbis || myopts="${myopts} USE_CODEC_VORBIS=0"
+
+ cd "${MY_S}"
+ emake \
+ V=1 \
+ DEFAULT_BASEDIR="${DIR}" \
+ BR="${BUILD_DIR}" \
+ ${myopts} \
+ OPTIMIZE=
+}
+
+src_install() {
+ cd "${MY_S}"/"${BUILD_DIR}"
+ newgamesbin openarena-smp.* "${PN}"
+ newgamesbin oa_ded.* "${PN}-ded"
+ cd "${S}"
+
+ insinto "${DIR}"
+ doins -r baseoa missionpack
+
+ dodoc CHANGES CREDITS LINUXNOTES README
+ newicon "${MY_S}"/misc/quake3.png ${PN}.png
+ make_desktop_entry ${PN} "OpenArena"
+
+ prepgamesdirs
+}
diff --git a/games-fps/postal2/Manifest b/games-fps/postal2/Manifest
new file mode 100644
index 000000000000..25c6476fb928
--- /dev/null
+++ b/games-fps/postal2/Manifest
@@ -0,0 +1,6 @@
+DIST postal2-1409.1.run 4816304 SHA256 7c34530f84acfcb120710660ae56264fdab28d74eb0dd0a351bef37f87e2b1b1 SHA512 5ff4880435394c552e7c1f33baf8dfdb71eb56fe5e3067eeb746826a25e585d3901292618668de50dc8bf641b2628a26a82cdf5b642e33f4113b55d72df9c4fe WHIRLPOOL 90ff13f14d93ed539596bd21170397b55bf688719ac58d33168f27b7bdc7d1b7f6a45835b050608efc4e5cf8483e2a5b5894ff750449fa66206ce36f037a993e
+DIST postal2-1409.2.run 5645624 SHA256 5b7456200d5777b350e2a1b01eefd8f74df9c5d880acd18eeab3af731d719fe7 SHA512 9fafcfec30d99e30b879318a96f484d3723853a213606f58b02a37631b4393ab4925022fcef3f84c95907269c6675090100358c16cec8b779140bf83fe7cb660 WHIRLPOOL 658936af2e3cbd7d90734749187c36b05e16cefbcb73dc12526c4ceb9d3a34197b362186d3d06436ffb63e2019329631a2e6de13fb8a8518bf4a43f06872e7c7
+EBUILD postal2-1409.2-r2.ebuild 1664 SHA256 e13686a6d09e0d1fb4bf4253ab2569b951bea599ccbd6c259d5a42cc9dc12de2 SHA512 a523a007bc590db606607aa6521e902efed3a04bda4c060e92dad230d2890d69ef037f2227b8364e9931e9bdc0ba0d268f4a50f2545ca3c6cad19f363fae225a WHIRLPOOL 09cb570731f7c7dfb56dd7a7971c3871bc4bf3bf1aabacc0f443cbdd6fb7761722ec216eef7da64f87451dae3cf7edc033595dfc7e3109f53f6e3938980092c8
+MISC ChangeLog 2560 SHA256 31335d9f7fd7376f5552e72f9c388f5cac8560c4c7985c9284248ea5a979f4ff SHA512 a9a37e0e4f92a16d01d4da1d663f24fae0ff727e4595b214cc02b686b5a703080dd9802257f2ef5e71738f4b9329c1d4ea72b4a4657b0b776d9039c68b50116c WHIRLPOOL cfe779acda5bf046b7183873d61451cb02ce57c426f4ec1a61ddd7a1030e90c50e15ddeed9a3991bb44a7010ea2e0c2e2b1b3a3b508488ce86f9cb091a9e87c0
+MISC ChangeLog-2015 2695 SHA256 b9bde186ac38f50c05416517928699e52f0258159c4f1f56668cf9ea6637247f SHA512 8f7f3ffb80f6401a2e401685dee78a7b9473d6fc5435cd2bf4b8c42d30e14ba2869c0db336a77896605d364df0d51ccbc3e715fc366503c3b32333758a321edc WHIRLPOOL 14d109109c4a3f9b3a9cf92f23f4fd4f2f460669bab210f11a9245d3103f09fad5659db31f2214bbe24197228b2a9a36c4aec390b14ee64d1e3a89ee0ccc9731
+MISC metadata.xml 252 SHA256 0dd0e558bb7ccc4f24cb9c9c43790c108e559f3462861b2ff6eb267a345beaab SHA512 90798aff93ec7e3881b882e7b10bb1680e8cb7d82b0ef4280e562ab0c9e8a2daba8afe57333dc64697322267a4b651c00ee9b4fdeb56278ff70c073da7b91638 WHIRLPOOL c6c72f145f4ccc4863ad4c1a236eac601fb00f0e9550568f98d5e6f5eeb16f361b4c18eac8d80a1534e398fac595a6819a86297164be0818d04de6d643f01d7c
diff --git a/games-fps/postal2/metadata.xml b/games-fps/postal2/metadata.xml
new file mode 100644
index 000000000000..3c186688e265
--- /dev/null
+++ b/games-fps/postal2/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-fps/postal2/postal2-1409.2-r2.ebuild b/games-fps/postal2/postal2-1409.2-r2.ebuild
new file mode 100644
index 000000000000..ac2313659529
--- /dev/null
+++ b/games-fps/postal2/postal2-1409.2-r2.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 unpacker cdrom multilib games
+
+DESCRIPTION="Postal 2: Share the Pain"
+HOMEPAGE="http://www.linuxgamepublishing.com/info.php?id=postal2"
+SRC_URI="http://updatefiles.linuxgamepublishing.com/${PN}/${P/%?/1}.run
+ http://updatefiles.linuxgamepublishing.com/${PN}/${P}.run"
+
+LICENSE="postal2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+RESTRICT="strip"
+
+DEPEND="games-util/loki_patch"
+RDEPEND="sys-libs/glibc
+ sys-libs/libstdc++-v3:5
+ amd64? ( sys-libs/glibc[multilib] sys-libs/libstdc++-v3:5[multilib] )
+ >=virtual/opengl-7.0-r1[abi_x86_32(-)]
+ >=media-libs/libsdl-1.2.15-r4[X,opengl,abi_x86_32(-)]
+ >=media-libs/openal-1.15.1[abi_x86_32(-)]"
+
+S=${WORKDIR}
+
+src_unpack() {
+ cdrom_get_cds .installation_data/linux-specific.tar.bz2
+ 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}
+
+ dodir "${dir}"
+ cd "${D}/${dir}"
+
+ ln -s "${CDROM_ROOT}"/.installation_data/*.bz2 .
+ unpack ./*.bz2
+ rm -f ./*.bz2
+
+ local d
+ for d in "${S}"/* ; do
+ pushd "${d}" > /dev/null
+ loki_patch patch.dat "${D}/${dir}" || die "loki_patch ${d} failed"
+ popd > /dev/null
+ done
+
+ rm -f System/{libstdc++.so.5,libgcc_s.so.1}
+
+ dosym /usr/$(get_libdir)/libopenal.so "${dir}"/System/openal.so
+ dosym /usr/$(get_libdir)/libSDL-1.2.so.0 "${dir}"/System/libSDL-1.2.so.0
+
+ games_make_wrapper ${PN} ./${PN}-bin "${dir}"/System .
+ doicon "${CDROM_ROOT}"/.installation_data/${PN}.xpm
+ make_desktop_entry ${PN} "Postal 2: Share the Pain"
+
+ prepgamesdirs
+}
diff --git a/games-fps/postal2mp-demo/Manifest b/games-fps/postal2mp-demo/Manifest
new file mode 100644
index 000000000000..a8acf47bc0cd
--- /dev/null
+++ b/games-fps/postal2mp-demo/Manifest
@@ -0,0 +1,5 @@
+DIST Postal2STP-FreeMP-linux.tar.bz2 591082047 SHA256 9869c6ffc220e58cb51eb04c5dbbc480d5025cfd33b83bf4f3eb8ac340d6c1e2 SHA512 92580c2ce0593f37890013a5b2e5c1d420b57ae4e90569725446dbb2c939d1dd29b6df566783f020419dd8c4b1301213d1e8d9d581c95efd3f5950e8e54b46d1 WHIRLPOOL 7f2093be5a3214bd8fa527cac37addc7e8ed5e9d8645b3d47cbab65116850c786042479d034f4d59ec198641ff3e1e3a734aa5ffb37de579f30257e273fa6bea
+EBUILD postal2mp-demo-1409.ebuild 1460 SHA256 8696adc8e9bea645b343adeb319feb7872ac8d328d911d1c7e2fa580f41934ea SHA512 af37620e4989c5f2c6d5a207c3a682ffc3a4efc190f31622e820d238ca2e5bc2c0e94fffad4a9ce54909445f9fb9a51dd0db7894937ab74c08164b1ea2fcfba6 WHIRLPOOL 434387c3caf70209c8504a79bc14e15a36dc4f4f8c1b05db9bec28c63320a9b01a2ecb57a904ef566b9b1da0041662a1bec0116a52da65397d38acc76cabde82
+MISC ChangeLog 2447 SHA256 cc918437f7b7562388d836a73a3eb5e231836dbf5750021adb5b5d2d944d8030 SHA512 b9608bf300257e09c7b34f93deaca35483bdfccf23fb37d6213a78ada5e43f4e5e96d45b8eb9cfa8df9d21098ea2cb9eee3202442ee6fb706956a7aac638e758 WHIRLPOOL 3ef89b33c37be974b2f598af7b70bef50deabd0326682a003bf97aefea42699862c4e685bb3ed1dacf8c52f4a03558508d7e771341fc99d424939c61579c02e5
+MISC ChangeLog-2015 5421 SHA256 04db351fba2588c792d70655767352e0a2306fe31cda337ffdba2713fa6dd3e0 SHA512 3ba58e709233b95681fd11eb4661b6bffd5b562526d38641be9278eed7f2e143fcfafb69bd0c0c2692d153b666cf5b6192fe6e497fb2a71f35de78c918b999a7 WHIRLPOOL ba316e3b5c07379880fd86da23c85d4b8a7d22a471fbe619b37e8d9e09db5f54397be18d8b046052d5727b0ed1d2f7262ecf69315f64c3a96d855cc8e112b0bd
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-fps/postal2mp-demo/metadata.xml b/games-fps/postal2mp-demo/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-fps/postal2mp-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-fps/postal2mp-demo/postal2mp-demo-1409.ebuild b/games-fps/postal2mp-demo/postal2mp-demo-1409.ebuild
new file mode 100644
index 000000000000..c803d36bfff5
--- /dev/null
+++ b/games-fps/postal2mp-demo/postal2mp-demo-1409.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils unpacker multilib games
+
+DESCRIPTION="You play the Postal Dude: Postal 2 is only as violent as you are"
+HOMEPAGE="http://icculus.org/news/news.php?id=4419"
+SRC_URI="http://treefort.icculus.org/postal2/Postal2STP-FreeMP-linux.tar.bz2
+ http://0day.icculus.org/postal2/Postal2STP-FreeMP-linux.tar.bz2
+ http://cyberstalker.dk/sponsored-by-dkchan.org/Postal2STP-FreeMP-linux.tar.bz2"
+
+LICENSE="postal2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+RESTRICT="mirror strip"
+
+RDEPEND="sys-libs/glibc
+ sys-libs/libstdc++-v3:5
+ amd64? ( sys-libs/glibc[multilib] sys-libs/libstdc++-v3:5[multilib] )
+ >=media-libs/libsdl-1.2.15-r4[X,opengl,abi_x86_32(-)]
+ >=media-libs/openal-1.15.1[abi_x86_32(-)]"
+DEPEND=""
+
+QA_PREBUILT="${GAMES_PREFIX_OPT:1}/${PN}/System/*"
+
+S=${WORKDIR}/Postal2STP-FreeMP-linux
+
+src_install() {
+ has_multilib_profile && ABI=x86
+
+ dir=${GAMES_PREFIX_OPT}/${PN}
+
+ insinto "${dir}"
+ doins -r *
+ fperms +x "${dir}"/System/postal2-bin
+
+ rm "${ED}/${dir}"/System/{openal.so,libSDL-1.2.so.0,libstdc++.so.5,libgcc_s.so.1} || die
+ dosym /usr/$(get_libdir)/libopenal.so "${dir}"/System/openal.so
+ dosym /usr/$(get_libdir)/libSDL-1.2.so.0 "${dir}"/System/libSDL-1.2.so.0
+
+ games_make_wrapper ${PN} ./postal2-bin "${dir}"/System .
+ newicon postal2.xpm ${PN}.xpm
+ make_desktop_entry ${PN} "Postal 2: Share the Pain (Demo)"
+
+ prepgamesdirs
+}
diff --git a/games-fps/prboom/Manifest b/games-fps/prboom/Manifest
new file mode 100644
index 000000000000..989f1a27c9a5
--- /dev/null
+++ b/games-fps/prboom/Manifest
@@ -0,0 +1,9 @@
+AUX prboom-2.5.0-libpng14.patch 543 SHA256 da7f5d63600db223d3f27dcd18e2eb7a0f4be2cb7f83683d4c3a743ee28e3152 SHA512 84d7b6cb8f8887443b74904a906eb37d08c3a90a96be2c115edaea280a72aeec851964f475fc2a1689a286ee5de481f150a71f952452b590562b912b8f782dce WHIRLPOOL aad89626aba29e65c73e1d974292bf444e5bc8d74db54b363aa2f6847e1beb527f2452e54841db2a1a98a407f66bfeb6fd34ad557adc7952214e26b685ca98ac
+AUX prboom-2.5.0-nvidia-test.c 90 SHA256 5df0930928328c700cafba8ac3367dc799118dddcd16d71d2bb0d65eb3a2d185 SHA512 2b864be0a40c213c4dfbef18b25db34ac62968f932f534dbe549019f0000ff7ce524e345740aff8c5b8aecdd2e5df9e42fef298d11f5d2366ad324c3003c4466 WHIRLPOOL d5b5825310562b626aabb61b7f8363bc7926a5ee42efe13d5a0253ca3839c15144b7e1750d7c8159807d4cc337bbb6e030388ca3fd07b3336caffc89dec50dea
+AUX prboom-2.5.0-nvidia.patch 1734 SHA256 db77ce8107f97f2886d89c53777b2f9c7ef5e2559dcdd4ea455f3cf0ae2491fe SHA512 d3048ea2f500c6bbfb1e24c75fdc05dbe0f6fbf8d8e71a37aec0f30c6c6ca97a9bc193dee60de3083df15320660908f97bb90fde795cb1d07e3877d27d4a55ea WHIRLPOOL 0b632aa835adf0818fb58ee0c59f6c9196dfab5757bdfca3849c6939ff1116c4f30352bc3417571b5a758836ead94b87f40dbd844c6430796cae33d5e1bceba4
+DIST prboom-2.5.0.tar.gz 1049505 SHA256 226c1c470f8cc983327536404f405a1d026cf0a5188c694a1243cc8630014bae SHA512 9e25b55047c66931ea010751fb64484e466395b04dfb738ed9dc515bd8b78e1124a337da33bf7be6e97280016ed1f01c852d8bc12704bdb82074488d7b5d2894 WHIRLPOOL 1aa458514266c107a5c4883b970cdaac157ded0ef4348e6666647e9426a8f28c4c98ff32de93be20c3d0dc3dd740d725e3c4bd9c767bb0aa3c3f7752a719a5a8
+DIST prboom.png 4254 SHA256 ed79c4712b57b0c5e8ef975412e22d6936fa4b62657707e8f1cda63302008542 SHA512 72631d253c6754484ab1c96c953ed37a734197fa851dc88156fd3d4fb8396a77347805233481470b936a504d08e06d994de1eba613e6bf70a89db8fc7ee9b1ac WHIRLPOOL b7e91c2b43ea57951dfcf0ed2b9916c8053d75d0119965079c2806ba1d9a9c13e36506dd65cd82e01e1e2f64b276dbe0bac2c2eaf2a3f80a26ab777feeeca75e
+EBUILD prboom-2.5.0.ebuild 2025 SHA256 981d6e54455ebbb53e5914b31667b9937bdbcabbb59c135624f47cd256d51cd4 SHA512 2b1b9c8c29f32e160d309a173126097d249ae5e7291e82837e5516cf2d8f42a94ad070c7d429165c8864f46e4a7b5301efff6ef8d47dfbad13f7ee238a0b4af1 WHIRLPOOL 380816b61c1e6a3d802e27e999bca79f3c279054b02f3d127c87d6037427ec8767d9cea09c965ffc2169af5174eb655d719f4a551686132f190f91912b56d8f6
+MISC ChangeLog 2532 SHA256 05770314a56b52b01d7fc5474be8b216f854f27f84960a5ff34ebf7582e901f4 SHA512 2cc645e76276719167ceb865ac67262b260eefb26f7740a84d8ef9324591d11c0c8a90d59b70e25062cc532c924ab4451f51a066c8e27713126244ef135501d0 WHIRLPOOL 4f750d13de0e95eda899db60d5c5f9db9a697b3a90d927a7af001eb0e4073be4add5deff2bb826a6d99185794c9ad7ff750aa33f4d9651eadf6ec405d0c40376
+MISC ChangeLog-2015 6279 SHA256 0718b023775f26384cdd28f9fb784025e035f890f16b5c4e0c10f9edf632d89d SHA512 981a43e56318c71e0dbdb139b7e6023cdd7026a08370eedcd53e69c7306e08796890f8de1fcb3d683e1964839df9fa3435a0ae9489111c0a08d6f337a89de623 WHIRLPOOL 75a54f9c52d420cf8a931b00413826a17d5e81600b35e703979d48e1cf5f48788368e826349a333f8e55eb4ad0de8760f2706446e088658fa1851a2f45acfa27
+MISC metadata.xml 329 SHA256 2bb374403dd9f5f2cd3d6f26409054f84bf31f384444bcfebfaf46153bd88580 SHA512 a1c50442cb2fb1e0b536fd7b2402f74f4edf3a8edb0ff45ea6873cf24402fd5c37535006604e98b3c0073f9788763efaff2e51a91cd44b7fc37343549be87e80 WHIRLPOOL d7522131155f7bfe619d69c936e18996d28a66b2846f4e6943f5bf05aff1a6a23ae960293080f495a3e8abd62657727054cb1ff308415583fd9977874d0cd54d
diff --git a/games-fps/prboom/files/prboom-2.5.0-libpng14.patch b/games-fps/prboom/files/prboom-2.5.0-libpng14.patch
new file mode 100644
index 000000000000..d0e3c48299f0
--- /dev/null
+++ b/games-fps/prboom/files/prboom-2.5.0-libpng14.patch
@@ -0,0 +1,22 @@
+https://bugs.gentoo.org/show_bug.cgi?id=308739
+
+--- src/SDL/i_sshot.c
++++ src/SDL/i_sshot.c
+@@ -231,7 +231,7 @@
+ if (fp)
+ {
+ png_struct *png_ptr = png_create_write_struct(
+- PNG_LIBPNG_VER_STRING, png_error_ptr_NULL, error_fn, warning_fn);
++ PNG_LIBPNG_VER_STRING, NULL, error_fn, warning_fn);
+
+ if (png_ptr)
+ {
+@@ -279,7 +279,7 @@
+ break;
+ }
+ }
+- png_destroy_write_struct(&png_ptr, png_infopp_NULL);
++ png_destroy_write_struct(&png_ptr, NULL);
+ }
+ fclose(fp);
+ }
diff --git a/games-fps/prboom/files/prboom-2.5.0-nvidia-test.c b/games-fps/prboom/files/prboom-2.5.0-nvidia-test.c
new file mode 100644
index 000000000000..f9e4bd700f8a
--- /dev/null
+++ b/games-fps/prboom/files/prboom-2.5.0-nvidia-test.c
@@ -0,0 +1,3 @@
+#include <SDL/SDL_opengl.h>
+PFNGLCOLORTABLEEXTPROC glColorTableEXT;
+int main(){return 0;}
diff --git a/games-fps/prboom/files/prboom-2.5.0-nvidia.patch b/games-fps/prboom/files/prboom-2.5.0-nvidia.patch
new file mode 100644
index 000000000000..2b7aa9b32d46
--- /dev/null
+++ b/games-fps/prboom/files/prboom-2.5.0-nvidia.patch
@@ -0,0 +1,48 @@
+--- src/gl_intern.h.orig 2003-09-21 16:39:30.247451624 -0400
++++ src/gl_intern.h 2003-09-21 16:39:41.610724144 -0400
+@@ -84,6 +84,6 @@
+ #define min(a,b) ((a)<(b)?(a):(b))
+ #endif
+
+-PFNGLCOLORTABLEEXTPROC gld_ColorTableEXT;
++//PFNGLCOLORTABLEEXTPROC gld_ColorTableEXT;
+
+ #endif // _GL_INTERN_H
+--- src/gl_main.c.orig 2003-09-21 16:39:55.436622288 -0400
++++ src/gl_main.c 2003-09-21 16:43:00.943420968 -0400
+@@ -285,6 +285,7 @@
+
+ if (strcasecmp(extension, "GL_EXT_texture_filter_anisotropic") == 0)
+ gl_texture_filter_anisotropic = true;
++/*
+ else if (strcasecmp(extension, "GL_EXT_paletted_texture") == 0) {
+ if (gl_use_paletted_texture) {
+ gl_paletted_texture = true;
+@@ -304,6 +305,7 @@
+ else
+ lprintf(LO_INFO,"using GL_EXT_shared_texture_palette\n",glGetString(GL_VENDOR));
+ }
++*/
+
+ extension = p;
+ } while (*extension != '\0');
+@@ -761,7 +763,7 @@
+ pal[transparent_pal_index*4+1]=0;
+ pal[transparent_pal_index*4+2]=0;
+ pal[transparent_pal_index*4+3]=0;
+- gld_ColorTableEXT(GL_SHARED_TEXTURE_PALETTE_EXT, GL_RGBA, 256, GL_RGBA, GL_UNSIGNED_BYTE, pal);
++// gld_ColorTableEXT(GL_SHARED_TEXTURE_PALETTE_EXT, GL_RGBA, 256, GL_RGBA, GL_UNSIGNED_BYTE, pal);
+ W_UnlockLumpName("PLAYPAL");
+ } else {
+ if (palette>0)
+--- src/gl_texture.c.orig 2003-09-21 16:43:18.450759448 -0400
++++ src/gl_texture.c 2003-09-21 16:43:39.549551944 -0400
+@@ -178,7 +178,7 @@
+ pal[transparent_pal_index*4+1]=0;
+ pal[transparent_pal_index*4+2]=0;
+ pal[transparent_pal_index*4+3]=0;
+- gld_ColorTableEXT(target, GL_RGBA, 256, GL_RGBA, GL_UNSIGNED_BYTE, pal);
++// gld_ColorTableEXT(target, GL_RGBA, 256, GL_RGBA, GL_UNSIGNED_BYTE, pal);
+ W_UnlockLumpName("PLAYPAL");
+ }
+
diff --git a/games-fps/prboom/metadata.xml b/games-fps/prboom/metadata.xml
new file mode 100644
index 000000000000..55dd7e52946f
--- /dev/null
+++ b/games-fps/prboom/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">prboom</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-fps/prboom/prboom-2.5.0.ebuild b/games-fps/prboom/prboom-2.5.0.ebuild
new file mode 100644
index 000000000000..c5e44d420eef
--- /dev/null
+++ b/games-fps/prboom/prboom-2.5.0.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils toolchain-funcs games
+
+DESCRIPTION="Port of ID's doom to SDL and OpenGL"
+HOMEPAGE="http://prboom.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz
+ mirror://gentoo/${PN}.png"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 arm x86"
+IUSE=""
+
+DEPEND="media-libs/libsdl[joystick,video]
+ media-libs/sdl-mixer
+ media-libs/sdl-net
+ !<games-fps/lsdldoom-1.5
+ virtual/opengl
+ virtual/glu"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ ebegin "Detecting NVidia GL/prboom bug"
+ $(tc-getCC) "${FILESDIR}"/${P}-nvidia-test.c 2> /dev/null
+ local ret=$?
+ eend ${ret} "NVidia GL/prboom bug found ;("
+ [ ${ret} -eq 0 ] || epatch "${FILESDIR}"/${P}-nvidia.patch
+ epatch "${FILESDIR}"/${P}-libpng14.patch
+ sed -i \
+ -e '/^gamesdir/ s/\/games/\/bin/' \
+ src/Makefile.in \
+ || die "sed failed"
+ sed -i \
+ -e 's/: install-docDATA/:/' \
+ -e '/^SUBDIRS/ s/doc//' \
+ Makefile.in \
+ || die "sed failed"
+ sed -i \
+ -e 's:-ffast-math $CFLAGS_OPT::' \
+ configure \
+ || die "sed configure failed"
+}
+
+src_configure() {
+ # leave --disable-cpu-opt in otherwise the configure script
+ # will append -march=i686 and crap ... let the user's CFLAGS
+ # handle this ...
+ egamesconf \
+ --enable-gl \
+ --disable-i386-asm \
+ --disable-cpu-opt \
+ --with-waddir="${GAMES_DATADIR}/doom-data"
+}
+
+src_install() {
+ default
+ emake DESTDIR="${D}" install
+ doman doc/*.{5,6}
+ dodoc doc/README.* doc/*.txt
+ doicon "${DISTDIR}"/${PN}.png
+ make_desktop_entry ${PN} "PrBoom"
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ elog "To play the original Doom levels, place doom.wad and/or doom2.wad"
+ elog "into ${GAMES_DATADIR}/doom-data"
+ elog "Then run ${PN} accordingly."
+ elog
+ elog "doom1.wad is the shareware demo wad consisting of 1 episode,"
+ elog "and doom.wad is the full Doom 1 set of 3 episodes"
+ elog "(or 4 in the Ultimate Doom wad)."
+ elog
+ elog "You can even emerge doom-data and/or freedoom to play for free."
+}
diff --git a/games-fps/quake1-data/Manifest b/games-fps/quake1-data/Manifest
new file mode 100644
index 000000000000..e14a179b614a
--- /dev/null
+++ b/games-fps/quake1-data/Manifest
@@ -0,0 +1,4 @@
+EBUILD quake1-data-2.40.ebuild 1558 SHA256 86f8911557682904ff3da69e53b7a08593cc97f4c6276b0d4b979f0d590bfa1f SHA512 0b60f932f0062c343647363277967e7acc0c7c81f67bc6ab8b281a19ab7230be04db4a33cd4afabed9c121a4c718dbb0becbe0e997c60f9b92de8f0c5548da66 WHIRLPOOL 31ea4238eb15b958cfd049462fd67cb85e1c2f0a42ee08f366671f2cc34e8a1617560fbd197ed78b409683b2907e85f7a8500106c125ce072d2c7b87bc1fc12d
+MISC ChangeLog 2737 SHA256 4e897d49f8257836f3ca8a1bf5fc7c9e6d5cacabd47986d41f0f378c45a7f4c9 SHA512 97ff9010a30dc037c46f7f4d2a1c1620c512724fc258f347c6e200e359838f5a52bc2974c70e89ef2b95a47ff507536359b568ec5fe2c251fb70b41dc76a5857 WHIRLPOOL 5da6fb14afee3aa31f5ae645f05e013a07a563b1665bd5fb0b280c4df30859b012119ad19d69f917cccb9e53d8f943ecd5e89cf66bac762925f90ad3c0084e7a
+MISC ChangeLog-2015 1946 SHA256 0cdcb47f1b235aa3fcaf99cfb73951230b56f3793beccaf712c661f792545445 SHA512 6ee4e4916cd9cac7ea92daaf34a0873f69861314a1d58063c4f6a12ddbc71dd3b218884d1ffe8ccd612c277b75545b3a601b1c1d8603939f63bfda5133fe439c WHIRLPOOL b8afe7c441f3f70cd43ac6b8e2a335d7f56f668ea1ccca09d2f5ce3d99f9cc65c877a5cba3fc2279e4ea97cb4e396b6d40947a252169e08e35a825fa325826c1
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-fps/quake1-data/metadata.xml b/games-fps/quake1-data/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-fps/quake1-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-fps/quake1-data/quake1-data-2.40.ebuild b/games-fps/quake1-data/quake1-data-2.40.ebuild
new file mode 100644
index 000000000000..bb3a40e46345
--- /dev/null
+++ b/games-fps/quake1-data/quake1-data-2.40.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# TODO: if installing off of the 1.01 cd, need to fetch the
+# quake shareware and use that pak0
+# http://linux.omnipotent.net/article.php?article_id=11287
+# ftp://ftp.cdrom.com/pub/idgames/idstuff/quake/quake106.zip
+
+EAPI=5
+inherit eutils cdrom games
+
+DESCRIPTION="iD Software's Quake 1 ... the data files"
+HOMEPAGE="http://www.idsoftware.com/games/quake/quake/"
+SRC_URI=""
+
+LICENSE="all-rights-reserved"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="app-arch/lha"
+RDEPEND="!games-fps/quake1-demodata[symlink]"
+
+S=${WORKDIR}
+
+src_unpack() {
+ export CDROM_NAME_SET=("Existing Install" "Quake CD (1.01)" "Ultimate Quake Collection" "Quake CD (newer)")
+ cdrom_get_cds id1:q101_int.1:Setup/ID1:resource.1
+ if [[ ${CDROM_SET} == "1" ]] ; then
+ echo ">>> Unpacking q101_int.lha to ${PWD}"
+ cat "${CDROM_ROOT}"/q101_int.1 "${CDROM_ROOT}"/q101_int.2 > \
+ "${S}"/q101_int.exe
+ lha xqf "${S}"/q101_int.exe || die
+ rm -f q101_int.exe
+ elif [[ ${CDROM_SET} == "3" ]] ; then
+ echo ">>> Unpacking resource.1 to ${PWD}"
+ lha xqf "${CDROM_ROOT}"/resource.1 || die
+ fi
+}
+
+src_install() {
+ insinto "${GAMES_DATADIR}"/quake1/id1
+ case ${CDROM_SET} in
+ 0) doins "${CDROM_ROOT}"/id1/*
+ dodoc "${CDROM_ROOT}"/*.txt
+ ;;
+ 1|3)doins id1/*
+ dodoc *.txt
+ ;;
+ 2) newins "${CDROM_ROOT}"/Setup/ID1/PAK0.PAK pak0.pak
+ newins "${CDROM_ROOT}"/Setup/ID1/PAK1.PAK pak1.pak
+ dodoc "${CDROM_ROOT}"/Docs/*
+ ;;
+ esac
+ prepgamesdirs
+}
diff --git a/games-fps/quake1-demodata/Manifest b/games-fps/quake1-demodata/Manifest
new file mode 100644
index 000000000000..a07fea8f03cf
--- /dev/null
+++ b/games-fps/quake1-demodata/Manifest
@@ -0,0 +1,5 @@
+DIST quake106.zip 9094045 SHA256 ec6c9d34b1ae0252ac0066045b6611a7919c2a0d78a3a66d9387a8f597553239 SHA512 8960c48d9c3c8bb142fd812968d29f05304384bd559b5cdb1d2cb8b6faac84d30ebf9cdf5e5e4eb3739907d9b599ca2ba34035647c58a8ed1874bdc7f0b75e1d WHIRLPOOL ff39f8931b6e551761c75f2552e568e0d3e71a8926cc43479323e2cb2ca7773f049a34f6628a8e42739f6a5fa0f64053bef1ac63ade761d549ab6b1b78f8954e
+EBUILD quake1-demodata-1.06.ebuild 1645 SHA256 2ef7ade54eb9750490b4dc89e2e9706ff1ba4e67e32acf8e0168eb1b9c50c3e1 SHA512 52e54bb3e1552fe9bfae6f50d57bc989b3af525ab74632867c2989b39f41a2884cfbdd623965b9a1a3e10014f091af743484c5c2f77295b0dd6a9ec53ea07a52 WHIRLPOOL 2338bc52d71d8ec9499c3357b426ea0d9a1fab07b80992a0909c9fdd1b238487c6edc713d141e5729bcfec901795d066d9f91e6aae49f008e4ae026c94ce4697
+MISC ChangeLog 2450 SHA256 efdb8792a8b8571a80df9e5f97296c12737d0f6fef978bdab2327fae6a31e26e SHA512 21bfda360bd908f773fa444134d5fe0e9236e571faae690ed4fc17c83be4ccbc5a28402d5bf8be6fc6b32266bf44791e24833b53f95a060b23e61842f60ad98a WHIRLPOOL 4c235046814d18615e32ca0ec3d160cf1da3854b5286a375bab71cbded01be5ffe80a753bbcdc0d9d1acc110ca250102a7fb266b7e92dc4dfeb28b7d04afbf0f
+MISC ChangeLog-2015 1699 SHA256 3f6c4593382fa1e5ba02fb1efdb08d5d2d3845f80695fdf195af76e8a4045363 SHA512 05374565dd09cd2f4cad62907bd64f0775d48c3d5d27eed1fced5912d735bf391ff37f2fc07a5701b460a87d1135e8477dfdbf5319f2928ea2dfd7756bf4659a WHIRLPOOL 0e9bdee91218f9e7a84b50804930e9bb0d32ba3163342adbf255f3dca203584b607c2fb2a4ba10a590421f39f2375bf1312d3561536214d4d25c2c2ff32a6260
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-fps/quake1-demodata/metadata.xml b/games-fps/quake1-demodata/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-fps/quake1-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-fps/quake1-demodata/quake1-demodata-1.06.ebuild b/games-fps/quake1-demodata/quake1-demodata-1.06.ebuild
new file mode 100644
index 000000000000..d1348f05b8ab
--- /dev/null
+++ b/games-fps/quake1-demodata/quake1-demodata-1.06.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+EAPI=5
+inherit eutils versionator games
+
+MY_PV=$(delete_all_version_separators)
+MY_PN="quake"
+
+DESCRIPTION="Demo data for Quake 1"
+HOMEPAGE="http://en.wikipedia.org/wiki/Quake_I"
+SRC_URI="mirror://idsoftware/${MY_PN}/${MY_PN}${MY_PV}.zip"
+
+# See licinfo.txt
+LICENSE="quake1-demodata"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="symlink"
+
+RDEPEND=""
+DEPEND="app-arch/lha
+ app-arch/unzip"
+
+S=${WORKDIR}
+dir=${GAMES_DATADIR}/${MY_PN}1
+
+pkg_setup() {
+ games_pkg_setup
+
+ if has_version "games-fps/quake1-data" ; then
+ ewarn "games-fps/quake1-data already includes the demo data,"
+ ewarn "so this installation is not very useful."
+ echo
+ if use symlink ; then
+ eerror "The symlink for the demo data conflicts with the cdinstall data"
+ die "Remove the 'symlink' USE flag for this package"
+ fi
+ ebeep
+ epause
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+
+ # File rename for bug #159100
+ mv resource.{1,x}
+
+ lha xfq resource.x || die "lha failed"
+ # Don't want to conflict with the cdinstall files
+ mv id1 demo
+}
+
+src_install() {
+ insinto "${dir}"
+ doins -r demo
+
+ dodoc *.txt
+
+ if use symlink ; then
+ # Make the demo the default, so that people can just run it,
+ # without having to mess with command-line options.
+ cd "${D}/${dir}" && ln -sfn demo id1
+ fi
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+
+ elog "This is just the demo data."
+ elog "You will still need a Quake 1 client, to play, such as darkplaces."
+ echo
+
+ if use symlink ; then
+ elog "id1 has been symlinked to demo, for convenience, within:"
+ elog "${dir}"
+ echo
+ fi
+}
diff --git a/games-fps/quake1-killer/Manifest b/games-fps/quake1-killer/Manifest
new file mode 100644
index 000000000000..debc8abc883e
--- /dev/null
+++ b/games-fps/quake1-killer/Manifest
@@ -0,0 +1,5 @@
+DIST kqp220z.zip 2952348 SHA256 be8a4f5471cbc68ace0c954012795a38b12ba21613418e111271049767ae1972 SHA512 8149795435cf72c4358dc35cce473482b718b67cc799ce4739d975cf5fe3e856735cbcd1f40c7b6a345aee8bf830147ecb37e312b1cb141b40c14cc95fd0f56e WHIRLPOOL 2d2b3356d73af0bcdba08f879f09538ea06772fcae3050342c6a57d5c007e8a371b1c7b373bc9aaf05d6a1a6ba6148497f12e4fd4bb361dcab7f05b28a1427d0
+EBUILD quake1-killer-2.2z.ebuild 643 SHA256 577ecb3f8e9e3bc11e7df3d4c0206696d48664889752e63c9ac8d786fb2e370c SHA512 a88dc4638e64b5d820984bb5b11b92159ad08ea17011bda5bb72034df9a4ae25a24e52105dfe7f545ddc2fac66c3f618476404fa5a9f9b044db6e4facc7a6bbf WHIRLPOOL 70892597a41eeb18c23459838cc722e9152cb984de52dea269516c5abc858d8d49fe7751c1aff74d38fcebfd86160e3a2f071747239be8fdd564de0e7e456db9
+MISC ChangeLog 2444 SHA256 8e814a45f64f25981107a5d06836c7b2e4ea561da5fb3f56a2104f0581adfb88 SHA512 1a9ff378e4f23501b106e413941bff019019387102b66dee78a6ae1f0abc9374497db0c98575deeab416cec34c0b0988853bab3f23a220cd61142aa48a34161b WHIRLPOOL ef6046aded5bd842bd3fbc356622bca3e74b008f2da8dfca4cc67a6232f52edf76fd289d9dbc1209319014e078d6009c17aa73bffafd0fc271da236f49dff531
+MISC ChangeLog-2015 892 SHA256 393d8b9852de585712ff6a5a7a92e213dc0617ecbcf9b913cd379369297021b6 SHA512 6488bdd7c9fe9f817c71263d1ca00a1544a176399cad2c3b51bfd2ad3f9abb84c1ef2cf524998f01c719fa8425420dfad722f6d52c7ac3673636fd432ffc10b2 WHIRLPOOL 3b0ed56f483b6d692402778409cab1f983421dd4e845827bd090cff6bc0a3273f3294f793d36716728b6c56377b922f60a96fc7881616fbde3863b97b55ad952
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-fps/quake1-killer/metadata.xml b/games-fps/quake1-killer/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-fps/quake1-killer/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-fps/quake1-killer/quake1-killer-2.2z.ebuild b/games-fps/quake1-killer/quake1-killer-2.2z.ebuild
new file mode 100644
index 000000000000..67957bae46cc
--- /dev/null
+++ b/games-fps/quake1-killer/quake1-killer-2.2z.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+EAPI=5
+inherit games
+
+DESCRIPTION="The Killer Quake Patch"
+HOMEPAGE="http://kqp.horoy.com/"
+SRC_URI="http://www.gamers.org/pub/idgames2/quakec/compilations/kqp220z.zip
+ mirror://gentoo/kqp220z.zip"
+
+LICENSE="quake1-killer"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND=""
+DEPEND="app-arch/unzip"
+
+S=${WORKDIR}
+
+src_unpack() {
+ echo ">>> Unpacking kqp220z.zip to ${PWD}"
+ unzip -qoL "${DISTDIR}"/kqp220z.zip || die "unpacking kqp220z.zip failed"
+}
+
+src_install() {
+ insinto "${GAMES_DATADIR}/quake1/killer"
+ doins -r *
+ prepgamesdirs
+}
diff --git a/games-fps/quake1-rally/Manifest b/games-fps/quake1-rally/Manifest
new file mode 100644
index 000000000000..ad98c84d5700
--- /dev/null
+++ b/games-fps/quake1-rally/Manifest
@@ -0,0 +1,6 @@
+DIST qr12.zip 9885866 SHA256 a4f269389472256fd54236de4bae2443abf1bd3214d2dec7719c2cd79dc083bb SHA512 a49b00e67b95c06b4898ad8e1f9e0a718c025736e7d68d3aa8e6ff9cf3062ea8a0cd0ea0deee5c2af8e3e30652c4420cd4b030b3bd8f1dd4ace9236bfaaf5e5a WHIRLPOOL ab2d44654a66cc408f9881cb573a86384fc0163c6d21e507a626bbd536a5d222fd08384c22259664b870f11eb604d9cd134c1061de8de8bcc95c03de7ecb3dab
+DIST qrlo1.zip 4086037 SHA256 0b575ac4871ea14926ebfb376675917e4c3c654ac00bb7f49a2277d6e8f1a0a5 SHA512 94af61a0f6978c39425cbc414e094417deef99f109aac2905877b3723873657c3ef7d7ae7d3b247144d68eabbfb79750a654e627ac039d315ff0f2fd323f395d WHIRLPOOL 7f01deb7dbcac519c4d481d38e45b5215eb4ed1f83ebc25c7cd316354e53ddbe5015ee41d70a57f7ded4c01667e930272f4790f5ad7f5eb422aa4dbae622fa0b
+EBUILD quake1-rally-1.2.ebuild 926 SHA256 4fea157b849652dd436d91a65a1ca7b15f263205d94d57ce54658564717ce5d9 SHA512 09dda216f97212ea3d86274e4f2c4af8f8e19ed9d6a208966195d8f88f072ab470e633e9390f731997dc73ccd427c83b79e4c1f7d770d9014e15b7a2202743f9 WHIRLPOOL 73fe51dc274bc61e95ce844ccf236b530ef30d0993bd5b1d85a1432c17b73c956936f48d96689735e832c69a5c85d64941c3e276ff99c35ecb262ae42a658892
+MISC ChangeLog 2439 SHA256 0813a3aa6b2013de826b8fad41641c871cf19ee63210dbfc93fbb86c4608b202 SHA512 9416aa22e6830946e3e50423a7fa20cf82d7bd0a400168e21a272e1e2ef8c14938c55957b8e496e0c581de2318de1b402e8fd9c1eb55eb16d2419275b0d4534e WHIRLPOOL c4686aac0b2eb1024156db80b2bee672e0ab932ef8a909773a0e3faac781896731b7591093eafee1862018d003e4e49b552fd9d196b0324bc9c33fe95f0c6687
+MISC ChangeLog-2015 892 SHA256 c6a3a44a556c83a714354786d5f5a72d5b987733d36895257c0be45000d50a91 SHA512 db812155b15aaf3a1e3447fda1f560e9a53dc4a2057c02a1ac79547421146ae0a765bc84aebf61363571022ed41276f9c7d86d7ce5e291d57814b1778293b871 WHIRLPOOL c0c1203b8bf8a3e986d59863b4cacdbef970831a20fe3ddfd628a3d85afbf004483b6fb126c8d6664ce9efd327c6c86feca60a84d4be04dca66745bee180e723
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-fps/quake1-rally/metadata.xml b/games-fps/quake1-rally/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-fps/quake1-rally/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-fps/quake1-rally/quake1-rally-1.2.ebuild b/games-fps/quake1-rally/quake1-rally-1.2.ebuild
new file mode 100644
index 000000000000..315426ed3f7d
--- /dev/null
+++ b/games-fps/quake1-rally/quake1-rally-1.2.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 games
+
+DESCRIPTION="TC which turns Quake into a Rally racing game"
+HOMEPAGE="http://wiki.quakeworld.nu/Quake_Rally"
+SRC_URI="http://ehall.freeshell.org/quake/qr12.zip
+ http://ehall.freeshell.org/quake/qrlo1.zip"
+
+LICENSE="all-rights-reserved"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+RESTRICT="mirror bindist"
+
+RDEPEND=""
+DEPEND="app-arch/unzip"
+
+S=${WORKDIR}
+
+src_unpack() {
+ echo ">>> Unpacking qr12.zip to ${PWD}"
+ unzip -qoLL "${DISTDIR}"/qr12.zip || die "unpacking qr12.zip failed"
+ echo ">>> Unpacking qrlo1.zip to ${PWD}"
+ unzip -qoLL "${DISTDIR}"/qrlo1.zip || die "unpacking qrlo1.zip failed"
+ rm -f button.wav qrally.exe
+ cd rally
+ edos2unix $(find . -name '*.txt' -o -name '*.cfg')
+ mv rally{,.example}.cfg
+}
+
+src_install() {
+ insinto "${GAMES_DATADIR}/quake1"
+ doins -r *
+ prepgamesdirs
+}
diff --git a/games-fps/quake1-teamfortress/Manifest b/games-fps/quake1-teamfortress/Manifest
new file mode 100644
index 000000000000..3af2ec08e456
--- /dev/null
+++ b/games-fps/quake1-teamfortress/Manifest
@@ -0,0 +1,6 @@
+DIST tf28.zip 4204316 SHA256 56a6767b7944f2ce54423f18f1cd59239ae37a7c7456f684227d6f5310c76291 SHA512 2b158982fbf501712fa31fae7b8d34ce4adf41c7ada7c32549bc94ea7370f56b7ebb03f08f70c38c4e53a4ba49a95cbd23acda39eddc4a360d236cc0129a3262 WHIRLPOOL aeeb5b1c8389b334cd630813e8969ab6a7af74ef13556e5667b65407479e03368649bf6300497a8963c30ed5b7d4fdb675d315749824a0fc21bd23f996402135
+DIST tf29qw.zip 626175 SHA256 85b24b677bbe3c6848949a90b06c5470dee40dab6db5f16c69472ba9d3194e4d SHA512 77ea488e5d9fcd3ad91317f2a35bd9e19ca38712cf9bf248bcfa88d1a5a66577ccc504476ecfb5d06bb7a28cd93ce92d3728f4be825c93567c8c2b61cb80c08d WHIRLPOOL f8acc7a45b991c3e15d2b2e1f667c9732f6ae239583bc823f2b1a3dddf6ce27e748991288a2618129f709e0a942d2030af2ccb4f598c0039223e1f4b96b6234c
+EBUILD quake1-teamfortress-2.9.ebuild 854 SHA256 a460bac431ad54914447aa31f828cbdccb6af0d414fdb1bf41ea0bcdacb11188 SHA512 2854c0bdf6f00737c4b01093a5849f98256b320b670df4d45deade869c808ad797562d7da89e8c565b472dee3062e128599db059d3994c5c065ee2478f682dbb WHIRLPOOL 6a088b88a79a5a19ab7108342cd6c85d176bda28e9990a7ef9a0cddf097c5062861a5d05004787029dc954ce3c4480037df6268e48ca33a44a95a1ed76832e61
+MISC ChangeLog 2460 SHA256 901eb7a9bba364d52001a68c9e09220abf12dc786cf6d3c51954ae01c49d84dd SHA512 45951763434c93f2599fa15a41b9213c44a846afc2722567862fbf926424fc3805a9e2aaf863c96ce5429e3a5b06269db0ddeca43be6e94d93b8a309c54d7ba3 WHIRLPOOL b18aedfea93feb656efe1ceff05737a2f144dd223678cfaf11a124c596a1994c4ce23953a773d059f5148f1b8b296a7820e2aa61ca693fe98ecd6a504849ebe8
+MISC ChangeLog-2015 813 SHA256 1ec219b5fd31274b9410b16f909959c13df8581449c3d4f84a69549413c467fd SHA512 24fe8853890448491e0d66b3c6296690125b5c1d9c78c047cf78d850b0358fb247ae589ed85a89bc035347418c7eb6bd46e55e69e3dae9be86d7debd83cad8de WHIRLPOOL 7f95d4851a38d36185deeabfa70c38ee6515f1c0eb67dd7d0bda9233e42d77304e1bc4c9e4037c8c278ff5c1bbbbd4f75751a3809fae3476f78ff1f3fd3a4228
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-fps/quake1-teamfortress/metadata.xml b/games-fps/quake1-teamfortress/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-fps/quake1-teamfortress/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-fps/quake1-teamfortress/quake1-teamfortress-2.9.ebuild b/games-fps/quake1-teamfortress/quake1-teamfortress-2.9.ebuild
new file mode 100644
index 000000000000..9e659763e5a9
--- /dev/null
+++ b/games-fps/quake1-teamfortress/quake1-teamfortress-2.9.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
+
+DESCRIPTION="The classic Team Fortress Quake World mod"
+HOMEPAGE="http://www.planetfortress.com/teamfortress/"
+SRC_URI="mirror://gentoo/tf28.zip
+ mirror://gentoo/tf29qw.zip"
+
+LICENSE="quake1-teamfortress"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND=""
+DEPEND="app-arch/unzip"
+
+S=${WORKDIR}
+
+src_unpack() {
+ echo ">>> Unpacking tf28.zip to ${PWD}"
+ unzip -qoL "${DISTDIR}"/tf28.zip || die "unpacking tf28.zip failed"
+ cd fortress
+ echo ">>> Unpacking tf29qw.zip to ${PWD}"
+ unzip -qoL "${DISTDIR}"/tf29qw.zip || die "unpacking tf29qw.zip failed"
+
+ edos2unix $(find . -name '*.txt' -o -name '*.cfg')
+ mv server.cfg server.example.cfg
+}
+
+src_install() {
+ insinto "${GAMES_DATADIR}/quake1"
+ doins -r *
+ prepgamesdirs
+}
diff --git a/games-fps/quake1-textures/Manifest b/games-fps/quake1-textures/Manifest
new file mode 100644
index 000000000000..6c8c8bf92910
--- /dev/null
+++ b/games-fps/quake1-textures/Manifest
@@ -0,0 +1,6 @@
+DIST SKINSbmodels-48files-4-23-05.zip 12627945 SHA256 85a450b23eeb44539a3cf1a4c9feb1aeb56a14ec4b89d01dba5d237b8987c284 SHA512 dcd39b7d8544d4c381b2917820e1cec193f4279eca1c2d1b260cfc0d019a224bef84b4cd6a19da37331913533541d90ac72ac119592eb95cc82c9e2bac8ab37e WHIRLPOOL c739d092d62aab173c4c9e75a32ca36a58baf81ed0c22f53c109171240d1acedb12d5af848fc21c4b2adf7f177ce426d90e029a4e4ffb09c1b6ffcf88caff871
+DIST textures-486files-8-20-05.rar 207799283 SHA256 e368e0e12cf09d128eaac78e455cc4e280a38a641e8400d3c939f9889df8a1b1 SHA512 3809bea3ff1d7bc7acff51d8f19890677a563778cfb418d3f6ae940ceffa8953a1cf10dd7cc3a5d30715e6d2e79331ec88dd72f1ba22ebec0d179a01ad0eda2a WHIRLPOOL 8eee01a75c6d8b8b31b3ad8ac6f1c4ef819ccb1cef131e529d240d4ffb42e29dc638f23a32bab565a26e5c0c0860f3f847f7c95434edabb0c799b571415672c1
+EBUILD quake1-textures-20050820.ebuild 1011 SHA256 3e7593a78309a5da8fc61e3f65490c01e8258c48f10015270dc28d9f3f057290 SHA512 67d1454953f2df1d1fbed61775268abf96079a018d234653d8197dc626684dae377d1c0812417216ea7b97d70be236cdca41914cd5820113c8083e2a1b8ac2a0 WHIRLPOOL 57067a57e42754deeb1573f78b61d859f90c97b5fdc3e464112abd89aa9fd507bc01c2d74a94eb56aa1363389a9f12bcd46172b430be7fd486c5b5f038ed4770
+MISC ChangeLog 2458 SHA256 30245fae8f1d4479399f5bfc4ba2cd5b1e446d1440f7f23d6fd0dbdfcd1e67e9 SHA512 912b4cee4bf02be72f4270f959cc5e9fa6a95c67d5f963c0ce674af0a60a7ceb9140b6d7cc65d2487c7482ba80be63f58828c5fdd674631dba1ea58d969879eb WHIRLPOOL eea206dd54a093cbe1ea456dd8237a9c21e421a0744ab931219be997c668783403b8578da4ad6cd2f9267d9a89651006f822f3d38616d0bfcf3870428397edf9
+MISC ChangeLog-2015 1919 SHA256 b6884312c3742964c680e7c3b97728132b2a5d912e3994785a6667a1ef9dd18c SHA512 365772bb86466db2931f0bdc510cbae49750e549dbd6de2e2ecf07ed6cfb0ab3b5120107375b5ce5a676465df44d5e46dd8f47a445a96d5c17dc04dfccbc7fe6 WHIRLPOOL 9418c1a4c8c1b8e3c09ca4b83f68ff4dc1bea40a87b96ae17d8ccb38b83d6614178f00f1ac94950c05a10c5bbb849b0091d2bb5bbcd54e47e9bee0a87d0ad3ef
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-fps/quake1-textures/metadata.xml b/games-fps/quake1-textures/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-fps/quake1-textures/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-fps/quake1-textures/quake1-textures-20050820.ebuild b/games-fps/quake1-textures/quake1-textures-20050820.ebuild
new file mode 100644
index 000000000000..b96d164e0011
--- /dev/null
+++ b/games-fps/quake1-textures/quake1-textures-20050820.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+EAPI=5
+inherit eutils games
+
+MY_SKINS="SKINSbmodels-48files-4-23-05.zip"
+MY_TEXTURES="textures-486files-8-20-05.rar"
+
+DESCRIPTION="Collection of graphical improvements for Quake 1"
+HOMEPAGE="http://facelift.quakedev.com/"
+SRC_URI="http://facelift.quakedev.com/download/${MY_SKINS}
+ http://facelift.quakedev.com/download/${MY_TEXTURES}"
+
+LICENSE="quake1-textures"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND=""
+DEPEND="app-arch/unzip
+ || (
+ app-arch/unrar
+ app-arch/rar )"
+
+S=${WORKDIR}
+dir=${GAMES_DATADIR}/quake1
+
+src_unpack() {
+ unpack ${A}
+
+ mv readme.txt skins.txt
+}
+
+src_install() {
+ insinto "${dir}"/id1/textures
+ doins -r *.tga
+
+ # Set up symlink, for the demo levels to include the textures
+ dosym "${dir}/id1/textures" "${dir}/demo/textures"
+
+ dodoc *.txt
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+
+ elog "Use a Quake 1 client (e.g. darkplaces) to take advantage of these."
+}
diff --git a/games-fps/quake2-data/Manifest b/games-fps/quake2-data/Manifest
new file mode 100644
index 000000000000..880ebc972f92
--- /dev/null
+++ b/games-fps/quake2-data/Manifest
@@ -0,0 +1,5 @@
+DIST q2-3.20-x86-full-ctf.exe 19267584 SHA256 f82197c8c8089202a4b3a85d8833b0c2e827a709d205c760369407c212488baa SHA512 056a56f218f3fd7a3c5270665990bb347ce3e6f4aa8afa3b65a5d291d3b0cd149e3b58ed0cd136bd3edecb3c080f790f9dac68c63d19f095818720f0537b5bad WHIRLPOOL fbff168a81452635c1e0c593298885929c30c74b426e6b602242d24b2ae2299d6ebaeb46587c97599c92e5f5540481944cbe94f91a01e2a102596e62d4c55756
+EBUILD quake2-data-3.20.ebuild 2459 SHA256 1dc2a2b4ab82b308a3a63c4986e5ced219cb2b332faba8ad3805bc0a2a934fdc SHA512 31322198a9b59c87debf55afc0260eb3f216dbe0b7f7f8baf762dec3fb5537c5aa81158966fcd09e0c65478cb96fb8093fd99a3cb653102366335134a4f0b1d4 WHIRLPOOL d5bc06c295dc67f79479404ea2c99f67a82b8c2679ffc014559a380755821a627f32852a05d2ed0744f87c07a13e2f4848c8d3ac29eaf7e0ad2fbb2d66a5980d
+MISC ChangeLog 2565 SHA256 bfa46200467039c8fa9355a612d597e4065255b72375fdbb4fd163877fdcaa39 SHA512 e139add5a06f6469fa599fc376c6f4bdd6e15a90d4776c581c27a458bde9137f4bcfc2f764d572aa1a1f125af5900b935988c02c9f957e6b1b8020a7e8e5b1e4 WHIRLPOOL d621967b97d807d494e2264cd56db324cc1f23e44780c9d3de2036c2e0493d62794f3002960d8186f2a89f3bbd773d32deaee6963b7528d6e037774a3faef346
+MISC ChangeLog-2015 2487 SHA256 8e19e55388ce063d120b7e504717bb43119bc037465c44a8001794234008c177 SHA512 ad88d2ac941dbedd50baae2921cca88c6f059ffdefdf50ff838b950e3e48b98f25dde219b49cc10da953923f25f714ab5722aa8f325c9a674dd70bffc525860e WHIRLPOOL 722db1ae5333b1e9514796066ba2feff776a61e4248aa33461f4364f85b886b059d218385194c671ae98ade9d454d7252096d4df87fd7b3ef5fd15b4cde47bb1
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-fps/quake2-data/metadata.xml b/games-fps/quake2-data/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-fps/quake2-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-fps/quake2-data/quake2-data-3.20.ebuild b/games-fps/quake2-data/quake2-data-3.20.ebuild
new file mode 100644
index 000000000000..08ed81faab7d
--- /dev/null
+++ b/games-fps/quake2-data/quake2-data-3.20.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit unpacker eutils cdrom games
+
+DESCRIPTION="iD Software's Quake 2 ... the data files"
+HOMEPAGE="http://www.idsoftware.com/"
+SRC_URI="mirror://idsoftware/quake2/q2-${PV}-x86-full-ctf.exe"
+
+LICENSE="Q2EULA"
+SLOT="0"
+KEYWORDS="~alpha amd64 x86 ~x86-fbsd"
+IUSE="videos"
+
+DEPEND="app-arch/unzip"
+RDEPEND=""
+
+S=${WORKDIR}
+
+pkg_setup() {
+ games_pkg_setup
+ if has_version "games-fps/quake2-demodata[symlink]" ; then
+ eerror "The symlink for the demo data conflicts with the cdinstall data"
+ die "Unmerge games-fps/quake2-demodata to remove the conflict"
+ fi
+}
+
+src_unpack() {
+ export CDROM_NAME_SET=("Existing Install" "Ultimate Quake Edition" "Quake2 CD" "Quake4 Bonus DVD")
+ cdrom_get_cds baseq2:Install/patch:Install:Movies
+ # The .exe is just a self-extracting .zip
+ unpack_zip ${A}
+}
+
+src_install() {
+ dodoc DOCS/* 3.20_Changes.txt
+ newdoc ctf/readme.txt ctf-readme.txt
+ case ${CDROM_SET} in
+ 0) dohtml -r "${CDROM_ROOT}"/Install/DOCS/quake2_manual/* ;;
+ 1) dohtml -r "${CDROM_ROOT}"/Install/Docs/quake2_manual/* ;;
+ 2) dohtml -r "${CDROM_ROOT}"/Install/DOCS/quake2_manual/* ;;
+ 3) dodoc "${CDROM_ROOT}"/Docs/* ;;
+ esac
+
+ local baseq2_cdpath
+ case ${CDROM_SET} in
+ 0) baseq2_cdpath=${CDROM_ROOT}/baseq2;;
+ 1) baseq2_cdpath=${CDROM_ROOT}/Install/Data/baseq2;;
+ 2) baseq2_cdpath=${CDROM_ROOT}/Install/Data/baseq2;;
+ 3) baseq2_cdpath=${CDROM_ROOT}/setup/Data/baseq2;;
+ esac
+
+ dodir "${GAMES_DATADIR}"/quake2/baseq2
+
+ if use videos ; then
+ insinto "${GAMES_DATADIR}"/quake2/baseq2/video
+ doins "${baseq2_cdpath}"/video/*
+ fi
+
+ insinto "${GAMES_DATADIR}"/quake2/baseq2
+ doins "${baseq2_cdpath}"/pak0.pak
+ doins baseq2/*.pak baseq2/maps.lst
+ dodir "${GAMES_DATADIR}"/quake2/baseq2/players
+ cp -R "${baseq2_cdpath}"/players/* baseq2/players/* \
+ "${D}/${GAMES_DATADIR}"/quake2/baseq2/players/ || die
+
+ for mod in ctf rogue xatrix ; do
+ if [[ -d ${baseq2_cdpath}/../${mod} ]] ; then
+ if use videos && [[ -d ${baseq2_cdpath}/../${mod}/video ]] ; then
+ insinto "${GAMES_DATADIR}"/quake2/${mod}/video
+ doins "${baseq2_cdpath}"/../${mod}/video/* 2>/dev/null
+ fi
+ if [[ -n $(ls "${baseq2_cdpath}"/../${mod}/*.pak 2>/dev/null) ]] ; then
+ insinto "${GAMES_DATADIR}"/quake2/${mod}
+ doins "${baseq2_cdpath}"/../${mod}/*.pak
+ fi
+ fi
+ done
+
+ insinto "${GAMES_DATADIR}"/quake2/ctf
+ doins ctf/*.{cfg,ico,pak}
+
+ prepgamesdirs
+}
diff --git a/games-fps/quake2-demodata/Manifest b/games-fps/quake2-demodata/Manifest
new file mode 100644
index 000000000000..5c4fc38a1288
--- /dev/null
+++ b/games-fps/quake2-demodata/Manifest
@@ -0,0 +1,5 @@
+DIST q2-314-demo-x86.exe 39015499 SHA256 7ace5a43983f10d6bdc9d9b6e17a1032ba6223118d389bd170df89b945a04a1e SHA512 9aa5123807a64a6e3e3b113b582efd353f176f093fd0aae6bd01d9cff397374c06948a7147f59748b3aa6f4251769e409fae838157edb66429c9d41381b3df86 WHIRLPOOL 8924090d8fa357dd0a4b5634336976baf3b4afaf59c12a5bb50298b328b974c697dfd11c56d4034afb36d4c16b151b361271252e029111ee10943630b758d522
+EBUILD quake2-demodata-3.14.ebuild 1309 SHA256 9744202352d4ba5c00631fa3f32db4a34edd8b91a5d6e185e148c6708f953d58 SHA512 c030b37bf75908f22fd94a9acfb31a6604ddbd0a90290b7c1e23587ff15932fe22a2b2fc157eab6f4af673066b44b048a94aa421764392b904a2c2e057f1f0bc WHIRLPOOL 2d8276fe6b23595468ecfdab2ff56d0ae1d48518ad05ca505bf73049b3ebc3c755cef6d537875a511a99ed524f3df7236e21fa0b41a613fa60253de237f6302c
+MISC ChangeLog 2802 SHA256 bb49ecd3ff8572d80b1cfc08888a5bca5fae463c60e3b27124e69c50d21b526d SHA512 646971f8ea3f137c51e3014e2038fe562f2977d1fab43d311dbcd8109937cef8cf97636974993ae57a3e9291fd5859ea71a7b453d6319c145bf0c45759fa87f0 WHIRLPOOL 4489b3f7fe797d232f20ae57eae53d40fb19b018c9e435459eded821b39f88ff5eac69cb959ab00d19b5455776f1a09fc8fd16d17b0bb67a93c81a4364b09160
+MISC ChangeLog-2015 1405 SHA256 776bad4aa72cb3f1b7d7421a2b0942afbb68f18e0f1118250a20fdef8353310f SHA512 372d482c89a233ed4ee0c938e09aa00c5fab25384c751f37c5e82d9ba70ac2fe20a58c2f21e4d1f490652d4cacb755f577c554ce175106c61b31b61a4e9060ca WHIRLPOOL 907c95088761578de6753c86556db2792d2df577a4daf7887e40c1bf8edc0e9637ac31ec54ad36a701801d5d6d28268f9db565df76cc49d575a021dacece9228
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-fps/quake2-demodata/metadata.xml b/games-fps/quake2-demodata/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-fps/quake2-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-fps/quake2-demodata/quake2-demodata-3.14.ebuild b/games-fps/quake2-demodata/quake2-demodata-3.14.ebuild
new file mode 100644
index 000000000000..da3488c25043
--- /dev/null
+++ b/games-fps/quake2-demodata/quake2-demodata-3.14.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit unpacker eutils versionator games
+
+MY_PV=$(delete_all_version_separators)
+MY_PN="quake2"
+FILE="q2-${MY_PV}-demo-x86.exe"
+
+DESCRIPTION="Demo data for Quake 2"
+HOMEPAGE="http://en.wikipedia.org/wiki/Quake_II"
+SRC_URI="mirror://idsoftware/${MY_PN}/${FILE}"
+
+# See license.txt - it's a bit different to Q2EULA in Portage
+LICENSE="quake2-demodata"
+SLOT="0"
+KEYWORDS="~alpha amd64 x86 ~x86-fbsd"
+IUSE="symlink"
+
+RDEPEND=""
+DEPEND="app-arch/unzip
+ !games-fps/quake2-data" # games-fps/quake2-data already includes the demo data
+
+S=${WORKDIR}
+dir=${GAMES_DATADIR}/${MY_PN}
+
+src_unpack() {
+ unpack_zip ${A}
+}
+
+src_install() {
+ insinto "${dir}"/demo
+ doins -r Install/Data/baseq2/{pak0.pak,players}
+
+ dodoc Install/Data/DOCS/*.txt
+
+ if use symlink ; then
+ # Make the demo the default, so that people can just run it,
+ # without having to mess with command-line options.
+ cd "${D}/${dir}" && ln -sfn demo baseq2
+ fi
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+
+ elog "This is just the demo data. To play, install a client"
+ elog "such as games-fps/qudos"
+ echo
+
+ if use symlink ; then
+ elog "baseq2 has been symlinked to demo, for convenience, within:"
+ elog "${dir}"
+ echo
+ fi
+}
diff --git a/games-fps/quake2-icculus/Manifest b/games-fps/quake2-icculus/Manifest
new file mode 100644
index 000000000000..ecd90f64597f
--- /dev/null
+++ b/games-fps/quake2-icculus/Manifest
@@ -0,0 +1,22 @@
+AUX 0.16-rogue-armor.patch 240 SHA256 b3e4932c1b3a40ca8e235d29d73263a06c7ed7aa4a757a613ff061a384c7ebe9 SHA512 591fccd0cbc1225982b6d95d4818a4d0ff409717de8799b1d49f424633169d8a8187206220c24b60a341337aec2e297dfd8517dd478223e7d557ee85f6ecc453 WHIRLPOOL 9cd537bdd2e62a066e0d20b513458eb97b77bfd47b7eebc520d6dab4bd8c01d5b46da53798890f7880eac7611ef829cdb109a5f135429427fc05d9a295f0b77e
+AUX 0.16-rogue-nan.patch 170 SHA256 58052b59e897789aec3c02267890689e7a0efbaa9bc5e3c78e612ce2de0f32e0 SHA512 3d9b3a95a85a6fa39f2c6f7ad5e49b313b723bfb0fa88392f8690df27c16a7d6ad7617043b6fd66dc87cbbac9b01b941b8cbc8ecf4e045b908e844832c80d26a WHIRLPOOL 956681196820db3f51e7320a93d1b510fd82b469b7410c8d321eba689427a5911d1c0d967eeace573d1409f72f4a114556e6f06fd74b7edeb35b5f20d546608b
+AUX README-postinstall 3083 SHA256 90f8cce0737adf8a95afac11ca30911a59801659cb5ebf29943792586eed1a45 SHA512 cc7441ce14117ea765a7df98b3de0370b251f444289fd8aaa03c97ea5b383d626088977bc30dfc7a30124dedce4796b5d6392dad7e3d203ee2257d71a9b49bfe WHIRLPOOL 32b83ba760f6cb4929ccdda6b2e68e68ed9decf71fb96e562451d79ba6218fa3a48ecbbe1a648e773a17b923f9c3b14e74e2d75e17e89e0ac6a40b7788560835
+AUX quake2-icculus-0.16.1-alsa.patch 4386 SHA256 acae335903b33e1d4274db167dd57961569f34e0a26142f5bfa809f754993bbd SHA512 8bb9e4d6f551ebe3e6715e044453affd7edd749650791fca32b5286038e75a59685c7d47efce8ac7b9dff488e6c2952dfdc68807f3365d276afb4b7387ad5dbc WHIRLPOOL c953f67764a4edd2316a729301c42c7bae6541f8863a12b03f3eb0f9b69d56aad8feb7d65178849e26a7787319ff4f832238bf155ea3931f9e93d9c9e1083d15
+AUX quake2-icculus-0.16.1-amd64.patch 534 SHA256 e95aeace865f089b6c1c9e0c362da407d1bd603147fb6886b9c13b37218c3a37 SHA512 03faf4b85aa176a267847196fb56204b6d02bde0ebef858a34edb3c87cb41e57636d9b6e5b3be44163e918cb4b3ff38299b2db9de90690179108ee77146b942d WHIRLPOOL 23093e8624751afb7a4ec7b524745853cafa5394bcc97acde170f7b8aa946747ffc7d97f4f55bf0c5776056b55c5d30cfef8b67102c7acbc4cca2ee742cb9d96
+AUX quake2-icculus-0.16.1-gcc41.patch 292 SHA256 bce6396cf2871ae102089a932666be6ce3a5974483a21610b135d39f95db0f59 SHA512 87193f69670e7cd6573bd4ff550202fda2702a5d7dfadb3af31f673b8910958ec3718e0d7ae558666c6a6921c43d543626dc8eaa0e3822345f33aecdbdf7ee50 WHIRLPOOL b868ba28f8bda9f454cdc80f89ad286fb25bbd27e07dbdacf0af7811b3b9b61d9ebe58aed7c7bef0c31b617046c1a31ebe7636a26291b0881db6df0fe7a430ba
+AUX quake2-icculus-0.16.1-gentoo-paths.patch 6419 SHA256 e290602dea3e13f5a2b8f5ae041957f0f0bc5b46a6ad037a17e3ca5659d32ab5 SHA512 91a83f82b013245256db386a212c044bfbd637e1685e532d2ca75959e6870e65f3763f6d83c85db184d46a0ed77b5d4a53c4f7421b55b82a4709bdfc70d0f307 WHIRLPOOL dde1c56a6daf256e8c861419b5bf54e41ff897c7c0397bb423e7fa131c19ae444b38591b0b22e408dd2c5cedc354653608ad55b993d57b218358ac58c45acf7e
+AUX quake2-icculus-0.16.1-gnusource.patch 316 SHA256 2217f9e8ed131967f018d8b0b64aa9dc317cc14b18c837da7c58450126cf5731 SHA512 0e1bed0bfd7ab31ad574a17534a49e89b44ef99308b90d9a30726f7d39ec4606514643e064968a5d9e53dd7a20394d5a27162fba06f37713ee3bc1e65f31b76b WHIRLPOOL b63d75b344e3353b828fbc2ebca1145b8400ebddd71e1e780a75a32decd825b0296386e03f500ab069805660d7a578f340d778f1c24b8088be1336bb598f682a
+AUX quake2-icculus-0.16.1-ia64.patch 2399 SHA256 5ed84452f0e2414cd668d3a12f30366c2ed188dcc7d8eb17d2725340873a4db9 SHA512 fce5f699ecabe8ca9f215507172be537c8850fc91ed44224a588780bf76901d60486c220d5bf821b70fe9d2687f6ec9d966b78008de1f6cf4f1ac3644bb66844 WHIRLPOOL 89e9958904eb2e5f598ff9652164435a650c56b0d66f9169f1f63e822d064b94d5c52442630bd4ce9fd176154f2c6acd2bcbc0c6c507a8e05a07d635a5a3dcc9
+AUX quake2-icculus-0.16.1-ldflags.patch 1537 SHA256 fa9404c4852f6b2e0cafee6407135e8445f4fc3dd899ae773d86ad4d7fa8facc SHA512 c4a1dc06b02c227e0cbb8e289b2eab864f5f599f0f92cb376d2a6be7d746774b89fddba21c003c91908a9a140fe639e1588dcff28cccc1a531a6eff8e8f4ccf0 WHIRLPOOL 559ae777b960d5934d49d9b4a2c9fd77395c23b0e5b72b3c89281d20c4a0cc1d6adbf57edade4d7c6bab1f169b9247fd8fa4ce50722a4c49c9764d9514bfcc03
+AUX quake2-icculus-0.16.1-no-asm-io.patch 513 SHA256 05a648b32ce0c260046706ee2f4c6f49a0e7049ed07cd02fd895f6fd83556012 SHA512 ad2d62ce9c69f10683bd5a0970339c82acdf9543b802a0ed070fb025efab6b3aad6e352cc29de5e3120449a3b679823feb920dc175f33b00d230cb9082be3f16 WHIRLPOOL b81a56274664edfcdeeda97e4ef7a648cbe1fb9f15334914252aa38400fe549b537365793be2fedb0141f0105dddc764b8e7260169baecad5e968afb70a8b3e5
+AUX quake2-icculus-0.16.1-x11_mouse.patch 330 SHA256 828baf64ded015bc5e0c77b5354d0ff3ebacd8964745d36d89422c7cf7f90fa2 SHA512 4387615cab034dd37fb502e7f7411a9cf5ac9370ef474e123c1ea550d79fb06c838ac1de6e443d3e9aeea73ec905bd7464f57f9a561d4eca90852abace20eea0 WHIRLPOOL bcfbf7f03b26c588c119bab4ad860ec3ec3a6a9b87a24e04beedd0a0a76776171fabbbb456ecd5da289307a1335087f5cf298dde8ab7f24deff99de59ebfb36a
+AUX quake2-icculus-0.16.1-x11_soft.patch 1128 SHA256 dba3c805e599f055ad43656e38c2a67d9288d758a87dc9d092db144a1a6cd0c1 SHA512 c8d479919fd4440041d1f2e3a020c45cfb6522d6ff675845bd646c0b736d6ce4b400bcdf99b7f4d456938e8e946e02e40ebab4d574779fb86cff49e4213abc1f WHIRLPOOL a287ca704b83fd6f506f2ac8451645efcd3ebcb835f3e86adefc1ea663545983b79b49ebf3c0d99a92e43b36a120e4ead59bd4793b297145c79749b35fc81b47
+AUX quake2.xpm 1234 SHA256 0a5232384c56ccead145345a30e4ed7004bf36fe7656d43c46f1bed34d8fc2a9 SHA512 e7ed561123c2919a514ba7e4bcd32214bb368764cb53ad314b2816abefa0368247c0a9d463d9e96217c3583aa30f0f79b80bb5f798f6af857f4a0b069ab57e80 WHIRLPOOL b3237e526b0261d68a0682823b3841043c1bcc80987ad820519defe733beeee626b01955e9d1e3b1647c8dde8b32ed9b6bd3898a78168452ec234481f6e02176
+DIST maxpak.pak 3282742 SHA256 653569fe880f1ed5f7529483ac961b22078482e6ff0e83f4d9d1bc503c866770 SHA512 49eef504190323add8bbe6fd007ee51a17dc843898a2199a44a0b214a14da90202070f9eb025503c58b64d6306832bdb6c0d04efe927ea651eb83b0517a59782 WHIRLPOOL 4f372e574d337834661992a6ac17f249c4df42603dd023962644db792f58d3a58f1f328c198d2cf4a666a60cce5c0eb56e0f6c495cef405db8a6d46ba0127980
+DIST quake2-r0.16.1.tar.gz 1525384 SHA256 49f4d3d53772b6ffd7733506f5d121c7893bfd8884133bfc36a28039c0744642 SHA512 63e8fa10446698b1f1cbd20b4bbfeec75d7620cb6454bb90b853cd2a3d6cd9040041a164666a5e015c3a8289423127f9164b500f57793505f6e4671dec932cf2 WHIRLPOOL 017d0c6add0302fa2f74bc4b2603fff36589417ac7fd150429f8e83be846bef53695ac4edaa22ec5a8b38cf2aaf73ea733e1e142d8e8a0cc778826753dc96b14
+DIST roguesrc320.shar.Z 626769 SHA256 ceefb2fd748961cb0bc3244220f3eb09d8f7b8ca2eb32cdf9b284727a2fdc919 SHA512 330db4966b758b8e363eb8d699b30ce5ec7d9fa581936288e7267000d0815996388adebc0206a8903734cdc1c5658616b15518a2bf888ad9e6059f8155960141 WHIRLPOOL 84430a1596179086cc440196974f83e13edff52378c8418d84e46bcd78f5e6856aa1a8b6a9e1a9e5496c1845ca19b3af6be346661580601e6581920529109dbd
+DIST xatrixsrc320.shar.Z 455917 SHA256 94bf596cd85d38ea294b99ccb0ebb5e4b9776cca335001b3803e2d8407395589 SHA512 6723440d3cfdaf7f9b260d5777d9823937a4c3ee800c8c204e8a5c3d29f2b37f6bdc7c0786025a19d040b5692aa54b99b9db2dc121bc0ca2b53c8763b4ab4dfa WHIRLPOOL d5254a11f49ecd0cc341d6b51cc31bd6d43597e0341df09662849e235a07452eef80fc881983ed34bcfd47fca575e8592aa306f53a3b82d1464167b16cee4fed
+EBUILD quake2-icculus-0.16.1-r1.ebuild 5276 SHA256 a7877dc25580ebcebbb8bc4c2b2159ecee6ec1d0105d28a1d5e2febdad9ae6bd SHA512 22ee401b15e2b00d11a5928bc2fa3c2ae736172112dab4f44a4405def49c89bf55f4d6e2a96ec27dd7e354bd4929aae7afde7194dfa3b80415ab66ede7b423b3 WHIRLPOOL c8560ae3dfdac5746b4586989252f6901a233e643913df6a21837d323d6c04fca33ac9c25d90297f51fad2de5c6d50da4ccb14b7acf1caf289aa1bca8d5a7a48
+MISC ChangeLog 3027 SHA256 7170affc3be054748121067ea715373bc889c824f209201899ca3d7adcdc9d04 SHA512 111d8dcfc17c5acb05a4c7fd7d4223b310b37ba02132bec8e6f1967ca4e89c7630fe282be7a36d7b8fd23d31861c1dcd9eaf6218b63276527fba931830b084b7 WHIRLPOOL 23d0b219476dae4ef99cceec67259c74bb0e102eeb19c319790a59e2d2a63101fc67529e0a4b7c26e886e4547ccecdca23b77b60e25494dc1a1dab6a4c89b118
+MISC ChangeLog-2015 9286 SHA256 f117d03093ad70310b2abacdcb3c04c98ae0233ff5369bf84b610714d900973d SHA512 5d22192ebbbda8888cc809f5beeac494c911bd9d0e4f20f8c7d06ff9ff45a513be29687f17f6d0046bf9aabb08b610e6060ff567c46ca6dd578802ca8b5b6c17 WHIRLPOOL 728243e35cb2fb89803691637ccd9f066a30dc2d8236126909df7b3711e96f60419262ea61349ceb9fbca1ef30c2af12fd768bf1d3817b55efae0409f2068d04
+MISC metadata.xml 612 SHA256 ae7296fad2e85f7e73f1884bc4ce9a23a366c87324309dbb50a37cc0d6c90cf6 SHA512 0c143ca3470f6b33b35d660e3ad55678356e7139cab94589d18947617988f63f8c69485167d9d8c3e21ef231b0521f993a5063df26ae3e5e5cf4c64bee30d45b WHIRLPOOL 0d84ccc23144f737ed934d3f98a357b9e03c1a9b6c594197430bd476a85f459f8ef8f2b3caee2f3df1bc30577ed16283168604f3a33e99bda28130bdd4619759
diff --git a/games-fps/quake2-icculus/files/0.16-rogue-armor.patch b/games-fps/quake2-icculus/files/0.16-rogue-armor.patch
new file mode 100644
index 000000000000..194f965a0501
--- /dev/null
+++ b/games-fps/quake2-icculus/files/0.16-rogue-armor.patch
@@ -0,0 +1,12 @@
+--- src/rogue/g_local.h.orig
++++ src/rogue/g_local.h
+@@ -545,9 +545,6 @@
+ extern int sm_meat_index;
+ extern int snd_fry;
+
+-extern int jacket_armor_index;
+-extern int combat_armor_index;
+-extern int body_armor_index;
+
+
+ // means of death
diff --git a/games-fps/quake2-icculus/files/0.16-rogue-nan.patch b/games-fps/quake2-icculus/files/0.16-rogue-nan.patch
new file mode 100644
index 000000000000..0961fa68a985
--- /dev/null
+++ b/games-fps/quake2-icculus/files/0.16-rogue-nan.patch
@@ -0,0 +1,7 @@
+--- src/rogue/g_local.h.orig
++++ src/rogue/g_local.h
+@@ -24,3 +24,3 @@
+ #ifndef _WIN32
+-#include <nan.h>
++#include <bits/nan.h>
+ #define min(a,b) ((a) < (b) ? (a) : (b))
diff --git a/games-fps/quake2-icculus/files/README-postinstall b/games-fps/quake2-icculus/files/README-postinstall
new file mode 100644
index 000000000000..3e2245f3bb0a
--- /dev/null
+++ b/games-fps/quake2-icculus/files/README-postinstall
@@ -0,0 +1,79 @@
+This was taken from the README file in the source distribution
+and cleaned up a bit. Read all of this, or at least skim it. Please?
+
+Note:
+1. If you install a new compile of quake2, you'll lose your savegames. I'm
+sorry. Don't upgrade in the middle of a single-player game.
+
+===============================================================================
+
+To emerge the Quake2 data:
+--------------------------
+1. emerge quake2-data
+
+That was easy huh ? :) Note: this requires the Quake2 CD and/or the data files
+from an installed copy of the game (like for windows).
+
+===============================================================================
+
+To install the Quake2 demo data:
+--------------------------------
+1. download ftp://ftp.idsoftware.com/idstuff/quake2/q2-314-demo-x86.exe
+2. unzip -L q2-314-demo-x86.exe into a temp directory
+3. cp baseq2/pak0.pak to /usr/share/games/quake2-data/baseq2/pak0.pak
+
+===============================================================================
+
+To install the Quake2 gamedata from game CD:
+--------------------------------------------
+(assuming the cdrom is mounted at /cdrom)
+
+1. cp /cdrom/Install/Data/baseq2/pak0.pak /usr/share/games/quake2-data/baseq2/
+
+2. cp /cdrom/Install/Data/baseq2/video/ /usr/share/games/quake2-data/baseq2/
+ (optional)
+
+3. Download ftp://ftp.idsoftware.com/idstuff/quake2/q2-3.20-x86-full.exe
+ and extract the contents to a temporary directory (use unzip -L, as this
+ is a standard zip file).
+
+4. cp <temp directory>/baseq2/pak1.pak /usr/share/games/quake2-data/baseq2/
+5. cp <temp directory>/baseq2/pak2.pak /usr/share/games/quake2-data/baseq2/
+6. cp <temp directory>/baseq2/players/ /usr/share/games/quake2-data/baseq2/
+
+7. if you really want to use the crakhor model, you can find the
+ skins/sounds on websites like http://www.mike-d.com/games/modskins.html
+ (optional)
+
+===============================================================================
+
+Capture The Flag:
+-----------
+To run Capture The Flag, you need to do the following:
+
+1. Download ftp://ftp.idsoftware.com/idstuff/quake2/q2-3.20-x86-full-ctf.exe
+2. unzip that file (using unzip -L) into a temp directory
+3. cp <temp directory>/ctf /usr/share/games/quake2-data/
+
+Execute quake2 with:
+
+quake2 +set game ctf +set dedicated 1
+ -- or --
+q2ded +set game ctf
+===============================================================================
+
+Joystick Support:
+-----------------
+Joystick should function on all compatible SDL platforms using the sdlquake2
+binary as well as on linux using the linux kernel joystick API.
+
+Joystick obeys the same free-look/strafe rules as mouse. You can set these in
+the options menu.
+
+There are four command line settings for joystick:
+1. j_invert_y [1],0 if set to zero pulling back on the joystick points down
+2. j_lr_axis [0] set the axis which controls left right movement
+3. j_ud_axis [1] set the axis which controls up down (in free-look) or
+ forward back (freelock off)
+4. j_throttle [3] set the axis which controls the players forward backward
+ throttle (if free-look is true)
diff --git a/games-fps/quake2-icculus/files/quake2-icculus-0.16.1-alsa.patch b/games-fps/quake2-icculus/files/quake2-icculus-0.16.1-alsa.patch
new file mode 100644
index 000000000000..185359373c4b
--- /dev/null
+++ b/games-fps/quake2-icculus/files/quake2-icculus-0.16.1-alsa.patch
@@ -0,0 +1,172 @@
+--- src/linux/snd_alsa.c.old
++++ src/linux/snd_alsa.c
+@@ -22,13 +22,22 @@
+ $Id: quake2-icculus-0.16.1-alsa.patch,v 1.2 2015/03/27 06:40:34 mr_bones_ Exp $
+ */
+
+-#define BUFFER_SIZE 4096
++// quake2-r0.16.1/src/linux/snd_alsa.c 2010-08-29 09:58:50
++// Alsa Redux Patch
++#define BUFFER_SIZE 16384
+
+ #include <alsa/asoundlib.h>
+
+ #include "../client/client.h"
+ #include "../client/snd_loc.h"
+
++#define AFSize 4
++static int snd_inited=0;
++static snd_pcm_t *playback_handle;
++static int AlsaFrames;
++static int AlsaPos;
++
++/*
+ #define snd_buf BUFFER_SIZE
+
+ static int snd_inited;
+@@ -43,17 +52,58 @@
+ cvar_t *snddevice;
+
+ static int tryrates[] = { 44100, 22051, 11025, 8000 };
+-
++*/
+ qboolean SNDDMA_Init (void)
+ {
+- int i;
+- int err;
+- int buffersize;
+- int framesize;
+- int format;
++ int confirm;
++ int latency;
++ Com_Printf("Setting up ALSA driver .....\n");
+
+ if (snd_inited) { return 1; }
+-
++ int s_khz=(Cvar_Get("s_khz", "22", CVAR_ARCHIVE))->value;
++ if (s_khz <22 ){
++ Com_Printf("Low Performance 11KHz.\n");
++ Cvar_Set("s_mixahead","0.2");
++ dma.speed=11025;
++ AlsaFrames=2048;
++ latency=200000;
++ }else{
++ Com_Printf("High Quality 48KHz.\n");
++ Cvar_Set("s_mixahead","0.1");
++ dma.speed=48000;
++ AlsaFrames=4800;
++ latency=110000;}
++
++ dma.channels = 2;
++ dma.samplebits = 16;
++ AlsaPos = 0;
++ playback_handle = NULL;
++ confirm =
++snd_pcm_open(&playback_handle,"default",SND_PCM_STREAM_PLAYBACK,SND_PCM_NONBLOCK);
++ if (confirm < 0) {
++ Com_Printf("ALSA sound error: cannot open device \n");
++ return 0;}
++ confirm = snd_pcm_set_params(playback_handle,
++ SND_PCM_FORMAT_S16_LE,
++ SND_PCM_ACCESS_RW_INTERLEAVED,
++ dma.channels,
++ dma.speed,
++ 1,//soft resample
++ latency);
++ if (confirm < 0){
++ Com_Printf("Alsa error: %s\n", snd_strerror(confirm));
++ return 0;}
++ confirm = snd_pcm_prepare(playback_handle);
++ if (confirm < 0) {
++ Com_Printf("...failed.\n");
++ return 0;}
++
++ int rambuffer = (BUFFER_SIZE+AlsaFrames)*AFSize;
++ dma.buffer=malloc(rambuffer);
++ dma.samplepos = 0;
++ dma.samples = BUFFER_SIZE*dma.channels;
++ dma.submission_chunk = 16;
++ /*
+ sndbits = Cvar_Get("sndbits", "16", CVAR_ARCHIVE);
+ sndspeed = Cvar_Get("sndspeed", "0", CVAR_ARCHIVE);
+ sndchannels = Cvar_Get("sndchannels", "2", CVAR_ARCHIVE);
+@@ -159,7 +209,6 @@
+ return 0;
+ }
+
+- /*
+ buffer_size = snd_pcm_hw_params_get_buffer_size(hw_params);
+ frame_size = (snd_pcm_format_physical_width(format)*dma.channels)/8;
+
+@@ -172,7 +221,6 @@
+ }
+
+ snd_buf = buffer_size*frame_size;
+- */
+
+ //snd_buf = BUFFER_SIZE;
+
+@@ -183,7 +231,7 @@
+ dma.samples = snd_buf / (dma.samplebits/8);
+ dma.submission_chunk = 1;
+ dma.buffer = (char *)buffer;
+-
++ */
+ snd_inited = 1;
+ return 1;
+ }
+@@ -191,11 +239,25 @@
+ int
+ SNDDMA_GetDMAPos (void)
+ {
+- if(snd_inited)
+- return dma.samplepos;
+- else
+- Com_Printf ("Sound not inizialized\n");
+- return 0;
++ int timerpos;
++ int send;
++ int taken;
++ timerpos = snd_pcm_avail(playback_handle);
++ if (timerpos<0){// likely buffer underrun.
++ timerpos = snd_pcm_prepare(playback_handle);
++ timerpos=0;}
++
++ send=AlsaFrames-timerpos;
++ if ( (send+AlsaPos)>BUFFER_SIZE )
++ { memcpy (dma.buffer+BUFFER_SIZE*AFSize,
++ dma.buffer,AlsaFrames*AFSize);}
++ taken = snd_pcm_writei(playback_handle, dma.buffer+AlsaPos*AFSize, send);
++ if (taken<0) {taken=0;}
++
++ AlsaPos+=taken;
++ if (BUFFER_SIZE<=AlsaPos){AlsaPos -= BUFFER_SIZE;}
++ return AlsaPos*dma.channels;
++
+ }
+
+ void
+@@ -205,8 +267,8 @@
+ snd_pcm_drop(playback_handle);
+ snd_pcm_close(playback_handle);
+ snd_inited = 0;
++ free(dma.buffer);
+ }
+- free(dma.buffer);
+ dma.buffer = NULL;
+ }
+
+@@ -217,13 +279,6 @@
+ void
+ SNDDMA_Submit (void)
+ {
+- int written;
+-
+- if ((written = snd_pcm_writei(playback_handle, dma.buffer, snd_buf)) < 0) {
+- snd_pcm_prepare(playback_handle);
+- Com_Printf("alsa: buffer underrun\n");
+- }
+- dma.samplepos += written/(dma.samplebits/8);
+ }
+
+
diff --git a/games-fps/quake2-icculus/files/quake2-icculus-0.16.1-amd64.patch b/games-fps/quake2-icculus/files/quake2-icculus-0.16.1-amd64.patch
new file mode 100644
index 000000000000..b3291827996c
--- /dev/null
+++ b/games-fps/quake2-icculus/files/quake2-icculus-0.16.1-amd64.patch
@@ -0,0 +1,18 @@
+The default video renderers (softx / soft) currently do not work
+on amd64. So for now we add a little hack which will select the
+glx renderer by default.
+
+http://bugs.gentoo.org/show_bug.cgi?id=86552
+
+--- src/linux/vid_so.c
++++ src/linux/vid_so.c
+@@ -435,6 +440,9 @@ VID_Init
+ */
+ void VID_Init (void)
+ {
++#if defined __x86_64__
++ vid_ref = Cvar_Get ("vid_ref", "glx", CVAR_ARCHIVE);
++#endif
+ /* Create the video variables so we know how to start the graphics drivers */
+ // if DISPLAY is defined, try X
+ if (getenv("DISPLAY"))
diff --git a/games-fps/quake2-icculus/files/quake2-icculus-0.16.1-gcc41.patch b/games-fps/quake2-icculus/files/quake2-icculus-0.16.1-gcc41.patch
new file mode 100644
index 000000000000..626cf5a1b64d
--- /dev/null
+++ b/games-fps/quake2-icculus/files/quake2-icculus-0.16.1-gcc41.patch
@@ -0,0 +1,14 @@
+--- src/xatrix/g_local.h.old
++++ src/xatrix/g_local.h
+@@ -446,11 +446,6 @@
+ extern int sm_meat_index;
+ extern int snd_fry;
+
+-extern int jacket_armor_index;
+-extern int combat_armor_index;
+-extern int body_armor_index;
+-
+-
+ // means of death
+ #define MOD_UNKNOWN 0
+ #define MOD_BLASTER 1
diff --git a/games-fps/quake2-icculus/files/quake2-icculus-0.16.1-gentoo-paths.patch b/games-fps/quake2-icculus/files/quake2-icculus-0.16.1-gentoo-paths.patch
new file mode 100644
index 000000000000..61f0bb2286e5
--- /dev/null
+++ b/games-fps/quake2-icculus/files/quake2-icculus-0.16.1-gentoo-paths.patch
@@ -0,0 +1,213 @@
+--- Makefile
++++ Makefile
+@@ -74,35 +74,46 @@ endif
+
+ CC=gcc
+
++ifndef OPT_CFLAGS
+ ifeq ($(ARCH),axp)
+-RELEASE_CFLAGS=$(BASE_CFLAGS) -ffast-math -funroll-loops \
++OPT_CFLAGS=-ffast-math -funroll-loops \
+ -fomit-frame-pointer -fexpensive-optimizations
+ endif
+
+ ifeq ($(ARCH),ppc)
+-RELEASE_CFLAGS=$(BASE_CFLAGS) -O2 -ffast-math -funroll-loops \
++OPT_CFLAGS=-O2 -ffast-math -funroll-loops \
+ -fomit-frame-pointer -fexpensive-optimizations
+ endif
+
+ ifeq ($(ARCH),sparc)
+-RELEASE_CFLAGS=$(BASE_CFLAGS) -ffast-math -funroll-loops \
++OPT_CFLAGS=-ffast-math -funroll-loops \
+ -fomit-frame-pointer -fexpensive-optimizations
+ endif
+
+ ifeq ($(ARCH),i386)
+-RELEASE_CFLAGS=$(BASE_CFLAGS) -O2 -ffast-math -funroll-loops -falign-loops=2 \
++OPT_CFLAGS=-O2 -ffast-math -funroll-loops -falign-loops=2 \
+ -falign-jumps=2 -falign-functions=2 -fno-strict-aliasing
+ # compiler bugs with gcc 2.96 and 3.0.1 can cause bad builds with heavy opts.
+-#RELEASE_CFLAGS=$(BASE_CFLAGS) -O6 -m486 -ffast-math -funroll-loops \
++#OPT_CFLAGS=-O6 -m486 -ffast-math -funroll-loops \
+ # -fomit-frame-pointer -fexpensive-optimizations -malign-loops=2 \
+ # -malign-jumps=2 -malign-functions=2
+ endif
+
+ ifeq ($(ARCH),x86_64)
+ _LIB := 64
+-RELEASE_CFLAGS=$(BASE_CFLAGS) -O2 -ffast-math -funroll-loops \
++OPT_CFLAGS=-O2 -ffast-math -funroll-loops \
+ -fomit-frame-pointer -fexpensive-optimizations -fno-strict-aliasing
+ endif
++endif
++RELEASE_CFLAGS=$(BASE_CFLAGS) $(OPT_CFLAGS)
++
++ifeq ($(ADDCFLAGS),debug)
++CFLAGS=$(DEBUG_CFLAGS) -DLINUX_VERSION=\"$(VERSION) Debug\"
++endif
++
++ifeq ($(ADDCFLAGS),release)
++CFLAGS=$(RELEASE_CFLAGS) -DLINUX_VERSION=\"$(VERSION)\"
++endif
+
+ VERSION=3.21+r0.16
+
+@@ -133,6 +136,13 @@ else
+ NET_UDP=net_udp
+ endif
+
++ifdef DEFAULT_BASEDIR
++BASE_CFLAGS += -DDEFAULT_BASEDIR=\"$(DEFAULT_BASEDIR)\"
++endif
++ifdef DEFAULT_LIBDIR
++BASE_CFLAGS += -DDEFAULT_LIBDIR=\"$(DEFAULT_LIBDIR)\"
++endif
++
+ ifeq ($(strip $(BUILD_QMAX)),YES)
+ BASE_CFLAGS+=-DQMAX
+ endif
+@@ -406,7 +424,7 @@
+ $(BUILD_DEBUG_DIR)/ctf \
+ $(BUILD_DEBUG_DIR)/xatrix \
+ $(BUILD_DEBUG_DIR)/rogue
+- $(MAKE) targets BUILDDIR=$(BUILD_DEBUG_DIR) CFLAGS="$(DEBUG_CFLAGS) -DLINUX_VERSION='\"$(VERSION) Debug\"'"
++ $(MAKE) targets BUILDDIR=$(BUILD_DEBUG_DIR) ADDCFLAGS=debug
+
+ build_release:
+ @-mkdir -p $(BUILD_RELEASE_DIR) \
+@@ -418,7 +436,7 @@
+ $(BUILD_RELEASE_DIR)/ctf \
+ $(BUILD_RELEASE_DIR)/xatrix \
+ $(BUILD_RELEASE_DIR)/rogue
+- $(MAKE) targets BUILDDIR=$(BUILD_RELEASE_DIR) CFLAGS="$(RELEASE_CFLAGS) -DLINUX_VERSION='\"$(VERSION)\"'"
++ $(MAKE) targets BUILDDIR=$(BUILD_RELEASE_DIR) ADDCFLAGS=release
+
+ targets: $(TARGETS)
+
+--- src/linux/qgl_linux.c
++++ src/linux/qgl_linux.c
+@@ -3006,13 +3006,17 @@ qboolean QGL_Init( const char *dllname )
+ // dllname, dlerror());
+
+ // try basedir next
+- path = ri.Cvar_Get ("basedir", ".", CVAR_NOSET)->string;
++ path = ri.Cvar_Get ("basedir", DEFAULT_BASEDIR, CVAR_NOSET)->string;
+
+ snprintf (fn, MAX_OSPATH, "%s/%s", path, dllname );
+
+ if ( ( glw_state.OpenGLLib = dlopen( fn, RTLD_LAZY ) ) == 0 ) {
+- ri.Con_Printf( PRINT_ALL, "%s\n", dlerror() );
+- return false;
++ path = ri.Cvar_Get ("libdir", DEFAULT_LIBDIR, CVAR_NOSET)->string;
++ snprintf (fn, MAX_OSPATH, "%s/%s", path, dllname );
++ if ( ( glw_state.OpenGLLib = dlopen( fn, RTLD_LAZY ) ) == 0 ) {
++ ri.Con_Printf( PRINT_ALL, "%s\n", dlerror() );
++ return false;
++ }
+ }
+ Com_Printf ("Using %s for OpenGL...", fn);
+ } else {
+--- src/linux/vid_so.c
++++ src/linux/vid_so.c
+@@ -237,13 +237,17 @@ qboolean VID_LoadRefresh( char *name )
+ //regain root
+ seteuid(saved_euid);
+
+- path = Cvar_Get ("basedir", ".", CVAR_NOSET)->string;
++ path = Cvar_Get ("basedir", DEFAULT_BASEDIR, CVAR_NOSET)->string;
+
+ snprintf (fn, MAX_OSPATH, "%s/%s", path, name );
+
+ if (stat(fn, &st) == -1) {
+- Com_Printf( "LoadLibrary(\"%s\") failed: %s\n", name, strerror(errno));
+- return false;
++ path = Cvar_Get ("libdir", DEFAULT_LIBDIR, CVAR_NOSET)->string;
++ snprintf (fn, MAX_OSPATH, "%s/%s", path, name );
++ if (stat(fn, &st) == -1) {
++ Com_Printf( "LoadLibrary(\"%s\") failed: %s\n", name, strerror(errno));
++ return false;
++ }
+ }
+
+ // permission checking
+@@ -493,13 +497,19 @@ qboolean VID_CheckRefExists (const char
+ char *path;
+ struct stat st;
+
+- path = Cvar_Get ("basedir", ".", CVAR_NOSET)->string;
++ path = Cvar_Get ("libdir", DEFAULT_LIBDIR, CVAR_NOSET)->string;
+ snprintf (fn, MAX_OSPATH, "%s/ref_%s.so", path, ref );
+
+ if (stat(fn, &st) == 0)
+ return true;
+- else
+- return false;
++ else {
++ path = Cvar_Get ("basedir", DEFAULT_BASEDIR, CVAR_NOSET)->string;
++ snprintf (fn, MAX_OSPATH, "%s/ref_%s.so", path, ref );
++ if (stat(fn, &st) == 0)
++ return true;
++ else
++ return false;
++ }
+ }
+
+ /*****************************************************************************/
+--- src/qcommon/files.c
++++ src/qcommon/files.c
+@@ -60,6 +60,7 @@ typedef struct pack_s
+
+ char fs_gamedir[MAX_OSPATH];
+ cvar_t *fs_basedir;
++cvar_t *fs_libdir;
+ cvar_t *fs_cddir;
+ cvar_t *fs_gamedirvar;
+
+@@ -681,6 +682,7 @@ void FS_SetGamedir (char *dir)
+ if (fs_cddir->string[0])
+ FS_AddGameDirectory (va("%s/%s", fs_cddir->string, dir) );
+ FS_AddGameDirectory (va("%s/%s", fs_basedir->string, dir) );
++ FS_AddGameDirectory (va("%s/%s", fs_libdir->string, dir) );
+ FS_AddHomeAsGameDirectory(dir);
+ }
+ }
+@@ -898,7 +900,13 @@ void FS_InitFilesystem (void)
+ // basedir <path>
+ // allows the game to run from outside the data tree
+ //
+- fs_basedir = Cvar_Get ("basedir", ".", CVAR_NOSET);
++ fs_basedir = Cvar_Get ("basedir", DEFAULT_BASEDIR, CVAR_NOSET);
++
++ //
++ // libdir <path>
++ // allows the game to store binary files (not data) in a sep tree
++ //
++ fs_libdir = Cvar_Get ("libdir", DEFAULT_LIBDIR, CVAR_NOSET);
+
+ //
+ // cddir <path>
+@@ -913,6 +921,7 @@ void FS_InitFilesystem (void)
+ // add baseq2 to search path
+ //
+ FS_AddGameDirectory (va("%s/"BASEDIRNAME, fs_basedir->string) );
++ FS_AddGameDirectory (va("%s/"BASEDIRNAME, fs_libdir->string) );
+
+ //
+ // then add a '.quake2/baseq2' directory in home directory by default
+--- src/qcommon/qcommon.h
++++ src/qcommon/qcommon.h
+@@ -74,6 +74,13 @@ Foundation, Inc., 59 Temple Place - Suit
+
+ #endif
+
++#ifndef DEFAULT_BASEDIR
++# define DEFAULT_BASEDIR "."
++#endif
++#ifndef DEFAULT_LIBDIR
++# define DEFAULT_LIBDIR DEFAULT_BASEDIR
++#endif
++
+ //============================================================================
+
+ typedef struct sizebuf_s
diff --git a/games-fps/quake2-icculus/files/quake2-icculus-0.16.1-gnusource.patch b/games-fps/quake2-icculus/files/quake2-icculus-0.16.1-gnusource.patch
new file mode 100644
index 000000000000..ad1f37309c30
--- /dev/null
+++ b/games-fps/quake2-icculus/files/quake2-icculus-0.16.1-gnusource.patch
@@ -0,0 +1,12 @@
+--- quake2-r0.16.1/src/linux/q_shlinux.c
++++ quake2-r0.16.1-modified/src/linux/q_shlinux.c
+@@ -17,6 +17,9 @@
+ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ */
++#if !defined(_GNU_SOURCE)
++ #define _GNU_SOURCE
++#endif
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <errno.h>
diff --git a/games-fps/quake2-icculus/files/quake2-icculus-0.16.1-ia64.patch b/games-fps/quake2-icculus/files/quake2-icculus-0.16.1-ia64.patch
new file mode 100644
index 000000000000..ae1aa2e4068c
--- /dev/null
+++ b/games-fps/quake2-icculus/files/quake2-icculus-0.16.1-ia64.patch
@@ -0,0 +1,97 @@
+--- quake2-r0.16.1.orig/Makefile
++++ quake2-r0.16.1/Makefile
+@@ -54,24 +54,26 @@ endif
+
+
+ # this nice line comes from the linux kernel makefile
+ ARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc/ -e s/sparc64/sparc/ -e s/arm.*/arm/ -e s/sa110/arm/ -e s/alpha/axp/)
+
+ ifneq ($(ARCH),x86_64)
+ ifneq ($(ARCH),i386)
+ ifneq ($(ARCH),axp)
++ifneq ($(ARCH),ia64)
+ ifneq ($(ARCH),ppc)
+ ifneq ($(ARCH),sparc)
+ $(error arch $(ARCH) is currently not supported)
+ endif
+ endif
+ endif
+ endif
+ endif
++endif
+
+ CC=gcc
+
+ ifndef OPT_CFLAGS
+ ifeq ($(ARCH),axp)
+ OPT_CFLAGS=-ffast-math -funroll-loops \
+ -fomit-frame-pointer -fexpensive-optimizations
+ endif
+@@ -283,16 +285,46 @@ ifeq ($(ARCH),axp)
+ $(warning Warning: SDL support not supported for $(ARCH))
+ endif
+
+ ifeq ($(strip $(BUILD_SDLGL)),YES)
+ $(warning Warning: SDLGL support not supported for $(ARCH))
+ endif
+ endif # ARCH axp
+
++ifeq ($(ARCH),ia64)
++ ifeq ($(strip $(BUILD_SDLQUAKE2)),YES)
++ TARGETS += $(BUILDDIR)/sdlquake2
++ endif
++
++ ifeq ($(strip $(BUILD_SVGA)),YES)
++ TARGETS += $(BUILDDIR)/ref_soft.$(SHLIBEXT)
++ endif
++
++ ifeq ($(strip $(BUILD_X11)),YES)
++ TARGETS += $(BUILDDIR)/ref_softx.$(SHLIBEXT)
++ endif
++
++ ifeq ($(strip $(BUILD_GLX)),YES)
++ TARGETS += $(BUILDDIR)/ref_glx.$(SHLIBEXT)
++ endif
++
++ ifeq ($(strip $(BUILD_FXGL)),YES)
++ TARGETS += $(BUILDDIR)/ref_gl.$(SHLIBEXT)
++ endif
++
++ ifeq ($(strip $(BUILD_SDL)),YES)
++ TARGETS += $(BUILDDIR)/ref_softsdl.$(SHLIBEXT)
++ endif
++
++ ifeq ($(strip $(BUILD_SDLGL)),YES)
++ TARGETS += $(BUILDDIR)/ref_sdlgl.$(SHLIBEXT)
++ endif
++endif # ARCH ia64
++
+ ifeq ($(ARCH),ppc)
+ ifeq ($(strip $(BUILD_SDLQUAKE2)),YES)
+ TARGETS += $(BUILDDIR)/sdlquake2
+ endif
+
+ ifeq ($(strip $(BUILD_SVGA)),YES)
+ $(warning Warning: SVGAlib support not supported for $(ARCH))
+ endif
+--- quake2-r0.16.1.orig/src/linux/sys_linux.c
++++ quake2-r0.16.1/src/linux/sys_linux.c
+@@ -216,16 +216,18 @@ void *Sys_GetGameAPI (void *parms)
+ char *path;
+ char *str_p;
+ #if defined __i386__
+ const char *gamename = "gamei386.so";
+ #elif defined __x86_64__
+ const char *gamename = "gamex86_64.so";
+ #elif defined __alpha__
+ const char *gamename = "gameaxp.so";
++#elif defined __ia64__
++ const char *gamename = "gameia64.so";
+ #elif defined __powerpc__
+ const char *gamename = "gameppc.so";
+ #elif defined __sparc__
+ const char *gamename = "gamesparc.so";
+ #else
+ #error Unknown arch
+ #endif
+
diff --git a/games-fps/quake2-icculus/files/quake2-icculus-0.16.1-ldflags.patch b/games-fps/quake2-icculus/files/quake2-icculus-0.16.1-ldflags.patch
new file mode 100644
index 000000000000..978c9c9820ea
--- /dev/null
+++ b/games-fps/quake2-icculus/files/quake2-icculus-0.16.1-ldflags.patch
@@ -0,0 +1,56 @@
+--- Makefile.old
++++ Makefile
+@@ -169,18 +169,18 @@
+ DEBUG_CFLAGS=$(BASE_CFLAGS) -g
+
+ ifeq ($(OSTYPE),FreeBSD)
+-LDFLAGS=-lm
++LDLIBS=-lm
+ endif
+ ifeq ($(OSTYPE),Linux)
+-LDFLAGS=-lm -ldl
++LDLIBS=-lm -ldl
+ endif
+
+ ifeq ($(strip $(BUILD_ARTS)),YES)
+-LDFLAGS+=$(shell artsc-config --libs)
++LDLIBS+=$(shell artsc-config --libs)
+ endif
+
+ ifeq ($(strip $(BUILD_ALSA)),YES)
+-LDFLAGS+=-lasound
++LDLIBS+=-lasound
+ endif
+
+
+@@ -226,7 +226,7 @@
+ SHLIBEXT=so
+
+ SHLIBCFLAGS=-fPIC
+-SHLIBLDFLAGS=-shared
++SHLIBLDFLAGS=$(LDFLAGS) -shared
+
+ DO_CC=$(CC) $(CFLAGS) -o $@ -c $<
+ DO_DED_CC=$(CC) $(CFLAGS) -DDEDICATED_ONLY -o $@ -c $<
+@@ -518,10 +518,10 @@
+ endif
+
+ $(BUILDDIR)/quake2 : $(QUAKE2_OBJS) $(QUAKE2_LNX_OBJS) $(QUAKE2_AS_OBJS)
+- $(CC) $(CFLAGS) -o $@ $(QUAKE2_OBJS) $(QUAKE2_LNX_OBJS) $(QUAKE2_AS_OBJS) $(LDFLAGS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(QUAKE2_OBJS) $(QUAKE2_LNX_OBJS) $(QUAKE2_AS_OBJS) $(LDLIBS)
+
+ $(BUILDDIR)/sdlquake2 : $(QUAKE2_OBJS) $(QUAKE2_SDL_OBJS) $(QUAKE2_AS_OBJS)
+- $(CC) $(CFLAGS) -o $@ $(QUAKE2_OBJS) $(QUAKE2_SDL_OBJS) $(QUAKE2_AS_OBJS) $(LDFLAGS) $(SDLLDFLAGS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(QUAKE2_OBJS) $(QUAKE2_SDL_OBJS) $(QUAKE2_AS_OBJS) $(LDLIBS) $(SDLLDFLAGS)
+
+ $(BUILDDIR)/client/cl_cin.o : $(CLIENT_DIR)/cl_cin.c
+ $(DO_CC)
+@@ -710,7 +710,7 @@
+ $(BUILDDIR)/ded/cd_null.o
+
+ $(BUILDDIR)/q2ded : $(Q2DED_OBJS)
+- $(CC) $(CFLAGS) -o $@ $(Q2DED_OBJS) $(LDFLAGS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(Q2DED_OBJS) $(LDLIBS)
+
+ $(BUILDDIR)/ded/cmd.o : $(COMMON_DIR)/cmd.c
+ $(DO_DED_CC)
diff --git a/games-fps/quake2-icculus/files/quake2-icculus-0.16.1-no-asm-io.patch b/games-fps/quake2-icculus/files/quake2-icculus-0.16.1-no-asm-io.patch
new file mode 100644
index 000000000000..d94925b83e4b
--- /dev/null
+++ b/games-fps/quake2-icculus/files/quake2-icculus-0.16.1-no-asm-io.patch
@@ -0,0 +1,25 @@
+http://bugs.gentoo.org/193107
+
+asm/io.h does not exist with sanitized kernel headers, nor do these source
+files actually need the header, so punt it
+
+--- src/linux/rw_in_aa.c
++++ src/linux/rw_in_aa.c
+@@ -46,7 +46,6 @@
+ #include <sys/mman.h>
+
+ #if defined (__linux__)
+-#include <asm/io.h>
+ #include <sys/vt.h>
+ #endif
+
+--- src/linux/rw_aa.c
++++ src/linux/rw_aa.c
+@@ -63,7 +63,6 @@
+ #include <dlfcn.h>
+ #if defined (__linux__)
+ #include <sys/vt.h>
+-#include <asm/io.h>
+ #endif
+ #include <aalib.h>
+
diff --git a/games-fps/quake2-icculus/files/quake2-icculus-0.16.1-x11_mouse.patch b/games-fps/quake2-icculus/files/quake2-icculus-0.16.1-x11_mouse.patch
new file mode 100644
index 000000000000..6dc6f0f1ddfb
--- /dev/null
+++ b/games-fps/quake2-icculus/files/quake2-icculus-0.16.1-x11_mouse.patch
@@ -0,0 +1,13 @@
+--- src/linux/rw_x11.c.old
++++ src/linux/rw_x11.c
+@@ -989,8 +989,8 @@
+ }
+ else
+ {
+- mx -= ((int)event.xmotion.x + mwx)*2;
+- my -= ((int)event.xmotion.y + mwy)*2;
++ mx += ((int)event.xmotion.x - mwx)*2;
++ my += ((int)event.xmotion.y - mwy)*2;
+ mwx = event.xmotion.x;
+ mwy = event.xmotion.y;
+
diff --git a/games-fps/quake2-icculus/files/quake2-icculus-0.16.1-x11_soft.patch b/games-fps/quake2-icculus/files/quake2-icculus-0.16.1-x11_soft.patch
new file mode 100644
index 000000000000..e23caf9db09f
--- /dev/null
+++ b/games-fps/quake2-icculus/files/quake2-icculus-0.16.1-x11_soft.patch
@@ -0,0 +1,45 @@
+
+the x11 software renderer just needs some tweaks to get working
+
+--- Makefile.old
++++ Makefile
+@@ -358,7 +358,7 @@
+ endif
+
+ ifeq ($(strip $(BUILD_X11)),YES)
+- $(warning Warning: Software X Renderer not supported for $(ARCH))
++ TARGETS += $(BUILDDIR)/ref_softx.$(SHLIBEXT)
+ endif
+
+ ifeq ($(strip $(BUILD_GLX)),YES)
+--- src/linux/rw_x11.c.old
++++ src/linux/rw_x11.c
+@@ -53,7 +53,7 @@
+ #include <X11/Xatom.h>
+ #include <X11/keysym.h>
+ #include <X11/extensions/XShm.h>
+-#include <X11/extensions/xf86dga.h>
++#include <X11/extensions/Xxf86dga.h>
+ #ifdef OPENGL
+ #include <X11/extensions/xf86vmode.h>
+ #endif
+@@ -151,7 +151,7 @@
+ int config_notify_height;
+
+ typedef unsigned short PIXEL16;
+-typedef unsigned long PIXEL24;
++typedef unsigned int PIXEL24;
+ #ifdef REDBLUE
+ static PIXEL16 st2d_8to16table_s[2][256];
+ static PIXEL24 st2d_8to24table_s[2][256];
+--- src/ref_soft/r_poly.c.old
++++ src/ref_soft/r_poly.c
+@@ -994,7 +994,7 @@
+ scale = yscale * pout->zi;
+ pout->v = (ycenter - scale * transformed[1]);
+
+- pv += sizeof (vec5_t) / sizeof (pv);
++ pv += sizeof (vec5_t) / sizeof (float);
+ }
+
+ // draw it
diff --git a/games-fps/quake2-icculus/files/quake2.xpm b/games-fps/quake2-icculus/files/quake2.xpm
new file mode 100644
index 000000000000..bbbcbb8f064f
--- /dev/null
+++ b/games-fps/quake2-icculus/files/quake2.xpm
@@ -0,0 +1,37 @@
+/* XPM */
+static char * quake2_xpm[] = {
+"32 32 2 1",
+" c None",
+". c #000000",
+" ",
+" .. .. ",
+" .. .. ",
+" .. .. ",
+" .. .. ",
+" .. .. ",
+" .. .. ",
+" .. .. ",
+" .. .. ",
+" .. .. ",
+" .. .. ",
+" .. .. ",
+" .. .. ",
+" .. .. ",
+" ... ... ",
+" ... ........ ... ",
+" ... ...... ... ",
+" .... .. .. .... ",
+" .... .. .. .... ",
+" ........ ........ ",
+" ................ ",
+" .............. ",
+" .......... ",
+" ...... ",
+" .. .. ",
+" .. .. ",
+" .. .. ",
+" .. .. ",
+" .. .. ",
+" .. .. ",
+" .. .. ",
+" .. .. "};
diff --git a/games-fps/quake2-icculus/metadata.xml b/games-fps/quake2-icculus/metadata.xml
new file mode 100644
index 000000000000..62d0273c2558
--- /dev/null
+++ b/games-fps/quake2-icculus/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>
+ <use>
+ <flag name="demo">Install the demo files (quake2-demodata) and configure for use</flag>
+ <flag name="qmax">Build the pretty version (quake max)</flag>
+ <flag name="rogue">Build support for the 'Ground Zero' Mission Pack (rogue)</flag>
+ <flag name="xatrix">Build support for the 'The Reckoning' Mission Pack (xatrix)</flag>
+ </use>
+</pkgmetadata>
diff --git a/games-fps/quake2-icculus/quake2-icculus-0.16.1-r1.ebuild b/games-fps/quake2-icculus/quake2-icculus-0.16.1-r1.ebuild
new file mode 100644
index 000000000000..04bd7037c7f1
--- /dev/null
+++ b/games-fps/quake2-icculus/quake2-icculus-0.16.1-r1.ebuild
@@ -0,0 +1,195 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils toolchain-funcs games
+
+MY_P="quake2-r${PV}"
+DESCRIPTION="The icculus.org Linux port of iD's Quake 2 engine"
+HOMEPAGE="http://icculus.org/quake2/"
+SRC_URI="http://icculus.org/quake2/files/${MY_P}.tar.gz
+ qmax? ( http://icculus.org/quake2/files/maxpak.pak )
+ rogue? ( mirror://idsoftware/quake2/source/roguesrc320.shar.Z )
+ xatrix? ( mirror://idsoftware/quake2/source/xatrixsrc320.shar.Z )"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 x86 ~x86-fbsd"
+IUSE="aalib alsa cdinstall dedicated demo ipv6 joystick opengl qmax rogue sdl X xatrix"
+
+UIDEPEND="aalib? ( media-libs/aalib )
+ alsa? ( media-libs/alsa-lib )
+ opengl? ( virtual/opengl )
+ sdl? ( media-libs/libsdl[sound,joystick?,video] )
+ X? (
+ x11-libs/libXxf86dga
+ x11-libs/libXxf86vm
+ )"
+RDEPEND="${UIDEPEND}
+ cdinstall? ( games-fps/quake2-data )
+ demo? ( games-fps/quake2-demodata )"
+DEPEND="${UIDEPEND}
+ X? ( x11-proto/xf86dgaproto )
+ rogue? ( || ( sys-freebsd/freebsd-ubin app-arch/sharutils ) )
+ xatrix? ( || ( sys-freebsd/freebsd-ubin app-arch/sharutils ) )"
+
+S=${WORKDIR}/${MY_P}
+
+pkg_setup() {
+ games_pkg_setup
+
+ if ! use qmax && $( use opengl || use sdl ) ; then
+ elog "The 'qmax' graphical improvements are recommended."
+ echo
+ fi
+}
+
+src_prepare() {
+ # Now we deal with the silly rogue / xatrix addons ... this is ugly :/
+ ln -s $(type -P echo) "${T}"/more
+ for g in rogue xatrix ; do
+ use ${g} || continue
+ mkdir -p src/${g}
+ pushd src/${g}
+ local shar=../../../${g}src320.shar
+ sed -i -e 's:^read ans:ans=yes :' ${shar} || die
+ echo ">>> Unpacking ${shar} to ${PWD}"
+ env PATH="${T}:${PATH}" unshar ${shar} || die
+ popd
+ done
+ sed -i -e 's:jpeg_mem_src:_&:' src/ref_candygl/gl_image.c || die
+
+ sed -i -e 's:BUILD_SOFTX:BUILD_X11:' Makefile || die
+ # -amd64.patch # make sure this is still needed in future versions
+ epatch \
+ "${FILESDIR}"/${P}-amd64.patch \
+ "${FILESDIR}"/${P}-gentoo-paths.patch \
+ "${FILESDIR}"/${P}-ldflags.patch \
+ "${FILESDIR}"/${P}-no-asm-io.patch \
+ "${FILESDIR}"/${P}-gnusource.patch \
+ "${FILESDIR}"/${P}-x11_soft.patch \
+ "${FILESDIR}"/${P}-x11_mouse.patch \
+ "${FILESDIR}"/${P}-alsa.patch \
+ "${FILESDIR}"/${P}-ia64.patch
+
+ if use xatrix ; then
+ epatch "${FILESDIR}/${P}"-gcc41.patch
+ fi
+ if use rogue ; then
+ cd src
+ epatch \
+ "${FILESDIR}"/0.16-rogue-nan.patch \
+ "${FILESDIR}"/0.16-rogue-armor.patch
+ fi
+}
+
+yesno() {
+ for f in "$@" ; do
+ if ! use $f ; then
+ echo NO
+ return 1
+ fi
+ done
+ echo YES
+ return 0
+}
+
+src_compile() {
+ # xatrix fails to build
+ # rogue fails to build
+ local libsuffix
+ for BUILD_QMAX in YES NO ; do
+ ! use qmax && [[ ${BUILD_QMAX} == "YES" ]] && continue
+ [[ ${BUILD_QMAX} == "YES" ]] \
+ && libsuffix=-qmax \
+ || libsuffix=
+ emake -j1 clean
+ emake -j1 build_release \
+ BUILD_SDLQUAKE2=$(yesno sdl) \
+ BUILD_SVGA=NO \
+ BUILD_X11=$(yesno X) \
+ BUILD_GLX=$(yesno opengl) \
+ BUILD_SDL=$(yesno sdl) \
+ BUILD_SDLGL=$(yesno sdl opengl) \
+ BUILD_CTFDLL=YES \
+ BUILD_XATRIX=$(yesno xatrix) \
+ BUILD_ROGUE=$(yesno rogue) \
+ BUILD_JOYSTICK=$(yesno joystick) \
+ BUILD_DEDICATED=$(yesno dedicated) \
+ BUILD_AA=$(yesno aalib) \
+ BUILD_QMAX=${BUILD_QMAX} \
+ HAVE_IPV6=$(yesno ipv6) \
+ BUILD_ARTS=NO \
+ BUILD_ALSA=$(yesno alsa) \
+ SDLDIR=/usr/lib \
+ DEFAULT_BASEDIR="${GAMES_DATADIR}/quake2" \
+ DEFAULT_LIBDIR="$(games_get_libdir)/${PN}${libsuffix}" \
+ OPT_CFLAGS="${CFLAGS}" \
+ CC="$(tc-getCC)"
+ # now we save the build dir ... except for the object files ...
+ rm release*/*/*.o
+ mv release* my-rel-${BUILD_QMAX}
+ cd my-rel-${BUILD_QMAX}
+ rm -rf ref_{gl,soft} ded game client ctf/*.o
+ mkdir baseq2
+ mv game*.so baseq2/
+ cd ..
+ done
+}
+
+src_install() {
+ local q2dir=$(games_get_libdir)/${PN}
+ local q2maxdir=$(games_get_libdir)/${PN}-qmax
+
+ dodoc readme.txt README TODO "${FILESDIR}"/README-postinstall
+
+ # regular q2 files
+ dodir "${q2dir}"
+ cp -rf my-rel-NO/* "${D}/${q2dir}"/
+ dogamesbin "${D}/${q2dir}"/quake2
+ rm "${D}/${q2dir}"/quake2
+ use dedicated \
+ && dogamesbin "${D}/${q2dir}"/q2ded \
+ && rm "${D}/${q2dir}"/q2ded
+ use sdl \
+ && dogamesbin "${D}/${q2dir}"/sdlquake2 \
+ && rm "${D}/${q2dir}"/sdlquake2
+
+ doicon "${FILESDIR}"/quake2.xpm
+ make_desktop_entry quake2 "Quake 2" quake2
+
+ # q2max files
+ if use qmax ; then
+ dodir "${q2maxdir}"
+ cp -rf my-rel-YES/* "${D}/${q2maxdir}"/ || die
+ newgamesbin "${D}/${q2maxdir}"/quake2 quake2-qmax
+ rm "${D}/${q2maxdir}"/quake2
+ use dedicated \
+ && newgamesbin "${D}/${q2maxdir}"/q2ded q2ded-qmax \
+ && rm "${D}/${q2maxdir}"/q2ded
+ use sdl \
+ && newgamesbin "${D}/${q2maxdir}"/sdlquake2 sdlquake2-qmax \
+ && rm "${D}/${q2maxdir}"/sdlquake2
+
+ insinto "${q2maxdir}"/baseq2
+ doins "${DISTDIR}"/maxpak.pak
+
+ make_desktop_entry quake2-qmax Quake2-qmax quake2
+ fi
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+
+ elog "Go read README-postinstall in /usr/share/doc/${PF}"
+ elog "right now! It's important - This install is just the engine, you still need"
+ elog "the data paks. Go read."
+
+ if use demo && ! has_version "games-fps/quake2-demodata[symlink]" ; then
+ ewarn "To play the Quake 2 demo,"
+ ewarn "emerge games-fps/quake2-demodata with the 'symlink' USE flag."
+ echo
+ fi
+}
diff --git a/games-fps/quake2-textures/Manifest b/games-fps/quake2-textures/Manifest
new file mode 100644
index 000000000000..8b369061f95a
--- /dev/null
+++ b/games-fps/quake2-textures/Manifest
@@ -0,0 +1,5 @@
+DIST pak8.zip 15099933 SHA256 2d1e3d11c26ec14e49b7334be66f205c7554aaa3309c0702c11d54ec0e0cd437 SHA512 2d51e3e97796e1ad86894767374bb335f5da59852aacc2dead622c4e51f4b73258c5a852561afbc6c6df54149424e96b3d433179864f7d52af81d9445ada8337 WHIRLPOOL 9ff47babab3570ee286b7f86540e9e24042c6ef4cc006af0dc271e3789cefd580f049dcf7e784c151ee7a92540b116600baa1cb7fb06ed7f53777881a63d9b2b
+EBUILD quake2-textures-0_beta8.ebuild 781 SHA256 a2e03b8b42344bb609ea06931b66f1a9ff7b228b136f2a6b32a8319be1b3ab2e SHA512 0b2977537d7ce4f4a35112b956ce1a6d8c449fcc31e84456d38791df984917e7e989485258a95ab1f4e2e8d231733a53d6636520f0e980a1de16afc7bd6324bf WHIRLPOOL d45a4ec24efe61505bbf73806f203d0431bc47d37175a54fcd72a4e4557559f0bb6a53168342b603b2a46a2fc53de7609589dc227ddb14df2ba56b46b0a4b0eb
+MISC ChangeLog 2456 SHA256 af4956c294143bb089a48beed0ded5d5d20c1058331fa7f0a2df81f200f514e2 SHA512 c513b309b9e966e1acab5b14c2f7fd16ab2d6b06de24bafd54230c71723fcdd9ced7ebe739140566addc7d9e632755967fb78c21a78e5480ef14da499ca1dbd6 WHIRLPOOL 1cb2c15195c326361d617c8d4a2a34487bf6c7add2460d60eb1d25a5d6f9bad8bbbc78c6932cd7e3df1cde1b087cbcfc2162ac88ee9a4ff102c8e5c5dce6cd8f
+MISC ChangeLog-2015 952 SHA256 13f90c8c6e8b7a9531d403b60d0223ae1bb1ebbba237241af3f5846d0fc210ee SHA512 34db040e0f96fe0457d4a5de9ad71008c39493aea38c193277c3de077f6b15d12265805e98066614722d6c2e08d0ce3d617cd3d5a18644014186de79d519775b WHIRLPOOL e455c929c2ed5629eab46194ddf15ec86e2cd2089cbba52587e478c9d059a8f86cd581e819fef897487594cecb7576579182597a789b06e95da691a4bb62fe71
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-fps/quake2-textures/metadata.xml b/games-fps/quake2-textures/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-fps/quake2-textures/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-fps/quake2-textures/quake2-textures-0_beta8.ebuild b/games-fps/quake2-textures/quake2-textures-0_beta8.ebuild
new file mode 100644
index 000000000000..0bf1bc09af17
--- /dev/null
+++ b/games-fps/quake2-textures/quake2-textures-0_beta8.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+EAPI=5
+inherit eutils versionator games
+
+MY_PV=$(get_version_component_range 2-2)
+MY_PV=${MY_PV/beta/}
+
+DESCRIPTION="High-resolution textures for Quake 2"
+HOMEPAGE="http://jdolan.tastyspleen.net/"
+SRC_URI="http://jdolan.tastyspleen.net/pak${MY_PV}.zip"
+
+LICENSE="all-rights-reserved"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+RESTRICT="mirror bindist"
+
+RDEPEND=""
+DEPEND="app-arch/unzip"
+
+S=${WORKDIR}
+dir=${GAMES_DATADIR}/quake2
+
+src_install() {
+ insinto "${dir}"/baseq2
+ doins *.pak
+
+ dodoc README
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+
+ elog "Use a recent Quake 2 client to take advantage of"
+ elog "these textures, e.g. qudos or quake2-icculus."
+ echo
+}
diff --git a/games-fps/quake3-alliance/Manifest b/games-fps/quake3-alliance/Manifest
new file mode 100644
index 000000000000..8c32704fd6e1
--- /dev/null
+++ b/games-fps/quake3-alliance/Manifest
@@ -0,0 +1,6 @@
+DIST alliance30-33.zip 1995207 SHA256 0040a15623226325f561a5dae0b41c18dc65bc7bddad208a30ee7bb5ba848f87 SHA512 e5cebec74e5c61d983453217b0a26f3111a23b76f9e20a5840231d45ca7323105dca983ee33e2d185902a353b5b882ddc488888a62b7ee38a000371e3f5dde61 WHIRLPOOL 8607c1111d10147a5e1886de54a955cebe0edf8382595952a0a035bd31fb6d93aeb2f5163eb01594baf642c2d4298d3f2ab61489b32899e28e787a6e2f466c1c
+DIST alliance30.zip 60476973 SHA256 a4ae3923883312e6ded35fa32a5e1e44510ee8897aacf7f4bb1ea41c90b21e60 SHA512 c48a5d78a85d667e0fd1d6ed321f716f932195fb48a479bc5405df50a50a4cd67e7d35b5a61080255e56b16eaa19acd7f394ed8fce320716d1a6c3f1be41107d WHIRLPOOL 793d57427dd03bbbca03fa7423953678a68c0119c156cd0ca603357c51dba60838fc83becd920ab8cde2707c9f150c41f2f1f2cf3c958c0b7bca6163cbc95f54
+EBUILD quake3-alliance-3.3-r1.ebuild 629 SHA256 84b0935558014d5d7b099efac63861c96e05db075a6fb1d19c25662969b44484 SHA512 6fb9b1ebd408cbfa2e3ace1a29aff0458ddf660a8e4b2054ff4f8d5f3c064c86b00d16a52108a2af27a1a6be011daee44b60f7e3af3199d812824d7a31c887ff WHIRLPOOL 4b1e58e577269b5f1f385419bbf185cab44e8ecdf2026f125d441cbc81ecc689c522dba5f1ba6f7b6c026424fa9d5b364cdcb227b296a393923602bfbcb02d67
+MISC ChangeLog 2587 SHA256 5d22cd2f45ebe7ee4ab4df61792004e9999f4385cc4c69650c86b6b2037cd38c SHA512 761bc8cc0dcc02bb9ab5d9632210d58e433955f8623d6dea00641544ebb116b34e19a743fb6e82b9d8d1e8fc324f82062420b94dbd030dbf1bf5a0c8540d349c WHIRLPOOL fef03ca38148eaf5a7223ef832469fb10279bfd6660bf0f8f171945cf7584313fa90acf0f703bfca0fc2ccb02834b13283f5f5d3f8ef00066a9e62449417365f
+MISC ChangeLog-2015 871 SHA256 492cea15fef9720c515676cf0895b34d184568fc5195582a679ab78503e6a7df SHA512 d8a34ecc7c9cb9dbfe61e7c1b5642bc51928c2ecbb8a0b4ee7dd67987ff606b5b15894c9090b9bf94066f20b45471dfb2c0530cabe5fbfb82b0bf1d0ae64d5f5 WHIRLPOOL b71fe895559e7e111f247f659ff4d1b9a784d08d57a8fcc4000490078d74738fb0881e00b2c2b3e20aa0a6170c70e220920a4bcee8fb9b9290d5d560dc20c342
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-fps/quake3-alliance/metadata.xml b/games-fps/quake3-alliance/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-fps/quake3-alliance/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-fps/quake3-alliance/quake3-alliance-3.3-r1.ebuild b/games-fps/quake3-alliance/quake3-alliance-3.3-r1.ebuild
new file mode 100644
index 000000000000..2ba01e103168
--- /dev/null
+++ b/games-fps/quake3-alliance/quake3-alliance-3.3-r1.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+MOD_DESC="fast paced, off-handed grapple mod"
+MOD_NAME="Alliance"
+MOD_DIR="alliance"
+
+inherit games games-mods
+
+HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
+SRC_URI="mirror://quakeunity/modifications/alliance/alliance30.zip
+ http://www.superkeff.net/mods/mods/alliance/alliance30.zip
+ mirror://quakeunity/modifications/alliance/alliance30-33.zip
+ http://www.superkeff.net/mods/mods/alliance/alliance30-33.zip"
+
+LICENSE="freedist"
+KEYWORDS="amd64 x86"
+IUSE="dedicated opengl"
+
+src_prepare() {
+ rm -f *.exe
+}
diff --git a/games-fps/quake3-alternatefire/Manifest b/games-fps/quake3-alternatefire/Manifest
new file mode 100644
index 000000000000..432a97dbabbd
--- /dev/null
+++ b/games-fps/quake3-alternatefire/Manifest
@@ -0,0 +1,6 @@
+AUX server.cfg 3645 SHA256 f0001c007ad99f63a9e2fe36c6003a3fd5b062d4436553cc80736268d0a8c9eb SHA512 a7b4d64adad075ba7ee7af3461ef36216fd374d852267ba712882549d44c137f7638ac100c31081528e6b384865cba6fcdeeccdb22bb0133bcac869e60c30e6f WHIRLPOOL 5200132ebb9c0e6a697bd26c8b6154f4cc6449ec41067fcb124581eb5025c5cf340fc201648bd5b4c1b2f0177401af33e1b1fbed10c32f8e5b88ce12bab9591f
+DIST alternatefire-2.0.zip 2015159 SHA256 8964bc680b713753b103d54211af46895990d6d10243102a2a13b01eaa678cbe SHA512 178c5470037e711c58cb09854d7e607166253a6f613c29f23fbbcd46cdff8786dfd53770dfc9d518d75d9a3e42b0745bfaa742a09bad0493dbd335d1bb3fcbf2 WHIRLPOOL 65b2c2ef01eb398a431932bd6a0e123c1349b42b889d5c4240e6db8c1fc4fed34ddeb9f60c1ea6b1408069e1845af37ebbd0c64c5c827467a8f34a6ed5b91494
+EBUILD quake3-alternatefire-2.0-r1.ebuild 448 SHA256 1e36b85fdc4f9e3947ee15c972e3b3bbda4b7af71cc3a3f7262e79eb698b5c0c SHA512 5a82bf24d9b17e13aabd02e480166679fb142f9803146065db22635272f01c064de50e3c5e2e75fd33168acc3c4aa9c7d60bc9e203f2787595420104469eb493 WHIRLPOOL 418caf009ef51355bf6551e9bf43c02d556908c706bdd4ee966a7f0b239a814e012f61a4ca77fd358b12048d4433bedbf4aff25003e626d0356bbf31cf8e845a
+MISC ChangeLog 2626 SHA256 313ce8022688d8cf9f59aa41a05edb58c84e061ada4104f1c4aa6b135bf5640a SHA512 dcafd9b30a47ec54806e2cb31a4b872ffb9d554b9351efe47f6f638c19bf65c0a3bb9779257ebc9c839324e433de189637e09e2ad723df63f73a6a034b887503 WHIRLPOOL 809de2db8e6a732c5d584938465e783195bab31de3c4e67e875bce6289136338ae7456490d5e58986b9906443f1a798664e96ac29d5f38400971870e3bca6be6
+MISC ChangeLog-2015 1063 SHA256 72347237a08f2d67771cd082a70e619e4b625426f48246702dd2434920ee7566 SHA512 aacd257404fc29968d228b0d223f03ad540b44ad99cb3e251b0e948fd7081130f5bd261cf46c4c3623756da08e2163fc92b80d65723580f5104f7966e090f165 WHIRLPOOL 3f019a88e5669210aeb9d4189e671bde46e104a4bedcf8cb3186706a0cb43249a65b83cd346ed465b5b230501709f29f1953fde137798455a1cebde5a31eb46c
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-fps/quake3-alternatefire/files/server.cfg b/games-fps/quake3-alternatefire/files/server.cfg
new file mode 100644
index 000000000000..0ee5c8a202e3
--- /dev/null
+++ b/games-fps/quake3-alternatefire/files/server.cfg
@@ -0,0 +1,109 @@
+// Sample .cfg file for the Alternate Fire mod
+// ==================================================================
+
+// It's set up for CTF, since that's my favorite game type :)
+// (besides, the lightning web is just awesome in CTF).
+
+// ---- General setup ----
+
+seta sv_pure 1
+seta sv_hostname "Gentoo - Alternate Fire"
+seta sv_maxclients 10
+seta sv_floodprotect 0
+seta g_motd "Welcome to AlternateFire"
+seta g_allowVote 1
+
+// Kick 'em after 3 minutes if they go inactive
+seta g_inactivity 180
+
+// Yes, they do need the z-alternatefire-0xx.pk3
+// Make sure it's in the right place ("alternatefire", not "baseq3")
+// (If you're running this on Linux, put it in ~/.q3a/alternatefire
+// or it won't upload)
+seta sv_allowDownload 1
+// Also, make sure you remove the old .pk3 when you upgrade!
+
+// ---- Bots ----
+
+seta bot_enable 1
+// This is per-team in team games
+seta bot_minplayers 4
+
+// ---- Game parameters ----
+
+// 0 - Free For All, 1 - Tournament,
+// 3 - Team Deathmatch, 4 - Capture the Flag
+seta g_gametype 4
+seta capturelimit 8
+seta timelimit 20
+seta g_friendlyFire 0
+
+// ---- Extra-special new stuff ----
+
+// Uncomment this if you want no falling damage
+//g_fallingDamage 0
+
+// Uncomment this if you want self damage to only damage armor
+// Set it to 0 to disable self damage altogether (default: 2)
+//g_selfDamage 1
+
+// Uncomment this if you like to play CTF the "old" way
+// (the player only has to touch his flag to return it)
+//g_returnFlag 0
+
+// Uncomment this if you want a mad, mad, mad game of
+// multi-flag CTF (everyone can have their own flag!)
+//g_multiFlag 1
+
+// Uncomment this if you want an offhand grapple
+// Your players will need to bind +button6 to something,
+// or set up their grapples in SETUP->CONTROLS->SHOOT
+// WARNING: The grappling hook IS NOT client-side predicted,
+// which means it's awful for anybody with a ping over 100
+//g_offhandGrapple 1
+
+// ---- Chat/Name Filter ----
+
+// ** PLEASE READ THE README BEFORE ENABLING THESE OPTIONS **
+
+// Uncomment this to force every client's chat filter on
+// They can override this in the GAME OPTIONS menu - which
+// means that setting this really just makes the chat filter
+// opt-out
+//g_forceChatFilter 1
+
+// Uncomment this to force every client's name filter and
+// kick players with dirty names
+//g_forceNameFilter 1
+
+// ** Be careful with the next two - the chat filter may
+// act differently than you think. Read the README. **
+
+// Use this to add words for chat filtering (separate words
+// with spaces, use an underscore ("_") in place of a space
+// if you need to filter phrases)
+//g_filteredWords
+
+// Use this to filter additional names - same format as above
+//g_filteredNames "bin_laden terrorist"
+
+// ---- Map rotation ----
+
+// An id/threewave CTF map rotation
+// Even if you don't use this rotation, I suggest using "d1"
+// as the command for the first map, since players can vote
+// to reset the map rotation. That action will set nextmap
+// to "vstr d1".
+set d1 "map q3ctf1; set nextmap vstr d2"
+set d2 "map q3wctf2; set nextmap vstr d3"
+set d3 "map q3ctf4; set nextmap vstr d4"
+set d4 "map q3wctf1; set nextmap vstr d5"
+set d5 "map q3ctf2; set nextmap vstr d6"
+set d6 "map q3wctf3; set nextmap vstr d7"
+set d7 "map q3ctf3; set nextmap vstr d1"
+vstr d1
+
+// If you want to change the game type (and other things) per map, do stuff like this:
+//set d1 "set g_gametype 0; set fraglimit 20; map q3dm17; set nextmap vstr d2"
+//set d2 "set g_gametype 1; set fraglimit 15; set timelimit 10; map q3tourney3; set nextmap vstr d1"
+//vstr d1
diff --git a/games-fps/quake3-alternatefire/metadata.xml b/games-fps/quake3-alternatefire/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-fps/quake3-alternatefire/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-fps/quake3-alternatefire/quake3-alternatefire-2.0-r1.ebuild b/games-fps/quake3-alternatefire/quake3-alternatefire-2.0-r1.ebuild
new file mode 100644
index 000000000000..d5e4e58ddcc5
--- /dev/null
+++ b/games-fps/quake3-alternatefire/quake3-alternatefire-2.0-r1.ebuild
@@ -0,0 +1,17 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+MOD_DESC="adds unique new secondary attacks to weapons"
+MOD_NAME="Alternate Fire"
+MOD_DIR="alternatefire"
+
+inherit games games-mods
+
+HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
+SRC_URI="mirror://quakeunity/modifications/alternatefire/alternatefire-${PV}.zip"
+
+LICENSE="freedist"
+
+KEYWORDS="amd64 x86"
+IUSE="dedicated opengl"
diff --git a/games-fps/quake3-bfp/Manifest b/games-fps/quake3-bfp/Manifest
new file mode 100644
index 000000000000..a5ac1916a06c
--- /dev/null
+++ b/games-fps/quake3-bfp/Manifest
@@ -0,0 +1,5 @@
+DIST bidforpower1-2.zip 129645741 SHA256 e8d5f4ec8453a7b0e0cd430e38ff5fb2cc37eb16c17f7e5eb6515429903b3a7b SHA512 9559af36f6efa46e7d20e4a4dc1293ddf8e5bf310672eebdc3f04536e926c05ce699819adaba2c9a29794815a7b766ed9f70b4d83121196f675cb0d221e77b18 WHIRLPOOL 7f274d038cd4c47a6ae74bb219acb9b288b21e00874b7cd6f2e6e561bb3ee11db62bb9aa1a3fc8f9f06c0b0facae7a278a23e665f7bbd333f41da391847a99b8
+EBUILD quake3-bfp-1.2-r1.ebuild 462 SHA256 3a64df63f1edc1e2dd70932eec70eaf1ac6a59650fccb0a38028b5ed92202aaf SHA512 215fbd7775a9c6228aa3fee157ca4318e7c3c9deb87ce57fbde51f14caf96589cc4ce2bff069faa785d137890eef8c128830d16411f627da8baf5d6a7cf7e1f4 WHIRLPOOL 8416df10efe9322882abaf5f28b24650305d7ebc9bfa23445135c2096c2c9f9adcc6908c05fa6469e70230f0b24465d3933a4d128c3cdc63c23e503f751826c4
+MISC ChangeLog 2567 SHA256 97343d116c1684527724ee206f5444c9e5173ac74f8581081fa7e7c78f8e9be8 SHA512 415237773d608fe2664f5da97232126e301e96f52919f669487f48a4129c45cc8172112b1408b1c7bc4003efd728ae178b57e3507d4f5736c826801c1eede3ac WHIRLPOOL d11c74e3febc5fd65c83da5e939e9cd67abad5f91259c60955115da1fedfc8fe4d2802d0f5795fd43a47337f76379ecd8954967b90071a49a8d10542a12a031d
+MISC ChangeLog-2015 1134 SHA256 8d0ec54c5f784a2ae179e20c2a1610446e3a8793fa603bd9d61f8080ee3029b3 SHA512 4915462a198529c9ed0656f9872cb16743ab55198eb0ee5447b23637e7298e14b51e384728cced4ad33dca14a6e8591e379b8c2c06f0015e33e3bec404b57476 WHIRLPOOL e3435e318fbd57ac9fcd80f6f2a3f1f51944469166d71893ec537680c0d8d474755e594f17658fa7b7e4720540dd988de2de97eb67fe7ef13361f3e4ea403cd0
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-fps/quake3-bfp/metadata.xml b/games-fps/quake3-bfp/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-fps/quake3-bfp/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-fps/quake3-bfp/quake3-bfp-1.2-r1.ebuild b/games-fps/quake3-bfp/quake3-bfp-1.2-r1.ebuild
new file mode 100644
index 000000000000..59e6be36e675
--- /dev/null
+++ b/games-fps/quake3-bfp/quake3-bfp-1.2-r1.ebuild
@@ -0,0 +1,17 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+MOD_DESC="Control Ki-powered superheros and battle in the air"
+MOD_NAME="Bid For Power"
+MOD_DIR="bfpq3"
+MOD_ICON="bfp.ico"
+
+inherit games games-mods
+
+HOMEPAGE="http://www.moddb.com/mods/bid-for-power"
+SRC_URI="mirror://quakeunity/modifications/bidforpower/bidforpower${PV/./-}.zip"
+
+LICENSE="freedist"
+KEYWORDS="amd64 x86"
+IUSE="dedicated opengl"
diff --git a/games-fps/quake3-bin/Manifest b/games-fps/quake3-bin/Manifest
new file mode 100644
index 000000000000..969f5dfc8cfa
--- /dev/null
+++ b/games-fps/quake3-bin/Manifest
@@ -0,0 +1,8 @@
+AUX q3ded.conf.d 193 SHA256 c82bbfa756be743c60c60caf7939cd72d4107e076145132649d27cea724131a4 SHA512 231ad60874f701efcd85010fbe41d6891db9c7e926d56c88993c5c9025c33884bfb11d83578858cb5b564d2596198cb90da123e67a53e219d08a69c3968e06ff WHIRLPOOL db04b5192ff5642d45cbb8c57dbef8b88f0fea80af1b6e8861b137751e49251b530808417d64cb6f1f13bc5b81b5ff7e4a917351e266f7ecb486536f65c47b70
+AUX q3ded.rc 742 SHA256 469f43ef952f3cf17cf4f2b6806bf5dddcc3b248361136a780aff1c5e14dc853 SHA512 930b278c0f9ea227b1d64a8167aee72d58ff4f564e46846d4028de8128e66651c47dd52eca12c21e34e3bdbe43a44ae3a6dde6993b556aaf933dad596e027396 WHIRLPOOL a7654f63311cacb1aeb7b320e85e5defb38c22ccef9ca56de5aaec56c4db3d30df5ad751c4fa64af9b04d76b0fa97b474bd6a6cf48342a8f54f00f0bc684d0b9
+DIST linuxq3apoint-1.32b-3.x86.run 30923961 SHA256 c36132c5556b35e01950f1e9c646235033a5130f87ad776ba2bc7becf4f4f186 SHA512 64cff7f8b689e6c801cd68b0f44406a60bd45f83b2544debb8bf1ef7480a1407184a67d2bdafe66e803c0c030b8df6766ce24e48c9e7c610ecf152ed326b7d78 WHIRLPOOL ad1250dbf53e0d5b03b753752e9fc66f361fe2473fc3bd74285a1357e3c1f9fded64806a46766f1bd666b567b8d0fc55a8780633f60af2554abaad9231873cf3
+DIST quake3-1.32c.zip 3056760 SHA256 643ac677892fb58689a86d71f08d6678393efe2939b82c436a5c92368eebb849 SHA512 8bc68d4a1e015e5d5abb88bee1e52cb6375c005d707147869d16383bdbfd37f092a75e8fb3f8678120621433d98de40dcda9dbdbd255a92399caec2c545ff689 WHIRLPOOL 8b55046d002a577087309961074f5b05997d512e6dd666335a38026f006481497a6bb94e5ee9869b0ecdf7767cc26be5f949e157c06e2e477143819d29347f42
+EBUILD quake3-bin-1.32c-r2.ebuild 2997 SHA256 646fc2ae1fa243e6a3c81e61c583351eb6815e22cc4f8b949191097dd86ab0f8 SHA512 2fb9d0d3f8a7ebee6e280daf877f524139b5ab1293bf2c5e02fd4ae5ba49f72537b08502e7abba1ce1f002bfb74130ed6e316033df65f9015ac63347dee5970b WHIRLPOOL c8d05e85bfe017cfd52690342862a31dcb46116b24ca819f34883e4d75438b0ef99420dd5f1e3628628917a037b5aeaffce84a2f3275a05316603a54694d394c
+MISC ChangeLog 2606 SHA256 7cc610a364a146bc3cd6eadc5ef940112359942a264166ddf723b45beda8bf93 SHA512 c88b0ff5f4c2567684e1a129e5cc776adb160624dd4a7102669e823022fba63c6e148bf1831e4517e52d7c18952a2a129689763dafea660676c4a419ab436beb WHIRLPOOL 7a52335f604abfcfde922baf030d7524b048e1f7511a243702e83abd9ae203f4ada07a127476e54908bb9d9eb4b9be1cc5b5bfc0a6354ce9e0bd7f0b21cf6868
+MISC ChangeLog-2015 11169 SHA256 13878c74fb61bd9b671853b5fb3e91133c58e8259ccc86a6da394cd170867a09 SHA512 7324b2b695b790d9324df098f2153aa1568eb8ed9f9105a957a331740c0860500cf05edb5d793f4c04d0615cfeff6507800bc6d1a943a5d26f5cc437e2c5788a WHIRLPOOL a3ef8c193d90b756f77f4f6ae8a9506e68fb80611185d6a724796c5f7cd641925475d767b1062d37e4ff66b06c8b81403f669d31993902707210a932e404645c
+MISC metadata.xml 1151 SHA256 1b905f9e8fd920f177bc74e98bdd8ddeaaf83e53f08578e05be9715132abf51e SHA512 3a76be6152f7b32374df36281551036dcf9a98531347b24250c83dd12ad7c267cb0271c8ad747f312e2cdec2a4ff1c8f66b9ee9898fc58f7b9c78092cbc99ecd WHIRLPOOL dd48a20adb9c09586777668038600df6611292f174aeb60699db602064c1ef84e831b3f4ac55ab777b2fdc06556437e2993b1141a2cc55912e69a17047fcf72c
diff --git a/games-fps/quake3-bin/files/q3ded.conf.d b/games-fps/quake3-bin/files/q3ded.conf.d
new file mode 100644
index 000000000000..5ecb89b6c445
--- /dev/null
+++ b/games-fps/quake3-bin/files/q3ded.conf.d
@@ -0,0 +1,5 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+q3_OPTS="+set com_hunkmegs 24 +set dedicated 1 +set net_port 27960 +map q3tourney2"
+
diff --git a/games-fps/quake3-bin/files/q3ded.rc b/games-fps/quake3-bin/files/q3ded.rc
new file mode 100644
index 000000000000..1faaf0384e3b
--- /dev/null
+++ b/games-fps/quake3-bin/files/q3ded.rc
@@ -0,0 +1,34 @@
+#!/sbin/openrc-run
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting Quake3 dedicated server"
+ screen -A -m -d -S q3ded-bin su - games -c "q3ded-bin ${q3_OPTS}"
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping Quake3 dedicated server"
+ local pid=`screen -list | grep q3ded-bin | awk -F . '{print $1}' | sed -e s/.//`
+ if [[ -z "${pid}" ]] ; then
+ eend 1 "Lost screen session"
+ else
+ pid=`pstree -p ${pid} | sed -e 's:^.*q3ded-bin::'`
+ pid=${pid:1:${#pid}-2}
+ if [[ -z "${pid}" ]] ; then
+ eend 1 "Lost q3ded-bin session"
+ else
+ kill ${pid}
+ eend $? "Could not kill q3ded-bin"
+ fi
+ fi
+}
+
+status() {
+ screen -list | grep q3ded-bin
+}
diff --git a/games-fps/quake3-bin/metadata.xml b/games-fps/quake3-bin/metadata.xml
new file mode 100644
index 000000000000..7af61d9d28bf
--- /dev/null
+++ b/games-fps/quake3-bin/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>
+Quake III Arena is the third installment of the extremely popular and
+successful Quake series by id software. The game was released by id
+software for both Windows and Linux. The Linux version of the game was
+maintained and sold by the now defunct Loki Entertainment. The powerful
+Quake III engine is the basis for many other commercial games, as id's
+major source of revenue is licensing their game engines. The engine
+allows for user-contributed modifications to be made, allowing the game
+to be extensible and expandable. This game is commercial software, and
+requires the data from a retail copy of the game to play. If you're
+interested in checking out the technology behind Quake III, then
+"emerge quake3-demo" to get the playable demo.
+</longdescription>
+ <use>
+ <flag name="teamarena">Adds support for Team Arena expansion pack</flag>
+ </use>
+</pkgmetadata>
diff --git a/games-fps/quake3-bin/quake3-bin-1.32c-r2.ebuild b/games-fps/quake3-bin/quake3-bin-1.32c-r2.ebuild
new file mode 100644
index 000000000000..debf5443b976
--- /dev/null
+++ b/games-fps/quake3-bin/quake3-bin-1.32c-r2.ebuild
@@ -0,0 +1,105 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils unpacker games
+
+DESCRIPTION="3rd installment of the classic id 3D first-person shooter"
+HOMEPAGE="http://www.idsoftware.com/"
+SRC_URI="mirror://idsoftware/quake3/linux/linuxq3apoint-1.32b-3.x86.run
+ mirror://idsoftware/quake3/quake3-1.32c.zip"
+
+LICENSE="Q3AEULA GPL-2" #gpl for init script bug #425942
+SLOT="0"
+KEYWORDS="-* amd64 x86"
+IUSE="cdinstall dedicated teamarena"
+RESTRICT="strip"
+
+DEPEND="app-arch/unzip"
+RDEPEND="sys-libs/glibc
+ amd64? ( sys-libs/glibc[multilib] )
+ cdinstall? (
+ games-fps/quake3-data[cdinstall]
+ teamarena? ( games-fps/quake3-teamarena )
+ )
+ dedicated? ( app-misc/screen )
+ !dedicated? (
+ >=virtual/opengl-7.0-r1[abi_x86_32(-)]
+ >=x11-libs/libXext-1.3.2[abi_x86_32(-)]
+ >=x11-libs/libX11-1.6.2[abi_x86_32(-)]
+ )"
+
+S=${WORKDIR}
+
+dir=${GAMES_PREFIX_OPT}/quake3
+Ddir=${D}/${dir}
+
+QA_TEXTRELS="${dir:1}/pb/pbag.so
+ ${dir:1}/pb/pbcl.so
+ ${dir:1}/pb/pbsv.so"
+
+src_unpack() {
+ unpack_makeself linuxq3apoint-1.32b-3.x86.run
+ unpack quake3-1.32c.zip
+}
+
+src_install() {
+ dodir "${dir}"/{baseq3,missionpack}
+ if use cdinstall ; then
+ dosym "${GAMES_DATADIR}"/quake3/baseq3/pak0.pk3 "${dir}"/baseq3/pak0.pk3
+ use teamarena && dosym "${GAMES_DATADIR}"/quake3/missionpack/pak0.pk3 \
+ "${dir}"/missionpack/pak0.pk3
+ fi
+ for pk3 in baseq3/*.pk3 missionpack/*.pk3 ; do
+ dosym "${GAMES_DATADIR}"/quake3/${pk3} "${dir}"/${pk3}
+ done
+
+ insinto "${dir}"
+ doins -r Docs pb || die "ins docs/pb"
+
+ exeinto "${dir}"
+ doins quake3.xpm README* Q3A_EULA.txt
+ if ! use dedicated ; then
+ doexe "Quake III Arena 1.32c"/linux/quake3*.x86 || die "doexe"
+ games_make_wrapper ${PN} ./quake3.x86 "${dir}" "${dir}"
+ newicon quake3.xpm ${PN}.xpm
+ make_desktop_entry ${PN} "Quake III Arena (binary)"
+ if use teamarena ; then
+ games_make_wrapper ${PN}-teamarena \
+ "./quake3.x86 +set fs_game missionpack" "${dir}" "${dir}"
+ make_desktop_entry ${PN}-teamarena \
+ "Quake III Team Arena (binary)" quake3-bin
+ fi
+ fi
+ doexe "Quake III Arena 1.32c"/linux/q3ded || die "doexe q3ded"
+ games_make_wrapper quake3-ded ./q3ded "${dir}" "${dir}"
+ newinitd "${FILESDIR}"/q3ded.rc quake3-ded
+ newconfd "${FILESDIR}"/q3ded.conf.d quake3-ded
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ ewarn "There are two possible security bugs in this package, both causing a"
+ ewarn "denial of service. One affects the game when running a server, the"
+ ewarn "other when running as a client."
+ ewarn "For more information, please see bug #82149."
+
+ if ! use dedicated; then
+ echo
+ elog "To start the game, run:"
+ elog " quake3-bin"
+ fi
+ echo
+ elog "To start a dedicated server, run"
+ elog " /etc/init.d/quake3-ded start"
+ elog
+ elog "The dedicated server is started under the ${GAMES_USER_DED} user account."
+
+ # IA32 Emulation required for amd64
+ if use amd64 ; then
+ echo
+ ewarn "NOTE: IA32 Emulation must be compiled into your kernel for Quake3 to run."
+ fi
+}
diff --git a/games-fps/quake3-cpma/Manifest b/games-fps/quake3-cpma/Manifest
new file mode 100644
index 000000000000..c03f7e01313a
--- /dev/null
+++ b/games-fps/quake3-cpma/Manifest
@@ -0,0 +1,7 @@
+AUX server.cfg 2977 SHA256 31a094ad43054ff6e924b50b2457e9a65ddcf86dde5dc2e839e0922ac7ef7cf4 SHA512 bf380b227eb2c1fcb0365bf930d6c89410942ecc1dec42d1cff1017d9bf3a1164126cb4a22e94b2f3baa3874a520650702b2013fb9b41e7be91151d543106045 WHIRLPOOL 90aa539df5e97437adff8458d751fc9b68146490fbc56dacbae96930281e89d7cd7afe98b34813d4efe69d7ca1450401b6c101b41a7576b8d725d28fd1512290
+DIST cpma-mappack-full.zip 122543145 SHA256 5db933fc92c41f2e0941ab65725586d4d0c30fe84727427bb6b265e4d941a226 SHA512 bbc1ddd378f76ece224403ac7e1aeb1de2fec2756f438be07fb8f018e5e8cc6679cbf574eac51ce75daa0ee53b8b095ce5b46dffbd120df5450039ce754b9b37 WHIRLPOOL 332dba5fa7f26346e1fc5475b124022b9c3753dcf1ab7414ef9797871538877603267238aa3d0ad48715adb8631c036a5c35f2c5a76d1faea67cf21fe027d476
+DIST cpma148-nomaps.zip 8045352 SHA256 1f0aafcaa48a16880ab4541aaa8b9d017c6c0b90c8fc0b4de871f976c05598d5 SHA512 6908065a98922774f3b80924a7286fe9008dea0e6e5e7d808e07d9d474bebf30c3e4ca2cd2587c93903095213fbaaff4154d309fd0ca002e80e871c99631c120 WHIRLPOOL de057e185d06778c5795070ea6f3139703df5c9550c7f3db7900d2bebe6b558a6e13982f8e0802d26e5ef2d27bf29654566f9f13af9cddd5d30642ff3b64433b
+EBUILD quake3-cpma-1.48.ebuild 633 SHA256 a2904d774285eab550fadbdb685785aaeefced991df12b9524ac2dff6387101c SHA512 54fa811d0c7be9a24ddba8244b9c7d9968549d7686227fca3aa11a7b7a35b7f6ec05fc525b9afbf2e2cd83a3059f0af12045ada0c150335b2f8195ffece66186 WHIRLPOOL aecaa2db4ec00eb9748527361191a847622e33d3e9da023e301add840930c4a256d7e950bf19bc8a0a0bc9a71589a44f26e3e53ed5b89bb66196bdd057a86912
+MISC ChangeLog 2629 SHA256 b7ff02e5929c96ed873c36d0716af65b0f64232f67599cd89ac137cb7a505885 SHA512 75637e86cdbb8d9d36c9eabceb68d0939e5554692290dada3347caa204ed7eebc375e6f52c9c256a942776447b93d516ed6dff28112fe633adcb6dc044d1c157 WHIRLPOOL 39f3f84ecd225040cec0d56f616db508dcf6a11c5a662ff21026878565a40eeb162f1177f6ecd405d50f240830ded7191775f3ab24e5b49d45acb6d48cded888
+MISC ChangeLog-2015 4100 SHA256 d84afe5b742ede807b5f262dd3d8ee5f256190a01bad5a0d311ad33033e02bc5 SHA512 e83be9b7ab0d2d58c7ca5b139b94cd09250f7674a1dae2daded09a9c01020d9d0e9d97f4cbef708f7c788f8084a3bc6e402dabafd13e162cc1dd4ec5f9f84227 WHIRLPOOL 17fc72e4b357b86ba7b6126b7850febbbf630f8c4e7c2c736165b37432fea6aba36ababd2db4c23d7a505901c1337a8699b528a7eee5a4a674f855c7add40606
+MISC metadata.xml 2140 SHA256 4543eeccb0b76e9a6dccef48765c6d98c0080d8a0c55f000e764f47e797ba304 SHA512 3ee4c8bb057183cc7aa852ce76fb793c9372ecfac8569eb9b8361e1c18d659f907424098733f3fe3ad24eb141ea97e354a6a8d813c0f5fb3e6f2de70bcefcebf WHIRLPOOL dff441cd07c2acb631ea71e2040c1455387dec0633a607601c6ffce30260262325932fd80b9520f71cc15cbfe8bd731b0614be16c8747a5aef9e946277b63b7b
diff --git a/games-fps/quake3-cpma/files/server.cfg b/games-fps/quake3-cpma/files/server.cfg
new file mode 100644
index 000000000000..352d1e8e69fd
--- /dev/null
+++ b/games-fps/quake3-cpma/files/server.cfg
@@ -0,0 +1,146 @@
+// Server Information
+//=========================
+sets ".admin" ""
+sets ".email" ""
+sets ".www" ""
+sets ".location" ""
+sets ".irc" ""
+
+
+seta sv_pure 1
+seta server_ospauth 1
+seta sv_hostname "CPMA"
+seta sv_maxclients 13
+seta sv_privateclients 1
+seta admin_log "adm.log"
+seta logfile 3
+seta g_log "games.log"
+seta filter_file ""
+seta log_default 0
+seta log_stat 0
+seta viewcam_directory ""
+
+
+seta sv_maxping 0
+seta sv_minping 0
+seta server_maxrate 25000
+seta sv_minrate 0
+seta server_maxpacketsmax 100
+seta server_minpacketsmax 30
+seta server_timenudgemax 100
+seta server_timenudgemin -25
+seta sv_allowdownload 1
+seta sv_floodprotect 0
+seta server_customclient 15
+seta server_pure 1
+seta server_promode 0
+seta server_realping 1
+seta server_thrufloors 1
+seta pmove_fixed 1
+seta pmove_msec 8
+seta g_inactivity 600
+seta bot_enable 0
+
+
+// MOTD Text
+//=========================
+seta server_motd1 "This server is powered by Gentoo Linux"
+seta server_motd2 ""
+seta server_motd3 ""
+seta server_motd4 ""
+
+
+// Password Settings
+//=========================
+set g_password ""
+seta ref_password "none"
+seta rconpassword ""
+seta sv_privatePassword ""
+
+
+// Set GameType Clan Arena
+//=========================
+seta g_gametype 5
+seta scorelimit 5
+
+
+// Match Settings
+//=========================
+seta g_doWarmup 0
+seta g_warmup 5
+seta match_mutespecs 0
+seta match_roundtimer 5
+seta match_timeoutcount 0
+seta match_timeoutlength 60
+seta match_hurtself 0
+seta match_startrespawn 0
+seta server_fallingdamage 0
+seta server_healthdamageself 0
+seta server_healthdamageteam 0
+seta server_armordamageself 0
+seta server_armordamageteam 0
+seta server_startrespawn 0
+
+
+// Vote/Callvote Settings
+//=========================
+seta g_allowVote 1
+seta vote_limit 10
+seta vote_percent 80
+
+
+seta vote_allow_armordamage 0
+seta vote_allow_fallingdamage 0
+seta vote_allow_flood 0
+seta vote_allow_map 1
+seta vote_allow_kick 1
+seta vote_allow_mutespecs 1
+seta vote_allow_referee 1
+seta vote_allow_limit 1
+seta vote_allow_bfg 0
+seta vote_allow_pure 0
+seta vote_allow_promode 0
+seta vote_allow_maxpackets 0
+seta vote_allow_timenudge 0
+seta vote_allow_startrespawn 0
+seta vote_allow_arenatype 0
+seta vote_allow_items 0
+seta vote_allow_altgraphics 0
+seta vote_allow_exec 0
+seta vote_allow_fastrail 0
+seta vote_allow_hook 0
+seta vote_allow_instagib 1
+seta vote_allow_lgcooldown 0
+seta vote_allow_allcaptain 0
+seta vote_allow_armor 1
+seta vote_allow_armorsystem 0
+seta vote_allow_overtime 0
+seta vote_allow_pmove 0
+seta vote_allow_poweruprespawn 0
+seta vote_allow_scorelimit 1
+seta vote_allow_teamdamage 0
+seta vote_allow_timelimit 0
+seta vote_allow_vstr 1
+seta vote_allow_weaponrespawn 0
+
+
+// Map Settings
+//=========================
+seta map_queue 1
+seta map_rotate 0
+seta map_once 1
+seta map_random 1
+seta map_nocount 0
+seta map_halt 0
+
+
+seta item_disable 1023
+seta powerup_disable 255
+seta weapon_deaddrop 0
+seta weapon_have 127
+seta weapon_start 8
+
+
+// Load This Map by Default
+//=========================
+map q3tourney5
diff --git a/games-fps/quake3-cpma/metadata.xml b/games-fps/quake3-cpma/metadata.xml
new file mode 100644
index 000000000000..a5a834212f58
--- /dev/null
+++ b/games-fps/quake3-cpma/metadata.xml
@@ -0,0 +1,37 @@
+<?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>
+The Challenge Pro Mode (CPM) project was created by Richard 'Hoony' Sandlant in May 1999
+(when the 'Q3test' was released) after he realised that Quake 3 Arena was going to have a
+lot of "newbie-friendly" features and after John Carmack admitted a more challenging
+version might be better for professional gamers (which is where the name "pro mode" came
+from).
+
+The Challenge Pro Mode's goals were, first and foremost, to make a more exciting and
+challenging game to play and we hoped that this would help advance Q3 into a professional
+sport. Along the way we made a choice between making only small conservative changes to
+Q3A, and making the changes that our design team recommended. We took the path of making
+the changes that our design team felt were necessary.
+
+Our approach was to form an international project team and to separate "Design" from
+"Programming". While the programming team might have input into the design process they
+didn't make final design decisions - that was left to a team of experienced Quake players
+who tested changes using a "tweaks" mod. The design team consisted of players with a mix
+of competitive experience across Q1, Q2, Q3 and even UT.
+
+Before the design team began their work we asked the community to 'brainstorm' a list
+(called the "candidates list") of all the possible changes they would like to see (some
+were contradictory). We also asked noted commentators (pundits) in the community what they
+thought might be best. The designers took note of all of these suggestions, and used a
+long process of tweaking and testing to develop the Challenge Pro Mode design. The team
+released two public betas of their work for feedback and input from the community.
+
+And that is pretty much how the project team has worked ever since. The result is a
+gameplay design which we think is "finely tuned".
+</longdescription>
+</pkgmetadata>
diff --git a/games-fps/quake3-cpma/quake3-cpma-1.48.ebuild b/games-fps/quake3-cpma/quake3-cpma-1.48.ebuild
new file mode 100644
index 000000000000..78808886c95f
--- /dev/null
+++ b/games-fps/quake3-cpma/quake3-cpma-1.48.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+MOD_DESC="advanced FPS competition mod"
+MOD_NAME="Challenge Pro Mode Arena"
+MOD_DIR="cpma"
+
+inherit games games-mods
+
+HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
+SRC_URI="http://packages.vstone.eu/quake3/install/cpma${PV//.}-nomaps.zip
+ http://packages.vstone.eu/quake3/install/cpma-mappack-full.zip"
+
+LICENSE="all-rights-reserved"
+KEYWORDS="amd64 x86"
+IUSE="dedicated opengl"
+
+src_prepare() {
+ mv -f *.pk3 ${MOD_DIR} || die
+}
+
+pkg_postinst() {
+ games-mods_pkg_postinst
+ elog "To enable bots: +bot_enable 1"
+}
diff --git a/games-fps/quake3-data/Manifest b/games-fps/quake3-data/Manifest
new file mode 100644
index 000000000000..17022667bebc
--- /dev/null
+++ b/games-fps/quake3-data/Manifest
@@ -0,0 +1,5 @@
+DIST linuxq3apoint-1.32b-3.x86.run 30923961 SHA256 c36132c5556b35e01950f1e9c646235033a5130f87ad776ba2bc7becf4f4f186 SHA512 64cff7f8b689e6c801cd68b0f44406a60bd45f83b2544debb8bf1ef7480a1407184a67d2bdafe66e803c0c030b8df6766ce24e48c9e7c610ecf152ed326b7d78 WHIRLPOOL ad1250dbf53e0d5b03b753752e9fc66f361fe2473fc3bd74285a1357e3c1f9fded64806a46766f1bd666b567b8d0fc55a8780633f60af2554abaad9231873cf3
+EBUILD quake3-data-1.32b.ebuild 1165 SHA256 608950a81972fbedd67d78f9cc2b6256a54059292242ea458ad15b85cad0c797 SHA512 7a9e01e1bc9ae4ecfa83cdea4e7af0b5b3efe27366e133631b97f2f22bca6e4d9545a13d9fd63de78adab4bfa83b2dc891a0e1a6030b7572dbdae7c9d5739d5f WHIRLPOOL 4ad55decadfcd937392bff2c84d5648eda085c5f4209499f2a9a79e3956c4bf21addefef09ce691bceb035f3c997c9d0d635957151d993c4d41a65b91da0e5e8
+MISC ChangeLog 2440 SHA256 90787f2e8a41aa4ae431d38c2124c1b48355207682458cbf56667c63de868f5d SHA512 9a8f4f035832b1f5a4cff89b96d263e6ca6a5626b3c52b9eb188ab997297d8bad9d434c36370772c95ab1a7517188e49c588a277cd702ce4bac68dba25b844f3 WHIRLPOOL f87c5e90de185d0a241cf0371d8cf7282f51aba47b1e32c5d73d23b9f42782ef850c53bacdda57db87f0a4f9b485e3c7c8aabccd9ef7c56e36f1c4977f7c71e4
+MISC ChangeLog-2015 2366 SHA256 5c9670bff5c6f0eca9302ef02b1143eda1490849a326a5457a12ca7176a66872 SHA512 a2483887a252632051bda66137fac8dd3e70cbbf0e8a4ffe6fd0391fece8e99e9a2ff913775145ce9e65704836260a0122262df2fc5c1389be20aa091fce8ebb WHIRLPOOL ff3cc582d6e77afd7e60a4e78709852bffa4a5995ec3964208937ec79dd2dd2fdcf887a12239f6663ca44393c65ef8a05e33dd3c616d7e7fb42be02d18d49508
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-fps/quake3-data/metadata.xml b/games-fps/quake3-data/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-fps/quake3-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-fps/quake3-data/quake3-data-1.32b.ebuild b/games-fps/quake3-data/quake3-data-1.32b.ebuild
new file mode 100644
index 000000000000..c6fdf94e9c8e
--- /dev/null
+++ b/games-fps/quake3-data/quake3-data-1.32b.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+CDROM_OPTIONAL="yes"
+inherit eutils unpacker cdrom games
+
+DESCRIPTION="Quake III Arena - data portion"
+HOMEPAGE="http://icculus.org/quake3/"
+SRC_URI="mirror://idsoftware/quake3/linux/linuxq3apoint-${PV}-3.x86.run"
+
+LICENSE="Q3AEULA"
+SLOT="0"
+KEYWORDS="~alpha amd64 x86 ~x86-fbsd"
+IUSE=""
+
+S=${WORKDIR}
+dir=${GAMES_DATADIR}/quake3
+
+src_unpack() {
+ use cdinstall && cdrom_get_cds baseq3/pak0.pk3:Quake3/baseq3/pak0.pk3
+ unpack_makeself
+}
+
+src_install() {
+ ebegin "Copying files from linux client ..."
+ insinto "${GAMES_DATADIR}"/quake3/baseq3
+ doins baseq3/*.pk3
+ eend 0
+
+ if use cdinstall ; then
+ einfo "Copying files from CD ..."
+ newins "${CDROM_ABSMATCH}" pak0.pk3
+ eend 0
+ fi
+
+ find "${D}" -exec touch '{}' \;
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ if ! use cdinstall ; then
+ echo
+ elog "You need to copy pak0.pk3 from your Quake3 CD into:"
+ elog " ${dir}/baseq3."
+ elog "Or if you have a Windows installation of Q3 make a symlink to save space."
+ elog
+ elog "Or, re-emerge quake3-data with USE=cdinstall."
+ echo
+ fi
+}
diff --git a/games-fps/quake3-defrag/Manifest b/games-fps/quake3-defrag/Manifest
new file mode 100644
index 000000000000..82e263602b0b
--- /dev/null
+++ b/games-fps/quake3-defrag/Manifest
@@ -0,0 +1,17 @@
+DIST defrag_1.91.21.zip 4035256 SHA256 9f9b92eda597ce14e1135aa964a3b8bb35371875922dc0403a1844ae948f4c79 SHA512 bfc1614b0e2f2dd674369c9c162c412249e6c514f878eaf82a456c882e2081867d6a7260f62ce4a143c23ff28f4f3a5e75a152db788d66b7a0978225bf4417b8 WHIRLPOOL 1089bef0c0c7dd1ff020bc82c0e7b685aa6b17855193422cd81e4a49bd50fafb68adb47005f340d7db1debae69afe6443403a425b13b58a67f779798c9c3cef5
+DIST defragcpmpak01.zip 8567363 SHA256 9de7a8d34d2a31db3c6593d1383c449b0b0cb09768062988736c9f75aad0028f SHA512 2ad013e27886bd5547ac1555711c026b27131311d0261e36f50ee2cc715a21f2781fc57d90fb398b5b6b49eb2b9cdad212fd3da9828c4680dd3ad684d0348cf5 WHIRLPOOL 9aff111d05ca0b686a9dcf1d927f5c5adac751277f0e9b310b98f8eb239dce917cea441a5e7c3b7a9cf66ca2ec61bb7b276e40bee0baf5209c8ec7243ae324ab
+DIST defragpak1.zip 3778055 SHA256 0d013be5b338bb6070502fa4d5b20f3f4ac9b7c1b72ccf64a10dd143dece0b7e SHA512 9c42035db51d70f66d2526a67e5a83f1bbfb61a91b73c6f52308d4cc4c84d7322c3a6372392a87de531684c6c75b25955d17121166b0ba4f2e3e1f5b09b12cee WHIRLPOOL 5b26c6316d24d66dc517f652c5513a94bfcb7495d524fe415dab1402e90f93bfffce8f77e919f39c664a544b2952cec8ca1fa7f364c246236629523ba75a732f
+DIST defragpak10.zip 7913269 SHA256 ecccce33c03053b810c2883f51017329d528fdca641e76138aecb80e0666236d SHA512 112b27b5ccf9304971bf65b9099b0d20741b7ec9d3b946ef2483e11b509687c50d5d1bd2faabf0199af9f4b03325d3309d6911a8397c623595498f0288b5f9c7 WHIRLPOOL fffff36669582f163761bf5b86f6b7a2d052d233841437865fb2d21c3726216d5e3107c6e3c1e94d2e2a1ecb0ddd4484dcae80c5a9e1772af87c69a85ca762a4
+DIST defragpak11.zip 9959458 SHA256 49466215b5b2dbfaf24e7e50ec4d9164b6e9fc8e040be177318d47274223f437 SHA512 df8d30dc1cc18c754f090d441b4a6d6550a78e3f4bcb50069f73c021fa3ccc2408782d961d97eebf8e4d21d542ee1217d18eae352559f55f175d5cd1e8fb3672 WHIRLPOOL e2fd475537caa1c8119b1353ef1bb25fd766b8c2691036dc5354a5c5a7a49dac6a1c5a26d88eb39ec4aae2194f878c77f4267189bdbbec066aa92124b0751bc0
+DIST defragpak2.zip 2056082 SHA256 a1e2ceaa0717dd592a22060bbdd9ce415a15df9470a709bc04845ad21a064928 SHA512 9f9715c35e2dc81ac95348fae0100930781d06d607be6ce552463c18dae2495e644034e9674ccebada4b532c901284fc357bb7ea190c84dc6a6d9a406366e2d6 WHIRLPOOL 19b12f30300eabb3521660e5b158fa243136a69722d68d2e228987831ee6c7b3e9766b7b07494d782a7dbbb306edd0e514fac7a9b741965cb91cf21fe677b2ff
+DIST defragpak3.zip 4699963 SHA256 ed7dd62cdabef98fd8e8ac3e2f477ac3483fb6d09aecb146cadd40c4ed156cb0 SHA512 5ca4e6da3083bc89c066a8af46f9d4fb368f9a6e3c96271d5b995b3e1be8efe9ea08e83988c0f153a86c9c03aed77cbe2d7aa0ac280e4dd99b6cf2aac5cdc939 WHIRLPOOL a9b8f84b9c32a88707d9706545713dc8c05b37199dce673eb76b5fe770aa032ddceaedd199a43b3b779b8fc0474466b6fbd15da5e549af1231898d9cc68f7d92
+DIST defragpak4.zip 3711149 SHA256 5f00fbfb2d40f5ac0dae8849653b370d9abe7ca050142f247e113a66f3f0eddd SHA512 5b2807c565c5c535e07984d6006cf152f01384170be351e70aecf13633cc80ad9a3b83ef5dbe3271d1adbf2a25aeec844fca899e8c8c8c9b06ead608fa64f329 WHIRLPOOL 99ede67b9dbc1a9a780bbbf226e2614bea41cf0b76f1eb85655ab0df3514914274c9bb09a6ed76b070f0c3f65cccabdaefe0123d679c472530b702932f11405a
+DIST defragpak5.zip 6100341 SHA256 74fb1d5c62e6a8553e26e6f89a0d1b77b48ebe4a7024d0f8518c6303029a04ef SHA512 41da373058f8198c71c664ea52fe6ca0825af97a6b4c71f08e0cc4e29377c3f0300f951d2d2966634260be0ca9cd9adc9f686da408685172b6b61c3ef172502a WHIRLPOOL 7370b4528be1d0995fbcbdc789dc1c83d8761921890473225a63a4697d658647bbd5ac79dda4eac82f19eec24a231ec20ae8785e3ad1dc08fdfc6083428f2ef6
+DIST defragpak7.zip 10915548 SHA256 30b18b716c03f562251e4f63b2194ab20289e7aa7f9ec53b23397d119f4c9dda SHA512 73f9e11ee1beec35d268e60cf8051fbd99b68009c582c087448b966560b7f4cc7543fb3f210dddfde4ce00a7596a5450a7cb470c17b35bbec13965830f39e56f WHIRLPOOL 5f738787bde0992b8ff01f138133a18501addbe5e865ffceb8e298483c918ac20eeaf7a692d00f49225fa43c7bdcbeb4b5907ca56f6b268381e7c9417dae36d0
+DIST defragpak8.zip 11972907 SHA256 94ebe9210133af7f7645011a0983e66df53604f9f1cc38431ad4786271892b61 SHA512 f6dc7646b87f5a9ceface82f479064b49d2c6f785d9f0fc7228bc6b4e399d90cf72d6fdde71246fe5bc75da0385734cc76e6ac66d9760f9b85b90359d815b080 WHIRLPOOL bf852151480f0037f1d9960cbb8eb732352d58e0226a7079836acbb646a6645fe7b279797b0d422e686272e22076cec729a2095a7ca271e2ed9ba7c41fdb3426
+DIST defragpak9.zip 8531944 SHA256 b6863f6f45fe144881cd929c063d8be747c0d637747c00d740f70ef4304d6f92 SHA512 8c03a2a5d8553792bbd2557c8a19a66e7a2301d87c2e0f8e695700c26ff32a1d83ebfd47e18060fc9ca6d6acb5772566b659ce0567d36da99add65d5faabdaa0 WHIRLPOOL 5f4d237c5ac57f0a1fedf69d05229e849da2b8c5e6f87372402e46dc894e1d69510b44f21022e3cf221592445fd3e1bcb9032083aeda7b4f35374b2a535c55ab
+DIST df-extras002.zip 6538951 SHA256 5af99333250c96fed4f3f7654a032e2e6a5cf8db5642ad8e152daf8bda37228c SHA512 ec4fcc2f42f2c130babd5712a548eea836307b102d29d5cf4402924f4ffdbd8dd9d6872b6d2be0c277a19cf7babd4ea163733895902946d09df1a9e94372dd48 WHIRLPOOL 03e679aac8e3d213f571ab4b83a8614fc6e4d2ef4ad15fc33c5b8adc2bd2b670f75b4a0bcc63d61e2a5b07d289c5b5746157e0e71a65c70b5a43e1662cdafb5f
+EBUILD quake3-defrag-1.91.21.ebuild 1394 SHA256 ed14bd689944c71974517a4f1ee91e296fb835af713bac8d8763f75e75ebf5ec SHA512 420a551d667e61f26cc417a610a90e26119dc65d8db4ecef8e2d4628f1647107ff5ea72584466d8231b483334799b0eb7e39df5b97d3e5944f211d47ba6082e5 WHIRLPOOL cb308864dca40202196663a73841fcb4df113984746b0edfbc85ab6056504167a7ce745dd3d33ccfeb36bd7957cfd8949f19e18e6db0bce31a4556ebebbeec39
+MISC ChangeLog 3294 SHA256 85981bba5f15df982c013a76bf21a7b4f1567196ec8fb1124c9848512943ab73 SHA512 218e5ad100236ded995301627865d94967febab92da45e95e9b1c4da94440bc0069de7914a1e1508fd7ac40836f301fc7325b24920b9ab2b7182e73faba8d86b WHIRLPOOL 13dad738ae6aa492f447a1a5abffd4aa3c2b07076580640dcbacc0c22e4ba4ac70af703e310950eed4b5603beea28d90293cf1a71ff065d206a10345edf9ab73
+MISC ChangeLog-2015 2185 SHA256 81f577b50b7efaf7ab5120d2b37ebcbbb19f9d82f9a90b73e617c57d973d0f54 SHA512 f7c576f6b15fa669f7eb88edb64387e538b1923e3feb4b5af443617df46c19ad0287da27241387be8c2e9d10b98f10f00fc0b1e5aab9a16803dd755bf48b5412 WHIRLPOOL faece3980967016a5b42bc7937327893626eec19ad2d8be5699a2fa5005fe99f986367a17f1f260c5ee9f7c6fd1a0075a635142f7fb2fba0712a5ebc1f590dae
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-fps/quake3-defrag/metadata.xml b/games-fps/quake3-defrag/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-fps/quake3-defrag/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-fps/quake3-defrag/quake3-defrag-1.91.21.ebuild b/games-fps/quake3-defrag/quake3-defrag-1.91.21.ebuild
new file mode 100644
index 000000000000..55e6be2cf652
--- /dev/null
+++ b/games-fps/quake3-defrag/quake3-defrag-1.91.21.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+MOD_DESC="Trickjumping challenges for Quake III"
+MOD_NAME="Defrag"
+MOD_DIR="defrag"
+
+inherit games games-mods
+
+HOMEPAGE="http://cggdev.org/"
+SRC_URI="http://q3defrag.org/files/defrag/defrag_${PV}.zip
+ http://www.german-defrag.de/files/defrag/defragcpmpak01.zip
+ http://www.german-defrag.de/files/defrag/df-extras002.zip
+ http://www.german-defrag.de/files/defrag/defragpak1.zip
+ http://www.german-defrag.de/files/defrag/defragpak2.zip
+ http://www.german-defrag.de/files/defrag/defragpak3.zip
+ http://www.german-defrag.de/files/defrag/defragpak4.zip
+ http://www.german-defrag.de/files/defrag/defragpak5.zip
+ http://www.german-defrag.de/files/defrag/defragpak7.zip
+ http://www.german-defrag.de/files/defrag/defragpak8.zip
+ http://www.german-defrag.de/files/defrag/defragpak9.zip
+ http://www.german-defrag.de/files/defrag/defragpak10.zip
+ http://www.german-defrag.de/files/defrag/defragpak11.zip"
+
+LICENSE="freedist"
+KEYWORDS="amd64 x86"
+IUSE="dedicated opengl"
+
+src_unpack() {
+ unpack defrag_${PV}.zip
+ cd ${MOD_DIR} || die
+ unpack defragpak{1,2,3,4,5,7,8,9,10,11}.zip
+ unpack defragcpmpak01.zip
+ unpack df-extras002.zip
+}
+
+src_prepare() {
+ cd ${MOD_DIR} || die
+ mv -f DeFRaG/* . || die
+ rm -rf DeFRaG || die
+ mv -f *.txt docs/ || die
+ rm -rf misc/{mirc-script,misc,tools} || die
+}
diff --git a/games-fps/quake3-demo/Manifest b/games-fps/quake3-demo/Manifest
new file mode 100644
index 000000000000..f27e2a3b8363
--- /dev/null
+++ b/games-fps/quake3-demo/Manifest
@@ -0,0 +1,5 @@
+DIST linuxq3ademo-1.11-6.x86.gz.sh 49289300 SHA256 64dee3f69b6e792d1da4fe0ac98fedc7eb1e37ea1027fb609a9fadd06150a4ec SHA512 aa74f8e1e8b5036fd68761e5f38cbc3d771e9bd0d5c3cc1f5d89d7eba8fd4fda8108dfd4f31d2b846114e4ec89f6aa15849b95232e0570181a104563ec0faeb5 WHIRLPOOL 558a84cf97c142befa4585eeeeca609f3b5c1880f6fda32a79de415d28779cbe2f69e9c901f4a7d8e0f60acd6279a7a9be69834cb6acded7d31ad630ffd3847f
+EBUILD quake3-demo-1.11-r1.ebuild 1453 SHA256 50ffaf708a24fa71253ae8b1392c2d117e9c6f93f05755adcef153e2b05881a7 SHA512 48798ebeadf0a3d36a68b5cbc4e3292a22d712aa9716d584fe5923f66d4da0c3935eb5bce65736bb288d50d5df5050490d72fa2601b75270e1ebca9f685a102e WHIRLPOOL f523d0100edfe1c5524f6404bd9267299812108363364d161d901ad7f118159338afbc1032f866837b4e2fe280bd74ece647a3a093091f59a5de31120ebad59c
+MISC ChangeLog 2837 SHA256 f96edc413e410b582e9ad5b9108b0df31a5701f663a7ffd7ebd597651854881d SHA512 b09ce7c4beadc56c6864394fa76f91251cff672015855a82412d284ebc28bb7c8e0474c47e36d240fe677ecf214afea5c45810be012c841c25caaadd22e5d252 WHIRLPOOL 7d441c6366b346859f7a405a18275f548c52464c9fdd75ddfca28e334429a487388b9c7757ac4c2190fc92595ed0ece9776f75fcb9bbb4012941e8de1a8cd3fd
+MISC ChangeLog-2015 4301 SHA256 0b97e49b0313b9c397991f988f1d07a30fdc6dc004086ce8299b0c0188520bc2 SHA512 c9f5f97c221b8e4fefe4b4deb7e82c2d80ff79496983ed4c7d7048dd1f7ae01e665accc36f165068c19e7f7bbbe2fcddf93f2469bb835767bf6305f16d4348a6 WHIRLPOOL e048282563bffb87467f2b878c96e7ee44b989bd6821b8ce1b5d3e84ec14e2de12b52b89fa7e5bb80eaa8993b156985df2e33be5ad712a814246d7430f23d687
+MISC metadata.xml 332 SHA256 da68f23825dc9c6ebdddc17710e42f23203493f3508417a94f14a2d3c9bdf52d SHA512 0852d9f223e893d40f4376708c32ceb59b5df65c5cb345a3ba81700ec4198c6bb7396be42910aa3c406df40b8bc4d97d777624ced523cd8de56f4dd406a89d01 WHIRLPOOL 7f8f2bdac24594f369e64984e99223f891badf773f254d2aaa5cace605a1c09f6e440eb26d76b35a42889f7ff0893144f460f1b5ad6b94335b77cc200e0b78e4
diff --git a/games-fps/quake3-demo/metadata.xml b/games-fps/quake3-demo/metadata.xml
new file mode 100644
index 000000000000..b8a2e88c3c6c
--- /dev/null
+++ b/games-fps/quake3-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>
+<use>
+ <flag name="dedicated">install only as a dedicated game serer</flag>
+</use>
+</pkgmetadata>
diff --git a/games-fps/quake3-demo/quake3-demo-1.11-r1.ebuild b/games-fps/quake3-demo/quake3-demo-1.11-r1.ebuild
new file mode 100644
index 000000000000..6096e3f9f8ce
--- /dev/null
+++ b/games-fps/quake3-demo/quake3-demo-1.11-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 eutils unpacker games
+
+DESCRIPTION="the playable demo of Quake III Arena by Id Software"
+HOMEPAGE="http://www.idsoftware.com/games/quake/quake3-arena/"
+SRC_URI="mirror://idsoftware/quake3/linux/linuxq3ademo-${PV}-6.x86.gz.sh
+ mirror://3dgamers/quake3arena/linuxq3ademo-${PV}-6.x86.gz.sh"
+
+LICENSE="Q3AEULA"
+SLOT="0"
+KEYWORDS="-* amd64 x86"
+IUSE="dedicated"
+RESTRICT="strip"
+
+RDEPEND="sys-libs/glibc
+ amd64? ( sys-libs/glibc[multilib] )
+ dedicated? ( app-misc/screen )
+ !dedicated? (
+ >=virtual/opengl-7.0-r1[abi_x86_32(-)]
+ >=x11-libs/libXext-1.3.2[abi_x86_32(-)]
+ >=x11-libs/libX11-1.6.2[abi_x86_32(-)]
+ )"
+
+S=${WORKDIR}
+
+dir=${GAMES_PREFIX_OPT}/${PN}
+Ddir=${D}/${dir}
+QA_PREBUILT="${dir:1}/q3ded.x86
+ ${dir:1}/q3demo.x86"
+
+src_unpack() {
+ unpack_makeself
+}
+
+src_install() {
+ insinto "${dir}"
+ doins -r Help demoq3
+ doins README icon.*
+
+ exeinto "${dir}"
+ newexe bin/x86/glibc-2.0/q3ded q3ded.x86
+ games_make_wrapper q3ded ./q3ded.x86 "${dir}" "${dir}"
+ if ! use dedicated; then
+ newexe bin/x86/glibc-2.0/q3demo q3demo.x86
+ games_make_wrapper q3demo ./q3demo.x86 "${dir}" "${dir}"
+ make_desktop_entry q3demo "Quake III (Demo)"
+ fi
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ if ! use dedicated; then
+ elog "To play the game run:"
+ elog " q3demo"
+ fi
+ echo
+ elog "To start the gameserver, run:"
+ elog " q3ded"
+}
diff --git a/games-fps/quake3-excessiveplus/Manifest b/games-fps/quake3-excessiveplus/Manifest
new file mode 100644
index 000000000000..47e7766ed5e8
--- /dev/null
+++ b/games-fps/quake3-excessiveplus/Manifest
@@ -0,0 +1,5 @@
+DIST xp-2.3.zip 17266975 SHA256 213adbd718be00c49a6cdc539b0372f99703042d7afa3a6c31740a3bc7e06820 SHA512 80a8663c8d42139661ccd5333f9c543854ad82ae38f7838139c78413f7fa3e163c27a66aed4014e56ca756cabf2fd835179cba2336ada7158fdbde1e2841535b WHIRLPOOL 3c1df12ddf96fc439998089595fdcfecf25c65e3e12f2da7270f4e5a016229e9da66beb246d2515d63fd0c73b36ff7b6e3178be7a2a6b7e1fc96ac896a7be481
+EBUILD quake3-excessiveplus-2.3.ebuild 515 SHA256 28ba2ba132ff955f0a4dbf46e948d22abb73db3c4275832301304d58bbb6ed67 SHA512 b38031ab8d01c2033fb97c946e541801ef679872d182380395da930c796385f2d0fc143d2aba8dac40a079c14b16687958b4dd9afa133be7bcdb5ec15ffb1a01 WHIRLPOOL 151af46f7088b1c660985152cdec77277f1a17eb898bee767c67b4621838a65946b8ba3e5eb032d1a55f889104e0a62293b688baf3cb0768e7177eb1e0e72de6
+MISC ChangeLog 3412 SHA256 e50fb73e8b0cc6453576833948d2c3b9ecbccf16a81c2c20456537d49134cfbd SHA512 9f8134c1641baf57c3ff417efc8c562de7242ab347374c382b4d46b53eff8fca78d55e9afbd1e5e1bed7f69e07f7f1f0b425f2ba4c27fbf62cae2445d5981deb WHIRLPOOL fd0640a5cc89a31931c6d2fe2fb409c83c564faf2008eeaccff96943fe209a79986a56dfc95aee72e2eced07be1a4190ed814567befbab6367970a36dc07774d
+MISC ChangeLog-2015 1046 SHA256 c9adb6c59dfb7a4858c0f062841dead975442d94967c577bfbe937508f146bb2 SHA512 28aa5b1fa0528d0d91347747c56338cf7aebe997e77384ce33bf303cf947d88d8544621ba20aa0ad54f79e56f19b9a482e25cd539649994f71137ff45866947c WHIRLPOOL 0dc79b2292849ec1f2887b7678880b5a11e4d9c987a604a7096e0a94dacc2ed017dde0df943e9e9dc01de67747d7216fbc78bbc3d8f61ee50cf60ca7651555a9
+MISC metadata.xml 800 SHA256 6bf74be58c5519f4bcb9969e80c8b741b3efee10dc325f35878c871d0cc82592 SHA512 4320259a818af53b8d6034ec82e6a329113365e0ca7e0465897fc8cef064089154e37db00a92b8c1ffbc53307f9ea6033ec002923e0b53b29672f1ee531b085f WHIRLPOOL 6981058cef8f093184afd3ba192d3e0ff37a6813928deb8a4871929e672bc3dd90896502aff9f0f30f70d79f5dd73c13f1ac2685b31f6a8c0e7d5c0a7b919308
diff --git a/games-fps/quake3-excessiveplus/metadata.xml b/games-fps/quake3-excessiveplus/metadata.xml
new file mode 100644
index 000000000000..dd6f510a8e43
--- /dev/null
+++ b/games-fps/quake3-excessiveplus/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="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+</maintainer>
+<longdescription>
+Excessive Plus is a Quake III Arena modification. It is a remake of the
+ingenious Mr. Pants' Excessive Overkill for Quake III Arena
+(www.planetquake.com/excessive/).
+
+Well, what's then the difference?
+Excessive Plus can either be used server-side only but also as a client-server
+mod which brings you tons of advantages. The whole mod is based on a scripting
+engine which can be used to create your very own settings. It is fully
+customizable with tons of options. Read the "docs/index.html" for more
+information.
+</longdescription>
+</pkgmetadata>
diff --git a/games-fps/quake3-excessiveplus/quake3-excessiveplus-2.3.ebuild b/games-fps/quake3-excessiveplus/quake3-excessiveplus-2.3.ebuild
new file mode 100644
index 000000000000..4ebf2a5101a2
--- /dev/null
+++ b/games-fps/quake3-excessiveplus/quake3-excessiveplus-2.3.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+MOD_DESC="Makes the weapons much faster and stronger"
+MOD_NAME="Excessive Plus"
+MOD_DIR="excessiveplus"
+MOD_ICON="excessiveplus.ico"
+
+inherit games games-mods
+
+HOMEPAGE="http://www.excessiveplus.net/"
+SRC_URI="http://www.excessiveplus.net/files/release/xp-${PV}.zip"
+
+LICENSE="all-rights-reserved"
+KEYWORDS="amd64 x86"
+IUSE="dedicated opengl"
+
+src_prepare() {
+ rm -f *.bat
+ rm -rf ${MOD_DIR}/tools
+}
diff --git a/games-fps/quake3-lrctf/Manifest b/games-fps/quake3-lrctf/Manifest
new file mode 100644
index 000000000000..c79cb3e1346e
--- /dev/null
+++ b/games-fps/quake3-lrctf/Manifest
@@ -0,0 +1,5 @@
+DIST LRCTF_Q3A_v1.1_full.zip 340050745 SHA256 aabdb9b41c63d1d8978b29e7821011e0fea9e4d52568cad1ae4f8e06638c3c0d SHA512 0e397d8044427e0dfe1bc3dfd288b7b3988e9705018c5005c87feef68b065826a7117962c0172ebed48ba1bd63b67e4264c8282a8495d6074a0e26224f2ef533 WHIRLPOOL 12016f49830ffbe4a72e7979741d6610d7f5dd2b6e9e6a9fb7f83fdde73507afa37efdd848425d216ea3aa3a71ed18dae2984fdb5a0f99b6fece0cf2a2abea4e
+EBUILD quake3-lrctf-1.1.ebuild 404 SHA256 977eca5b0b185f3ca79c48b13f351c8024231a1414f6d533bc1e2255388ce3bc SHA512 ddcc209eaa7dcd0bd1fb514b3f88359ce8d3e8b0a7b3acd1574071a0e84e4f4afd663abeba932a0fcf547d759d04679ca99fac111bba7bcde3bd6dfcee0354d9 WHIRLPOOL 388ba7c2807f15c8be41a0de3475feec8cf5d21736322ea4ad4322e07375ec5ceeb854d0f69dfc20fbeb0c3772ac53f53be104efa3534eaa805cc8b57e652a00
+MISC ChangeLog 3034 SHA256 3b95851b7127477096ca09cbf7deb3d55b8075ec629c18eccbe630ab456864df SHA512 f0df4c11aaba021c2a4766591001386c427891a3b5f6c3d7d0d2704253d445795a5834b3c6072e71ef3f4b03cb55e64b75f15497cbc10da00917b4897fe4279b WHIRLPOOL ca2118ff0a824d48215648ed6174f1874ce8342eae2c294fb61f5e22d6aeb3f08d8365976ed97679f7c9ea9cf69420430acda345cade29ff1aa7150c9210a792
+MISC ChangeLog-2015 920 SHA256 92677fb3704e20781e55737809522d6ec2e690a0db106f77c2cf5808b6b64c3c SHA512 a1faf2ad31dc1da4a0129351deff616b64b5d12c5378c5f6571d6567936c344c1bf0e69b57aa945a3d38988a736527d3dadb315a8e8b0b168636845fffc3b8ec WHIRLPOOL c624e5a76661cb91af67ac9d38321c688029be9a7a0ac3c06eeedeb25b7e5f74ab81ce999f86dd240e2f7bb6171baaf8db353f62b0ce224d1a28ae88ece43db9
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-fps/quake3-lrctf/metadata.xml b/games-fps/quake3-lrctf/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-fps/quake3-lrctf/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-fps/quake3-lrctf/quake3-lrctf-1.1.ebuild b/games-fps/quake3-lrctf/quake3-lrctf-1.1.ebuild
new file mode 100644
index 000000000000..d2d64197a680
--- /dev/null
+++ b/games-fps/quake3-lrctf/quake3-lrctf-1.1.ebuild
@@ -0,0 +1,16 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+MOD_DESC="offhand grapple all-weapons capture the flag mod"
+MOD_NAME="Loki's Revenge CTF"
+MOD_DIR="lrctf"
+
+inherit games games-mods
+
+HOMEPAGE="http://www.lrctf.com/"
+SRC_URI="http://lrctf.com/release/LRCTF_Q3A_v${PV}_full.zip"
+
+LICENSE="LRCTF"
+KEYWORDS="amd64 x86"
+IUSE="dedicated opengl"
diff --git a/games-fps/quake3-matrix/Manifest b/games-fps/quake3-matrix/Manifest
new file mode 100644
index 000000000000..f4e82c1b300a
--- /dev/null
+++ b/games-fps/quake3-matrix/Manifest
@@ -0,0 +1,5 @@
+DIST matrix24.zip 21191819 SHA256 5c748941c857bdeaa7daa9ffd1ef5aebb6113a4c89709d6132c3a6eb4188abcd SHA512 f19b7d9d6b54eee23480a4217e6c47fdca184fcd7653a04a147ad6a2af6151420381adb340db37f445e3a23d8c0f045c760c7f10218d6c2622f9cb74acd792db WHIRLPOOL f0748dd347b1c4d5b59a4df00ee863bc0eecc223872eaf6448af241907b122bc07bac2fcdae1031ec25fcaea0b13d549709fa004e267a63c371487498f3f606c
+EBUILD quake3-matrix-2.4_beta-r1.ebuild 462 SHA256 bde8561f69a2bb87880a2b7b7860433355daf0414a45773978a0a901dba1e404 SHA512 003c35ec8415fd11a815540444c5fa0a36c5fec540d6a7b9aba93429f6ec512b4ee9c2019717f1bd14adb803ba2764445e0271fb273d7916ce35269b1aee0021 WHIRLPOOL 4fa5589a0e6ad5c087d477f1b4b8c4b2cbad4f1c65c9a41adf89af3695e445ba05f2a4f5bfcfee20388edd18c11b10bf39b9a20da8e54120f9cf2643ce08081c
+MISC ChangeLog 2594 SHA256 217d387e0ba0cec691eccebe5bdc65e6cf94cc76d4a76e221e9c0102441e6907 SHA512 88f1fb1b6709cfea33e2ffcb30379f9522961bd373413bbb13334c1f46ebf9a35a6250b6a0b9692be7350a60be01c046036cd36dda148805e369cdf3b712dafe WHIRLPOOL 9e0c007a4e8656cc0a3e1b81a5e22d29aaa3ed0b8e8788f479d1d29f3ab263cf0180a27d590d8c917169c4da6366eb44709c2ffba184432b5368f09334d02ff7
+MISC ChangeLog-2015 1092 SHA256 0e1d717ebc2867e9f43904723adad207500f72a33a26b51953d2499243a038b3 SHA512 acd74ea4b10d871425f2c4857d174434f7f6a83f0803f178d1f4e9a1488890f152ef3647c4fd4e69ecc2d91b7ba9e6e1c80d9e18974627a2995f7f41176a0178 WHIRLPOOL f2a0804b875a1c342bf7bb39a1e829a66ca857d8cacd98a1247c5f0ca54e9fd945aad6e86b3f45e87c7648b45c1881d3377d2fd394ff3333f08bb1d4e584d457
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-fps/quake3-matrix/metadata.xml b/games-fps/quake3-matrix/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-fps/quake3-matrix/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-fps/quake3-matrix/quake3-matrix-2.4_beta-r1.ebuild b/games-fps/quake3-matrix/quake3-matrix-2.4_beta-r1.ebuild
new file mode 100644
index 000000000000..2a5f1e35177a
--- /dev/null
+++ b/games-fps/quake3-matrix/quake3-matrix-2.4_beta-r1.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+MOD_DESC="Matrix conversion mod"
+MOD_NAME="Matrix"
+MOD_DIR="matrix"
+
+inherit games games-mods
+
+HOMEPAGE="http://www.moddb.com/mods/matrix-quake-3"
+SRC_URI="mirror://quakeunity/modifications/matrix24.zip"
+
+LICENSE="freedist"
+KEYWORDS="amd64 x86"
+IUSE="dedicated opengl"
+
+src_unpack() {
+ mkdir ${MOD_DIR} || die
+ cd ${MOD_DIR} || die
+ unpack ${A}
+}
diff --git a/games-fps/quake3-nsco/Manifest b/games-fps/quake3-nsco/Manifest
new file mode 100644
index 000000000000..d9b8c9896de5
--- /dev/null
+++ b/games-fps/quake3-nsco/Manifest
@@ -0,0 +1,7 @@
+AUX server.cfg 3518 SHA256 528f7f5f2bdc8544ab9e5dbe2271e787cf8623b163e363b2fed1ce68b3e5c073 SHA512 2e7719a5805e92b9dad5ed38f7865abc1c7cb31390fe5240edf1e5a421529d49eb5811b753ec60cb6bb9c8e6e3ce2053004225d661f5a671e3d84820230148cc WHIRLPOOL f0bcf6160a94714af5914dd66fd7b9b9d8266ad78c05bf9d84c95d21e19f1c6612edb133af163841b7f154ce94b7f792ad9ab59acdb6a88c1fbcce1a1de7152b
+DIST nsco_beta19.zip 314224296 SHA256 0789515b88e8dc499ed97bee3a7df1a4be3657c8f30c519b3687560094988572 SHA512 bf125ab25e841536686e0a4d7de98b62b35f1034e9120daf86a1c2536b189252f22ab0b4105337e311758103cce7a9e1f371d5ba4f859dacbf2d7b41e48952c5 WHIRLPOOL a70b8aa6e86366c3369d06a4b6120a5924bbe8ef21a06efc83c2dfaa9743d86a2cfaf51ae5215042d66dca8f7e7d7c90b28def64431b002be1181a7c3e78b639
+DIST nsco_beta193upd.zip 55808681 SHA256 6d6102c5946f79d4e6174480d8d42b9a95463131e5e26e7c187e8bb21a535004 SHA512 8233a54b65ba29babab47056468fb112cac6a687db151d416dbabb754fe03006db4f0d0bb403e0e44f03d2b6e99428d67aed0fa27d4473331035dea5bc3563eb WHIRLPOOL bdc35b8dd4dfbd3cdb9bf9723eb31cf6904e6b1a42338645c3f40f77ab53f7fa36ada4de4ad57cfc3aaece731c1061ed45ad6674bce940ab7752d28b560f85aa
+EBUILD quake3-nsco-1.93-r1.ebuild 565 SHA256 d6f4eb9983d310cc78a664c432c00908eaec19ec15d1abf939d7f62895b612f2 SHA512 71ede45a67543ee4053fecd9a02d64f45f43227f66a4d496955a5890661cb90f5bed0ee6b6a4fdeb556b7001b78a32649cb20ee2189d0e91d87290f5233b9c26 WHIRLPOOL 77b8018468625e617af4b0af7b967b33a47c9d8598ea58ca999c04648d53cba36e41c55f7b14a4d5073abe7e644eb2b78077bc5876fad2496173c5ffb0a0a9a6
+MISC ChangeLog 3031 SHA256 48a5d1d44a981c2ff23280aa938c186919f29eef7265a2380c252b2a725575ae SHA512 d75325bdad5ce5631470f0242bf04af88a54780c7be880835c3023d565d3eacd8942fab6899cd4366dbb96f0850a834eb23a78177056e3627f7d90846bb16c3d WHIRLPOOL 66dd5f11037959b5bd42889496a066b42ff3c9055c4ea6d30f4146a269110268dae0253f5b5c88c1f3511652f22a1709ca5616ed14b72dc1d2b66f50162153e7
+MISC ChangeLog-2015 1659 SHA256 25961030c8be4b07eab92b072ca64b6a989b8441f12f56f67c0c3a532db3a8b5 SHA512 bffd5d7495f6e0a5a80625ae54a03d3fbdfcb62c99e7db27e03769706fc7cf766270d617390b8155205d54462e99ad578574e74450404bcdb4f9c69578ead3c6 WHIRLPOOL 1841bf9b63f9072e0fcd30105be00d0709867c55d3381f452416901127a4592b3c7f9b1c6ef185477194d5270183ad2a715090a72347981abcb16275c6a35645
+MISC metadata.xml 1006 SHA256 2aaf102cab2adac6542487f88738e9b86e519e99c71558bdc4a8f95a6e4ebb9b SHA512 8937940f78ff4174f570be92d750fc19d7ac8035acd1523044c818244414a11e08a61a5b7ff0559b40b7b3ba7d8ac7bf5034e337f410bee5b211f49a3a50c6f7 WHIRLPOOL e8c327a4ace5c9b3d7e76d18a0e5327b6d7e9e7f8a6e575e841f57be7218fc4669ad23a4d15d1dbc9d3b08dc2492adac55cab5027f180f4d55a95339e9bc3787
diff --git a/games-fps/quake3-nsco/files/server.cfg b/games-fps/quake3-nsco/files/server.cfg
new file mode 100644
index 000000000000..2a0eba41e0f6
--- /dev/null
+++ b/games-fps/quake3-nsco/files/server.cfg
@@ -0,0 +1,97 @@
+// *NOTE* any line that starts with "//" is ignored by quake.
+// changed:
+// 10.03.02 by defcon-x/defcon-x@ns-co.net
+// 11.03.02 by defcon-x/defcon-x@ns-co.net - setted sv_floodprotect 0 as default value.
+// 08.05.02 by defcon-x/defcon-x@ns-co.net - added new beta 1.1 cvars
+// 19.05.02 by defcon-x/defcon-x@ns-co.net - added new beta 1.1 cvars
+// 29.06.02 by defcon-x/defcon-x@ns-co.net - added new beta 1.2 cvars
+// removed cvar mapcycle
+// added new ns-co master server
+// 29.07.02 by defcon-x/defcon-x@ns-co.net - updated server.cfg for b1.3
+// 29.08.02 by defcon-x/defcon-x@ns-co.net - updated server.cfg for b1.45
+
+//
+// please see the cvars.txt
+//
+
+//*** Administrator Info ***
+sets Admin "Gentoo Admin"
+sets Email "UnnamedAdmin@NoEmail"
+
+//*** Server Name and Daily Message ***
+set sv_hostname "Navy Seals : Covert Operations [BETA 1.45] powered by Gentoo Linux"
+set g_motd "www.ns-co.net, www.gentoo.org"
+
+//*** Game Settings ***
+set sv_maxclients "18"
+// set g_maxGameClients ""
+set sv_privateClients "0"
+set g_gametype "3"
+set roundtime "4"
+set teampointlimit "15"
+
+// do not remove the following line, or set the cvar to 1
+set sv_floodprotect "0" // this should be set to "0" by default.
+// it's important for a proper XP usage
+
+set g_noPrimary "0" // prevent the usage of primarys
+set g_noSecondary "0" // * secondarys
+set g_noGrenades "0" // and grenades
+set g_allowMapVote "1" // allow the voting of maps
+set g_allowKickVote "1" // allow the kick voting of players
+
+// 1 enables friendly fire
+set g_friendlyFire "1"
+
+// memory management
+// only use these settings if you want the best memory usage
+// on dedicated servers.
+seta com_soundMegs "0"
+seta com_zoneMegs "8"
+seta com_hunkMegs "38"
+
+set g_basexp "15"
+set g_inventoryupdatetime "5"
+set g_maxteamkill "3" // 3 teamkills until a player gets kicked for TK
+set g_TeamKillRemoveTime "300" // remove one teamkill after not killing for 5 minutes
+set g_overridegoals "0"
+//*** Less Packets ***
+// set g_silentbullets "1" // bullets are not SENT to the clients
+// set g_reallead "1" // real bullets instead of instat-hit ray-test weapons
+set g_teamlockcamera "0" // lock chasecamera so players can only spectate their teammates - for clangames very useful
+set g_minplayers "1" // starts the round as soon as X players are in each team - for clangames very useful
+
+//*** Passwords ***
+// set rconpassword "-----"
+// set sv_privatePassword "-----"
+// set g_password "-----"
+
+//*** Bot Setup ***
+set bot_enable "0"
+set bot_minplayers "0"
+set bot_maxplayers "0"
+
+//*** Server Settings ***
+set sv_pure "1"
+set g_allowvote "1"
+set sv_allowdownload "0"
+set gamename "seals"
+set sv_maxRate "15000"
+set g_log "seals.log"
+
+set g_inactivity "90" // kick after 90 seconds of inactivity on server
+set g_firstcountdown "30" // the first round has a countdown of 30 seconds
+
+//*** Master Servers ***
+set sv_master1 "ns-co.org" // primary ns-co master
+set sv_master2 "master1.idsoftware.com"
+set sv_master3 "master2.idsoftware.com"
+set sv_master4 "master3.idsoftware.com"
+set sv_master5 "master4.idsoftware.com"
+
+
+//*** Mapcycle ***
+set g_mapcycle "configs/mapcycle.cfg" // leave this as default
+
+//execute a map in the cycle
+map ns_ghetto
diff --git a/games-fps/quake3-nsco/metadata.xml b/games-fps/quake3-nsco/metadata.xml
new file mode 100644
index 000000000000..b7aeaff31a83
--- /dev/null
+++ b/games-fps/quake3-nsco/metadata.xml
@@ -0,0 +1,29 @@
+<?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>
+ From http://www.ns-co.net:
+
+ Navy SEAL/s: Covert Operations is a scale realism total
+ conversion for id Software's Q3/TA engine. NS:CO pits players
+ in realistic SEAL and Tango land covert operations in realistic
+ settings with scale weapons, munitions, and equipment.
+
+ NS:CO is a tactically sophisticated feature rich multi-player
+ game that emphasized teamwork and realistic SEAL SPECWAR
+ missions and tactics.
+
+ NS:CO is a total conversion featuring original game-design,
+ technology, all original code, stunning art, level design,
+ modeling and animation; wrapped in a rich game interface that
+ gives players new exciting control over game-play that is
+ unique, realistic and enormous fun.
+ </longdescription>
+
+</pkgmetadata>
diff --git a/games-fps/quake3-nsco/quake3-nsco-1.93-r1.ebuild b/games-fps/quake3-nsco/quake3-nsco-1.93-r1.ebuild
new file mode 100644
index 000000000000..51e7235fb159
--- /dev/null
+++ b/games-fps/quake3-nsco/quake3-nsco-1.93-r1.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+MOD_DESC="a US Navy Seals conversion mod"
+MOD_NAME="Navy Seals: Covert Operations"
+MOD_DIR="seals"
+
+inherit games games-mods
+
+HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
+SRC_URI="mirror://quakeunity/modifications/navyseals/nsco_beta19.zip
+ mirror://quakeunity/modifications/navyseals/nsco_beta193upd.zip"
+
+LICENSE="freedist"
+KEYWORDS="amd64 x86"
+IUSE="dedicated opengl"
+RESTRICT="strip mirror"
+
+src_prepare() {
+ rm -rf seals/launch* || die
+}
diff --git a/games-fps/quake3-osp/Manifest b/games-fps/quake3-osp/Manifest
new file mode 100644
index 000000000000..761174db489f
--- /dev/null
+++ b/games-fps/quake3-osp/Manifest
@@ -0,0 +1,6 @@
+AUX server.cfg 5532 SHA256 30cfb69cb20a65c77a8b1eba8798bd9f59802f538658d93afa4e47fe61b1b786 SHA512 31fd512e9a614950292a7d80b376ec6dbd673773ff973af96ac806360cccf5835d1985d978b078e3d68f632f8ecbb3dfb86d90aa27e2529e58c4682ac89e908e WHIRLPOOL a6eda43d2a78b1909b4b5104cbbaa2d584928504f0b60c3e690e89332af36d4345444c7784f592570a122587ea364ad8000666d2ff5035c32ba3366d39d2532c
+DIST osp-Quake3-1.03a_full.zip 55882759 SHA256 af9a184134733fc24c308b4f8790932d30dc70b6c8a36e050223ba16ba2ac2b3 SHA512 9a9bc76ca2e582432e0f8ff6a3fe0bd2e0b0767a1f52bdea8debc7bc9053dc78951335da085b88e0f3690f1f7fda25a628cff9bace7f683f543c5eff90307e19 WHIRLPOOL ac7ceca6af156b51441907b7ede73f6c24dbf1cfc2966fa73825dfa83f12f3e1701da46064037128622a9bc3959f42b18f1e356d43ea66b5d6505b5a353f4b1d
+EBUILD quake3-osp-1.03a-r1.ebuild 489 SHA256 7c5d05d9b3668f15352dae0ee6f14326ed7fdbaf77ed0b6662e65d710d9a5d67 SHA512 67c34573bd64c4dc01b5d70615ce6111c8249dc0439f0f28eb9f17a2c092d2e3728ebd68e82271763f17d9c57298d4c32224f063ded938f7ec80a83b4550571f WHIRLPOOL 1737fe34cfb0fecf7a5d58ef3baf5d8ae4a2b70e9e187c4f4e264bb83df8c20af403c9f3bce7d00fafb4cc3e0c4f072e4fca3e239ccd1ae2f97edcbd6ca151f6
+MISC ChangeLog 2592 SHA256 6fa99e5b2a6c4b2b1a9b8f224e9aa0af342adc11ab6f86fae1381f7dae1c5e1f SHA512 fedf73d4e5741ede03520e3c86b3655310676b884015fdb1e551c6d9e5b802d3799185f5651cf40ef4653ddedb47489b14307fef82ab046bd90f0ac3b3f6e441 WHIRLPOOL c86ac4e1bf5b85464a0dafd447ec3f9c2d4761964d12a0f77d91d9f47f636a9fd83ee03f96cbd7214832e0f1d8eb548fffd2e98e73a15372648a5e2a074b8c60
+MISC ChangeLog-2015 1627 SHA256 dbda413e8b7ad16f1776855d1f7168bcb000ee7e0c0569da4bc6b20a68d96199 SHA512 c82f4c5faea6720bf2603b8501902ec9dc49f7c3e29c61d974f07160e768baf570a37c3903e90ddb3705c76a92726d339d02209ae0b4885c2e552efcf1832435 WHIRLPOOL 0db04a249ef91f78c50f38a48f2b2e8b1364e565afbd1969f5593487101b1915cda0c535bb3d5d500baf0d79970e73da2757bd63bd5719aae2a1e6232bca982a
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-fps/quake3-osp/files/server.cfg b/games-fps/quake3-osp/files/server.cfg
new file mode 100644
index 000000000000..887ff1e2784e
--- /dev/null
+++ b/games-fps/quake3-osp/files/server.cfg
@@ -0,0 +1,165 @@
+/////////////////////////////////////////////
+// OSP Server Configuration File //
+/////////////////////////////////////////////
+
+
+//////////////////////
+// Gameplay Options //
+//////////////////////
+set capturelimit "8"
+set dmflags "0"
+set fraglimit "0"
+set g_dowarmup "1"
+set g_forceRespawn "10"
+set g_gametype "1"
+set g_teamautojoin "0"
+set g_teamforcebalance "0"
+set g_warmup "0"
+set match_carespawn "0"
+set match_instagib "0"
+set match_latejoin "0"
+set match_minplayers "2"
+set match_overtime "0"
+set match_overtimecount "0"
+set match_overtimelength "5"
+set match_readypercent "100"
+set match_roundtimer "10"
+set match_timeoutcount "3"
+set match_timeoutlength "60"
+set match_winbyscore "0"
+set roundlimit "5"
+set server_promode "0"
+set team_allcaptain "1"
+set team_maxplayers "0"
+set team_nocontrols "0"
+set team_noteamready "0"
+set timelimit "10"
+
+//////////////////////
+// Server Options //
+//////////////////////
+set g_gravity "800"
+set g_inactivity "0"
+set g_knockback "1000"
+set g_maxGameClients "0"
+set g_motd ""
+set g_needpass "0"
+set g_privatePassword ""
+set g_smoothclients "0"
+set g_speed "320"
+set match_maxsuicides "0"
+set osp_gamename "0"
+set player_always ""
+set rconPassword ""
+set ref_password "none"
+set server_customclient "15"
+set server_ospauth "1"
+set server_record "0"
+set server_motd1 "This server is Gentoo Linux powered"
+set server_motd2 ""
+set server_motd3 ""
+set server_motd4 ""
+set server_motd5 ""
+set server_motd6 ""
+set server_motd7 ""
+set server_motd8 ""
+set sv_allowDownload "1"
+set sv_cheats "0"
+set sv_floodprotect "0"
+set sv_hostname "OSP 1v1"
+set sv_maxclients "7"
+set sv_privateClients "1"
+set sv_pure "1"
+
+//////////////////////
+// File Options //
+//////////////////////
+set g_log "games.log"
+set g_logSync "0"
+set admin_log "adm.log"
+set log_default "0"
+set log_stat "0"
+set filter_file "filters.txt"
+set map_file "cfg-maps\1v1maps.txt"
+set server_gfxspecific "none"
+set player_file "none"
+set server_motdfile "none"
+set mode_customfilename "none"
+set decal_directory "decals"
+set viewcam_directory "cfg-viewcam"
+
+//////////////////////
+// Weapon Options //
+//////////////////////
+set armor_q2style "0"
+set gauntlet_damage "50"
+set gauntlet_disable "0"
+set g_friendlyFire "1"
+set g_weaponrespawn "5"
+set g_weaponteamrespawn "30"
+set instagib_reload "1500"
+set item_disable "4"
+set match_cawarmupfire "1"
+set match_dropitems "0"
+set match_hurtself "1"
+set mg_damage "7"
+set mg_damageTeamplay "5"
+set railgun_damage "100"
+set server_fastrail "0"
+set server_lgcooldown "0"
+set server_thrufloors "0"
+set start_armor "0"
+set start_bfg "0"
+set start_bullets "100"
+set start_cells "0"
+set start_grenades "0"
+set start_health "125"
+set start_lightning "0"
+set start_rockets "0"
+set start_shells "0"
+set start_slugs "0"
+set team_armordamage "0"
+set warmup_armor "100"
+set weapon_deaddrop "1"
+set weapon_have "1"
+set weapon_start "257"
+
+//////////////////////
+// Item Options //
+//////////////////////
+set g_quadfactor "0"
+set match_poweruprespawn "60"
+set powerup_disable "255"
+
+//////////////////////
+// Voting Options //
+//////////////////////
+set g_allowvote "0"
+set mode_start "-1"
+set server_availmodes "2"
+
+//////////////////////
+// Other Options //
+//////////////////////
+set bot_enable "0"
+set g_spectatorInactivity "0"
+set map_autoload "1"
+set map_queue "1"
+set map_halt "0"
+set map_nocount "0"
+set map_once "1"
+set map_random "0"
+set map_rotate "0"
+set match_mutespecs "1"
+set pmove_fixed "0"
+set pmove_msec "8"
+set server_maxpacketsmax "0"
+set server_maxpacketsmin "0"
+set server_realping "0"
+set server_timenudgemax "0"
+set server_timenudgemin "0"
+set sv_maxRate "0"
+set sv_maxPing "0"
+set sv_minPing "0"
+
+map "q3tourney4"
diff --git a/games-fps/quake3-osp/metadata.xml b/games-fps/quake3-osp/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-fps/quake3-osp/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-fps/quake3-osp/quake3-osp-1.03a-r1.ebuild b/games-fps/quake3-osp/quake3-osp-1.03a-r1.ebuild
new file mode 100644
index 000000000000..f6497aa5beb6
--- /dev/null
+++ b/games-fps/quake3-osp/quake3-osp-1.03a-r1.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+MOD_DESC="a tournament mod"
+MOD_NAME="OSP"
+MOD_DIR="osp"
+
+inherit games games-mods
+
+HOMEPAGE="http://www.orangesmoothie.org/"
+SRC_URI="http://osp.dget.cc/orangesmoothie/downloads/osp-Quake3-${PV}_full.zip"
+
+LICENSE="GPL-2"
+KEYWORDS="amd64 x86"
+IUSE="dedicated opengl"
+
+src_prepare() {
+ cd ${MOD_DIR} || die
+ rm -f VoodooStats-ReadMe.txt *.exe || die
+ rm -rf voodoo || die
+}
diff --git a/games-fps/quake3-ra3/Manifest b/games-fps/quake3-ra3/Manifest
new file mode 100644
index 000000000000..f8525c6829ed
--- /dev/null
+++ b/games-fps/quake3-ra3/Manifest
@@ -0,0 +1,5 @@
+DIST ra3176.zip 138018848 SHA256 c8da0edc55961e328dcc35e8d7b317b639b07129897cd39080151475cb7da34a SHA512 64240dcb1460465eac5279162ed04b97f20bbf10437b1519b1da22c73368c9af0e57191b884fb2712cddd8e0086816a871ad0657dfdb73ab70940ec8f37daff9 WHIRLPOOL 3612c2c051f64c7914875cd4f015de82f1c1a5007590fea067d084c980f1a8a145216d3012f780fcf1627736b792aa47aec017937af4045f2212cbaf5d44f85e
+EBUILD quake3-ra3-1.76-r1.ebuild 448 SHA256 d836581361b99f0914618e1f938ec4ec3738b696a3e4d947e24afcd69b999531 SHA512 d7d20a5c3e27248e66680dcec37992f3e147899b6041005952f4aec3cfba69fa537f629f322a37d3d29c5221d85443dc400ec5482998ce3160104b34a224346f WHIRLPOOL 374e7bd0b2bb2e4374a91f2bc041934d48ef6ae22f3681e4a7832742656c282acfe91459fa95e16eb0063b73fb3e3aecc0315901968a04a97dd003a51d6e1e31
+MISC ChangeLog 2570 SHA256 77697e2ea33eab8b85a3f5cd4097cb889409f58c50accb0e1e7b80f068bc23bb SHA512 76afdb4e58d714df7ebc53f38acaf5a59691d6a2f18a03a6db1fc9c3d2549147f8e62eb5ac650e2e8a49e37e56f7460c293b53a24e1cb30cd32b312c874b3681 WHIRLPOOL 84d445e29b414f454e007db82c5db61be84ede89adf8c6962538a1cfc5cbbfc86339516795673b78b7242fb699c01549f53e48873ba2cf946557305312299acd
+MISC ChangeLog-2015 1240 SHA256 0b670b3389ac063c449ec526b5b90017fc58fe7f88aaaa1ffc422f1d59aa0c7f SHA512 d009943d789e810add0e06406b9b3b3d8d9ece8796c53b80f6b1cea558a74b8ec8623d6f3a4ce5baabf1c8653a5575debc1487223c78813b0b701d97e29c3a18 WHIRLPOOL dc7dbe222c596d8046c2fefa254c04f51de26be2fef9248fea0a68b286dd56da9caa2419c0c80d9b0f95404678a54b5847524394da2343c2be7f522edc681056
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-fps/quake3-ra3/metadata.xml b/games-fps/quake3-ra3/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-fps/quake3-ra3/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-fps/quake3-ra3/quake3-ra3-1.76-r1.ebuild b/games-fps/quake3-ra3/quake3-ra3-1.76-r1.ebuild
new file mode 100644
index 000000000000..4375d81c406f
--- /dev/null
+++ b/games-fps/quake3-ra3/quake3-ra3-1.76-r1.ebuild
@@ -0,0 +1,18 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+MOD_DESC="a rocket dueling mod"
+MOD_NAME="Rocket Arena 3"
+MOD_DIR="arena"
+
+inherit games games-mods
+
+HOMEPAGE="http://www.moddb.com/mods/rocket-arena-3"
+SRC_URI="mirror://quakeunity/modifications/rocketarena3/ra3${PV/.}.zip"
+
+LICENSE="freedist"
+KEYWORDS="amd64 x86"
+IUSE="dedicated opengl"
+
+QA_PREBUILT="${INS_DIR:1}/${MOD_DIR}/*so"
diff --git a/games-fps/quake3-reaction/Manifest b/games-fps/quake3-reaction/Manifest
new file mode 100644
index 000000000000..6990790b9ad1
--- /dev/null
+++ b/games-fps/quake3-reaction/Manifest
@@ -0,0 +1,6 @@
+DIST ReactionQuake3-v3.1-Full.zip 327488276 SHA256 ea5bbab6600a0e7244dffb2cf87a9ba51ca3f4da4e3b41152ca67ee2f63a66bc SHA512 78d141a09d73daedcbaf2c3ec24a7c017592f556610011e8143ebc7c16e24f24bc8575b59ac43f46119beb0eb5d1744e6f21854e19fc5e8ee65a3f6124f2d5e4 WHIRLPOOL 69bc7ff3f7199604f83f4089fb4df0d1dc0d60396ca3859f85282eb9161e6f16eaf4cec2b22c6e2ae42c6a2d20048220d67a25c373bf71ed054f781e59fbf47d
+DIST ReactionQuake3-v3.2-Update.zip 182810088 SHA256 a97c96904e75c7e62503c7fa29c670694d93de9ec846dae334345dc8e936740d SHA512 80d798d4153fe6072e297caad8999c95b3132ac8026f2b2b8c684a63be0cbb66d7c812bd68f9c8c28b297a93664b19962c1bae4741b3bba225099e6db87ae2d5 WHIRLPOOL 4fe6be3a0ab66897df58e88916a8a7dfe50b7d1abf52fdd66004abc30e58f3d36d16ad3401836de75e640748fda2a9416a42a44ad47a1e4a1a210363450b5014
+EBUILD quake3-reaction-3.2.ebuild 534 SHA256 d7d58deaf51b93ca120397d4277727ee26c9e1744113b4442b2c01b5947c1a20 SHA512 f783d4f4fa80fe2152dd6d0f52c3ec6beef62b91c4cd2cf7248d7ad0d187d23cceced5ce4785aca8cd6b84ca0c9075024875cc7b25894fc0ec4f45e5dac1eeba WHIRLPOOL a5907ee57bfb9757b7600a8501ea409ae22aeeb83dc4f13fd93053dd519d0780ff85b2871fdb79fb88d1dbfa7afbf4728db0f3041830551d894be159d7db0d1b
+MISC ChangeLog 3052 SHA256 6d3d9e8acecda35a36d1d6fa42042fb6ea8efabb9fec742659078e9a0dcab8ca SHA512 0a50cf84ffa858a70376bf647f1a95f94864a1acf4f351b377b6fe3082f1e91cd0c70c7b0677c04156a256aac5f6ef6a65a696f7d9bea70f78db0a4aa15adf14 WHIRLPOOL 743c615ebbf5d6816b1cdab4f6b6c92bab700af72e4900d902d2a096c4c3ddb90961a6d25e7a93b974f7a3b082fe16600c9646012876b920312213254a2199b1
+MISC ChangeLog-2015 852 SHA256 6a476d19c06f68e86f4f66abec29ffda40fbfcf3af921245d272d048785d3bf6 SHA512 679c212941da87f9013b5636baf97049ffb6c594bd522f43d5689cfe1c159038c3c1475b9cabf9e43586d966e35c9f17fd03c6a2bb70f5ec95226a284796f539 WHIRLPOOL 88fa8abe0611ce813ca2e1788adb396680e2143e45c4756befbf0dcd76223bbaae18e13ae7a9629cb6eae48821d64c5ea512c7eaafef34fcb50009603e1e0f3a
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-fps/quake3-reaction/metadata.xml b/games-fps/quake3-reaction/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-fps/quake3-reaction/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-fps/quake3-reaction/quake3-reaction-3.2.ebuild b/games-fps/quake3-reaction/quake3-reaction-3.2.ebuild
new file mode 100644
index 000000000000..f46a287fbdb6
--- /dev/null
+++ b/games-fps/quake3-reaction/quake3-reaction-3.2.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+MOD_DESC="port of Action Quake 2 to Quake 3: Arena"
+MOD_NAME="Reaction"
+MOD_DIR="rq3"
+MOD_ICON="reaction-4.ico"
+
+inherit games games-mods
+
+HOMEPAGE="http://www.rq3.com/"
+SRC_URI="
+ mirror://quakeunity/modifications/reactionquake3/ReactionQuake3-v3.1-Full.zip
+ mirror://quakeunity/modifications/reactionquake3/ReactionQuake3-v3.2-Update.zip
+ "
+
+LICENSE="all-rights-reserved"
+KEYWORDS="amd64 x86"
+IUSE="dedicated opengl"
diff --git a/games-fps/quake3-ruinhunters/Manifest b/games-fps/quake3-ruinhunters/Manifest
new file mode 100644
index 000000000000..e13468253cc9
--- /dev/null
+++ b/games-fps/quake3-ruinhunters/Manifest
@@ -0,0 +1,6 @@
+DIST ruin_hunters_v10.zip 67679542 SHA256 f6abf15178def1f4d0bf7e532b53bb34fcf960aba429b5e79aace5351ee98265 SHA512 9eabab8460c2ddffeb7cc48eea272028a9623f9df3078c328599f83e2827e73e8578d7846d51026d426007d9579bb34ebe9321e27548fe245840063efbcb8d54 WHIRLPOOL b603e252fae8d3820053ab2dafae796f8db05e6775d18821fa37dc2dd9f0309fcfd6f300e3843333547acc8a3ee9f3597d532308a6b98ef29596e07315577012
+DIST ruin_hunters_v10a_patch.zip 7186582 SHA256 b3253f2b6b6b16f0cf6d4508eb7f7b64ce96894c86d365d061e013809b5f2560 SHA512 898e5fe7c16fdeb030b6fd1873171c9f37eedbcf55162963a1f2ea7ac281ad0021116f705964cfd20aa08a462270bddbb2a4a071331641eab11b8e3dc60abc45 WHIRLPOOL d0ce0c2f9ddc951315f243b149608713ddda1a682461c4acefcd1207c75431fd6b61facbb784d9d2817255fe77959f9da9109efc7b832c041040e183e7c168eb
+EBUILD quake3-ruinhunters-1.0a-r1.ebuild 550 SHA256 ffeb7da7608dc367bc3a976dc76e083bdccc9aeefef386fb6e33ce4d84424a00 SHA512 78772d7faba868711708b9aa052d43c87e9e1b69c011ff3417961e5298b7f8667447d61bb0179204498ef269e330db54b7dad46fa66488d4fdc181bbb643db81 WHIRLPOOL dc55ab5ca8e7361d29baa8b164021b9b90ac41bf72063f5af7bcd8a715a3c10da01eae6d640cedff986a58a02e975d30cf5b727054c6f990d46ed153189328f8
+MISC ChangeLog 2602 SHA256 e3be818111c20c0530a52f37083523ae8b84e98cc8088e1e3de328690c05522b SHA512 c2527957b285c59485c38581cf183d62fc3c533696f32ecc4ea8b4ee369193afe1aa364ee6d78fd25d1167ad3cbee2d793c224e05f02562bbb6a3803b853e57e WHIRLPOOL 2b4f31e6d1e49bc1f0de892a9111a7669a3a989157f1750efa21ac7c68d87059af917910d318d48fe73a6b76b870d1f13f888e5e4e6eae19fdef8219b968b3bc
+MISC ChangeLog-2015 1243 SHA256 e05f15649b9c2f9069e06c204b793670365419989d7fae7747eb91f08845391d SHA512 8bb3bb493b0ba868b5e45e670cf929a5c1730c4f22bc890d6b83b2dde21b97328cc23d2a91f4e033ff9183913dfc5412aa9bbb2b3d9f30e467ac30f0873ae28d WHIRLPOOL 6c1d5d0497941a8015e95e586af475f6414d17fb74a9285d001b9a84698a855b22851dfceec9e2d9ad51664369e5ea559b9fb4eac0532e1dc6bb4172a5d637d8
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-fps/quake3-ruinhunters/metadata.xml b/games-fps/quake3-ruinhunters/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-fps/quake3-ruinhunters/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-fps/quake3-ruinhunters/quake3-ruinhunters-1.0a-r1.ebuild b/games-fps/quake3-ruinhunters/quake3-ruinhunters-1.0a-r1.ebuild
new file mode 100644
index 000000000000..8f70b9b2feac
--- /dev/null
+++ b/games-fps/quake3-ruinhunters/quake3-ruinhunters-1.0a-r1.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+MOD_DESC="Anime mod with cartoon actors and arcade-like gameplay"
+MOD_NAME="Ruin Hunters"
+MOD_DIR="ruin"
+
+inherit games games-mods
+
+HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
+SRC_URI="
+ mirror://quakeunity/modifications/ruinhunters/ruin_hunters_v10.zip
+ mirror://quakeunity/modifications/ruinhunters/ruin_hunters_v10a_patch.zip"
+
+LICENSE="freedist"
+KEYWORDS="amd64 x86"
+IUSE="dedicated opengl"
+
+src_prepare() {
+ rm -f *.bat
+}
diff --git a/games-fps/quake3-teamarena/Manifest b/games-fps/quake3-teamarena/Manifest
new file mode 100644
index 000000000000..e0dc902b1175
--- /dev/null
+++ b/games-fps/quake3-teamarena/Manifest
@@ -0,0 +1,5 @@
+DIST linuxq3apoint-1.32b-3.x86.run 30923961 SHA256 c36132c5556b35e01950f1e9c646235033a5130f87ad776ba2bc7becf4f4f186 SHA512 64cff7f8b689e6c801cd68b0f44406a60bd45f83b2544debb8bf1ef7480a1407184a67d2bdafe66e803c0c030b8df6766ce24e48c9e7c610ecf152ed326b7d78 WHIRLPOOL ad1250dbf53e0d5b03b753752e9fc66f361fe2473fc3bd74285a1357e3c1f9fded64806a46766f1bd666b567b8d0fc55a8780633f60af2554abaad9231873cf3
+EBUILD quake3-teamarena-1.32b.ebuild 1253 SHA256 b35c8c531f32bbf599cdd83a38ea5b651cae04b41ba18935576a86e552d51a31 SHA512 e270ca93e1a1f201f5fca9732ad9c699680721ba1c6d4161a4eb81d1177987b0966dfa9a74609dd856f29297e0cca409687c2f215706964ba309db0e351c98a7 WHIRLPOOL e8eb7a3b81d170f338c8a43c083cbfd96235fe940c3be0541891ee8b4d76e9abeb1f91cc1e34507ca4a990299112c710cadbd2f7e0bc15932ae55d58371a0f6e
+MISC ChangeLog 2455 SHA256 76eb66f2463c3f0dff2241d06377114623728fd8b9508608a7db4fa07db5e0f2 SHA512 d59b5205314ebb46b8f0c3bee8891ff7e3ca76b435c64d89ec36006bf43effb0ba430f58383054a335c983b5709c6ba3df0b21fa7ad29f3499325d6c8aa4a1ac WHIRLPOOL 2f8f7911c5331a8388c6f25dc9d82e217fc4a3a3c9747866184b0b42cfbaa3db7eaecfd34b7505cadbb8856daa18d96d82c58c493155e98dc35a09171d51673c
+MISC ChangeLog-2015 1849 SHA256 826bcbed02bd6d619e072251371d4ac0f1838d56cbf344fe625dccb7d7b3c540 SHA512 c8c98b8365f32ebe6dbb13eea2247d7a261d746c96e02996cfa3465220187e4b7210e32f45c3cbc4c79f332203887cc6fef5eea809fd9c4e3f57a38633f33149 WHIRLPOOL ac9cb7a4f0453255ca7ed3ebdc1ef1afa4d19522b08102e5954622412685234b1345840eaad7c838c5e27ce913c460004cdf6ad047cb617007efd24538928204
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-fps/quake3-teamarena/metadata.xml b/games-fps/quake3-teamarena/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-fps/quake3-teamarena/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-fps/quake3-teamarena/quake3-teamarena-1.32b.ebuild b/games-fps/quake3-teamarena/quake3-teamarena-1.32b.ebuild
new file mode 100644
index 000000000000..e367be487f0a
--- /dev/null
+++ b/games-fps/quake3-teamarena/quake3-teamarena-1.32b.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+EAPI=5
+CDROM_OPTIONAL="yes"
+inherit eutils unpacker cdrom games
+
+DESCRIPTION="Quake III Team Arena - data portion"
+HOMEPAGE="http://icculus.org/quake3/"
+SRC_URI="mirror://idsoftware/quake3/linux/linuxq3apoint-${PV}-3.x86.run"
+
+LICENSE="Q3AEULA"
+SLOT="0"
+KEYWORDS="amd64 x86 ~x86-fbsd"
+IUSE=""
+
+RDEPEND="|| (
+ games-fps/quake3
+ games-fps/quake3-bin )"
+DEPEND=""
+
+S=${WORKDIR}
+
+src_unpack() {
+ use cdinstall && cdrom_get_cds Setup/missionpack/PAK0.PK3
+ unpack_makeself
+}
+
+src_install() {
+ einfo "Copying Team Arena files from linux client ..."
+ insinto "${GAMES_DATADIR}"/quake3/missionpack
+ doins missionpack/*.pk3
+
+ if use cdinstall ; then
+ einfo "Copying files from CD ..."
+ newins "${CDROM_ROOT}/Setup/missionpack/PAK0.PK3" pak0.pk3
+ eend 0
+ fi
+
+ find "${D}" -exec touch '{}' \;
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ if ! use cdinstall ; then
+ elog "You need to copy PAK0.PK3 from your Team Arena CD into"
+ elog "${dir}/missionpack and name it pak0.pk3."
+ elog "Or if you have got a Window installation of Q3 make a symlink to save space."
+ elog
+ elog "Or, re-emerge quake3-teamarena with USE=cdinstall."
+ echo
+ fi
+}
diff --git a/games-fps/quake3-threewave/Manifest b/games-fps/quake3-threewave/Manifest
new file mode 100644
index 000000000000..0cb103197556
--- /dev/null
+++ b/games-fps/quake3-threewave/Manifest
@@ -0,0 +1,6 @@
+DIST threewave_16_full.zip 187896825 SHA256 c3cb1412cafc61a475ad2f1e93ecf47d7e2f979d973ce82b4a50da3101eca27d SHA512 06d7ce75453f79dc2621086cac816a5bb81cc3c1dcc96015c4f7e18f07144c2cca384d437edda51e431c11854977b5d6197a70be06e1660da9a0c3ab67dae6af WHIRLPOOL 7fbf291d2d4a192f57172438708752499c67fffbce39ff050e63c508b1d9b6620815d4ec5d768d2aa04736b6ce48fc0de687ed3a04cae6f9711ad1e61ea20e3c
+DIST threewave_17_update.zip 6139861 SHA256 0fff6a66822c422cb9f6cca0139fa11048fef414c7dd839c50fbcbda80a44433 SHA512 b2c98112d3c671fb08db154079cf2a085536dd121600301884779030722a18301e73a5d41321dff98508659feda689c8af08be1b05420527c395bb036a627962 WHIRLPOOL 1e4622855f3cc911c57feaa06f0e77216ac96f9ab6007c67c864e62d70a92cb97a43e0d23d51edc4120a1df9f059c345647153add002b2661993b4bc3f38af22
+EBUILD quake3-threewave-1.7-r1.ebuild 525 SHA256 255c4cee027e18b6d5a1eabdce6c9fee007f87ccc02df274dd5cbb1bb532554c SHA512 a2e7030ba449bdd542cb1b5201a27cbc1df16faaad956ce4d1dc6f493b91e04ad68d9f8dc26c774149370698806f9eec551f395a3b99371cac3a39946129fc61 WHIRLPOOL 8ab710b858444169b4ca15d7c7aae11564c2dd01e7818e0db5e17d79d2da4ae0abb296bac4f01671a0b0afc7cad11797b61c8894baff7642ebafb98bfe8a7d5e
+MISC ChangeLog 2591 SHA256 54e0fcb6faa8d7a06cffa1701633616dd002e932c94ae3cd154a5122e59ec908 SHA512 c72abf8316883a03f2c318e6cb99f8ee0abe63adaf7bb53c2aa5e938a8c356b89910ca63e87609d4a244bbede750da3d3f9e40d78f3951445ff5ba34fb707764 WHIRLPOOL 651a4e9a628d887de87f6b00ecd14877e351f53a54c50344cf442074dce778c5704964f68d6afa72a46cf24cf4e091f32ab65d299117318ddf3a57dd7096c588
+MISC ChangeLog-2015 1033 SHA256 65266df533e5b0d3a6c54804ebf6614920281f5167078cfd402a05f023749124 SHA512 ccd414df668ddd8bafb1897843d30141ac939d7f7891d59d511be7af0be412b6247f7616e96b25dc62b5930fa26b08be5d3164ba4bf713a52795d44631b041f3 WHIRLPOOL 9587a5acceaafc0d9387235bc3b33d019da4445390ad13b541b1cc0462b012daeec8343de7daea1ef45cf1464a001f80a28b26b5ad55ce7900de565a908f5adf
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-fps/quake3-threewave/metadata.xml b/games-fps/quake3-threewave/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-fps/quake3-threewave/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-fps/quake3-threewave/quake3-threewave-1.7-r1.ebuild b/games-fps/quake3-threewave/quake3-threewave-1.7-r1.ebuild
new file mode 100644
index 000000000000..7c39ce1c556d
--- /dev/null
+++ b/games-fps/quake3-threewave/quake3-threewave-1.7-r1.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+MOD_DESC="Threewave CTF"
+MOD_NAME="Threewave CTF"
+MOD_DIR="threewave"
+
+inherit games games-mods
+
+HOMEPAGE="http://www.threewave.com/"
+SRC_URI="mirror://quakeunity/modifications/threewavectf/threewave_16_full.zip
+ mirror://quakeunity/modifications/threewavectf/threewave_17_update.zip"
+
+LICENSE="freedist"
+KEYWORDS="amd64 x86"
+IUSE="dedicated opengl"
+
+src_unpack() {
+ unpack threewave_{16_full,17_update}.zip
+}
diff --git a/games-fps/quake3/Manifest b/games-fps/quake3/Manifest
new file mode 100644
index 000000000000..0e0eb2e62eea
--- /dev/null
+++ b/games-fps/quake3/Manifest
@@ -0,0 +1,7 @@
+AUX quake3-1.36-bots.patch 499 SHA256 b3510423a8486df90853bc1321dcec9dfdcdb1b2b3870495bca49bd8c5635e66 SHA512 75d0659a07902cd78153792353796e77ce1baf7545da370d88f37accca090bee9b94d7447bfa0d284fb98769c94ee434cf7baa6fe9f457018d00dd6431eecba0 WHIRLPOOL 0f4424c90d424354a364a6979057c72c99595285007c166dd4bdce687e2eb653255caab4b60f0178c576fbd0d022342c67cae28c1ba8a15b8b579f2276b05dd6
+DIST ioquake3-1.36.tar.bz2 3503058 SHA256 79b10b92e9e586748a67089ac871646fe8144004d3ab4a55158348bc38d74821 SHA512 fdd8e0ab56966cdc614eff45ab478b87255cfb1b50ba10b3141bcfcc569fc620d281de93333d39119b2d7b43aac3900ecf826a0459fc89bb2f57e30ae2425645 WHIRLPOOL 5468b57504af5c33c7e8150aaaa27082654fe751f24679f81efe8441b1aab1b63e2013adc758d45799ea9a8e12eb9c39c27506a309f36762fbd07f0c3c4a5b26
+EBUILD quake3-1.36-r1.ebuild 3011 SHA256 919be4f2abf6286881675100d00c80481bba8afbee69e6e224e4745e1e87ca29 SHA512 bbf0be1c600f9335e5d6b979916e4adfc4a3d1a9f2fdcdaaa3b5de738e62e0b1302f15871f40d2a58dfebc6e8edf91e732a84bb97fe6869cad20f652eef8e821 WHIRLPOOL a93995b7044fd6d1c879ad4e06e3e190b5859e9ea1ffc6111befad0d346bf8f6eecf92aadcab49ca6adeec987c827aa2faf72945135c30257ba9a0ac7bb3d672
+EBUILD quake3-9999.ebuild 3537 SHA256 4f85654a40d2dc216505ee610cbb2224ae209668176aaf79b8c0185225b72a9c SHA512 aebd3073b92f3d8878697cca0c7183f7f4f5eca8b9e111dbe80649648d2db951dfd2071247aaaf7912822643d5f6a4649cd5f3d0515989f5f2475bc821368ca9 WHIRLPOOL 79f06a0a0d91988b1c9a0aa131922cb8d960ba44adbd9d55c1187ce18236abfc45c18b923d53f0e3f47ddc8f2bbd8fb48642b820f46b5927470519b8ddb5d474
+MISC ChangeLog 3116 SHA256 5d25264298fffe197437fcbba923e67de7143f992a0a105ed66716868af5b350 SHA512 26c1b8d6d230966c80e8a5f59a5c54e44f87ced4ffd969ec18fdc312d64a4a3eb2ec4ccc6bcaacab2302f738a34f936b910eb6e200c1bc5db5473ed1702f43f1 WHIRLPOOL cca03ac8d29b80ba1dc10e03467ab01d364abb87c667c443ab25b276c8afe5f4215913316631559b95b9de9a4df4bf5183b45c0cfba4ea0eb0be72034cf1f553
+MISC ChangeLog-2015 7761 SHA256 e434e15cc83158f67ec4277467f3da83f71305b86e82152217d4a6d3cbb9039f SHA512 6f00b261dd9807e1119c604fb4101924c3f28c2588e155fa00232e3d6d4f5b4a9cb73b445ef48e22cc151c0c20e9d617d06b041a610308384eb3322078ab9436 WHIRLPOOL b5ac094adb87bf8a56af2b8fc7f9dae20afe24ccbe861fa692b23f095c2d5e3dd8808f7d18e487ed0cb1dafc0b22120f26cc0958f5e2a823082d1e6e9e3bf068
+MISC metadata.xml 1286 SHA256 4dbe76b8b0135531b0aead5a78371a75118547af4accb86c1b77324d03e89680 SHA512 6a82390bc52e5995c1ff12e001cb6d54d70366b618c71107e0c79c5b03c9717b6e7426e221ac499126ea0ea870c75bdfe40418e04a2f3c4241ac5e0b99dd22b9 WHIRLPOOL 8a603340a5452305c2fb68ac6e0a2a6eea5e824bb9379d122c2bda6ca037a8700967e5ebbecedc155525fc1f1afc7409f7868da0f899f88a76e4ef2bfc0a192a
diff --git a/games-fps/quake3/files/quake3-1.36-bots.patch b/games-fps/quake3/files/quake3-1.36-bots.patch
new file mode 100644
index 000000000000..31d2f2041c6f
--- /dev/null
+++ b/games-fps/quake3/files/quake3-1.36-bots.patch
@@ -0,0 +1,20 @@
+--- code/botlib/l_script.c.orig 2009-11-02 20:29:23.000000000 +0100
++++ code/botlib/l_script.c 2009-11-02 22:21:40.000000000 +0100
+@@ -1118,7 +1118,7 @@
+ {
+ if (*string == '\"')
+ {
+- strcpy(string, string+1);
++ memmove(string, string+1, strlen(string));
+ } //end if
+ if (string[strlen(string)-1] == '\"')
+ {
+@@ -1135,7 +1135,7 @@
+ {
+ if (*string == '\'')
+ {
+- strcpy(string, string+1);
++ memmove(string, string+1, strlen(string));
+ } //end if
+ if (string[strlen(string)-1] == '\'')
+ {
diff --git a/games-fps/quake3/metadata.xml b/games-fps/quake3/metadata.xml
new file mode 100644
index 000000000000..c62fb568e143
--- /dev/null
+++ b/games-fps/quake3/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>
+Quake III Arena is the third installment of the extremely popular and
+successful Quake series by id software. The game was released by id
+software for both Windows and Linux. The Linux version of the game was
+maintained and sold by the now defunct Loki Entertainment. The powerful
+Quake III engine is the basis for many other commercial games, as id's
+major source of revenue is licensing their game engines. The engine
+allows for user-contributed modifications to be made, allowing the game
+to be extensible and expandable. This game is commercial software, and
+requires the data from a retail copy of the game to play. If you're
+interested in checking out the technology behind Quake III, then
+"emerge quake3-demo" to get the playable demo.
+</longdescription>
+ <use>
+ <flag name="mumble">Adds player-location (positional audio) support to VoIP</flag>
+ <flag name="teamarena">Adds support for Team Arena expansion pack</flag>
+ <flag name="voice">Adds VoIP support</flag>
+ </use>
+</pkgmetadata>
diff --git a/games-fps/quake3/quake3-1.36-r1.ebuild b/games-fps/quake3/quake3-1.36-r1.ebuild
new file mode 100644
index 000000000000..0f1ede92b5d7
--- /dev/null
+++ b/games-fps/quake3/quake3-1.36-r1.ebuild
@@ -0,0 +1,122 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils flag-o-matic toolchain-funcs games
+
+MY_PN="ioquake3"
+MY_PV="${PV}"
+MY_P="${MY_PN}-${MY_PV}"
+
+DESCRIPTION="Quake III Arena - 3rd installment of the classic id 3D first-person shooter"
+HOMEPAGE="https://ioquake3.org/"
+SRC_URI="https://ioquake3.org/files/${MY_PV}/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86 ~x86-fbsd"
+# "smp" is omitted, because currently it does not work.
+IUSE="dedicated opengl teamarena +openal curl vorbis voice mumble"
+
+UIDEPEND="virtual/opengl
+ media-libs/libsdl[sound,video,joystick,X,opengl]
+ openal? ( media-libs/openal )
+ vorbis? (
+ media-libs/libogg
+ media-libs/libvorbis
+ )
+ voice? ( media-libs/speex )
+ curl? ( net-misc/curl )"
+DEPEND="opengl? ( ${UIDEPEND} )
+ !dedicated? ( ${UIDEPEND} )"
+UIRDEPEND="voice? ( mumble? ( media-sound/mumble ) )"
+RDEPEND="${DEPEND}
+ opengl? ( ${UIRDEPEND} )
+ !dedicated? ( ${UIRDEPEND} )
+ games-fps/quake3-data
+ teamarena? ( games-fps/quake3-teamarena )"
+
+S="${WORKDIR}/${MY_P}"
+
+my_arch() {
+ case "${ARCH}" in
+ x86) echo "i386" ;;
+ amd64) echo "x86_64" ;;
+ *) tc-arch-kernel ;;
+ esac
+}
+
+my_platform() {
+ usex kernel_linux linux freebsd
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-bots.patch
+ einfo "Fixing libspeex linking..."
+ sed -i -e 's/\(-lspeex\)/\1 -lspeexdsp/' Makefile || die
+}
+
+src_compile() {
+
+ buildit() { use $1 && echo 1 || echo 0 ; }
+
+ # This is the easiest way to pass CPPFLAGS to the build system, which
+ # are otherwise ignored.
+ append-flags ${CPPFLAGS}
+
+ # OPTIMIZE is disabled in favor of CFLAGS.
+ #
+ # TODO: BUILD_CLIENT_SMP=$(buildit smp)
+ emake \
+ ARCH="$(my_arch)" \
+ V=1 \
+ BUILD_CLIENT=$(( $(buildit opengl) | $(buildit !dedicated) )) \
+ BUILD_GAME_QVM=0 \
+ BUILD_GAME_SO=0 \
+ BUILD_SERVER=$(buildit dedicated) \
+ DEFAULT_BASEDIR="${GAMES_DATADIR}/${PN}" \
+ GENERATE_DEPENDENCIES=0 \
+ OPTIMIZE="" \
+ PLATFORM="$(my_platform)" \
+ USE_CODEC_VORBIS=$(buildit vorbis) \
+ USE_CURL=$(buildit curl) \
+ USE_CURL_DLOPEN=0 \
+ USE_INTERNAL_SPEEX=0 \
+ USE_INTERNAL_ZLIB=0 \
+ USE_LOCAL_HEADERS=0 \
+ USE_MUMBLE=$(buildit mumble) \
+ USE_OPENAL=$(buildit openal) \
+ USE_OPENAL_DLOPEN=0 \
+ USE_VOIP=$(buildit voice)
+}
+
+src_install() {
+ dodoc BUGS ChangeLog id-readme.txt md4-readme.txt NOTTODO README TODO
+ if use voice ; then
+ dodoc voip-readme.txt
+ fi
+
+ if use opengl || ! use dedicated ; then
+ doicon misc/quake3.svg
+ make_desktop_entry quake3 "Quake III Arena"
+ fi
+
+ cd build/release-$(my_platform)-$(my_arch) || die
+ local exe target
+ for exe in {ioquake3,ioquake3-smp,ioq3ded}.$(my_arch) ; do
+ if [[ -x ${exe} ]] ; then
+ target=${exe%.*}
+ newgamesbin ${exe} ${target}
+ dosym ${target} "${GAMES_BINDIR}/${target/io}"
+ fi
+ done
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+
+ ewarn "The source version of Quake III Arena will not work with PunkBuster."
+ ewarn "If you need PB support, then use the games-fps/quake3-bin package."
+}
diff --git a/games-fps/quake3/quake3-9999.ebuild b/games-fps/quake3/quake3-9999.ebuild
new file mode 100644
index 000000000000..a5273e1ac571
--- /dev/null
+++ b/games-fps/quake3/quake3-9999.ebuild
@@ -0,0 +1,137 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# quake3-9999 -> latest git
+# quake3-9999.REV -> use git REV
+# quake3-VER_alphaREV -> git snapshot REV for version VER
+# quake3-VER -> normal quake release
+
+EAPI=5
+inherit eutils flag-o-matic toolchain-funcs games
+[[ "${PV}" == 9999* ]] && inherit git-r3
+
+MY_PN="ioquake3"
+MY_PV="${PV}"
+MY_P="${MY_PN}-${MY_PV}"
+
+DESCRIPTION="Quake III Arena - 3rd installment of the classic id 3D first-person shooter"
+HOMEPAGE="https://ioquake3.org/"
+[[ "${PV}" != 9999* ]] && SRC_URI="https://ioquake3.org/files/${MY_PV}/${MY_P}.tar.bz2"
+EGIT_REPO_URI="https://github.com/ioquake/ioq3.git"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS=""
+# "smp" is omitted, because currently it does not work.
+IUSE="dedicated opengl teamarena +openal curl vorbis voice mumble"
+
+UIDEPEND="virtual/opengl
+ media-libs/libsdl[sound,video,joystick,X,opengl]
+ virtual/jpeg:0
+ openal? ( media-libs/openal )
+ vorbis? (
+ media-libs/libogg
+ media-libs/libvorbis
+ )
+ voice? ( media-libs/speex )
+ curl? ( net-misc/curl )"
+DEPEND="opengl? ( ${UIDEPEND} )
+ !dedicated? ( ${UIDEPEND} )"
+UIRDEPEND="voice? ( mumble? ( media-sound/mumble ) )"
+RDEPEND="${DEPEND}
+ opengl? ( ${UIRDEPEND} )
+ !dedicated? ( ${UIRDEPEND} )
+ games-fps/quake3-data
+ teamarena? ( games-fps/quake3-teamarena )"
+
+if [[ "${PV}" != 9999* ]] ; then
+ S="${WORKDIR}/${MY_P}"
+fi
+
+my_arch() {
+ case "${ARCH}" in
+ x86) echo "i386" ;;
+ amd64) echo "x86_64" ;;
+ *) tc-arch-kernel ;;
+ esac
+}
+
+my_platform() {
+ usex kernel_linux linux freebsd
+}
+
+src_compile() {
+
+ buildit() { use $1 && echo 1 || echo 0 ; }
+
+ # This is the easiest way to pass CPPFLAGS to the build system, which
+ # are otherwise ignored.
+ append-flags ${CPPFLAGS}
+
+ # Workaround for used zlib macro, wrt bug #449510
+ append-flags -DOF=_Z_OF
+
+ # OPTIMIZE is disabled in favor of CFLAGS.
+ #
+ # TODO: BUILD_CLIENT_SMP=$(buildit smp)
+ emake \
+ ARCH="$(my_arch)" \
+ V=1 \
+ BUILD_CLIENT=$(( $(buildit opengl) | $(buildit !dedicated) )) \
+ BUILD_GAME_QVM=0 \
+ BUILD_GAME_SO=0 \
+ BUILD_SERVER=$(buildit dedicated) \
+ DEFAULT_BASEDIR="${GAMES_DATADIR}/${PN}" \
+ FULLBINEXT="" \
+ GENERATE_DEPENDENCIES=0 \
+ OPTIMIZE="" \
+ PLATFORM="$(my_platform)" \
+ USE_CODEC_VORBIS=$(buildit vorbis) \
+ USE_CURL=$(buildit curl) \
+ USE_CURL_DLOPEN=0 \
+ USE_INTERNAL_JPEG=0 \
+ USE_INTERNAL_SPEEX=0 \
+ USE_INTERNAL_ZLIB=0 \
+ USE_LOCAL_HEADERS=0 \
+ USE_MUMBLE=$(buildit mumble) \
+ USE_OPENAL=$(buildit openal) \
+ USE_OPENAL_DLOPEN=0 \
+ USE_VOIP=$(buildit voice)
+}
+
+src_install() {
+ dodoc BUGS ChangeLog id-readme.txt md4-readme.txt NOTTODO README.md TODO voip-readme.txt
+ if use voice ; then
+ dodoc voip-readme.txt
+ fi
+
+ if use opengl || ! use dedicated ; then
+ doicon misc/quake3.svg
+ make_desktop_entry quake3 "Quake III Arena"
+ #use smp && make_desktop_entry quake3-smp "Quake III Arena (SMP)"
+ fi
+
+ cd build/release-$(my_platform)-$(my_arch) || die
+ local exe
+ for exe in ioquake3 ioquake3-smp ioq3ded ; do
+ if [[ -x ${exe} ]] ; then
+ dogamesbin ${exe}
+ dosym ${exe} "${GAMES_BINDIR}/${exe/io}"
+ fi
+ done
+
+ # Install renderer libraries, wrt bug #449510
+ # this should be done through 'dogameslib', but
+ # for this some files need to be patched
+ exeinto "${GAMES_DATADIR}/${PN}"
+ doexe renderer*.so
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+
+ ewarn "The source version of Quake III Arena will not work with PunkBuster."
+ ewarn "If you need PB support, then use the games-fps/quake3-bin package."
+}
diff --git a/games-fps/quake4-bin/Manifest b/games-fps/quake4-bin/Manifest
new file mode 100644
index 000000000000..331c6efbb2be
--- /dev/null
+++ b/games-fps/quake4-bin/Manifest
@@ -0,0 +1,5 @@
+DIST quake4-linux-1.4.2.x86.run 287552973 SHA256 9203b387b1a4075a1b9ad1eb7be32b49a88141a448d9330d9cbe1f40a145bd6a SHA512 a6a390a8f46c7e696fe865d0688c9a95eb0d9e32ad62ecb796dcc03618994ec065e8c74358518221cb6c8771d2414ed7e144c77a1a8ecd4ae9ce6406459c5f36 WHIRLPOOL 14064a8553a3e4b4defb74e450beaade3b687c7b102ad71881c0fa86f5e3f0e848f2b6e6c896a1c6e8bc3faadc8969535e30dfb315e9009ae902c64de1bbed9a
+EBUILD quake4-bin-1.4.2-r1.ebuild 4012 SHA256 9a076e1e1e7f5de4c405604a2fd943777a0ad7481ff3eb75a3b2a08b1c315b7a SHA512 e1c9ccbee99071028b83db5796e45fb5dda7a563aa991781ba85c461b89781e956f380f8da70dcf60b337ce66d714259c3b9118767fa6f71b564851252e7c04a WHIRLPOOL c79a9bfdc53c72e4d3ee130f556baeeea33668e65909aa3f3440cb10724f111f60582290801727db5cdfbb8e3d740b5fa2bd978a02788a7b73a1e888947f40b5
+MISC ChangeLog 2585 SHA256 9a17df6fbb5896aa1a0231e78c8c1dcfde48d700a90b24b81008daaca5d93a49 SHA512 68e8f0e96b6031ccc33ae922b8ab17ff9c6bf9ed258644ffc75039dd51d43c4e782fc55dc8b749c0c1a75046fa08cc9b535e900556c419ff4d36053924d1f7c2 WHIRLPOOL 464fe5de52fe7a062c6e198e24a517f6cdaaedb3eafacc89524c206b7359b9f769f17194bf67ade5b1bfbf9aa4e984ca8e0777037c966a3be7e6edfbf7c73eb4
+MISC ChangeLog-2015 7151 SHA256 a87f931f1337fd433bb59a75203af7b18bab92fe3abfe8e296b6cf2ee3feba77 SHA512 840e85247ed177a062571ffa2205c9430af65d5e749fc82f0072514046aff21adbd5691e6356397f45b2700e9672da5a87a73308e59b8d162abf0429bc557566 WHIRLPOOL cc434d33f2ef7d0ee8350e86eb46a399c8344f75821bb121e093d7621dacb3ce891087f62dd27fe0586af54958cbcff109fb591692feca5bf2062e23890290b5
+MISC metadata.xml 1137 SHA256 5986bf72fc86948c8b4f17b25aae8913350391768b1bcc43c916414690eab496 SHA512 1ede51f4fcebc6a451ab4790e5d26fd07f464461d15b31c065eb02a77bdc114ba4ec35fb0ca380d980c416007e4671532b053477709fd7d28210b64423132d31 WHIRLPOOL 8502586683556faed16f29c9ac748d3125dfde05586875dffbfb25a86a98e9a8ddf1103b9a1a722f93daf9eab5b5d8d2279de96be97b48f9be2e8ed97ee5c7de
diff --git a/games-fps/quake4-bin/metadata.xml b/games-fps/quake4-bin/metadata.xml
new file mode 100644
index 000000000000..068a2588cec4
--- /dev/null
+++ b/games-fps/quake4-bin/metadata.xml
@@ -0,0 +1,25 @@
+<?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>
+In a desparate war for Earth's survival against and unrelenting alient enemy,
+the only way to defeat them is to become one of them.
+
+Earth is under seige by the Strogg, a barbaric alien race moving through the
+universe consuming, recycling and annihilating any civilization in their path.
+In a deperate attempt to survive, an armada of Earth's finest warriors is sent
+to take the battle to the Strogg home planet.
+
+You are Matthow Kane, an elite member of Rhino Squad and Eath's valiant invasion
+force. Fight alone, with your squad, or in hover tanks and mechanized walkers
+as you engage in a heroic mission the the heart of the Strogg war machine.
+
+Quake 4 is the fourth installment of the extremely popular and successful Quake
+series by id software. This game is commercial software, and requires the data
+from a retail copy of the game to play.
+</longdescription>
+</pkgmetadata>
diff --git a/games-fps/quake4-bin/quake4-bin-1.4.2-r1.ebuild b/games-fps/quake4-bin/quake4-bin-1.4.2-r1.ebuild
new file mode 100644
index 000000000000..46165b2bef2b
--- /dev/null
+++ b/games-fps/quake4-bin/quake4-bin-1.4.2-r1.ebuild
@@ -0,0 +1,144 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils unpacker games
+
+DESCRIPTION="Sequel to Quake 2, an id Software 3D first-person shooter"
+HOMEPAGE="http://www.quake4game.com/"
+SRC_URI="mirror://idsoftware/quake4/linux/quake4-linux-${PV}.x86.run"
+
+LICENSE="QUAKE4"
+SLOT="0"
+KEYWORDS="-* amd64 x86"
+IUSE="cdinstall dedicated l10n_cs l10n_fr l10n_it l10n_pl l10n_ru"
+RESTRICT="strip"
+
+# QUAKE4 NEEDS s3tc support, which can be obtained for OSS drivers via
+# media-libs/libtxc_dxtn and is built into the proprietary drivers.
+# depend optionally on them but elog too, in case a user has both
+# proprietary and OSS drivers installed and sees the segfault.
+
+RDEPEND="sys-libs/glibc
+ amd64? ( sys-libs/glibc[multilib] )
+ sys-libs/zlib[abi_x86_32(-)]
+ dedicated? ( app-misc/screen )
+ !dedicated? (
+ || (
+ >=media-libs/libtxc_dxtn-1.0.1-r1[abi_x86_32(-)]
+ x11-drivers/nvidia-drivers
+ >=x11-drivers/ati-drivers-8.8.25-r1
+ )
+ >=x11-libs/libX11-1.6.2[abi_x86_32(-)]
+ >=x11-libs/libXext-1.3.2[abi_x86_32(-)]
+ >=media-libs/libsdl-1.2.15-r4[X,opengl,sound,abi_x86_32(-)]
+ )
+ cdinstall? ( games-fps/quake4-data )"
+
+S=${WORKDIR}
+dir=${GAMES_PREFIX_OPT}/quake4
+Ddir=${D}/${dir}
+
+QA_TEXTRELS="${dir:1}/pb/pbag.so
+ ${dir:1}/pb/pbags.so
+ ${dir:1}/pb/pbcl.so
+ ${dir:1}/pb/pbcls.so
+ ${dir:1}/pb/pbsv.so
+ ${dir:1}/libSDL-1.2.id.so.0"
+QA_EXECSTACK="${dir:1}/quake4.x86
+ ${dir:1}/quake4smp.x86
+ ${dir:1}/q4ded.x86
+ ${dir:1}/libSDL-1.2.id.so.0"
+
+zpaklang() {
+ if ! use l10n_${1} ; then
+ einfo "Removing ${2} zpak files"
+ rm -f q4base/zpak_${2}*
+ fi
+}
+
+src_unpack() {
+ unpack_makeself ${A}
+
+ mv q4icon.bmp quake4.bmp || die
+
+ # Am including the Spanish files because Spanish is the default language
+ #zpaklang es spanish
+ zpaklang cs czech
+ zpaklang fr french
+ zpaklang it italian
+ zpaklang pl polish
+ zpaklang ru russian
+
+ # Rename the .off files, so they will be used
+ cd q4base
+ if [[ ! -z $(ls *.off 2> /dev/null) ]] ; then
+ local f
+ for f in *.off ; do
+ einfo "Renaming ${f}"
+ mv "${f}" "${f%.off}" || die "mv ${f}"
+ done
+ fi
+}
+
+src_install() {
+ insinto "${dir}"
+ doins CHANGES* License.txt sdl.patch.1.2.10 us/version.info
+ doins -r pb q4mp
+ dodoc README*
+
+ insinto "${dir}"/q4base
+ doins q4base/* us/q4base/* || die "doins q4base"
+ games_make_wrapper quake4-ded ./q4ded.x86 "${dir}" "${dir}"
+
+ exeinto "${dir}"
+ doexe openurl.sh bin/Linux/x86/q4ded.x86
+
+ if ! use dedicated ; then
+ doexe bin/Linux/x86/{quake4{,smp}.x86,*.id.so.?}
+ doicon quake4.bmp || die "doicon"
+ games_make_wrapper quake4 "./quake4.x86" "${dir}" "${dir}"
+ games_make_wrapper quake4-smp ./quake4smp.x86 "${dir}" "${dir}"
+ icon_path="quake4"
+ if [ -e "${FILESDIR}"/quake4.png ]
+ then
+ doicon "${FILESDIR}"/quake4.png || die "copying icon"
+ elif [ -e "${DISTDIR}"/quake4.png ]
+ then
+ doicon "${DISTDIR}"/quake4.png || die "copying icon"
+ else
+ icon_path=/usr/share/pixmaps/quake4.bmp
+ fi
+ make_desktop_entry quake4 "Quake IV" ${icon_path}
+ make_desktop_entry quake4-smp "Quake IV (SMP)" ${icon_path}
+ fi
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+
+ if ! use cdinstall ; then
+ elog "You need to copy pak001.pk4 through pak012.pk4, along with"
+ elog "zpak*.pk4 from either your installation media or your hard drive"
+ elog "to ${dir}/q4base before running the game."
+ echo
+ fi
+ if ! use dedicated ; then
+ elog "To play the game, run: quake4"
+ elog
+ # The default language is Spanish!
+ elog "To reset the language from Spanish to English, run:"
+ elog " sed -i 's:spanish:english:' ~/.quake4/q4base/Quake4Config.cfg"
+ elog
+ elog "Saved games from previous Quake 4 versions might not be compatible."
+ elog
+ elog "If you get a segmentation fault or an error regarding"
+ elog "'GL_EXT_texture_compression_s3tc', you can obtain the"
+ elog "necessary support for your mesa drivers by installing"
+ elog "media-libs/libtxc_dxtn (for abi_x86_32 if multilib)."
+ echo
+ fi
+ elog "To start the dedicated server, run: quake4-ded"
+}
diff --git a/games-fps/quake4-data/Manifest b/games-fps/quake4-data/Manifest
new file mode 100644
index 000000000000..cd545ef1dd19
--- /dev/null
+++ b/games-fps/quake4-data/Manifest
@@ -0,0 +1,4 @@
+EBUILD quake4-data-1.0.2147.12.ebuild 1359 SHA256 67e2d968429b048fa5a1c0259e7be8a6ca756eeec2c68e672585fda034fa7e61 SHA512 d0ea5733dbc6c695ccde764f9d5765f397af538b1792eff5edd742483704c3e8791cef5468ff772001bf9fb227235aaaf3d3dea1d47420669e54b75f242f7216 WHIRLPOOL 3f4da930786c42972224fb0e48d5c68767f88c0b50bd44e353ca56780d199b16d90a25373e72dede33b451c256258f06a5025a0d29f4f4db14a0351329aed53f
+MISC ChangeLog 2586 SHA256 c3668dd855b537cbf9860b05a2907851beafcb3e43353a113e9805af4c417510 SHA512 a0361dafb47b650659d16ed921c8ba2504b8143a7f190bcb159c310038da7d46b9e0ca723518c89999431717c174cb9bad0e07dd1627afad78b2e9bebe5529de WHIRLPOOL 9d4a52c79e97c12646c5d8cfe95b78d655e94b6366870571eb6916b890b51040e6f28f764dceb7aee6bf2d8bc32011366bdcdb26756855589dc3e1c4749a3366
+MISC ChangeLog-2015 2259 SHA256 fba801f2735bc85e51fd493e4c52cb692ae2a689b3c99f6d719da2c9476cacf7 SHA512 bcbc829644cd3b35018668081ae02d61e212baa7b4d00ea823247e15f449f17b264b028716d95043ce46afe9c4520067ca7558c4e23ce99e9ef67d31898ebfa9 WHIRLPOOL 559f6a1cd28dee6720f1dc4cfbb9024bb0d7ca83a36d644a28798e5c902d967e1246ad4c9fe98fdfd384d2ec9742bf509535de7b2999461e8eadbabeeff6c461
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-fps/quake4-data/metadata.xml b/games-fps/quake4-data/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-fps/quake4-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-fps/quake4-data/quake4-data-1.0.2147.12.ebuild b/games-fps/quake4-data/quake4-data-1.0.2147.12.ebuild
new file mode 100644
index 000000000000..62cfd11dd1de
--- /dev/null
+++ b/games-fps/quake4-data/quake4-data-1.0.2147.12.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils cdrom games
+
+DESCRIPTION="sequel to Quake 2, an id 3D first-person shooter"
+HOMEPAGE="http://www.quake4game.com/"
+SRC_URI=""
+
+LICENSE="QUAKE4"
+SLOT="0"
+KEYWORDS="-* amd64 x86"
+IUSE=""
+RESTRICT="strip"
+
+DEPEND="app-arch/bzip2
+ app-arch/tar"
+RDEPEND=""
+PDEPEND="games-fps/quake4-bin"
+
+S=${WORKDIR}
+
+dir=${GAMES_PREFIX_OPT}/quake4
+Ddir=${D}/${dir}
+
+src_install() {
+ cdrom_get_cds Setup/Data/q4base/pak012.pk4 \
+ Setup/Data/q4base/pak001.pk4 \
+ Setup/Data/q4base/pak004.pk4 \
+ Setup/Data/q4base/pak007.pk4
+ insinto "${dir}"/q4base
+ einfo "Copying files from Disk 1..."
+ doins "${CDROM_ROOT}"/Setup/Data/q4base/pak01{0,1,2}.pk4 \
+ "${CDROM_ROOT}"/Setup/Data/q4base/zpak*.pk4
+ cdrom_load_next_cd
+ einfo "Copying files from Disk 2..."
+ doins "${CDROM_ROOT}"/Setup/Data/q4base/pak00{1,2,3}.pk4
+ cdrom_load_next_cd
+ einfo "Copying files from Disk 3..."
+ doins "${CDROM_ROOT}"/Setup/Data/q4base/pak00{4,5,6}.pk4
+ cdrom_load_next_cd
+ einfo "Copying files from Disk 4..."
+ doins "${CDROM_ROOT}"/Setup/Data/q4base/pak00{7,8,9}.pk4
+
+ find "${Ddir}" -exec touch '{}' +
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ elog "This is just the data portion of the game. You need to merge"
+ elog "games-fps/quake4-bin to play."
+ echo
+}
diff --git a/games-fps/quake4-demo/Manifest b/games-fps/quake4-demo/Manifest
new file mode 100644
index 000000000000..28f9f92d0d23
--- /dev/null
+++ b/games-fps/quake4-demo/Manifest
@@ -0,0 +1,5 @@
+DIST quake4-linux-1.0-demo.x86.run 337276597 SHA256 69e69e8cb22dd1496bcc98dc63f244d35c516c2e770aba64c72275827814bc73 SHA512 c7fa64ca9f95ab61fd02f2d7d3a85c718a5dea9f60a89ba8b46e7500f090fe45bbe498775e41541e33a0bb3483b75da10529755bef3a97d3e362d1c173a02abe WHIRLPOOL 96103978541635dbc5c24718debbc0e2b631a54f2e61ed4960f6c73cc3c10309827c1be7f9d10994e69699956eca77c5ebfc20d612d9f7968cdb16068fcfb6dd
+EBUILD quake4-demo-1.0-r1.ebuild 2482 SHA256 afdb917c063a0e05e5aec8ac32aa90c759eef1b0096025d506f3a0351e627ab7 SHA512 e236f932419db3c5ee6b50c6103ee7c8d24cdc31c7dc154740ebd614243e740489bf739c0e2f18ccb0b727368719cf8e7a26878ed17046ad913c47965e5b8462 WHIRLPOOL a61aeb037a24fa235039d9b5a2df483b9cc2be3c5168e331962b9dab531b3694b863fcbbaa20dfc95a00670d1675bccae340808d25ad70eaa6e117e9d8aefafd
+MISC ChangeLog 2442 SHA256 71ccdf40ebf5be3729621d7366ffb7010e3c56a4408f65db826de85ebd476e65 SHA512 116026c731167483ab6e210485553a1cd33b56bf203bc499f6dbdfbeba24950691129f7e232ce9e45b944bfee4abb6c9d968ae1a9797c10b47a5b878d0f153ab WHIRLPOOL b924f16d82634469ad6c08d74b1048a0123ab6f3b429e1650683172fe73dc30bc9863a31a38bd5090046c151ff9f3b59d89d7fd30985650d20747545687a7257
+MISC ChangeLog-2015 3414 SHA256 6388cbdb57b88a88b62d7114d9ca9aa3367100b75e950e7c2dd1badc252b7403 SHA512 7239581b3c93d9ff7b81357df04d76fdabd0c26840852761bc8192dd9a14af35002e7cf6b4687117aa0f263637f61ab53bb541c8587a55924043fa3f71ba625f WHIRLPOOL ee2c6e5df2686b46b61ed7e932ba9f82658781c92620ef57a071a4b396a022696a7de7f67fc10482874a1a60e95c00b8e36f2652e7c69c305e20364157ef1b90
+MISC metadata.xml 1090 SHA256 eb2fb70c43b75431ab5a2fa63a488b49afb0ce72664c4c258e8a21e60a93a2c8 SHA512 d1e6906e94fb8a42f605310a3a2e18fdc99f7557ac7605116c2fa328838f624ff70d7e7f716b1b841de78a5e35067f2f6866d8f36feaf6fd36f8b4c964bbbc0f WHIRLPOOL eda27531dd1ed946bf5595211cabdff05f8cadf3f24de4c542334214261f4d1a9f99cb683ce5816dc560c24770afbac0078b2d49ae651665945a2aa9defc3eed
diff --git a/games-fps/quake4-demo/metadata.xml b/games-fps/quake4-demo/metadata.xml
new file mode 100644
index 000000000000..c4e94c39a17d
--- /dev/null
+++ b/games-fps/quake4-demo/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>
+In a desparate war for Earth's survival against and unrelenting alient enemy,
+the only way to defeat them is to become one of them.
+
+Earth is under seige by the Strogg, a barbaric alien race moving through the
+universe consuming, recycling and annihilating any civilization in their path.
+In a deperate attempt to survive, an armada of Earth's finest warriors is sent
+to take the battle to the Strogg home planet.
+
+You are Matthow Kane, an elite member of Rhino Squad and Eath's valiant invasion
+force. Fight alone, with your squad, or in hover tanks and mechanized walkers
+as you engage in a heroic mission the the heart of the Strogg war machine.
+
+Quake 4 is the fourth installment of the extremely popular and successful Quake
+series by id software. This is the demo version of the commercial game.
+</longdescription>
+</pkgmetadata>
diff --git a/games-fps/quake4-demo/quake4-demo-1.0-r1.ebuild b/games-fps/quake4-demo/quake4-demo-1.0-r1.ebuild
new file mode 100644
index 000000000000..23bbec74432d
--- /dev/null
+++ b/games-fps/quake4-demo/quake4-demo-1.0-r1.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils unpacker games
+
+MY_P="quake4-linux-${PV}-demo"
+DESCRIPTION="Sequel to Quake 2, an Id 3D first-person shooter"
+HOMEPAGE="http://www.quake4game.com/"
+SRC_URI="mirror://idsoftware/quake4/demo/${MY_P}.x86.run
+ http://www.3ddownloads.com/Action/Quake%204/Demos/${MY_P}.x86.run
+ mirror://3dgamers/quake4/${MY_P}.x86.run
+ http://filebase.gmpf.de/quake4/${MY_P}.x86.run
+ http://www.holarse.de/mirror/${MY_P}.x86.run
+ http://sonic-lux.net/data/mirror/quake4/${MY_P}.x86.run"
+
+LICENSE="QUAKE4"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE="dedicated"
+RESTRICT="strip"
+
+# QUAKE4 NEEDS s3tc support, which can be obtained for OSS drivers via
+# media-libs/libtxc_dxtn and is built into the proprietary drivers.
+# depend optionally on them but elog too, in case a user has both
+# proprietary and OSS drivers installed and sees the segfault.
+
+RDEPEND="sys-libs/glibc
+ sys-libs/libstdc++-v3:5
+ amd64? ( sys-libs/glibc[multilib] sys-libs/libstdc++-v3:5[multilib] )
+ dedicated? ( app-misc/screen )
+ !dedicated? (
+ || (
+ >=media-libs/libtxc_dxtn-1.0.1-r1[abi_x86_32(-)]
+ x11-drivers/nvidia-drivers
+ >=x11-drivers/ati-drivers-8.8.25-r1
+ )
+ >=x11-libs/libX11-1.6.2[abi_x86_32(-)]
+ >=x11-libs/libXext-1.3.2[abi_x86_32(-)]
+ >=media-libs/libsdl-1.2.15-r4[X,opengl,sound,abi_x86_32(-)]
+ )"
+
+S=${WORKDIR}
+dir=${GAMES_PREFIX_OPT}/${PN}
+Ddir=${D}/${dir}
+
+QA_PREBUILT="${dir:1}/quake4.x86
+ ${dir:1}/q4ded.x86"
+
+src_install() {
+ insinto "${dir}"
+ doins License.txt q4icon.bmp version.info
+ dodoc README
+
+ exeinto "${dir}"
+ doexe openurl.sh bin/Linux/x86/q4ded.x86
+ games_make_wrapper ${PN}-ded ./q4ded.x86 "${dir}" "${dir}"
+
+ insinto "${dir}"/q4base
+ doins q4base/*
+
+ if ! use dedicated ; then
+ doexe bin/Linux/x86/quake4.x86
+ games_make_wrapper ${PN} ./quake4.x86 "${dir}" "${dir}"
+ newicon q4icon.bmp ${PN}.bmp || die
+ make_desktop_entry ${PN} "Quake IV (Demo)" /usr/share/applications/${PN}.bmp
+ fi
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+
+ if ! use dedicated; then
+ elog "To play the game run:"
+ elog " quake4-demo"
+ echo
+ elog "If you get a segmentation fault or an error regarding"
+ elog "'GL_EXT_texture_compression_s3tc', you can obtain the"
+ elog "necessary support for your mesa drivers by installing"
+ elog "media-libs/libtxc_dxtn (for abi_x86_32 if multilib)."
+ echo
+ fi
+ elog "To start the gameserver, run:"
+ elog " quake4-demo-ded"
+}
diff --git a/games-fps/quakeforge/Manifest b/games-fps/quakeforge/Manifest
new file mode 100644
index 000000000000..5881f93e4cf6
--- /dev/null
+++ b/games-fps/quakeforge/Manifest
@@ -0,0 +1,7 @@
+AUX quakeforge-0.7.2-gentoo.patch 1365 SHA256 5e75db76535d7024eeccc97727f2544eacf26f9e8b57710d9474d53c54d2ffac SHA512 521ba870e7b04e98c4d5507f661b0bfe7f18dc3901b671aed8c03c7691466e4e67f382d0fe05545eabff3ae684b8ed39e6681b4179348682f9adeb3eab177d9d WHIRLPOOL dadddeb012345bfb693111ba7a3a3d9ea2490e56da0452c19b8175a59c29ab99c55f67f509ddb912cce4f97e240684fd6114d4562563624eba7efb8b516d87b1
+DIST quakeforge-0.7.2.tar.bz2 2887823 SHA256 1ddc8c963b23bd648d94af48062ab0448345761defeceaef7c62be55c4a28d7a SHA512 d296e10b86466aee0a4be527a5fea7a44bae60ebef52ad86381744dc96e2bed2ad14d3b790b4514a5c59ac897662e91b80a9d49c822910930742a1d2b8a2ec55 WHIRLPOOL 11a4465435f42ba866806d4d4ede34a4a4e6b42b9e4fd6696c10e55bba4182762dc890ddff463bd9ad00b937d36dbde269886683f6f85b639a0ea6a30f5f6e4a
+EBUILD quakeforge-0.7.2-r1.ebuild 3110 SHA256 7838b3f7603f8551ed8d6efc834b86df239c41ad648d30df14ca280eb8a903ed SHA512 c0031fac48ad0a1307264b2d077db618636fd247af4cc8efb2ae9e54bc6c99a6514cd15b4f8889286a4956cf56703111d1eda87d082dfc3b2c6213b8f1412716 WHIRLPOOL 521dd1b7912d33f5af4925d84f217222b29b4baf5836faf20ec0e311e2edbb5589ac76ad079f332a1d7e3fc05b92cb1dd9d121399f7b554b9befb4961461c493
+EBUILD quakeforge-0.7.2.ebuild 3231 SHA256 f267e2a276d8875d07d0b864044299586c2ea9898591855526fb076c8cbe6ef0 SHA512 98d045eaa7c8e034c25e9bf12437363cf7047cadc72ef68f10639923c7fb3419855a902442fe1aff941cf73135514b341728b7b410b24567d0469c12e8d82ba6 WHIRLPOOL fa5a27189ac79f387d6edf0dcfaf736372835100294b3f1e04acf60819d6a05378cda78f1f987bbd4d5e30bb6ab2c8802ad09b666ee185a87d1a4b93b0a58b94
+MISC ChangeLog 4916 SHA256 703bbb3d5459b971bc12adb326942d8c30ac958368beff39eb63da3b782b41d5 SHA512 416c585469b1fe5a0f3b18c35ebbd7cd28b733b738ee304e692d7a0a99d501a706b67d86327a597bffa1c0785c98b04593f78ee5e8bec24d2ec420cc5c761b75 WHIRLPOOL ca7b04a5a595c7ebca98368bfced0c7681c0d072c4b72da32089a3773f478d47e824a54d89ac414793b095bb71b48cd215f796037e8f95fe9162feba2958bcd8
+MISC ChangeLog-2015 5958 SHA256 91d9f87647bee453d50e07025ef37d11e152c05798cb8a31f514c519378101c7 SHA512 221fbe30cc7ca379b10489c0b5c037b36b5e6de060fcdb25dcc066ca325e76a8e1b1c6ee37f1c140484b14863ed43bd2986e1320827c276929866cfabfe25dca WHIRLPOOL 1811889c543eb739bd23cf75150733fe5e255d97ec29cc4947b56c6c1c5ab513d9d5aca8e7b10f51730cda519ce041ead8efb451771577b72863b656921a5dae
+MISC metadata.xml 1685 SHA256 a569d9c0dd74cdb413004537009cb80acca1f02c2d7a4bd5503f8633cb77d300 SHA512 caf9d7549c8e5d801f8d626b8a4c2528735a13fa2c721f4b9d5c9ae74ae15ee55c22f165d3027fcfed8309d6bf1face5dea9ebbb1b8624d679658c6768d77bc0 WHIRLPOOL 554e35537f36da34ff67544fe744069fc3ae850daa5ef9ae40acc550a74381c6af7fbb281778c55d2b72dede1418d21fd723c7dcfe5f563859a180017b56a5ab
diff --git a/games-fps/quakeforge/files/quakeforge-0.7.2-gentoo.patch b/games-fps/quakeforge/files/quakeforge-0.7.2-gentoo.patch
new file mode 100644
index 000000000000..38fb0c187689
--- /dev/null
+++ b/games-fps/quakeforge/files/quakeforge-0.7.2-gentoo.patch
@@ -0,0 +1,33 @@
+--- a/nq/source/Makefile.am 2012-11-18 16:57:56.658388682 +0100
++++ b/nq/source/Makefile.am 2012-11-18 16:58:11.470268607 +0100
+@@ -138,7 +138,7 @@
+ nq_x11_SOURCES= sys_unix.c
+ nq_x11_LDADD= $(nq_x11_libs) \
+ $(VIDMODE_LIBS) $(DGA_LIBS) $(X_LIBS) -lX11 \
+- $(X_EXTRA_LIBS) $(X_SHM_LIB) $(NET_LIBS)
++ $(X_EXTRA_LIBS) $(X_SHM_LIB) $(NET_LIBS) -ldl
+ nq_x11_LDFLAGS= $(common_ldflags)
+ nq_x11_DEPENDENCIES= $(nq_x11_libs)
+
+--- a/qw/source/Makefile.am 2012-11-18 17:10:59.148172332 +0100
++++ b/qw/source/Makefile.am 2012-11-18 17:11:55.866876762 +0100
+@@ -168,7 +168,7 @@
+ qw_client_x11_SOURCES= cl_sys_unix.c
+ qw_client_x11_LDADD= $(qw_client_x11_libs) \
+ $(VIDMODE_LIBS) $(DGA_LIBS) $(X_LIBS) -lX11 \
+- $(X_EXTRA_LIBS) $(X_SHM_LIB) $(NET_LIBS) $(LIBCURL_LIBS)
++ $(X_EXTRA_LIBS) $(X_SHM_LIB) $(NET_LIBS) $(LIBCURL_LIBS) -ldl
+ qw_client_x11_LDFLAGS= $(common_ldflags)
+ qw_client_x11_DEPENDENCIES= $(qw_client_x11_libs)
+
+--- a/tools/qwaq/Makefile.am 2012-11-18 17:15:16.024714317 +0100
++++ b/tools/qwaq/Makefile.am 2012-11-18 17:15:41.955749660 +0100
+@@ -38,7 +38,7 @@
+ qwaq_x11_SOURCES=qwaq.c qwaq-bi.c
+ qwaq_x11_LDADD= $(qwaq_x11_libs) $(QWAQ_LIBS) \
+ $(VIDMODE_LIBS) $(DGA_LIBS) $(X_LIBS) -lX11 \
+- $(X_EXTRA_LIBS) $(X_SHM_LIB)
++ $(X_EXTRA_LIBS) $(X_SHM_LIB) -ldl
+ qwaq_x11_LDFLAGS=
+ qwaq_x11_DEPENDENCIES= $(qwaq_x11_libs) $(QWAQ_DEPS)
+
diff --git a/games-fps/quakeforge/metadata.xml b/games-fps/quakeforge/metadata.xml
new file mode 100644
index 000000000000..bd3de0628e47
--- /dev/null
+++ b/games-fps/quakeforge/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>
+ <longdescription>
+QuakeForge is a 3D graphics game engine based on id Software's legendary
+Quake and QuakeWorld game engine. Our purpose? To improve the state of
+the game by improving the engine and making it accessable to the largest
+number of players we can.
+
+Arguably the single most important issue on the minds of players today
+is the rampant cheating which is currently happening on many of the
+larger servers. It's a serious problem and it really makes a good game
+hard to find. We're working hard to fix these problems at the engine
+level.
+
+But what good is that if you have to have a copy of our client and the
+server has to run our server? There are other projects out there and
+some of them have very unique qualities. QuakeForge is cooperating with
+QSG, a group comprised of representatives from nearly every known Quake
+source project to ensure that our clients and servers run with other
+clients and servers just fine. We have all agreed to implement any
+effective cheat prevention methods.
+
+Other things we're doing include merging the two code trees, adding
+features, and improving the OpenGL renderer. And QuakeForge is still the
+most portable source tree based on the id Software code.
+</longdescription>
+ <use>
+ <flag name="wildmidi">enable libWildMidi support</flag>
+ <flag name="xdg">enable XDG support</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">quake</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-fps/quakeforge/quakeforge-0.7.2-r1.ebuild b/games-fps/quakeforge/quakeforge-0.7.2-r1.ebuild
new file mode 100644
index 000000000000..37a670a5b276
--- /dev/null
+++ b/games-fps/quakeforge/quakeforge-0.7.2-r1.ebuild
@@ -0,0 +1,126 @@
+# 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="New 3d engine based off of id Softwares's Quake and QuakeWorld game engine"
+HOMEPAGE="http://www.quakeforge.net/"
+SRC_URI="mirror://sourceforge/quake/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="alsa cdinstall debug dga fbcon flac ipv6 ncurses oss png sdl vorbis wildmidi X xdg xv zlib"
+RESTRICT="userpriv"
+
+RDEPEND="
+ media-libs/libsamplerate
+ net-misc/curl
+ virtual/opengl
+ alsa? ( media-libs/alsa-lib )
+ dga? ( x11-libs/libXxf86dga )
+ flac? ( media-libs/flac )
+ ncurses? ( sys-libs/ncurses:0 )
+ png? ( media-libs/libpng:0 )
+ sdl? ( media-libs/libsdl[video] )
+ vorbis? (
+ media-libs/libogg
+ media-libs/libvorbis
+ )
+ wildmidi? ( media-sound/wildmidi )
+ X? (
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXxf86vm
+ )
+ xv? (
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXxf86vm
+ )
+ zlib? ( sys-libs/zlib )"
+DEPEND="${RDEPEND}
+ cdinstall? ( games-fps/quake1-data )
+ >=sys-devel/bison-2.6
+ sys-devel/flex
+ virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-gentoo.patch
+)
+
+src_prepare() {
+ default
+ eautoreconf
+ append-cflags -std=gnu89 # build with gcc5 (bug #570392)
+}
+
+src_configure() {
+ local debugopts
+ use debug \
+ && debugopts="--enable-debug --disable-optimize --enable-profile" \
+ || debugopts="--disable-debug --disable-profile"
+
+ local clients=${QF_CLIENTS}
+ use fbcon && clients="${clients},fbdev"
+ use sdl && clients="${clients},sdl"
+ use X && clients="${clients},x11"
+ [ "${clients:0:1}" == "," ] && clients=${clients:1}
+
+ local servers=${QF_SERVERS:-master,nq,qw,qtv}
+
+ local tools=${QF_TOOLS:-all}
+
+ econf \
+ --enable-dependency-tracking \
+ $(use_enable ncurses curses) \
+ $(use_enable vorbis) \
+ $(use_enable png) \
+ $(use_enable zlib) \
+ $(use_with ipv6) \
+ $(use_with fbcon fbdev) \
+ $(use_with X x) \
+ $(use_enable xv vidmode) \
+ $(use_enable dga) \
+ $(use_enable sdl) \
+ --disable-xmms \
+ $(use_enable alsa) \
+ $(use_enable flac) \
+ $(use_enable oss) \
+ $(use_enable xdg) \
+ $(use_enable wildmidi) \
+ --enable-sound \
+ --disable-optimize \
+ --disable-Werror \
+ --without-svga \
+ ${debugopts} \
+ --with-global-cfg=/etc/quakeforge.conf \
+ --with-sharepath=/usr/share/quake1 \
+ --with-clients=${clients} \
+ --with-servers=${servers} \
+ --with-tools=${tools}
+}
+
+src_install() {
+ emake -j1 DESTDIR="${D}" install
+ dodoc ChangeLog NEWS TODO
+}
+
+pkg_postinst() {
+ # same warning used in quake1 / quakeforge / nprquake-sdl
+ echo
+ elog "Before you can play, you must make sure"
+ elog "${PN} can find your Quake .pak files"
+ elog
+ elog "You have 2 choices to do this"
+ elog "1 Copy pak*.pak files to /usr/share/quake1/id1"
+ elog "2 Symlink pak*.pak files in /usr/share/quake1/id1"
+ elog
+ elog "Example:"
+ elog "my pak*.pak files are in /mnt/secondary/Games/Quake/Id1/"
+ elog "ln -s /mnt/secondary/Games/Quake/Id1/pak0.pak /usr/share/quake1/id1/pak0.pak"
+ elog
+ elog "You only need pak0.pak to play the demo version,"
+ elog "the others are needed for registered version"
+}
diff --git a/games-fps/quakeforge/quakeforge-0.7.2.ebuild b/games-fps/quakeforge/quakeforge-0.7.2.ebuild
new file mode 100644
index 000000000000..383ba93f8e94
--- /dev/null
+++ b/games-fps/quakeforge/quakeforge-0.7.2.ebuild
@@ -0,0 +1,122 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils flag-o-matic autotools games
+
+DESCRIPTION="new 3d engine based off of id Softwares's Quake and QuakeWorld game engine"
+HOMEPAGE="http://www.quakeforge.net/"
+SRC_URI="mirror://sourceforge/quake/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="cdinstall debug fbcon flac sdl X ncurses png vorbis zlib ipv6 xv dga alsa oss xdg wildmidi"
+RESTRICT="userpriv"
+
+RDEPEND="
+ media-libs/libsamplerate
+ net-misc/curl
+ virtual/opengl
+ png? ( media-libs/libpng:0 )
+ flac? ( media-libs/flac )
+ sdl? ( media-libs/libsdl[video] )
+ X? (
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXxf86vm
+ )
+ ncurses? ( sys-libs/ncurses:0 )
+ vorbis? ( media-libs/libogg media-libs/libvorbis )
+ zlib? ( sys-libs/zlib )
+ xv? (
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXxf86vm
+ )
+ dga? ( x11-libs/libXxf86dga )
+ alsa? ( media-libs/alsa-lib )
+ wildmidi? ( media-sound/wildmidi )"
+DEPEND="${RDEPEND}
+ cdinstall? ( games-fps/quake1-data )
+ >=sys-devel/bison-2.6
+ sys-devel/flex
+ virtual/pkgconfig"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-gentoo.patch
+ eautoreconf
+ append-cflags -std=gnu89 # build with gcc5 (bug #570392)
+}
+
+src_configure() {
+ local debugopts
+ use debug \
+ && debugopts="--enable-debug --disable-optimize --enable-profile" \
+ || debugopts="--disable-debug --disable-profile"
+
+ local clients=${QF_CLIENTS}
+ use fbcon && clients="${clients},fbdev"
+ use sdl && clients="${clients},sdl"
+ use X && clients="${clients},x11"
+ [ "${clients:0:1}" == "," ] && clients=${clients:1}
+
+ local servers=${QF_SERVERS:-master,nq,qw,qtv}
+
+ local tools=${QF_TOOLS:-all}
+
+ egamesconf \
+ --enable-dependency-tracking \
+ $(use_enable ncurses curses) \
+ $(use_enable vorbis) \
+ $(use_enable png) \
+ $(use_enable zlib) \
+ $(use_with ipv6) \
+ $(use_with fbcon fbdev) \
+ $(use_with X x) \
+ $(use_enable xv vidmode) \
+ $(use_enable dga) \
+ $(use_enable sdl) \
+ --disable-xmms \
+ $(use_enable alsa) \
+ $(use_enable flac) \
+ $(use_enable oss) \
+ $(use_enable xdg) \
+ $(use_enable wildmidi) \
+ --enable-sound \
+ --disable-optimize \
+ --disable-Werror \
+ --without-svga \
+ ${debugopts} \
+ --with-global-cfg="${GAMES_SYSCONFDIR}"/quakeforge.conf \
+ --with-sharepath="${GAMES_DATADIR}"/quake1 \
+ --with-clients=${clients} \
+ --with-servers=${servers} \
+ --with-tools=${tools}
+}
+
+src_install() {
+ emake -j1 DESTDIR="${D}" install
+ mv "${D}/${GAMES_PREFIX}"/include "${D}"/usr/ || die
+ dodoc ChangeLog NEWS TODO
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ # same warning used in quake1 / quakeforge / nprquake-sdl
+ games_pkg_postinst
+ echo
+ elog "Before you can play, you must make sure"
+ elog "${PN} can find your Quake .pak files"
+ elog
+ elog "You have 2 choices to do this"
+ elog "1 Copy pak*.pak files to ${GAMES_DATADIR}/quake1/id1"
+ elog "2 Symlink pak*.pak files in ${GAMES_DATADIR}/quake1/id1"
+ elog
+ elog "Example:"
+ elog "my pak*.pak files are in /mnt/secondary/Games/Quake/Id1/"
+ elog "ln -s /mnt/secondary/Games/Quake/Id1/pak0.pak ${GAMES_DATADIR}/quake1/id1/pak0.pak"
+ elog
+ elog "You only need pak0.pak to play the demo version,"
+ elog "the others are needed for registered version"
+}
diff --git a/games-fps/qudos/Manifest b/games-fps/qudos/Manifest
new file mode 100644
index 000000000000..e72dd0cf5098
--- /dev/null
+++ b/games-fps/qudos/Manifest
@@ -0,0 +1,8 @@
+AUX qudos-0.40.1-gnusource.patch 338 SHA256 f4c33cce1e154ebb4ba8406d2da2da1964b170919eaf57b4eba2c1babf8de382 SHA512 6e6411e0d6a4c48a82f70cc83eb64eb8b86a15f0ffa552007cb5af6a8d0f718527f6acbcdb80393b45344e133f52ee366cf7923423afae25b3c6ab10829dae98 WHIRLPOOL ad757265ad6ca23258f64904ede8d3dbe9fba6038983f9b0c3843f7d19021cc869f9a41964a204ae23a936a4bf8c4b7e5cf7143c83e3af55080232c54a8624dd
+AUX qudos-0.40.1-libpng15.patch 205 SHA256 7364352d723d8f237a0340508a752894d1c51e43cb668e4b60cebd958dd6c97c SHA512 4a2ccb3566f0d3126910b48c024fc5b9d40fe471ca73ce043bc8c8339d2a08f124b921e622bdee05ed007861f4b816941307184bfcbdb8281eca02733b289f70 WHIRLPOOL 3b09dcbf9be708a8cd9a61ec300b2c554dc79be29d549ee84afe86a0f644a34e725aaf7490cc3e96791bf450ea16524aaa5d16f92280815ee1ba40415bb62719
+DIST QuDos-0.40.1-src.tar.bz2 2031636 SHA256 90d8dbbbe4e006b4233b9c8c20bc3da5c240dde8fdf17ccf43ca533d296aa21a SHA512 97b9c6bac0d09c060ab33174604deb2781f0ebdc48b00bd0bc402523fb04cdf84edd8abc18507bba8c7e616f6d460a1de6debc96ec39bb5562b20a7f06eea734 WHIRLPOOL 623456b47dfefc389ceadf267369221c2a89a934597fbc5e951c9728d6947a982525884803cfae6a59ede682c637bfba2f97f0c3e2c98579fce63dfe71161fca
+DIST QuDos-0.40.1.pk3 4210489 SHA256 c6f4dec4b0499b7b9d311d0d2a438358a205d4203eeee1b49f5695e5e14859ca SHA512 19c3c6b3d17cbd9642320d8eb7a83d667afeafd0ee5eb818e9f07be71e2ab69182474c1f529ecbcfcfa59590bafedb0de3c70dfff10e4bc7a6e07a1546f27d4b WHIRLPOOL 53d571d352f2f184fad9fcefd45a77e4d703e3338b5ec4baa77d0f46fb669d95164a2fa33dd80cb7083c40dd86da54cf4a0bea6e5d5dbb9253c3c9b53a44f86c
+EBUILD qudos-0.40.1.ebuild 4100 SHA256 a7b9ad30dce548d385ea3b58eafc74e9a618791424bcf4a8345fd31da25e882f SHA512 af3b10b7fc9ea21978a6f69a743a7ec62bd57ef3a85e12dcdfd51c0f783a2758d3b709045269a2503dac72adf3388037d06e8760b2c22b18f11f83bbd2fdb2a1 WHIRLPOOL a2b5516efda691934e2b3154ee58be7894086390c838964f034968e41ad7412e48e80edd6eedee64883980d87ba752e16942ae3416da0ec5a18d12eb26f4a4b4
+MISC ChangeLog 3581 SHA256 44955fb6334083700e188a568860b4d7a368b94a50db5332f7f02f732888d410 SHA512 17cb2f6bb09cb1c7016814289c1e4fc07976fb736e5124a699515beceb79b0122f7f51ecb41246169e724348a8201e572f2f0ebd9149bc761cc07b6a8dc26e66 WHIRLPOOL 89a2bdca999ab088c58a4ca4c1a3b4d952c76ea7db04da7cb19eb30b4cbab957f464e2eb0fc35bb867bffb792048744801e746da1a864549e389940cb5cb76d3
+MISC ChangeLog-2015 2386 SHA256 95a2683b783e3765903bb76a4c2abc5ee6db13938e5dcb26cfa31b383edab27d SHA512 bf9d5f8e15616f7379ca3ed513048b0cda28403615b4e6e36f86f1ed435d684b00ac23e36eb518c07fee8c1fb6fdd6dccf61e5e9477f22abd1701a6dd80acee8 WHIRLPOOL 97a824f0a6b26d0ea36182ce5e1817964689294a63759c6149274be86037f403e693c78ac98ed1e033a2f7918c27413bec09212114b2c3ce92a080e65fd7b3d0
+MISC metadata.xml 665 SHA256 8837ecd6764ee918a6cf6c83f5695551f5578a287e787290182a087d6b04bc69 SHA512 c96f5c164edea2f535115ca1fdd9ff39755f2be2a3f8846eb91d22e6d12f6e0e589e6d7e97a69d0afc65464df62390117296a27bb7b4b2e8da79735b206e5966 WHIRLPOOL f0aef32a9bbc0e25fdc3355a95056ff6661cc4703f8b5c164ede1402cd5561b49f362686a56411c290e8c6f68c92862fb18db95c0d5989c372b693138f7b9200
diff --git a/games-fps/qudos/files/qudos-0.40.1-gnusource.patch b/games-fps/qudos/files/qudos-0.40.1-gnusource.patch
new file mode 100644
index 000000000000..dd2113b0c3bb
--- /dev/null
+++ b/games-fps/qudos/files/qudos-0.40.1-gnusource.patch
@@ -0,0 +1,12 @@
+--- src/unix/qsh_unix.c.orig 2011-10-22 17:46:37.665993357 -0500
++++ src/unix/qsh_unix.c 2011-10-22 17:46:40.965972209 -0500
+@@ -17,6 +17,9 @@
+ * Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ */
++#if !defined(_GNU_SOURCE)
++ #define _GNU_SOURCE
++#endif
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <sys/time.h>
diff --git a/games-fps/qudos/files/qudos-0.40.1-libpng15.patch b/games-fps/qudos/files/qudos-0.40.1-libpng15.patch
new file mode 100644
index 000000000000..ecf9de9370e9
--- /dev/null
+++ b/games-fps/qudos/files/qudos-0.40.1-libpng15.patch
@@ -0,0 +1,10 @@
+--- src/ref_gl/gl_local.h
++++ src/ref_gl/gl_local.h
+@@ -29,6 +29,7 @@
+ #include <GL/glu.h>
+ #include <GL/glext.h>
+
++#include <zlib.h> /* Z_DEFAULT_COMPRESSION */
+ #include <png.h>
+ #include <jpeglib.h>
+
diff --git a/games-fps/qudos/metadata.xml b/games-fps/qudos/metadata.xml
new file mode 100644
index 000000000000..114138906332
--- /dev/null
+++ b/games-fps/qudos/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="demo">Install the demo files (quake2-demodata) and configure for use</flag>
+ <flag name="mods">Build support for the quake2 mission packs</flag>
+ <flag name="qmax">Build the pretty version (quake max)</flag>
+ <flag name="textures">Install the enhanced textures (quake2-textures)</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">ZwS/qudos</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-fps/qudos/qudos-0.40.1.ebuild b/games-fps/qudos/qudos-0.40.1.ebuild
new file mode 100644
index 000000000000..27988248d7dd
--- /dev/null
+++ b/games-fps/qudos/qudos-0.40.1.ebuild
@@ -0,0 +1,174 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils toolchain-funcs games
+
+FILE_STEM="QuDos-${PV}-src"
+PK3_FILE="QuDos-${PV}.pk3"
+MY_PN="quake2"
+
+DESCRIPTION="Enhanced Quake 2 engine"
+HOMEPAGE="https://github.com/ZwS/qudos"
+SRC_URI="mirror://gentoo/${FILE_STEM}.tar.bz2
+ https://github.com/ZwS/qudos/raw/master/quake2/baseq2/qudos.pk3 -> ${PK3_FILE}"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="cdinstall debug dedicated demo dga ipv6 joystick mods opengl qmax oss sdl textures"
+
+DEPEND="opengl? (
+ virtual/opengl
+ virtual/glu )
+ sdl? ( media-libs/libsdl[joystick?,opengl,sound,video]
+ virtual/opengl
+ virtual/glu )
+ virtual/jpeg:0
+ media-libs/libogg
+ media-libs/libpng:0
+ media-libs/libvorbis
+ sys-libs/zlib
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXxf86dga
+ x11-libs/libXxf86vm"
+RDEPEND="${DEPEND}
+ cdinstall? ( games-fps/quake2-data )
+ demo? ( games-fps/quake2-demodata[symlink] )
+ textures? ( games-fps/quake2-textures )"
+
+S=${WORKDIR}/${FILE_STEM}
+dir=${GAMES_DATADIR}/${MY_PN}
+
+default_client() {
+ if use opengl || use sdl || ! use dedicated ; then
+ # Build default client
+ return 0
+ fi
+ return 1
+}
+
+pkg_setup() {
+ games_pkg_setup
+
+ if ! use qmax && $( use opengl || use sdl ) ; then
+ elog "The 'qmax' graphical improvements are recommended."
+ echo
+ fi
+
+ if use debug ; then
+ ewarn "The 'debug' USE flag may cause compilation to fail with:"
+ ewarn
+ ewarn "src/qcommon/cmd.c:364: warning: dereferencing type-punned"
+ ewarn "pointer will break strict-aliasing rules."
+ echo
+ fi
+
+ # Determine the default sound driver, in order of preference
+ # snd_drv is not a local variable
+ snd_drv=""
+ [[ -z "${snd_drv}" ]] && use oss && snd_drv="oss"
+ [[ -z "${snd_drv}" ]] && use sdl && snd_drv="sdl"
+ # Default if nothing else chosen
+ [[ -z "${snd_drv}" ]] && snd_drv="oss"
+
+ if default_client ; then
+ elog "Selected the ${snd_drv} sound driver as the default."
+ echo
+ fi
+}
+
+src_unpack() {
+ unpack "${FILE_STEM}.tar.bz2"
+}
+
+src_prepare() {
+ rm docs/gnu.txt
+
+ # Change default sound driver and its location
+ sed -i \
+ -e "s:\"oss\":\"${snd_drv}\":" \
+ -e "s:\"\./snd:\"$(games_get_libdir)/${PN}/snd:" \
+ src/client/snd_dma.c || die
+
+ sed -i \
+ -e 's:jpeg_mem_src:qudos_jpeg_mem_src:g' \
+ src/ref_gl/gl_image.c || die
+
+ if has_version '>=sys-libs/zlib-1.2.5.1-r1' ; then
+ sed -i \
+ -e '1i#define OF(x) x' \
+ src/qcommon/unzip/ioapi.h || die
+ fi
+ sed -i -e '106,119 s/CFL/LED/' Makefile || die
+
+ epatch \
+ "${FILESDIR}"/${P}-libpng15.patch \
+ "${FILESDIR}"/${P}-gnusource.patch
+}
+
+src_compile() {
+ yesno() { usex $1 YES NO; }
+
+ local client="YES"
+ default_client || client="NO"
+
+ local type="release"
+ use debug && type="debug"
+
+ emake \
+ BUILD_QUAKE2="${client}" \
+ BUILD_DEDICATED=$(yesno dedicated) \
+ BUILD_GLX=$(yesno opengl) \
+ BUILD_SDLGL=$(yesno sdl) \
+ BUILD_ALSA_SND=NO \
+ BUILD_SDL_SND=$(yesno sdl) \
+ BUILD_OSS_SND=$(yesno oss) \
+ WITH_XMMS=NO \
+ WITH_DGA_MOUSE=$(yesno dga) \
+ WITH_JOYSTICK=$(yesno joystick) \
+ TYPE="${type}" \
+ DATADIR="${dir}" \
+ LOCALBASE=/usr \
+ LIBDIR="$(games_get_libdir)"/${PN} \
+ WITH_QMAX=$(yesno qmax) \
+ BUILD_3ZB2=$(yesno mods) \
+ BUILD_CTF=$(yesno mods) \
+ BUILD_JABOT=$(yesno mods) \
+ BUILD_ROGUE=$(yesno mods) \
+ BUILD_XATRIX=$(yesno mods) \
+ BUILD_ZAERO=$(yesno mods) \
+ WITH_BOTS=$(yesno mods) \
+ HAVE_IPV6=$(yesno ipv6) \
+ CC="$(tc-getCC)" \
+ WITH_X86_ASM=NO \
+ WITH_DATADIR=YES \
+ WITH_LIBDIR=YES \
+ BUILD_DEBUG_DIR=release \
+ BUILD_RELEASE_DIR=release
+}
+
+src_install() {
+ if default_client ; then
+ newgamesbin ${MY_PN}/QuDos ${PN}
+ # Change from gif to png in next version?
+ newicon docs/q2_orig/quake2.gif ${PN}.gif
+ make_desktop_entry ${PN} "QuDos" ${PN}.gif
+ fi
+
+ if use dedicated ; then
+ newgamesbin ${MY_PN}/QuDos-ded ${PN}-ded
+ fi
+
+ insinto "$(games_get_libdir)"/${PN}
+ doins -r ${MY_PN}/*
+ rm "${D}/$(games_get_libdir)"/${PN}/QuDos
+
+ insinto "$(games_get_libdir)"/${PN}/baseq2
+ newins "${DISTDIR}/${PK3_FILE}" qudos.pk3
+
+ dodoc $(find docs -name \*.txt) docs/q2_orig/README*
+
+ prepgamesdirs
+}
diff --git a/games-fps/red-blue-quake2/Manifest b/games-fps/red-blue-quake2/Manifest
new file mode 100644
index 000000000000..1b0ad649981f
--- /dev/null
+++ b/games-fps/red-blue-quake2/Manifest
@@ -0,0 +1,9 @@
+AUX 0.1-gentoo.patch 1964 SHA256 8a0468695631516ae96b8e90c74559bcc2c9a74ca6e533c0f61cab8dd9b2b63a SHA512 87b7d3a355a57940b1ce2be3e30ff5053aa83af2e53018f1ea00556dba67cbb1767729867eabf062faf1a08eb2ca601176dbccd6c9585160edb2e3477b22fa5a WHIRLPOOL 3662dde99eb7265bb09d37ba2366d010a0f8ec4cc55f9dade21e20f23a0f5bd690162771064ab36f755d593461ebcb29c7e3ad00d89abd89913c96ea8329d878
+AUX red-blue-quake2-0.1-gcc41.patch 895 SHA256 38417bf227a473c8d0553f9aa14c3468d793b3cf87a50a265b6067f0cacf3dbd SHA512 9cb57a27bc5e8e7123c40a55625f4e227d5c81e179de3119441d7447de7701c9f6e8fc76a24e1b6c21bb92eff142aed24ffed2da39cb5bf2f87eaf8600b210bc WHIRLPOOL 2376f49a46c4097e3fbdfa520c032211d111ed726d77cfbacce97a3a26b5ba7eea4b89236d46f3003d9b0212cb7ef9ffcc346db976280f907070133b1ca4b0df
+AUX red-blue-quake2-0.1-ldflags.patch 3382 SHA256 83ff9c4b5e609ecbd81c05d9bd781833da4337d704df5797fe2b80754eeebe96 SHA512 a49ab8462322740fcfef70c6bff16df9b164cfa0cace00bdf366e10db1d0fc13770d97f9aa8dcf1f92d1555d7d978ce7f947d58bc3d030fd2c1be0983e74470a WHIRLPOOL adee56412f439e140fd09a4bdd2468dc0a5075379bb00030006b26b00af48979948b375dcabfd0d5c31feca662aa4408a90cab78a4bbd901e989fa4989141843
+DIST q2source-3.21.zip 1477764 SHA256 c9200316de189638d0d997a0092f36b85f2c3f9e4ebe30f4b1c356745ad676ca SHA512 eb3fcf3327272b7472a044336be4d73111f5b9f50b4916609996ecb690555654990c1f86e63cd6e7d4a30844e66d3eca2e428e29a598bce52e953c326caf9752 WHIRLPOOL 7b372c99d97e4bf807b07d93726cba748116e21c9e5f3348e0571632742a2574cc395e762e7e30a529fe5d45a82e3f047605cc4d788fb1e67d0ee9a615d8af34
+DIST red-blue-quake2-0.1.tar.gz 34874 SHA256 65a0f2552f537e494f05f573e54faff7cf08d22276307e6c69eb314c2f3dac17 SHA512 4123fb1cceb788068c5cd525e3e03cce8a993ecdd0d86c3c154426689a7893b6d33cddeafbb53761a27473a050829545e7fc802f1236f4dc60161103ad259da5 WHIRLPOOL 6726177a08f7bf6dca239cb117a49cfbf3f54cb9a85849f055297e111193dcc0eab27973db3f62a3263bf4aeb083ed6c6864b120b145640e028f635224800548
+EBUILD red-blue-quake2-0.1.ebuild 1311 SHA256 5db397625ac2fd6272cc82c0bef00e74b8165c4f54b7ed0a98015e3c9ba9754a SHA512 9ab80dc705773d81734a9c626a75ed44c083dc61d145d85c0f10b630c159f4e4d2c9ae4ab2d9e53690a4f07e501da454b7cab77af201b106c9bee3e13960ac6a WHIRLPOOL bf52d69a945bd793bab062b2ab33770e6c01b11fbafa99a1b4d617198e3871a9d52fc3cc23a2496c62bb52f22b7799f49da66f1fc61c9b3c8647c700e01aac51
+MISC ChangeLog 3033 SHA256 5954fa55a87583a89855fb243f29a7147a87f1aa7a886bfc50cac80459941ce7 SHA512 f869cdf6469087c3eb587b73b869e115993456b206fd7132dc757998233bc1277683a38454cf122ed7eef8396d6c7aa39b916036fd212284f252ef1edd23f119 WHIRLPOOL e43ed80e07344bee1749f128b9d2661f83c4c2ce063eb147806cd284c808baaae9bb970c4dedf01e29a786a7ab075a73df15f55102a3b71e361e644784bba1b2
+MISC ChangeLog-2015 1321 SHA256 8bfefd370018d03342c8c55a5cedea782066439a8a99af3983ed5e9f045d35cf SHA512 12962fe50236ac1c719446b83abf7e14d085bf826bfdaf734b828a8afd5d32b78d7e3d1414f31bd86ab741e91e780cd098587931a1fac4675d512c9815ffa7c0 WHIRLPOOL 62b2efffb4ed1f8c5c48c50df634b8272ef7f4f7189cbaf2c60932e0693b240caf99d71ebe7bba18a2c628c4b8adc2932ac09185ec55d7070e0ed64fb87e28db
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-fps/red-blue-quake2/files/0.1-gentoo.patch b/games-fps/red-blue-quake2/files/0.1-gentoo.patch
new file mode 100644
index 000000000000..fd13df9bcb45
--- /dev/null
+++ b/games-fps/red-blue-quake2/files/0.1-gentoo.patch
@@ -0,0 +1,63 @@
+diff -ur Makefile.old Makefile
+--- Makefile 2001-12-29 20:37:22.000000000 -0500
++++ Makefile 2003-07-17 22:14:50.000000000 -0400
+@@ -54,7 +54,7 @@
+ RELEASE_CFLAGS=$(BASE_CFLAGS) -O6 -ffast-math -funroll-loops \
+ -fomit-frame-pointer -fexpensive-optimizations
+ else
+-RELEASE_CFLAGS=$(BASE_CFLAGS) -g -mpentiumpro -O6 -ffast-math -funroll-loops \
++RELEASE_CFLAGS=$(BASE_CFLAGS) -g $(GENTOO_CFLAGS) -DGENTOO_DATADIR=\\\"$(GENTOO_DATADIR)\\\" -O6 -ffast-math -funroll-loops \
+ -fomit-frame-pointer -fexpensive-optimizations
+ endif
+
+diff -ur sys_linux.c.old sys_linux.c
+--- sys_linux.c.old 2001-12-22 18:45:58.000000000 -0500
++++ sys_linux.c 2003-07-17 22:34:11.000000000 -0400
+@@ -220,7 +220,7 @@
+ char curpath[MAX_OSPATH];
+ char *path;
+ #ifdef __i386__
+- const char *gamename = "gamei386.so";
++ const char *gamename = "GENTOO_DIR/gamei386.so";
+ #elif defined __alpha__
+ const char *gamename = "gameaxp.so";
+ #else
+@@ -250,6 +250,14 @@
+ {
+ Com_Printf ("LoadLibrary (%s)\n",name);
+ break;
++ } else {
++ sprintf (name, "%s", gamename);
++ game_library = dlopen (name, RTLD_LAZY );
++ if (game_library)
++ {
++ Com_Printf ("LoadLibrary (%s)\n",name);
++ break;
++ }
+ }
+ }
+
+diff -ur ../qcommon/files.c ../qcommon/files.c
+--- ../qcommon/files.c 2001-12-22 16:32:26.000000000 -0500
++++ ../qcommon/files.c 2003-07-17 22:34:29.000000000 -0400
+@@ -865,7 +865,7 @@
+ //
+ // start up with baseq2 by default
+ //
+- FS_AddGameDirectory (va("%s/"BASEDIRNAME, fs_basedir->string) );
++ FS_AddGameDirectory (va(BASEDIRNAME) );
+
+ // any set gamedirs will be freed up to here
+ fs_base_searchpaths = fs_searchpaths;
+diff -ur ../qcommon/qcommon.h ../qcommon/qcommon.h
+--- ../qcommon/qcommon.h 2001-12-22 16:32:26.000000000 -0500
++++ ../qcommon/qcommon.h 2003-07-17 21:20:03.000000000 -0400
+@@ -25,7 +25,7 @@
+
+ #define VERSION 3.21
+
+-#define BASEDIRNAME "baseq2"
++#define BASEDIRNAME GENTOO_DATADIR
+
+ #ifdef WIN32
+
diff --git a/games-fps/red-blue-quake2/files/red-blue-quake2-0.1-gcc41.patch b/games-fps/red-blue-quake2/files/red-blue-quake2-0.1-gcc41.patch
new file mode 100644
index 000000000000..1f933d33537e
--- /dev/null
+++ b/games-fps/red-blue-quake2/files/red-blue-quake2-0.1-gcc41.patch
@@ -0,0 +1,39 @@
+--- ../game/g_local.h.old 2006-05-07 00:27:45.000000000 +0200
++++ ../game/g_local.h 2006-05-07 00:28:06.000000000 +0200
+@@ -458,11 +458,6 @@
+ extern int sm_meat_index;
+ extern int snd_fry;
+
+-extern int jacket_armor_index;
+-extern int combat_armor_index;
+-extern int body_armor_index;
+-
+-
+ // means of death
+ #define MOD_UNKNOWN 0
+ #define MOD_BLASTER 1
+--- ../ctf/g_local.h.old 2006-05-07 00:36:21.000000000 +0200
++++ ../ctf/g_local.h 2006-05-07 00:36:38.000000000 +0200
+@@ -466,11 +466,6 @@
+ extern int sm_meat_index;
+ extern int snd_fry;
+
+-extern int jacket_armor_index;
+-extern int combat_armor_index;
+-extern int body_armor_index;
+-
+-
+ // means of death
+ #define MOD_UNKNOWN 0
+ #define MOD_BLASTER 1
+@@ -556,10 +556,6 @@
+
+ extern cvar_t *sv_maplist;
+
+-//ZOID
+-extern qboolean is_quad;
+-//ZOID
+-
+ #define world (&g_edicts[0])
+
+ // item spawnflags
diff --git a/games-fps/red-blue-quake2/files/red-blue-quake2-0.1-ldflags.patch b/games-fps/red-blue-quake2/files/red-blue-quake2-0.1-ldflags.patch
new file mode 100644
index 000000000000..58beb0f3cec5
--- /dev/null
+++ b/games-fps/red-blue-quake2/files/red-blue-quake2-0.1-ldflags.patch
@@ -0,0 +1,92 @@
+--- Makefile.old 2010-10-18 09:09:48.000000000 +0200
++++ Makefile 2010-10-18 09:15:59.000000000 +0200
+@@ -59,7 +59,7 @@
+ endif
+
+ DEBUG_CFLAGS=$(BASE_CFLAGS) -g
+-LDFLAGS=-ldl -lm
++LDLIBS=-ldl -lm
+ SVGALDFLAGS=-lvga -lm
+ XLDFLAGS=-L/usr/X11R6/lib -lX11 -lXext -lXxf86dga
+ XCFLAGS=
+@@ -195,7 +195,7 @@
+ endif
+
+ $(BUILDDIR)/quake2 : $(QUAKE2_OBJS) $(QUAKE2_AS_OBJS)
+- $(CC) $(CFLAGS) -o $@ $(QUAKE2_OBJS) $(QUAKE2_AS_OBJS) $(LDFLAGS)
++ $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $(QUAKE2_OBJS) $(QUAKE2_AS_OBJS) $(LDLIBS)
+
+ $(BUILDDIR)/client/cl_cin.o : $(CLIENT_DIR)/cl_cin.c
+ $(DO_CC)
+@@ -374,7 +374,7 @@
+ $(BUILDDIR)/ded/cd_null.o
+
+ $(BUILDDIR)/q2ded : $(Q2DED_OBJS)
+- $(CC) $(CFLAGS) -o $@ $(Q2DED_OBJS) $(LDFLAGS)
++ $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $(Q2DED_OBJS) $(LDLIBS)
+
+ $(BUILDDIR)/ded/cmd.o : $(COMMON_DIR)/cmd.c
+ $(DO_DED_CC)
+@@ -503,7 +503,7 @@
+ $(BUILDDIR)/game/m_flash.o
+
+ $(BUILDDIR)/game$(ARCH).$(SHLIBEXT) : $(GAME_OBJS)
+- $(CC) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(GAME_OBJS)
++ $(CC) $(LDFLAGS) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(GAME_OBJS)
+
+ $(BUILDDIR)/game/g_ai.o : $(GAME_DIR)/g_ai.c
+ $(DO_SHLIB_CC)
+@@ -682,7 +682,7 @@
+ $(BUILDDIR)/ctf/q_shared.o
+
+ $(BUILDDIR)/ctf/game$(ARCH).$(SHLIBEXT) : $(CTF_OBJS)
+- $(CC) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(CTF_OBJS)
++ $(CC) $(LDFLAGS) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(CTF_OBJS)
+
+ $(BUILDDIR)/ctf/g_ai.o : $(CTF_DIR)/g_ai.c
+ $(DO_SHLIB_CC)
+@@ -821,7 +821,7 @@
+ $(BUILDDIR)/xatrix/q_shared.o
+
+ $(BUILDDIR)/xatrix/game$(ARCH).$(SHLIBEXT) : $(XATRIX_OBJS)
+- $(CC) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(XATRIX_OBJS)
++ $(CC) $(LDFLAGS) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(XATRIX_OBJS)
+
+ $(BUILDDIR)/xatrix/g_ai.o : $(XATRIX_DIR)/g_ai.c
+ $(DO_SHLIB_CC)
+@@ -1048,7 +1048,7 @@
+ $(BUILDDIR)/rogue/q_shared.o
+
+ $(BUILDDIR)/rogue/game$(ARCH).$(SHLIBEXT) : $(ROGUE_OBJS)
+- $(CC) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(ROGUE_OBJS)
++ $(CC) $(LDFLAGS) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(ROGUE_OBJS)
+
+ $(BUILDDIR)/rogue/dm_ball.o : $(ROGUE_DIR)/dm_ball.c
+ $(DO_SHLIB_CC)
+@@ -1287,11 +1287,11 @@
+ $(BUILDDIR)/ref_soft/rw_x11.o
+
+ $(BUILDDIR)/ref_soft.$(SHLIBEXT) : $(REF_SOFT_OBJS) $(REF_SOFT_SVGA_OBJS)
+- $(CC) $(CFLAGS) $(SHLIBLDFLAGS) -Xlinker -Map -Xlinker map.out -o $@ $(REF_SOFT_OBJS) \
++ $(CC) $(LDFLAGS) $(CFLAGS) $(SHLIBLDFLAGS) -Xlinker -Map -Xlinker map.out -o $@ $(REF_SOFT_OBJS) \
+ $(REF_SOFT_SVGA_OBJS) $(SVGALDFLAGS)
+
+ $(BUILDDIR)/ref_softx.$(SHLIBEXT) : $(REF_SOFT_OBJS) $(REF_SOFT_X11_OBJS)
+- $(CC) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(REF_SOFT_OBJS) \
++ $(CC) $(LDFLAGS) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(REF_SOFT_OBJS) \
+ $(REF_SOFT_X11_OBJS) $(XLDFLAGS)
+
+ $(BUILDDIR)/ref_soft/r_aclip.o : $(REF_SOFT_DIR)/r_aclip.c
+@@ -1431,10 +1431,10 @@
+ $(BUILDDIR)/ref_gl/gl_glx.o
+
+ $(BUILDDIR)/ref_gl.$(SHLIBEXT) : $(REF_GL_OBJS) $(REF_GL_FXMESA_OBJS)
+- $(CC) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(REF_GL_OBJS) $(REF_GL_FXMESA_OBJS) $(GLLDFLAGS)
++ $(CC) $(LDFLAGS) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(REF_GL_OBJS) $(REF_GL_FXMESA_OBJS) $(GLLDFLAGS)
+
+ $(BUILDDIR)/ref_glx.$(SHLIBEXT) : $(REF_GL_OBJS) $(REF_GL_GLX_OBJS)
+- $(CC) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(REF_GL_OBJS) $(REF_GL_GLX_OBJS) $(GLXLDFLAGS)
++ $(CC) $(LDFLAGS) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(REF_GL_OBJS) $(REF_GL_GLX_OBJS) $(GLXLDFLAGS)
+
+ $(BUILDDIR)/ref_gl/gl_draw.o : $(REF_GL_DIR)/gl_draw.c
+ $(DO_GL_SHLIB_CC)
diff --git a/games-fps/red-blue-quake2/metadata.xml b/games-fps/red-blue-quake2/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-fps/red-blue-quake2/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-fps/red-blue-quake2/red-blue-quake2-0.1.ebuild b/games-fps/red-blue-quake2/red-blue-quake2-0.1.ebuild
new file mode 100644
index 000000000000..5b4150c6250e
--- /dev/null
+++ b/games-fps/red-blue-quake2/red-blue-quake2-0.1.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="red-blue Quake II ! play quake2 w/3d glasses !"
+HOMEPAGE="http://www.jfedor.org/red-blue-quake2/"
+SRC_URI="mirror://idsoftware/source/q2source-3.21.zip
+ http://www.jfedor.org/red-blue-quake2/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86"
+IUSE=""
+
+RDEPEND="x11-libs/libX11"
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+S=${WORKDIR}/quake2-3.21/linux
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PV}-gentoo.patch \
+ "${FILESDIR}/${P}"-gcc41.patch \
+ "${FILESDIR}/${P}"-ldflags.patch
+ sed -i \
+ -e "s:GENTOO_DIR:$(games_get_libdir)/${PN}:" \
+ sys_linux.c || die
+ sed -i \
+ -e "s:/etc/quake2.conf:${GAMES_SYSCONFDIR}/${PN}.conf:" \
+ sys_linux.c vid_so.c || die
+ echo "$(games_get_libdir)"/${PN} > "${T}"/${PN}.conf || die
+}
+
+src_compile() {
+ mkdir -p releasei386-glibc/ref_soft
+ emake \
+ GENTOO_CFLAGS="${CFLAGS}" \
+ GENTOO_DATADIR="${GAMES_DATADIR}"/quake2/baseq2/ \
+ build_release
+}
+
+src_install() {
+ cd release*
+
+ exeinto "$(games_get_libdir)"/${PN}
+ doexe gamei386.so ref_softx.so
+ exeinto "$(games_get_libdir)"/${PN}/ctf
+ doexe ctf/gamei386.so
+ newgamesbin quake2 red-blue-quake2
+
+ insinto "${GAMES_SYSCONFDIR}"
+ doins "${T}"/${PN}.conf
+
+ prepgamesdirs
+}
diff --git a/games-fps/rott/Manifest b/games-fps/rott/Manifest
new file mode 100644
index 000000000000..088ab34f5ad2
--- /dev/null
+++ b/games-fps/rott/Manifest
@@ -0,0 +1,7 @@
+DIST rott-1.1.2.tar.gz 749079 SHA256 102516e8c312f6b0bbf6c623e1f01cbfbbc314ace8adfe1f201d47b15bd927ff SHA512 809a9064fe31c63afccb9a6397ac2c9d4172cdd802b055697cf3b0090ee6a78c9e40b52a4a8df25196489d9a0259304c91e2f84f95413a293bc66192502cf200 WHIRLPOOL dc7808f0da85cfd1e240cbae20ddbbc1f564b5f294e42176a9c38795d3d34d2168476c5d415cce819afe67c3fa1da15812106969d463fc505bfc503c27b76580
+DIST swdata.zip 2889672 SHA256 e226d4958ce1294886b32faf782d9db3d3e66f875d9addd62982e2c8d104fd6b SHA512 99373097356afa583021367b2e0ec6ec745941890e4f17f4e07206c66dd370dfa9e928bc0bd6ab9809d8c72646dcc609e3c19f688d2b89a886f215a153b6dd0d WHIRLPOOL 571d2a5c5f9c45def28f8950d6eaadf5110dbfb0b027951a6a56c1acefe799a7356bc2b436dbe7c9f47d868bdf6b03196fbc69591a66d11c2fb36ab1695125cd
+EBUILD rott-1.1.2-r1.ebuild 1088 SHA256 06614940362cb3d40e5a84980cc40b38b7da4bc6bee1dc19480884fbd955c37c SHA512 0ecd207fb8ec9ecb103611623bdc918e68a499fa58636bc2c9e5719351a4f9efb4ea843da0096fec8abc4d4492339a55210e1d3f4b3d324c152d27a5a446e182 WHIRLPOOL 80c6912b8406e240b19354a66463cc6afafaaa32dc5c4df256e3227634f91ec154da9df3a8700f3bd432934ce41c10ff6b63a886a7d4210a9e364340b9d691cd
+EBUILD rott-1.1.2.ebuild 1142 SHA256 99eb7df52a7d5030e54f24eee092510def54005bc3a5b7e4468b9125ff9adcb9 SHA512 e15e52ae36620d6030c3a8d9874053f7229b9369042e5744bfb8eb2c517bdc785668ecec4401c21a71fb72c48df7973c2945a692a836688dbb063083eaec393a WHIRLPOOL b32fcda97d8b0a57736cbf74664724ff9b7976ec8c5666515749721259972e3173a99f29386b8a647de8ae5b11fbb180799197a218b23be47bc0820ac94c1bd5
+MISC ChangeLog 3240 SHA256 79f5d91a351bea5ed6b891bb5b20e21f1158008b806c595c32e94a8af8da0be4 SHA512 ea3f852e56c9b3fe40fcd976420c257611b5b954da866c5b6178983afdc5a5ccdc01e34144c46b35e9c681c846ee13c8e633ca6e2f0f2e896a177b9f022decf7 WHIRLPOOL ca5644b33db019667a0c4d4a431fed79cbc69c371bdc9bafdce92492a069358e27769608375f012af1b2f972f411a47e8389c8907d7e1d472c8c6130b33119d9
+MISC ChangeLog-2015 1641 SHA256 8bfe816882c3eba29b5503175f1abc99a920be63d968a684a9b874bfef2047c2 SHA512 96ec1a46c631170594241bab8aa4ed10e3ca7a8f060d57b7368cd9c597b21fee09f83249cbb497341c48a34f44473b9f28a0a3adc9419db25803d537435d5fa3 WHIRLPOOL 48a4013d5260657ec8abab818fdb9f27334cfc97cc49fa69769953e0c09cc7351a4b1bf333093342b2062d56bb01e7c410032b3e26b165142b8f94f7ee04867a
+MISC metadata.xml 1095 SHA256 20429219a554c914f09621d815ade69d8d44effb2a9791dbf6afda22ea30255f SHA512 6e2d291f04b343b366ad9b7e5c18ae7cce327dd27cfdb496247a0228d2cf160d8d42f803f21aed07181dc1395ad8db9431270abd174dfc3c3d46a951294a3325 WHIRLPOOL d77c47f104c52de7319a4ea7312c3d2697112f2af7d979b65e251b0fb98c6158d81fd8935b45f202cf46438107d2ffda066b768a9e6405a072d761974212a4a1
diff --git a/games-fps/rott/metadata.xml b/games-fps/rott/metadata.xml
new file mode 100644
index 000000000000..5bc2b194722d
--- /dev/null
+++ b/games-fps/rott/metadata.xml
@@ -0,0 +1,25 @@
+<?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>
+THE STORY
+
+You are part of an elite group of operatives called HUNT (High-risk
+United Nations Taskforce), and you must stop a maniac cult leader from
+killing millions of people. While scouting a remote island, you are
+suddenly surrounded by enemy troops with guns blaring. In the distance
+you see your boat--your only chance to escape--explode into matchsticks.
+In front of you is a huge fortress monastery, and your only chance to
+stop the madness. You are e quipped with awesome, high-tech weaponry
+like heat-seeking missiles, split missiles, and the Flamewall cannon,
+which leaves a trail of charred skeletons in its wake. You'll also find
+magical instruments and weapons so incredible they defy description.
+</longdescription>
+ <use>
+ <flag name="demo">Install the shareware version</flag>
+ </use>
+</pkgmetadata>
diff --git a/games-fps/rott/rott-1.1.2-r1.ebuild b/games-fps/rott/rott-1.1.2-r1.ebuild
new file mode 100644
index 000000000000..5eabd67d2f86
--- /dev/null
+++ b/games-fps/rott/rott-1.1.2-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
+
+DESCRIPTION="Rise of the Triad for Linux!"
+HOMEPAGE="http://www.icculus.org/rott/"
+SRC_URI="http://www.icculus.org/rott/releases/${P}.tar.gz
+ demo? ( http://filesingularity.timedoctor.org/swdata.zip )"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="demo"
+
+RDEPEND="media-libs/libsdl[sound,joystick,video]
+ media-libs/sdl-mixer"
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+S=${WORKDIR}/${P}/rott
+
+src_prepare() {
+ default
+
+ sed -i \
+ -e '/^CC =/d' \
+ Makefile || die "sed failed"
+ emake clean
+}
+
+src_compile() {
+ emake -j1 \
+ EXTRACFLAGS="${CFLAGS} -DDATADIR=\\\"/usr/share/${PN}/\\\"" \
+ SHAREWARE=$(usex demo "1" "0")
+}
+
+src_install() {
+ dobin rott
+ dodoc ../doc/*.txt ../README
+ doman ../doc/rott.6
+ if use demo ; then
+ cd "${WORKDIR}" || die
+ insinto /usr/share/${PN}
+ doins *.dmo huntbgin.* remote1.rts
+ fi
+}
+
+pkg_postinst() {
+ if ! use demo ; then
+ elog "To play the full version, just copy the"
+ elog "data files to /usr/share/${PN}/"
+ fi
+}
diff --git a/games-fps/rott/rott-1.1.2.ebuild b/games-fps/rott/rott-1.1.2.ebuild
new file mode 100644
index 000000000000..89a28ab64800
--- /dev/null
+++ b/games-fps/rott/rott-1.1.2.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
+
+DESCRIPTION="Rise of the Triad for Linux!"
+HOMEPAGE="http://www.icculus.org/rott/"
+SRC_URI="http://www.icculus.org/rott/releases/${P}.tar.gz
+ demo? ( http://filesingularity.timedoctor.org/swdata.zip )"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="demo"
+
+RDEPEND="media-libs/libsdl[sound,joystick,video]
+ media-libs/sdl-mixer"
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+S=${WORKDIR}/${P}/rott
+
+src_prepare() {
+ sed -i \
+ -e '/^CC =/d' \
+ Makefile || die "sed failed"
+ emake clean
+}
+
+src_compile() {
+ emake -j1 \
+ EXTRACFLAGS="${CFLAGS} -DDATADIR=\\\"${GAMES_DATADIR}/${PN}/\\\"" \
+ SHAREWARE=$(usex demo "1" "0")
+}
+
+src_install() {
+ dogamesbin rott
+ dodoc ../doc/*.txt ../README
+ doman ../doc/rott.6
+ if use demo ; then
+ cd "${WORKDIR}" || die
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins *.dmo huntbgin.* remote1.rts
+ fi
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ if ! use demo ; then
+ elog "To play the full version, just copy the"
+ elog "data files to ${GAMES_DATADIR}/${PN}/"
+ fi
+}
diff --git a/games-fps/rtcw/Manifest b/games-fps/rtcw/Manifest
new file mode 100644
index 000000000000..6e9ffd301f05
--- /dev/null
+++ b/games-fps/rtcw/Manifest
@@ -0,0 +1,7 @@
+AUX wolf-ded.rc 466 SHA256 f5e534d4df7c084cc35ee4e01116c1721f3189a340c14412783336e3087e33e6 SHA512 f949364731a608f397228db8f1b6753c6b307c32ded4330cfd19d76b1378317ab3f0b87f9db0435c255befd5cc5b1bcc37fa6af472b55f757e02b29f74a4645e WHIRLPOOL ee9ad6edd516c26aaca6d73a20b624c4fa5b8a27ca96ac3d67dd9f01f51f57c8bcbdb257e5fae1a5cfbb1adc5a00c89745a120e902e2bd3e190fbda3c42e09e3
+DIST wolf-linux-1.41b.x86.run 73940068 SHA256 2921425c1b429147c1bc6f0c6a8664bec502ae86a2d6bccfaa1162f75dce89f3 SHA512 8c018bcdeca5b14fe1b8c35f46031416978b27b57a38897fa5b1b0c26fbf3ab6f44c22582223ad98a695a793ba1444a2e092beee687e835a279a12121422e93f WHIRLPOOL 647a76f07d01be737340bf36e552e25b5595b3defc09cee9deac3b8dda27db9579158ca91010bbf73e1af7586c8ad73003565c4a57e6ae79850377ecf512103e
+DIST wolf-linux-GOTY-maps.x86.run 51930759 SHA256 d80994fc3c89348ac08b616f0e03d6cfca3d2faae89491dd294501cac1cad952 SHA512 85f334f75d538bb68c7507d36600b433b0ab0c92572c8e8c022eaeb8783fc72d56ff39ee0ee9eb3272ab09025bca56cca70b077b7e7b02a38cd556fb9f425dcc WHIRLPOOL 731ee47d3631c705057b45f870d29d87988b54a882ffd22c75c5bb5e7e2ec6a7e27baf89fb7a4715f133b649c5b99bed6bc47cb87ba0cd8c9583044361b7c9c8
+EBUILD rtcw-1.41b.ebuild 2771 SHA256 5a147a4d62f6305d990ec261dad29a1c0707f34b841875c6234c286c56132736 SHA512 c9797beabed04ab34f4621f1a90d856a97bdb3c95fb9dc1d560159ab9dc754f35152fce972d93fb946c371ba9b9e2306642b87734482fde77fd21513771fafcf WHIRLPOOL e3fa6acddf32349f50f5f94bb0ea001089ff632f8abd0898d10c6872c82f2b8107ce201a9933c62efda526b7df92b7fb2dcde1b27c08f81109e4c9da72317f60
+MISC ChangeLog 2567 SHA256 89485fd7f117228486ed835478dbe636a8268ec880b04569170571b36d17362a SHA512 3f0a75da4106fcbe1346af0adcd32bd435d0f2bdcd5ab6457eae4e711ee6561d5350dc0fadad14b054edc1cd511d34fda2fe5b39ced3436c29828bf3cac8e752 WHIRLPOOL eb040b53a2bff841fecb4f695d97197d3143a41c99423eec7c9dbbd02e1cea9de5743426fbfc6b138e4864c6a30826677eef2276deb57bbe2e9d8deac9e6feb7
+MISC ChangeLog-2015 6617 SHA256 06dea2885aa70cef3c669fd2e575392a0421e7bcfd21788bd047b1286e2f2cf0 SHA512 be9e063cfacb8d7a7d847573638792b5e525735eccca012530d1445c37531e74b815962730a1defc439fe27a4327d4f324763f06246fd090267467b88be3132c WHIRLPOOL 01e29a3524d8169a801aa2c7347d4285168d5a4ec51520f78ade4acffe4f1d55453401d5ca0975fa36513b6c2cc34b5fd7c2896254262377706f96e9e98fde39
+MISC metadata.xml 1048 SHA256 fd124beded6f2d0250422f242aa35e3326fa28483854313d23da47bd48660885 SHA512 9fe9d74cb94a07ba0b87c28ee050135e608ccae13e70aa8332e10adb5f2c11d7b86618c2c6a9824ccfe54425439f44827ebf85dbcf8add66178e538e81eb13a7 WHIRLPOOL d41d580eafba2b94d7b87257e8525b41287ba8725151196f3c0601f4598ce095f35f861c3c030c3a86a9423b840a0dbbaac033c71829fb4a42e2d0852f0e8c96
diff --git a/games-fps/rtcw/files/wolf-ded.rc b/games-fps/rtcw/files/wolf-ded.rc
new file mode 100644
index 000000000000..3f7bf956c10a
--- /dev/null
+++ b/games-fps/rtcw/files/wolf-ded.rc
@@ -0,0 +1,24 @@
+#!/sbin/openrc-run
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting RTCW dedicated server..."
+ screen -A -m -d -S rtcw su - dedicated -c GENTOO_DIR/startwolfded
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping RTCW dedicated server..."
+ kill `screen -list | grep rtcw | awk -F . '{ print $1 }' | sed -e s/.//`
+ eend $?
+
+}
+
+status() {
+ screen -list | grep rtcwded
+}
diff --git a/games-fps/rtcw/metadata.xml b/games-fps/rtcw/metadata.xml
new file mode 100644
index 000000000000..4c558817e05b
--- /dev/null
+++ b/games-fps/rtcw/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>
+Return to Castle Wolfenstein is a first-person 3-D shooter based loosely on the original Wolfenstein series by id software. The game takes place in Europe during World War II. In the single player game, you play as a US military special operative sent behind enemy lines to stop the Nazi studies into the supernatural and the occult. The multi-player game is a team-based, goal-oriented series of missions and allows you to play as either the Axis or the Allies. There are several classes of characters you can play, each with their own special abilities and weapon choices. The port to Linux was done by TTimo of id software and is an unsupported binary release. This game is commercial software and requires data from the retail Windows version to play.
+</longdescription>
+</pkgmetadata>
diff --git a/games-fps/rtcw/rtcw-1.41b.ebuild b/games-fps/rtcw/rtcw-1.41b.ebuild
new file mode 100644
index 000000000000..2cd098cbd9cf
--- /dev/null
+++ b/games-fps/rtcw/rtcw-1.41b.ebuild
@@ -0,0 +1,94 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils unpacker games
+
+DESCRIPTION="Return to Castle Wolfenstein - Long awaited sequel to Wolfenstein 3D"
+HOMEPAGE="http://games.activision.com/games/wolfenstein/"
+SRC_URI="mirror://idsoftware/wolf/linux/wolf-linux-GOTY-maps.x86.run
+ mirror://idsoftware/wolf/linux/wolf-linux-${PV}.x86.run"
+# mirror://3dgamers/returnwolfenstein/wolf-linux-${PV}.x86.run
+
+LICENSE="RTCW GPL-2" # gpl for init script bug #425944
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="opengl dedicated"
+RESTRICT="strip mirror"
+
+UIDEPEND="x11-libs/libX11[abi_x86_32(-)]
+ x11-libs/libXau[abi_x86_32(-)]
+ x11-libs/libXdmcp[abi_x86_32(-)]
+ x11-libs/libXext[abi_x86_32(-)]
+ virtual/opengl[abi_x86_32(-)]"
+RDEPEND="sys-libs/glibc
+ sys-libs/lib-compat
+ dedicated? ( app-misc/screen )
+ !dedicated? ( ${UIDEPEND} )
+ opengl? ( ${UIDEPEND} )"
+
+S=${WORKDIR}
+
+dir=${GAMES_PREFIX_OPT}/${PN}
+Ddir=${D}/${dir}
+QA_PREBUILT="${dir:1}/* ${dir:1}/pb/* ${dir:1}/main/*"
+
+src_install() {
+ insinto "${dir}"
+ doins -r main Docs pb
+
+ exeinto "${dir}"
+ doexe bin/Linux/x86/*.x86 openurl.sh
+
+ games_make_wrapper rtcwmp ./wolf.x86 "${dir}" "${dir}"
+ games_make_wrapper rtcwsp ./wolfsp.x86 "${dir}" "${dir}"
+ # work around buggy video driver (bug #326837)
+ sed -i \
+ -e 's/^exec /__GL_ExtensionStringVersion=17700 exec /' \
+ "${D}/${GAMES_BINDIR}/rtcwsp" \
+ || die
+
+ if use dedicated; then
+ games_make_wrapper wolf-ded ./wolfded.x86 "${dir}" "${dir}"
+ newinitd "${FILESDIR}"/wolf-ded.rc wolf-ded
+ sed -i \
+ -e "s:GENTOO_DIR:${dir}:" \
+ "${D}"/etc/init.d/wolf-ded \
+ || die
+ fi
+
+ insinto ${dir}
+ doins WolfMP.xpm WolfSP.xpm QUICKSTART CHANGES RTCW-README-1.4.txt
+ doicon WolfMP.xpm WolfSP.xpm
+
+ prepgamesdirs
+ make_desktop_entry rtcwmp "Return to Castle Wolfenstein (MP)" WolfMP
+ make_desktop_entry rtcwsp "Return to Castle Wolfenstein (SP)" WolfSP
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ ewarn "There are two possible security bugs in this package, both causing a"
+ ewarn "denial of service. One affects the game when running a server, the"
+ ewarn "other when running as a client."
+ ewarn "For more information, see bug #82149."
+ echo
+ elog "You need to copy pak0.pk3, mp_pak0.pk3, mp_pak1.pk3, mp_pak2.pk3,"
+ elog "sp_pak1.pk3 and sp_pak2.pk3 from a Window installation into ${dir}/main/"
+ elog
+ elog "To play the game run:"
+ elog " rtcwsp (single-player)"
+ elog " rtcwmp (multi-player)"
+ elog
+ if use dedicated
+ then
+ elog "To start a dedicated server run:"
+ elog " /etc/init.d/wolf-ded start"
+ elog
+ elog "To run the dedicated server at boot, type:"
+ elog " rc-update add wolf-ded default"
+ elog
+ elog "The dedicated server is started under the ${GAMES_USER_DED} user account"
+ echo
+ fi
+}
diff --git a/games-fps/rtcwmp-demo/Manifest b/games-fps/rtcwmp-demo/Manifest
new file mode 100644
index 000000000000..46924108bc59
--- /dev/null
+++ b/games-fps/rtcwmp-demo/Manifest
@@ -0,0 +1,7 @@
+AUX rtcwmp-demo-ded.rc 488 SHA256 38e0b1bef0c3209a15b447555fdc1fc8a7e183fcbaed4606edfb45237ba1fa26 SHA512 e05da90a615a505fc921caf080e32895dcfd828ca584cbd9bdab3e927eb174c3c9c6cfbed3a5fe0bc3b93851eb2085b1dfc49073ce1858c7954ad1a0c8fa456a WHIRLPOOL 34b996534fdb5a6f5a03b532d9d15fceba388b847d001fb4c4100489361910d87fba40b7085dd8f120875bfe12ffb13945f55b1c223f032787eab0af1e6da47a
+DIST wolfmpdemo-linux-1.1-MP.x86.run 69650634 SHA256 44638cf2d98db4ac583aa4878645e171a7c4b462b44961629aeb8d8d78188da8 SHA512 2e497ca8cb0552dfbc90bfd10544b44f0dca2b7dc74ad6428041fd9885926a03cfdae72d6e5ccbd61b0d0c5b051355c567a9101746838110ebeb0f3fdcaf3ad5 WHIRLPOOL 6087920c0d63f5060292adcb575fafb1113b82e9e8e1a557cf740c649dad7b54ae4fae44ce698ccdcfafa4749964ad174cd3731634235fa0f27ece375a67a5ca
+EBUILD rtcwmp-demo-1.1-r1.ebuild 1823 SHA256 d8f1f908b54ed9f5d1fe622222f641e9d5c305432fb18d2da608b003234e7430 SHA512 1968c303e02b815977fbc877fa39e0403cb551e9ac7b2c23ac36482af7ef3950a83691f9c757fbeea5ec8a90a0e15a6f438c0d71ffe587a9ccfb44eb3db108cb WHIRLPOOL 089075cda01edd216f3ef4bcc3bd1d40a2f5cd14238a61d36f7ee5594c708c991841a128dfb36d139d2b0e75e12daa60c2ea7a134e535d3b861a729bde64854c
+EBUILD rtcwmp-demo-1.1-r2.ebuild 1709 SHA256 ca1378201d9f1b2ee6f2f23a25f8898f68d905e4f093084671ac224539906306 SHA512 c148774dc69368f518e6ca0c26c2d14b0ac040b38c0e8d4b1accadde4f2f461319a746e3b143539043a29edaebde11fe38a772f555bd709ef7ea11019dbffecb WHIRLPOOL 72f1c74f39c0e690a27be8b008eab732a173f76763593b207d060f48c60fcaed2ad5eece665f09dac649890d77b332b1134c095d6129e68539c82796630683d2
+MISC ChangeLog 2606 SHA256 d4f7e0587703819ceb71b51943e5f50fbae94e018d5547dd6898ad6be05d9469 SHA512 79e5d58ce9942eb840a20b23844bea95d3a4173934cbf5901beec7e9896f19f6f7694e5d8e4fdad700272cc04a6c3efbd987b5c55a903dc7477a83c7bd9cb9bd WHIRLPOOL f612955f8a704c1ac606d7844569fafe18b3ee8c804000b8317a556b6e3e5f67c6211883884fa44072f87decc6b4cb06063fef7e90208995e03f108cfbbe62ca
+MISC ChangeLog-2015 2785 SHA256 b3680d58adf95d5365f31eb967df34e167d921b47f49525a7c5d03af37c314dc SHA512 9b3a57e64b1a7a80fa3f37b856cdb76b9f26dbd3debe24ebc8af74331284e03a7c12ef87daec6be97a972293a3223e29354120d726da6a37fee7e5af38b68aed WHIRLPOOL 8f61dc34afbc37b9b5acc7fae80431fd00397c6bba6a1ea2af4a72eeb435470b7c182a5df69f4bf8fee85f56633e2a805b052594c4692eeddb35b647732a7472
+MISC metadata.xml 391 SHA256 6395ec459ba334f13641ef732477ef8492d324dd86e3a90ce1ed7569efbc51e6 SHA512 7c19f0975d4df1c3f116d4563400b9e9028d3f7c70c2fa4f1fa6612d1d76141e0f157eba97804640aed191a59715869f4ac325ab32818433cff6e99e74579257 WHIRLPOOL bfac51435d9f5f4e34930e127bf3a4cbeae199e3ac8d5eaed394a4341e055f93037ffa1871c28bf1ccc3e4a34d2f7241edce7a5aea95a288229df608f152b535
diff --git a/games-fps/rtcwmp-demo/files/rtcwmp-demo-ded.rc b/games-fps/rtcwmp-demo/files/rtcwmp-demo-ded.rc
new file mode 100644
index 000000000000..7d711d08acee
--- /dev/null
+++ b/games-fps/rtcwmp-demo/files/rtcwmp-demo-ded.rc
@@ -0,0 +1,24 @@
+#!/sbin/openrc-run
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting RTCW demo dedicated server..."
+ screen -A -m -d -S rtcwdemo su - dedicated -c GENTOO_DIR/startrtcwded
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping RTCW demo dedicated server..."
+ kill `screen -list | grep rtcwdemo | awk -F . '{ print $1 }' | sed -e s/.//`
+ eend $?
+
+}
+
+status() {
+ screen -list | grep rtcwdemoded
+}
diff --git a/games-fps/rtcwmp-demo/metadata.xml b/games-fps/rtcwmp-demo/metadata.xml
new file mode 100644
index 000000000000..d1a52b2afdce
--- /dev/null
+++ b/games-fps/rtcwmp-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>
+The sequel to id Software's classic Wolfenstein 3-D. This version of the demo is only for multi-player.
+</longdescription>
+</pkgmetadata>
diff --git a/games-fps/rtcwmp-demo/rtcwmp-demo-1.1-r1.ebuild b/games-fps/rtcwmp-demo/rtcwmp-demo-1.1-r1.ebuild
new file mode 100644
index 000000000000..ea27e64a53f7
--- /dev/null
+++ b/games-fps/rtcwmp-demo/rtcwmp-demo-1.1-r1.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 unpacker games
+
+MY_P="wolfmpdemo-linux-${PV}-MP.x86.run"
+
+DESCRIPTION="Return to Castle Wolfenstein - Multi-player demo"
+HOMEPAGE="http://games.activision.com/games/wolfenstein/"
+SRC_URI="mirror://idsoftware/wolf/linux/old/${MY_P}
+ mirror://3dgamers/returnwolfenstein/${MY_P}"
+
+LICENSE="RTCW GPL-2" # gpl for init script bug #425946
+SLOT="0"
+KEYWORDS="-* amd64 x86"
+IUSE="dedicated"
+RESTRICT="strip mirror"
+
+RDEPEND="sys-libs/glibc
+ amd64? ( sys-libs/glibc[multilib] )
+ dedicated? ( app-misc/screen )
+ !dedicated? (
+ virtual/opengl
+ x11-libs/libX11
+ x11-libs/libXext
+ )"
+
+QA_PREBUILT="${GAMES_PREFIX_OPT:1}/{PN}/*
+ ${GAMES_PREFIX_OPT:1}/{PN}/demomain/*"
+
+S=${WORKDIR}
+
+dir=${GAMES_PREFIX_OPT}/${PN}
+Ddir=${D}/${dir}
+
+src_install() {
+ insinto "${dir}"
+ doins -r demomain Docs
+ doins WolfMP.xpm
+ dodoc CHANGES QUICKSTART
+
+ exeinto "${dir}"
+ doexe bin/x86/wolfded.x86 openurl.sh
+ games_make_wrapper rtcwmp-demo-ded ./wolfded.x86 "${dir}" "${dir}"
+ newinitd "${FILESDIR}"/rtcwmp-demo-ded.rc rtcwmp-demo-ded
+ sed "s:GENTOO_DIR:${dir}:" "${ED}"/etc/init.d/rtcwmp-demo-ded || die
+
+ if ! use dedicated; then
+ doexe bin/x86/wolf.x86
+ games_make_wrapper rtcwmp-demo ./wolf.x86 "${dir}" "${dir}"
+ newicon WolfMP.xpm rtcwmp-demo.xpm
+ make_desktop_entry rtcwmp-demo "Return to Castle Wolfenstein (MP demo)" \
+ rtcwmp-demo.xpm
+ fi
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ elog "Install 'rtcwsp-demo' for single-player"
+ elog
+ if ! use dedicated; then
+ elog "Run 'rtcwmp-demo' for multi-player"
+ elog
+ fi
+ elog "Start a dedicated server with"
+ elog "'/etc/init.d/rtcwmp-demo-ded start'"
+ elog
+ elog "Start the server at boot with"
+ elog "'rc-update add rtcwmp-demo-ded default'"
+}
diff --git a/games-fps/rtcwmp-demo/rtcwmp-demo-1.1-r2.ebuild b/games-fps/rtcwmp-demo/rtcwmp-demo-1.1-r2.ebuild
new file mode 100644
index 000000000000..a62dd413ecd7
--- /dev/null
+++ b/games-fps/rtcwmp-demo/rtcwmp-demo-1.1-r2.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 unpacker
+
+MY_P="wolfmpdemo-linux-${PV}-MP.x86.run"
+
+DESCRIPTION="Return to Castle Wolfenstein - Multi-player demo"
+HOMEPAGE="http://games.activision.com/games/wolfenstein/"
+SRC_URI="mirror://idsoftware/wolf/linux/old/${MY_P}
+ mirror://3dgamers/returnwolfenstein/${MY_P}"
+
+LICENSE="RTCW GPL-2" # gpl for init script bug #425946
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE="dedicated"
+RESTRICT="strip mirror"
+
+RDEPEND="sys-libs/glibc
+ amd64? ( sys-libs/glibc[multilib] )
+ dedicated? ( app-misc/screen )
+ !dedicated? (
+ virtual/opengl
+ x11-libs/libX11
+ x11-libs/libXext
+ )"
+
+QA_PREBUILT="/opt/${PN}/*
+ /opt/${PN}/demomain/*"
+
+S=${WORKDIR}
+
+dir="/opt/${PN}"
+
+src_install() {
+ insinto "${dir}"
+ doins -r demomain Docs
+ doins WolfMP.xpm
+ dodoc CHANGES QUICKSTART
+
+ exeinto "${dir}"
+ doexe bin/x86/wolfded.x86 openurl.sh
+ make_wrapper rtcwmp-demo-ded ./wolfded.x86 "${dir}" "${dir}"
+ newinitd "${FILESDIR}"/rtcwmp-demo-ded.rc rtcwmp-demo-ded
+ sed "s:GENTOO_DIR:${dir}:" "${ED}"/etc/init.d/rtcwmp-demo-ded || die
+
+ if ! use dedicated; then
+ doexe bin/x86/wolf.x86
+ make_wrapper rtcwmp-demo ./wolf.x86 "${dir}" "${dir}"
+ newicon WolfMP.xpm rtcwmp-demo.xpm
+ make_desktop_entry rtcwmp-demo "Return to Castle Wolfenstein (MP demo)" \
+ rtcwmp-demo.xpm
+ fi
+}
+
+pkg_postinst() {
+ elog "Install 'rtcwsp-demo' for single-player"
+ elog
+ if ! use dedicated; then
+ elog "Run 'rtcwmp-demo' for multi-player"
+ elog
+ fi
+ elog "Start a dedicated server with"
+ elog "'/etc/init.d/rtcwmp-demo-ded start'"
+ elog
+ elog "Start the server at boot with"
+ elog "'rc-update add rtcwmp-demo-ded default'"
+}
diff --git a/games-fps/rtcwsp-demo/Manifest b/games-fps/rtcwsp-demo/Manifest
new file mode 100644
index 000000000000..b41a1ac53e7b
--- /dev/null
+++ b/games-fps/rtcwsp-demo/Manifest
@@ -0,0 +1,6 @@
+DIST wolfspdemo-linux-1.1b.x86.run 117813349 SHA256 dbff5ea928802b1bddfd4c171bf08ed4294b2da0273e1cf0802fdcedc40c23c3 SHA512 3fc540c8721780747e14fe66d634c1347ab0cbc09eb795edfad0802663caa63393ac5a224792fd3e423e725b66cc2738877324c86a08698e0d7b6f2f804b7392 WHIRLPOOL e0c47261056d9e78a42183b02b4910f3a12870095bdb83510b535c3dd82414a4c6e16126047ba967e4adfaf1887fbf2b81a5d9473adf547e2d800972f6af20b8
+EBUILD rtcwsp-demo-1.1b-r1.ebuild 1345 SHA256 001cce0b7898565cc78defebdff3baad448cc7abc28823e2aad77394c20376af SHA512 be841030075e145672a1e63df567aace5270e4b970bd4ef8904e5b6038e33fdee37202f938b096f2e530450e373b36deb01323d4a798f4b17085ef07d3b6a172 WHIRLPOOL 5f0efd8bc1ad48bc13a9ed61b48a0891aeac4883cdd85285729cbdd906bce0dfaa2157f5a9bfcad4f4c6d37c377001c3644f51016ededaa6e95b8644ddd16ee0
+EBUILD rtcwsp-demo-1.1b-r2.ebuild 1280 SHA256 5483aa20b8befcea560308a81c7c33d85d2b5c05fdba9025145878e33708b553 SHA512 8001a2b85c4eb0680a2b95b9cb466b61b4a8b686578858e961824eeb20f13f3292ab81643f39efced444297724e9bbd58de7bed6512a08a79e70ffbd878ca5d4 WHIRLPOOL bb763bb9ff1e2ec33e46b495691daeb0faf5bc50ee170cb49929678275d8a344fbc0c66198085b331f22c9e637fc446c17218fd604fb46e867911080ff3d62c9
+MISC ChangeLog 2444 SHA256 4f0b44cd422581da64e8785693d9d7276ad8a810cbd662669b758c22563d1530 SHA512 1ea4d27b1f43c2b65e38e466960167e31be5722cda012c92c84f7ec3f959937c629b05849be2aed447c8209ea42f2d2c2a60e1a9b74d719d37949ecc7ab48c38 WHIRLPOOL 1e0d216a4f28ac2e3ef79b89ef10aa262a1fadf845e88231eb9df5b7132253abc3045e27a844bfeccb201c017b57d1150f949b6b3716e0a17911ca799949daa7
+MISC ChangeLog-2015 2361 SHA256 da9150ac13a584aff4d4aa2d14932405da969f0c273d99f7b806596c3fd502e6 SHA512 5039efdfeb446bd52604fa49229d4f5de44d85aeb291f1cc84ee3c43d0130648460a315aba1cc09eba4775e671cac465c431245345278fa2a2f7a8f28542121f WHIRLPOOL 3ce7114a9ac7b6e504906ba66815d95edabeab7039f8b99f77be80ddd2aa3eceeaf02fd06aa2f7fda8ed952681234ca7352f57b97ba43c17ba71b113d15501e0
+MISC metadata.xml 392 SHA256 f62283617a5579a3782d774327ac20a9a2e4f7cc68f1fb9d96d8a1554589a2e3 SHA512 341a171b1ee0fd2bf16c24124366e027a008c274dea77866ab95c8103c675cd33684ecf295f2a4b2e2075e6770bdfcfbab944236865c43855e57337cb37a51b5 WHIRLPOOL 5b4d62265eb1a58a09a841ebbdb375236c0ffbd286740b3e61cf983adb8436eb4f92ff20ba7f242edec1200ac00c0d2b20f212a9f65a68351d341383b64a7144
diff --git a/games-fps/rtcwsp-demo/metadata.xml b/games-fps/rtcwsp-demo/metadata.xml
new file mode 100644
index 000000000000..5b9fbad7c313
--- /dev/null
+++ b/games-fps/rtcwsp-demo/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>
+<longdescription>
+The sequel to id Software's classic Wolfenstein 3-D. This version of the demo
+is only for single-player.
+</longdescription>
+</pkgmetadata>
diff --git a/games-fps/rtcwsp-demo/rtcwsp-demo-1.1b-r1.ebuild b/games-fps/rtcwsp-demo/rtcwsp-demo-1.1b-r1.ebuild
new file mode 100644
index 000000000000..642b5c127a6f
--- /dev/null
+++ b/games-fps/rtcwsp-demo/rtcwsp-demo-1.1b-r1.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils unpacker games
+
+MY_P="wolfspdemo-linux-${PV}.x86.run"
+
+DESCRIPTION="Return to Castle Wolfenstein - Single-player demo"
+HOMEPAGE="http://games.activision.com/games/wolfenstein/"
+SRC_URI="mirror://idsoftware/wolf/linux/old/${MY_P}
+ mirror://3dgamers/returnwolfenstein/${MY_P}"
+
+LICENSE="RTCW"
+SLOT="0"
+KEYWORDS="-* amd64 x86"
+IUSE=""
+RESTRICT="strip mirror"
+
+RDEPEND="sys-libs/glibc
+ amd64? ( sys-libs/glibc[multilib] )
+ virtual/opengl[abi_x86_32(-)]
+ x11-libs/libX11[abi_x86_32(-)]
+ x11-libs/libXext[abi_x86_32(-)]"
+
+S=${WORKDIR}
+
+dir=${GAMES_PREFIX_OPT}/${PN}
+Ddir=${D}/${dir}
+
+src_install() {
+ insinto "${dir}"
+ doins -r demomain Docs
+
+ exeinto "${dir}"
+ doexe bin/x86/wolfsp.x86 openurl.sh || die "copying exe"
+
+ games_make_wrapper ${PN} ./wolfsp.x86 "${dir}" "${dir}"
+
+ # fix buffer overflow
+ sed -i -e '/^exec/i \
+export MESA_EXTENSION_MAX_YEAR=2003 \
+export __GL_ExtensionStringVersion=17700' "${ED}/${GAMES_BINDIR}"/${PN}
+
+ doins WolfSP.xpm CHANGES
+ newicon WolfSP.xpm ${PN}.xpm
+
+ prepgamesdirs
+ make_desktop_entry ${PN} "Return to Castle Wolfenstein (SP demo)" \
+ ${PN}.xpm
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ elog "Install 'rtcwmp-demo' for multi-player"
+ elog
+ elog "Run '${PN}' for single-player"
+}
diff --git a/games-fps/rtcwsp-demo/rtcwsp-demo-1.1b-r2.ebuild b/games-fps/rtcwsp-demo/rtcwsp-demo-1.1b-r2.ebuild
new file mode 100644
index 000000000000..aac6233260ea
--- /dev/null
+++ b/games-fps/rtcwsp-demo/rtcwsp-demo-1.1b-r2.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils unpacker
+
+MY_P="wolfspdemo-linux-${PV}.x86.run"
+
+DESCRIPTION="Return to Castle Wolfenstein - Single-player demo"
+HOMEPAGE="http://games.activision.com/games/wolfenstein/"
+SRC_URI="mirror://idsoftware/wolf/linux/old/${MY_P}
+ mirror://3dgamers/returnwolfenstein/${MY_P}"
+
+LICENSE="RTCW"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE=""
+RESTRICT="strip mirror"
+
+RDEPEND="sys-libs/glibc
+ amd64? ( sys-libs/glibc[multilib] )
+ virtual/opengl[abi_x86_32(-)]
+ x11-libs/libX11[abi_x86_32(-)]
+ x11-libs/libXext[abi_x86_32(-)]"
+
+S=${WORKDIR}
+
+dir="/opt/${PN}"
+#Ddir=${D}/${dir}
+
+src_install() {
+ insinto "${dir}"
+ doins -r demomain Docs
+
+ exeinto "${dir}"
+ doexe bin/x86/wolfsp.x86 openurl.sh || die "copying exe"
+
+ make_wrapper ${PN} ./wolfsp.x86 "${dir}" "${dir}"
+
+ # fix buffer overflow
+ sed -i -e '/^exec/i \
+export MESA_EXTENSION_MAX_YEAR=2003 \
+export __GL_ExtensionStringVersion=17700' "${ED}/usr/bin/${PN}"
+
+ doins WolfSP.xpm CHANGES
+ newicon WolfSP.xpm ${PN}.xpm
+
+ make_desktop_entry ${PN} "Return to Castle Wolfenstein (SP demo)" \
+ ${PN}.xpm
+}
+
+pkg_postinst() {
+ elog "Install 'rtcwmp-demo' for multi-player"
+ elog
+ elog "Run '${PN}' for single-player"
+}
diff --git a/games-fps/sauerbraten/Manifest b/games-fps/sauerbraten/Manifest
new file mode 100644
index 000000000000..2c474609adfc
--- /dev/null
+++ b/games-fps/sauerbraten/Manifest
@@ -0,0 +1,9 @@
+AUX sauerbraten-2013.02.03-QA.patch 2037 SHA256 baddf2bb64ad33df6ad11bbdfaf7d7c918a4f6c26f62bd641d43633051be83c4 SHA512 1725945f0373f03e5ae81b8e9eee4e2a9260d9362ad424e4198bb71af2e69055439268197f784d2acbd9e17ff977e8b1a7f5193d378a036488ff758d0ead4b5a WHIRLPOOL 312c17a2fa83a8fa73cdba080c8d74291f5572098ab05ee29e5238b672ad2e7540949e4f0a78e557ae96c9062e584e313dfb82d8e1b9d5aa72d6a207db0b316f
+AUX sauerbraten-2013.02.03-system-enet.patch 1880 SHA256 3dddd4fca0c0176121b72d180f9046a28a026a68666a228503b1a4cebb44f597 SHA512 b53e7db4e6b7ce012ee292a24cbf6e84e1c6bce01cde1a41985d0b471a68c1d2978f8272bc359a81beb317b5ab2ff88a13a1e73aaeb7f5c643e778ffe9861c7a WHIRLPOOL 38d88521ab507735d744b4f186a495fd25b73cbbd24d8b0b0adaca4219cabf56342e25bc12e55c782e6a86c418bcf54cf3802752a41009ff2dd641dc8b123067
+AUX sauerbraten.conf 605 SHA256 6e0694718370b126034bc569229d91b63cbfbd87f86af0a03d20e08833069811 SHA512 685b7358ad7267b1b19ac00f879a82205f346b32fda8cb460c4f8c50e9f20263c102b0fca62ab437dabe67ebbdd281f130f28f3b8ef2bcf064ae45fbd23cce67 WHIRLPOOL c1f4de209300898333856a027e5587a2b1d5f978b653f8085b47b40f72ef533462e5810d79757675742998206c9db445ca94d904aea3563807d3300b872a47b1
+AUX sauerbraten.init 1951 SHA256 7dca7e0580c19180d6d6ef9e3f86aa991ac29da28e16412b866da74d2bf26dda SHA512 9a96557cb2822f30693900b1dc9ecad9f1eab9e8a3d75432667bfba784ee86754649cf08ccab5f9cbff6be7ab584f3325b9c40c947005cdee425716a888d5c40 WHIRLPOOL 0e55a53a41db5e3bdfba9b2f779950d15f0dc58576ca1cc3061243773b5a5f3eefdf3c25982c72a0b23f4c38871cfbaa31ceb63f3a2c02c234bad414ab9e701c
+DIST sauerbraten_2013_02_03_collect_edition_linux.tar.bz2 589941180 SHA256 45c20521e3e56374490b2d9112a211538e801cf0161197f35476b30b7b58a78e SHA512 7864e346cc2bc86d78973db1b341fd8256cc2e1953be51263ef91a5374f9ec00276ba2940850e6d5bba7a57c71190b670dc7ba97021be2935c31f8694fed4897 WHIRLPOOL 47a21e233dc90b5284027dbe47d13e891a434e0e550c6102a456e6300e6d5f9daba23c27fc100428161641ba276fa13faac12b935ac590a108c516b9b7987f4e
+EBUILD sauerbraten-2013.02.03.ebuild 3216 SHA256 95ccb8dc7801bedcce3f7f38bc30d33625025a84c7c8b28db47156dfe1820464 SHA512 76c29d5964008d484bdd95d0ac491cca082eab0b20efa4bf16321db39eb29b3e96ffc648538d5ae2fe578a51ca712932caff391c9c2c7209d7438a10a62279af WHIRLPOOL a0b53781127f74739883faad347f5aac131cad90def53900f24cac3dad60c81180438bd85261cd0c76fb4172c968f80a84c036f31fd20c59bf88b0b7539c044d
+MISC ChangeLog 4033 SHA256 a4f4cad0ef43d79487afa1861cf46e3bdeeb9761f98009b3b9dc69bd90f0fbd1 SHA512 f67b1bb752aab87c2849e70d1089ddc711f43ca00359be9c61237235c61e7e2560ff291b4fd894c628ff02b5fe4e6af4cad76f1e434cfd07bb44a0d8d035458b WHIRLPOOL 1493ee19bd32f5772370609915549fa680e4be8b8aa8d7547afbaef3b4aff23c324968f3680589cd16187ea84481cb4939ae5c4ee06ea0e866bc3d3bb3af9d18
+MISC ChangeLog-2015 3701 SHA256 fb5f3f405ccc81fb6293c4c761fc2e63415563cb341f598faa0e45e9eefb090b SHA512 8e8bae3bde223491da99f6992903ca0a74879adadb9f0cd1caf7f90464ce7ab622785848fee5c832e8b8b50da142b6cebd03df6b65b1b0ef2a0462782ee109e6 WHIRLPOOL 357d0d5b4821d9e014253918a997f18124a67f7cf67abd740c8926895553f609956d13c93f1499b7b3739e3d028040695047e965f0c26912b492d59b31ef6e10
+MISC metadata.xml 401 SHA256 eab42e84d9b6ed8e8af05cf41638db192c0a0d7d0c08133173883bdb49f0e3cb SHA512 1087c8ed886c5066a8bd600cbc9878e6bf21c41f163939daf22c503ce1e9095aff13b8986959aadaaaaf04cd2f314bb664042829deb30196b88a8c2608ce8266 WHIRLPOOL ab1e976065985111279db54e01a3e0629644c41b394dd21db496abc8b01b772af0c1c524f963ab0a765b847f9d06a6498ef3f65c57aebeb750c5c71effdb39ab
diff --git a/games-fps/sauerbraten/files/sauerbraten-2013.02.03-QA.patch b/games-fps/sauerbraten/files/sauerbraten-2013.02.03-QA.patch
new file mode 100644
index 000000000000..21f1b13c7a2a
--- /dev/null
+++ b/games-fps/sauerbraten/files/sauerbraten-2013.02.03-QA.patch
@@ -0,0 +1,50 @@
+applied on top of sauerbraten-2013.01.04-system-enet.patch
+
+respect LDFLAGS, CXXFLAGS and CPPFLAGS
+--- sauerbraten/src/Makefile
++++ sauerbraten/src/Makefile
+@@ -1,4 +1,4 @@
+-CXXFLAGS= -O3 -fomit-frame-pointer
++CXXFLAGS ?= -O3 -fomit-frame-pointer
+ override CXXFLAGS+= -Wall -fsigned-char -fno-exceptions -fno-rtti
+
+ PLATFORM= $(shell uname -s)
+@@ -139,11 +139,11 @@
+ -$(RM) $(CLIENT_PCH) $(CLIENT_OBJS) $(SERVER_OBJS) $(MASTER_OBJS) sauer_client sauer_server sauer_master
+
+ %.h.gch: %.h
+- $(CXX) $(CXXFLAGS) -o $(subst .h.gch,.tmp.h.gch,$@) $(subst .h.gch,.h,$@)
++ $(CXX) $(CPPFLAGS) $(CXXFLAGS) -o $(subst .h.gch,.tmp.h.gch,$@) $(subst .h.gch,.h,$@)
+ $(MV) $(subst .h.gch,.tmp.h.gch,$@) $@
+
+ %-standalone.o: %.cpp
+- $(CXX) $(CXXFLAGS) -c -o $@ $(subst -standalone.o,.cpp,$@)
++ $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $(subst -standalone.o,.cpp,$@)
+
+ $(CLIENT_OBJS): CXXFLAGS += $(CLIENT_INCLUDES)
+ $(filter shared/%,$(CLIENT_OBJS)): $(filter shared/%,$(CLIENT_PCH))
+@@ -168,19 +168,19 @@
+ install: all
+ else
+ client: $(CLIENT_OBJS)
+- $(CXX) $(CXXFLAGS) -o sauer_client $(CLIENT_OBJS) $(CLIENT_LIBS)
++ $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -o sauer_client $(CLIENT_OBJS) $(CLIENT_LIBS)
+
+ server: $(SERVER_OBJS)
+- $(CXX) $(CXXFLAGS) -o sauer_server $(SERVER_OBJS) $(SERVER_LIBS)
++ $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -o sauer_server $(SERVER_OBJS) $(SERVER_LIBS)
+
+ master: $(MASTER_OBJS)
+- $(CXX) $(CXXFLAGS) -o sauer_master $(MASTER_OBJS) $(MASTER_LIBS)
++ $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -o sauer_master $(MASTER_OBJS) $(MASTER_LIBS)
+
+ shared/cube2font.o: shared/cube2font.c
+- $(CXX) $(CXXFLAGS) -c -o $@ $< `freetype-config --cflags`
++ $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $< `freetype-config --cflags`
+
+ cube2font: shared/cube2font.o
+- $(CXX) $(CXXFLAGS) -o cube2font shared/cube2font.o `freetype-config --libs` -lz
++ $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -o cube2font shared/cube2font.o `freetype-config --libs` -lz
+
+ install: all
+ cp sauer_client ../bin_unix/$(PLATFORM_PREFIX)_client
diff --git a/games-fps/sauerbraten/files/sauerbraten-2013.02.03-system-enet.patch b/games-fps/sauerbraten/files/sauerbraten-2013.02.03-system-enet.patch
new file mode 100644
index 000000000000..e87b280ba0c1
--- /dev/null
+++ b/games-fps/sauerbraten/files/sauerbraten-2013.02.03-system-enet.patch
@@ -0,0 +1,64 @@
+--- sauerbraten/src/Makefile
++++ sauerbraten/src/Makefile
+@@ -4,7 +4,7 @@
+ PLATFORM= $(shell uname -s)
+ PLATFORM_PREFIX= native
+
+-INCLUDES= -Ishared -Iengine -Ifpsgame -Ienet/include
++INCLUDES= -Ishared -Iengine -Ifpsgame
+
+ STRIP=
+ ifeq (,$(findstring -g,$(CXXFLAGS)))
+@@ -36,8 +36,8 @@
+ endif
+ CLIENT_LIBS= -mwindows $(STD_LIBS) -L$(WINBIN) -L$(WINLIB) -lSDL -lSDL_image -lSDL_mixer -lzlib1 -lopengl32 -lenet -lws2_32 -lwinmm
+ else
+-CLIENT_INCLUDES= $(INCLUDES) -I/usr/X11R6/include `sdl-config --cflags`
+-CLIENT_LIBS= -Lenet/.libs -lenet -L/usr/X11R6/lib -lX11 `sdl-config --libs` -lSDL_image -lSDL_mixer -lz -lGL
++CLIENT_INCLUDES= $(INCLUDES) `sdl-config --cflags`
++CLIENT_LIBS= -lenet -lX11 `sdl-config --libs` -lSDL_image -lSDL_mixer -lz -lGL
+ endif
+ ifeq ($(PLATFORM),Linux)
+ CLIENT_LIBS+= -lrt
+@@ -106,7 +106,7 @@
+ MASTER_LIBS= $(STD_LIBS) -L$(WINBIN) -L$(WINLIB) -lzlib1 -lenet -lws2_32 -lwinmm
+ else
+ SERVER_INCLUDES= -DSTANDALONE $(INCLUDES)
+-SERVER_LIBS= -Lenet/.libs -lenet -lz
++SERVER_LIBS= -lenet -lz
+ MASTER_LIBS= $(SERVER_LIBS)
+ endif
+ SERVER_OBJS= \
+@@ -135,15 +135,6 @@
+
+ all: client server
+
+-enet/Makefile:
+- cd enet; ./configure --enable-shared=no --enable-static=yes
+-
+-libenet: enet/Makefile
+- $(MAKE) -C enet/ all
+-
+-clean-enet: enet/Makefile
+- $(MAKE) -C enet/ clean
+-
+ clean:
+ -$(RM) $(CLIENT_PCH) $(CLIENT_OBJS) $(SERVER_OBJS) $(MASTER_OBJS) sauer_client sauer_server sauer_master
+
+@@ -176,13 +167,13 @@
+
+ install: all
+ else
+-client: libenet $(CLIENT_OBJS)
++client: $(CLIENT_OBJS)
+ $(CXX) $(CXXFLAGS) -o sauer_client $(CLIENT_OBJS) $(CLIENT_LIBS)
+
+-server: libenet $(SERVER_OBJS)
++server: $(SERVER_OBJS)
+ $(CXX) $(CXXFLAGS) -o sauer_server $(SERVER_OBJS) $(SERVER_LIBS)
+
+-master: libenet $(MASTER_OBJS)
++master: $(MASTER_OBJS)
+ $(CXX) $(CXXFLAGS) -o sauer_master $(MASTER_OBJS) $(MASTER_LIBS)
+
+ shared/cube2font.o: shared/cube2font.c
diff --git a/games-fps/sauerbraten/files/sauerbraten.conf b/games-fps/sauerbraten/files/sauerbraten.conf
new file mode 100644
index 000000000000..8d93bf62b788
--- /dev/null
+++ b/games-fps/sauerbraten/files/sauerbraten.conf
@@ -0,0 +1,28 @@
+# Config file for /etc/init.d/sauerbraten
+
+# Owner of Sauerbraten server processes (must be existing)
+USER="%GAMES_USER_DED%"
+GROUP="%GAMES_GROUP%"
+
+
+# Whether to run the dedicated server
+RUNSERVER="Yes"
+
+# Location of the dedicated server config directory
+SERVERCONFIG="%SYSCONFDIR%"
+
+# Additional command line arguments to the dedicated server
+SERVERARGS=""
+
+
+# Whether to run the master server
+RUNMASTER="No"
+
+# Location of the master server config directory
+MASTERCONFIG="%SYSCONFDIR%"
+
+# What port should the masterserver use
+MASTERPORT="28787"
+
+# What ip should the masterserver bind to
+MASTERIP=""
diff --git a/games-fps/sauerbraten/files/sauerbraten.init b/games-fps/sauerbraten/files/sauerbraten.init
new file mode 100644
index 000000000000..a5a7bb32966d
--- /dev/null
+++ b/games-fps/sauerbraten/files/sauerbraten.init
@@ -0,0 +1,74 @@
+#!/sbin/openrc-run
+
+depend() {
+ use net
+}
+
+start() {
+ [ $(echo ${RUNMASTER} | tr '[:upper:]' '[:lower:]') = "yes" ] && start_master
+ [ $(echo ${RUNSERVER} | tr '[:upper:]' '[:lower:]') = "yes" ] && start_server
+ true
+}
+
+start_server() {
+ ebegin "Starting Sauerbraten dedicated server"
+
+ # Make sure necessary parameters are set
+ SERVERCONFIG="${SERVERCONFIG:-%SYSCONFDIR%}"
+
+ if [ ! -d ${SERVERCONFIG} ]; then
+ einfo "No ${SERVERCONFIG} around. Creating new..."
+ mkdir ${SERVERCONFIG}
+ chown ${USER}:${GROUP} ${SERVERCONFIG}
+ fi
+
+ start-stop-daemon \
+ --quiet --start --user ${USER}:${GROUP} --chdir ${SERVERCONFIG} \
+ --make-pidfile --pidfile %GAMES_STATEDIR%/run/sauerbraten/server.pid \
+ --background --exec %LIBEXECDIR%/sauer_server -- ${SERVERARGS}
+ eend $?
+}
+
+start_master() {
+ ebegin "Starting Sauerbraten master server"
+
+ # Make sure necessary parameters are set
+ MASTERCONFIG="${MASTERCONFIG:-%SYSCONFDIR%}"
+ [ -n "${MASTERIP}" ] && MASTERPORT="${MASTERPORT:-28787}"
+ MASTERARGS="${MASTERCONFIG}/ ${MASTERPORT} ${MASTERIP}"
+
+ if [ ! -d ${MASTERCONFIG} ]; then
+ einfo "No ${MASTERCONFIG} around. Creating new..."
+ mkdir ${MASTERCONFIG}
+ chown ${USER}:${GROUP} ${MASTERCONFIG}
+ fi
+
+ start-stop-daemon \
+ --quiet --start --user ${USER}:${GROUP} \
+ --make-pidfile --pidfile %GAMES_STATEDIR%/run/sauerbraten/master.pid \
+ --background --exec %LIBEXECDIR%/sauer_master -- ${MASTERARGS}
+ eend $?
+}
+
+stop() {
+ [ $(echo ${RUNSERVER} | tr '[:upper:]' '[:lower:]') = "yes" ] && stop_server
+ [ $(echo ${RUNMASTER} | tr '[:upper:]' '[:lower:]') = "yes" ] && stop_master
+ true
+}
+
+stop_server() {
+ ebegin "Stopping Sauerbraten dedicated server"
+ start-stop-daemon --stop --retry 3 --pidfile %GAMES_STATEDIR%/run/sauerbraten/server.pid
+ eend $?
+}
+
+stop_master() {
+ ebegin "Stopping Sauerbraten master server"
+ start-stop-daemon --stop --retry 3 --pidfile %GAMES_STATEDIR%/run/sauerbraten/master.pid
+ eend $?
+}
+
+restart() {
+ svc_stop
+ svc_start
+}
diff --git a/games-fps/sauerbraten/metadata.xml b/games-fps/sauerbraten/metadata.xml
new file mode 100644
index 000000000000..ee6f39587e0e
--- /dev/null
+++ b/games-fps/sauerbraten/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>
+ <use>
+ <flag name="server">Compile server support</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">sauerbraten</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-fps/sauerbraten/sauerbraten-2013.02.03.ebuild b/games-fps/sauerbraten/sauerbraten-2013.02.03.ebuild
new file mode 100644
index 000000000000..2954fb16c859
--- /dev/null
+++ b/games-fps/sauerbraten/sauerbraten-2013.02.03.ebuild
@@ -0,0 +1,123 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils flag-o-matic gnome2-utils games
+
+EDITION="collect_edition"
+DESCRIPTION="Cube 2: Sauerbraten is an open source game engine (Cube 2) with freeware game data (Sauerbraten)"
+HOMEPAGE="http://sauerbraten.org/"
+SRC_URI="mirror://sourceforge/sauerbraten/sauerbraten/2013_02_03/sauerbraten_${PV//./_}_${EDITION}_linux.tar.bz2"
+
+LICENSE="ZLIB freedist"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="debug dedicated server"
+
+RDEPEND="
+ sys-libs/zlib
+ >=net-libs/enet-1.3.6:1.3
+ !dedicated? (
+ media-libs/libsdl[X,opengl]
+ media-libs/sdl-mixer[vorbis]
+ media-libs/sdl-image[png,jpeg]
+ virtual/opengl
+ virtual/glu
+ x11-libs/libX11 )"
+DEPEND="${RDEPEND}"
+
+S=${WORKDIR}/${PN}
+
+src_prepare() {
+ ecvs_clean
+ rm -rf sauerbraten_unix bin_unix src/{include,lib,vcpp}
+
+ # Patch makefile to use system enet instead of bundled
+ # respect CXXFLAGS, LDFLAGS
+ epatch "${FILESDIR}"/${P}-{system-enet,QA}.patch
+
+ # Fix links so they point to the correct directory
+ sed -i -e 's:docs/::' README.html || die
+}
+
+src_compile() {
+ use debug && append-cppflags -D_DEBUG
+ emake -C src master $(usex dedicated "server" "$(usex server "server client" "client")")
+}
+
+src_install() {
+ local LIBEXECDIR="${GAMES_PREFIX}/lib"
+ local DATADIR="${GAMES_DATADIR}/${PN}"
+ local STATEDIR="${GAMES_STATEDIR}/${PN}"
+
+ if ! use dedicated ; then
+ # Install the game data
+ insinto "${DATADIR}"
+ doins -r data packages
+
+ # Install the client executable
+ exeinto "${LIBEXECDIR}"
+ doexe src/sauer_client
+
+ # Install the client wrapper
+ games_make_wrapper "${PN}-client" "${LIBEXECDIR}/sauer_client -q\$HOME/.${PN} -r" "${DATADIR}"
+
+ # Create menu entry
+ newicon -s 256 data/cube.png ${PN}.png
+ make_desktop_entry "${PN}-client" "Cube 2: Sauerbraten"
+ fi
+
+ # Install the server config files
+ insinto "${STATEDIR}"
+ doins "server-init.cfg"
+
+ # Install the server executables
+ exeinto "${LIBEXECDIR}"
+ doexe src/sauer_master
+ use dedicated || use server && doexe src/sauer_server
+
+ games_make_wrapper "${PN}-server" \
+ "${LIBEXECDIR}/sauer_server -k${DATADIR} -q${STATEDIR}"
+ games_make_wrapper "${PN}-master" \
+ "${LIBEXECDIR}/sauer_master ${STATEDIR}"
+
+ # Install the server init script
+ keepdir "${GAMES_STATEDIR}/run/${PN}"
+ cp "${FILESDIR}"/${PN}.init "${T}" || die
+ sed -i \
+ -e "s:%SYSCONFDIR%:${STATEDIR}:g" \
+ -e "s:%LIBEXECDIR%:${LIBEXECDIR}:g" \
+ -e "s:%GAMES_STATEDIR%:${GAMES_STATEDIR}:g" \
+ "${T}"/${PN}.init || die
+ newinitd "${T}"/${PN}.init ${PN}
+ cp "${FILESDIR}"/${PN}.conf "${T}" || die
+ sed -i \
+ -e "s:%SYSCONFDIR%:${STATEDIR}:g" \
+ -e "s:%LIBEXECDIR%:${LIBEXECDIR}:g" \
+ -e "s:%GAMES_USER_DED%:${GAMES_USER_DED}:g" \
+ -e "s:%GAMES_GROUP%:${GAMES_GROUP}:g" \
+ "${T}"/${PN}.conf || die
+ newconfd "${T}"/${PN}.conf ${PN}
+
+ dodoc src/*.txt docs/dev/*.txt
+ dohtml -r README.html docs/*
+
+ prepgamesdirs
+}
+
+pkg_preinst() {
+ games_pkg_preinst
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ gnome2_icon_cache_update
+
+ elog "If you plan to use map editor feature copy all map data from ${DATADIR}"
+ elog "to corresponding folder in your HOME/.${PN}"
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/games-fps/serious-sam-tfe/Manifest b/games-fps/serious-sam-tfe/Manifest
new file mode 100644
index 000000000000..f2e8c948f2f9
--- /dev/null
+++ b/games-fps/serious-sam-tfe/Manifest
@@ -0,0 +1,8 @@
+DIST ssam-tfe-lnx-beta1a.run 8802528 SHA256 844b0387696e6e217285833fa7506e1a2d2494a38d5e843edb3a063bce32b7ea SHA512 dfef0c34a6f96e296272a1e82a3ffeaa3fde4a7affc8290f6d1878e5c65855ec24ab57fe895b62795369acf11fdfbc93e47c8cfaf362d531fbccca9aadb8f0fc WHIRLPOOL 95de7e653d896fa67b50640083b44f685eec70e425accb671470853345d0ef8dcb5d00abf853059c5559521c28c5bd4de8d7322c0352ca132289d315410c464f
+DIST ssamtfe-beta1b.sh.bin 1799399 SHA256 712309ac99ed139ffbd91360167c5e82d7fb8378b005c9873e835f581011b619 SHA512 c7f416b2b21443c2092ebe8806757b59d19b286956f6c2ce74b77f9aaf4ec6a0ff3cd1db888bdb39cc8b427238c4a851c875bc9c9ec4733c82a557231391a346 WHIRLPOOL 4b095d4a96a9dae1d474a8a73c23b76154fcc3d9567a5f2b926abadd5ab86675458fdb48504a5ce4f340d632e9eac0c06530168c47f910c0208a53e6401eed3e
+DIST ssamtfe-beta2.sh.bin 3083565 SHA256 6e43a8f536423f5d675a339925516d608f1f4ace9ad360674956b5f9cc3376b6 SHA512 9e592d8c47d169738eb9b0c7c3ee4960fdf1f0427d53ed1d5918934ecd0fe0f81c34798de7410f971e36b7b11f7a569fdcb74136610bde0472d059c529c826c5 WHIRLPOOL 1702ee0537a9193084703e4cbe0fbdc0153db446b5b42be6cd2bcca028a9729e4aba0b9f46c3a03e71898aa00b3bfacb6a71fb023c0c70a51813cfc64b69e43e
+DIST ssamtfe-beta3.sh.bin 3828409 SHA256 609f5b5fd21821e6a079b36770d9dbdcabc5e64ed6ac190d4005df5ec22e980f SHA512 a3055cab0a5162358ae7696eac5613a344a3ab2a1369f3693e56647650f4d21ebc566ee99fb5f03885b4416aec830d93b00e838d9ebb8187924918b333b072a2 WHIRLPOOL 9a8db0a4a47b695f9389aefc1dca04689129269f820d3bc392834443eb8d1d051a972f82aaeace15250715fd9a263fe3f1ebe846c3b349e66971160e47e73fed
+EBUILD serious-sam-tfe-1_beta3.ebuild 3179 SHA256 f000cda7b93c375e6e029a02ce42ade7198a66e1cc0b2c144e3af40537dbc59f SHA512 85a7f0571f2d7cf715a5902c88bec1de1095ae784c6ad2aef0a2080ab7eb73a374a18447ced56fb52f129e517fa9bc449f42a911f878fe651c42156444d877e9 WHIRLPOOL aef7207c95a7e05613599fa205639e44ec0e5e4cc84cea53aab616fcae488d926bed0fb822767135fa51ea052e1f72170e93ba23a6576a475f24258f93061a67
+MISC ChangeLog 2205 SHA256 be2cf996455ee04c808b63a4d8d098fb2fcbd9e218572ac1545a38c2d62f600a SHA512 92684eac76fd2dda95b394583df571fe0b9e61cb566b640983e7f021cc0c0a606bd9483a169af52ce1237ca4bd53cf95bb100f0bc06e7f9247eea541e148b7bf WHIRLPOOL 13971903a19e0bf2e267556f663a153dbb0c970608500482ff0bcc14595c3b4f18fd8e3e554869fa4479902dc333b49b148187152a08ec231372031cb2a6c63a
+MISC ChangeLog-2015 894 SHA256 ec736c9e5761b1438fe0141717b10ef7719d1e25bc03c14d6ce26f79ed6a3152 SHA512 f53dbadea1bf00de8dad55d6b25f6ecf076cfb3cacbd78cb637b9b4bf497d8cc08b3104198b5f3d6e054473ae7b37ad5fd86f12c0a9bdc2cb88a898aa3033bec WHIRLPOOL 635a948cf31d375ff08a84327a9e746e2f4e27fdc5a5f051dcaa689e9da56f8ae32f727100eeb27eb30d80261da99ae0ab8480161248180e7fd08943677cf4e6
+MISC metadata.xml 167 SHA256 5fe493e76bba84455c54b3a46adfae5a1bfe01c764ef0d9e5f6d3e8a1d142188 SHA512 7c8decb24ee3a850e38186cf3c7f8933a28017426806870ad6ef9ceb2533be147a2681fc789b535a81cb528af8c29d90d3006e4f250aee23bd7dea4561294e33 WHIRLPOOL dc6c3dfc7fd7f0d76c97f0786cb76a55b8564f8437f96d4ccebf985817b9f6dcc4c61830aa5df80d725e4a54b281ea2e03d6b0859214af081112cba15025e64b
diff --git a/games-fps/serious-sam-tfe/metadata.xml b/games-fps/serious-sam-tfe/metadata.xml
new file mode 100644
index 000000000000..7a38bb900964
--- /dev/null
+++ b/games-fps/serious-sam-tfe/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+</pkgmetadata>
diff --git a/games-fps/serious-sam-tfe/serious-sam-tfe-1_beta3.ebuild b/games-fps/serious-sam-tfe/serious-sam-tfe-1_beta3.ebuild
new file mode 100644
index 000000000000..e42a75cfd668
--- /dev/null
+++ b/games-fps/serious-sam-tfe/serious-sam-tfe-1_beta3.ebuild
@@ -0,0 +1,137 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit cdrom eutils games unpacker
+
+MY_PN="ssamtfe"
+
+DESCRIPTION="Serious Sam: The First Encounter"
+HOMEPAGE="http://www.croteam.com/
+ http://www.seriouszone.com/
+ http://icculus.org/betas/ssam/"
+SRC_URI="http://icculus.org/betas/ssam/ssam-tfe-lnx-beta1a.run
+ http://icculus.org/updates/ssam/${MY_PN}-beta1b.sh.bin
+ http://icculus.org/updates/ssam/${MY_PN}-beta2.sh.bin
+ http://icculus.org/updates/ssam/${MY_PN}-beta3.sh.bin"
+LICENSE="LOKI-EULA"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+RESTRICT="strip"
+IUSE="alsa"
+
+RDEPEND="
+ >=media-libs/libsdl-1.2.15-r5[X,joystick,opengl,video,abi_x86_32(-)]
+ virtual/opengl[abi_x86_32(-)]
+ alsa? (
+ >=media-libs/libogg-1.3.1[abi_x86_32(-)]
+ >=media-libs/libsdl-1.2.15-r5[alsa,sound,abi_x86_32(-)]
+ >=media-libs/libvorbis-1.3.3-r1[abi_x86_32(-)]
+ )
+"
+
+DEPEND="games-util/loki_patch"
+
+S=${WORKDIR}
+
+QA_TEXTRELS="
+opt/ssamtfe/Bin/libGame.so
+opt/ssamtfe/Bin/libEntities.so
+opt/ssamtfe/Bin/libamp11lib.so
+opt/ssamtfe/Bin/libShaders.so
+"
+
+QA_FLAGS_IGNORED="
+opt/ssamtfe/Bin/libEntities.so
+opt/ssamtfe/Bin/libGame.so
+opt/ssamtfe/Bin/libamp11lib.so
+opt/ssamtfe/Bin/libShaders.so
+opt/ssamtfe/Bin/ssam_lnxded
+opt/ssamtfe/Bin/ssam_lnxded.dynamic
+opt/ssamtfe/Bin/ssam_lnx.dynamic
+opt/ssamtfe/Bin/ssam_lnx
+"
+
+pkg_setup() {
+ games_pkg_setup
+
+ cdrom_get_cds "Install/1_00c.gro"
+}
+
+src_unpack() {
+ mkdir Mods Levels
+ unpack_makeself ssam-tfe-lnx-beta1a.run
+
+ # Copy files during unpack as the patches below apply to some of them
+ einfo "Copying from ${CDROM_ROOT}"
+ cp -r "${CDROM_ROOT}/Install"/* . || die "copy from CD failed"
+
+ nonfatal unpack ./SeriousSamPatch105_USA_linux.tar.bz2
+ unpack ./setupstuff.tar.gz
+ unpack ./bins.tar.bz2
+
+ # We need only runscript from bin/ directory
+ mv bin/${MY_PN} .
+ rm -r bin
+}
+
+src_prepare() {
+ # Apply the Icculus patches
+ local v
+ for v in 1b 2 3 ; do
+ echo "Unpacking version ${v}"
+ unpack_makeself "${MY_PN}-beta${v}.sh.bin"
+ loki_patch patch.dat . || die "loki patch ${v} failed"
+ rm patch.dat
+ done
+
+ # Remove unneeded files from Loki patches
+ rm -r bin
+
+ # Switch to dynamic executable - runs at sane speeds on modern hardware
+ sed -i -e 's;exec "./ssam_lnx";exec "./ssam_lnx.dynamic";' ${MY_PN} \
+ || die "dynamic binary update failed"
+}
+
+src_install() {
+ local dir=${GAMES_PREFIX_OPT}/${MY_PN}
+
+ # Remove bundled libs
+ rm Bin/{libogg,libvorbis,libvorbisfile}.so
+
+ # Remove unneeded files
+ rm *.{bin,bz2,cab,exe,ex_,ini,gz,sh}
+ rm -r data setup* Players Temp
+
+ # Install icon
+ newicon ssam.xpm ${MY_PN}.xpm
+
+ # Install documentation
+ dodoc README*
+
+ # Install all other files
+ insinto "${dir}"
+ doins -r *
+
+ # Install executables and wrapper script
+ exeinto "${dir}"
+ doexe ${MY_PN}
+ exeinto "${dir}"/Bin
+ doexe Bin/ssam_lnx*
+
+ games_make_wrapper ${MY_PN} ./${MY_PN} "${dir}" "${dir}"
+ make_desktop_entry ${MY_PN} "Serious Sam - First Encounter" ${MY_PN}
+
+ # Ensure that file datestamps from the CD are sane
+ find "${D}/${dir}" -exec touch '{}' \;
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+
+ elog "The warning regarding 'XiG-SUNDRY-NONSTANDARD missing' is harmless"
+ echo
+}
diff --git a/games-fps/serious-sam-tse/Manifest b/games-fps/serious-sam-tse/Manifest
new file mode 100644
index 000000000000..0556c5746c31
--- /dev/null
+++ b/games-fps/serious-sam-tse/Manifest
@@ -0,0 +1,6 @@
+DIST ssamtse-beta1.sh.bin 7952607 SHA256 4be124430c5d013842b97287623e0aed83d2003eeb619abbcb286bc95e036304 SHA512 43f07fbaef0bf8f90644a748931220331ed5f9179412e5a37daf0472aa98c5bb2455148c54254eae1af0b38ba8a3fde9c310cd8d488ea6b2806fa0f6fb1e1644 WHIRLPOOL b05dcf3e15a488bbf5fe7a076c1ca49ced5f8ba6887750c2f1c6306ce74716d71ce3a7fa83c9e33f4c97b87778a2b631afb8b11f597f77907a639bc428c314ee
+EBUILD serious-sam-tse-1_beta1-r1.ebuild 4698 SHA256 86d8c581e57df282a6d28aa9cde66e97664c0cb273a9ef0b27eeb1e85683a883 SHA512 f9d5b86d18d3cd1257ad087445a0bd45c088fd0376a367e89aa3c1236d3d7fe29929cfb4945dcf2dcfe126faf37635295263f688a185fdf514ef47b8a172c571 WHIRLPOOL 19ae179b42f0b81433073bcc58ead9a6cb638c18f9a843b92a5b29a245e60b8b29ca54d04eeb43a94f0beb98bdf23573a39b4dc5db5bcc614cbf9241faf3e21b
+EBUILD serious-sam-tse-1_beta1.ebuild 4102 SHA256 6e1e712a4f8e073886fc18243ab3c124ec4066de7a9ab606c75d9d08cd9614ef SHA512 0addb9a93af218a081c6b60b795d8529c625ed0c05152bbdc9ac2a5be88ffe83362ab439f42974029a9044c6ab85b57bc31d73bb873e648051babeaa058a4108 WHIRLPOOL ae3d8ff4be61baab3c302a8ce731cdea5b375e53be50382cb1e672e1f8fa053eeeaff226572d1c4e3a9bd0bebf7cc11552fde98de4f8e5f417ea821f1f08dca3
+MISC ChangeLog 2205 SHA256 0afa1285197b39fe07ab276c7db7f1f990508cb07ad7273459d43ac2fb66aae6 SHA512 cce0893c8950b4a8e4e01249b5d463321d30fcfbffa342e223bad226545aa6c88c1c9ed6dc715ddbf2361ec87bb7cf04643a0bcbc81cf48c02a2855e9d2cbb58 WHIRLPOOL 0a7aff096715877b219f03f021601d9f39d55ba29cd8355b3e562e00b9378168cde13dd21ab8062655b7ae9c38e04922d710418c7b47206b004114f0f83bba08
+MISC ChangeLog-2015 918 SHA256 8b3d291c88d7aa83e026a8507cf39d608088e4a98cb288fa0dc6148851e816bf SHA512 0271cad7843acff768011bdc0f6ef7057fbe5d614d5e2d4d1fba2ca4a584eee4445383911c7fa782ed0eebb71e921587b46b71e00491d254ca6872c4ee18fbfb WHIRLPOOL 3b04a3e9e53fe9944fa0d68b48c560e5cb9631a733ef8c73efab33f9b324b8c8a1505b6cea72827ccb3d53cc1cdfc958ff8100da9638e428c0ad098ddaa12833
+MISC metadata.xml 167 SHA256 5fe493e76bba84455c54b3a46adfae5a1bfe01c764ef0d9e5f6d3e8a1d142188 SHA512 7c8decb24ee3a850e38186cf3c7f8933a28017426806870ad6ef9ceb2533be147a2681fc789b535a81cb528af8c29d90d3006e4f250aee23bd7dea4561294e33 WHIRLPOOL dc6c3dfc7fd7f0d76c97f0786cb76a55b8564f8437f96d4ccebf985817b9f6dcc4c61830aa5df80d725e4a54b281ea2e03d6b0859214af081112cba15025e64b
diff --git a/games-fps/serious-sam-tse/metadata.xml b/games-fps/serious-sam-tse/metadata.xml
new file mode 100644
index 000000000000..7a38bb900964
--- /dev/null
+++ b/games-fps/serious-sam-tse/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+</pkgmetadata>
diff --git a/games-fps/serious-sam-tse/serious-sam-tse-1_beta1-r1.ebuild b/games-fps/serious-sam-tse/serious-sam-tse-1_beta1-r1.ebuild
new file mode 100644
index 000000000000..f2ebf0bb2038
--- /dev/null
+++ b/games-fps/serious-sam-tse/serious-sam-tse-1_beta1-r1.ebuild
@@ -0,0 +1,136 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cdrom eutils versionator unpacker
+
+# MY_PV will be e.g. "beta1"
+MY_PN="ssamtse"
+MY_PV=$(get_version_component_range 2-2)
+
+DESCRIPTION="Serious Sam: The Second Encounter"
+HOMEPAGE="http://www.croteam.com/
+ http://www.seriouszone.com/"
+SRC_URI="http://icculus.org/betas/ssam/${MY_PN}-${MY_PV}.sh.bin"
+
+LICENSE="LOKI-EULA"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+RESTRICT="strip"
+IUSE="alsa"
+
+DEPEND=">=app-arch/unshield-0.6"
+RDEPEND="
+ >=media-libs/libogg-1.3.1[abi_x86_32(-)]
+ >=media-libs/libsdl-1.2.15-r5[X,joystick,opengl,video,abi_x86_32(-)]
+ virtual/opengl[abi_x86_32(-)]
+ alsa? (
+ >=media-libs/libsdl-1.2.15-r5[alsa,sound,abi_x86_32(-)]
+ >=media-libs/libvorbis-1.3.3-r1[abi_x86_32(-)]
+ )
+"
+
+S=${WORKDIR}
+
+QA_TEXTRELS="
+opt/ssamtse/Bin/libEntitiesMP.so
+opt/ssamtse/Bin/libGameMP.so
+opt/ssamtse/Bin/libamp11lib.so
+opt/ssamtse/Bin/libShaders.so
+"
+
+QA_FLAGS_IGNORED="
+opt/ssamtse/Bin/libEntitiesMP.so
+opt/ssamtse/Bin/libGameMP.so
+opt/ssamtse/Bin/libamp11lib.so
+opt/ssamtse/Bin/libShaders.so
+opt/ssamtse/Bin/ssam_lnxded
+opt/ssamtse/Bin/ssam_lnxded.dynamic
+opt/ssamtse/Bin/ssam_lnx.dynamic
+opt/ssamtse/Bin/ssam_lnx
+"
+
+pkg_setup() {
+ cdrom_get_cds "Install/SE1_00.gro"
+}
+
+src_unpack() {
+ mkdir Levels Mods
+
+ unpack_makeself "${MY_PN}-${MY_PV}.sh.bin"
+ unpack ./setupstuff.tar.gz
+ unpack ./bins.tar.bz2
+}
+
+src_prepare() {
+ # Switch to dynamic executable - runs at sane speeds on modern hardware
+ sed -i -e 's;exec "./ssam_lnx";exec "./ssam_lnx.dynamic";' bin/${MY_PN} \
+ || die "dynamic binary update failed"
+}
+
+src_install() {
+ local dir="/opt/${MY_PN}"
+
+ # Remove bundled libs
+ rm -f Bin/{libogg.so,libvorbis.so,libvorbisfile.so} || die "failed to remove bundled libs"
+
+ einfo "Copying from ${CDROM_ROOT}"
+ insinto "${dir}"
+ doins -r "${CDROM_ROOT}"/Install/* || die "doins CD failed"
+
+ # Correct paths of copied resource files
+ mv "${D}/${dir}"/Locales/eng/Controls/* "${D}/${dir}"/Controls/ || die "Failed to move file"
+ mv "${D}/${dir}"/Locales/eng/Data/Var/* "${D}/${dir}"/Data/Var/ || die "Failed to move file"
+ mv "${D}/${dir}"/Locales/eng/Demos/* "${D}/${dir}"/Demos/ || die "Failed to move file"
+ mv "${D}/${dir}"/Locales/eng/Help/* "${D}/${dir}"/Help/ || die "Failed to move file"
+ mv "${D}/${dir}"/Locales/eng/Mods/Warped/Scripts/Addons/WarpedTweak.des "${D}/${dir}"/Mods/Warped/Scripts/Addons/ || die "Failed to move file"
+ mv "${D}/${dir}"/Locales/eng/Mods/Warped/Readme.html "${D}/${dir}"/Mods/Warped/ || die "Failed to move file"
+ mv "${D}/${dir}"/Locales/eng/Mods/*.des "${D}/${dir}"/Mods/ || die "Failed to move file"
+ mv "${D}/${dir}"/Locales/eng/Scripts/Addons/* "${D}/${dir}"/Scripts/Addons/ || die "Failed to move file"
+ mv "${D}/${dir}"/Locales/eng/Scripts/CustomOptions/* "${D}/${dir}"/Scripts/CustomOptions/ || die "Failed to move file"
+ mv "${D}/${dir}"/Locales/eng/Scripts/NetSettings/* "${D}/${dir}"/Scripts/NetSettings/ || die "Failed to move file"
+ rm -rf "${D}/${dir}"/Locales || die "failed to removed Locales dir"
+
+ # The data CABs contain optional multiplayer maps in the "Levels" directory
+ einfo "Extracting additional levels"
+ unshield x "${D}/${dir}"/data1.cab >/dev/null || die "unshield data1.cab failed"
+ rm "${D}/${dir}"/data?.cab || die "Failed to remove cab"
+
+ # Correct paths of extracted levels
+ mv Levels/Levels/LevelsMP/* Levels/LevelsMP/ || die "Failed to move file"
+ rm -rf Levels/Levels || die "Failed to remove dir"
+ mv Levels/LevelsMP/Technology/* Levels/ || die "Failed to move file"
+ rmdir Levels/LevelsMP/Technology || die "Failed to remove dir"
+ mv Levels/Mods/Warped/ Mods/ || die "Failed to move file"
+ rmdir Levels/Mods/ || die "Failed to remove dir"
+
+ doins -r Bin Data Levels Mods *.txt README* \
+ || die "doins main failed"
+
+ # Install bins last to ensure they are marked executable
+ exeinto "${dir}"
+ doexe bin/${MY_PN}
+ exeinto "${dir}"/Bin
+ doexe Bin/{ssam_lnx*,*.so}
+
+ # Remove useless Windows files
+ rm -rf "${D}/${dir}/Bin"/{*.exe,*.dll,*.DLL,GameSpy} || die "Failed to remove windows cruft"
+ rm -f "${D}/${dir}"/{*.exe,*.ex_,*.bmp,*.inx,*.hdr,*.bin} || die "Failed to remove windows cruft"
+
+ dodoc README.linux
+
+ newicon ssam.xpm ${MY_PN}.xpm
+ make_wrapper ${MY_PN} ./${MY_PN} "${dir}" "${dir}"
+ make_desktop_entry ${MY_PN} "Serious Sam - Second Encounter" ${MY_PN}
+
+ # Ensure that file datestamps from the CD are sane
+ find "${D}/${dir}" -exec touch '{}' \; || die "touch failed"
+}
+
+pkg_postinst() {
+ elog "The warning regarding 'XiG-SUNDRY-NONSTANDARD missing' is harmless."
+ elog "Important information about the Linux port is at:"
+ elog " http://files.seriouszone.com/download.php?fileid=616"
+ echo
+}
diff --git a/games-fps/serious-sam-tse/serious-sam-tse-1_beta1.ebuild b/games-fps/serious-sam-tse/serious-sam-tse-1_beta1.ebuild
new file mode 100644
index 000000000000..88a7ba565aa3
--- /dev/null
+++ b/games-fps/serious-sam-tse/serious-sam-tse-1_beta1.ebuild
@@ -0,0 +1,142 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit cdrom eutils versionator games unpacker
+
+# MY_PV will be e.g. "beta1"
+MY_PN="ssamtse"
+MY_PV=$(get_version_component_range 2-2)
+
+DESCRIPTION="Serious Sam: The Second Encounter"
+HOMEPAGE="http://www.croteam.com/
+ http://www.seriouszone.com/"
+SRC_URI="http://icculus.org/betas/ssam/${MY_PN}-${MY_PV}.sh.bin"
+
+LICENSE="LOKI-EULA"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+RESTRICT="strip"
+IUSE="alsa"
+
+DEPEND=">=app-arch/unshield-0.6"
+RDEPEND="
+ >=media-libs/libogg-1.3.1[abi_x86_32(-)]
+ >=media-libs/libsdl-1.2.15-r5[X,joystick,opengl,video,abi_x86_32(-)]
+ virtual/opengl[abi_x86_32(-)]
+ alsa? (
+ >=media-libs/libsdl-1.2.15-r5[alsa,sound,abi_x86_32(-)]
+ >=media-libs/libvorbis-1.3.3-r1[abi_x86_32(-)]
+ )
+"
+
+S=${WORKDIR}
+
+QA_TEXTRELS="
+opt/ssamtse/Bin/libEntitiesMP.so
+opt/ssamtse/Bin/libGameMP.so
+opt/ssamtse/Bin/libamp11lib.so
+opt/ssamtse/Bin/libShaders.so
+"
+
+QA_FLAGS_IGNORED="
+opt/ssamtse/Bin/libEntitiesMP.so
+opt/ssamtse/Bin/libGameMP.so
+opt/ssamtse/Bin/libamp11lib.so
+opt/ssamtse/Bin/libShaders.so
+opt/ssamtse/Bin/ssam_lnxded
+opt/ssamtse/Bin/ssam_lnxded.dynamic
+opt/ssamtse/Bin/ssam_lnx.dynamic
+opt/ssamtse/Bin/ssam_lnx
+"
+
+pkg_setup() {
+ games_pkg_setup
+
+ cdrom_get_cds "Install/SE1_00.gro"
+}
+
+src_unpack() {
+ mkdir Levels Mods
+
+ unpack_makeself "${MY_PN}-${MY_PV}.sh.bin"
+ unpack ./setupstuff.tar.gz
+ unpack ./bins.tar.bz2
+}
+
+src_prepare() {
+ # Switch to dynamic executable - runs at sane speeds on modern hardware
+ sed -i -e 's;exec "./ssam_lnx";exec "./ssam_lnx.dynamic";' bin/${MY_PN} \
+ || die "dynamic binary update failed"
+}
+
+src_install() {
+ local dir=${GAMES_PREFIX_OPT}/${MY_PN}
+
+ # Remove bundled libs
+ rm -f Bin/{libogg.so,libvorbis.so,libvorbisfile.so}
+
+ einfo "Copying from ${CDROM_ROOT}"
+ insinto "${dir}"
+ doins -r "${CDROM_ROOT}"/Install/* || die "doins CD failed"
+
+ # Correct paths of copied resource files
+ mv "${D}/${dir}"/Locales/eng/Controls/* "${D}/${dir}"/Controls/
+ mv "${D}/${dir}"/Locales/eng/Data/Var/* "${D}/${dir}"/Data/Var/
+ mv "${D}/${dir}"/Locales/eng/Demos/* "${D}/${dir}"/Demos/
+ mv "${D}/${dir}"/Locales/eng/Help/* "${D}/${dir}"/Help/
+ mv "${D}/${dir}"/Locales/eng/Mods/Warped/Scripts/Addons/WarpedTweak.des "${D}/${dir}"/Mods/Warped/Scripts/Addons/
+ mv "${D}/${dir}"/Locales/eng/Mods/Warped/Readme.html "${D}/${dir}"/Mods/Warped/
+ mv "${D}/${dir}"/Locales/eng/Mods/*.des "${D}/${dir}"/Mods/
+ mv "${D}/${dir}"/Locales/eng/Scripts/Addons/* "${D}/${dir}"/Scripts/Addons/
+ mv "${D}/${dir}"/Locales/eng/Scripts/CustomOptions/* "${D}/${dir}"/Scripts/CustomOptions/
+ mv "${D}/${dir}"/Locales/eng/Scripts/NetSettings/* "${D}/${dir}"/Scripts/NetSettings/
+ rm -rf "${D}/${dir}"/Locales
+
+ # The data CABs contain optional multiplayer maps in the "Levels" directory
+ einfo "Extracting additional levels"
+ unshield x "${D}/${dir}"/data1.cab >/dev/null || die "unshield data1.cab failed"
+ rm "${D}/${dir}"/data?.cab
+
+ # Correct paths of extracted levels
+ mv Levels/Levels/LevelsMP/* Levels/LevelsMP/
+ rm -rf Levels/Levels
+ mv Levels/LevelsMP/Technology/* Levels/
+ rmdir Levels/LevelsMP/Technology
+ mv Levels/Mods/Warped/ Mods/
+ rmdir Levels/Mods/
+
+ doins -r Bin Data Levels Mods *.txt README* \
+ || die "doins main failed"
+
+ # Install bins last to ensure they are marked executable
+ exeinto "${dir}"
+ doexe bin/${MY_PN}
+ exeinto "${dir}"/Bin
+ doexe Bin/{ssam_lnx*,*.so}
+
+ # Remove useless Windows files
+ rm -rf "${D}/${dir}/Bin"/{*.exe,*.dll,*.DLL,GameSpy}
+ rm -f "${D}/${dir}"/{*.exe,*.ex_,*.bmp,*.inx,*.hdr,*.bin}
+
+ dodoc README.linux
+
+ newicon ssam.xpm ${MY_PN}.xpm
+ games_make_wrapper ${MY_PN} ./${MY_PN} "${dir}" "${dir}"
+ make_desktop_entry ${MY_PN} "Serious Sam - Second Encounter" ${MY_PN}
+
+ # Ensure that file datestamps from the CD are sane
+ find "${D}/${dir}" -exec touch '{}' \;
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+
+ elog "The warning regarding 'XiG-SUNDRY-NONSTANDARD missing' is harmless."
+ elog "Important information about the Linux port is at:"
+ elog " http://files.seriouszone.com/download.php?fileid=616"
+ echo
+}
diff --git a/games-fps/soldieroffortune-demo/Manifest b/games-fps/soldieroffortune-demo/Manifest
new file mode 100644
index 000000000000..1fc72a319a5f
--- /dev/null
+++ b/games-fps/soldieroffortune-demo/Manifest
@@ -0,0 +1,5 @@
+DIST sof-demo.run 92496052 SHA256 30f671a7e53c9005fea8ef5760e4174e7f7a31114ed5bfd6c8525ceb1bb6d929 SHA512 d285cffe5ed9017409737120d63f1bb14a4ae2f54a83bc2b4d838e82440f43fe430ea63b7765496121633e6fbf40053fe2c5bbda37e48e6da8b18aaa2ff540a6 WHIRLPOOL f1744b789eb7818753e4287e60ec2ad0359697f622fb8a043a4d4ab8cec64f2f77150a81865d87b769ed4650e0bb1588a8364aa471f7b6a0881d8d958442309e
+EBUILD soldieroffortune-demo-0.57-r1.ebuild 1682 SHA256 68dd9b778864cbca33073906f4dbf1de255b2757eda1299bbc2cb9e99249ce8a SHA512 68d582c629baf7ee1b2033edad9e6852a57dbda9a7863cfc143e89cf113120a7617b2311d3d90094b9dec695dbf2ddba60893c0a7aa3bc087b0c70a3fd1ef37e WHIRLPOOL 607c8efea9eb206a3e54a12a39aebdd14e0598f2a0f63174e2c521f0733d5c089567881f55d00d0356f2d15d27d44b38f05be1c7a060efef99166e35f1cad1f3
+MISC ChangeLog 3130 SHA256 4726d709deb35ad09c34a58b4ff8d5c90f1f77669f32ccefce9e7cfe1843f899 SHA512 66ac8da788ce172d773b6cd593fc59d2110fd3aa5e3b8a34afdf8d84826acbf8e0ca91ccefaccc4abc0da6290fe6d4e994f08dd3e5f34970e8b852994832b636 WHIRLPOOL 73933801f8c0fd277d6121e640cd2ad191e9c87b05f6568ba72e6dfec40f1eab97fafcf60aa2b806b0ddad01b41d32a70c4053f88835dc9a5f772c1c8352b869
+MISC ChangeLog-2015 2282 SHA256 3ff55be5a999672944ba4918969fa9b146a8af6b9c740ee8ed7f1b6ac799849f SHA512 91469e848b138bc960177d6a679fa1449d8356800fe75011470dba9f11bde0eb05128f4eaa898c081fd5f4726698a58efeb80dc6aca7135ec447ba7136660c41 WHIRLPOOL 694cfa35df853a3b3528026a14c9b7f0ee0de3804a7e6de50196e3e7db93f1667e8f7c58557838d9a60c056634b4429939d94eac0a31da9cbabe5c8a8cbc4b83
+MISC metadata.xml 766 SHA256 a6a7ee31c28d7dd8562f0cc333692e03e6687177ad0b443b15704fd31164175b SHA512 6033ad956b8814ed58beb37af9f197abd0f9ea3c3e52ece7cca26c2f300035870952f4f9ed6e717c977b7224fc043e8836b1463e9c899dc5026006778e7c410a WHIRLPOOL ff479727bc6b0ca43dd54de2e1c80d0118c9390edb3d0c9a94c87e00fa8ce85ba23005d4b9abad9f10c1b3c24f76c0652592f3813843f5640d2c6a5362d69b42
diff --git a/games-fps/soldieroffortune-demo/metadata.xml b/games-fps/soldieroffortune-demo/metadata.xml
new file mode 100644
index 000000000000..0ea4bdc912f5
--- /dev/null
+++ b/games-fps/soldieroffortune-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>
+Soldier of Fortune is a first-person 3-D shooter based on the mercenary trade. You play as John, an ex-military mercinary who still has plenty of good friends on the inside. For a wad of bucks, you'll do the job -- no cares, no worries. Just get the gun, play for keeps, get paid, on to the next one -- that's your life. That's what you do. And you're good at it, one of the best even. But now is the time for your biggest challenge ever. This is the demo version of the game.
+</longdescription>
+</pkgmetadata>
diff --git a/games-fps/soldieroffortune-demo/soldieroffortune-demo-0.57-r1.ebuild b/games-fps/soldieroffortune-demo/soldieroffortune-demo-0.57-r1.ebuild
new file mode 100644
index 000000000000..5a3b9c6f4cb7
--- /dev/null
+++ b/games-fps/soldieroffortune-demo/soldieroffortune-demo-0.57-r1.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 unpacker games
+
+MY_PN=${PN/soldieroffortune/sof}
+
+DESCRIPTION="First-person shooter based on the mercenary trade"
+HOMEPAGE="http://www.lokigames.com/products/sof/"
+SRC_URI="mirror://lokigames/loki_demos/${MY_PN}.run"
+
+LICENSE="LOKI-EULA"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+RESTRICT="strip"
+
+DEPEND="games-util/loki_patch"
+RDEPEND="virtual/opengl[abi_x86_32(-)]
+ media-libs/libsdl[X,opengl,sound,abi_x86_32(-)]
+ x11-libs/libXrender[abi_x86_32(-)]
+ x11-libs/libXrandr[abi_x86_32(-)]
+ x11-libs/libXcursor[abi_x86_32(-)]
+ media-libs/smpeg[abi_x86_32(-)]"
+
+S=${WORKDIR}
+
+dir=${GAMES_PREFIX_OPT}/${PN}
+Ddir=${D}/${dir}
+QA_PREBUILT="${dir:1}/* ${dir:1}/base/*so"
+
+src_install() {
+ local demo="data/demos/sof_demo"
+ local exe="sof-bin.x86"
+
+ loki_patch patch.dat data/ || die
+
+ insinto "${dir}"
+ exeinto "${dir}"
+ doins -r "${demo}"/*
+ doexe "${demo}/${exe}"
+
+ # Replace bad library
+ dosym /usr/$(use amd64 && echo lib32 || echo lib)/libSDL.so "${dir}"/libSDL-1.1.so.0
+
+ games_make_wrapper ${PN} "./${exe}" "${dir}" "${dir}"
+
+ # fix buffer overflow
+ sed -i \
+ -e '/^exec/i \
+export MESA_EXTENSION_MAX_YEAR=2003 \
+export __GL_ExtensionStringVersion=17700' "${ED}"${GAMES_BINDIR}/${PN} || die
+
+ newicon "${demo}"/launch/box.png ${PN}.png
+ make_desktop_entry ${PN} "Soldier of Fortune (Demo)"
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ ewarn "This game requires OSS sound device /dev/dsp ; make sure the module"
+ ewarn "snd_pcm_oss is loaded and/or built into your kernel or there will be no sound"
+ elog
+ elog "Run '${PN}' to start the game"
+}
diff --git a/games-fps/soldieroffortune/Manifest b/games-fps/soldieroffortune/Manifest
new file mode 100644
index 000000000000..d2e32d09b229
--- /dev/null
+++ b/games-fps/soldieroffortune/Manifest
@@ -0,0 +1,5 @@
+DIST sof-1.06a-cdrom-x86.run 22928437 SHA256 44546073f26a610ec554f3d197e157a6691c0891651689308e62feccc01a1c16 SHA512 91ef3953bd6b6630ab602f64d15a3056f85d90139b18aa3eb9a9a0a75db2ece61ef683ddf1d03b63f0dfc902d7a27914ae673398713941f281e96555d9645078 WHIRLPOOL 986d4f7a5115203fec37ebb187c80e27ff4f986b19157afd42179af9f032b20bf305352cc4a3efe38a0b181ac8d3dcb8c98399fdf3b370b076cbe7615c4cd4d0
+EBUILD soldieroffortune-1.06a-r1.ebuild 2096 SHA256 0b17df8cb3528fc69d868a86d931ed0739fbe2624a65a290716e91b07e1563f8 SHA512 d00e133d64a8ae9ab0ba0cea2b3dddb0628ed73391873fadaa75e45b034d4b551cd82d6f8c9df87896ee7cc8ee195cb974de16f6141558c0ba306602e7421a90 WHIRLPOOL 57db3614a88ff03e0a1427defdd199f0de327e06ae1e458e3fa6454b8b1dc84cf02d0ac8312cd5f844cea3de03b8d5ed5dc87018ed1cd2743237f62f0c6558b2
+MISC ChangeLog 2461 SHA256 8bc5d76a4a60a0f0b47277f8ca88a9ebdfaa06979a16cfbf22e5402c43509de0 SHA512 ea53ae96f76cc00970f232d06bd2ceef6866ac558f92347e5bc3d197712723f57d486a5d8fe54f376168b3669b1c71ced2c7d2ac992b7f929cc72b331f120b46 WHIRLPOOL e6a899aaf91beaafbc968702825df8fb436c369ce8eddf71b82837e8e14f954bed364d90fc87b4646a0c627290e7105f8296513bec09525cfcdf2dde02013e0c
+MISC ChangeLog-2015 5218 SHA256 6d2d42985633af1817bbc80c9741f18fb6c25af8f3e0901620cc0570ce532362 SHA512 fc1d9324a1d7a51c5cc6f00c5fe32223bcf37c8db8ca404d6136a48aeb5ceb47a389539dd3d492feedb55021fb5389e4f5db8a90c9d36fe9f06c7c90f4a01572 WHIRLPOOL f788e55f5226de717e2f6f9a7f1ed73bf64c4d91c14306a015771c16418d3c3dbabd5e9685bc59cd819d3b5fd310d41d9d03b578f9a88003584deb8bde9a7d5d
+MISC metadata.xml 963 SHA256 fcfade382c4b7cdfa9787d6cfaea456cad37a96cd56549350ab89320c6a794f5 SHA512 59c285b27116238b779238f0179124a2ef1eefca76ae20a84f65ea8850548228dd540ba90b856dafccdd489f911beabb7b2b0a1fa4630562c995f845421f4895 WHIRLPOOL 63992b2bb84392f3218f45a6c52f99b9ce80b83e5897295e001d68858fcebd377a4b8785730b0c4120002a1ff8f2f441862e1622fc3c90667984f0170a7a37c2
diff --git a/games-fps/soldieroffortune/metadata.xml b/games-fps/soldieroffortune/metadata.xml
new file mode 100644
index 000000000000..dc508d82ecaa
--- /dev/null
+++ b/games-fps/soldieroffortune/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>
+Soldier of Fortune is a first-person 3-D shooter based on the mercenary trade. You play as John, an ex-military mercinary who still has plenty of good friends on the inside. For a wad of bucks, you'll do the job -- no cares, no worries. Just get the gun, play for keeps, get paid, on to the next one -- that's your life. That's what you do. And you're good at it, one of the best even. But now is the time for your biggest challenge ever. 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-fps/soldieroffortune/soldieroffortune-1.06a-r1.ebuild b/games-fps/soldieroffortune/soldieroffortune-1.06a-r1.ebuild
new file mode 100644
index 000000000000..2d9af482ccd5
--- /dev/null
+++ b/games-fps/soldieroffortune/soldieroffortune-1.06a-r1.ebuild
@@ -0,0 +1,83 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit check-reqs eutils unpacker cdrom games
+
+DESCRIPTION="First-person shooter based on the mercenary trade"
+HOMEPAGE="http://www.lokigames.com/products/sof/"
+SRC_URI="mirror://lokigames/sof/sof-${PV}-cdrom-x86.run"
+
+LICENSE="LOKI-EULA"
+SLOT="0"
+KEYWORDS="amd64 x86"
+RESTRICT="strip"
+IUSE=""
+
+DEPEND="games-util/loki_patch"
+RDEPEND="sys-libs/glibc
+ amd64? ( sys-libs/glibc[multilib] )
+ virtual/opengl[abi_x86_32(-)]
+ media-libs/libsdl[X,opengl,sound,abi_x86_32(-)]
+ x11-libs/libXrender[abi_x86_32(-)]
+ x11-libs/libXrandr[abi_x86_32(-)]
+ media-libs/smpeg[abi_x86_32(-)]"
+
+S=${WORKDIR}
+
+dir=${GAMES_PREFIX_OPT}/${PN}
+Ddir=${ED}/${dir}
+unpackDir=${T}/unpack
+
+CHECKREQS_DISK_BUILD="1450M"
+CHECKREQS_DISK_USR="725M"
+
+pkg_pretend() {
+ check-reqs_pkg_pretend
+}
+
+src_unpack() {
+ cdrom_get_cds sof.xpm
+ unpack_makeself
+ mkdir ${unpackDir} || die
+ tar xzf "${CDROM_ROOT}"/paks.tar.gz -C "${unpackDir}" || die
+ tar xzf "${CDROM_ROOT}"/binaries.tar.gz -C "${unpackDir}" || die
+}
+
+src_install() {
+ einfo "Copying files... this may take a while..."
+ exeinto "${dir}"
+ doexe "${CDROM_ROOT}"/bin/x86/glibc-2.1/sof
+ insinto "${dir}"
+ doins -r "${unpackDir}"/*
+ doins "${CDROM_ROOT}"/{README,kver.pub,sof.xpm}
+
+ cd "${S}"
+ export _POSIX2_VERSION=199209
+ loki_patch --verify patch.dat
+ 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 sof ./sof "${dir}" "${dir}"
+
+ # fix buffer overflow
+ sed -i -e '/^exec/i \
+export MESA_EXTENSION_MAX_YEAR=2003 \
+export __GL_ExtensionStringVersion=17700' \
+ "${ED}/${GAMES_BINDIR}/sof" || die
+
+ doicon "${CDROM_ROOT}"/sof.xpm
+ make_desktop_entry sof "Soldier of Fortune" sof
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ elog "To play the game run:"
+ elog " sof"
+}
diff --git a/games-fps/tenebrae/Manifest b/games-fps/tenebrae/Manifest
new file mode 100644
index 000000000000..4dc733d89b44
--- /dev/null
+++ b/games-fps/tenebrae/Manifest
@@ -0,0 +1,10 @@
+AUX 1.04-glhax.patch 1086 SHA256 7ce45eeb8d3d73a0a931842e0d3db35af7af1051c8fcc5cc6d561aeee4e37355 SHA512 6641a82ba17909aa3ab1d583595d45d0abb1ac34cb8997dc17d1bda736b6a07417276f6ec358b73c08f74d84ca9168e76ed224d2d5220ec773f4a2077dd09800 WHIRLPOOL d066ea59c28b9a941a7d0e100f1631a64562dffb7b82f949183231f367194d4185c99ccdba4e75af38e9f73f7d74e0ae2d1643ad2debefbcd20b9ef2952a5038
+AUX tenebrae-1.04-exec-stack.patch 658 SHA256 b2b58ad17394a490dc2fc44182427a257b1cfdb81a31b3a855c0b8ea0a0d388d SHA512 d3b6c712f79612265a31eaeccae3b9688bcfb7916be34e1b9dc6e698c33750f82b323fa51cb09768546c3cdf55bc80fadf0cbc46d4e478ca126ac4124fa06765 WHIRLPOOL 90ce449b48f337a72a64d5a7273bfe941cd9f30781fa382d4889eadbc017aad419e1d6107eb676f50ca7e949a02f251e4d13ec515fb5375122e5f0d734dce40d
+AUX tenebrae-1.04-redef.patch 393 SHA256 bc1fe7532cafae22c4ec145a5303e81097528e18b5d58cb6f8fa33c98042cb0f SHA512 57f63560f3cdf3f0070954109f753cad5ace8828d5f81dc87044a37ac2144594e6bca68d12de186077349c9f42ea17bacbf32a2481216be79569e27bfe1065a6 WHIRLPOOL 78b5e7bea8bbcac3ce2b468f1493275f8903fa48ec84361ede1e0e5c17d62274bac69f95562d49f9b2e8e9581b56e2de4a06a3793b5c6d5845722da6ad16a4bd
+DIST tenebrae-1.04.tbz2 625988 SHA256 61277ecb41dc7c4adbfbad81cd5bfd69e3d63a8e7b41a4860bd879011a735f6c SHA512 f74d1dcaf5b29fcc047f93e4c99c8b5264751c5687370ba4605cad76f85fe346e0e17a6546b8766acedabf23fed69d6894dda6499c854ef0736dddeddc89e18e WHIRLPOOL e9624209ed20f7e8efe2abcac759abf19c269bd60abc92f32e34e601fb2ebc50a061055c2a023a48661f9a551c6645ef0ca244a0d98ff8361c338b88177ca092
+DIST tenebraedata.zip 3989498 SHA256 35db2e1dfe917ec5e62d8ad50fb5ccc73418a7dc3ef1e16cba9eb01f1e1177b8 SHA512 c69e8e18ab0c7d10b5e1c9ad3b396b0906302e6d75c0969d8c2b513df0a11b410de86736a67632378bf28d564c04c3e937f164cb3850742e183616ddc8ac4742 WHIRLPOOL a14167d2268b8def364cabd79b0b338092ec53aba57fc30c4143287edb5e2682ad4d36f3b2eabda1797dd408887c16abd1331144c5e8151b05abef80f18d459b
+EBUILD tenebrae-1.04-r1.ebuild 1555 SHA256 eb201e4fe328e9519b152e2a32593de802515b072b7d7d99177634a02a4c6866 SHA512 569fce0fce35a24dfef7692b70405d4c602d5e9d15797d0cd331e90099b5610ab19653a9ef95fc9b277f86be76ef9f14cbde2cb8804b370a1c7b31a6c0764160 WHIRLPOOL bdea8f396941e5f8acce5ad3d55a3fdceb5777efc6f493d4944dfcd299fa938cfa911f89378753b730e38692b26f3e9bf39c7b451df36d5ed9a5bbc2585afc22
+EBUILD tenebrae-1.04.ebuild 1482 SHA256 bc9fbe6b72550acfb604febc90ceb7ce3a26d3b99e7da6c38c53cc56db46b5d7 SHA512 9fec7dcbc8b7d1ad9dc843da45b16a997a22e08ed578f83952b4c293cd8feb465111e987a7cf60fd1d1169f35a6ff1158babc2af231c3d8f3196ee377cbb279b WHIRLPOOL 90218402236bc1a604fd57bc195dcf980881082258212bced3372928c43334267ab51f0fd3bf313f08906b64a61e2de82c93f2bbc33d025d739255a52d3a7505
+MISC ChangeLog 2657 SHA256 197a2d42f6ff63dec61c9643ad78c23eada61a7f892c12efed18bdb92f0e99c5 SHA512 87ad1b24209577d22daf179ddd2863b4156ace68efee7511db08cb22ddb688238a3e5c4be95c9cd45bdee97e3e1cc62e6eef1e51ae4b1c529b1a355444ddae97 WHIRLPOOL 4f0ca5a0aed1173f94302301b97794689106154b9e84bf0c5ca23587b3b8f7a9a8b422202b73da4251f9ec2af9e6ae9316145b1d301b9bed698d70176a7d9e90
+MISC ChangeLog-2015 1571 SHA256 982c98922fd91a3c4c9053c7034db45d1c06be6fc93f6a19bae98bf3d8ea0a1f SHA512 f066b86ed44fcca29b33d6e25015dcaed624ece49de322e2d2338c4c974bb1e6dc73a0ec92f044b89f1153e4992144a2fc90db9c5904a6ac90ad80029eb3101a WHIRLPOOL a6ca207dafc46e6c61cccf14819892b06dfaea67f5115630092e1de782b1c009f6186fd82ded7f48b49ff89307abbeb8ee78a63474ea500d3ef450ee90ae2ae4
+MISC metadata.xml 709 SHA256 b77e4028c023cafd13a72064ba79afa016b5b0a43e889eec56d85a814a7bc6bf SHA512 15881aa13e08c8803a638ff40c022871116ffdd6de8141b149433d09c98055163f0661aa299ad041215612fe2ea149a5e04e44dbb1afb1de18a53cadcd196107 WHIRLPOOL 727a0ee13c4da242575787fe181b7d9a97fd44f4ef9a55878d48ab399261d834a2daa2394a682536897a3f1fc5d01f329494c61b0faa0fee66b6b5d5bd73fdd2
diff --git a/games-fps/tenebrae/files/1.04-glhax.patch b/games-fps/tenebrae/files/1.04-glhax.patch
new file mode 100644
index 000000000000..a185d8e10c7d
--- /dev/null
+++ b/games-fps/tenebrae/files/1.04-glhax.patch
@@ -0,0 +1,32 @@
+--- tenebrae_0/glquake.h 2004-12-25 00:28:28.707288592 -0500
++++ tenebrae_0/glquake.h 2004-12-25 00:27:35.000000000 -0500
+@@ -34,6 +34,7 @@
+ #else
+ #include <GL/gl.h>
+ #include <GL/glu.h>
++#include <GL/glext.h>
+ #endif /* __APPLE__ ||ÊMACOSX */
+
+ /* use the correct dynamic function address binder */
+@@ -420,8 +421,10 @@
+ void GL_Bind (int texnum);
+
+ #ifndef _WIN32
++#ifndef APIENTRY
+ #define APIENTRY /* */
+ #endif
++#endif
+
+ #if !defined (__APPLE__) && !defined (MACOSX)
+
+@@ -1134,8 +1137,10 @@
+ // <AWE> There are some diffs with the function parameters. wgl stuff not present with MacOS X. -DC- and SDL
+ #if defined (__APPLE__) || defined (MACOSX) || defined(SDL) || defined (__glx__)
+
++#ifndef GL_APPLE_vertex_array_range
+ typedef void (APIENTRY * PFNGLFLUSHVERTEXARRAYRANGEAPPLEPROC) (GLsizei length, const GLvoid *pointer);
+ typedef void (APIENTRY * PFNGLVERTEXARRAYRANGEAPPLEPROC) (GLsizei size, const GLvoid *pointer);
++#endif
+
+ extern PFNGLFLUSHVERTEXARRAYRANGEAPPLEPROC qglFlushVertexArrayRangeAPPLE;
+ extern PFNGLVERTEXARRAYRANGEAPPLEPROC qglVertexArrayRangeAPPLE;
diff --git a/games-fps/tenebrae/files/tenebrae-1.04-exec-stack.patch b/games-fps/tenebrae/files/tenebrae-1.04-exec-stack.patch
new file mode 100644
index 000000000000..abc8bd4a2b87
--- /dev/null
+++ b/games-fps/tenebrae/files/tenebrae-1.04-exec-stack.patch
@@ -0,0 +1,36 @@
+--- a/math.s
++++ b/math.s
+@@ -416,3 +416,6 @@
+ call C(BOPS_Error)
+
+ #endif // id386
++#if defined(__linux__) && defined(__ELF__)
++.section .note.GNU-stack,"",%progbits
++#endif
+--- a/snd_mixa.s
++++ b/snd_mixa.s
+@@ -216,3 +216,6 @@
+
+ #endif // id386
+
++#if defined(__linux__) && defined(__ELF__)
++.section .note.GNU-stack,"",%progbits
++#endif
+--- a/sys_dosa.s
++++ b/sys_dosa.s
+@@ -93,3 +93,6 @@
+
+ ret
+
++#if defined(__linux__) && defined(__ELF__)
++.section .note.GNU-stack,"",%progbits
++#endif
+--- a/worlda.s
++++ b/worlda.s
+@@ -142,3 +142,6 @@
+
+ #endif // id386
+
++#if defined(__linux__) && defined(__ELF__)
++.section .note.GNU-stack,"",%progbits
++#endif
diff --git a/games-fps/tenebrae/files/tenebrae-1.04-redef.patch b/games-fps/tenebrae/files/tenebrae-1.04-redef.patch
new file mode 100644
index 000000000000..8bd89aa18e6f
--- /dev/null
+++ b/games-fps/tenebrae/files/tenebrae-1.04-redef.patch
@@ -0,0 +1,19 @@
+--- a/sys_dosa.s 2017-09-06 16:41:31.875358788 -0500
++++ b/sys_dosa.s 2017-09-06 16:41:35.947376646 -0500
+@@ -44,6 +44,8 @@
+
+ .text
+
++// Falls back to an empty stub on non-i386, in sys_linux.c
++#if id386
+ .globl C(Sys_LowFPPrecision)
+ C(Sys_LowFPPrecision):
+ fldcw single_cw
+@@ -55,6 +57,7 @@
+ fldcw full_cw
+
+ ret
++#endif
+
+ .globl C(Sys_PushFPCW_SetHigh)
+ C(Sys_PushFPCW_SetHigh):
diff --git a/games-fps/tenebrae/metadata.xml b/games-fps/tenebrae/metadata.xml
new file mode 100644
index 000000000000..04edb8b61c7e
--- /dev/null
+++ b/games-fps/tenebrae/metadata.xml
@@ -0,0 +1,18 @@
+<?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>
+Tenebrae is a modification of the quake source that adds stencil shadows
+and per pixel lights to quake. Stencil shadows allow for realistic
+shadow effects on every object in the game world. Per pixel lighting
+allows you to have fine surface details correctly lit. These are
+essentially the same algorithms as used by the new Doom game.
+</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">tenebrae</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-fps/tenebrae/tenebrae-1.04-r1.ebuild b/games-fps/tenebrae/tenebrae-1.04-r1.ebuild
new file mode 100644
index 000000000000..82648759b40f
--- /dev/null
+++ b/games-fps/tenebrae/tenebrae-1.04-r1.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+#ECVS_SERVER="cvs.tenebrae.sourceforge.net:/cvsroot/tenebrae"
+#ECVS_MODULE="tenebrae_0"
+#inherit cvs
+inherit eutils
+
+DESCRIPTION="adds stencil shadows and per pixel lights to quake"
+HOMEPAGE="http://tenebrae.sourceforge.net/"
+SRC_URI="mirror://sourceforge/tenebrae/tenebraedata.zip
+ mirror://gentoo/${P}.tbz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+
+RDEPEND="
+ virtual/glu
+ virtual/opengl
+ media-libs/libpng:0
+ x11-libs/libXxf86dga
+ x11-libs/libXxf86vm"
+DEPEND="${RDEPEND}
+ app-arch/unzip
+ x11-proto/xextproto
+ x11-proto/xf86dgaproto
+ x11-proto/xf86vidmodeproto"
+
+S=${WORKDIR}
+
+src_unpack() {
+ if [[ -z ${ECVS_MODULE} ]] ; then
+ unpack ${A}
+ else
+ cvs_src_unpack
+ fi
+}
+
+src_prepare() {
+ cd tenebrae_0 || die "cd failed"
+
+ sed -i \
+ -e 's:png_set_gray_1_2_4_to_8:png_set_expand_gray_1_2_4_to_8:g' \
+ gl_warp.c || die
+
+ eapply "${FILESDIR}"/${PV}-glhax.patch
+ eapply "${FILESDIR}"/${P}-exec-stack.patch
+ eapply "${FILESDIR}"/${P}-redef.patch
+
+ default
+
+ cd linux || die "cd failed"
+ sed \
+ -e "/^LDFLAGS/s:=:+=:" \
+ -e "s:-mpentiumpro -O6:${CFLAGS}:" \
+ Makefile.i386linux > Makefile || die
+}
+
+src_compile() {
+ cd "${S}"/tenebrae_0/linux || die "cd failed"
+ emake MASTER_DIR="/usr/share/quake1" build_release
+}
+
+src_install() {
+ newbin tenebrae_0/linux/release*/bin/tenebrae.run tenebrae
+ insinto "/usr/share/quake1/tenebrae"
+ doins "${WORKDIR}"/tenebrae/*
+ dodoc tenebrae_0/linux/README "${WORKDIR}"/Tenebrae_Readme.txt
+}
diff --git a/games-fps/tenebrae/tenebrae-1.04.ebuild b/games-fps/tenebrae/tenebrae-1.04.ebuild
new file mode 100644
index 000000000000..7e023b4d833a
--- /dev/null
+++ b/games-fps/tenebrae/tenebrae-1.04.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+#ECVS_SERVER="cvs.tenebrae.sourceforge.net:/cvsroot/tenebrae"
+#ECVS_MODULE="tenebrae_0"
+#inherit cvs
+inherit eutils games
+
+DESCRIPTION="adds stencil shadows and per pixel lights to quake"
+HOMEPAGE="http://tenebrae.sourceforge.net/"
+SRC_URI="mirror://sourceforge/tenebrae/tenebraedata.zip
+ mirror://gentoo/${P}.tbz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86"
+IUSE=""
+
+RDEPEND="virtual/opengl
+ virtual/glu
+ media-libs/libpng:0
+ x11-libs/libXxf86vm
+ x11-libs/libXxf86dga"
+DEPEND="${RDEPEND}
+ x11-proto/xextproto
+ x11-proto/xf86dgaproto
+ x11-proto/xf86vidmodeproto
+ app-arch/unzip"
+
+S=${WORKDIR}
+
+src_unpack() {
+ if [[ -z ${ECVS_MODULE} ]] ; then
+ unpack ${A}
+ else
+ cvs_src_unpack
+ fi
+}
+
+src_prepare() {
+ cd tenebrae_0
+
+ sed -i \
+ -e 's:png_set_gray_1_2_4_to_8:png_set_expand_gray_1_2_4_to_8:g' \
+ gl_warp.c || die
+
+ epatch \
+ "${FILESDIR}"/${PV}-glhax.patch \
+ "${FILESDIR}"/${P}-exec-stack.patch
+ cd linux
+ sed \
+ -e "/^LDFLAGS/s:=:+=:" \
+ -e "s:-mpentiumpro -O6:${CFLAGS}:" \
+ Makefile.i386linux > Makefile || die
+}
+
+src_compile() {
+ cd "${S}"/tenebrae_0/linux
+ emake MASTER_DIR="${GAMES_DATADIR}/quake1" build_release
+}
+
+src_install() {
+ newgamesbin tenebrae_0/linux/release*/bin/tenebrae.run tenebrae
+ insinto "${GAMES_DATADIR}/quake1/tenebrae"
+ doins "${WORKDIR}"/tenebrae/*
+ dodoc tenebrae_0/linux/README "${WORKDIR}"/Tenebrae_Readme.txt
+ prepgamesdirs
+}
diff --git a/games-fps/transfusion-bin/Manifest b/games-fps/transfusion-bin/Manifest
new file mode 100644
index 000000000000..a001bb00ccac
--- /dev/null
+++ b/games-fps/transfusion-bin/Manifest
@@ -0,0 +1,8 @@
+AUX transfusion 65 SHA256 9c1d118cd93e8e085b8cce7bbacd2c11a396abc4112cbf18f9a11fa1ee2ce6f4 SHA512 28e217bcbd11d287319ddf17fb90d2e3f2779c1db378ca1ab21c7ab07966b80f3d6d23f25bdc2e6acd7147ce32d1ee8b9ef97bc6a93605509959cae1e90f689f WHIRLPOOL d05b6488607a9311eafda22fbdb67f2bc07e86f34cfae791b0ec6ebd1ca67ae1cb7c62bf7b8566417f37dd8d0fb2ed57d8cd37a2d4495c04707be9e787006553
+DIST transfusion-1.0-linux.i386.zip 40532193 SHA256 fda279d7bcf6531cbbabcc94177a8b0db96b465579acdc8f0412cac8a088987b SHA512 cd4372e09ac6e3e4f1e2fe99afb18b1c5981c56dac84edd4d440be8914322984a377d4622e2b45719fead86d1b1c7f3ab74580430eba8b69bbe01702c8dbcafb WHIRLPOOL 5b8d59148e618448c2a6df05d3a0e9427763cdfb72b3ba9fde92b6fd07be0ea17e6d25eb151e5a7514ed5dabc14c8554d7bc7527b37fa8390f000f077bf310b6
+DIST transfusion-patch-1.01-linux.i386.zip 8790776 SHA256 929a74df264d199ce9b17458b7c741be2c98388581202661cee25893f4b4a1fb SHA512 b5d6b446be580ab09a79bdb651436de242603a7f215e85ab61ecc45d02739ca285a9a0bfaaf95c08df77f79928a42a27cace76a1695300d80172e2f4e9a488cf WHIRLPOOL a2410b270f5c9936d31e1947e691ea05f836309a427ae3c1bc314b95c415b00ecc6292b0a0b75931c551480256c54b65fc1a9e451f400a5cae6083681f2de586
+DIST transfusion.png 2102 SHA256 7fbc033eb4dd16fd7886bc817450ebe57b27a6ef9587f41b12b8df89c18bd7f5 SHA512 902c630c5f0956678a905760674be7c8bd0a4d72e217ca8cddd56681d0b1161051602bd7bf6e24cc25b6d99cf7c0e5a9802f8230eec7c6a9831aecd700838363 WHIRLPOOL 24faf08828ebf607c1d2f945c802c08981612d6561de6b78f2933cec91369078cff6abd1ba9c809f217e94f14893624491781d827143bce24b12d34ff287de8b
+EBUILD transfusion-bin-1.01.ebuild 1155 SHA256 fe1aabb8d665969504fe7974c120c39660d8fe1ea903b290af9199b8284f5bb0 SHA512 eab802d917021a2cd1471b22b0bb23573789023e2e1910dd1f6a91bfe2299ee865a82fc0c2c9072b969266415d5131188d1106b8d4945853d19beee56fe0e9ca WHIRLPOOL f4a904aa8c83b1646b1938e703b67b544829ec042ab37b05b5fb4f29dab029655e2450078d9f0f6393e883c6e3e205a0d29d6c7245c71a28eee9a5af99524307
+MISC ChangeLog 2607 SHA256 a7b128f60fea103c13ae7ba668106c0b444e5e7e0d435c80d8ee702f977d1161 SHA512 f4e25505fdeb8623db02dac755b1950dbe329e610f0b3baa9c402c1dfea2ec7e1198d8e5794f6fe735ba226a0647f64cee61ef788f4b2fe5fe3bd1760853c99d WHIRLPOOL 2b4f6b2a481b2acf9deec74b8e3ae5cff79da037356bc566ff2a3b48bdd3f36fb48109c01aa85aa2c6f24630f45bd335d01512952577958e630eac466b447a21
+MISC ChangeLog-2015 1542 SHA256 5bfb01bdf90f3bc4b29cd949ac05b4968530d38816eafb8868d15af17ff70c95 SHA512 ee0703ec1ffc21dda613fa55320997cb99c4557ffc85279a27cab36dc11678997f369f6d24176663e2526f030819f9c8f4949b150f6ec3ad6bd4188ee69cf981 WHIRLPOOL 5c0e8132323149e8e84867c334f4addc924b0a70cc9f9a6705ba789458777e399abec66eae0611bab7eac5b35f47328a703c121469953af5dc665ec36a070860
+MISC metadata.xml 328 SHA256 a1056480eb547d355e8712ad98615f8c0f4aaa43d9aaa944dfaa9463d4896724 SHA512 85e11b06989c540831ee3981820d63507c3a233014e73cb577089d599019de54db3bd52f4304623a5b81ae8dfacd7a6b9f59098865da0aff418cc79a46009f8d WHIRLPOOL 3df81c47a1bee6bd44f7b8a92fa912379414f5647f7b23283fe2d4cd6dc1ee5d28ced2b13cb78a68b7c53a7b1816957f1f97d24f25d3e06b9dd9528710619cf2
diff --git a/games-fps/transfusion-bin/files/transfusion b/games-fps/transfusion-bin/files/transfusion
new file mode 100644
index 000000000000..316b16625997
--- /dev/null
+++ b/games-fps/transfusion-bin/files/transfusion
@@ -0,0 +1,2 @@
+#!/bin/sh
+cd GENTOO_DIR && exec ./transfusion-glx ${@} || exit 1
diff --git a/games-fps/transfusion-bin/metadata.xml b/games-fps/transfusion-bin/metadata.xml
new file mode 100644
index 000000000000..ca74fa8ae7a2
--- /dev/null
+++ b/games-fps/transfusion-bin/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">blood</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-fps/transfusion-bin/transfusion-bin-1.01.ebuild b/games-fps/transfusion-bin/transfusion-bin-1.01.ebuild
new file mode 100644
index 000000000000..3395261e4df0
--- /dev/null
+++ b/games-fps/transfusion-bin/transfusion-bin-1.01.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils games
+
+MY_PN=${PN/-bin/}
+DESCRIPTION="Blood remake"
+HOMEPAGE="http://www.transfusion-game.com/"
+SRC_URI="mirror://sourceforge/blood/${MY_PN}-1.0-linux.i386.zip
+ mirror://sourceforge/blood/${MY_PN}-patch-${PV}-linux.i386.zip
+ mirror://gentoo/${MY_PN}.png"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="-* x86"
+IUSE=""
+RESTRICT="strip"
+
+RDEPEND="sys-libs/glibc"
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+S=${WORKDIR}/${MY_PN}
+
+dir=${GAMES_PREFIX_OPT}/${MY_PN}
+Ddir=${D}/${dir}
+
+src_install() {
+ # install everything that looks anything like docs...
+ dodoc ${MY_PN}/doc/*.txt ${MY_PN}/*txt qw/*txt
+ dohtml ${MY_PN}/doc/*.html
+
+ #...then mass copy everything to the install dir...
+ dodir "${dir}"
+ cp -R * "${Ddir}" || die
+
+ # ...and remove the docs since we don't need them installed twice.
+ rm -rf \
+ "${Ddir}"/${MY_PN}/doc \
+ "${Ddir}"/qw/*txt \
+ "${Ddir}"/${MY_PN}/*txt
+
+ doicon "${DISTDIR}"/${MY_PN}.png
+ games_make_wrapper ${MY_PN} ./${MY_PN}-glx "${dir}" "${dir}"
+ make_desktop_entry ${MY_PN} "Transfusion" ${MY_PN}
+
+ prepgamesdirs
+}
diff --git a/games-fps/tribes2/Manifest b/games-fps/tribes2/Manifest
new file mode 100644
index 000000000000..2e340dd6e330
--- /dev/null
+++ b/games-fps/tribes2/Manifest
@@ -0,0 +1,5 @@
+DIST tribes2-25034-cdrom-x86.run 95560158 SHA256 78d690881465e9222cdbf32b0b3b608db5bf31a7f029e494552fad0cb26c969b SHA512 a3d2800af06d8659193ed1da4b9042af0924e1a0ade8a410aec31d66591efa2d2773aa12b33f7234975efee083974a77434bb1c0124bd57bfcc3be4898c46ad8 WHIRLPOOL 89e88e85342e2e5dcbdcbb59725d15ab776374a1a0c0144620a80bdba41be7b0dae1f0bbfc114ba3d04802e812266c2195fbcbe7ac60dc268743ba6cda1911ac
+EBUILD tribes2-25034.ebuild 2121 SHA256 0a95da13ff6e30e00c7f55742b7e90c91b301e6fe21dc5a90bdc3066c4fe89f0 SHA512 39920a42eb1da55cc7a37e17cb44e5b91f7542ef83e78452e3721b8166d7a559030dc53efc77e1da8050a8363c80baf6667d9960cc786072e60282ae1cd5304a WHIRLPOOL c808c7111175d317b1e2c27b90fdb554a0ce5bb9f7e94c2ff3dc9514e563fc9f4af37a782ebc9d08722d85dd938c41436746c50bf192afefb3dff4a024707c5f
+MISC ChangeLog 2556 SHA256 9f622d1820f8de60c059b7153c9d0656709a629779b6bacc97f2b645825adfcc SHA512 3c4ab3b0a59b18d0fb1dda9999f76a8fbf2a02e56d62273cbfe5a6fc984380a4523cab26eef0022fa42e6dea7a082c35e9b1602f9abf453ca7f37ae58beeb03a WHIRLPOOL 89e9eca75d2320a67d6de13eaea5e34a152431e8c771c7e566267b4205006d6a67d436b51690b5a00109c3b527c5a75ffe22f50e14baad6e7e9df010dced9cc1
+MISC ChangeLog-2015 3247 SHA256 0b1d1f3372eab2da74a1a5d338e4c9fe2ac952c117af5bf4c51c48d707a478d8 SHA512 757c4ef6524ddc04106051c3aa125d62e53ee2abb10a9b5c4c82c0e9915d8b8fe62fa5d7076edd0559ac7a8c0ed776fdf60857ebb4dc01f7f8bcbb3a5a402371 WHIRLPOOL ee527bd64fe2dc8964c06a93f88af491d781a3755f9ad672940934ee2c3483003a5f7708733aa12a2b8aec2b589a31bf713f1373a4b751a59945f1aaf889e3e6
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-fps/tribes2/metadata.xml b/games-fps/tribes2/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-fps/tribes2/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-fps/tribes2/tribes2-25034.ebuild b/games-fps/tribes2/tribes2-25034.ebuild
new file mode 100644
index 000000000000..e387698b404a
--- /dev/null
+++ b/games-fps/tribes2/tribes2-25034.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils unpacker cdrom games
+
+DESCRIPTION="Tribes 2 - Team Combat on an Epic Scale"
+HOMEPAGE="http://www.lokigames.com/products/tribes2/"
+SRC_URI="http://www.libsdl.org/projects/${PN}/release/${P}-cdrom-x86.run
+ mirror://3dgamers/${PN}/${P}-cdrom-x86.run"
+
+LICENSE="LOKI-EULA"
+SLOT="0"
+# This package is broken and doesn't patch right on AMD64. I've not taken the
+# time to try to figure it out but this definitely needs to stay -amd64 until
+# someone does fix the patching.
+KEYWORDS="-amd64 x86"
+IUSE=""
+RESTRICT="mirror strip"
+
+DEPEND="sys-libs/glibc
+ games-util/loki_patch"
+RDEPEND="${DEPEND}
+ virtual/opengl"
+
+S=${WORKDIR}
+
+dir=${GAMES_PREFIX_OPT}/${PN}
+Ddir=${D}/${dir}
+
+pkg_setup() {
+ games_pkg_setup
+ ewarn "The installed game takes about 507MB of space!"
+}
+
+src_unpack() {
+ cdrom_get_cds README.tribes2d
+ unpack_makeself
+}
+
+src_install() {
+ einfo "Copying files... this may take a while..."
+ exeinto "${dir}"
+ doexe "${CDROM_ROOT}"/bin/x86/glibc-2.1/{t2launch,tribes2,tribes2.dynamic,tribes2d,tribes2d-restart.sh,tribes2d.dynamic}
+
+ insinto "${dir}"
+ doins "${CDROM_ROOT}"/{README,README.tribes2d,Tribes2_Manual.pdf,console_start.cs,kver.pub} "${Ddir}"
+
+ # Video card profiles
+ # TODO: move this to src_unpack where it belongs.
+ tar xzf ${CDROM_ROOT}/profiles.tar.gz -C "${Ddir}" || die
+
+ # Base (Music, Textures, Maps, etc.)
+ doins -r ${CDROM_ROOT}/base ${CDROM_ROOT}/menu
+
+ cd "${S}"
+ loki_patch --verify patch.dat
+ 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 '{}' +
+
+ newicon "${CDROM_ROOT}"/icon.xpm tribes2.xpm
+ games_make_wrapper t2launch ./t2launch "${dir}" "${dir}"
+ make_desktop_entry t2launch "Tribes 2" tribes2
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ elog "To play the game run:"
+ elog " t2launch"
+}
diff --git a/games-fps/turtlearena/Manifest b/games-fps/turtlearena/Manifest
new file mode 100644
index 000000000000..b2002cab2670
--- /dev/null
+++ b/games-fps/turtlearena/Manifest
@@ -0,0 +1,9 @@
+AUX turtlearena-0.6.1-build.patch 6401 SHA256 0fa32fedfd00b667fbd43a4bb8692ba7e51b8244038b899050c3f0b036f2a370 SHA512 c072ef951b86872a45ae6b5a8732921859605a30d00fe1c64e1c275b88d7f146f3f1435c34365907b926048d3391fbea2841228f0001dc4c249202c07aedcd4c WHIRLPOOL 29c336b98a020bf81bb423b6d6d75182b3e1e1dca2db37e8bfb7a39b7f12f513c307d19f33237e97b01b286dd1aeb2561b3b33a50b66ae18a7cf07e8102f8a5c
+AUX turtlearena-0.6.1-freetype.patch 451 SHA256 8377f998dffea20b457f90c1271ad1af15f595deb48aa59f2c6f881a4a608157 SHA512 cc16c0a69b77627956254b000a4b42e77f57f7d073488c0dde3c0b155e01288aaba958fc16d932550200add0b5429afb10f15c3e23a22d874fe31014ebe090a1 WHIRLPOOL deeed035e2cffaeae90bd55bdd49324536abb15029492027ce8fad38227edbcbb2abe0ab8d8ebfc2a5190273ec8f88f3b6d535aaa36808a83e785ea573d60608
+DIST turtlearena-0.6.1-0-src.tar.bz2 33355448 SHA256 82a16aabab30b2f77e7541ec9bf0d946207b82cce49d2ef5c1d4e9b11e287c98 SHA512 aa11f66a9ec584226267d34ecd637245a068c3c13ffc49fe0ff1ca16699b3eebf6435255ad68b953fbf02f25c807833830eb76497d53bcff977814e87b804edf WHIRLPOOL 89505581cb80e744657d83e81009461131c9bb898994c51e66b3ebe442de691d871fcb5aa63042d662a537d43dac920831291861db803d01b19067cfd0aaf595
+DIST turtlearena-0.6.1-0.zip 73713016 SHA256 99dfc41e1f00c860f8f0ceb222128cc9c363f20e7bd9e830e47c4c0aceed2a09 SHA512 83c96e572687bbdc6183393d21435806b1032295156c1905d82b300bcb6e00a34cd247731f6958e65f085c4c022fc52195313bc0f44edc7a726f04367483a378 WHIRLPOOL 666582948843469cb051dcec3e3404707b7ee9a8a047bf73b6f2948a0ca4da2ab6446ea228927f8173d6fda0ca8d051738fe58f45824056dcd0a5a4336682268
+EBUILD turtlearena-0.6.1-r1.ebuild 3148 SHA256 6677131334040d25ef411c055ee1020343b8415044b02a09559ff0d8abced676 SHA512 b535dcd923c9e7dc7f03626157284dec5b636429d460f5d1b9e9da5b04db14424eccb28591400e316f1131886bd7baae1710daa8d74254c28324afe837bff068 WHIRLPOOL e831946afb7f29db87bc95389bd7d6c76c91fe351b44903ef7648b18446b51f1b2f2ce196051505627f03ff987b7fe9425136afc8b64b90a1a6ae06ab99257d8
+EBUILD turtlearena-0.6.1.ebuild 3219 SHA256 4c9a5bb8c1bc868f61e1909b8231fef8118cfecf3f514956763cfca4766f81f7 SHA512 349a0caf99ba99cac955c66dc66282bfd003c47307f63e3a33c364184397307101fb6d2aeb8ef5bf730014f5919d1d49b8dcc9ebd505bf3172cf4189f86ca5f4 WHIRLPOOL 3807dd8dbe7c2adfb226677fdbf70870b5cb61fa73be5fc8bf24366e69a2bf264c257b0de3347b56678227243b38d50e6f0e55ac3bf4563372243452267a3b82
+MISC ChangeLog 2690 SHA256 5fa640334f197fb11b3e8504edf2d19650273a55653f52d747a04d16d865fe6e SHA512 b3b2ff1b3f6191485b9cb4e4ef4f72007676b6a6197bc6b992585a52ae7a3458c3254350e4f4aa1e43f899b2a074d3c185aaef84cb962ebe148671408ee4be00 WHIRLPOOL a70c806cd0887779366d88c55c6708c24724a75e0bfb06e8ac987ad9a7f52c33dfe17778e88e6a6035b83d2fb7f6867290806d4a06efaba6519c0c17138d8fe3
+MISC ChangeLog-2015 1304 SHA256 d8a4349d55050c26a4845f9491d23a711ebe31cd92440f610672525ddd5d11b1 SHA512 ddb972aec4ac8829769f4392b4f72b11addeca2c9f7af764182576dea0fbb41a835bd5221748ca98bb57ee004b4247d3535588e250e1335cab524913cce070c5 WHIRLPOOL 8b13009c4ce955a809db8aa4526d9d3f44b3abc89b0498a2206dd7c15d46bfb62e57739c3130e5cccdafe0cf156b801c9470c75e5a3000fce6cc74dfb40d5ab0
+MISC metadata.xml 460 SHA256 4fac00d01f36f3a1aa13d9a602309b37d8087b1643bbf25b155de40ee6154e75 SHA512 1a1feb77e6c9418a8ad82c3ab7b2c57be704c19d27b2062ddcdc6c4c6ac176466f62d27bfbcb8599ae648715e11d0fd9d54a46ccfad545668e81460db1aedb73 WHIRLPOOL a537821497b0fcd79e59993b995c3f452f672a63b428fd5aef55addc9020c75c47b37f55e38fcff579f35ef48dfcde539f92b9a65c340f229bffe0b173a0acec
diff --git a/games-fps/turtlearena/files/turtlearena-0.6.1-build.patch b/games-fps/turtlearena/files/turtlearena-0.6.1-build.patch
new file mode 100644
index 000000000000..0b6ad877b3f2
--- /dev/null
+++ b/games-fps/turtlearena/files/turtlearena-0.6.1-build.patch
@@ -0,0 +1,201 @@
+From: Julian Ospald <hasufell@gentoo.org>
+Date: Sat Apr 27 20:53:37 UTC 2013
+
+* use PKG_CONFIG var (used in cross compiling scripts, does
+ cross compiling even work?)
+* consistently use pkg-config where possible, define proper fallbacks
+* unbundle the unzip.c properly and fix headers
+* make -m* flags depend on CROSS_COMPILING var
+
+--- a/engine/Makefile
++++ b/engine/Makefile
+@@ -346,27 +346,31 @@
+
+ bin_path=$(shell which $(1) 2> /dev/null)
+
++PKG_CONFIG ?= pkg-config
++SDL_CONFIG ?= sdl-config
++
+ # We won't need this if we only build the server
+ ifneq ($(BUILD_CLIENT),0)
+- # set PKG_CONFIG_PATH to influence this, e.g.
+- # PKG_CONFIG_PATH=/opt/cross/i386-mingw32msvc/lib/pkgconfig
+- ifneq ($(call bin_path, pkg-config),)
+- CURL_CFLAGS=$(shell pkg-config --silence-errors --cflags libcurl)
+- CURL_LIBS=$(shell pkg-config --silence-errors --libs libcurl)
+- OPENAL_CFLAGS=$(shell pkg-config --silence-errors --cflags openal)
+- OPENAL_LIBS=$(shell pkg-config --silence-errors --libs openal)
+- SDL_CFLAGS=$(shell pkg-config --silence-errors --cflags sdl|sed 's/-Dmain=SDL_main//')
+- SDL_LIBS=$(shell pkg-config --silence-errors --libs sdl)
+- FREETYPE_CFLAGS=$(shell pkg-config --silence-errors --cflags freetype2)
+- endif
+- # Use sdl-config if all else fails
+- ifeq ($(SDL_CFLAGS),)
+- ifneq ($(call bin_path, sdl-config),)
+- SDL_CFLAGS=$(shell sdl-config --cflags)
+- SDL_LIBS=$(shell sdl-config --libs)
+- endif
+- endif
+-endif
++ CURL_CFLAGS=$(shell $(PKG_CONFIG) --cflags libcurl 2>/dev/null)
++ CURL_LIBS=$(shell $(PKG_CONFIG) --libs libcurl 2>/dev/null || echo "-lcurl")
++ OPENAL_CFLAGS=$(shell $(PKG_CONFIG) --cflags openal 2>/dev/null || echo "-I/usr/include/AL")
++ OPENAL_LIBS=$(shell $(PKG_CONFIG) --libs openal 2>/dev/null || echo "-lopenal")
++ SDL_CFLAGS=$(shell $(PKG_CONFIG) --cflags sdl 2>/dev/null || $(SDL_CONFIG) --cflags 2>/dev/null || echo "-I/usr/include/SDL")
++ SDL_LIBS=$(shell $(PKG_CONFIG) --libs sdl 2>/dev/null || $(SDL_CONFIG) --libs 2>/dev/null || echo "-lsdl")
++ FREETYPE_CFLAGS=$(shell $(PKG_CONFIG) --cflags freetype2 2>/dev/null || echo "-I/usr/include/freetype2")
++ FREETYPE_LIBS=$(shell $(PKG_CONFIG) --libs freetype2 2>/dev/null || echo "-lfreetype")
++ OPENGL_LIBS=$(shell $(PKG_CONFIG) --libs gl 2>/dev/null || echo "-lGL")
++ VORIBS_CFLAGS=$(shell $(PKG_CONFIG) --cflags vorbis vorbisfile 2>/dev/null)
++ VORBIS_LIBS=$(shell $(PKG_CONFIG) --libs vorbis vorbisfile 2>/dev/null || echo "-lvorbis -lvorbisfile -logg")
++ THEORA_CFLAGS=$(shell $(PKG_CONFIG) --cflags theora 2>/dev/null)
++ THEORA_LIBS=$(shell $(PKG_CONFIG) --libs theora 2>/dev/null || echo "-ltheora")
++ SPEEX_CFLAGS=$(shell $(PKG_CONFIG) --cflags speex speexdsp 2>/dev/null)
++ SPEEX_LIBS=$(shell $(PKG_CONFIG) --libs speex speexdsp 2>/dev/null || echo "-lspeex")
++endif
++
++# common deps
++ZLIB_CFLAGS=$(shell $(PKG_CONFIG) --cflags zlib minizip 2>/dev/null || echo "-I/usr/include/minizip")
++ZLIB_LIBS=$(shell $(PKG_CONFIG) --libs zlib minizip 2>/dev/null || echo "-lz -lminizip")
+
+ ifneq ($(BUILD_FINAL),1)
+ # Add svn version info
+@@ -421,7 +425,7 @@
+ endif
+
+ BASE_CFLAGS = -Wall -fno-strict-aliasing -Wimplicit -Wstrict-prototypes \
+- -pipe -DUSE_ICON
++ -DUSE_ICON
+ CLIENT_CFLAGS += $(SDL_CFLAGS)
+
+ OPTIMIZEVM = -O3 -funroll-loops -fomit-frame-pointer
+@@ -470,25 +474,29 @@
+ LIBS=-ldl -lm
+
+ CLIENT_LIBS=$(SDL_LIBS)
+- RENDERER_LIBS = $(SDL_LIBS) -lGL
++ RENDERER_LIBS = $(SDL_LIBS) $(OPENGL_LIBS)
+
+ ifeq ($(USE_OPENAL),1)
+ ifneq ($(USE_OPENAL_DLOPEN),1)
+- CLIENT_LIBS += -lopenal
+- endif
++ CLIENT_CFLAGS += $(OPENAL_CFLAGS)
++ CLIENT_LIBS += $(OPENAL_LIBS)
++ endif
+ endif
+
+ ifeq ($(USE_CURL),1)
+ ifneq ($(USE_CURL_DLOPEN),1)
+- CLIENT_LIBS += -lcurl
++ CLIENT_CFLAGS += $(CURL_CFLAGS)
++ CLIENT_LIBS += $(CURL_LIBS)
+ endif
+ endif
+
+ ifeq ($(USE_CODEC_VORBIS),1)
+- CLIENT_LIBS += -lvorbisfile -lvorbis -logg
++ CLIENT_CFLAGS += $(VORBIS_CFLAGS)
++ CLIENT_LIBS += $(VORBIS_LIBS)
+ endif
+ ifeq ($(USE_CODEC_THEORA),1)
+- CLIENT_LIBS += -ltheora
++ CLIENT_CFLAGS += $(THEORA_CFLAGS)
++ CLIENT_LIBS += $(THEORA_LIBS)
+ endif
+
+ ifeq ($(USE_MUMBLE),1)
+@@ -503,14 +511,18 @@
+ BASE_CFLAGS += $(FREETYPE_CFLAGS)
+ endif
+
++ # cross-compiling tweaks
+ ifeq ($(ARCH),i386)
+- # linux32 make ...
+- BASE_CFLAGS += -m32
+- else
+- ifeq ($(ARCH),ppc64)
+- BASE_CFLAGS += -m64
++ ifeq ($(CROSS_COMPILING),1)
++ BASE_CFLAGS += -m32
++ endif
+ endif
++ ifeq ($(ARCH),amd64)
++ ifeq ($(CROSS_COMPILING),1)
++ BASE_CFLAGS += -m64
++ endif
+ endif
++
+ else # ifeq Linux
+
+ #############################################################################
+@@ -1155,7 +1167,8 @@
+ ifeq ($(USE_INTERNAL_SPEEX),1)
+ CLIENT_CFLAGS += -DFLOATING_POINT -DUSE_ALLOCA -I$(SPEEXDIR)/include
+ else
+- CLIENT_LIBS += -lspeex -lspeexdsp
++ CLIENT_CFLAGS += $(SPEEX_CFLAGS)
++ CLIENT_LIBS += $(SPEEX_LIBS)
+ endif
+ endif
+
+@@ -1163,7 +1176,8 @@
+ BASE_CFLAGS += -DNO_GZIP
+ BASE_CFLAGS += -I$(ZDIR)
+ else
+- LIBS += -lz
++ BASE_CFLAGS += $(ZLIB_CFLAGS)
++ LIBS += $(ZLIB_LIBS)
+ endif
+
+ ifeq ($(USE_INTERNAL_JPEG),1)
+@@ -1177,7 +1191,8 @@
+ BASE_CFLAGS += -I$(FTDIR)/include \
+ -DFT2_BUILD_LIBRARY
+ else
+- RENDERER_LIBS += -lfreetype
++ BASE_CFLAGS += $(FREETYPE_CFLAGS)
++ RENDERER_LIBS += $(FREETYPE_LIBS)
+ endif
+
+ ifeq ("$(CC)", $(findstring "$(CC)", "clang" "clang++"))
+@@ -1650,8 +1665,6 @@
+ $(B)/client/q_math.o \
+ $(B)/client/q_shared.o \
+ \
+- $(B)/client/unzip.o \
+- $(B)/client/ioapi.o \
+ $(B)/client/puff.o \
+ $(B)/client/vm.o \
+ $(B)/client/vm_interpreted.o \
+@@ -2076,8 +2089,6 @@
+ $(B)/ded/q_math.o \
+ $(B)/ded/q_shared.o \
+ \
+- $(B)/ded/unzip.o \
+- $(B)/ded/ioapi.o \
+ $(B)/ded/vm.o \
+ $(B)/ded/vm_interpreted.o \
+ \
+--- a/engine/code/qcommon/files.c
++++ b/engine/code/qcommon/files.c
+@@ -31,7 +31,7 @@ Foundation, Inc., 51 Franklin St, Fifth
+
+ #include "q_shared.h"
+ #include "qcommon.h"
+-#include "unzip.h"
++#include <minizip/unzip.h>
+
+ /*
+ =============================================================================
+--- a/engine/code/renderer/tr_public.h
++++ b/engine/code/renderer/tr_public.h
+@@ -25,7 +25,7 @@
+ #include "tr_types.h"
+
+ #ifdef IOQ3ZTM // PNG_SCREENSHOTS
+-#include "../zlib/zlib.h"
++#include <zlib.h>
+ #endif
+
+ #define REF_API_VERSION 8
diff --git a/games-fps/turtlearena/files/turtlearena-0.6.1-freetype.patch b/games-fps/turtlearena/files/turtlearena-0.6.1-freetype.patch
new file mode 100644
index 000000000000..9ecd6df2bf57
--- /dev/null
+++ b/games-fps/turtlearena/files/turtlearena-0.6.1-freetype.patch
@@ -0,0 +1,17 @@
+http://bugs.gentoo.org/show_bug.cgi?id=479822#c3
+http://github.com/ioquake/ioq3/commit/ab4c602374caa0f520b3a0801d384a73e29e0bc7
+
+--- a/engine/code/renderer/tr_font.c
++++ b/engine/code/renderer/tr_font.c
+@@ -47,10 +47,10 @@
+ #include "../qcommon/qcommon.h"
+
+ #include <ft2build.h>
++#include FT_FREETYPE_H
+ #include FT_ERRORS_H
+ #include FT_SYSTEM_H
+ #include FT_IMAGE_H
+-#include FT_FREETYPE_H
+ #include FT_OUTLINE_H
+
+ #define _FLOOR(x) ((x) & -64)
diff --git a/games-fps/turtlearena/metadata.xml b/games-fps/turtlearena/metadata.xml
new file mode 100644
index 000000000000..3b18515f6b24
--- /dev/null
+++ b/games-fps/turtlearena/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="mumble">Adds player-location (positional audio) support to VoIP</flag>
+ <flag name="server">Build server target</flag>
+ <flag name="voice">Adds VoIP support</flag>
+ </use>
+</pkgmetadata>
diff --git a/games-fps/turtlearena/turtlearena-0.6.1-r1.ebuild b/games-fps/turtlearena/turtlearena-0.6.1-r1.ebuild
new file mode 100644
index 000000000000..ee3525548a70
--- /dev/null
+++ b/games-fps/turtlearena/turtlearena-0.6.1-r1.ebuild
@@ -0,0 +1,122 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils gnome2-utils
+
+MY_P=${PN/-/}-${PV}
+
+DESCRIPTION="A turtle featuring free and open source third-person action game (ioq3 engine)"
+HOMEPAGE="http://ztm.x10host.com/ta/index.htm"
+SRC_URI="https://turtlearena.googlecode.com/files/${MY_P}-0-src.tar.bz2
+ https://turtlearena.googlecode.com/files/${MY_P}-0.zip"
+
+LICENSE="GPL-2+ CC-BY-SA-3.0 mplus-fonts lcc"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+curl debug dedicated mumble openal server theora voice vorbis"
+
+RDEPEND="
+ sys-libs/zlib[minizip]
+ !dedicated? (
+ media-libs/freetype:2
+ media-libs/libsdl[X,sound,joystick,opengl,video]
+ virtual/jpeg:0
+ virtual/opengl
+ curl? ( net-misc/curl )
+ openal? ( media-libs/openal )
+ theora? ( media-libs/libtheora )
+ voice? (
+ media-libs/speex
+ mumble? ( media-sound/mumble )
+ )
+ vorbis? ( media-libs/libvorbis )
+ )"
+DEPEND="${RDEPEND}
+ app-arch/unzip
+ virtual/pkgconfig"
+
+S=${WORKDIR}/${MY_P}-0-src
+
+src_prepare() {
+ default
+
+ eapply "${FILESDIR}"/${P}-build.patch
+ eapply "${FILESDIR}"/${P}-freetype.patch
+
+ sed -i \
+ -e 's:JPEG_LIB_VERSION < 80:JPEG_LIB_VERSION < 62:' \
+ engine/code/renderer/tr_image_jpg.c || die #479822
+
+ rm -r engine/code/{AL,libcurl,libogg,libspeex,libtheora,libvorbis,SDL12,zlib} \
+ engine/code/freetype* engine/code/jpeg-* \
+ engine/code/qcommon/unzip.{c,h} || die
+}
+
+src_compile() {
+ buildit() { use $1 && echo 1 || echo 0 ; }
+ nobuildit() { use $1 && echo 0 || echo 1 ; }
+
+ myarch=$(usex amd64 "x86_64" "x86")
+ emake -C engine \
+ Q="" \
+ ARCH=${myarch} \
+ CROSS_COMPILING=0 \
+ BUILD_GAME_QVM=0 \
+ BUILD_GAME_SO=0 \
+ BUILD_CLIENT=$(nobuildit dedicated) \
+ BUILD_SERVER=$(usex dedicated "1" "$(buildit server)") \
+ DEFAULT_BASEDIR="/usr/share/${PN}" \
+ GENERATE_DEPENDENCIES=0 \
+ OPTIMIZEVM="" \
+ OPTIMIZE="" \
+ DEBUG_CFLAGS="" \
+ USE_MUMBLE=$(buildit mumble) \
+ USE_VOIP=$(buildit voice) \
+ USE_INTERNAL_SPEEX=0 \
+ USE_INTERNAL_OGG=0 \
+ USE_INTERNAL_ZLIB=0 \
+ USE_INTERNAL_JPEG=0 \
+ USE_INTERNAL_FREETYPE=0 \
+ USE_CODEC_VORBIS=$(buildit vorbis) \
+ USE_INTERNAL_VORBIS=0 \
+ USE_CODEC_THEORA=$(buildit theora) \
+ USE_OPENAL=$(buildit openal) \
+ USE_OPENAL_DLOPEN=0 \
+ USE_CURL=$(buildit curl) \
+ USE_CURL_DLOPEN=0 \
+ USE_LOCAL_HEADERS=0 \
+ $(usex debug "debug" "release")
+}
+
+src_install() {
+ dodoc engine/{ChangeLog,BUGS,TODO}
+ use voice && dodoc engine/voip-readme.txt
+
+ if ! use dedicated ; then
+ newbin engine/build/$(usex debug "debug" "release")-linux-${myarch}/turtlearena.${myarch} turtlearena
+ newicon -s scalable engine/misc/quake3-tango.svg ${PN}.svg
+ newicon -s 256 engine/misc/quake3-tango.png ${PN}.png
+ make_desktop_entry ${PN}
+ fi
+
+ if use dedicated || use server ; then
+ newbin engine/build/$(usex debug "debug" "release")-linux-${myarch}/turtlearena-server.${myarch} turtlearena-server
+ fi
+
+ insinto "/usr/share/${PN}"
+ doins -r "${WORKDIR}"/${MY_P}-0/base
+}
+
+pkg_preinst() {
+ use dedicated || gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ use dedicated || gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ use dedicated || gnome2_icon_cache_update
+}
diff --git a/games-fps/turtlearena/turtlearena-0.6.1.ebuild b/games-fps/turtlearena/turtlearena-0.6.1.ebuild
new file mode 100644
index 000000000000..66eade36d51c
--- /dev/null
+++ b/games-fps/turtlearena/turtlearena-0.6.1.ebuild
@@ -0,0 +1,125 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils gnome2-utils games
+
+MY_P=${PN/-/}-${PV}
+
+DESCRIPTION="A turtle featuring free and open source third-person action game (ioq3 engine)"
+HOMEPAGE="http://ztm.x10host.com/ta/index.htm"
+SRC_URI="https://turtlearena.googlecode.com/files/${MY_P}-0-src.tar.bz2
+ https://turtlearena.googlecode.com/files/${MY_P}-0.zip"
+
+LICENSE="GPL-2+ CC-BY-SA-3.0 mplus-fonts lcc"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="+curl debug dedicated mumble openal server theora voice vorbis"
+
+RDEPEND="
+ sys-libs/zlib[minizip]
+ !dedicated? (
+ media-libs/freetype:2
+ media-libs/libsdl[X,sound,joystick,opengl,video]
+ virtual/jpeg:0
+ virtual/opengl
+ curl? ( net-misc/curl )
+ openal? ( media-libs/openal )
+ theora? ( media-libs/libtheora )
+ voice? (
+ media-libs/speex
+ mumble? ( media-sound/mumble )
+ )
+ vorbis? ( media-libs/libvorbis )
+ )"
+DEPEND="${RDEPEND}
+ app-arch/unzip
+ virtual/pkgconfig"
+
+S=${WORKDIR}/${MY_P}-0-src
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-build.patch \
+ "${FILESDIR}"/${P}-freetype.patch
+
+ sed -i \
+ -e 's:JPEG_LIB_VERSION < 80:JPEG_LIB_VERSION < 62:' \
+ engine/code/renderer/tr_image_jpg.c || die #479822
+
+ rm -r engine/code/{AL,libcurl,libogg,libspeex,libtheora,libvorbis,SDL12,zlib} \
+ engine/code/freetype* engine/code/jpeg-* \
+ engine/code/qcommon/unzip.{c,h} || die
+}
+
+src_compile() {
+ buildit() { use $1 && echo 1 || echo 0 ; }
+ nobuildit() { use $1 && echo 0 || echo 1 ; }
+
+ myarch=$(usex amd64 "x86_64" "x86")
+ emake -C engine \
+ Q="" \
+ ARCH=${myarch} \
+ CROSS_COMPILING=0 \
+ BUILD_GAME_QVM=0 \
+ BUILD_GAME_SO=0 \
+ BUILD_CLIENT=$(nobuildit dedicated) \
+ BUILD_SERVER=$(usex dedicated "1" "$(buildit server)") \
+ DEFAULT_BASEDIR="${GAMES_DATADIR}/${PN}" \
+ GENERATE_DEPENDENCIES=0 \
+ OPTIMIZEVM="" \
+ OPTIMIZE="" \
+ DEBUG_CFLAGS="" \
+ USE_MUMBLE=$(buildit mumble) \
+ USE_VOIP=$(buildit voice) \
+ USE_INTERNAL_SPEEX=0 \
+ USE_INTERNAL_OGG=0 \
+ USE_INTERNAL_ZLIB=0 \
+ USE_INTERNAL_JPEG=0 \
+ USE_INTERNAL_FREETYPE=0 \
+ USE_CODEC_VORBIS=$(buildit vorbis) \
+ USE_INTERNAL_VORBIS=0 \
+ USE_CODEC_THEORA=$(buildit theora) \
+ USE_OPENAL=$(buildit openal) \
+ USE_OPENAL_DLOPEN=0 \
+ USE_CURL=$(buildit curl) \
+ USE_CURL_DLOPEN=0 \
+ USE_LOCAL_HEADERS=0 \
+ $(usex debug "debug" "release")
+}
+
+src_install() {
+ dodoc engine/{ChangeLog,BUGS,TODO}
+ use voice && dodoc engine/voip-readme.txt
+
+ if ! use dedicated ; then
+ newgamesbin engine/build/$(usex debug "debug" "release")-linux-${myarch}/turtlearena.${myarch} turtlearena
+ newicon -s scalable engine/misc/quake3-tango.svg ${PN}.svg
+ newicon -s 256 engine/misc/quake3-tango.png ${PN}.png
+ make_desktop_entry ${PN}
+ fi
+
+ if use dedicated || use server ; then
+ newgamesbin engine/build/$(usex debug "debug" "release")-linux-${myarch}/turtlearena-server.${myarch} turtlearena-server
+ fi
+
+ insinto "${GAMES_DATADIR}/${PN}"
+ doins -r "${WORKDIR}"/${MY_P}-0/base
+
+ prepgamesdirs
+}
+
+pkg_preinst() {
+ games_pkg_preinst
+ use dedicated || gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ use dedicated || gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ use dedicated || gnome2_icon_cache_update
+}
diff --git a/games-fps/unreal-tournament-bonuspacks/Manifest b/games-fps/unreal-tournament-bonuspacks/Manifest
new file mode 100644
index 000000000000..d9fa7141eb90
--- /dev/null
+++ b/games-fps/unreal-tournament-bonuspacks/Manifest
@@ -0,0 +1,5 @@
+DIST UTBonusPack4.zip 14916708 SHA256 57a107d69322b8978df2fa1a942397a16bd878d82f4cda25da22a9af7b65d2a4 SHA512 4abc29b108926aebce872a0c8257f97604265cdc837b2e46443ee8cf98adfcba69b6b7ab2bd2379723c11301ef2bf60298ab075a6befe5eeed6d8526f3f653b0 WHIRLPOOL 3eb562f3fc04a63fd1b7b7649af9324bf643d5c48d412387ad6b63c205a3b9a9b8d34dd4c3e6fd3e551f96a8410b8d671e58879a5b2a5d6597a8b41b1f8539dc
+EBUILD unreal-tournament-bonuspacks-436.ebuild 1133 SHA256 81c003f1d03413ae52815515302a4a4269d8cf925975e23fb32bb0bfb904d43a SHA512 781604250ef21021686d2fbe2030cd56c7661fd925948ec5cf125417e7ed66c53a62da57d323734b79e8f700a736ef13a3f25bf9d556b94fbabde0732158004f WHIRLPOOL c8b93e0dd82ac33e708d969dbaaef4da82a1c419ade500a9fb0d0e8060ff6c20579a8a8794c4c69ad5f5d3715f652df0786845a298992318361208bfb938cd8a
+MISC ChangeLog 2630 SHA256 af02f4e7ba98f2db86641403dc7739e6a9437d1fbe0b3c46803a537aa16dfbd9 SHA512 f6514b9c86a5b0c74fb87e56843b61f652613ac0990320eee96f8c500a5ba3406b286028911e71f5265206bbb753618d38b16067956db07d3caae4332da63c28 WHIRLPOOL 46ff7bc3d54a93fc746df67ef6c17ef3ef558b27e331aba5f1be69110273275119414310bf32f6180dc88d0dab06dd2ea02226a11a19d5c79f115486c28a8e0e
+MISC ChangeLog-2015 1141 SHA256 1c01b3c8c48354c8d88859b37db4999db20764043c5606386903757a9e012eec SHA512 904e413b89db11690972d49c265df2134be419b06c810c01ca57eafafcac7598362e36befcb4bb6707ff7deda2d7495d94c27cd3c19db15293dce214373b2b54 WHIRLPOOL 76c0f01fccf4d54276e517e2cf0ebcdfcbb44310a84020d264b377043c00b39dd9909eb66e8ebde1eb7433e5a1fb394d49ec923bc64b3f3cf4fbdc32ce53c882
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-fps/unreal-tournament-bonuspacks/metadata.xml b/games-fps/unreal-tournament-bonuspacks/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-fps/unreal-tournament-bonuspacks/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-fps/unreal-tournament-bonuspacks/unreal-tournament-bonuspacks-436.ebuild b/games-fps/unreal-tournament-bonuspacks/unreal-tournament-bonuspacks-436.ebuild
new file mode 100644
index 000000000000..cbb7e58f90d5
--- /dev/null
+++ b/games-fps/unreal-tournament-bonuspacks/unreal-tournament-bonuspacks-436.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit games
+
+DESCRIPTION="Futuristic FPS (bonus packs)"
+HOMEPAGE="http://www.oldunreal.com/"
+# UT has 4 official bonus packs ...
+# [UTBonusPack] -> loki put into games-fps/unreal-tournament
+# [UTBonusPack2] -> loki put into games-fps/unreal-tournament
+# [UTiNoxxPack] -> loki put into games-fps/unreal-tournament
+# [UTBonusPack4] -> none of this is in games-fps/unreal-tournament
+SRC_URI="http://www.ut-files.com/Patches/utbonuspack4.zip -> UTBonusPack4.zip"
+
+LICENSE="all-rights-reserved"
+SLOT="0"
+KEYWORDS="-* amd64 x86"
+IUSE=""
+RESTRICT="mirror bindist"
+
+RDEPEND="|| (
+ games-fps/unreal-tournament
+ games-fps/unreal-tournament-goty )"
+DEPEND="${RDEPEND}
+ app-arch/unzip
+ games-util/umodpack"
+
+S=${WORKDIR}
+
+src_install() {
+ # unpack the UTBonusPack4 umod
+ umod -v -b "$(pwd)" -x UTBonusPack4.umod || die
+
+ # move stuff around
+ rm UTBonusPack4.umod
+ mv system System
+ mv textures Textures
+
+ # install it all
+ local dir=${GAMES_PREFIX_OPT}/unreal-tournament
+ dodir "${dir}"
+ mv * "${D}/${dir}/"
+
+ prepgamesdirs
+}
diff --git a/games-fps/unreal-tournament-goty/Manifest b/games-fps/unreal-tournament-goty/Manifest
new file mode 100644
index 000000000000..18b62f7b2817
--- /dev/null
+++ b/games-fps/unreal-tournament-goty/Manifest
@@ -0,0 +1,8 @@
+DIST IpDrv-436-Linux-08-20-02.zip 105435 SHA256 a7fb348dd04bd2057f307c5d95c2904a8b9c790d5b80648507549900dc4c76ef SHA512 5f10152b87cf702225fe50d213f3fbd4865cb2f190e0c2c87c996420c115e5f84de7748af635705b8a2ea789bfeaaab4b927364563a4b83f973dcb5af866ccd7 WHIRLPOOL d6be1afe7aa828607c09479a7bc230f61ef34f586eea0d250e06b9f64d613edd250b2ee5d44bf45509d98a51cf2e454c6b4285f1f9db85bba21cc4e51b292d61
+DIST UTPGPatch451.tar.bz2 3064473 SHA256 31a07fb289841ceba36ca707fafd8180f48e462a53a62a2b34d5bc0f61c2481d SHA512 d11ecb3e60e8bba0288be0a4860acb563c277e75ce30a749de04673219d484b7a8c7e6207bc582872df33db684658dc1a15235b9d79ceb98fcd2ad1410982423 WHIRLPOOL 22de40b50f6302f6a1ff5080f823e3e5e14057bc7729fb809b42981bbd188e47a138058740d4df251c8b7dafd4c74121d7d0d08c85a2746c40e3fd432bd087e3
+DIST ut-install-436-GOTY.run 6340417 SHA256 1626fc3c56ae5c9261b1e1f62fc5a893a83ec4727e2b0be81916b3d9ae90bfc4 SHA512 daa2da9f21f1b6e057e19d72d9c1b2446a250b30eb80b24d6a059a5d1eec24a9326d4e6af0401ba4ade3610fbf3a44c1fe44c26b7ae0eb4b7301a20f9574859c WHIRLPOOL 9d6b3799972d54e3cccff5f7d64ab1cc0954ab0e6472245b2416c09b6629eb17b54c7562a81dd06f49f01b314e677b05295e4ab3c78a662a72295a78ef166206
+EBUILD unreal-tournament-goty-436.ebuild 4913 SHA256 f8051eb9e6c57a4d39536a7e376d02d61a587b5231ff163c0b775eb6d0489063 SHA512 ced09fb3ad0c2218f02dde910d343e57abd2f344fe2d72aa6d2203dc5c9daa89fe46fdbd8c273b7fea9355e6123d19139e0bb7b73d481312d3b480d4db8589b2 WHIRLPOOL 96cb9ed1b785f1a088ce031f669d3eb813a4af9191ac2ace3031d1f7645c9f61bdadd3b05ab7511e2b42872fabb9bf43a768008c63a7c975442645179d4c40f1
+EBUILD unreal-tournament-goty-451.ebuild 5058 SHA256 5a17486c69e46cb50526aaa6ae9677369bdced761e2ad380c9a88b69df5562dd SHA512 95eae5a92e6bfdc669b7ff4c9da812711cafe23e8dfce69b98131fd322ed2bfc0c30b806ef751f21b357efe5943f7db33cb11d9db36e40cde4c45f2b79a24755 WHIRLPOOL bb8cc80a24ada857cdf11246c72662f0341d0490bbb9ba46d2c1f805da116d06011777e140ba14284b3fdf6ce8f523ef76594cc30fa984f145a44f71f035e336
+MISC ChangeLog 2547 SHA256 72919106e24d8dd077a5040dcff8bd5a46d4afc4f47de0ba1e2a7e396a94d8ee SHA512 28a3efe97ddfc93bf4785e9b0f4404e6d020268eb4c680a54bed391cdeb03188ab073c32992569ae37c14875365e8d1e0bddf138b0a8c03cb9b2fb8c35ce8998 WHIRLPOOL ff020192e2d9db2b6177b6dbaebeaab91e843ff1daee5a65a9949a2e945cc2bdd8827732cf18eda32be13513467cd05e480c42f0756fdd8c3c7047e2c25515d5
+MISC ChangeLog-2015 3214 SHA256 33fbe31c027b82554b5742b5e1c0bf27387313eccb2afdbf15f34eeecd7cfed9 SHA512 3e66950e9f2a97e58f8afeaef3e1f7b47aaadf206d4ae4a0c2cd7dd5e575ee32631abf0687fc548d04dd8b9a76d09888e74056fc02a923bc704ca6e77cdcd166 WHIRLPOOL 728307f510cc9c406c20bf26c923b56f035fd089cb6b06bef5e12fe3a1fc17709dd3a54fcd12902ae54993111589c1e9cc86b65b12f963b77ecbd110fa0fbc52
+MISC metadata.xml 1819 SHA256 a5714d2efde5df6c93310fda8419e55870943fe0993b1b6cbbf33fc43953e8f0 SHA512 1b0ef3a5b454e9d78939570afcc70138d7fff459a4c106d6e1aaf6b1e0dcc691701745724427b98164563530e2605766a9eb79d6b0f631c448cce478b2672ef2 WHIRLPOOL 0f09509fe738c9550bc34889597d55d6d8c4a4aaca1597fe9e6ce60240412b2f2cca83a58ef76cafd0aecf825e399d3abfc671e11c5f88afdeb5c3d2852cb608
diff --git a/games-fps/unreal-tournament-goty/metadata.xml b/games-fps/unreal-tournament-goty/metadata.xml
new file mode 100644
index 000000000000..110200e882f2
--- /dev/null
+++ b/games-fps/unreal-tournament-goty/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="person">
+ <email>vapier@gentoo.org</email>
+ </maintainer>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <longdescription>
+In the single player mode, the player squares off
+against computer controlled Bots in all the game modes
+through a tournament ladder with increasing difficulty.
+Thanks to Epic's unmatched AI coding wizardry, Unreal
+Tournament's Bots are more life like than any
+computer-controlled characters to date. They understand
+each game's unique rules. They have a firm handle on all
+the different weapons at their disposal and how best to
+use them. They can swim, use elevators, climb stairs,
+and put on Toxin suits if they have to. If they're on
+the player's team, they can take orders to attack,
+defend or freelance.
+
+Unreal Tournament's bread and butter is the online multiplayer
+mode. Squaring off against other combatants from around the world, or on
+the other end of a LAN connection, provides some of the most thrilling and
+tense battles seen on a PC. Unreal Tournament's unparalleled networking
+code makes it as easy to play the game against anyone, anytime. If the
+host server has unique content -- like custom skins or maps -- UT
+will automatically download and install that content in REAL TIME, as the
+game is connecting. And thanks to Epic Games' amazing work on Unreal
+Tournament's network play, you can be sure that even a 33.6K modem can get
+a silky smooth connection to the server.
+</longdescription>
+ <use>
+ <flag name="S3TC">Add the extra fancy textures to UT ... only works on certain cards (nvidia/ati/s3)</flag>
+ </use>
+</pkgmetadata>
diff --git a/games-fps/unreal-tournament-goty/unreal-tournament-goty-436.ebuild b/games-fps/unreal-tournament-goty/unreal-tournament-goty-436.ebuild
new file mode 100644
index 000000000000..5bf39103557a
--- /dev/null
+++ b/games-fps/unreal-tournament-goty/unreal-tournament-goty-436.ebuild
@@ -0,0 +1,169 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils unpacker cdrom games
+
+DESCRIPTION="Futuristic FPS (Game Of The Year edition)"
+HOMEPAGE="http://www.oldunreal.com/"
+SRC_URI="http://www.ut-files.com/Patches/ut-install-${PV}-GOTY.run
+ http://www.ut-files.com/Patches/ipdrv-${PV}-linux-08-20-02.zip -> IpDrv-${PV}-Linux-08-20-02.zip"
+
+LICENSE="all-rights-reserved"
+SLOT="0"
+KEYWORDS="x86"
+IUSE="3dfx S3TC nls opengl"
+RESTRICT="mirror bindist"
+
+DEPEND="!games-fps/unreal-tournament
+ app-arch/unzip
+"
+RDEPEND="
+ opengl? ( virtual/opengl[abi_x86_32(-)] )
+ x11-libs/libXext[abi_x86_32(-)]
+ x11-libs/libX11[abi_x86_32(-)]
+ x11-libs/libXau[abi_x86_32(-)]
+ x11-libs/libXdmcp[abi_x86_32(-)]
+"
+
+S=${WORKDIR}
+
+src_unpack() {
+ cdrom_get_cds System/ Help/chaosut
+ unpack_makeself ut-install-${PV}-GOTY.run
+ unpack IpDrv-${PV}-Linux-08-20-02.zip
+}
+
+src_install() {
+ local dir=${GAMES_PREFIX_OPT}/${PN/-goty/}
+ local Ddir=${D}/${dir}
+ dodir "${dir}"
+
+ ###########
+ ### PRE ###
+ # System
+ if use 3dfx ; then
+ tar -zxf Glide.ini.tar.gz -C "${Ddir}" || die "install Glide ini"
+ else
+ tar -zxf OpenGL.ini.tar.gz -C "${Ddir}" || die "install OpenGL ini"
+ fi
+ tar -zxf data.tar.gz -C "${Ddir}" || die "extract System data"
+
+ # the most important things, ucc & ut :)
+ exeinto "${dir}"
+ doexe bin/x86/{ucc,ut} || die "install ucc/ut"
+ sed -i -e "s:\`FindPath \$0\`:${dir}:" "${ED}/${dir}"/ucc || die
+
+ # export some symlinks so ppl can run
+ dodir "${GAMES_BINDIR}"
+ dosym "${dir}"/ucc "${GAMES_BINDIR}"/ucc
+ dosym "${dir}"/ut "${GAMES_BINDIR}"/ut
+ ### PRE ###
+ ###########
+
+ ###########
+ ### CD1 ###
+ # Help, Logs, Music, Sounds, Textures, Web
+ cp -rf "${CDROM_ROOT}"/{Help,Logs,Music,Textures,Web} "${Ddir}"/ || die "copy Help, Logs, Music, Textures, Web CD1"
+ dodir "${dir}"/Sounds
+ if use nls ; then
+ cp -rf "${CDROM_ROOT}"/Sounds/* "${Ddir}"/Sounds/ || die "copy Sounds CD1"
+ else
+ cp -rf "${CDROM_ROOT}"/Sounds/*.uax "${Ddir}"/Sounds/ || die "copy Sounds CD1"
+ fi
+
+ # System
+ dodir "${dir}"/System
+ if use nls ; then
+ cp "${CDROM_ROOT}"/System/*.{est,frt,itt,int,u} "${Ddir}"/System/ || die "copy System data CD1"
+ else
+ cp "${CDROM_ROOT}"/System/*.{int,u} "${Ddir}"/System/ || die "copy System data CD1"
+ fi
+
+ # now we uncompress the maps
+ einfo "Uncompressing CD1 Maps ... this may take some time"
+ dodir "${dir}"/Maps
+ cd "${Ddir}"
+ export HOME=${T}
+ export UT_DATA_PATH="${Ddir}"/System
+ for f in `find "${CDROM_ROOT}"/Maps/ -name '*.uz' -printf '%f '` ; do
+ ./ucc decompress "${CDROM_ROOT}"/Maps/${f} -nohomedir || die "uncompressing map CD1 ${f}"
+ mv System/${f:0:${#f}-3} Maps/ || die "copy map CD1 ${f}"
+ done
+ ### CD1 ###
+ ###########
+
+ ### Have user switch cds if need be ###
+ cdrom_load_next_cd
+
+ ###########
+ ### CD2 ###
+ # Help, Sounds
+ cp -rf "${CDROM_ROOT}"/{Help,Sounds} "${Ddir}"/ || die "copy Help, Sounds CD2"
+
+ # S3TC Textures
+ if use S3TC ; then
+ cp -rf "${CDROM_ROOT}"/Textures "${Ddir}"/ || die "copy S3TC Textures CD2"
+ else
+ cp -rf "${CDROM_ROOT}"/Textures/{JezzTex,Jezztex2,SnowDog,chaostex{,2}}.utx "${Ddir}"/Textures/ || die "copy Textures CD2"
+ fi
+
+ # System
+ cp -rf "${CDROM_ROOT}"/System/*.{u,int} "${Ddir}"/System/ || die "copy System CD2"
+
+ # now we uncompress the maps
+ einfo "Uncompressing CD2 Maps ... this may take some time"
+ dodir "${dir}"/Maps
+ cd "${Ddir}"
+ export HOME=${T}
+ export UT_DATA_PATH="${Ddir}"/System
+ for f in `find "${CDROM_ROOT}"/maps/ -name '*.uz' -printf '%f '` ; do
+ ./ucc decompress "${CDROM_ROOT}"/maps/${f} -nohomedir || die "uncompressing map CD2 ${f}"
+ mv System/${f:0:${#f}-3} Maps/ || die "copy map CD2 ${f}"
+ done
+ ### CD2 ###
+ ###########
+
+ ###########
+ ### END ###
+ cd "${S}"
+
+ # Textures
+ tar -zxf Credits.tar.gz -C "${Ddir}" || die "extract credits texture"
+ # NetGamesUSA.com
+ tar -zxf NetGamesUSA.com.tar.gz -C "${Ddir}"/ || die "extract NetGamesUSA.com"
+
+ # Patch UT-GOTY
+ cd setup.data
+ cp patch.dat{,.orig} || die "cp failed"
+ sed -e 's:sh uz-maps.sh:echo:' patch.dat.orig > patch.dat || die "sed failed"
+ ./bin/Linux/x86/loki_patch patch.dat "${Ddir}" || die "failed to patch"
+ cd "${S}"
+
+ # now we install the IpDrv.so patch
+ insinto "${dir}"/System
+ doins IpDrv.so || die "install IpDrv.so patch"
+
+ # install a few random files
+ insinto "${dir}"
+ doins README icon.{bmp,xpm} || die "installing random files"
+
+ # 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 '{}' \;
+ ### END ###
+ ###########
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ elog "You might want to install the bonus packs too."
+ elog "Many servers on the internet use them, and the"
+ elog "majority of players do too."
+ elog
+ elog "Just run: emerge unreal-tournament-bonuspacks"
+}
diff --git a/games-fps/unreal-tournament-goty/unreal-tournament-goty-451.ebuild b/games-fps/unreal-tournament-goty/unreal-tournament-goty-451.ebuild
new file mode 100644
index 000000000000..9856c273bd53
--- /dev/null
+++ b/games-fps/unreal-tournament-goty/unreal-tournament-goty-451.ebuild
@@ -0,0 +1,171 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils unpacker cdrom games
+
+DESCRIPTION="Futuristic FPS (Game Of The Year edition)"
+HOMEPAGE="http://www.oldunreal.com/"
+SRC_URI="http://www.ut-files.com/Patches/ut-install-436-GOTY.run
+ http://www.ut-files.com/Patches/utpgpatch${PV}.tar.bz2 -> UTPGPatch${PV}.tar.bz2"
+
+LICENSE="all-rights-reserved"
+SLOT="0"
+KEYWORDS="~amd64 x86"
+IUSE="3dfx S3TC nls opengl"
+RESTRICT="mirror bindist"
+
+RDEPEND="
+ opengl? ( virtual/opengl[abi_x86_32(-)] )
+ >=media-libs/libsdl-1.2.15-r5[abi_x86_32(-)]
+ x11-libs/libXext[abi_x86_32(-)]
+ x11-libs/libX11[abi_x86_32(-)]
+ x11-libs/libXau[abi_x86_32(-)]
+ x11-libs/libXdmcp[abi_x86_32(-)]
+"
+DEPEND=""
+
+S=${WORKDIR}
+
+src_unpack() {
+ cdrom_get_cds System/ Help/chaosut
+ unpack_makeself ut-install-436-GOTY.run
+ mkdir UTPG && cd UTPG
+ unpack UTPGPatch${PV}.tar.bz2
+ rm checkfiles.sh patch.md5
+}
+
+src_install() {
+ local dir=${GAMES_PREFIX_OPT}/${PN/-goty/}
+ local Ddir=${D}/${dir}
+ dodir "${dir}"
+
+ ###########
+ ### PRE ###
+ # System
+ if use 3dfx ; then
+ tar -zxf Glide.ini.tar.gz -C "${Ddir}" || die "install Glide ini"
+ else
+ tar -zxf OpenGL.ini.tar.gz -C "${Ddir}" || die "install OpenGL ini"
+ fi
+ tar -zxf data.tar.gz -C "${Ddir}" || die "extract System data"
+
+ # the most important things, ucc & ut :)
+ exeinto "${dir}"
+ doexe bin/x86/{ucc,ut} || die "install ucc/ut"
+ sed -i -e "s:\`FindPath \$0\`:${dir}:" "${ED}/${dir}"/ucc || die
+
+ # export some symlinks so ppl can run
+ dodir "${GAMES_BINDIR}"
+ dosym "${dir}"/ucc "${GAMES_BINDIR}"/ucc
+ dosym "${dir}"/ut "${GAMES_BINDIR}"/ut
+ ### PRE ###
+ ###########
+
+ ###########
+ ### CD1 ###
+ # Help, Logs, Music, Sounds, Textures, Web
+ cp -rf "${CDROM_ROOT}"/{Help,Logs,Music,Textures,Web} "${Ddir}"/ || die "copy Help, Logs, Music, Textures, Web CD1"
+ dodir "${dir}"/Sounds
+ if use nls ; then
+ cp -rf "${CDROM_ROOT}"/Sounds/* "${Ddir}"/Sounds/ || die "copy Sounds CD1"
+ else
+ cp -rf "${CDROM_ROOT}"/Sounds/*.uax "${Ddir}"/Sounds/ || die "copy Sounds CD1"
+ fi
+
+ # System
+ dodir "${dir}"/System
+ if use nls ; then
+ cp "${CDROM_ROOT}"/System/*.{est,frt,itt,int,u} "${Ddir}"/System/ || die "copy System data CD1"
+ else
+ cp "${CDROM_ROOT}"/System/*.{int,u} "${Ddir}"/System/ || die "copy System data CD1"
+ fi
+
+ # now we uncompress the maps
+ einfo "Uncompressing CD1 Maps ... this may take some time"
+ dodir "${dir}"/Maps
+ cd "${Ddir}"
+ export HOME=${T}
+ export UT_DATA_PATH="${Ddir}"/System
+ for f in `find "${CDROM_ROOT}"/Maps/ -name '*.uz' -printf '%f '` ; do
+ ./ucc decompress "${CDROM_ROOT}"/Maps/${f} -nohomedir || die "uncompressing map CD1 ${f}"
+ mv System/${f:0:${#f}-3} Maps/ || die "copy map CD1 ${f}"
+ done
+ ### CD1 ###
+ ###########
+
+ ### Have user switch cds if need be ###
+ cdrom_load_next_cd
+
+ ###########
+ ### CD2 ###
+ # Help, Sounds
+ cp -rf "${CDROM_ROOT}"/{Help,Sounds} "${Ddir}"/ || die "copy Help, Sounds CD2"
+
+ # S3TC Textures
+ if use S3TC ; then
+ cp -rf "${CDROM_ROOT}"/Textures "${Ddir}"/ || die "copy S3TC Textures CD2"
+ else
+ cp -rf "${CDROM_ROOT}"/Textures/{JezzTex,Jezztex2,SnowDog,chaostex{,2}}.utx "${Ddir}"/Textures/ || die "copy Textures CD2"
+ fi
+
+ # System
+ cp -rf "${CDROM_ROOT}"/System/*.{u,int} "${Ddir}"/System/ || die "copy System CD2"
+
+ # now we uncompress the maps
+ einfo "Uncompressing CD2 Maps ... this may take some time"
+ dodir "${dir}"/Maps
+ cd "${Ddir}"
+ export HOME=${T}
+ export UT_DATA_PATH="${Ddir}"/System
+ for f in `find "${CDROM_ROOT}"/maps/ -name '*.uz' -printf '%f '` ; do
+ ./ucc decompress "${CDROM_ROOT}"/maps/${f} -nohomedir || die "uncompressing map CD2 ${f}"
+ mv System/${f:0:${#f}-3} Maps/ || die "copy map CD2 ${f}"
+ done
+ ### CD2 ###
+ ###########
+
+ ###########
+ ### END ###
+ cd "${S}"
+
+ # Textures
+ tar -zxf Credits.tar.gz -C "${Ddir}" || die "extract credits texture"
+ # NetGamesUSA.com
+ tar -zxf NetGamesUSA.com.tar.gz -C "${Ddir}"/ || die "extract NetGamesUSA.com"
+
+ # first apply any patch remaints loki has for us
+ cd setup.data
+ cp patch.dat{,.orig} || die "cp failed"
+ sed -e 's:sh uz-maps.sh:echo:' patch.dat.orig > patch.dat || die "sed failed"
+ ./bin/Linux/x86/loki_patch patch.dat "${Ddir}" >& /dev/null
+ cd "${S}"
+
+ # finally, unleash the UTPG patch
+ cp -rf UTPG/* "${Ddir}"/ || die "cp failed"
+ # fix a small bug until next official release
+ sed -i -e "/^LoadClassMismatch/s:%s.%s:%s:" "${ED}/${dir}"/System/Core.int
+
+ # install a few random files
+ insinto "${dir}"
+ doins README icon.{bmp,xpm} || die "installing random files"
+
+ # 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 '{}' \;
+ ### END ###
+ ###########
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ elog "You might want to install the bonus packs too."
+ elog "Many servers on the internet use them, and the"
+ elog "majority of players do too."
+ elog
+ elog "Just run: emerge unreal-tournament-bonuspacks"
+}
diff --git a/games-fps/unreal-tournament-strikeforce/Manifest b/games-fps/unreal-tournament-strikeforce/Manifest
new file mode 100644
index 000000000000..13d22a0564cd
--- /dev/null
+++ b/games-fps/unreal-tournament-strikeforce/Manifest
@@ -0,0 +1,7 @@
+DIST sf180lnx.zip 11965 SHA256 23afb7b4b97a01b977b071c62f55b186b056d3cf5a35e65565baf3645d759003 SHA512 e64644f470f2506df05159c03f27f3e1df9dc5cf547a7e2415ee8005fadcc1124c02f4e932de7c92b2781511ed8d44f5b8a314a8c246d57da750e30e57fcdfad WHIRLPOOL af9c6b85a85c164c2210f6b7bba53d7679d41ccf03b39f130523090616eebd514507bdaf5633e1a17f17d01943f12112f25f808d360de2946fe4ee410c85100b
+DIST sf_180_server_files.tar.gz 396772949 SHA256 0e0d48b2c5d5c1346c9975795dbe6a14a884a60e2110c47724e62a81842ad101 SHA512 74850d42be59f9d974cf5f89bb85385ff204a0635e0f71315c59cae3fc0eb8032d69797aedc380427ad21e7cdda809a326587ccf3835f9abaaf14b92a3c0dabe WHIRLPOOL c352f1aca86fda5a32bff432ff8d03ed80d97f86dfa956e5afe9a149433d77f22c2bf83ae6e315687e382283037b288d320d88e75be3022d5e7eee661c60e3da
+DIST unreal-tournament-strikeforce-1.81.tar.bz2 42039142 SHA256 f221018f1191ce2e7e45c14148ad19c136bd6c660d999aee4c5fcfe9cc4979ae SHA512 ec5a755e2771f879553970d565391268c152aa3fe14cefccfea8582108dd87687176712e548bd3457328e2bc9f831714a41fb4834abdad2b04d83db0b3fc64a2 WHIRLPOOL b9ca6aec27f15655bdb60304c7767096d4ef6c81ea8f8421e1f05e0f8f4c5d92bd58fe70f9328495e43c54cb8299292b8e9b004e37836e2ca125acac5a960dcc
+EBUILD unreal-tournament-strikeforce-1.81.ebuild 1169 SHA256 696cb8833b34fb50f52473a1020df52a43ecc0236a36615d69dafb996cbf6123 SHA512 1e7e842f218b7ea58069342bb12e8531adc822dfcde01289b6760685e3c8492dc12e1b87c9d7f10209fc8f58fd34ff1be7a14b962602ca66d303e6d577a5e114 WHIRLPOOL c6fc6291322d165716b8ac142f4e377c38df535b1de14c88e16c3e2e2586595d389c246f2cc4a360731f9cd9ad0ae35f90d7f1dabacece10a06344cf8c7fe8d5
+MISC ChangeLog 2637 SHA256 217caa3971c0547eef93d786077fe894a68d7c79d764d95c88242afd82de59fb SHA512 008919077d2637c4a5d59594e9943cbdd9073a83517f5217d9b8421fffcb346b07fbfc21275e7963e030939f1c7acbcbec128c29bc00405d38362b27cd826928 WHIRLPOOL bb73ac9a60ede678c62f29eb6b0e5fb9cdd7a9149c07df815fd29483399d7eecdd1cf2c2b408b532fb4998eadf6480e5ccf72b6213582baf0ee19416c4129999
+MISC ChangeLog-2015 1008 SHA256 f5c0a7f71732d05a0a51e2607b17d991baf7cec0573be164a798725e6877ab57 SHA512 6b3904248a9578087a25bfcef0acccdc522f74601cf2ac8d2a49994d58b4bfba1a9458d80dffb43e7e469766308401f0cc41eda7c94b2b1f42a8ca9c1e854be7 WHIRLPOOL 549dbeabc6704ece2786048c13bda752625fa22e6d63c5eeebb77507698573c744e7e295e34123f7a567fcfa74ce0350b2b6774ddc75ca258fdc76365d3e5b79
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-fps/unreal-tournament-strikeforce/metadata.xml b/games-fps/unreal-tournament-strikeforce/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-fps/unreal-tournament-strikeforce/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-fps/unreal-tournament-strikeforce/unreal-tournament-strikeforce-1.81.ebuild b/games-fps/unreal-tournament-strikeforce/unreal-tournament-strikeforce-1.81.ebuild
new file mode 100644
index 000000000000..8f3c6baa0b06
--- /dev/null
+++ b/games-fps/unreal-tournament-strikeforce/unreal-tournament-strikeforce-1.81.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit games
+
+MY_PV=${PV/./}
+DESCRIPTION="A UT addon where you fight terrorists as part of an elite strikeforce"
+HOMEPAGE="http://www.strike-force.com/"
+#http://strikeforce.redconcepts.net:8888/sf_180_server_files.tar.gz
+SRC_URI="mirror://gentoo/sf_180_server_files.tar.gz
+ mirror://gentoo/${P}.tar.bz2
+ mirror://gentoo/sf180lnx.zip"
+#http://www.hut.fi/~kalyytik/sf/linux-sf.html
+
+LICENSE="unreal-tournament-strikeforce"
+SLOT="0"
+KEYWORDS="x86"
+IUSE=""
+RESTRICT="bindist"
+
+RDEPEND="|| (
+ games-fps/unreal-tournament
+ games-fps/unreal-tournament-goty
+ )"
+DEPEND="app-arch/unzip"
+
+S=${WORKDIR}
+
+src_unpack() {
+ unpack sf_180_server_files.tar.gz
+ unpack ${P}.tar.bz2
+ unpack sf180lnx.zip
+ mv "README - sf orm mappack.txt" Strikeforce/SFDoc/ || die
+ rm -rf Help/OpenGL\ Alternate || die
+ rm System/*.{dll,lnk,exe} System/ServerAdds.zip || die
+ rm Strikeforce/SF_System/*.bat || die
+ find -type f -exec chmod a-x '{}' + || die
+}
+
+src_install() {
+ local dir=${GAMES_PREFIX_OPT}/unreal-tournament
+ dodir "${dir}"
+ mv * "${D}/${dir}/" || die
+ prepgamesdirs
+}
diff --git a/games-fps/unreal-tournament/Manifest b/games-fps/unreal-tournament/Manifest
new file mode 100644
index 000000000000..21b62b786f3b
--- /dev/null
+++ b/games-fps/unreal-tournament/Manifest
@@ -0,0 +1,6 @@
+DIST UTPGPatch451.tar.bz2 3064473 SHA256 31a07fb289841ceba36ca707fafd8180f48e462a53a62a2b34d5bc0f61c2481d SHA512 d11ecb3e60e8bba0288be0a4860acb563c277e75ce30a749de04673219d484b7a8c7e6207bc582872df33db684658dc1a15235b9d79ceb98fcd2ad1410982423 WHIRLPOOL 22de40b50f6302f6a1ff5080f823e3e5e14057bc7729fb809b42981bbd188e47a138058740d4df251c8b7dafd4c74121d7d0d08c85a2746c40e3fd432bd087e3
+DIST ut-install-436.run 6225010 SHA256 4008c7501a530c1fb5b8143b8e92baee59ef769c0bffa26c09e9bbb2673bc377 SHA512 cfdeb9f345daef4b81acadfa24d711477ba208dffd50716087d034df2dc1eb0ac5bb03570f4f1701b3c4d46b8f954e6d23dde36fc20dafdc114e68730a1fc932 WHIRLPOOL a203436b225747ed06af76e100f07d0a0580df11a4c3a01a431b3e2a48e660717743960cd814ffd2ed5d13624aa1ce7a111c4aa76122593e57469df59e2da26a
+EBUILD unreal-tournament-451.ebuild 3675 SHA256 5a16ebf10a962c149a7eeb104249f70520cc575092f342af8ad560a6d6b35d1d SHA512 b2bd54996fbdc7b04161a5dd250f61d14d81e843635f29ac16149a25d43de6b2378ecf844b07ae93c6347bec2a848c2cfc5605cc72902af956e45acb766bfb74 WHIRLPOOL a5b2e02b214621af75e34e188ebb7ea202bbd848a1b7e668281b0f0c825bc9497f2f2df56a7cb7cb19247ffa44ee2c65df6002db0c4caf9f1414277081d972b6
+MISC ChangeLog 2454 SHA256 93babd157e172fbc94099c3b7690d3c9d226ecd2e46707aea0c05f50ed40e234 SHA512 45500046a9ebdaf940dda0b2e742cb0f38de783f670a882e4ada39fa71ea701e92c057c7395292a91680c3edd1b38ba296b57bf3b8ae5c111cd07685ee065ad5 WHIRLPOOL 7aabccf57cb74d70e7fe31578972e526bd8edf88b66ccc9a0c4548e673c47de1131d5215850c69c357a4bdfca1feeb2197055deecb3df6fb350687bf4392bf93
+MISC ChangeLog-2015 4374 SHA256 57921ecbfbccab0b52baee430aa790384bc2a03e27d525546b212d32fb551f3e SHA512 47bb5f1a44a21da5d3ace44b1c50a054aa0e450df0ac477376aaf4c6008970335345ea902a184958f26cd0ea09f6e673999e89c8e40cbb130674335f5890b0e3 WHIRLPOOL 54246b2dcc1ae5cb03ada36a082e501d5e233b222a5f7cf65ecef3647663e8cdfbbf1881828b9f01e5a16c3c15a7ad009c61d66026e2098973e747eb90e69d50
+MISC metadata.xml 1671 SHA256 f703736c23e3aa817cb4c6cc831e3bd86d9eacfa6646cef752d84f5f04fcbd7c SHA512 8d6811a4c9dd449129d0fa7cb15b5f1d09ee336dc6f3dabbb2091d9d3d09ed841d47d3457d6a891aadecaac44ceb74da0351312f63817a3d1b51347984ac2067 WHIRLPOOL e6c5166326aa0198e0bc92563a0ef1cacf2df4e85734591d8a1f3c771967e470f9d0ee384040f88ced9f999398059a1f37971de0c2e5cf64b0c034b60c64c59f
diff --git a/games-fps/unreal-tournament/metadata.xml b/games-fps/unreal-tournament/metadata.xml
new file mode 100644
index 000000000000..3d068958a863
--- /dev/null
+++ b/games-fps/unreal-tournament/metadata.xml
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+ <email>vapier@gentoo.org</email>
+</maintainer>
+<maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+</maintainer>
+<longdescription>
+In the single player mode, the player squares off
+against computer controlled Bots in all the game modes
+through a tournament ladder with increasing difficulty.
+Thanks to Epic's unmatched AI coding wizardry, Unreal
+Tournament's Bots are more life like than any
+computer-controlled characters to date. They understand
+each game's unique rules. They have a firm handle on all
+the different weapons at their disposal and how best to
+use them. They can swim, use elevators, climb stairs,
+and put on Toxin suits if they have to. If they're on
+the player's team, they can take orders to attack,
+defend or freelance.
+
+Unreal Tournament's bread and butter is the online multiplayer
+mode. Squaring off against other combatants from around the world, or on
+the other end of a LAN connection, provides some of the most thrilling and
+tense battles seen on a PC. Unreal Tournament's unparalleled networking
+code makes it as easy to play the game against anyone, anytime. If the
+host server has unique content -- like custom skins or maps -- UT
+will automatically download and install that content in REAL TIME, as the
+game is connecting. And thanks to Epic Games' amazing work on Unreal
+Tournament's network play, you can be sure that even a 33.6K modem can get
+a silky smooth connection to the server.
+</longdescription>
+</pkgmetadata>
diff --git a/games-fps/unreal-tournament/unreal-tournament-451.ebuild b/games-fps/unreal-tournament/unreal-tournament-451.ebuild
new file mode 100644
index 000000000000..03ab6d2ed3b5
--- /dev/null
+++ b/games-fps/unreal-tournament/unreal-tournament-451.ebuild
@@ -0,0 +1,120 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils unpacker cdrom games
+
+DESCRIPTION="Futuristic FPS"
+HOMEPAGE="http://www.oldunreal.com/"
+SRC_URI="http://www.ut-files.com/Patches/ut-install-436.run
+ http://www.ut-files.com/Patches/utpgpatch${PV}.tar.bz2 -> UTPGPatch${PV}.tar.bz2"
+
+LICENSE="all-rights-reserved"
+SLOT="0"
+KEYWORDS="-* amd64 x86"
+IUSE="3dfx opengl"
+RESTRICT="mirror bindist"
+
+RDEPEND="
+ >=media-libs/libsdl-1.2.15-r5[abi_x86_32(-)]
+ x11-libs/libX11[abi_x86_32(-)]
+ x11-libs/libXau[abi_x86_32(-)]
+ x11-libs/libXdmcp[abi_x86_32(-)]
+ x11-libs/libXext[abi_x86_32(-)]
+ opengl? ( virtual/opengl[abi_x86_32(-)] )
+"
+DEPEND="${RDEPEND}
+ !games-fps/unreal-tournament-goty
+"
+
+S=${WORKDIR}
+
+src_unpack() {
+ cdrom_get_cds System/
+ unpack_makeself ut-install-436.run
+ mkdir UTPG && cd UTPG
+ unpack UTPGPatch${PV}.tar.bz2
+ rm checkfiles.sh patch.md5
+}
+
+src_install() {
+ local dir=${GAMES_PREFIX_OPT}/${PN}
+ local Ddir=${D}/${dir}
+ dodir "${dir}"
+
+ # Help, Logs, Music, Textures, Web
+ cp -rf "${CDROM_ROOT}"/{Help,Logs,Music,Textures,Web} "${Ddir}/" || die "copy Help, Logs, Music, Textures, Web"
+ tar -zxf Credits.tar.gz -C "${Ddir}" || die "extract credits texture"
+ # NetGamesUSA.com
+ tar -zxf NetGamesUSA.com.tar.gz -C "${Ddir}/" || die "extract NetGamesUSA.com"
+ # Sounds
+ dodir "${dir}"/Sounds
+ cp -rf "${CDROM_ROOT}"/Sounds/*.uax "${Ddir}"/Sounds/ || die "copy Sounds"
+
+ # System
+ if use 3dfx ; then
+ tar -zxf Glide.ini.tar.gz -C "${Ddir}" || die "install Glide ini"
+ else
+ tar -zxf OpenGL.ini.tar.gz -C "${Ddir}" || die "install OpenGL ini"
+ fi
+ tar -zxf data.tar.gz -C "${Ddir}" || die "extract System data"
+ cp "${CDROM_ROOT}"/System/*.u "${Ddir}"/System/ || die "copy System data"
+
+ # the most important things, ucc & ut :)
+ exeinto "${dir}"
+ doexe bin/x86/{ucc,ut} || die "install ucc/ut"
+ sed -i -e "s:\`FindPath \$0\`:${dir}:" "${ED}/${dir}"/ucc || die
+
+ # install a few random files
+ insinto "${dir}"
+ doins README icon.{bmp,xpm} || die "installing random files"
+
+ # install a menu item (closes bug #27542)
+ newicon icon.xpm ut.xpm
+ make_desktop_entry ut "Unreal Tournament" ut
+
+ # first apply any patch remaints loki has for us
+ cd setup.data
+ ./bin/Linux/x86/loki_patch patch.dat "${Ddir}" >& /dev/null
+ cd "${S}"
+
+ # finally, unleash the UTPG patch
+ cp -rf UTPG/* "${Ddir}/"
+ # fix a small bug until next official release
+ sed -i -e "/^LoadClassMismatch/s:%s.%s:%s:" "${ED}/${dir}"/System/Core.int || die
+
+ # now we uncompress the maps (GOTY edition installs maps as .uz)
+ einfo "Uncompressing Maps ... this may take some time"
+ dodir "${dir}"/Maps
+ cd "${Ddir}"
+ export HOME=${T}
+ export UT_DATA_PATH=${Ddir}/System
+ for f in $(find "${CDROM_ROOT}"/Maps/ -name '*.uz' -printf '%f ') ; do
+ ./ucc decompress "${CDROM_ROOT}"/Maps/"${f}" -nohomedir || die "uncompressing map ${f}"
+ mv "System/${f:0:${#f}-3}" Maps/ || die "copy map ${f}"
+ done
+ cp -rf "${CDROM_ROOT}"/Maps/*.unr "${Ddir}"/Maps/ # some cd's have uncompressed maps ??
+
+ # 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 '{}' +
+
+ # export some symlinks so ppl can run
+ dodir "${GAMES_BINDIR}"
+ dosym "${dir}/ut" "${GAMES_BINDIR}/ut"
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ echo
+ elog "You might want to install the bonus packs too."
+ elog "Many servers on the internet use them, and the"
+ elog "majority of players do too."
+ elog
+ elog "Just run: emerge unreal-tournament-bonuspacks"
+ echo
+}
diff --git a/games-fps/unreal/Manifest b/games-fps/unreal/Manifest
new file mode 100644
index 000000000000..2eb283ae1469
--- /dev/null
+++ b/games-fps/unreal/Manifest
@@ -0,0 +1,8 @@
+AUX unreal 53 SHA256 064566ffb0bce1cb7c8fde4e9ae2545f96e9504db05d9c17f8080fae5cc233cf SHA512 0728ca1599fb289812c99d45801cf0566e9651ecefdd4fe10252e6bde3bc035e7cf1294e34056e35b851dcb0f3826907ffaea60b974f61ce75660d144d5955ce WHIRLPOOL 8b9f7932b1b5bdf16e199c985f720f904919c405c9104db66717b0d15f6ce19ee180ff1471f2e63968115aa18536e8706bd1207ad64b3715493a174a059c38d0
+DIST IpDrv-436-Linux-08-20-02.zip 105435 SHA256 a7fb348dd04bd2057f307c5d95c2904a8b9c790d5b80648507549900dc4c76ef SHA512 5f10152b87cf702225fe50d213f3fbd4865cb2f190e0c2c87c996420c115e5f84de7748af635705b8a2ea789bfeaaab4b927364563a4b83f973dcb5af866ccd7 WHIRLPOOL d6be1afe7aa828607c09479a7bc230f61ef34f586eea0d250e06b9f64d613edd250b2ee5d44bf45509d98a51cf2e454c6b4285f1f9db85bba21cc4e51b292d61
+DIST unreali-install.run 4118594 SHA256 576f832bda141bbeb808e376a156f28e58511b581813ed248142c28660903fcb SHA512 9b918fec89de0bb273a2c351dbaccfe32eaaaf9c5ba012ddaf38c1e8617d7c6b8a08c9ac04135105bea89f4127f7f64f52c8d2c00a00e9418f4807fc1f3aff7b WHIRLPOOL 8a77f9bd6e3a3d24f833af88481cba74dd36caa8a6321ee189899c31d0e34658c2984a75600914391978dc23fadafdcb86fba01bc364b2a6da27ea6ac7dd1bd5
+DIST ut-install-436.run 6225010 SHA256 4008c7501a530c1fb5b8143b8e92baee59ef769c0bffa26c09e9bbb2673bc377 SHA512 cfdeb9f345daef4b81acadfa24d711477ba208dffd50716087d034df2dc1eb0ac5bb03570f4f1701b3c4d46b8f954e6d23dde36fc20dafdc114e68730a1fc932 WHIRLPOOL a203436b225747ed06af76e100f07d0a0580df11a4c3a01a431b3e2a48e660717743960cd814ffd2ed5d13624aa1ce7a111c4aa76122593e57469df59e2da26a
+EBUILD unreal-226.ebuild 2194 SHA256 183bda5c133c1fd0206c7654e21c179fceaafa02f133c5e4b266f11878ec9839 SHA512 fc4dc6962c0b7779fc9dd0bb1dff2fa3e2f0a4d23b2c632a60e32a6e2a907a6e05fe887e4a1745f99385782152a10eeaf7ab852ed92e6bae38cf6b3bf6940125 WHIRLPOOL 8c9af83f150f39d7b3cad95caf41b4be41ec854513731170dbdbf2c3573fe5957c6587b297507ba73ec072746085534c72b98b02bf0e2087976a1dd4d0ae5709
+MISC ChangeLog 2436 SHA256 966bcec62d86765fe6acb65d95b151761a8d9e1f8ec739ae0e8b89dc99d31bf1 SHA512 f38b11ec77b092110a511344b6291af2da5b682a7df7e7fa89f3fc574217d1be539057d3fc0eab4a103c8f5dbf6ead39d99805cbf046229c0f8fcb26c7466ef0 WHIRLPOOL 9028a68a8b2521553a2fe03ebb99a54ec038f5656e12ea158da9cd3a2fdbe36dac0d022a035509fed31dee8da76515f6c87fb6cf12e458edc6b7f33250b3c98d
+MISC ChangeLog-2015 2271 SHA256 1fe4822c825b48c780a747d94d83d1844ebd43b5891da2f424a1a454102e8866 SHA512 b22fcdc8b438e08b7546e383ec38c864d154c10077e9896c4a7b92940b66be02af98c55198463f1e6c0b9fee017ff0a70b89bfebd71563d7ad37dd7dd9703377 WHIRLPOOL ff314b8393161313d78e7f46b228e70d29d93a3489a0d814de8951affa7eefea159a1780be1f460349b855d70f9d056be9b282fece05884e317df8df76366f62
+MISC metadata.xml 1104 SHA256 c497f4d0c4ee29e9e266a3716cd31bf7b2c5059b4ff7dc86d62c1516681d719e SHA512 b174ff5cab9985f5ae15323756e9152dc9cad9d2484ad9def7b2dc141318abd600c8e675486334597266538fb6aba17b18ab39c867bae86d3024b249b595d1b6 WHIRLPOOL 9742e18af608066bb3340f39505b4e9f111349cbc038142feee8193209001a58680787051232fdcb68b9d2b48b39925301677223cc4ea121b3e72ff0916aaeac
diff --git a/games-fps/unreal/files/unreal b/games-fps/unreal/files/unreal
new file mode 100644
index 000000000000..7bbeb753fbe9
--- /dev/null
+++ b/games-fps/unreal/files/unreal
@@ -0,0 +1,3 @@
+#!/bin/sh
+cd GENTOO_DIR
+exec ./UnrealTournament "$@"
diff --git a/games-fps/unreal/metadata.xml b/games-fps/unreal/metadata.xml
new file mode 100644
index 000000000000..0f6933df607a
--- /dev/null
+++ b/games-fps/unreal/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="person">
+ <email>vapier@gentoo.org</email>
+</maintainer>
+<maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+</maintainer>
+<longdescription>
+In Unreal, players take on the role of a criminal whose transfer ship
+has crashed on the mysterious planet Gryphon, where a peaceful race
+known as the Nali have been hunted and enslaved by bloodthirsty aliens
+called Skaarj. To dominate Gryphon and mine its precious Tarydium, the
+Skaarj command legions of other menacing species like the gigantic
+Titans, the bio-engineered Brutes and the pack-hunting Krall. Unreal
+combatants must survive in the midst of this inter-species warfare
+armed with an array of deadly weapons. Players will visit ancient Nali
+ruins, underground mines, cities in the sky, spacecraft wreckage and
+even the mysterious Skaarj Mothership in this deadly hunt in which
+every character is both predator and prey.
+</longdescription>
+</pkgmetadata>
diff --git a/games-fps/unreal/unreal-226.ebuild b/games-fps/unreal/unreal-226.ebuild
new file mode 100644
index 000000000000..81318a0aa9f4
--- /dev/null
+++ b/games-fps/unreal/unreal-226.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils unpacker cdrom games
+
+DESCRIPTION="Futuristic FPS (a hack that runs on top of Unreal Tournament)"
+HOMEPAGE="http://www.unreal.com/ http://icculus.org/~chunky/ut/unreal/"
+SRC_URI="http://www.icculus.org/%7Echunky/ut/unreal/unreali-install.run
+ ftp://ftp.lokigames.com/pub/patches/ut/ut-install-436.run
+ ftp://ftp.lokigames.com/pub/patches/ut/IpDrv-436-Linux-08-20-02.zip"
+
+LICENSE="all-rights-reserved"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE="X opengl"
+RESTRICT="mirror bindist"
+
+DEPEND="sys-libs/lib-compat
+ app-arch/unzip
+"
+RDEPEND="
+ >=media-libs/libsdl-1.2.15-r5[abi_x86_32(-)]
+ x11-libs/libX11[abi_x86_32(-)]
+ x11-libs/libXau[abi_x86_32(-)]
+ x11-libs/libXdmcp[abi_x86_32(-)]
+ x11-libs/libXext[abi_x86_32(-)]
+ opengl? ( virtual/opengl[abi_x86_32(-)] )
+"
+
+S=${WORKDIR}
+
+src_unpack() {
+ export CDROM_NAME_1="Unreal CD"
+ export CDROM_NAME_2="Unreal Tournament CD"
+ cdrom_get_cds System/Unreal.ini System/UnrealTournament.ini
+ unpack_makeself unreali-install.run
+ mkdir ut
+ cd ut
+ unpack_makeself ut-install-436.run
+ unpack IpDrv-436-Linux-08-20-02.zip
+}
+
+src_install() {
+ local dir=${GAMES_PREFIX_OPT}/unreal
+ dodir "${dir}"
+
+ tar -zxf ut/data.tar.gz -C "${D}/${dir}"
+ tar -zxf ut/OpenGL.ini.tar.gz -C "${D}/${dir}"
+ tar -zxf System.tar.gz -C "${D}/${dir}"
+ insinto "${dir}"/System
+ doins ut/IpDrv.so
+
+ cp -rf "${CDROM_ROOT}"/{Maps,Music,Sounds} "${D}/${dir}/"
+ for f in "${D}/${dir}"/Maps/Dm*.unr ; do
+ mv "${f}" "${f/Dm/DM-}"
+ done
+ dosym Maps "${dir}"/maps
+
+ if has_version '<games-fps/unreal-tournament-451' \
+ || has_version '<games-fps/unreal-tournament-goty-451' ; then
+ CDROM_ROOT="${GAMES_PREFIX_OPT}/unreal-tournament"
+ else
+ cdrom_load_next_cd
+ fi
+ insinto "${dir}"/Textures
+ doins "${CDROM_ROOT}"/Textures/*.utx
+ insinto "${dir}"/Sounds
+ doins "${CDROM_ROOT}"/Sounds/*.uax
+ insinto "${dir}"/System
+ doins "${CDROM_ROOT}"/System/*.u
+ insinto "${dir}"/Music
+ doins "${CDROM_ROOT}"/Music/*.umx
+
+ insinto "${dir}"
+ doins icon.* README*
+
+ exeinto "${dir}"
+ doexe bin/x86/unreal
+
+ games_make_wrapper unreal ./unreal "${dir}" "${dir}"
+
+ prepgamesdirs
+}
diff --git a/games-fps/urbanterror-data/Manifest b/games-fps/urbanterror-data/Manifest
new file mode 100644
index 000000000000..a7963dafac6f
--- /dev/null
+++ b/games-fps/urbanterror-data/Manifest
@@ -0,0 +1,7 @@
+DIST urbanterror-data-4.3.0-to-4.3.1.zip 7495315 SHA256 943fbae28a32f8f7a15eba62eadad646f4640d8d1814e3fb14fac0c50bb513e0 SHA512 f05564babadff73793778926411bc7914bfef4a5f7dfc1003c36e8a549c568ab520adcff8a38e7dd905238738d242aa865e7c6d7db36ed6d592b144e497ed823 WHIRLPOOL b262f51ca35455c013ae5f61e87d5c13a1ac9c5f98eba588398f8ad1db02a9aa505531a08d680770822d57c9df244a532be3ee2cc2dfb224afa8119d5eb5ec45
+DIST urbanterror-data-4.3.1-to-4.3.2.zip 15305498 SHA256 519d212c8766470c2970c75f19e99477a8c2546ca4de78bc28dedce8d2fcabb5 SHA512 cb24939fffef9310c6ca8496d0d4f3be8656685e749ff1d6589fd193990be67ac70494b61ef6a12dd1f6995a78d451b9f09098e03970e82e1e3153ec3f89792c WHIRLPOOL d58d949075a9228d832a67507c30942133a2024c131c0127a263ab1b5a5550576f361565ab8df6ef8b8f3e5f898496fa84b0d845cc47d22f491a04bf88b2623d
+DIST urbanterror-data-4.3.2.zip 1491207564 SHA256 60360806aea9bd383d8a95b8586fe8d8690626b130e907f8727845fd192531bc SHA512 397aa5ba7f869049844d52a9dec234d020b856e16ba3ff295d97775e4e1d48730aecfba3992baf7d55c643c0073ceda32ada18d1473dadd55f561f27a8b9c4ed WHIRLPOOL 52782d0d6668589c5353a7e73ae6dd4ec02a02361532c36889a4b5f3c53d740bece8d9f421c6faeb9c720e6b68dbbccf1758cb39f7b82239a6517c7b0451c4a2
+DIST urbanterror-data.svg 1592 SHA256 0d7eb12a8fe8380e0d89199621414dd56ecdfe8a8b99eec5b95d925294521de9 SHA512 ff789b35d9b1a2282485495b0d1918c7169906aeac094e7a33c7d77cd51d4787733400e1b9851ce19b38e886508d5fdd09f6cfc96b37a5b41bd0cf403e456b98 WHIRLPOOL 281413cfeb881466c2d8b882d0aa4dcf19013630a462775345c69e78a0cb86c7efed14f5d22b453c89648da682ab5e98e3579a1c975994a8e90b9fb22c37892c
+EBUILD urbanterror-data-4.3.2-r1.ebuild 1540 SHA256 73142d0ffe172e775c2302300e16cbedf5e5bc274ae36e2a81a1e378f33e1f1f SHA512 a5214d28d4a42e1d8b36821a6d87145b79b76d7173ce9d6ca42ecef842350c28e49519259bd4330227f2c027a3fd621ddd4f8410434e1c0b18b9781d15526b23 WHIRLPOOL c8307ea51e9d967d6163d04576f9d1e144d52ed68408fa8ca0402609994271de9f10a623fd5fd0cd3c4037fa3b02a255f76d9063fcdea2361e8b87de4c54abb7
+EBUILD urbanterror-data-4.3.2.ebuild 1680 SHA256 c30707c69cf47e04a40949943f3711f51403415cab1298e8c20fa92542165dac SHA512 b1b81929f5f15d656a9cb2fb893bc0e0c6829f8c86db3b7a334dc08333db3734d2f2f387b10dee2041db4702198a72244e5ddf1cc2d25e9ee739361816860b55 WHIRLPOOL a1cda9d80cdc82edabb5b0da0c94ad77eaad2bbdbb5860eaabb27e8af74e045f374890aa9750904868e9aacc12634d31e86679eba66beee34db12a26ee9ed853
+MISC metadata.xml 480 SHA256 9fb4f31068fea54f64850dda92ba1449f1a3642e1e043beb539cda147c7b1d8b SHA512 94c46a1dffab072012fbdda9831db4ed465561866d5f3c7ba01045ef6424780f690bfdf381dd32664f1237b65828fefa1199cae98c5fd23757ceda76142ef5a9 WHIRLPOOL 1121503a218c09c15dbdfc214260af31b594893a8ed57a5338ec1cf114fbbacc7a5e53e758c47626b240e8ce710512eb4a5c587256f2b2ab1d822f8fdfee840c
diff --git a/games-fps/urbanterror-data/metadata.xml b/games-fps/urbanterror-data/metadata.xml
new file mode 100644
index 000000000000..866bc44b9828
--- /dev/null
+++ b/games-fps/urbanterror-data/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>holgersson@posteo.de</email>
+ <name>Nils Freydank</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/games-fps/urbanterror-data/urbanterror-data-4.3.2-r1.ebuild b/games-fps/urbanterror-data/urbanterror-data-4.3.2-r1.ebuild
new file mode 100644
index 000000000000..95dea99a4f67
--- /dev/null
+++ b/games-fps/urbanterror-data/urbanterror-data-4.3.2-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 check-reqs eutils
+
+ENGINE_PV=${PV}
+
+MY_PN=UrbanTerror
+MY_PV=43_full
+
+DESCRIPTION="Data files for UrbanTerror"
+HOMEPAGE="http://www.urbanterror.info"
+SRC_URI="https://up.barbatos.fr/urt/${MY_PN}${MY_PV}.zip -> ${P}.zip"
+
+# fetch updates recursively for |4.3.x-4.3.0|
+if [[ "${PV}" != "4.3.0" ]]; then
+ MY_CTR=0
+ while [[ "${MY_CTR}" -lt "${PV/4.3./}" ]]; do
+ SRC_URI="${SRC_URI} https://up.barbatos.fr/urt/${MY_PN}-4.3.${MY_CTR}-to-4.3.$(( ${MY_CTR} + 1 )).zip -> ${PN}-4.3.${MY_CTR}-to-4.3.$(( ${MY_CTR} + 1 )).zip"
+ MY_CTR=$(( ${MY_CTR} + 1 ))
+ done
+fi
+unset MY_CTR
+
+LICENSE="Q3AEULA-20000111 urbanterror-4.2-maps"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+DEPEND="app-arch/unzip"
+
+S="${WORKDIR}/${MY_PN}43"
+
+CHECKREQS_DISK_BUILD="3300M"
+CHECKREQS_DISK_USR="1400M"
+
+src_prepare() {
+ default
+
+ # apply updates we fetched before
+ # again recursively for |4.3.x - 4.3.0|
+ local MY_CTR
+ if [[ "${PV}" != "4.3.0" ]]; then
+ MY_CTR=0
+ while [[ "${MY_CTR}" -lt "${PV/4.3./}" ]]; do
+ cp -dfpr \
+ "${WORKDIR}"/${MY_PN}-4.3.${MY_CTR}-to-4.3.$(( ${MY_CTR} + 1 ))/* "${S}"
+ MY_CTR=$(( ${MY_CTR} + 1 ))
+ done
+ fi
+}
+
+src_install() {
+ insinto /usr/share/urbanterror/q3ut4
+ doins q3ut4/*.pk3
+ # These files are *essential* for startup
+ newins q3ut4/server_example.cfg server.cfg
+ newins q3ut4/autoexec_example.cfg autoexec.cfg
+
+ dodoc q3ut4/readme43.txt
+ docinto examples
+ dodoc q3ut4/{server_example.cfg,mapcycle_example.txt}
+}
diff --git a/games-fps/urbanterror-data/urbanterror-data-4.3.2.ebuild b/games-fps/urbanterror-data/urbanterror-data-4.3.2.ebuild
new file mode 100644
index 000000000000..f59bac91531f
--- /dev/null
+++ b/games-fps/urbanterror-data/urbanterror-data-4.3.2.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+inherit check-reqs eutils
+
+ENGINE_PV=${PV}
+
+MY_PN=UrbanTerror
+MY_PV=43_full
+
+DESCRIPTION="Data files for UrbanTerror"
+HOMEPAGE="http://www.urbanterror.info"
+SRC_URI="https://up.barbatos.fr/urt/${MY_PN}${MY_PV}.zip -> ${P}.zip
+ https://upload.wikimedia.org/wikipedia/commons/5/56/Urbanterror.svg -> ${PN}.svg"
+
+# fetch updates recursively for |4.3.x-4.3.0|
+if [[ "${PV}" != "4.3.0" ]]; then
+ MY_CTR=0
+ while [[ "${MY_CTR}" -lt "${PV/4.3./}" ]]; do
+ SRC_URI="${SRC_URI} https://up.barbatos.fr/urt/${MY_PN}-4.3.${MY_CTR}-to-4.3.$(( ${MY_CTR} + 1 )).zip -> ${PN}-4.3.${MY_CTR}-to-4.3.$(( ${MY_CTR} + 1 )).zip"
+ MY_CTR=$(( ${MY_CTR} + 1 ))
+ done
+fi
+unset MY_CTR
+
+LICENSE="Q3AEULA-20000111 urbanterror-4.2-maps"
+SLOT="0"
+KEYWORDS="amd64 x86"
+DEPEND="app-arch/unzip"
+
+S="${WORKDIR}/${MY_PN}43"
+
+CHECKREQS_DISK_BUILD="3300M"
+CHECKREQS_DISK_USR="1400M"
+
+src_prepare() {
+ default
+
+ # apply updates we fetched before
+ # again recursively for |4.3.x - 4.3.0|
+ local MY_CTR
+ if [[ "${PV}" != "4.3.0" ]]; then
+ MY_CTR=0
+ while [[ "${MY_CTR}" -lt "${PV/4.3./}" ]]; do
+ cp -dfpr \
+ "${WORKDIR}"/${MY_PN}-4.3.${MY_CTR}-to-4.3.$(( ${MY_CTR} + 1 ))/* "${S}"
+ MY_CTR=$(( ${MY_CTR} + 1 ))
+ done
+ fi
+}
+
+src_install() {
+ newicon -s scalable "${DISTDIR}"/${PN}.svg urbanterror.svg
+ insinto /usr/share/urbanterror/q3ut4
+ doins q3ut4/*.pk3
+ # These files are *essential* for startup
+ newins q3ut4/server_example.cfg server.cfg
+ newins q3ut4/autoexec_example.cfg autoexec.cfg
+
+ dodoc q3ut4/readme43.txt
+ docinto examples
+ dodoc q3ut4/{server_example.cfg,mapcycle_example.txt}
+}
diff --git a/games-fps/urbanterror/Manifest b/games-fps/urbanterror/Manifest
new file mode 100644
index 000000000000..cfcf4a8fc258
--- /dev/null
+++ b/games-fps/urbanterror/Manifest
@@ -0,0 +1,10 @@
+AUX urbanterror-4.3-respect_CFLAGS.patch 1473 SHA256 7a6467e157d8e70c409a8cacde491fcee33fd0365605ba15f9e0d9f80924940b SHA512 f0fa26b1c82bf8df7c1b47eb7cd2afbc93c5b61b3638c0d5bdec33f12051ba525851269d70a7379093f5da7a8fbbb8e3e39f9c74d4df1c4807f32673819f01ee WHIRLPOOL 689176cdd85ab5980a0c7726af1accfd0f8c3879261c5141820bf9e5ad421c49012a19f9ec04360e77eb7b503862a1994ba0f97e84772c9c03fea0a9c78d6dee
+DIST urbanterror-4.3.2_p20170426.tar.gz 10058308 SHA256 8009516332e1f77eae3681b436e099fdd42ffa55d2691694eedc0ca94b194878 SHA512 e8107ab44fdb40bc14a548239185905a01120bbe960b8713e5959df18330fd845761350c5e8e5efd5fbfec10ad62ff9fef68420406cc4cfbe2af69ee66eff1f3 WHIRLPOOL 6aac15e44b0695501195ae172133f4b6788b9dffa5442af20d11626ad27ffd597c7f070c0fb95b0e0e8b8b3d6cf0e1bfc40b0a16abaa27c8f932ee90f19a1824
+DIST urbanterror-4.3.2_p20170713.tar.gz 9984763 SHA256 cf1784a3bd00451fe1bda3267235ea3eee93da65880f15fd13c07681952b4859 SHA512 09fd2232c3cbdde001b8d037f2667a55a584378615f2da10c6815797748028f36b75c899ca4fd1d7d97a33f4b3ddbaa4d271b36b5eabf3bf9e81852ef15864a4 WHIRLPOOL 2bed79adc1dc338d74212263105c03bad51391f8c9e9e543ad54f6d6006cea4a8ebfc0e601400338b941d799dc0f642f71478dc68ad84a50718043f06f042290
+DIST urbanterror-4.3.2_p20170915.tar.gz 10061394 SHA256 fe37df609d763247a0bfaa7dedb33ca45a8aa523467b16f1a585ca8a08b03078 SHA512 d22bc3a0d8d191f797f5b1e7a0671424ca6dafbe5a3bd7fbfcd0e7249b9b4b6e790a64cdf7c93690d032b38f92aee703e9e302701084703d7a79d8f60cc2433e WHIRLPOOL 912201a55822dcf8423f77023f01882339739984dc9e9bdb5dca55763271c56158b47fd137da83d6e56c7625e49df8b5fc5299af646e91104e1f53cad9a50fcb
+EBUILD urbanterror-4.3.2_p20170426.ebuild 3969 SHA256 79c983e8d6ad44095d13ca8e059a581a71073895ce88672eb1a9b76421f11394 SHA512 ba6670fe91361a1017192bca67d6235c982b878916af4191392607f46367671b802d88befe8118042bc4798920db37d2be920c05f0aaca00c764b19d23c57adf WHIRLPOOL 68892849966d590a6f8869331e4fd764d077720168dba93f18c7b7dc00ce9ebcda4ef7580344e12c0702e72fe5d6469a0450348585b89f7345514298afa8d7ae
+EBUILD urbanterror-4.3.2_p20170713.ebuild 4004 SHA256 11a126c91c5bf155777ce5faaf9364b78ff964e6ea235c8d0bfdc3aa6ee5edb0 SHA512 def80468298e611f7a46bf453582b50f43748da4244d4ae62faeddb26809c6d8f18ad2afa9a0513e1ea3d87b8576df700d092e0412417cf99d63bb63a06df482 WHIRLPOOL e0f0e1f886992640385322e9bf29e8b8c0696a85eaf61d2c47c995a819b7ce95c17169acc5231a0ef8be83b67f70e5f642af11e954de9156fa8b609ab24e0bfc
+EBUILD urbanterror-4.3.2_p20170915.ebuild 4004 SHA256 7a1f1f1996b676412b226eb6f87bdd4d112c40300ed5537b795ba280286412c3 SHA512 73cbfce8f97dcbeaa621a6eca247a3aa496e0221c94dbf718f3a1af550dd9c346842e21fe2690d1ceb4a53dc0c7a70603907558c3c6c43b89f7b81dfc1e6bf8c WHIRLPOOL aec2645cbe2f72ea02ecaad009af408573ca92e1f835c9c6391f5e0e21283e4c882cbed85d95f6654c47d84daccb256362de26ce5f4b09795a3ec5291bc4bd23
+MISC ChangeLog 2861 SHA256 6a07b67b0007d36999171cc39cddb002e247ed978dac24bca50df23787244b87 SHA512 30a7d06750de5a6ce7cc16f8f34954e0a7f5596a1b75e67cc755404ade0fa731b5571bf51f3224ee6a70a9d8a2fb13abf60e218361ee92e68930336c044d65c5 WHIRLPOOL b6fd9e88efe71379fbcdee7cf2339ca2e2de7275aba3b7a8d6f8f45f1f031b6534f1f07ef233e4ef2fa0551ed23d9cc6136880dc23c2eaee3899797269df75d6
+MISC ChangeLog-2015 10015 SHA256 b3650a701ee283726d067bf6244814e3410f789158f0ec939e52261fbc9c7c47 SHA512 1a14a93b1c3b7786eabb0563ce6b10b5090df027d8b3b04a5a51838880190deb893a17f6e0336f810bf34ae549affccc6e5dd50dedb4ac59d87d8288bae1f7fd WHIRLPOOL 89734ece7c9e708b6e42f48c38c080aaab79dacb98d66f8031dd4ca7db705e90240c7f5ed3a92e6fe68488e0cc585b073d2c0a37bd55e39dcf0a8568f42cc3a0
+MISC metadata.xml 1022 SHA256 91dfa742a5e0abfbee69544d8e816505fe9860707a8186fe5904e263924b130c SHA512 77a9bf551d2e24b4cfd36196bd2d8d8e9a969f5ceb643144893a1b9485d636e59eb7db0f4b3758f38a454c1f4cbaf8b4582181fe59ae08dcea20b3ec0e4db130 WHIRLPOOL ed83dab78fbed48d453e4d5472958434775d85b601c3239360ed1cdf1ba760c0cb62fc87b02f716710dedaf0f4ea30eafcdbca821d8e8c1812bf63e15433c4b1
diff --git a/games-fps/urbanterror/files/urbanterror-4.3-respect_CFLAGS.patch b/games-fps/urbanterror/files/urbanterror-4.3-respect_CFLAGS.patch
new file mode 100644
index 000000000000..5ce13342ab58
--- /dev/null
+++ b/games-fps/urbanterror/files/urbanterror-4.3-respect_CFLAGS.patch
@@ -0,0 +1,53 @@
+Author: holgersson <holgersson@posteo.de>
+Date: Fri Mar 31 12:13:00 2017 +0200
+
+Respect CFLAGS - inspired by hasufell’s patch
+
+--- a/Makefile 2017-03-31 11:08:58.419210817 +0200
++++ b/Makefile 2017-03-31 12:06:52.559412054 +0200
+@@ -290,34 +290,33 @@
+ CLIENT_EXTRA_FILES=
+
+ ifneq (,$(findstring "$(PLATFORM)", "linux" "gnu_kfreebsd" "kfreebsd-gnu" "gnu"))
+- BASE_CFLAGS = -Wall -fno-strict-aliasing -Wimplicit -Wstrict-prototypes \
+- -pipe -DUSE_ICON -DARCH_STRING=\\\"$(ARCH)\\\"
++ BASE_CFLAGS = -DUSE_ICON -DARCH_STRING=\\\"$(ARCH)\\\"
+ CLIENT_CFLAGS += $(SDL_CFLAGS)
+
+- OPTIMIZEVM = -O3
+- OPTIMIZE = $(OPTIMIZEVM) -ffast-math
++ OPTIMIZEVM =
++ OPTIMIZE = $(OPTIMIZEVM)
+
+ ifeq ($(ARCH),x86_64)
+- OPTIMIZEVM = -O3
+- OPTIMIZE = $(OPTIMIZEVM) -ffast-math
++ OPTIMIZEVM =
++ OPTIMIZE = $(OPTIMIZEVM)
+ HAVE_VM_COMPILED = true
+ else
+ ifeq ($(ARCH),x86)
+- OPTIMIZEVM = -O3 -march=i586
+- OPTIMIZE = $(OPTIMIZEVM) -ffast-math
++ OPTIMIZEVM =
++ OPTIMIZE = $(OPTIMIZEVM)
+ HAVE_VM_COMPILED=true
+ else
+ ifeq ($(ARCH),ppc)
+- BASE_CFLAGS += -maltivec
++ BASE_CFLAGS +=
+ HAVE_VM_COMPILED=true
+ endif
+ ifeq ($(ARCH),ppc64)
+- BASE_CFLAGS += -maltivec
++ BASE_CFLAGS +=
+ HAVE_VM_COMPILED=true
+ endif
+ ifeq ($(ARCH),sparc)
+- OPTIMIZE += -mtune=ultrasparc3 -mv8plus
+- OPTIMIZEVM += -mtune=ultrasparc3 -mv8plus
++ OPTIMIZE +=
++ OPTIMIZEVM +=
+ HAVE_VM_COMPILED=true
+ endif
+ ifeq ($(ARCH),armv7l)
diff --git a/games-fps/urbanterror/metadata.xml b/games-fps/urbanterror/metadata.xml
new file mode 100644
index 000000000000..062f62f84665
--- /dev/null
+++ b/games-fps/urbanterror/metadata.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>holgersson@posteo.de</email>
+ <name>Nils Freydank</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <use>
+ <flag name="altgamma">Alternative way for gamma setting with modesetting driver</flag>
+ <flag name="client">Build binary for client (includes code for non-dedicated server)</flag>
+ <flag name="opus">Use opus as sound codec</flag>
+ <flag name="mumble">Use Mumble for ingame VoIP (experimental)</flag>
+ <flag name="voip">Use ioq3 ingame VoIP (experimental)</flag>
+ <flag name="server">Build binary for dedicated server</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">Barbatos/ioq3-for-UrbanTerror-4</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-fps/urbanterror/urbanterror-4.3.2_p20170426.ebuild b/games-fps/urbanterror/urbanterror-4.3.2_p20170426.ebuild
new file mode 100644
index 000000000000..eaf4a41e7db6
--- /dev/null
+++ b/games-fps/urbanterror/urbanterror-4.3.2_p20170426.ebuild
@@ -0,0 +1,152 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+inherit flag-o-matic gnome2-utils
+
+DESCRIPTION="Hollywood tactical shooter based on the ioquake3 engine"
+HOMEPAGE="http://urbanterror.info"
+
+if [[ ${PV} == "9999" ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/mickael9/ioq3.git"
+ EGIT_BRANCH="urt"
+else
+ COMMIT_ID="60b17a27ecaa30bffc44114cb94df82af7febfdd"
+ SRC_URI="https://github.com/mickael9/ioq3/archive/${COMMIT_ID}.tar.gz -> ${P}.tar.gz"
+ S="${WORKDIR}/ioq3-${COMMIT_ID}"
+ KEYWORDS="amd64 x86"
+
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="+altgamma +client +curl debug mumble openal +opus server voip vorbis"
+REQUIRED_USE=" || ( client server )"
+
+PATCHES=( "${FILESDIR}"/${PN}-4.3-respect_CFLAGS.patch )
+
+RDEPEND="
+ client? (
+ media-libs/libsdl2[X,sound,joystick,opengl,video]
+ mumble? ( media-sound/mumble )
+ openal? ( media-libs/openal )
+ opus? ( media-libs/opusfile )
+ vorbis? (
+ media-libs/libogg
+ media-libs/libvorbis
+ )
+ )
+ curl? ( net-misc/curl )
+ ~games-fps/urbanterror-data-4.3.2
+ sys-libs/zlib[minizip]
+ virtual/jpeg:0
+"
+
+DEPEND="${RDEPEND}"
+
+pkg_pretend() {
+ if use client; then
+ if ! use openal && ! use opus && ! use vorbis; then
+ ewarn
+ ewarn "No sound implementation selected. Enable 'openal', 'opus' or 'vorbis' USE flag to get sound!"
+ fi
+ fi
+}
+
+src_compile() {
+ buildit() { use $1 && echo 1 || echo 0 ; }
+ nobuildit() { use $1 && echo 0 || echo 1 ; }
+
+ # Workaround for used zlib macro, wrt bug #44951
+ append-flags "-DOF=_Z_OF"
+
+ emake \
+ ARCH=$(usex amd64 "x86_64" "i386") \
+ DEFAULT_BASEDIR="/usr/share/urbanterror" \
+ BUILD_CLIENT=$(buildit client) \
+ BUILD_SERVER=$(buildit server) \
+ BUILD_BASEGAME=1 \
+ BUILD_MISSIONPACK=0 \
+ BUILD_GAME_SO=0 \
+ BUILD_GAME_QVM=0 \
+ BUILD_STANDALONE=1 \
+ SERVERBIN="Quake3-UrT-Ded" \
+ CLIENTBIN="Quake3-UrT" \
+ USE_RENDERER_DLOPEN=0 \
+ USE_YACC=0 \
+ BASEGAME="q3ut4"\
+ BASEGAME_CFLAGS="${CFLAGS}" \
+ USE_OPENAL=$(buildit openal) \
+ USE_OPENAL_DLOPEN=$(buildit openal) \
+ USE_CURL=$(buildit curl) \
+ USE_CURL_DLOPEN=$(buildit curl) \
+ USE_CODEC_VORBIS=$(buildit vorbis) \
+ USE_CODEC_OPUS=$(buildit opus) \
+ USE_MUMBLE=$(buildit mumble) \
+ USE_VOIP=$(buildit voip) \
+ USE_INTERNAL_LIBS=0 \
+ USE_LOCAL_HEADERS=0 \
+ USE_ALTGAMMA=$(buildit altgamma)
+}
+
+src_install() {
+ local my_arch=$(usex amd64 "x86_64" "i386")
+
+ # docs from ioq3, not from UrbanTerror ZIP file
+ dodoc ChangeLog README.md README.ioq3.md md4-readme.txt
+
+ if use client; then
+ newbin build/$(usex debug "debug" "release")-linux-${my_arch}/Quake3-UrT.${my_arch} ${PN}
+ # Shooter as defined in https://specifications.freedesktop.org/menu-spec/latest/apas02.html
+ make_desktop_entry ${PN} "UrbanTerror" ${PN}
+ fi
+
+ if use server && ! use client; then
+ # dedicated server only
+ newbin build/$(usex debug "debug" "release")-linux-${my_arch}/Quake3-UrT-Ded.${my_arch} ${PN}-ded
+ fi
+}
+
+pkg_preinst() {
+ use client && gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ use client && gnome2_icon_cache_update
+
+ if [[ -z "${REPLACING_VERSIONS}" ]]; then
+ # This is a new installation
+ if use openal; then
+ elog ""
+ elog "You might need to set:"
+ elog " seta s_useopenal \"1\""
+ elog "in your ~/.q3a/q3ut4/q3config.cfg for openal to work."
+ fi
+
+ if use altgamma; then
+ elog ""
+ elog "You might need to set:"
+ elog " seta r_altgamma \"1\""
+ elog "in your ~/.q3a/q3ut4/q3config.cfg for altgamma to work."
+ fi
+
+ if ! use altgamma; then
+ elog ""
+ elog "If you are using a modesetting graphics driver you might"
+ elog "consider setting USE=\"altgamma\"."
+ elog "For details take a look at:"
+ elog "https://bugs.freedesktop.org/show_bug.cgi?id=27222"
+ fi
+ if ! use client; then
+ elog ""
+ elog "You disabled client support. You won't be able to connect"
+ elog "to any servers and play. If you want to do so, enable"
+ elog "USE=\"client\"."
+ fi
+ fi
+}
+
+pkg_postrm() {
+ use client && gnome2_icon_cache_update
+}
diff --git a/games-fps/urbanterror/urbanterror-4.3.2_p20170713.ebuild b/games-fps/urbanterror/urbanterror-4.3.2_p20170713.ebuild
new file mode 100644
index 000000000000..ba228d054171
--- /dev/null
+++ b/games-fps/urbanterror/urbanterror-4.3.2_p20170713.ebuild
@@ -0,0 +1,152 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+inherit flag-o-matic gnome2-utils
+
+DESCRIPTION="Hollywood tactical shooter based on the ioquake3 engine"
+HOMEPAGE="http://urbanterror.info https://github.com/mickael9/ioq3"
+
+if [[ ${PV} == "9999" ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/mickael9/ioq3.git"
+ EGIT_BRANCH="urt"
+else
+ COMMIT_ID="8eb3e10163c62331b77171a71ca6102d3d63c3e7"
+ SRC_URI="https://github.com/mickael9/ioq3/archive/${COMMIT_ID}.tar.gz -> ${P}.tar.gz"
+ S="${WORKDIR}/ioq3-${COMMIT_ID}"
+ KEYWORDS="~amd64 ~x86"
+
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="+altgamma +client +curl debug mumble openal +opus server voip vorbis"
+REQUIRED_USE=" || ( client server )"
+
+PATCHES=( "${FILESDIR}"/${PN}-4.3-respect_CFLAGS.patch )
+
+RDEPEND="
+ client? (
+ media-libs/libsdl2[X,sound,joystick,opengl,video]
+ mumble? ( media-sound/mumble )
+ openal? ( media-libs/openal )
+ opus? ( media-libs/opusfile )
+ vorbis? (
+ media-libs/libogg
+ media-libs/libvorbis
+ )
+ )
+ curl? ( net-misc/curl )
+ ~games-fps/urbanterror-data-4.3.2
+ sys-libs/zlib[minizip]
+ virtual/jpeg:0
+"
+
+DEPEND="${RDEPEND}"
+
+pkg_pretend() {
+ if use client; then
+ if ! use openal && ! use opus && ! use vorbis; then
+ ewarn
+ ewarn "No sound implementation selected. Enable 'openal', 'opus' or 'vorbis' USE flag to get sound!"
+ fi
+ fi
+}
+
+src_compile() {
+ buildit() { use $1 && echo 1 || echo 0 ; }
+ nobuildit() { use $1 && echo 0 || echo 1 ; }
+
+ # Workaround for used zlib macro, wrt bug #44951
+ append-flags "-DOF=_Z_OF"
+
+ emake \
+ ARCH=$(usex amd64 "x86_64" "i386") \
+ DEFAULT_BASEDIR="/usr/share/urbanterror" \
+ BUILD_CLIENT=$(buildit client) \
+ BUILD_SERVER=$(buildit server) \
+ BUILD_BASEGAME=1 \
+ BUILD_MISSIONPACK=0 \
+ BUILD_GAME_SO=0 \
+ BUILD_GAME_QVM=0 \
+ BUILD_STANDALONE=1 \
+ SERVERBIN="Quake3-UrT-Ded" \
+ CLIENTBIN="Quake3-UrT" \
+ USE_RENDERER_DLOPEN=0 \
+ USE_YACC=0 \
+ BASEGAME="q3ut4"\
+ BASEGAME_CFLAGS="${CFLAGS}" \
+ USE_OPENAL=$(buildit openal) \
+ USE_OPENAL_DLOPEN=$(buildit openal) \
+ USE_CURL=$(buildit curl) \
+ USE_CURL_DLOPEN=$(buildit curl) \
+ USE_CODEC_VORBIS=$(buildit vorbis) \
+ USE_CODEC_OPUS=$(buildit opus) \
+ USE_MUMBLE=$(buildit mumble) \
+ USE_VOIP=$(buildit voip) \
+ USE_INTERNAL_LIBS=0 \
+ USE_LOCAL_HEADERS=0 \
+ USE_ALTGAMMA=$(buildit altgamma)
+}
+
+src_install() {
+ local my_arch=$(usex amd64 "x86_64" "i386")
+
+ # docs from ioq3, not from UrbanTerror ZIP file
+ dodoc ChangeLog README.md README.ioq3.md md4-readme.txt
+
+ if use client; then
+ newbin build/$(usex debug "debug" "release")-linux-${my_arch}/Quake3-UrT.${my_arch} ${PN}
+ # Shooter as defined in https://specifications.freedesktop.org/menu-spec/latest/apas02.html
+ make_desktop_entry ${PN} "UrbanTerror" ${PN}
+ fi
+
+ if use server && ! use client; then
+ # dedicated server only
+ newbin build/$(usex debug "debug" "release")-linux-${my_arch}/Quake3-UrT-Ded.${my_arch} ${PN}-ded
+ fi
+}
+
+pkg_preinst() {
+ use client && gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ use client && gnome2_icon_cache_update
+
+ if [[ -z "${REPLACING_VERSIONS}" ]]; then
+ # This is a new installation
+ if use openal; then
+ elog ""
+ elog "You might need to set:"
+ elog " seta s_useopenal \"1\""
+ elog "in your ~/.q3a/q3ut4/q3config.cfg for openal to work."
+ fi
+
+ if use altgamma; then
+ elog ""
+ elog "You might need to set:"
+ elog " seta r_altgamma \"1\""
+ elog "in your ~/.q3a/q3ut4/q3config.cfg for altgamma to work."
+ fi
+
+ if ! use altgamma; then
+ elog ""
+ elog "If you are using a modesetting graphics driver you might"
+ elog "consider setting USE=\"altgamma\"."
+ elog "For details take a look at:"
+ elog "https://bugs.freedesktop.org/show_bug.cgi?id=27222"
+ fi
+ if ! use client; then
+ elog ""
+ elog "You disabled client support. You won't be able to connect"
+ elog "to any servers and play. If you want to do so, enable"
+ elog "USE=\"client\"."
+ fi
+ fi
+}
+
+pkg_postrm() {
+ use client && gnome2_icon_cache_update
+}
diff --git a/games-fps/urbanterror/urbanterror-4.3.2_p20170915.ebuild b/games-fps/urbanterror/urbanterror-4.3.2_p20170915.ebuild
new file mode 100644
index 000000000000..6265e8c10cd1
--- /dev/null
+++ b/games-fps/urbanterror/urbanterror-4.3.2_p20170915.ebuild
@@ -0,0 +1,152 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+inherit flag-o-matic gnome2-utils
+
+DESCRIPTION="Hollywood tactical shooter based on the ioquake3 engine"
+HOMEPAGE="http://urbanterror.info https://github.com/mickael9/ioq3"
+
+if [[ ${PV} == "9999" ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/mickael9/ioq3.git"
+ EGIT_BRANCH="urt"
+else
+ COMMIT_ID="0b3e62a00bd05d337f2ab6dad2cdb311a5d76464"
+ SRC_URI="https://github.com/mickael9/ioq3/archive/${COMMIT_ID}.tar.gz -> ${P}.tar.gz"
+ S="${WORKDIR}/ioq3-${COMMIT_ID}"
+ KEYWORDS="~amd64 ~x86"
+
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="+altgamma +client +curl debug mumble openal +opus server voip vorbis"
+REQUIRED_USE=" || ( client server )"
+
+PATCHES=( "${FILESDIR}"/${PN}-4.3-respect_CFLAGS.patch )
+
+RDEPEND="
+ client? (
+ media-libs/libsdl2[X,sound,joystick,opengl,video]
+ mumble? ( media-sound/mumble )
+ openal? ( media-libs/openal )
+ opus? ( media-libs/opusfile )
+ vorbis? (
+ media-libs/libogg
+ media-libs/libvorbis
+ )
+ )
+ curl? ( net-misc/curl )
+ ~games-fps/urbanterror-data-4.3.2
+ sys-libs/zlib[minizip]
+ virtual/jpeg:0
+"
+
+DEPEND="${RDEPEND}"
+
+pkg_pretend() {
+ if use client; then
+ if ! use openal && ! use opus && ! use vorbis; then
+ ewarn
+ ewarn "No sound implementation selected. Enable 'openal', 'opus' or 'vorbis' USE flag to get sound!"
+ fi
+ fi
+}
+
+src_compile() {
+ buildit() { use $1 && echo 1 || echo 0 ; }
+ nobuildit() { use $1 && echo 0 || echo 1 ; }
+
+ # Workaround for used zlib macro, wrt bug #44951
+ append-flags "-DOF=_Z_OF"
+
+ emake \
+ ARCH=$(usex amd64 "x86_64" "i386") \
+ DEFAULT_BASEDIR="/usr/share/urbanterror" \
+ BUILD_CLIENT=$(buildit client) \
+ BUILD_SERVER=$(buildit server) \
+ BUILD_BASEGAME=1 \
+ BUILD_MISSIONPACK=0 \
+ BUILD_GAME_SO=0 \
+ BUILD_GAME_QVM=0 \
+ BUILD_STANDALONE=1 \
+ SERVERBIN="Quake3-UrT-Ded" \
+ CLIENTBIN="Quake3-UrT" \
+ USE_RENDERER_DLOPEN=0 \
+ USE_YACC=0 \
+ BASEGAME="q3ut4"\
+ BASEGAME_CFLAGS="${CFLAGS}" \
+ USE_OPENAL=$(buildit openal) \
+ USE_OPENAL_DLOPEN=$(buildit openal) \
+ USE_CURL=$(buildit curl) \
+ USE_CURL_DLOPEN=$(buildit curl) \
+ USE_CODEC_VORBIS=$(buildit vorbis) \
+ USE_CODEC_OPUS=$(buildit opus) \
+ USE_MUMBLE=$(buildit mumble) \
+ USE_VOIP=$(buildit voip) \
+ USE_INTERNAL_LIBS=0 \
+ USE_LOCAL_HEADERS=0 \
+ USE_ALTGAMMA=$(buildit altgamma)
+}
+
+src_install() {
+ local my_arch=$(usex amd64 "x86_64" "i386")
+
+ # docs from ioq3, not from UrbanTerror ZIP file
+ dodoc ChangeLog README.md README.ioq3.md md4-readme.txt
+
+ if use client; then
+ newbin build/$(usex debug "debug" "release")-linux-${my_arch}/Quake3-UrT.${my_arch} ${PN}
+ # Shooter as defined in https://specifications.freedesktop.org/menu-spec/latest/apas02.html
+ make_desktop_entry ${PN} "UrbanTerror" ${PN}
+ fi
+
+ if use server && ! use client; then
+ # dedicated server only
+ newbin build/$(usex debug "debug" "release")-linux-${my_arch}/Quake3-UrT-Ded.${my_arch} ${PN}-ded
+ fi
+}
+
+pkg_preinst() {
+ use client && gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ use client && gnome2_icon_cache_update
+
+ if [[ -z "${REPLACING_VERSIONS}" ]]; then
+ # This is a new installation
+ if use openal; then
+ elog ""
+ elog "You might need to set:"
+ elog " seta s_useopenal \"1\""
+ elog "in your ~/.q3a/q3ut4/q3config.cfg for openal to work."
+ fi
+
+ if use altgamma; then
+ elog ""
+ elog "You might need to set:"
+ elog " seta r_altgamma \"1\""
+ elog "in your ~/.q3a/q3ut4/q3config.cfg for altgamma to work."
+ fi
+
+ if ! use altgamma; then
+ elog ""
+ elog "If you are using a modesetting graphics driver you might"
+ elog "consider setting USE=\"altgamma\"."
+ elog "For details take a look at:"
+ elog "https://bugs.freedesktop.org/show_bug.cgi?id=27222"
+ fi
+ if ! use client; then
+ elog ""
+ elog "You disabled client support. You won't be able to connect"
+ elog "to any servers and play. If you want to do so, enable"
+ elog "USE=\"client\"."
+ fi
+ fi
+}
+
+pkg_postrm() {
+ use client && gnome2_icon_cache_update
+}
diff --git a/games-fps/ut2003-bonuspack-cm/Manifest b/games-fps/ut2003-bonuspack-cm/Manifest
new file mode 100644
index 000000000000..bb402135dc83
--- /dev/null
+++ b/games-fps/ut2003-bonuspack-cm/Manifest
@@ -0,0 +1,5 @@
+DIST cbp2003.zip 149198671 SHA256 fae9e78492cbf24102bba076225463b3bb8cd124a18e47162d429f77101836ba SHA512 92e136c03f1385a28163718cc6ef1c36e46fbad14c74d0f266dfe3d9f4a5093e1bd02dde54e68f70539ba2c4ee163b1e886529f7e734059a85223ab6f853a474 WHIRLPOOL f5ef466296413cc298d4a5b78826dba0b776f72476378dc449cc0a7f2b3d6e0224f2f7ae4f342a56189c1f7623f2e63633636162e56d0ca707face5d80796487
+EBUILD ut2003-bonuspack-cm-1.ebuild 797 SHA256 d764924da2ed76f6a94df8c01db4e36f54c7de2727b56cff5ff2d10f468ed6a6 SHA512 78ac1588641c944eefcbb39cf359fea787829acbd84ba75ad1ab9f76ac42838b6c93ce6aa499f40c326d24e517172b23fea85b401ed1e933e3ef3334abbd6292 WHIRLPOOL b099ca371edeb4a679c599ea2713e7f33edfa6720f490cb2f998ae6afffefb2d176426ef21be908d92fb3ad971f16f278024456ec0253a96056829f673d380d2
+MISC ChangeLog 2588 SHA256 12101d7608c91265ee2e6e7d60259e5f43d6e6d918ad0f41a0eda7b40081b015 SHA512 52755f47c16a83ebaa08b668aeed52d4f79f953b929442950b8882c4f5f52d5dd93e649cddd095f1978e86dfff2304352ad90bc393b1cfc45748e921ac810ca6 WHIRLPOOL 399f654be755ee4c198e298162ca6b2f2f4e2356c2a02ad65dab92750c35dc060bfc684fb4717ee213248848f0282a06668213a6acce209e283a5b41dafbf422
+MISC ChangeLog-2015 1088 SHA256 da1e249ae3cdb84d7d5c4d2f3e8c761e60027576a0d4765bcf85904fdae125a1 SHA512 4562d9d02b4973420190372a4164300d18101a8338195c7eceae760cd75c73e0b5e72d862008f666fb9d86dabbda55b447305126be8c333eb00eda500acd700c WHIRLPOOL 5c17d634addd56f1acafe86fdaa07f3afd897dadf9b15af10ec5258d898ba66db0ea0939019a43e222db9653c13c6a99a42b1a1cf38793c36b1ddd40d8260f89
+MISC metadata.xml 771 SHA256 ba25f4169d4a689de3925a408b36b9d36c0f51673d3d23892f754aaa3a630dc4 SHA512 d30d55503e3b3897d2a5093c06a39f684bdf0879214931a360a87637cd62ae1ca019577f42275bf2b4ba28649ab2989b0a2e184998497ddc5ffddbb6ba35ef5e WHIRLPOOL c648bd9951f1f578cd893012dc4ba2165f3ee02bb654eeb1c6858b130a91e49e2719ebe0b912a7715901ce4d4575accfcc84641cf0662eadd56f97ec70a37be2
diff --git a/games-fps/ut2003-bonuspack-cm/metadata.xml b/games-fps/ut2003-bonuspack-cm/metadata.xml
new file mode 100644
index 000000000000..e716a53e0747
--- /dev/null
+++ b/games-fps/ut2003-bonuspack-cm/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>
+Unreal Tounament 2003 is a first-person 3-D shooter and sequel to the 1999 Game of the Year, Unreal Tournament. The game was ported to Linux by Ryan "icculus" Gordon under contract from Epic Games and the Linux installer was released in the retail box. This game is commercial software and requires data from the original retail discs to play. If you're interested in checking out the technology behind Unreal Tournament 2003, you can "emerge ut2003-demo" to get the playable demo.
+</longdescription>
+</pkgmetadata>
diff --git a/games-fps/ut2003-bonuspack-cm/ut2003-bonuspack-cm-1.ebuild b/games-fps/ut2003-bonuspack-cm/ut2003-bonuspack-cm-1.ebuild
new file mode 100644
index 000000000000..938b6bcdc0a6
--- /dev/null
+++ b/games-fps/ut2003-bonuspack-cm/ut2003-bonuspack-cm-1.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit games
+
+IUSE=""
+DESCRIPTION="Community Bonus Pack for UT2003"
+HOMEPAGE="http://liandri.beyondunreal.com/Unreal_Tournament_2003"
+SRC_URI="https://ut.rushbase.net/beyondunreal/mods/cbp2003.zip"
+
+LICENSE="ut2003"
+SLOT="1"
+KEYWORDS="x86"
+RESTRICT="mirror strip"
+
+RDEPEND="games-fps/ut2003"
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+S=${WORKDIR}
+
+dir=${GAMES_PREFIX_OPT}/ut2003
+Ddir=${D}/${dir}
+
+src_unpack() {
+ unzip -qq "${DISTDIR}"/${A} || die
+}
+
+src_install() {
+ for i in Animations Help Music Maps StaticMeshes Textures System
+ do
+ mkdir -p "${Ddir}"/${i} || die
+ done
+ games_umod_unpack CBP2003.ut2mod
+ rm "${Ddir}/Readme.txt" "${Ddir}/cbp installer logo1.bmp"
+ prepgamesdirs
+}
diff --git a/games-fps/ut2003-bonuspack-de/Manifest b/games-fps/ut2003-bonuspack-de/Manifest
new file mode 100644
index 000000000000..7e61a8d27c01
--- /dev/null
+++ b/games-fps/ut2003-bonuspack-de/Manifest
@@ -0,0 +1,5 @@
+DIST debonus.ut2mod.zip 74977458 SHA256 0c1d7c4816245c75d5236d5ca20c4fdc106a150688498bfe98feb5f5d1593348 SHA512 2c70d39eea1ea647d2fbee21dda5b00057b7feb1607a89d86982ac43e6063820aa70c633fbc21c768d1491fec909a06634e0e883aa771be2607b51ab193f0935 WHIRLPOOL 4c0a1d48856d04f5a9f0ae2868af58ba95d481054ceebebc1e3f596fe1634ab2b8cff3e1504bb2a9fe5c0086a160b5432d254cd7d79dac5288c18b90fe8e1a10
+EBUILD ut2003-bonuspack-de-1.ebuild 742 SHA256 a60429c005cd33c2b9589231b3b57ce2c0fb28b26578741c6aad62eee3a2d185 SHA512 0c275d389b944905f1491133400ebe108918eb7f38e13926dd3dd75984ab214f01c3d5c5be1b5161455c1927660f0a699c7bb005b348c0df435835fdc11fe1ad WHIRLPOOL aef1dd4de6eb1a78812e6c9bb494911312868038d7166849b851b1a080576d070def0ade278a1f60b0b82d639600b88797b36269f4eecc213c00e9ed4ef35201
+MISC ChangeLog 2588 SHA256 cb359f73148f6c0d3aa3d2e81023b029f80c277ad0c94225d7d610118fac8fe5 SHA512 13824bc4cbe9b7cb04abaca87be161b846a287c524b28f1c4ed8da444f0b0214caf863e573b16d52f32f53259f3fa85ba6326f10ac92a3ba60448bbf38915d10 WHIRLPOOL bdeba8482a8d8438d215c764f3d48d96f74f94030dc4836cdf49d7cdd972a8732261969c92222a7a3d0f60b099df83e3cd0d5e6322700640ed8fa38ddf43a07e
+MISC ChangeLog-2015 1177 SHA256 a9f241934b8061e113c93ce690d58f15072980e21fc5c67c05861378bc388c73 SHA512 ab3e480ecb324c636c316a2137c134a58c986b2d360922573ee2bbd20d71626406fa9550ba47f9a06302aae22f9606f9f2183ec909adfe2302d5188f0373df9d WHIRLPOOL d4dbc4b153d893014e4939a7e25844512455febe92afba772505fd4d43da55a345c86bf1f3edbc8b4c1a2066f622be6c7d6d27aaf84df9492c6b7defeddb780f
+MISC metadata.xml 771 SHA256 ba25f4169d4a689de3925a408b36b9d36c0f51673d3d23892f754aaa3a630dc4 SHA512 d30d55503e3b3897d2a5093c06a39f684bdf0879214931a360a87637cd62ae1ca019577f42275bf2b4ba28649ab2989b0a2e184998497ddc5ffddbb6ba35ef5e WHIRLPOOL c648bd9951f1f578cd893012dc4ba2165f3ee02bb654eeb1c6858b130a91e49e2719ebe0b912a7715901ce4d4575accfcc84641cf0662eadd56f97ec70a37be2
diff --git a/games-fps/ut2003-bonuspack-de/metadata.xml b/games-fps/ut2003-bonuspack-de/metadata.xml
new file mode 100644
index 000000000000..e716a53e0747
--- /dev/null
+++ b/games-fps/ut2003-bonuspack-de/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>
+Unreal Tounament 2003 is a first-person 3-D shooter and sequel to the 1999 Game of the Year, Unreal Tournament. The game was ported to Linux by Ryan "icculus" Gordon under contract from Epic Games and the Linux installer was released in the retail box. This game is commercial software and requires data from the original retail discs to play. If you're interested in checking out the technology behind Unreal Tournament 2003, you can "emerge ut2003-demo" to get the playable demo.
+</longdescription>
+</pkgmetadata>
diff --git a/games-fps/ut2003-bonuspack-de/ut2003-bonuspack-de-1.ebuild b/games-fps/ut2003-bonuspack-de/ut2003-bonuspack-de-1.ebuild
new file mode 100644
index 000000000000..1676ed619995
--- /dev/null
+++ b/games-fps/ut2003-bonuspack-de/ut2003-bonuspack-de-1.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit games
+
+MY_P="debonus.ut2mod.zip"
+DESCRIPTION="Digital Extremes Bonus Pack for UT2003"
+HOMEPAGE="http://www.moddb.com/games/unreal-tournament-2003"
+SRC_URI="http://ftp.student.utwente.nl/pub/games/UT2003/BonusPack/${MY_P}"
+
+LICENSE="ut2003"
+SLOT="1"
+KEYWORDS="x86"
+IUSE=""
+RESTRICT="mirror strip"
+
+RDEPEND="games-fps/ut2003"
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+S=${WORKDIR}
+
+dir=${GAMES_PREFIX_OPT}/ut2003
+Ddir=${D}/${dir}
+
+src_unpack() {
+ unzip -qq "${DISTDIR}"/${A} || die
+}
+
+src_install() {
+ mkdir -p "${Ddir}"/{System,Maps,StaticMeshes,Textures,Music,Help} || die
+ games_umod_unpack DEBonus.ut2mod
+ prepgamesdirs
+}
diff --git a/games-fps/ut2003-bonuspack-epic/Manifest b/games-fps/ut2003-bonuspack-epic/Manifest
new file mode 100644
index 000000000000..d7a6096ecefd
--- /dev/null
+++ b/games-fps/ut2003-bonuspack-epic/Manifest
@@ -0,0 +1,6 @@
+AUX epic-installer 925 SHA256 8d72b3bf41010b0f6e37057dc5f5d3b0dfb1c675ac5375e8f1ffff68c7fb2983 SHA512 0e49953e28c1be196c67d5d29a5f6ac0f636f1315a18bf883c35c8236b74f4a5aea45693fba013578592bb0601a9eaa734446cfd533af70db9a24371162c2524 WHIRLPOOL 09fa7c10589e1fa2231a3f21b70cf0766afbbf16a2d957443f68f1ce6afe785d926fedb9317a43bb8225cb945db4e94e91f57207444d4cf04128c85c2f836ebb
+DIST UT2003-epicbonuspackone.exe 156913152 SHA256 034a1641c447e2d933ae89e02fecdd2c0358d041dcf3f7996663aaf6901cee21 SHA512 26fa06637c6a99704d11b58f5fe54454f8018c6f07b06b6a9a2075d17b9a9fb7d7155298de5502cefa0f07995f4513ce9531863cef8c344996b5e6dd5fbd339d WHIRLPOOL 681311f3515b0d3e266159d5ceeb76120567e1f90bef2e1da124aa8b54865caee5d86ae3ff5a2272f29922bf66378bb9f22c65eaf80fa1d414d34b9e899d0acb
+EBUILD ut2003-bonuspack-epic-1.ebuild 2502 SHA256 c946f541bf068de88888e793297ab4372442aad2c1c5a5f52e14c8a65d26c47b SHA512 cd4b9b2abdfab58a17818afb41b272a75dfc6d329c9a4f303226d76834875f835485ac13cb97318e2f1646e97ac3adaa754ca5779a98f9ca33e0c0f68cb20585 WHIRLPOOL 99ab989b9567f79c89daa174291304f0adf494a7cd50e787e660ede71821e94ecc84763045db3e92724a71fab89b10482f3e49b1ff7f31ae2e83acece089e33f
+MISC ChangeLog 2619 SHA256 f534eca6e322f76a8155798eea74842ce3fc2c3a62930ddf37c5cec28c044f5a SHA512 09c612efd4c2890a9e1d1bd51f51f98220d9db302a24f833d517c3f5752d0b7460d0592eae5558b49b04744b52c33a591e3e54b02b20dabe2cd671f4374f1f2d WHIRLPOOL 4bffbaa40dbd85a78f4803ff1e465b6249e90f4b035307729caf24bcb14e1ea56c764c1b5b7e19b453d7b49673bd118dc780e2ed9d1664006f1957fe2c91b303
+MISC ChangeLog-2015 2659 SHA256 58f38f5a101b2039d3f91125c6a7fb773e04c465cec0f6457215558efa949c4e SHA512 e27d692a634280f74b49f2371a5d5d3cf592a4832d64ac7206b3ad1af1b29bf54753e2e2b0fd5429dadb5c1c90d72d9782f6469eb32101bdcef4141c34d16b1a WHIRLPOOL 06fdd61fac3fd6a4f97b7bda58260a3b268b6b7fbb428cce041e336ae5fdbe6dd5509e7e1fb0bd005984e1b8c9130be909156010ec9ba93735a76b84cdcaa574
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-fps/ut2003-bonuspack-epic/files/epic-installer b/games-fps/ut2003-bonuspack-epic/files/epic-installer
new file mode 100644
index 000000000000..a8c35aa0c751
--- /dev/null
+++ b/games-fps/ut2003-bonuspack-epic/files/epic-installer
@@ -0,0 +1,48 @@
+#!/bin/bash
+
+if [[ -d $HOME/.ut2003/System ]] ; then
+ cd "$HOME/.ut2003/System"
+ echo "Editing UT2003.ini in $PWD"
+ cat >> UT2003.ini <<EOT
+
+[Xinterface.Tab_AudioSettings]
+BonusPackInfo[1]=(PackageName="AnnouncerEvil.uax",Description="Evil")
+BonusPackInfo[2]=(PackageName="AnnouncerFemale.uax",Description="Female")
+BonusPackInfo[3]=(PackageName="AnnouncerSexy.uax",Description="Aroused")
+
+EOT
+
+ ed UT2003.ini >/dev/null 2>&1 <<EOT
+/\[xInterface.ExtendedConsole\]
+a
+MusicManagerClassName=OGGPlayer.UT2OGGMenu
+.
+wq
+EOT
+
+ ed UT2003.ini >/dev/null 2>&1 <<EOT
+$
+?EditPackages?
+a
+EditPackages=BonusPack
+EditPackages=SkaarjPack
+EditPackages=SkaarjPack_rc
+.
+wq
+EOT
+
+ ed UT2003.ini >/dev/null 2>&1 <<EOT
+$
+?ServerPackages?
+a
+ServerPackages=BonusPack
+ServerPackages=SkaarjPack
+ServerPackages=SkaarjPack_rc
+.
+wq
+EOT
+
+ echo "Editing User.ini in $PWD"
+ sed 's/^F11=.*$/F11=MusicMenu/g' < User.ini > User.ini~~
+ mv User.ini~~ User.ini
+fi
diff --git a/games-fps/ut2003-bonuspack-epic/metadata.xml b/games-fps/ut2003-bonuspack-epic/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-fps/ut2003-bonuspack-epic/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-fps/ut2003-bonuspack-epic/ut2003-bonuspack-epic-1.ebuild b/games-fps/ut2003-bonuspack-epic/ut2003-bonuspack-epic-1.ebuild
new file mode 100644
index 000000000000..08c1832a65fa
--- /dev/null
+++ b/games-fps/ut2003-bonuspack-epic/ut2003-bonuspack-epic-1.ebuild
@@ -0,0 +1,110 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit games
+
+DESCRIPTION="Epic Bonus Pack for UT2003"
+HOMEPAGE="http://www.moddb.com/games/unreal-tournament-2003"
+SRC_URI="http://ftp.student.utwente.nl/pub/games/UT2003/BonusPack/UT2003-epicbonuspackone.exe"
+
+LICENSE="ut2003"
+SLOT="1"
+KEYWORDS="x86"
+IUSE=""
+RESTRICT="strip"
+
+DEPEND="app-arch/unzip"
+RDEPEND="games-fps/ut2003"
+
+S=${WORKDIR}/UT2003-BonusPack
+
+dir=${GAMES_PREFIX_OPT}/ut2003
+Ddir=${D}/${dir}
+
+src_unpack() {
+ unzip -qq "${DISTDIR}"/${A} || die
+ # This is done since the files are the same
+ rm -f "${S}"/Textures/LastManStanding.utx || die
+}
+
+src_install() {
+ insinto "${dir}"/Help
+ newins "${S}"/Help/BonusPackReadme.txt EpicBonusPack.README
+
+ exeinto "${dir}"
+ doexe "${FILESDIR}"/epic-installer
+ dodir "${dir}"/System
+
+ cp -r "${S}"/{Maps,Sounds,StaticMeshes,Textures} "${Ddir}" || die
+ cp "${S}"/System/{*.{det,est,frt,int,itt,kot,tmt,u},User.ini} "${Ddir}"/System || die
+ cp -v "${S}"/System/Manifest.ini "${Ddir}"/System/Manifest.ini.epic || die
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ elog "You will need to run:"
+ elog "emerge --config =${CATEGORY}/${PF}"
+ elog "to make the necessary changes to the system .ini files."
+ elog
+ elog "Each user whom has already played the game will need to run:"
+ elog " ${dir}/epic-installer"
+ echo
+ elog "to update their configuration files in their home directory."
+ echo
+}
+
+pkg_config() {
+ cd ${dir}/System || die
+ cp Manifest.ini Manifest.ini.pre-epic || die
+ cp ${dir}/System/Manifest.ini.epic Manifest.ini || die
+
+ cp Default.ini Default.ini.pre-epic || die
+ cat >> Default.ini <<EOT
+
+[Xinterface.Tab_AudioSettings]
+BonusPackInfo[1]=(PackageName="AnnouncerEvil.uax",Description="Evil")
+BonusPackInfo[2]=(PackageName="AnnouncerFemale.uax",Description="Female")
+BonusPackInfo[3]=(PackageName="AnnouncerSexy.uax",Description="Aroused")
+
+EOT
+
+ ed Default.ini >/dev/null 2>&1 <<EOT
+/\[xInterface.ExtendedConsole\]
+a
+MusicManagerClassName=OGGPlayer.UT2OGGMenu
+.
+w
+q
+EOT
+
+ ed Default.ini >/dev/null 2>&1 <<EOT
+$
+?EditPackages?
+a
+EditPackages=BonusPack
+EditPackages=SkaarjPack
+EditPackages=SkaarjPack_rc
+.
+w
+q
+EOT
+
+ ed Default.ini >/dev/null 2>&1 <<EOT
+$
+?ServerPackages?
+a
+ServerPackages=BonusPack
+ServerPackages=SkaarjPack
+ServerPackages=SkaarjPack_rc
+.
+w
+q
+EOT
+
+ cp DefUser.ini DefUser.ini.pre-epic || die
+ sed -i 's/^F11=.*$/F11=MusicMenu/g' DefUser.ini || die
+ chown games:games ${dir}/System/*.ini || die
+}
diff --git a/games-fps/ut2003-data/Manifest b/games-fps/ut2003-data/Manifest
new file mode 100644
index 000000000000..b1e34b2613f4
--- /dev/null
+++ b/games-fps/ut2003-data/Manifest
@@ -0,0 +1,5 @@
+DIST UT2003CrashFix.zip 2764 SHA256 df1a6fdf81f388486b20abf301ef86fb72b0b12d96bec789d7cb7103da579813 SHA512 24fdaac873b08a0860c23f66b9bd93922fc4f64486adbe9bfefeb340f9d9374778b5e7bacd0e12cc79d819fb340e007ab2a7f1f45c9e4f27ab3ab6b11033d444 WHIRLPOOL ddea25bf472d5ca7f9c9dca1346820045504c10be90e914cd0c000a04c48ad4765e4b283a35cd91c2cb9f4cd8e1d2cabac660c2bfeccff05ecc42b1379242ff5
+EBUILD ut2003-data-2107.ebuild 4050 SHA256 d6f823d5adfeca909866273af888433604eb97844ba248f9c02468ec39aeee0f SHA512 d1676f33a12c61d5b8dd6e5385f4e2170c4436d7574cc3255f3daa89706c2826b18df46cd69d813efa6b29776628d3cbf56e169ea11d984f06bd8aa3e0d59de7 WHIRLPOOL fe1f0f40e9660aaf8326057ba517d559cf3aabe16bcdf419ae9a85c284e06de582a4799285926f2ce1347251c20145e2d61e7ac905cffc7af2e8ed38e8c0be3a
+MISC ChangeLog 2565 SHA256 321f4635abc16706ce7980193268092920c91b26a3a43912bbba1bbc0f726bea SHA512 62608251dc6b5a8b2ced46b1d07bfa06c76c7beae7c244c5df8c837b19d60ef2694eac8bf7d2152992e34c2f27988354ef36a73f6c697482f76846022960eeee WHIRLPOOL 8b7ed92d84c71d9342aa8c252549a60b9146834597608bc515f04252aa226e60d0bfda4f978962b557acaad733f3c3ebec132ebe0ba0367c1080a07a95694c92
+MISC ChangeLog-2015 1972 SHA256 32cb2b25e7f0c3539eb02732e925a76ac126f78ed136fa37ad7f7756b34b857b SHA512 88c7548a6fc0c7b28643b34fd5c25cbde87022ebceee0a5d0e5e214bff2be173c92f56c17bf5326819b7e204cf7796c72e146f29188d070a2aae2fc5883cd3f0 WHIRLPOOL 6f9ef08322765a34d551860bc6864d0e23232e85ea2d725a7086138ed6e608a2f14a591928e6d504605a841b0c2df8ca0bfb37e86bb1b2712d0f5f272a55d71f
+MISC metadata.xml 771 SHA256 ba25f4169d4a689de3925a408b36b9d36c0f51673d3d23892f754aaa3a630dc4 SHA512 d30d55503e3b3897d2a5093c06a39f684bdf0879214931a360a87637cd62ae1ca019577f42275bf2b4ba28649ab2989b0a2e184998497ddc5ffddbb6ba35ef5e WHIRLPOOL c648bd9951f1f578cd893012dc4ba2165f3ee02bb654eeb1c6858b130a91e49e2719ebe0b912a7715901ce4d4575accfcc84641cf0662eadd56f97ec70a37be2
diff --git a/games-fps/ut2003-data/metadata.xml b/games-fps/ut2003-data/metadata.xml
new file mode 100644
index 000000000000..e716a53e0747
--- /dev/null
+++ b/games-fps/ut2003-data/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>
+Unreal Tounament 2003 is a first-person 3-D shooter and sequel to the 1999 Game of the Year, Unreal Tournament. The game was ported to Linux by Ryan "icculus" Gordon under contract from Epic Games and the Linux installer was released in the retail box. This game is commercial software and requires data from the original retail discs to play. If you're interested in checking out the technology behind Unreal Tournament 2003, you can "emerge ut2003-demo" to get the playable demo.
+</longdescription>
+</pkgmetadata>
diff --git a/games-fps/ut2003-data/ut2003-data-2107.ebuild b/games-fps/ut2003-data/ut2003-data-2107.ebuild
new file mode 100644
index 000000000000..f10d61c8f455
--- /dev/null
+++ b/games-fps/ut2003-data/ut2003-data-2107.ebuild
@@ -0,0 +1,135 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils unpacker cdrom games
+
+DESCRIPTION="Unreal Tournament 2003 - Sequel to the 1999 Game of the Year multi-player first-person shooter"
+HOMEPAGE="http://www.unrealtournament2003.com/"
+SRC_URI="http://download.factoryunreal.com/mirror/UT2003CrashFix.zip"
+
+LICENSE="ut2003"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+RESTRICT="strip"
+
+RDEPEND=""
+DEPEND="app-arch/unzip
+ games-util/uz2unpack"
+
+S=${WORKDIR}
+
+dir=${GAMES_PREFIX_OPT}/ut2003
+Ddir=${D}/${dir}
+
+pkg_setup() {
+ games_pkg_setup
+ ewarn "The installed game takes about 2.7GB of space!"
+}
+
+src_unpack() {
+ cdrom_get_cds System/Packages.md5 StaticMeshes/AWHardware.usx.uz2 \
+ Extras/MayaPLE/Maya4PersonalLearningEditionEpic.exe
+ unzip "${DISTDIR}"/UT2003CrashFix.zip || die
+}
+
+src_install() {
+ insinto "${dir}"
+ # Disk 1
+ einfo "Copying files from Disk 1..."
+ doins -r "${CDROM_ROOT}"/{Animations,ForceFeedback,KarmaData,Maps,Sounds,Textures,Web}
+ insinto "${dir}"/System
+ doins -r "${CDROM_ROOT}"/System/{editorres,*.{bmp,dat,det,est,frt,ini,int,itt,md5,u,upl,url}}
+ insinto "${dir}"/Benchmark/Stuff
+ doins -r "${CDROM_ROOT}"/Benchmark/Stuff/*
+ cdrom_load_next_cd
+
+ # Disk 2
+ insinto "${dir}"
+ einfo "Copying files from Disk 2..."
+ doins -r "${CDROM_ROOT}"/{Music,Sounds,StaticMeshes,Textures}
+ cdrom_load_next_cd
+
+ # Disk 3
+ einfo "Copying files from Disk 3..."
+ doins -r "${CDROM_ROOT}"/Sounds
+
+ # TODO: move this to src_unpack, where it belongs
+ unpack_makeself "${CDROM_ROOT}"/linux_installer.sh || die
+ tar xf "${S}"/ut2003lnxbins.tar || die
+
+ # create empty files in Benchmark
+ for j in {CSVs,Logs,Results} ; do
+ mkdir -p "${Ddir}"/Benchmark/${j} || die
+ touch "${Ddir}"/Benchmark/${j}/DO_NOT_DELETE.ME || die
+ done
+
+ # Cleaning up our installation
+ rm "${Ddir}"/System/{Build,Def{ault,User},Manifest,UT2003,User}.ini || die
+ rm -f "${Ddir}"/System/{Core,Engine,Setup,UnrealGame,Window,XGame,XInterface,XWeapons}.{det,est,frt,int,itt,u} || die
+ rm -rf "${Ddir}"/Web/ServerAdmin || die
+ rm -f "${Ddir}"/System/{Editor,Fire,IpDrv,UnrealEd,Vehicles,XEffects,XPickups,XWebAdmin}.u || die
+ rm -f "${Ddir}"/System/{UWeb,XAdmin}.{int,u} || die
+ rm -f "${Ddir}"/System/GamePlay.{det,itt,u} || die
+ rm -f "${Ddir}"/System/XMaps.{det,est} "${Ddir}"/System/Xweapons.itt || die
+ rm -f "${Ddir}"/System/Manifest.int "${Ddir}"/System/Packages.md5 || die
+
+ # install extra help files
+ insinto "${dir}"/Help
+ doins "${S}"/Help/Unreal.bmp
+
+ # install Default and DefUser ini files
+ insinto "${dir}"/System
+ doins "${S}"/System/Def{ault,User}.ini
+
+ # install eula
+ insinto "${dir}"
+ doins "${S}"/eula/License.int
+
+ # copying extra/updater
+ doins -r "${S}"/{extras,updater}
+ rm -f "${Ddir}"/updater/update || die
+
+ # copy libraries
+ exeinto "${dir}"/System
+ doexe "${S}"/System/libSDL-1.2.so.0 || die
+
+ # uncompressing files
+ einfo "Uncompressing files... this may take a while..."
+ for j in {Animations,Maps,Sounds,StaticMeshes,Textures} ; do
+ games_ut_unpack "${Ddir}"/${j} || die "uncompressing files"
+ done
+
+ # installing documentation/icon
+ dodoc "${S}"/README.linux || die "dodoc README.linux"
+ newicon "${S}"/Unreal.xpm ut2003.xpm || die "copying icon"
+ doins "${S}"/README.linux "${S}"/Unreal.xpm || die "copying readme/icon"
+ # copy ut2003/ucc
+ exeinto "${dir}"
+ doexe "${S}"/bin/ut2003 "${S}"/ucc || die "copying ut2003/ucc"
+
+ # Here we apply DrSiN's crash patch
+ cp "${S}"/CrashFix/System/crashfix.u "${Ddir}"/System
+
+ ed "${Ddir}"/System/Default.ini >/dev/null 2>&1 <<EOT
+$
+?Engine.GameInfo?
+a
+AccessControlClass=crashfix.iaccesscontrolini
+.
+w
+q
+EOT
+
+ # Here we apply fix for bug #54726
+ sed -i -e "s:UplinkToGamespy=True:UplinkToGamespy=False:" \
+ "${Ddir}"/System/Default.ini || 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 '{}' + || die
+
+ prepgamesdirs
+}
diff --git a/games-fps/ut2003-demo/Manifest b/games-fps/ut2003-demo/Manifest
new file mode 100644
index 000000000000..9d883d2b5074
--- /dev/null
+++ b/games-fps/ut2003-demo/Manifest
@@ -0,0 +1,11 @@
+AUX benchmark 1180 SHA256 33c890051ecab7a2d136d413c18d20078675ff0e215eb9df7b7ac6380e2db0fc SHA512 4da05b170e3b8a983d264c83e094a8084a9a9b9b58c6f7fce30ea7273f625f8e6c03794a519cdaab5cfba64fb4b5047ab73eb3190c6a076a5fde4eb0399c1785 WHIRLPOOL b928b19c75fb7fadf720bc1b8a6bbbf370d688df968ba6328f44c5d273e6659f4471543022e8888dbe37fa2e1701e3dcb217b8a4e8645632a1984c2133055973
+AUX results.py 1461 SHA256 3c492242e044921fa33e0628eb497be23c0584a0eef3f8eb1b4505ef168c92f7 SHA512 6b0e21638acda24e37105b33aaa979e18acbdd75f061a16a7a8d5109404bc1478988cad142167afe27a7ce5901e492178d2eda04c293d027048f6d873a56873a WHIRLPOOL 3a14ae12b5c1d0a26954d0a286881810a9369b1bb8202621dba46f36548e43e85e0b9b93bcb5a9a0104615cf1e89fbc9eadff1f1f7856a92c9f2ffd3b02d0938
+AUX results.sh 2107 SHA256 cc7c7fa724961d297d656e70f429d82efc1f004d0a82973f1c949882546a6eb6 SHA512 749ccf70249d848605437da43f99f0fc881ee58edc85535d6ee0bf2bf57c5642a985979d5bc048a64363f711af35cafcd53d438974a13e62f705551ba6ec3d51 WHIRLPOOL 590c571316f561db5015b25fafd8f848017e99e5d06a94fb41e06dcacc1960137b374d88a785366e0df0387f3b016bd4dea859548314f6f12b77eee8933db75a
+AUX ut2003-demo 692 SHA256 a40b124f93f8f47c5823ddec5234eef4c249e7f488a69fbb0f0949921d92474b SHA512 50b927c70865ca808cd060fc1a3e1bc7549f85acdeb18e90343108823db858e3580db5e584cad2e41358e205e4b5375c4deba6990aff4227a9b7e5333dcf51a8 WHIRLPOOL 13fe3c1a21be05df45ae5a231cddd80f1dc0b7c6a4b53379f542fb3edc60b04e4e93b24318273663cbb2024561ce55026e0bbb2303c1f5db5b75ec50cb33ed13
+DIST UT2003CrashFix.zip 2764 SHA256 df1a6fdf81f388486b20abf301ef86fb72b0b12d96bec789d7cb7103da579813 SHA512 24fdaac873b08a0860c23f66b9bd93922fc4f64486adbe9bfefeb340f9d9374778b5e7bacd0e12cc79d819fb340e007ab2a7f1f45c9e4f27ab3ab6b11033d444 WHIRLPOOL ddea25bf472d5ca7f9c9dca1346820045504c10be90e914cd0c000a04c48ad4765e4b283a35cd91c2cb9f4cd8e1d2cabac660c2bfeccff05ecc42b1379242ff5
+DIST ut2003-demo-misc.tar.bz2 31851 SHA256 215a82cc4768c93a979771b1abf6250bcbe36be466d119df41acd041ac189ced SHA512 9a1e154aac7a8ccd043135e2a617a19203f6942e8e152d06ec8ed1e6877118cfb3ddbeab7ec2617670e26f13c0e394b8b8dbc747688b8b0b244a8c404f33d7f0 WHIRLPOOL 5597c0c4444de2e50cf87c23cbe4c863258da761645d41f4693a7aa774bb68cb8f8a4bf5c8b3b4e8a670f7c8ce616728d1223dd18b20c59fde60462e413db9f0
+DIST ut2003demo-lnx-2206.sh.bin 137253079 SHA256 e7664d20d6364e4f151199e3f7e111888abeb63e1d93146c88d932c6a2b94173 SHA512 8018d58999010c17198185838e42f7cbda0f55476f1e6065b4b2957db3652fe9c1af39ba65451565f54d41507413f4e0b1edf2678c9cc7c221f2ca278ec655be WHIRLPOOL b4bd520a60385d803d7d44247a48ca80a1116d9a3b9ea9f1dcdf2d1114bcc42e8705f00e228fe50fedc95d1d1c130ceaceb0c54210f51fb03da0672d13c35758
+EBUILD ut2003-demo-2206-r3.ebuild 3568 SHA256 243604a648006096b2f929672c23cb455a5f3eb6e3c8da7fe072fe6e4dc2533f SHA512 e07a649350199173ee334772c5b207fa2dc574697badda53325c15dbd8d65e8f9c68d85a6445efe223be17bd3189ab62311e00ce04ab4054fc26a55afde3f355 WHIRLPOOL 80e99be1a63ab9e761cee7571f857d51f32ec35ab3dcee7e416a4ce342a4cd658ad4a42c9d78087b74a8534a718409fb341ab4259cc76b12e819c84a0aace885
+MISC ChangeLog 2697 SHA256 4466808a76fffbf7a5e9da2d6cc6e57f7a36a3e272214009c5f149d7e2dcad2e SHA512 27289ca1d4f863db1b33e0372f0891da6a4551f0e7cdc93c313ae9f0436e7e0733b61e6b131716ca554bc159660c5992184cfd3fa171152b9aad8aa576008d70 WHIRLPOOL 77d67632a77f8bbbbd8970bdabbec80f530b08ea3800c2ede0f72a6aa96dd5f6eb84aadeafd860f1669a443e853ca472a5f145534715b54235ec037d0d7f8c3c
+MISC ChangeLog-2015 8266 SHA256 46607ae6eaf0b9f71b7570b485c665c82c20efa9f46088a012ede6b1752b8b26 SHA512 afadb78533216d83cd594550682ad6ea8b7f01d8d3c50086498236d92150944b58fe2fd76887868f7c4fa380cd68eb0c49641f5f13c8c44b2255f09bb3fd57ed WHIRLPOOL fdc23004daa4a9db1e320d26d141ed022f01f2e046e1fd81b606c96d6a1b28ed8f33c553ddb1f3ffb41a68cc867931b263758b136d3f2f34aa1c1a58210d46aa
+MISC metadata.xml 602 SHA256 c52b70e89f22a8b58585903312f0b2d5385f9ee6bf9dc7485c717d1c5880f868 SHA512 2c956bf66965f83b68bb0c04d79d479ae76af9b7781bca93a1ff7898f02838ee0c1cc72290943be9902dee38096f2b119f95f21e5bed781e8c04f331a60adac2 WHIRLPOOL f36c50bdc2c37b8ea081262b10198a9c9b9b08901fc57f8f592718b2925fce3f4dd0e145a844ab9ed79beed27168b73c6c4c89f8c1a169b1e9d1ef9d4c1ccf7d
diff --git a/games-fps/ut2003-demo/files/benchmark b/games-fps/ut2003-demo/files/benchmark
new file mode 100644
index 000000000000..2047897da9ab
--- /dev/null
+++ b/games-fps/ut2003-demo/files/benchmark
@@ -0,0 +1,37 @@
+#!/bin/sh
+# Originally from linuxforen.de
+# Modified by phoen][x <phoenix@gentoo.org>, Sep/19/2002
+# Modifications, enhancements or bugs? Mail me.
+
+# Tweaks by Daniel Robbins <drobbins@gentoo.org> 25 Feb 2003
+
+STUFF=GAMES_PREFIX_OPT/ut2003-demo/Benchmark/Stuff
+MYPATH=${HOME}/.ut2003/Benchmark
+TEMPLOG=${MYPATH}/benchmark.log
+LOG=${MYPATH}/bench.log
+
+[ -d ${MYPATH} ] || mkdir -p ${MYPATH}
+
+rm -f ${TEMPLOG} ${LOG}
+touch ${TEMPLOG} ${LOG}
+
+date > $LOG
+
+echo ">> Starting benchmark"
+cd GAMES_PREFIX_OPT//ut2003-demo/System
+for BENCH in GAMES_PREFIX_OPT//ut2003-demo/Benchmark/*-*.sh
+do
+ echo "Running ${BENCH} with MinDetail"
+ ${BENCH} -ini=${STUFF}/MinDetail.ini -userini=${STUFF}/MinDetailUser.ini &> /dev/null
+ echo -n "${BENCH} / MinDetail / " >> ${LOG}
+ cat ${TEMPLOG} | tail -n1 >> ${LOG}
+
+ echo "Running ${BENCH} with MaxDetail"
+ ${BENCH} -ini=${STUFF}/MaxDetail.ini -userini=${STUFF}/MaxDetailUser.ini &> /dev/null
+ echo -n "${BENCH} / MaxDetail / " >> ${LOG}
+ cat ${TEMPLOG} | tail -n1 >> ${LOG}
+done
+
+echo ">> Benchmark complete"
+GAMES_PREFIX_OPT/ut2003-demo/Benchmark/results.sh
+echo ">> Use 'ut2003-demo --results' to show these results again (without benchmarking)"
diff --git a/games-fps/ut2003-demo/files/results.py b/games-fps/ut2003-demo/files/results.py
new file mode 100644
index 000000000000..3e626239129d
--- /dev/null
+++ b/games-fps/ut2003-demo/files/results.py
@@ -0,0 +1,61 @@
+#!/usr/bin/env python
+# Written by phoen][x <phoenix@gentoo.org>, Sep/19/2002
+# Modifications, enhancements or bugs? Mail me.
+import sys
+
+def help():
+ print "Usage"
+ print " results.py logfile"
+
+def stats(data,mode):
+ print(
+""">> Score for %s
+MinDetail: %f (%d tests)
+MaxDetail: %f (%d tests)
+Average : %f (%d tests)
+""" % (mode,data[0][0]/data[0][1],data[0][1],data[1][0]/data[1][1],data[1][1],
+ (data[0][0]+data[1][0])/(data[0][1]+data[1][1]),data[0][1]+data[1][1]))
+
+args = sys.argv[1:]
+if "--help" in args:
+ help()
+else:
+ if len(args):
+ file = args[0]
+ else:
+ import user
+ file = "%s/.ut2003/Benchmark/bench.log" % user.home
+ try:
+ myfile = open(file)
+ date = myfile.readline()
+ print(">> Results of the UT2003-demo benchmark")
+ print(">> created on %s" % date)
+
+ botmatch = ([0,0],[0,0])
+ flyby = ([0,0],[0,0])
+
+ for line in myfile.readlines():
+ results = line.split()
+ category = results[0].split("-")[0]
+
+ if results[2] == "MinDetail":
+ detail = 0
+ elif results[2] == "MaxDetail":
+ detail = 1
+ else:
+ assert "Neither MinDetail nor MaxDetail?"
+
+ if category == "botmatch":
+ botmatch[detail][0] += float(results[13])
+ botmatch[detail][1] += 1
+ elif category == "flyby":
+ flyby[detail][0] += float(results[13])
+ flyby[detail][1] += 1
+ else:
+ assert "Neither botmach nor flyby?"
+
+ stats(botmatch,"Botmatch")
+ stats(flyby,"FlyBy")
+
+ except IOError:
+ print("Unable to open file %s" % file)
diff --git a/games-fps/ut2003-demo/files/results.sh b/games-fps/ut2003-demo/files/results.sh
new file mode 100644
index 000000000000..a74cf909c9ad
--- /dev/null
+++ b/games-fps/ut2003-demo/files/results.sh
@@ -0,0 +1,79 @@
+#!/bin/bash
+# Written by phoen][x <phoenix@gentoo.org>, Sep/21/2002
+# Modifications, enhancements or bugs? Contact games@gentoo.org
+
+[[ -z "${1}" ]] \
+ && FILE="${HOME}/.ut2003/Benchmark/bench.log" \
+ || FILE="${1}"
+
+CURLINE=0
+
+BM_MIN_SCORE=0
+BM_MIN_COUNT=0
+BM_MAX_SCORE=0
+BM_MAX_COUNT=0
+
+FB_MIN_SCORE=0
+FB_MIN_COUNT=0
+FB_MAX_SCORE=0
+FB_MAX_COUNT=0
+
+while read LINE ; do
+ CURLINE=`expr $CURLINE + 1`
+ if [[ ${CURLINE} -eq 1 ]] ; then
+ echo ">> Results of the UT2003-demo benchmark"
+ echo ">> Created on ${LINE}"
+ continue
+ fi
+
+ set -- ${LINE}
+ TYPE=$(echo $(basename ${1}) | cut -d- -f1)
+ DETAIL=${3}
+ SCORE=${14}
+
+ case ${TYPE} in
+ "botmatch")
+ case ${DETAIL} in
+ "MinDetail")
+ BM_MIN_SCORE=`echo ${BM_MIN_SCORE} + ${SCORE} | bc`
+ BM_MIN_COUNT=`expr ${BM_MIN_COUNT} + 1`
+ ;;
+ "MaxDetail")
+ BM_MAX_SCORE=`echo ${BM_MAX_SCORE} + ${SCORE} | bc`
+ BM_MAX_COUNT=`expr ${BM_MAX_COUNT} + 1`
+ ;;
+ esac
+ ;;
+ "flyby")
+ case ${DETAIL} in
+ "MinDetail")
+ FB_MIN_SCORE=`echo ${FB_MIN_SCORE} + ${SCORE} | bc`
+ FB_MIN_COUNT=`expr ${FB_MIN_COUNT} + 1`
+ ;;
+ "MaxDetail")
+ FB_MAX_SCORE=`echo ${FB_MAX_SCORE} + ${SCORE} | bc`
+ FB_MAX_COUNT=`expr ${FB_MAX_COUNT} + 1`
+ ;;
+ esac
+ ;;
+ esac
+done < ${FILE}
+
+BM_MIN_AVG=`echo "scale=6; ${BM_MIN_SCORE} / ${BM_MIN_COUNT}" | bc`
+BM_MAX_AVG=`echo "scale=6; ${BM_MAX_SCORE} / ${BM_MAX_COUNT}" | bc`
+BM_ALL_AVG=`echo "scale=6; (${BM_MIN_SCORE} + ${BM_MAX_SCORE}) / (${BM_MIN_COUNT} + ${BM_MAX_COUNT})" | bc`
+
+FB_MIN_AVG=`echo "scale=6; ${FB_MIN_SCORE} / ${FB_MIN_COUNT}" | bc`
+FB_MAX_AVG=`echo "scale=6; ${FB_MAX_SCORE} / ${FB_MAX_COUNT}" | bc`
+FB_ALL_AVG=`echo "scale=6; (${FB_MIN_SCORE} + ${FB_MAX_SCORE}) / (${FB_MIN_COUNT} + ${FB_MAX_COUNT})" | bc`
+
+echo "
+>> Score for Botmatch
+MinDetail: ${BM_MIN_AVG} (${BM_MIN_COUNT} tests)
+MaxDetail: ${BM_MAX_AVG} (${BM_MAX_COUNT} tests)
+Average : ${BM_ALL_AVG} (`expr ${BM_MIN_COUNT} + ${BM_MAX_COUNT}` tests)
+
+>> Score for FlyBy
+MinDetail: ${FB_MIN_AVG} (${FB_MIN_COUNT} tests)
+MaxDetail: ${FB_MAX_AVG} (${FB_MAX_COUNT} tests)
+Average : ${FB_ALL_AVG} (`expr ${FB_MIN_COUNT} + ${FB_MAX_COUNT}` tests)"
diff --git a/games-fps/ut2003-demo/files/ut2003-demo b/games-fps/ut2003-demo/files/ut2003-demo
new file mode 100644
index 000000000000..56d7e10e6a73
--- /dev/null
+++ b/games-fps/ut2003-demo/files/ut2003-demo
@@ -0,0 +1,30 @@
+#!/bin/bash
+# Written by phoen][x <phoenix@gentoo.org>, Sep/19/2002
+# Modifications, enhancements or bugs? Mail me.
+
+INSTALL="GAMES_PREFIX_OPT//ut2003-demo"
+
+case ${1} in
+ "--results")
+ pushd ${INSTALL}/Benchmark &> /dev/null
+ ./results.sh
+ popd &> /dev/null
+ ;;
+ "--bench")
+ pushd ${INSTALL}/Benchmark &> /dev/null
+ ./benchmark
+ popd &> /dev/null
+ ;;
+ "--help")
+ echo "Usage:"
+ echo " ut2003-demo [--bench] || [--results]"
+ echo " Optional parameters, only one at a time."
+ echo " --bench : starts ut2003-demo in benchmark mode"
+ echo " --results : outputs the results of your last benchmark"
+ ;;
+ *)
+ pushd ${INSTALL} &> /dev/null
+ ./ut2003_demo
+ popd &> /dev/null
+ ;;
+esac
diff --git a/games-fps/ut2003-demo/metadata.xml b/games-fps/ut2003-demo/metadata.xml
new file mode 100644
index 000000000000..a7cd2290aab2
--- /dev/null
+++ b/games-fps/ut2003-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>
+Unreal Tounament 2003 is a first-person 3-D shooter and sequel to the 1999 Game of the Year, Unreal Tournament. The game was ported to Linux by Ryan "icculus" Gordon under contract from Epic Games and the Linux installer was released in the retail box. This game is a playable demo of the full commercial version.
+</longdescription>
+</pkgmetadata>
diff --git a/games-fps/ut2003-demo/ut2003-demo-2206-r3.ebuild b/games-fps/ut2003-demo/ut2003-demo-2206-r3.ebuild
new file mode 100644
index 000000000000..912bd67da1ec
--- /dev/null
+++ b/games-fps/ut2003-demo/ut2003-demo-2206-r3.ebuild
@@ -0,0 +1,123 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils unpacker games
+
+DESCRIPTION="Demo for the sequel to the 1999 Game of the Year multi-player first-person shooter"
+HOMEPAGE="http://www.ut2003.com/"
+SRC_URI="http://unreal.epicgames.com/linux/ut2003/ut2003demo-lnx-${PV}.sh.bin
+ http://download.factoryunreal.com/mirror/UT2003CrashFix.zip
+ https://dev.gentoo.org/~wolf31o2/sources/${PN}/${PN}-misc.tar.bz2"
+
+LICENSE="ut2003-demo"
+SLOT="0"
+KEYWORDS="-* amd64 x86"
+IUSE=""
+RESTRICT="strip"
+
+DEPEND="app-arch/unzip"
+RDEPEND="
+ sys-devel/bc
+ virtual/libstdc++:3.3
+ virtual/opengl[abi_x86_32(-)]
+ 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}/*.so ${dir:1}/*-bin ${dir:1}/System/libSDL-1.2.so.0"
+
+src_unpack() {
+ unpack_makeself "${DISTDIR}"/ut2003demo-lnx-${PV}.sh.bin || die
+ unzip "${DISTDIR}"/UT2003CrashFix.zip || die
+ cd "${S}"
+ unpack ./setupstuff.tar.gz || die
+ unpack ./ut2003lnx_demo.tar.bz2 || die
+ unpack ${PN}-misc.tar.bz2 || die
+}
+
+src_install() {
+ einfo "This will take a while ... go get a pizza or something"
+ dodir "${dir}"
+
+ local i
+ for i in Animations Benchmark Help KarmaData Maps Music Sounds \
+ StaticMeshes System Textures Web extras
+ do
+ dodir "${dir}"/${i}
+ cp -pPR "${S}"/${i}/* "${Ddir}"/${i}
+ done
+
+ # Fix the benchmark configurations to use SDL rather than the Windows driver
+ local f
+ for f in MaxDetail.ini MinDetail.ini
+ do
+ sed -i \
+ -e 's/RenderDevice=D3DDrv.D3DRenderDevice/\;RenderDevice=D3DDrv.D3DRenderDevice/' \
+ -e 's/ViewportManager=WinDrv.WindowsClient/\;ViewportManager=WinDrv.WindowsClient/' \
+ -e 's/\;RenderDevice=OpenGLDrv.OpenGLRenderDevice/RenderDevice=OpenGLDrv.OpenGLRenderDevice/' \
+ -e 's/\;ViewportManager=SDLDrv.SDLClient/ViewportManager=SDLDrv.SDLClient/' \
+ "${Ddir}"/Benchmark/Stuff/${f} || die
+ done
+
+ # Have the benchmarks run the nifty wrapper script rather than
+ # ../System/ut2003-bin directly
+ for f in "${Ddir}"/Benchmark/*-*.sh ; do
+ sed -i \
+ -e 's:\.\./System/ut2003-bin:../ut2003_demo:' "${f}" || die
+ done
+
+ # Wrapper and benchmark-scripts
+ dogamesbin "${FILESDIR}"/ut2003-demo
+ exeinto "${dir}"/Benchmark
+ doexe "${FILESDIR}/"{benchmark,results.sh}
+ sed -i -e "s:GAMES_PREFIX_OPT:${GAMES_PREFIX_OPT}:" \
+ "${ED}/${GAMES_BINDIR}/${PN}" "${ED}/${dir}"/Benchmark/benchmark || die
+
+ # Here we apply DrSiN's crash patch
+ cp "${S}"/CrashFix/System/crashfix.u "${Ddir}"/System || die
+
+ed "${Ddir}"/System/Default.ini >/dev/null 2>&1 <<EOT
+$
+?Engine.GameInfo?
+a
+AccessControlClass=crashfix.iaccesscontrolini
+.
+w
+q
+EOT
+
+ exeinto "${dir}"
+ insinto "${dir}"
+ doins DemoLicense.int README.linux
+ doexe ucc ut2003_demo
+ newicon Unreal.xpm ut2003-demo.xpm
+ make_desktop_entry ut2003-demo "Unreal Tournament 2003 (Demo)" ${PN}
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ elog "You can run benchmarks by typing 'ut2003-demo --bench' (MinDetail seems"
+ elog "to not be working for some unknown reason :/)"
+ echo
+ elog "Read ${dir}/README.linux for instructions on how to run a"
+ elog "dedicated server."
+ echo
+ ewarn "If you are not installing for the first time and you plan on running"
+ ewarn "a server, you will probably need to edit your"
+ ewarn "~/.ut2003demo/System/UT2003.ini file and add a line that says"
+ ewarn "AccessControlClass=crashfix.iaccesscontrolini to your"
+ ewarn "[Engine.GameInfo] section to close a security issue."
+ echo
+ elog "To play the demo run:"
+ elog " ut2003-demo"
+ echo
+}
diff --git a/games-fps/ut2003/Manifest b/games-fps/ut2003/Manifest
new file mode 100644
index 000000000000..6cf4f48daa00
--- /dev/null
+++ b/games-fps/ut2003/Manifest
@@ -0,0 +1,5 @@
+DIST ut2003lnx_patch2225.tar.tar 10039316 SHA256 0c2d851e39b4491698f6fb3aefb9bf83340de85085f3b670d93a8cba29aefec3 SHA512 3c44b6254b2b778bf2aca826c710f51db4ec0687c21f1c98e1070f3a9ad7e1a809e741a5b94e20a44c56c60a8b1e4a049788ff5f2a4d581c4eedf3dbbc0da86d WHIRLPOOL dcdd705e9a69612d4672b38a00080063fca7a80123f7152fee8490018c080e0dbdbf7a74acf316f194d182acda2e6f092d1edcab56f4bc073df1f99e9b4832b0
+EBUILD ut2003-2225-r4.ebuild 2641 SHA256 557940d8ef87b7456837864de0321192b0bda0726db0e0cc158a66a72360ff8f SHA512 9cd02098000bdff8fb443808e71f3b027eb36e9c7060b95e733711938d1b22d7bbd66f12b98cddc47aa44e8f6516c8653ccc774a0bca6609e98533c272d5d268 WHIRLPOOL 4f2ad9da2bb4e25715e1bfc80b06053ef7e41477eede1cfb4fc6ce10c80ac2dbeaeb1e7fedf2153174938ba9c556d77ba25f421493c801b57950c67e867cea67
+MISC ChangeLog 2429 SHA256 0f43328b344043fcaa4dc98f2ba16dc167f272a419ac02627b7187b1e5ead272 SHA512 1b8c2e51656658642944710ff91b42219abbc016632643a0066caeae1db1859c1b2372d17800b3ef4a3c9142c7b876c497725ce761bcdaf4a1e690674570dd7b WHIRLPOOL ba73c129f1e51cdd1f3b4cf1e920385cbc62b4dd0cd1aaa67abf371c97b9dcbd067dfd7e99d686ae09a8072203b2feb55526b87e26ee052db14f05fccd285326
+MISC ChangeLog-2015 8090 SHA256 e58c097222b6b8b41f49d789a9a225ef48f9cff3a4f4896a14a42b590fbc4469 SHA512 b9f6baa63a0187dd9f3a085b417497f1a962d55a8380b089d70c6d5ec1af62af98d17d5241b439008da36c21d19c1750a39b1e146061f1ad474303f4abca8c54 WHIRLPOOL e671af55da3e4003ecc4153e3ff4cb22e38134fbee42a891eda32a8369b22e39fe929d62be8e2adc4e32b6622c0c7fdad24e5e7ac64f7595fed4384d2b9ddfc7
+MISC metadata.xml 771 SHA256 ba25f4169d4a689de3925a408b36b9d36c0f51673d3d23892f754aaa3a630dc4 SHA512 d30d55503e3b3897d2a5093c06a39f684bdf0879214931a360a87637cd62ae1ca019577f42275bf2b4ba28649ab2989b0a2e184998497ddc5ffddbb6ba35ef5e WHIRLPOOL c648bd9951f1f578cd893012dc4ba2165f3ee02bb654eeb1c6858b130a91e49e2719ebe0b912a7715901ce4d4575accfcc84641cf0662eadd56f97ec70a37be2
diff --git a/games-fps/ut2003/metadata.xml b/games-fps/ut2003/metadata.xml
new file mode 100644
index 000000000000..e716a53e0747
--- /dev/null
+++ b/games-fps/ut2003/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>
+Unreal Tounament 2003 is a first-person 3-D shooter and sequel to the 1999 Game of the Year, Unreal Tournament. The game was ported to Linux by Ryan "icculus" Gordon under contract from Epic Games and the Linux installer was released in the retail box. This game is commercial software and requires data from the original retail discs to play. If you're interested in checking out the technology behind Unreal Tournament 2003, you can "emerge ut2003-demo" to get the playable demo.
+</longdescription>
+</pkgmetadata>
diff --git a/games-fps/ut2003/ut2003-2225-r4.ebuild b/games-fps/ut2003/ut2003-2225-r4.ebuild
new file mode 100644
index 000000000000..bb23d7e85c24
--- /dev/null
+++ b/games-fps/ut2003/ut2003-2225-r4.ebuild
@@ -0,0 +1,99 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils games
+
+DESCRIPTION="Sequel to the 1999 Game of the Year multi-player first-person shooter"
+HOMEPAGE="http://www.unrealtournament2003.com/"
+SRC_URI="ftp://ftp.infogrames.net/misc/ut2003/ut2003lnx_patch2225.tar.tar"
+
+LICENSE="ut2003"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="dedicated"
+RESTRICT="strip"
+
+RDEPEND="
+ games-fps/ut2003-data
+ dedicated? ( games-server/ut2003-ded )
+ !dedicated? ( virtual/opengl[abi_x86_32(-)] )
+"
+DEPEND=""
+
+S=${WORKDIR}
+
+dir="${GAMES_PREFIX_OPT}/${PN}"
+Ddir="${D}/${dir}"
+
+src_unpack() {
+ unpack ut2003lnx_patch${PV}.tar.tar
+}
+
+src_install() {
+ insinto "${dir}"
+
+ games_make_wrapper ut2003 ./ut2003 "${dir}" "${dir}"
+ make_desktop_entry ut2003 "Unreal Tournament 2003" ut2003
+
+ # TODO: change this to use doexe/doins
+ # this brings our install up to the newest version
+ cp -r "${S}"/ut2003-lnx-2225/* "${Ddir}" || die
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+
+ # here is where we check for the existence of a cdkey...
+ # if we don't find one, we ask the user for it
+ if [[ -f "${dir}"/System/cdkey ]] ; then
+ elog "A cdkey file is already present in ${dir}/System"
+ else
+ ewarn "You MUST run this before playing the game:"
+ ewarn "emerge --config =${CATEGORY}/${PF}"
+ ewarn "That way you can (re)enter your cdkey."
+ fi
+ elog
+ elog "To play the game run:"
+ elog " ut2003"
+ ewarn
+ ewarn "If you are not installing for the first time and you plan on running"
+ ewarn "a server, you will probably need to edit your"
+ ewarn "~/.ut2003/System/UT2003.ini file and add a line that says"
+ ewarn "AccessControlClass=crashfix.iaccesscontrolini to your"
+ ewarn "[Engine.GameInfo] section to close a security issue."
+}
+
+pkg_postrm() {
+ ewarn "This package leaves a cdkey file in ${dir}/System that you need"
+ ewarn "to remove to completely get rid of this game's files."
+}
+
+pkg_config() {
+ ewarn "Your CD key is NOT checked for validity here."
+ ewarn " Make sure you type it in correctly."
+ eerror "If you CTRL+C out of this, the game will not run!"
+ echo
+ einfo "CD key format is: XXXX-XXXX-XXXX-XXXX"
+ while true ; do
+ einfo "Please enter your CD key:"
+ read CDKEY1
+ einfo "Please re-enter your CD key:"
+ read CDKEY2
+ if [[ "${CDKEY1}" == "" ]] ; then
+ echo "You entered a blank CD key. Try again."
+ else
+ if [[ "${CDKEY1}" == "${CDKEY2}" ]] ; then
+ echo "${CDKEY1}" | tr a-z A-Z > ${dir}/System/cdkey
+ einfo "Thank you!"
+ chown games:games "${dir}"/System/cdkey
+ break
+ else
+ eerror "Your CD key entries do not match. Try again."
+ fi
+ fi
+ done
+}
diff --git a/games-fps/ut2004-action/Manifest b/games-fps/ut2004-action/Manifest
new file mode 100644
index 000000000000..d39b0d65abfb
--- /dev/null
+++ b/games-fps/ut2004-action/Manifest
@@ -0,0 +1,5 @@
+DIST aut-r1-msuc.zip 323878282 SHA256 8ebd6746e3db888085a02cdee4524a2221d7dd6ba38c53bcf439db25c921f75f SHA512 50aafff330839c9b8fe8be2e6a98d9532f8429e2a8f258a9a6dabd39f555a9ce11f9178592575996ebce2629ff5c7f3046777bc1605f21c2bbefb80e11ca4f65 WHIRLPOOL 91779065372716cf076f4b2c5a3a77cbaec366f48fb1fc5319a2f3827ceeed4f5d668f40c6fb75b8ae60fa2b7076758c995ff82fb698e13894d546525bc15838
+EBUILD ut2004-action-1.ebuild 533 SHA256 92b5997121a5e8ca46bf4ee3f274d85adffd3aefcfff45ddf169f2705c1766e9 SHA512 3666189ee30c0cc7fa206e2b1a539ee28cd0dae2b6238a159a1014d899b8e976226e527e42b58d6710a4b7dbeb95f5b9f3fc444210041769fc313eada1fd8f72 WHIRLPOOL b0ee7d330bc4a89851056c358fd7da2ae96e263f4875265e6241f2698dcb90393915893354c1fdc985e682accab9d755ee515b413d838247171ee53917fdb43c
+MISC ChangeLog 2704 SHA256 4fbcde68cb2c24042ea7076db4dd8d10cc18696313cbceb2f0415c8a40c53f0a SHA512 90a96541f8a3a9592ac487255d787aa57aea244c818eb24400b8ef81b5357f8c9162e221aefd08ae9eea01276d40d56b8023544d36763ca020674bb4fc4877fa WHIRLPOOL e74a0840b1e1c2ae8b4d83314b286073449d8ad1864198e7bcee0e4cb388e291a2dd32365730b6de13f918a94647ae12bac1fc32e4a151d7e1ac242b11c82b7f
+MISC ChangeLog-2015 714 SHA256 850bcefee2a224c0c3903a6a69af0fc439bf0632dc1d0a836c3ef65fb9827d06 SHA512 e6ebd9f71fa866459920fbe325a45b3fb69c67408ec82d97d53dcc67b8f9ec25806b6f3f05af58e6bcf48be9e63967d90810a70e3e2438eb2292dcefea360272 WHIRLPOOL 5091dc4b2323bf3bee64178c4b9f9aa59c00711fd5ed024a7e466438c08dbe8c99e44b075f4afb448ac91317afb86e8a29cf78d3ff526aea9d36aae7a37840f0
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-fps/ut2004-action/metadata.xml b/games-fps/ut2004-action/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-fps/ut2004-action/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-fps/ut2004-action/ut2004-action-1.ebuild b/games-fps/ut2004-action/ut2004-action-1.ebuild
new file mode 100644
index 000000000000..ec8aee3b309d
--- /dev/null
+++ b/games-fps/ut2004-action/ut2004-action-1.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+MOD_DESC="Action movie mod"
+MOD_NAME="Action"
+MOD_DIR="action"
+MOD_ICON="aut.ico"
+
+inherit games games-mods
+
+HOMEPAGE="http://www.moddb.com/mods/action-unreal-tournament/addons/action-unreal-tournament-r1"
+SRC_URI="https://ut.rushbase.net/beyondunreal/mods/aut-r1-msuc.zip"
+
+LICENSE="freedist"
+KEYWORDS="amd64 x86"
+IUSE="dedicated opengl"
+
+src_unpack() {
+ mkdir ${MOD_DIR} || die
+ cd ${MOD_DIR} || die
+ unpack ${A}
+}
diff --git a/games-fps/ut2004-airbuccaneers/Manifest b/games-fps/ut2004-airbuccaneers/Manifest
new file mode 100644
index 000000000000..e828a6763f99
--- /dev/null
+++ b/games-fps/ut2004-airbuccaneers/Manifest
@@ -0,0 +1,5 @@
+DIST airbuccaneers_mod_1_6_zipinstall_with_info.zip 255641963 SHA256 0b08c7018b35173b4d9be80bf2b9d0945cdf8316aac7286643d6e5ccfb700b88 SHA512 6c91919538b1d74157bf5586b66effcd3aabd397dc698384673425a53227c68b1ec0c4a07c342e399136673dc106b11727103ca6a06dff117d93b73645bd981b WHIRLPOOL c5bcb3f8c9dc7ad183f62e7c567f3753326db67b2f8a56e82dfb8edc8a2f22dcb10b3a8231bf052dff0e26b1c0e0cdf982dbd03fd5c614732ee83e233002d2c4
+EBUILD ut2004-airbuccaneers-1.6-r2.ebuild 503 SHA256 38d36acddf27785f1acfb0ee252c01d04c1bd3054d1e7730bafc796192da2362 SHA512 8ab52fa430b0bf7577d8e65aedfaf72d54eb221b37fd71f1f433b844beeab09da40eec006f2c57c3443156dbe6cfa13e998f730c8233cea6516d14afc3d3d16b WHIRLPOOL 55833ec8195771e279bd24767e3365409769b49aec7dacb2afd6cfd3db99502b3edb4e84dc0a201ffa3c60569e738613f65e0461a25b0cb8703a2e5d846c9341
+MISC ChangeLog 2661 SHA256 30267d5d5dd93e20c30682012b5b222c6c55624731aff38ba91e9422dadf0965 SHA512 87a9a267553cf94ffdc69bab3ec2aa6d4b2a9c8bf579f71a78eb11573efb8f39e9daffcca053c58218c944460d9fcdaab553b71e24aec113cd6828a3f785d536 WHIRLPOOL f4e97e5c016568e6ee0e1558e684c15007b6edf8656be427088425b374874f0183bce0b53f1a3d79f33a8ba31b5e1e79d6ec5074f85cc60d9959293d958c3697
+MISC ChangeLog-2015 1724 SHA256 ada8b1e803db5c9a7ad87e2aad0697e6a61e1a01831b981dfa56cef9268f5887 SHA512 41f5c74c9fdaf800406ef7e02d0c9a9318b7be5abe1f2584058172acb8a12486d1f888e2b476ad85258e4e7cd9a7ca01312270cbd7b4feee32a0aaba774c3e98 WHIRLPOOL 85051cafd0ad7826dc694c0dc0a53479b26f577204041e59ad4e09512eb0d48d28e79e961fe3839a66ec1f9515688bcc135f1ef0b52664d4a688b97480a325eb
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-fps/ut2004-airbuccaneers/metadata.xml b/games-fps/ut2004-airbuccaneers/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-fps/ut2004-airbuccaneers/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-fps/ut2004-airbuccaneers/ut2004-airbuccaneers-1.6-r2.ebuild b/games-fps/ut2004-airbuccaneers/ut2004-airbuccaneers-1.6-r2.ebuild
new file mode 100644
index 000000000000..315244a7176b
--- /dev/null
+++ b/games-fps/ut2004-airbuccaneers/ut2004-airbuccaneers-1.6-r2.ebuild
@@ -0,0 +1,18 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+MOD_DESC="Pirate-style conversion with flying wooden ships"
+MOD_NAME="Air Buccaneers"
+MOD_DIR="AirBuccaneers"
+MOD_ICON="Help/abuicon.ico"
+
+inherit games games-mods
+
+HOMEPAGE="http://www.ludocraft.com/entertainment/airbuccaneers-mod/"
+SRC_URI="http://bin.ludocraft.com/files/airbuccaneers_mod_1_6_zipinstall_with_info.zip"
+
+LICENSE="freedist"
+KEYWORDS="amd64 x86"
+IUSE="dedicated opengl"
diff --git a/games-fps/ut2004-bonuspack-cbp1/Manifest b/games-fps/ut2004-bonuspack-cbp1/Manifest
new file mode 100644
index 000000000000..a88cfaaa0a22
--- /dev/null
+++ b/games-fps/ut2004-bonuspack-cbp1/Manifest
@@ -0,0 +1,5 @@
+DIST cbp1.zip 144163647 SHA256 c952dbd5a0fbe986b77bd56a57218733ff26ce8f5d074feb557a69c44ec1e863 SHA512 e2ead75796fd68b3f0d6ea50b4ed9988fef043730c6b81487d34c45aa26f63cac7b6a43991b673fbd6315f1496d2eecc52a5845c12f244411cd71fedab93c6fd WHIRLPOOL 9ee46970dc69b32b77ccc8707d1b2879aaa49ee98edf5b64f26097353eaa878e49bd4daa54aafe8a89b6034e8a73e63d1508482d9dd9632295eb65acb0cd0d26
+EBUILD ut2004-bonuspack-cbp1-1-r2.ebuild 482 SHA256 34a185091cd6096c28850af4d5de575972a9b9039d425c3b0adbb5d491dfdcbb SHA512 bbe1ef2b49dfa461c319becc01da7d5a77c386dedfb21a52a212e15d67d59cc1089f67a27c338af90427bae881a4453dbedb1962c434072d017b079d4a5fbaf6 WHIRLPOOL 031f386d4f0ef958bcecde6d7d04672a8108202dc2ce609358dda24375c622557d9d75cdc5c2083ed6f30d8a13e4428dad3406bdd57497da885955d58617f08d
+MISC ChangeLog 2605 SHA256 c649fd9169c5cff5bbd6322a0298df78b3fa7886bdaeb9355e2b316a319ea789 SHA512 20440ae86a76080e6697efb4195435ae593d764ae5ba69bb392f9c363c6e97b973d1dee67e864bae410a4499476040a3f772aca19e9bedef6a4dd8078291d9ea WHIRLPOOL a3b421022b03519be82165fda0de844a33bf5258b8da4f8eef0a672fe97bb4a016bcacb3971098705581a25a89e5426373e4bad8b111c2ea11a06d784641a59a
+MISC ChangeLog-2015 1705 SHA256 7e4ca3fd41ffc5689e0216e347aff81e939222706ff972c4f018a62a215aff21 SHA512 58e30ec9d9910da9a8a87a1ad8ed45b2cebe72f05020f2ed66a6e3dff50676955592bcc4a6a581fbcb77e3ce656258ab00f4eae373732635e18156bc7b05942a WHIRLPOOL cd3cbc3edd24472abff9b19a5389e321d597e7150fac3e561dcd89b4b1adc8bb94b935cf88f486084f57e536832379bd2a7344c48a67be3c6a0e0ff130fd08fc
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-fps/ut2004-bonuspack-cbp1/metadata.xml b/games-fps/ut2004-bonuspack-cbp1/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-fps/ut2004-bonuspack-cbp1/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-fps/ut2004-bonuspack-cbp1/ut2004-bonuspack-cbp1-1-r2.ebuild b/games-fps/ut2004-bonuspack-cbp1/ut2004-bonuspack-cbp1-1-r2.ebuild
new file mode 100644
index 000000000000..3eaec6c13088
--- /dev/null
+++ b/games-fps/ut2004-bonuspack-cbp1/ut2004-bonuspack-cbp1-1-r2.ebuild
@@ -0,0 +1,17 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+MOD_DESC="UT2003 Community Bonus Pack repacked for UT2004"
+MOD_NAME="Community Bonus Pack Volume 1"
+
+inherit games games-mods
+
+HOMEPAGE="http://liandri.beyondunreal.com/Unreal_Tournament_2004"
+SRC_URI="http://downloads.unrealadmin.org/UT2004/BonusPack/cbp1.zip
+ http://files.volved.com/qsr/ut2004_map_packs/cbp1.zip"
+
+LICENSE="freedist"
+KEYWORDS="amd64 x86"
+IUSE=""
diff --git a/games-fps/ut2004-bonuspack-cbp2/Manifest b/games-fps/ut2004-bonuspack-cbp2/Manifest
new file mode 100644
index 000000000000..0792f8f0778a
--- /dev/null
+++ b/games-fps/ut2004-bonuspack-cbp2/Manifest
@@ -0,0 +1,6 @@
+DIST cbp2-volume1_zip.zip 203766207 SHA256 94e21360d2f87489822468b6e037931ec0a2d9d3653259d90a58cabaacc3370d SHA512 9e425985640f9fcf9c1696d75e0794b31110715ba3bf664087ede1f1925a68e76e4ee87d248b245429702c2bffc1fb16362fcc43f795681efcc5880a2a7c3213 WHIRLPOOL 7214e089c76a19f14c88e763434e5505f6a71180a9293600f200e521daeb4a209c0fe032d2a2e616152e758bfb7223012c680873cb40a66c3528a2d0aa673ecf
+DIST cbp2-volume2_zip.zip 200444127 SHA256 62af666645205c256caf539646483fcaad24af91cb5cfb283fc9e6b48f18c79f SHA512 52982b302bb2d8f0839392f8bad05935bb8c5cae9e98528dfada7fa80f595050829ff6872b834197486c3401256f60c6c023133f6446299cbd72e1fd7ec3c8f4 WHIRLPOOL 878c75ab02c21042c3d76be46fae7caf01cd9f226703d0335fdf3f96e5c175e0904828a5d7a0a6f7418b3e03dfee6f964c40261b928d2ab1616d784831df2ce0
+EBUILD ut2004-bonuspack-cbp2-1-r2.ebuild 862 SHA256 93152cc54ca9064d64707abf110a84118840a322a9e3176b0db2dd8befb11ef0 SHA512 0236c834db5751b0fca9b758348dff0568925ae55db42a525735c2503b028a1c0dd2283d44db6b8f1880a3ba849d87efc4b8bc73dd1d8d33d6aa7e512ec1b06d WHIRLPOOL 3e9d7bc73c9d403ee2a9523d22b5f12f349189bb58911c42583cda2facdaec02628736a6bb0984b4da277bd970a5fc99aeef44bdf2f8fb28e9b548987a81d5da
+MISC ChangeLog 2662 SHA256 cb8554f40e2fb6b3fae70ec466f9665cd1df5d69477f00397f7c7195c966822a SHA512 d87868a731ec2d0339e442fc85cf54bb3037093f5f788100e724a061dbed1f1c68d15926ba2892f7eba372518f3243ec39b5c30b4719c2b6d8b672ea49f9198d WHIRLPOOL 2b061e5b6de322bfa23b11e67718578065769539c755c0ccc945fc1e1ecda77bcca0fb583a1417aaad073092bed07bb880d3516d2e9d5eb4d000fd512c373215
+MISC ChangeLog-2015 1924 SHA256 36ac6ee54bccb39fcd4a2b8d2ef72e26c14ee2b5b6a79dd527eecbd5121b28cb SHA512 1fa9c6a8f554cc11e38c58085be441ceb866192ec2132a3fd546112d59ad684b4e175fa2bb25871702eba79c79a951997717eb5382ee11dcf2c0867efb9c4d2b WHIRLPOOL 286245124445a92eeba49003384ed4871f4b74dcee078dcc27b5ea03708d7ed31037641aae120e72eb96af8ed06795a7d3315010b7990528f6e7b6ec19e3d5c9
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-fps/ut2004-bonuspack-cbp2/metadata.xml b/games-fps/ut2004-bonuspack-cbp2/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-fps/ut2004-bonuspack-cbp2/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-fps/ut2004-bonuspack-cbp2/ut2004-bonuspack-cbp2-1-r2.ebuild b/games-fps/ut2004-bonuspack-cbp2/ut2004-bonuspack-cbp2-1-r2.ebuild
new file mode 100644
index 000000000000..cce8b1905ea3
--- /dev/null
+++ b/games-fps/ut2004-bonuspack-cbp2/ut2004-bonuspack-cbp2-1-r2.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+MOD_DESC="Community Bonus Pack 2 volumes 1 and 2"
+MOD_NAME="Community Bonus Pack 2 volumes 1 and 2"
+
+inherit games games-mods
+
+HOMEPAGE="http://liandri.beyondunreal.com/Unreal_Tournament_2004"
+SRC_URI="https://ut.rushbase.net/beyondunreal/official/ut2004/cbp2-volume1_zip.zip
+ https://ut.rushbase.net/beyondunreal/official/ut2004/cbp2-volume2_zip.zip"
+
+LICENSE="freedist"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND="games-fps/ut2004-bonuspack-cbp1
+ games-fps/ut2004-bonuspack-mega"
+
+src_prepare() {
+ # Provided by ut2004-bonuspack-cbp1
+ rm Music/Soeren.ogg
+ # Provided by ut2004-bonuspack-mega
+ rm Textures/Ty_RocketTextures.utx
+
+ cd Help
+ # Useless orphan file
+ rm Note.txt
+ mv GERROIDREADME.txt DOM-CBP2-Gerroid.txt
+ mv Readme.txt CBP2-Readme.txt
+}
diff --git a/games-fps/ut2004-bonuspack-ece/Manifest b/games-fps/ut2004-bonuspack-ece/Manifest
new file mode 100644
index 000000000000..775b038dc297
--- /dev/null
+++ b/games-fps/ut2004-bonuspack-ece/Manifest
@@ -0,0 +1,6 @@
+DIST UT2004-ONSBonusMapPack.zip 11018471 SHA256 b1c6e1fbf417381180fe02a81eb0cab752e6baa6b814c42fc7f69da11b02dd05 SHA512 8193375b89cd6fbc8b00de195797099c128fcf5cb73757bbc57d3c5350c497a878eaf0200f2e0711bf062e25c5d170e05b055c63f85b908b18dcc89572d71fd2 WHIRLPOOL 5600b1420124034983258b0843561164996e8c427ecfd04c6552f92585c09b0eb1be73360151ae0c9950cb28df7018d0287bfac86bae014c48e537a1135be42a
+DIST ut2004megapack-linux.tar.bz2 203124107 SHA256 b9122c8c405945d29c3cdf61f57fe4d21e886b79ea9caa0d8e0ca2e520aa472c SHA512 4ae5eec0622c2bd96dfc162541bc0771399b012fb00f022282bc8c34600cb8e9bb7c18a52dd55fbef6f16fedaf225e301c46077a6accd001f4c77ddad89ed17b WHIRLPOOL c7b995764c3b6e88673eba29ef77172441ca353eef0c3eaeea950bf52007a6656c87a19f2cbb074c70780cfa1f36cac8cf556327930445f6495d415d9fc26425
+EBUILD ut2004-bonuspack-ece-1-r3.ebuild 1752 SHA256 c37ce6f39a17519192e7e0d83e37c1c7d13e67b7207fdacb9023fe382ef4f0e0 SHA512 ffcae5076ead2b9803681abfd03fe8e4c9cf4ed7bb8c9d6dff4cde626c92de5c08f745e0d4f69ae1f51db905c79f56243a57b094f3a772eef6f6df160b7f474e WHIRLPOOL 193a8447b40487f995f25afc0029307dc01442efacfe049ac05aed70057bca688fda3f1ad6df0c2192fc8ef6f0180275275a6b8d30a5c966555a7d254ca374f3
+MISC ChangeLog 2632 SHA256 2daa5c4d492c55f46febe9652f50487c17957b656e673b8ed12137ccd13cc8a8 SHA512 b17219edeb123a99a1ee153a9ad3273516ea10f1f85cad591e2776394c94cd49dd7136416d1985539b8bca7eed6932e4f305c6d5d3826eb20e2867d18f64a9cd WHIRLPOOL 158c1ca9cac3b6620030870a593e5d8ac39bf0923bc690e574e7e0676b58ddbf69ac480ca11d970f6da92d9b4260f9ef52fd61b49c60e133d1f0fcb576ddb5eb
+MISC ChangeLog-2015 3279 SHA256 1e947de7409ca71a3193e2bb0c6398ee6b388ec96926aa1077069553b8696613 SHA512 b911f28fc1bff5ca4de474cda393f49ef03de750a8905e89d3b6e66625050db02650f0d322fe10dbedac185b126d1b028d16e9dddb6752db986d3f6d57b49dfd WHIRLPOOL 02abbe1b052732215feb63f240a698da07006d5779c8bbc7dc1e0b4aec2a2fdf2e073e6c2a7a6ff81d9ae0027362efe20c43dead969094a4ed075cd96d14d48f
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-fps/ut2004-bonuspack-ece/metadata.xml b/games-fps/ut2004-bonuspack-ece/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-fps/ut2004-bonuspack-ece/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-fps/ut2004-bonuspack-ece/ut2004-bonuspack-ece-1-r3.ebuild b/games-fps/ut2004-bonuspack-ece/ut2004-bonuspack-ece-1-r3.ebuild
new file mode 100644
index 000000000000..58563c8924d3
--- /dev/null
+++ b/games-fps/ut2004-bonuspack-ece/ut2004-bonuspack-ece-1-r3.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+MOD_DESC="Editor's Choice Edition bonus pack"
+MOD_NAME="Editor's Choice Edition"
+
+inherit games games-mods
+
+MY_P="ut2004megapack-linux.tar.bz2"
+HOMEPAGE="http://www.unrealtournament2004.com/"
+SRC_URI="http://ut2004.ut-files.com/BonusPacks/${MY_P}
+ http://unrealmassdestruction.com/downloads/ut2k4/essentials/UT2004-ONSBonusMapPack.zip"
+
+LICENSE="ut2003"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+src_unpack() {
+ unpack ${MY_P}
+ cd UT2004MegaPack/Maps || die
+ unpack UT2004-ONSBonusMapPack.zip # bug #278002
+}
+
+src_prepare() {
+ mv -f UT2004MegaPack/* . || die
+ rmdir UT2004MegaPack || die
+
+ rm -r Music Speech || die
+
+ # Remove megapack files which are not in ece
+ rm Animations/ONSNewTank-A.ukx || die
+ rm Help/ReadMePatch.int.txt || die
+ # Help/{DebuggerLogo.bmp,InstallerLogo.bmp,Unreal.ico,UnrealEd.ico}
+ # are not in megapack.
+ # Keep new Help/UT2004Logo.bmp
+ # Manual dir does not exist in megapack
+ rm Maps/{AS*,CTF*,DM*} || die
+ rm Sounds/A_Announcer_BP2.uax || die
+ rm StaticMeshes/{JumpShipObjects.usx,Ty_RocketSMeshes.usx} || die
+ rm System/{A*,b*,B*,CacheRecords.ucl} || die
+ rm System/{*.det,*.est,*.frt,*.itt,*.kot} || die
+ rm System/{CTF*,D*,Editor*,G*,I*,L*,Onslaught.*,*.md5} || die
+ rm System/{u*,U*,V*,X*,Core.u,Engine.u,F*,*.ucl,Sk*} || die
+ rm Textures/{J*,j*,T*} || die
+ rm -r Web || die
+
+ # The file lists of ut2004-3369-r1 and -r2 are identical
+ # Remove files owned by ut2004-3369-r2
+ rm Help/UT2004Logo.bmp || die
+ # The 2 Manifest files have not changed
+ rm System/{Manifest.in{i,t},OnslaughtFull.int} || die
+ rm System/{Core.int,Engine.int,Setup.int,Window.int} || die
+ rm System/{OnslaughtFull.u,OnslaughtBP.u} || die
+}
diff --git a/games-fps/ut2004-bonuspack-mega/Manifest b/games-fps/ut2004-bonuspack-mega/Manifest
new file mode 100644
index 000000000000..a15e80bda62d
--- /dev/null
+++ b/games-fps/ut2004-bonuspack-mega/Manifest
@@ -0,0 +1,5 @@
+DIST ut2004megapack-linux.tar.bz2 203124107 SHA256 b9122c8c405945d29c3cdf61f57fe4d21e886b79ea9caa0d8e0ca2e520aa472c SHA512 4ae5eec0622c2bd96dfc162541bc0771399b012fb00f022282bc8c34600cb8e9bb7c18a52dd55fbef6f16fedaf225e301c46077a6accd001f4c77ddad89ed17b WHIRLPOOL c7b995764c3b6e88673eba29ef77172441ca353eef0c3eaeea950bf52007a6656c87a19f2cbb074c70780cfa1f36cac8cf556327930445f6495d415d9fc26425
+EBUILD ut2004-bonuspack-mega-1-r2.ebuild 1154 SHA256 48da361ec44dc5eaaf8b457fd9a84fa779c713cc0f922289fff3e3900518ca37 SHA512 0cb7a1e9d6fed056ee4066b42384c85f4a042382119c581a928631a2abd5c67cd0be9b835b1a0859a2a6a191d230351188819e13c6fe059023ba5650b5ad9732 WHIRLPOOL c4eef5e5a12ebb4c96fbdb92d1c8c140d30ee517cdce8c2374c0cf01d589cae793705b1cd47995252c8d637d85f7a7d51c6e24855c1984d370b8369073f89819
+MISC ChangeLog 2605 SHA256 53c3998adb6f9ebbb8f603428f15527d5fa7f350199e197296411994c3f37964 SHA512 936be2465427d5ba3814b97d84135dfeb17846702bcf35f0126d67f2ca0df8d40d7b9e4a56a000fddbd0e33e4e4ee219585650ab4f87092b733ba32eebbafa6e WHIRLPOOL 294acc550a1521f0570429e79fbe72b83bb60dbc9fa560e44b360f1fae94a5dc27d01b71ce0f938136fa51a58d68e220050b6c25a9d6aaee07676f7c1e506f11
+MISC ChangeLog-2015 2517 SHA256 2d74c8a8f0d656036b20e98ba5603b202196a028acf1fef3c3dd077369a0f925 SHA512 31821f044b6bc4bada1697a4e18ee200de8ad5e86d8567ec0e622d11f1e03d9e3906f35d6bb69ad70455838bc887b620e7e9854aceca911301078e6029bc370f WHIRLPOOL a57cf45e95641f1bc04cf1e2a53b3b07f4eebf027488b5408e443cf1647d661832376666d2dfe50fdae49f180cc16af32c9bc94a7337b2fe6871123342edfcab
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-fps/ut2004-bonuspack-mega/metadata.xml b/games-fps/ut2004-bonuspack-mega/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-fps/ut2004-bonuspack-mega/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-fps/ut2004-bonuspack-mega/ut2004-bonuspack-mega-1-r2.ebuild b/games-fps/ut2004-bonuspack-mega/ut2004-bonuspack-mega-1-r2.ebuild
new file mode 100644
index 000000000000..ec2133acbd5a
--- /dev/null
+++ b/games-fps/ut2004-bonuspack-mega/ut2004-bonuspack-mega-1-r2.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+MOD_DESC="Megapack bonus pack"
+MOD_NAME="Megapack"
+
+inherit games games-mods
+
+MY_P="ut2004megapack-linux.tar.bz2"
+HOMEPAGE="http://www.unrealtournament2004.com/"
+SRC_URI="http://ut2004.ut-files.com/BonusPacks/${MY_P}"
+
+LICENSE="ut2003"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+src_prepare() {
+ mv -f UT2004MegaPack/* . || die
+ rmdir UT2004MegaPack
+
+ # Remove files in Megapack which are already installed
+ rm -r Animations Speech Web
+
+ rm Help/{ReadMePatch.int.txt,UT2004Logo.bmp}
+ mv Help/BonusPackReadme.txt Help/MegapackReadme.txt
+
+ rm Maps/ONS-{Adara,IslandHop,Tricky,Urban}.ut2
+ rm Sounds/{CicadaSnds,DistantBooms,ONSBPSounds}.uax
+ rm StaticMeshes/{BenMesh02,BenTropicalSM01,HourAdara,ONS-BPJW1,PC_UrbanStatic}.usx
+
+ # System
+ rm System/{AL,AS-,B,b,C,D,E,F,G,I,L,O,o,S,s,U,V,W,X,x}*
+ rm System/{ucc,ut2004}-bin
+ rm System/{ucc,ut2004}-bin-linux-amd64
+ rm Textures/{AW-2k4XP,BenTex02,BenTropical01,BonusParticles,CicadaTex,Construction_S,HourAdaraTexor,jwfasterfiles,ONSBP_DestroyedVehicles,ONSBPTextures,PC_UrbanTex,UT2004ECEPlayerSkins}.utx
+}
diff --git a/games-fps/ut2004-cor/Manifest b/games-fps/ut2004-cor/Manifest
new file mode 100644
index 000000000000..c8b0a5cf33b7
--- /dev/null
+++ b/games-fps/ut2004-cor/Manifest
@@ -0,0 +1,6 @@
+DIST cor_beta_v1.0.zip 278979612 SHA256 bde2f6acf241ff94ce59cfa87271c71168cd82c00b55ac9de1c6f2317690f4e1 SHA512 04a8db1b31478785052d162e2007eb336d1d99c76f96098163c71616d3951e4e3c7b95c1b29a05e9acf2e0554c5bd20e5e2df10b93325b0e2cabf3a5a60640a6 WHIRLPOOL 66de704405e17cf4394a66a77941537141092b8c0478227276f5e9cf56cae6b5af3e66cc750002f725dca04c3327b83cd8d5839696f924ec1c0961566eb00676
+DIST cor_patch_b1_to_b101.zip 20386490 SHA256 78034844cda02f96faf178fac8ed05c64aaaa7390d67877aed334f320b9ff903 SHA512 7b7243727a0e4570545f9d3f93a141b61da5e4cbe458894602925733396b3f9037c7a9a21a1ee9c9638181b4c321a9030a29837e1e808826a70bb52f54e2d6a6 WHIRLPOOL d672a928a14b70f0f6ebd6955b8f92868aa9b250a5835ea2401ef09f187e3be919ad0fa3416370eba74722c50d0421c2cff5fe3f86b2d523f48182f2bf666cac
+EBUILD ut2004-cor-1.01-r1.ebuild 557 SHA256 0e954df981c7025665f004d1de19602625eb6ef5bfdb34f81c0d74c5de08d776 SHA512 9aeeede3e172854aa1a39d0e22ecef8fc89416d44e182c8a0f54d93bb10b3c185456c2af15cdb8795d5a2b88879e767039503857d500564176bec9d2dca78981 WHIRLPOOL c531e77e22d7f32780f4d672c253587a943e9d63a2e2dd81e429e6d52d5785fda648c75dcf5b793380de79ebe65142c17df48757316465053571f4d4c6d43831
+MISC ChangeLog 2717 SHA256 79a332c3bac094c3e7d5eaa3cea1560c77041a32369b0c25ba2bafca95ef4310 SHA512 08797b93edcb7da409b410102fb5e4bf3692b98ecc7b7c81a1b2f7b33216041c52edb43743ce538d0743974bd8115979347bceeace3c8aa24d21be528f3e9528 WHIRLPOOL 965c13aeb97f064e50b3197ec45047907cc990325db7439a699a14c5affd66efe765274c65a6b7754ca56207b5666f71777912a1f5b56f41dacaa6a808f83e47
+MISC ChangeLog-2015 787 SHA256 7f355ac0ea1b55a0fa03323c46142a0f78737caf5aa6dd457e1b288976250e30 SHA512 cfb7fe641187b7093da4b011944a4fe61f61b10a6c5def21d61a4f4d130651ddcb2e2dcbd44c8676cbd7546750c4a6ad70baf30c16629fc41cfc1cf50d2bea1b WHIRLPOOL 1ab8346af7ad8cbc8f40a65cda5922c24bdade731e9f0f90f5bb0de8ac53773ba59f3dc58768e9e38492e59d2ae5d97da670fc94f8c6f87d81c692103a8fcf12
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-fps/ut2004-cor/metadata.xml b/games-fps/ut2004-cor/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-fps/ut2004-cor/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-fps/ut2004-cor/ut2004-cor-1.01-r1.ebuild b/games-fps/ut2004-cor/ut2004-cor-1.01-r1.ebuild
new file mode 100644
index 000000000000..5c8c4887a8c9
--- /dev/null
+++ b/games-fps/ut2004-cor/ut2004-cor-1.01-r1.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+MOD_DESC="Shape-shifting robot teamplay mod"
+MOD_NAME="Counter Organic Revolution"
+MOD_DIR="COR"
+
+inherit games games-mods
+
+HOMEPAGE="http://www.moddb.com/mods/counter-organic-revolution"
+SRC_URI="https://ut.rushbase.net/beyondunreal/mods/cor_beta_v1.0.zip
+ https://ut.rushbase.net/beyondunreal/mods/cor_patch_b1_to_b101.zip"
+
+LICENSE="freedist"
+KEYWORDS="amd64 x86"
+IUSE="dedicated opengl"
+
+src_prepare() {
+ rm -f ${MOD_DIR}/*.bat || die
+}
diff --git a/games-fps/ut2004-crossfire/Manifest b/games-fps/ut2004-crossfire/Manifest
new file mode 100644
index 000000000000..f33de54c81d5
--- /dev/null
+++ b/games-fps/ut2004-crossfire/Manifest
@@ -0,0 +1,5 @@
+DIST TOCrossfire_beta_1.95_full.zip 1243833907 SHA256 67d9ec864d0ff2303edb003a6eeebf015143d61999640074c4bd5b205f216d3c SHA512 a02c8221f7687e4a2276f6da9f9fc480b0c8aaf3f98517134614079699a0ecda088e781d5d0251b7da8588493afa394acc5eed99f40034d3555feeef6e175bbe WHIRLPOOL 70a154ba253cb983bf0e4558c833abfcaca624124a2a1d7edff962f3fc3e9dceb09f66cfca54cbe72d287ae77ce7f493e88b71fe6dfcbba8f0b53232920697ef
+EBUILD ut2004-crossfire-1.95.ebuild 697 SHA256 e1d2d97c4d963497839c7d719767801ccb683c02294c77af6c0cffa41b904aa7 SHA512 fe1aa6534db54ddc0b6dbda7fc3d12d65ad5ed4cdb07e3ede2482a263cd3c0b106a001c8118bf78e4518c2981d7b1c235fa109d37354007c7131d99f7bc7b49a WHIRLPOOL 5f7d40a0ff64bc44bee7d3a8b69dbccb91837263233ccf53c57863a14ff05b40910edc9f82f0f7652c6307b752d4e6fbab5e06fa3dabe97dd32d54dbac05ccc7
+MISC ChangeLog 2735 SHA256 2ded46601115bf7d82822946d5a3b1981d13d628efef87c6bc499c6738429a45 SHA512 39173ad9dda8c0c2a2e8df7c07e9ce28aed3c200303c7e16ea1bb70aee6fdc72610f8e34dd6dccf82054a6f71947f6d55600d85f0a8018de8fe6fac10563fcd5 WHIRLPOOL 7bfe9f03da26562ce70099537ce3b1b5d333fe756779adeab654d30a29c6bcfc13c84f0f718f3ba0c6404a5f51f7b9efc9b4b96f822a389bb0c553d936c2ac31
+MISC ChangeLog-2015 1421 SHA256 87dc8f343c4fa1e108af36702de07d2990e7e8c34cc20f4e537205517c597837 SHA512 a408118ec9bd09ced6a8af5888de1ad556cb95809fb921d1a02edb6f24bd10f225ca558e7db37a59e368788b3f9d7b15299163a8c94a19956d9fb921d7539378 WHIRLPOOL 756921701c51381cf7c20b4ae1f0da9cc5dc37df119e4f210d45aeb3723c54d14ed0d398cd1a8efc8b6145c39205455b9defaee69557f490bcdce3b6d712d894
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-fps/ut2004-crossfire/metadata.xml b/games-fps/ut2004-crossfire/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-fps/ut2004-crossfire/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-fps/ut2004-crossfire/ut2004-crossfire-1.95.ebuild b/games-fps/ut2004-crossfire/ut2004-crossfire-1.95.ebuild
new file mode 100644
index 000000000000..9cb62e7a45b3
--- /dev/null
+++ b/games-fps/ut2004-crossfire/ut2004-crossfire-1.95.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+MOD_NAME="Crossfire"
+MOD_DESC="Special Forces vs Terrorists"
+MOD_DIR="TOCrossfire"
+MOD_ICON="Help/icons/TOC_TERROR2.png"
+
+inherit games games-mods
+
+HOMEPAGE="http://to-crossfire.tnc-clan.de/"
+SRC_URI="ftp://files.tnc-clan.de/TOCrossfire/client/TOCrossfire_beta_${PV}_full.zip"
+
+# See Help/EULA.txt
+LICENSE="free-noncomm"
+KEYWORDS="amd64 x86"
+IUSE="dedicated opengl"
+
+src_unpack() {
+ unpack ${A}
+ unpack ./TOCinstall.tgz
+}
+
+src_prepare() {
+ rm -f *.{exe,reg,sh,tgz,txt} || die
+ rm -rf TOCInstaller.app stuff || die
+ cd ${MOD_DIR} || die
+ rm -f *.{bat,exe} Help/*.{exe,zip} || die
+}
diff --git a/games-fps/ut2004-data/Manifest b/games-fps/ut2004-data/Manifest
new file mode 100644
index 000000000000..31bed4f30757
--- /dev/null
+++ b/games-fps/ut2004-data/Manifest
@@ -0,0 +1,4 @@
+EBUILD ut2004-data-3186-r4.ebuild 12491 SHA256 3a841528a235a67c1708c46a920a06058fd22ccccca85d195d8f2c929b2a8576 SHA512 0e5e892b1d3d307c68ebedcc8b1ec8cbe23bbd6938fdbd5793765c870a2e6d1d80afba336795915c37f12386a0161bbd0f3d2aa5c82bb1637d2f5bc32eef1794 WHIRLPOOL 73e6bd282062e95926d61807bfef280806ad96c5000932fd9f3c6a44e6ef2d667165303c3e1b4150ac29198c25f45fd5c41600f90e74646048f5bb8e36050906
+MISC ChangeLog 2574 SHA256 cb8b9fc9c4b4c169907d8b38ae67a217a6da95e6f7c19ef991c2cc73fdd48d1c SHA512 84280094bca1760f9e63ab70728c17477ea158cbcd44ff65b7919aee1ce988851160ffba3083241d122fd049d0fab81d8ed4778c6f66c404419f99600aea079d WHIRLPOOL 3b43744494996ee8a6a7f8108bc5b03b12eab1a44485b3eecba02f0c4318bcde1cf08f1c6fdf20a8446c1268908dbfcb6262e7a6349e6727159e6100908c5bd7
+MISC ChangeLog-2015 5221 SHA256 1ea1368c4ce0070157e97a99a027e3dffcf88b4b1ab42a1b65a82c64a4eefd31 SHA512 ac9f807322bde63c8ce388cf362668ede65f719d30c51473b6c6009c4464f38b965c5622131cc63e78af00b1ccda3d2252d250adec3bd9072682b4fa08d66c5d WHIRLPOOL dc11551f1e590f0d54c2e2736f2602be9376c885119d407ec9d3285717409317bdcc532f777d765f75df1d78cda872fcd5eb72592536bfafa460ae54a48c2d2f
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-fps/ut2004-data/metadata.xml b/games-fps/ut2004-data/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-fps/ut2004-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-fps/ut2004-data/ut2004-data-3186-r4.ebuild b/games-fps/ut2004-data/ut2004-data-3186-r4.ebuild
new file mode 100644
index 000000000000..d8cf9883ed62
--- /dev/null
+++ b/games-fps/ut2004-data/ut2004-data-3186-r4.ebuild
@@ -0,0 +1,377 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils unpacker cdrom portability games
+
+DESCRIPTION="Unreal Tournament 2004 - This is the data portion of UT2004"
+HOMEPAGE="http://www.unrealtournament2004.com/"
+SRC_URI=""
+
+LICENSE="ut2003"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="games-util/uz2unpack
+ >=app-arch/unshield-0.5-r1"
+PDEPEND="games-fps/ut2004"
+
+S=${WORKDIR}
+dir=${GAMES_PREFIX_OPT}/ut2004
+Ddir=${D}/${dir}
+
+check_dvd() {
+ # The following is a nasty mess to determine if we are installing from
+ # a DVD or from multiple CDs. Anyone feel free to submit patches to this
+ # to bugs.gentoo.org as I know it is a very ugly hack.
+
+ USE_DVD=
+ USE_ECE_DVD=
+ USE_MIDWAY_DVD=
+ USE_GERMAN_MIDWAY_DVD=
+
+ local point foo fs mnts=()
+ while read point foo fs foo ; do
+ [[ ${fs} =~ (9660|udf) ]] && mnts+=( "${point//\040/ }" )
+ done < <(get_mounts)
+
+ local r
+ for r in "${CD_ROOT}" "${CD_ROOT_1}" "${mnts[@]}" ; do
+ if [[ -n ${r} ]] ; then
+ einfo "Searching ${r}"
+ if [[ -f ${r}/AutoRunData/Unreal.ico ]] \
+ && [[ -f ${r}/Disk5/data6.cab ]] ; then
+ USE_MIDWAY_DVD=1
+ USE_DVD=1
+ elif [[ -f ${r}/autorund/unreal.ico ]] \
+ && [[ -f ${r}/disk7/data8.cab ]] ; then
+ USE_MIDWAY_DVD=1
+ USE_GERMAN_MIDWAY_DVD=1
+ USE_DVD=1
+ else
+ [[ -d ${r}/CD1 ]] && USE_DVD=1
+ [[ -d ${r}/CD7 ]] && USE_ECE_DVD=1
+ fi
+ fi
+ done
+}
+
+grabdirs() {
+ local d
+ for d in {Music,Sounds,Speech,StaticMeshes,Textures} ; do
+ local srcdir=${CDROM_ROOT}/${1}/${d}
+ # Is flexible to handle CD_ROOT vs CD_ROOT_1 mixups
+ [[ -d ${srcdir} ]] || srcdir=${CDROM_ROOT}/${d}
+ if [[ -d ${srcdir} ]] ; then
+ insinto "${dir}"
+ doins -r "${srcdir}"
+ fi
+ done
+}
+
+pkg_setup() {
+ games_pkg_setup
+
+ ewarn "This is a huge package. If you do not have at least 7GB of free"
+ ewarn "disk space in ${PORTAGE_TMPDIR} and also in ${GAMES_PREFIX_OPT}"
+ ewarn "then you should abort this installation now and free up some space."
+}
+
+src_unpack() {
+ check_dvd
+
+ if [[ ${USE_DVD} -eq 1 ]] ; then
+ if [[ ${USE_MIDWAY_DVD} -eq 1 ]] ; then
+ # Is 1 DVD, either UT2004-only or Anthology
+ if [[ ${USE_GERMAN_MIDWAY_DVD} -eq 1 ]] ; then
+ cdrom_get_cds autorund/unreal.ico
+ else
+ cdrom_get_cds AutoRunData/Unreal.ico
+ fi
+ else
+ DISK1="CD1"
+ DISK2="CD2"
+ DISK3="CD3"
+ DISK4="CD4"
+ DISK5="CD5"
+ DISK6="CD6"
+ if [[ ${USE_ECE_DVD} -eq 1 ]] ; then
+ # Editor's Choice Edition DVD
+ cdrom_get_cds \
+ ${DISK1}/System/UT2004.ini \
+ ${DISK2}/Textures/2K4Fonts.utx.uz2 \
+ ${DISK3}/Textures/ONSDeadVehicles-TX.utx.uz2 \
+ ${DISK4}/Textures/XGameShaders2004.utx.uz2 \
+ ${DISK5}/Speech/ons.xml \
+ ${DISK6}/Sounds/TauntPack.det_uax.uz2
+ else
+ # Original DVD
+ cdrom_get_cds \
+ ${DISK1}/System/UT2004.ini \
+ ${DISK2}/Textures/2K4Fonts.utx.uz2 \
+ ${DISK3}/Textures/ONSDeadVehicles-TX.utx.uz2 \
+ ${DISK4}/StaticMeshes/AlienTech.usx.uz2 \
+ ${DISK5}/Speech/ons.xml \
+ ${DISK6}/Sounds/TauntPack.det_uax.uz2
+ fi
+ fi
+ else
+ # 6 CDs
+ cdrom_get_cds \
+ System/UT2004.ini \
+ Textures/2K4Fonts.utx.uz2 \
+ Textures/ONSDeadVehicles-TX.utx.uz2 \
+ StaticMeshes/AlienTech.usx.uz2 \
+ Speech/ons.xml \
+ Sounds/TauntPack.det_uax.uz2
+ fi
+
+ if [[ ${USE_MIDWAY_DVD} -ne 1 ]] ; then
+ unpack_makeself "${CDROM_ROOT}"/linux-installer.sh
+ use x86 && unpack ./linux-x86.tar
+ use amd64 && unpack ./linux-amd64.tar
+ fi
+}
+
+src_install() {
+ local j
+
+ if [[ ${USE_MIDWAY_DVD} -eq 1 ]] ; then
+ einfo "Copying files from UT2004 Midway DVD."
+
+ if [[ -f ${CDROM_ROOT}/Manual/Manual.pdf ]] ; then
+ insinto "${dir}"/Manual
+ doins "${CDROM_ROOT}"/Manual/Manual.pdf
+ elif [[ -f ${CDROM_ROOT}/Manual.pdf ]] ; then
+ insinto "${dir}"/Manual
+ doins "${CDROM_ROOT}"/Manual.pdf
+ fi
+
+ # Symlinks for unshield. data1&2.cab are both in Disk1.
+ # unshield needs data1.hdr
+ # The Midway Anthology DVD contains up to data9.cab
+ local cabfile
+ for cabfile in "${CDROM_ROOT}"/[dD]isk*/data*.{cab,hdr} ; do
+ ln -sfn "${cabfile}" .
+ done
+
+ # The big extraction
+ einfo "Extracting from CAB files - this will take several minutes..."
+ unshield x data1.cab || die
+
+ if [[ -d 4_UT2004_Animations ]] ; then
+ # Delete the other games on the Anthology DVD
+ rm -rf {1,2,3}_Unreal* 4_UT2004_EXE Launcher_* OCXFiles
+ # Rename directories to be same as Midway UT2004-only DVD,
+ # i.e. rename "4_UT2004_Animations" to "Animations".
+ for j in 4_UT2004_* ; do
+ mv -f ${j} ${j/4_UT2004_} || die
+ done
+ fi
+
+ # The "logging" subdirectory is created by unshield.
+ rm -rf logging
+ rm -f *.{cab,hdr}
+
+ for j in Animations Benchmark ForceFeedback Help KarmaData \
+ Manual Maps Music Sounds Speech StaticMeshes \
+ System Textures Web ; do
+
+ # UT2004-only DVD has "All_*" dirs, and Anthology DVD has "*_All"
+ if [[ -d All_${j} ]] ; then
+ if [[ -d ${j} ]] ; then
+ cp -rf All_${j}/* ${j}/ || die
+ else
+ mv -f All_${j} ${j} || die
+ fi
+ fi
+ if [[ -d ${j}_All ]] ; then
+ if [[ -d ${j} ]] ; then
+ cp -rf ${j}_All/* ${j}/ || die
+ else
+ mv -f ${j}_All ${j} || die
+ fi
+ fi
+
+ if [[ -d English_${j} ]] ; then
+ if [[ -d ${j} ]] ; then
+ cp -rf English_${j}/* ${j}/ || die
+ else
+ mv -f English_${j} ${j} || die
+ fi
+ fi
+ if [[ -d ${j}_English ]] ; then
+ if [[ -d ${j} ]] ; then
+ cp -rf ${j}_English/* ${j}/ || die
+ else
+ mv -f ${j}_English ${j} || die
+ fi
+ fi
+
+ # Ensure that the directory exists
+ mkdir -p ${j}
+ done
+
+ # Rearrange directories
+ if [[ -d English_Sounds_Speech_System_Help ]] ; then
+ # http://utforums.epicgames.com/showthread.php?t=558146
+ for j in Sounds Speech System Help ; do
+ cp -rf English_Sounds_Speech_System_Help/${j}/* ${j}/ || die
+ done
+ fi
+
+ if [[ ! -d Benchmark/Stuff ]] ; then
+ mkdir -p Benchmark/Stuff || die
+ cp -f BenchmarkStuff/timedemo.txt Benchmark/Stuff || die
+ fi
+
+ if [[ ! -d System/editorres ]] ; then
+ mkdir -p System/editorres || die
+ cp -rf Systemeditorres/* System/editorres || die
+ fi
+
+ if [[ ! -d Web/images ]] ; then
+ mkdir -p Web/{images,ServerAdmin,Src} || die
+ cp -rf Webimages/* Web/images || die
+ cp -rf WebServerAdmin/* Web/ServerAdmin || die
+ cp -rf WebSrc/* Web/Src || die
+ fi
+
+ # Other languages
+ for j in Help_* Sounds_* System_* ; do
+ [[ ! -d ${j} ]] && continue
+ mv -n ${j}/* ${j/_*}/ || die
+ done
+
+ # Remove unnecessary directories
+ rm -rf Benchmark{CSVs,Logs,Results,Stuff}
+ rm -rf Systemeditorres Web{images,ServerAdmin,Src}
+ rm -rf Help_* Sounds_* Speech_* System_*
+ rm -rf \<* \[* _* All_* English_* *_All *_English
+
+ # These files are replaced later, for all installations
+ rm -f $(find . -type f -name 'DO_NOT_DELETE.ME')
+
+ # Install icon
+ if [[ -f ut2004.xpm ]] ; then
+ doicon ut2004.xpm
+ elif [[ -f Help/Unreal.ico ]] ; then
+ newicon Help/Unreal.ico ut2004.ico
+ elif [[ -f ${CDROM_ROOT}/AutoRunData/Unreal.ico ]] ; then
+ newicon "${CDROM_ROOT}"/AutoRunData/Unreal.ico ut2004.ico
+ elif [[ -f Help/Unreal.bmp ]] ; then
+ newicon Help/Unreal.bmp ut2004.bmp
+ fi
+
+ # The big install
+ einfo "Installing UT2004 directories..."
+ insinto "${dir}"
+ doins -r *
+ else
+ # Disk 1
+ einfo "Copying files from Disk 1..."
+ insinto "${dir}"
+ doins -r "${CDROM_ROOT}"/${DISK1}/{Animations,ForceFeedback,Help,KarmaData,Maps,Sounds,Web}
+ insinto "${dir}"/System
+ doins -r "${CDROM_ROOT}"/${DISK1}/System/{editorres,*.{bat,bmp,dat,det,est,frt,ini,int,itt,kot,md5,smt,tmt,u,ucl,upl,url}}
+ insinto "${dir}"/Manual
+ doins "${CDROM_ROOT}"/${DISK1}/Manual/Manual.pdf
+ insinto "${dir}"/Benchmark/Stuff
+ doins -r "${CDROM_ROOT}"/${DISK1}/Benchmark/Stuff/*
+ cdrom_load_next_cd
+
+ local diskno
+ for diskno in {2..5} ; do
+ einfo "Copying files from Disk ${diskno}..."
+ local varname="DISK${diskno}"
+ grabdirs ${!varname}
+ cdrom_load_next_cd
+ done
+
+ # Disk 6
+ einfo "Copying files from Disk 6..."
+ grabdirs "${DISK6}"
+
+ # Install extra help files
+ insinto "${dir}"/Help
+ doins README.linux Unreal.bmp UT2004_EULA.txt ut2004.xpm
+
+ doicon ut2004.xpm
+
+ # Uncompress files
+ einfo "Uncompressing files... this *will* take a while..."
+ for j in Animations Maps Sounds StaticMeshes Textures ; do
+ fperms -R u+w "${dir}/${j}" || die
+ games_ut_unpack "${Ddir}"/${j}
+ done
+ fi
+
+ # Create empty files in Benchmark
+ for j in {CSVs,Logs,Results} ;do
+ keepdir "${dir}"/Benchmark/${j}
+ done
+
+ make_wrapper ut2004 ./ut2004-bin "${dir}"/System "${dir}"/System "${dir}"
+
+ # Remove unneccessary files
+ rm -f "${Ddir}"/*.{bat,exe,EXE,int}
+ rm -f "${Ddir}"/Help/{.DS_Store,SAPI-EULA.txt}
+ rm -f "${Ddir}"/Manual/*.exe
+ rm -rf "${Ddir}"/Speech/Redist
+ rm -f "${Ddir}"/System/*.{bat,dll,exe,tar}
+ rm -f "${Ddir}"/System/{{License,Manifest}.smt,{ucc,StdOut}.log}
+ rm -f "${Ddir}"/System/{User,UT2004}.ini
+
+ # Remove file collisions with ut2004-3369-r4
+ rm -f "${Ddir}"/Animations/ONSNewTank-A.ukx
+ rm -f "${Ddir}"/Help/UT2004Logo.bmp
+ rm -f "${Ddir}"/System/{ALAudio.kot,AS-{Convoy,FallenCity,Glacier}.kot,AS-{Convoy,FallenCity,Glacier,Junkyard,Mothership,RobotFactory}.int,bonuspack.{det,est,frt},BonusPack.{int,itt,u},BR-Serenity.int}
+ rm -f "${Ddir}"/System/CTF-{AbsoluteZero,BridgeOfFate,DE-ElecFields,DoubleDammage,January,LostFaith}.int
+ rm -f "${Ddir}"/System/DM-{1on1-Albatross,1on1-Desolation,1on1-Mixer,Corrugation,IronDeity,JunkYard}.int
+ rm -f "${Ddir}"/System/{DOM-Atlantis.int,OnslaughtBP.{kot,u,ucl},OnslaughtFull.int}
+ rm -f "${Ddir}"/System/{Build.ini,CacheRecords.ucl,Core.{est,frt,kot,int,itt,u},CTF-January.kot,D3DDrv.kot,DM-1on1-Squader.kot}
+ rm -f "${Ddir}"/System/{Editor,Engine,Gameplay,GamePlay,UnrealGame,UT2k4Assault,XInterface,XPickups,xVoting,XVoting,XWeapons,XWebAdmin}.{det,est,frt,int,itt,u}
+ rm -f "${Ddir}"/System/{Fire.u,IpDrv.u,License.int,ONS-ArcticStronghold.kot}
+ rm -f "${Ddir}"/System/{OnslaughtFull,onslaughtfull,UT2k4AssaultFull}.{det,est,frt,itt,u}
+ rm -f "${Ddir}"/System/{GUI2K4,Onslaught,skaarjpack,SkaarjPack,XGame}.{det,est,frt,int,itt,kot,u}
+ rm -f "${Ddir}"/System/{Setup,Window}.{det,est,frt,int,itt,kot}
+ rm -f "${Ddir}"/System/XPlayers.{det,est,frt,int,itt}
+ rm -f "${Ddir}"/System/{UnrealEd.u,UTClassic.u,UTV2004c.u,UTV2004s.u,UWeb.u,Vehicles.kot,Vehicles.u,Xweapons.itt,UT2K4AssaultFull.int,UTV2004.kot,UTV2004s.kot}
+ rm -f "${Ddir}"/System/{XAdmin.kot,XAdmin.u,XMaps.det,XMaps.est}
+ rm -f "${Ddir}"/Textures/jwfasterfiles.utx
+ rm -f "${Ddir}"/Web/ServerAdmin/{admins_home.htm,current_bots.htm,ut2003.css,current_bots_species_group.inc}
+ rm -f "${Ddir}"/Web/ServerAdmin/ClassicUT/current_bots.htm
+ rm -f "${Ddir}"/Web/ServerAdmin/UnrealAdminPage/{adminsframe.htm,admins_home.htm,admins_menu.htm,current_bots.htm,currentframe.htm,current_menu.htm}
+ rm -f "${Ddir}"/Web/ServerAdmin/UnrealAdminPage/{defaultsframe.htm,defaults_menu.htm,footer.inc,mainmenu.htm,mainmenu_itemd.inc,rootframe.htm,UnrealAdminPage.css}
+ rm -f "${Ddir}"/Web/ServerAdmin/UT2K3Stats/{admins_home.htm,current_bots.htm,ut2003stats.css}
+
+ # Remove file collisions with ut2004-bonuspack-ece
+ rm -f "${Ddir}"/Animations/{MechaSkaarjAnims,MetalGuardAnim,NecrisAnim,ONSBPAnimations}.ukx
+ rm -f "${Ddir}"/Help/BonusPackReadme.txt
+ rm -f "${Ddir}"/Maps/ONS-{Adara,IslandHop,Tricky,Urban}.ut2
+ rm -f "${Ddir}"/Sounds/{CicadaSnds,DistantBooms,ONSBPSounds}.uax
+ rm -f "${Ddir}"/StaticMeshes/{BenMesh02,BenTropicalSM01,HourAdara,ONS-BPJW1,PC_UrbanStatic}.usx
+ rm -f "${Ddir}"/System/{ONS-Adara.int,ONS-IslandHop.int,ONS-Tricky.int,ONS-Urban.int,OnslaughtBP.int,xaplayersl3.upl}
+ rm -f "${Ddir}"/Textures/{AW-2k4XP,BenTex02,BenTropical01,BonusParticles,CicadaTex,Construction_S}.utx
+ rm -f "${Ddir}"/Textures/{HourAdaraTexor,ONSBPTextures,ONSBP_DestroyedVehicles,PC_UrbanTex,UT2004ECEPlayerSkins}.utx
+
+ # Remove file collisions with ut2004-bonuspack-mega
+ rm -f "${Ddir}"/Help/MegapackReadme.txt
+ rm -f "${Ddir}"/Maps/{AS-BP2-Acatana,AS-BP2-Jumpship,AS-BP2-Outback,AS-BP2-SubRosa,AS-BP2-Thrust}.ut2
+ rm -f "${Ddir}"/Maps/{CTF-BP2-Concentrate,CTF-BP2-Pistola,DM-BP2-Calandras,DM-BP2-GoopGod}.ut2
+ rm -f "${Ddir}"/Music/APubWithNoBeer.ogg
+ rm -f "${Ddir}"/Sounds/A_Announcer_BP2.uax
+ rm -f "${Ddir}"/StaticMeshes/{JumpShipObjects,Ty_RocketSMeshes}.usx
+ rm -f "${Ddir}"/System/{AssaultBP.u,Manifest.in{i,t},Packages.md5}
+ rm -f "${Ddir}"/Textures/{JumpShipTextures,T_Epic2k4BP2,Ty_RocketTextures}.utx
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+
+ elog "This is only the data portion of the game. To play UT2004,"
+ elog "you still need to install games-fps/ut2004."
+}
diff --git a/games-fps/ut2004-deathball/Manifest b/games-fps/ut2004-deathball/Manifest
new file mode 100644
index 000000000000..a8b85a5001b0
--- /dev/null
+++ b/games-fps/ut2004-deathball/Manifest
@@ -0,0 +1,5 @@
+DIST deathball24w.zip 79276308 SHA256 564a7d93f0eec438f1f7f5da873805429e4a2827eb67a33f506e7313be763343 SHA512 b310c38dcc5889fc3f56861fe8d05e53c4b399b33e318614bfeb86b899051c8870b23bc39a82eda7eb7d469d7d2d32c361df922bcba18f01d03aa66239b133bc WHIRLPOOL f6d208f166a6ac47b25d09429a11fb3e79255fef313bda78018995c6999982e677e3de81e40e017f7571da51afc4e94b8bfd2d18cd57215de1bbefd2fc153682
+EBUILD ut2004-deathball-2.4w.ebuild 526 SHA256 89d99012485c6c495fe331597202027eed9ed758c71142e902646c19321059b1 SHA512 142ababf9d69ab1c60843ceca9266ae791f611eac18a0a6d0a2f745e58d8234384265ef989f799c1c1982765d56549bbe709306ba46404b59c1302dd66e76182 WHIRLPOOL d8166f8cedc031462d88905c7994e14ba941beef3af32af77b6f7b478bee7e483c31f39f72335a51086a751f9a8a568bf2ed7147913fd42fbfe04a9c5c1caf68
+MISC ChangeLog 2585 SHA256 de9bc23352526457c27bf745b80d3fd58323202aa4ab17d835218bd825a1e58b SHA512 f6ff8d98fbfc96d7bc32163f788d842b70be9303ddc26bdd4dd1d52c4a4abf351f0041a63d28b055a0a13708e424694ed642a913c0b8bf5a11a6587606f1bb5a WHIRLPOOL 0e5a8f3ced53778be00b0bde86a1b7773b6147cce935d2b6ee98d13dbc93e7a81db6160e25907bf54b41d0e88c1ae447c21b8b2c006d5b40d5a854fa8985d051
+MISC ChangeLog-2015 1385 SHA256 3ba8e0615dd3d069a3ae11f490b6faaa52d93b969a87ebef67bd6f7dd397476b SHA512 9fb31a928020b70583f37e8892ad338d61b557e93c0a6930680df323b039b856deaf2ddcb42867490ba5098c41a5e3062cd573ac138b5dd7be45fde2ccb2bf24 WHIRLPOOL a251c00a33532e8c2bcf5c5a82deb1d94d1eb1b3f7bea34a5c94388672e0bc9b8b5394f1fad3ecc25b0c3e01717ab309fdbd65e6acdc9d4616a4fc17130f6dd2
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-fps/ut2004-deathball/metadata.xml b/games-fps/ut2004-deathball/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-fps/ut2004-deathball/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-fps/ut2004-deathball/ut2004-deathball-2.4w.ebuild b/games-fps/ut2004-deathball/ut2004-deathball-2.4w.ebuild
new file mode 100644
index 000000000000..ea47ebeb0f73
--- /dev/null
+++ b/games-fps/ut2004-deathball/ut2004-deathball-2.4w.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+MOD_DESC="Fast-paced first person sport mod"
+MOD_NAME="Deathball"
+MOD_DIR="deathball"
+MOD_ICON="dbicon.ico"
+
+inherit games games-mods
+
+HOMEPAGE="http://www.deathball.net/"
+SRC_URI="http://www.deathball.net/downloads/deathball${PV/.}.zip"
+
+LICENSE="freedist"
+KEYWORDS="amd64 x86"
+IUSE="dedicated opengl"
+
+src_prepare() {
+ cd ${MOD_DIR} || die
+ mv -f ../*.txt . || die
+ rm -f *.bat *.cmd *.db Help/*.db || die
+}
diff --git a/games-fps/ut2004-demo/Manifest b/games-fps/ut2004-demo/Manifest
new file mode 100644
index 000000000000..3502632504e2
--- /dev/null
+++ b/games-fps/ut2004-demo/Manifest
@@ -0,0 +1,5 @@
+DIST ut2004-lnx-demo3334.run 288950743 SHA256 c7065a758e91fdf5cf79cb8f9646e4360928ba9de4460ab7011c08e22a240cf3 SHA512 4cdd61901f4c082d1e02caf301a24f1e18e89f4efc9fbce0e4496178916b6c14245131b62f27deb17f1763cd4b8bf68ee60cc7af5ece5fa2b39d1bf349361da0 WHIRLPOOL 07749d100e601967ed581725290f67479252a4a5393b43d44037513776306432d20e1ed7cc05fa747be90cd04065eb3ba6484095d630c9ceea599d8f83b429a9
+EBUILD ut2004-demo-3334.ebuild 1863 SHA256 9d21c4c91b2837f47eda03295c564c80e7d19c9e12ae734597a1749faf69e3a5 SHA512 433b9091774ebf0f7d3b14c33baede935cbd184fc846d9e23267335c2723ea5728e51dfe0703b9ed448e5155fc6618c7933927a4a212abc441f05a7b7ccbff82 WHIRLPOOL 37b2172ea231d28da1cc3f650596ec3ecfd8f89684597bc29c734be0100cc5cda2e19ca81f3fc799854f4cde400df5b41d847f21268cf32279fc2198eb4498b3
+MISC ChangeLog 2438 SHA256 f6727e8ed846787f249e8e35fa863b8939d11e39bb595bcead197d4d2a27653d SHA512 15dc07e0d973a022e225b7218bdbe077df7cf922a8b670cf876011989955e87e10d8d6e1e0886f6ee8d16e209e8853db2a30444ec1ebc11b0a890a87306eabd0 WHIRLPOOL aab30fc790a33b57207c4c4346798a019175dbec7382082b1a34c91fad14a856c7d735a5237a93f425bc29cce3c0a9c6f9dca74cfcfc968ae86e7c69e613e354
+MISC ChangeLog-2015 5831 SHA256 b31af3f9c125e940f4523b6b5e7fa06b2c1db5d378e61be3f3b46cdc233cc02e SHA512 6a48bb73e0f58b8cbcb63dd121d66ee786576d06cb4704a29ad2c045c41e1f59d2c5003045cf43c8ce946249b04a043229d4bf7cea45a188a9768627648e8910 WHIRLPOOL 8d49f123795a84021c9b4f49a0076551562e838c8bd9b09a04f2d00920295a3428ac0f651a08119148b78307522e862bdfcf30f5021fbc8e2739f35329b4af2e
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-fps/ut2004-demo/metadata.xml b/games-fps/ut2004-demo/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-fps/ut2004-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-fps/ut2004-demo/ut2004-demo-3334.ebuild b/games-fps/ut2004-demo/ut2004-demo-3334.ebuild
new file mode 100644
index 000000000000..c9f009b33945
--- /dev/null
+++ b/games-fps/ut2004-demo/ut2004-demo-3334.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 games
+
+MY_P="ut2004-lnx-demo${PV}.run"
+DESCRIPTION="Demo for the critically-acclaimed first-person shooter"
+HOMEPAGE="http://www.unrealtournament.com/"
+SRC_URI="mirror://gentoo/${MY_P}"
+
+LICENSE="ut2003-demo"
+SLOT="0"
+KEYWORDS="-* amd64 x86"
+RESTRICT="strip"
+IUSE=""
+
+DEPEND=""
+RDEPEND="
+ virtual/libstdc++:3.3
+ 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}/System/*"
+
+src_unpack() {
+ unpack_makeself
+ unpack ./setupstuff.tar.gz
+}
+
+src_install() {
+ dodir "${dir}"
+
+ tar xjf ut2004demo.tar.bz2 -C "${Ddir}" || die
+
+ if use x86
+ then
+ tar xjf linux-x86.tar.bz2 || die
+ fi
+ if use amd64
+ then
+ tar xjf linux-amd64.tar.bz2 || die
+ fi
+
+ insinto "${dir}"
+ doins README.linux ut2004.xpm
+ newicon ut2004.xpm ut2004-demo.xpm
+
+ exeinto "${dir}"
+ doexe bin/ut2004-demo
+
+ exeinto "${dir}"/System
+ doexe System/{libSDL-1.2.so.0,openal.so,ucc-bin,ut2004-bin}
+
+ games_make_wrapper ut2004-demo ./ut2004-demo "${dir}" "${dir}"
+ make_desktop_entry ut2004-demo "Unreal Tournament 2004 (Demo)" ut2004-demo
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ echo
+ elog "For Text To Speech:"
+ elog " 1) emerge festival speechd"
+ elog " 2) Edit your ~/.ut2004demo/System/UT2004.ini file."
+ elog " In the [SDLDrv.SDLClient] section, add:"
+ elog " TextToSpeechFile=/dev/speech"
+ elog " 3) Start speechd."
+ elog " 4) Start the game. Be sure to go into the Audio"
+ elog " options and enable Text To Speech."
+ echo
+ elog "To test, pull down the console (~) and type:"
+ elog " TTS this is a test."
+ echo
+ elog "You should hear something that sounds like 'This is a test.'"
+ echo
+}
diff --git a/games-fps/ut2004-fragops/Manifest b/games-fps/ut2004-fragops/Manifest
new file mode 100644
index 000000000000..088360751127
--- /dev/null
+++ b/games-fps/ut2004-fragops/Manifest
@@ -0,0 +1,5 @@
+DIST fragops_v220_fulllmw.zip 554114758 SHA256 5daa8d8cee9e9ec11e4a960a811928a61bd6ef6f61717d2bb24863ba729a6f0f SHA512 f2a0b1a8e035e038a5241053c30761f725003aba8c45c862348ab8a8895c2db056bab45e2a1791080dcf54234923d736bd7d7361bb38bb2b67ebf5e077fc83e5 WHIRLPOOL b7e97860441f6f4eeb469034a5dd644dc253da5aa593d4e2e08f2e31f5e4a18aa5343307d31300191f92d2a87bdba84b5daf59d0ca7f78ef05c382e8344c0df6
+EBUILD ut2004-fragops-2.20.ebuild 475 SHA256 345eebad5af03fb9b982cd6eafaad43f8b4bcd0c416546cb95c774fc0ebbcb03 SHA512 7796fa349c1cbf8098b3e2c20112270e4531154144f803906925b6fe8d91045575fdfa4960f9bedc4ad3646f2c937aaed467cf684b6cc18ae3ec1cfb646d666a WHIRLPOOL e763efb6611e2771521f85a730aef6d3e28fcd136ec3747a38bb8fe01855eb2898acf588c706d907a8f6a9429a7a6258dfb29d971e492046f272a87614962074
+MISC ChangeLog 2577 SHA256 37445506a3b9947100689dfcc6262e2bdafcf21751dd68099095ed22a2d26fae SHA512 30810cce3777c3d6a2fc2912e234590c1b89c1e0839d80b738c711decdda3811e90c5be4af70dd7cbcbea849c390952e2f01adc491cf2e68332c82e52caa961f WHIRLPOOL db3d0634e929c1cf019a4d2a9d72d2769b5896c1e5f7353c2ccbbb4293a3790b23468ed1301f85b47502de4753a9081ba5c38daa41aa2c8680373d5e5cff514d
+MISC ChangeLog-2015 1887 SHA256 dd8b2df7cdec52e4a16dca86f53654f8c4fe936e423501daa5ebf28c84b1cdcd SHA512 f5a4d26460753518b62f8ef14e34da41efa05cbefe12f51c4d1c7457efd377ac09b58367ede753fd77cfc6f4c89cd7446c6e26c3f224c62e768b45ef4f6da4ba WHIRLPOOL e9f95a2f81745992c04db100e95579ab43ec0b868fc68170775a6ca808a3906fc787098286e1e62d8d46e61c5745002df518849e3ee5083b9994b25f1fcb928f
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-fps/ut2004-fragops/metadata.xml b/games-fps/ut2004-fragops/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-fps/ut2004-fragops/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-fps/ut2004-fragops/ut2004-fragops-2.20.ebuild b/games-fps/ut2004-fragops/ut2004-fragops-2.20.ebuild
new file mode 100644
index 000000000000..ba9677650097
--- /dev/null
+++ b/games-fps/ut2004-fragops/ut2004-fragops-2.20.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+MOD_DESC="realism mod"
+MOD_NAME="Frag Ops"
+MOD_DIR="FragOps"
+MOD_ICON="Help/FragOps.ico"
+
+inherit games games-mods
+
+HOMEPAGE="http://www.moddb.com/mods/fragops"
+SRC_URI="https://ut.rushbase.net/beyondunreal/mods/fragops_v220_fulllmw.zip"
+
+LICENSE="freedist"
+KEYWORDS="amd64 x86"
+IUSE="dedicated opengl"
+
+src_prepare() {
+ rm -f *.TXT ${MOD_DIR}/*.bat || die
+}
diff --git a/games-fps/ut2004-hamsterbash/Manifest b/games-fps/ut2004-hamsterbash/Manifest
new file mode 100644
index 000000000000..1aab10bb2281
--- /dev/null
+++ b/games-fps/ut2004-hamsterbash/Manifest
@@ -0,0 +1,5 @@
+DIST HamsterBashFinal.zip 98608028 SHA256 104a2c09dd5c698877301f3f899dbb6a1b092e31b1c8112ad119824468ca8d9b SHA512 641a642ce08d5188045f9d015a92f0846ac22c65b7b047bb0096f216d7cb9d0a8074e5e11b01fc187b56fbdf2d5cbc0e5cd56c2eb3f40f744fbeadf291e08573 WHIRLPOOL a3d4e08875cd8e9d1b8a9b4301bf1ae980851414cfdfa61b1f965ca41feba170e4b7ace326c7542f38e22981bb365fd1c3c932c176c77b691509b01edcd2e797
+EBUILD ut2004-hamsterbash-1.ebuild 598 SHA256 f9b91ec70bc243101a6314b8938df1b412db06655cf859ba9d6ee9caedbef7a5 SHA512 940b29c913890ce61a665c04195fe2bca945d22cb633b6a8d4941d6326370041eefc1645512fc3f4766b35a3ccefe349d0c7ce06baf64f7393c9d00e435699c6 WHIRLPOOL 03814f1c6db9de193df0de8d47e011d93e1435d12a4d34cfcf2b42136424214dfb6d2e2704903cd29b1fbe8a913e3e493776a3ac15ecfaa05bd5cf99aa254818
+MISC ChangeLog 3073 SHA256 24951f31d4533bbec76bbc71dbb608410be59d745ebb6e9e97d8817cf4764c31 SHA512 b0cdeaf1c9d6d49b18badc4857ddf58bf78c8885dd4a64cc3e6241954f00293799e6fb309e60b5ad7e8721e831a50857700d3baa4c28b2675f8d0a26e98f4cc3 WHIRLPOOL 99f41e8cda070922d55e759eed1c229d2441f9e957f5572a60a739bc00f0302b9ef72d1b306a3ab8f1127f009e65eeb9eb65e2cdb79b58f3f3025f85df7f1afd
+MISC ChangeLog-2015 869 SHA256 0036467e31bfa225baa799f633d3dae7dd0439953f95c7b4ee7265e6885435ed SHA512 37ac456143a015ea7fc8ee6a67648484921b6b62c07acb6f9599b316cae60fa7593ebfe4af87ff1f80733fb1326d6ab70cb4a95881314a7be1ac28aedaa8a611 WHIRLPOOL c6091995c4f938d35e693b5bca63c0cf2a42a1d31a497e963e5274b475f7e762c9b69ce33230ba92b4450ed19fc2373896f98373d2a7d4a05193cc75b4b3efef
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-fps/ut2004-hamsterbash/metadata.xml b/games-fps/ut2004-hamsterbash/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-fps/ut2004-hamsterbash/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-fps/ut2004-hamsterbash/ut2004-hamsterbash-1.ebuild b/games-fps/ut2004-hamsterbash/ut2004-hamsterbash-1.ebuild
new file mode 100644
index 000000000000..83f0d55acbfb
--- /dev/null
+++ b/games-fps/ut2004-hamsterbash/ut2004-hamsterbash-1.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+MOD_DESC="Cute and violent hamster cage rampage mod"
+MOD_NAME="Hamster Bash"
+MOD_DIR="hamsterbash"
+
+inherit unpacker games games-mods
+
+HOMEPAGE="http://www.moddb.com/mods/hamsterbash"
+SRC_URI="HamsterBashFinal.zip"
+
+LICENSE="freedist"
+KEYWORDS="amd64 x86"
+IUSE="dedicated opengl"
+RESTRICT="fetch"
+
+pkg_nofetch() {
+ elog "Please download ${SRC_URI} from:"
+ elog "${HOMEPAGE}"
+ elog "and move it to ${DISTDIR}"
+}
+
+src_prepare() {
+ mv -f HamsterBash ${MOD_DIR} || die
+ rm -rf System
+}
diff --git a/games-fps/ut2004-muralis/Manifest b/games-fps/ut2004-muralis/Manifest
new file mode 100644
index 000000000000..9df54614505c
--- /dev/null
+++ b/games-fps/ut2004-muralis/Manifest
@@ -0,0 +1,5 @@
+DIST muralis-v1.15-zip.zip 62575050 SHA256 99d3d86585511cf0b9a37fb3b475a6685d1a4a414684def9e82befdc793fd77f SHA512 b50477e3ef221241a430f95a390e34d5ffee3ea460e62bafa30b534d6499ef1a616d8ca35f77179e8f7a50b5e69f82441cb9779d38e71388c2868add45822330 WHIRLPOOL 73d5ce13cda9095548745d3a766058d24192b062399db588bfabd7b2696a7bb6ac697193458370ef081714f083196e1110b43b7ecd535d9c7bbd9bfbc4597777
+EBUILD ut2004-muralis-1.15.ebuild 486 SHA256 f3fb6634e6447fc451f2c9901f413baa12416d2a9695552c1476e185fcb0ef38 SHA512 1c8ce30c93e5027dbde9f037a3cd3c8ab75f739f14b8fc09984096b5aa17fd5ac590105c41901d6b89b00f8461bb41f1b8a319e72fa97424bd353caae8ce019e WHIRLPOOL 42941ff899282a7114374a3705daa32947c15cbb23206460f389a7e7fa4c46b1ac41e85568b03f680b66584e87a7b8530275841faf5eb315261cce198da2a068
+MISC ChangeLog 2577 SHA256 95b9326700985e6fb3810348f057d6ed94379a4f705619b2e40fc7d1f3dd543f SHA512 eed4938844ffac34063b514fc8929930aed6a609612edef4d37341445df3f4211401b6f247fb2fbdfaea1d63bd4b141c735e049ff60bd712f42885c21c211735 WHIRLPOOL 03547f64ddb6202e358007bacdfb3acc94688a31d5bbd4e057066411a036fc5fd29a93dcb47f9c4fdab070b50a1192242f4f37ece11d57ab7ff6271922e65d46
+MISC ChangeLog-2015 985 SHA256 7039f75de0b3d41a2e98ee3b7c14041e63b918770f774981e1c1f3243e288140 SHA512 962ca00cde8bf27e50c34991f0904e54dbb4e22ea1632cf4897eb6414e069bc587c929854dea6c7ddad12dd382596e4bcbf95eaad3737c605c76dcd325831937 WHIRLPOOL 932f20825d78348d0dff1f3a866d0f4595e9952d263f6f2ff0163a6e9603b6862e5b29f8371cb0963aa702de43a7a0474fd92e5d6d141592a0519e480aa64e6d
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-fps/ut2004-muralis/metadata.xml b/games-fps/ut2004-muralis/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-fps/ut2004-muralis/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-fps/ut2004-muralis/ut2004-muralis-1.15.ebuild b/games-fps/ut2004-muralis/ut2004-muralis-1.15.ebuild
new file mode 100644
index 000000000000..e74ac3fd04f9
--- /dev/null
+++ b/games-fps/ut2004-muralis/ut2004-muralis-1.15.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+MOD_DESC="third-person hand-to-hand single/multiplayer mod"
+MOD_NAME="Muralis"
+MOD_DIR="muralis"
+
+inherit unpacker games games-mods
+
+HOMEPAGE="http://www.moddb.com/mods/muralis"
+SRC_URI="https://ut.rushbase.net/beyondunreal/mods/muralis-v${PV}-zip.zip"
+
+LICENSE="freedist"
+KEYWORDS="amd64 x86"
+IUSE="dedicated opengl"
+
+src_prepare() {
+ mv -f Muralis ${MOD_DIR} || die
+}
diff --git a/games-fps/ut2004-strikeforce/Manifest b/games-fps/ut2004-strikeforce/Manifest
new file mode 100644
index 000000000000..abf020254d8d
--- /dev/null
+++ b/games-fps/ut2004-strikeforce/Manifest
@@ -0,0 +1,5 @@
+DIST strikeforce-ce-v4.1.zip 452020366 SHA256 cdd171a5d22ea17536e74c9fbf8430498098987a320e2e6247a27abfa327178e SHA512 758de1fa2a39b822114b7f224668acdbeffba6d62cc1b1a31104fcac4f84b6859cfa9a024d4d682682cf4f52de7118c1cbaa080a4887c6d882c0c7fb78ef3b49 WHIRLPOOL d52cbd78186afe46765bf11027bcf660fe11caf6304553a97c2c75e336f04201fe0579316bb93934bf149ee5cfdb157cc04210022a1834496542881f699fb233
+EBUILD ut2004-strikeforce-4.1.ebuild 474 SHA256 3923356a21a7956c964540c32e28b309248c45208f54b308a26aa3534a2106cb SHA512 cbd27b5923c869e2da2eb370637f0543e25dab2cbd0ef0029c6311e83948125e9e501013043df1fadff4d8bfe3239c317f5a25f487b39760d750856e96c5054d WHIRLPOOL f9047af8806fb473e87fe55d2cb64ba3c5cd9aca3d028fb9f2fc81e40a710e20bdfa53cfdb87856d924ea67d18b4c4ea2f56e01b97844084c4a72998538c049c
+MISC ChangeLog 2590 SHA256 f7e00ade2ece2a608f3c8156e85d663b71446799979047646098c54fc1529a0b SHA512 57322b0b490eea695a4a759dbc2ae1d97a14467762ffa6864ffe87b668af2dcef43f56bec301daa858175b0c7db66b9429a71a6bf3b93ef10c9677262d3ddb80 WHIRLPOOL 522f8711038b7f49a207e55f498c7ce493d122f04ec237f61c91128c8d6562acfecd5123c486645427d22565ca1f4f7918510d736ea94e6a4f8b18806b91ea92
+MISC ChangeLog-2015 1440 SHA256 cc447f07cab5c3e579d1a99afdc37572c08736ce787e0b987e5848712a9dbfe4 SHA512 9fa9db86e272b0534b491b92b97c44ec3178391bbbce97dcce1845afdae8de355fda58ae883a4088c9d9040663b516c4864ce67d272454fd6c4617dd6d5a4651 WHIRLPOOL d684bf72e7ca2299086444c46e920a37c7d532e2444f2fa1b47c2236462cf7d60b5ba095b1a882f7fc4c8e8aac1310c5143a73d6777918ec3cb8782141694791
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-fps/ut2004-strikeforce/metadata.xml b/games-fps/ut2004-strikeforce/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-fps/ut2004-strikeforce/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-fps/ut2004-strikeforce/ut2004-strikeforce-4.1.ebuild b/games-fps/ut2004-strikeforce/ut2004-strikeforce-4.1.ebuild
new file mode 100644
index 000000000000..f0db68c41f69
--- /dev/null
+++ b/games-fps/ut2004-strikeforce/ut2004-strikeforce-4.1.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+MOD_DESC="a terrorist vs. strike force mod"
+MOD_NAME="Strike Force"
+MOD_DIR="StrikeForce"
+
+inherit games games-mods
+
+HOMEPAGE="http://www.moddb.com/mods/strike-force-2004"
+SRC_URI="https://ut.rushbase.net/beyondunreal/mods/strikeforce-ce-v${PV}.zip"
+
+LICENSE="freedist"
+KEYWORDS="amd64 x86"
+IUSE="dedicated opengl"
+
+src_prepare() {
+ rm -f ${MOD_DIR}/*.exe
+}
diff --git a/games-fps/ut2004-troopers/Manifest b/games-fps/ut2004-troopers/Manifest
new file mode 100644
index 000000000000..18a7c1769506
--- /dev/null
+++ b/games-fps/ut2004-troopers/Manifest
@@ -0,0 +1,5 @@
+DIST troopersversion60zip.zip 447383148 SHA256 350156938b62c311873087fcf438b4e0ac9bc50171ba657f0f9193037d5e45d4 SHA512 2eec66a55b0733f2f5ee65e8a4deb329a50bcd47aa6fdcb7252a88c01e4e8db563b568d3176233a51711240e7b4dfebe0d8a8712d624915a872e8bfeb321cda4 WHIRLPOOL 94d306026a47f6e9170664b901af29d5be64bea3df69ce8c54c0e125828bb7eacf64f706d3d159c4a27f6b861be3cea1b2dd975b8ff52466e33ad8950bd93bd0
+EBUILD ut2004-troopers-6.0.ebuild 582 SHA256 cda471a0089b6998bdc1b8a8bf4ca16155dd46762905fc365d08e8f3edf385ac SHA512 a51f1bb7ae85bf8d2537ded96ad1684e8ccc84bb550874d2ba055278d1aa8c711c3236b3127d08b7081b0df88e3a78ca759234275cef07c3be57720ae4033ddf WHIRLPOOL 1fc1074be844be9663e28a5280d14cc65ff57cdf9379e3043784fc253b9d5c9b9c891053cef2a47248ff7d4a53da78e2052ec1b070e5b71bdd7d2008ad25e230
+MISC ChangeLog 2578 SHA256 4a7ad41519dade1c3aaf734035d4992d2c393c8ca5fc218160703b31a25629b1 SHA512 ad2a42117380eb2e88ab68796cb4975725541d4cb069a6b9fc050e0e619b17e56a9d1b3f4e31d4201363a19d7b65b47cc0e19bcc6ebb1889b5fd8bd3498cc866 WHIRLPOOL 4286fe3bd3f9dd5a0b5551e8bd179beffbb3e9f0e62a22451f4f3eb234f0605c2cbe95fe6f90d07ee1da34a3afcb315b603fbab5cab95bf3f0b491769631380f
+MISC ChangeLog-2015 987 SHA256 5d197b7357c1981e60caffa26f5c220cb0fdb1c1aa5fcd84d6959f726b6d46f1 SHA512 39d5902291ddbc67ab867df031188a5493c82600613d659b8d3da73afb90a603491c6d7d2ac798238495e77163293d9547aeadbbb022883e624902645b389924 WHIRLPOOL e688c0b0ee369d1a3d6b417bd694654a0a8a0dfbf2d161edc001bc95f7e0c56a1c6200b5855ea5534356848e5c1f903bf1e9926d315fc12439b1cc2dc4c623b4
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-fps/ut2004-troopers/metadata.xml b/games-fps/ut2004-troopers/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-fps/ut2004-troopers/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-fps/ut2004-troopers/ut2004-troopers-6.0.ebuild b/games-fps/ut2004-troopers/ut2004-troopers-6.0.ebuild
new file mode 100644
index 000000000000..70a6ee5a11c3
--- /dev/null
+++ b/games-fps/ut2004-troopers/ut2004-troopers-6.0.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+MOD_DESC="Star Wars mod"
+MOD_NAME="Troopers"
+MOD_DIR="Troopers"
+MOD_ICON="Help/Troopers.ico"
+
+inherit games games-mods
+
+HOMEPAGE="http://www.moddb.com/mods/troopers-dawn-of-destiny/"
+SRC_URI="troopersversion${PV/.}zip.zip"
+
+LICENSE="freedist"
+KEYWORDS="amd64 x86"
+IUSE="dedicated opengl"
+RESTRICT="fetch"
+
+pkg_nofetch() {
+ elog "Please download ${SRC_URI} from:"
+ elog "${HOMEPAGE}"
+ elog "and move it to ${DISTDIR}"
+}
+
+src_prepare() {
+ rm -f ${MOD_DIR}/*.{bat,sh}
+}
diff --git a/games-fps/ut2004-unwheel/Manifest b/games-fps/ut2004-unwheel/Manifest
new file mode 100644
index 000000000000..9d7998358d3a
--- /dev/null
+++ b/games-fps/ut2004-unwheel/Manifest
@@ -0,0 +1,6 @@
+DIST unwheel_r5.zip 596390232 SHA256 30473f57f9da9b1f1da27f44c181f2e284bb22141163847100ce3ac446fa264d SHA512 4cf319b1e20c9faa5e248e3a39a015b9a37d6defe4a8f31d634931a426dec957a1330d559d45333fda9a2451f9f3a0f7161d94c101d46950f6921fcfc0d87ee3 WHIRLPOOL 248fb9c8bea19b258f027720459b96da6018b603f4aaae1f2cd3496dd04a909d16d261a58a3cdfa7e167ab0dc958d6815435b8896c52c5ee3e09054c9eeac800
+DIST unwheelcbpvol1.zip 138178365 SHA256 dadc3538071b9853b11202ac1cdb7769bbbacde4ae03f78919b469dab997f2b5 SHA512 0cb1c3a64d8cd4448ebdfde175a25afa253336102831fa8a2abc113064cca4a0afbe90e806b4c1d1fa898142496070349566e2bcf5aad42ba12dec2c947e6fcc WHIRLPOOL 4f3bf78642e05c0c8143cd88a9dad2e74c96c4625f7ba20158913eff1c8d950cda5a903ef1a83328a0178b567da2d4e47ca0c345a63f7b78b4b3962ad1b43beb
+EBUILD ut2004-unwheel-0_beta5.ebuild 681 SHA256 a4a6a3a685fb1041675b8c858e395e3219b5fecd361011d3bfa1a0bfb52be794 SHA512 8ea19f4841beafa66a762e67a51023dac8d6ee5437fe28132d79b6314818332c645b6a8ed79055233ce58f3135379e21c2b5f209634066fb96c87f80bf4b4213 WHIRLPOOL 04a2e84b32ff2b541320248f80f2a62f34d9283d836e65f41f2923fc0576b1eb85106b88e93b9c0bc98748fe05722d1ddb01a8991c2c8d9124d325ddc6942c4e
+MISC ChangeLog 2586 SHA256 4005bce743452243ffbaabca6f835edcdbc5f3455235a2411839422ab54ceb3e SHA512 69ab0e63ec3b018b5e1486a0e4528eb78071da39c1b93cf335f5e46372e24e0a5203797c9b162b9be22ffa8a8a537a4ec5579ed3b81f4c859350f6bae4d4f6f1 WHIRLPOOL bc9019fea9da56545ee66c2047e33ead852470b4463a8ca1f6886bd342f75ecc0e190ff286d746b418a52a2294da91c0b3d5f612ea70c500624ecc2798a55df0
+MISC ChangeLog-2015 1160 SHA256 eeada0733499faf863fd00ed6240ec81283689f5088c80f87b3e15b2d28a7b64 SHA512 dd8833c9bd1d1617c7577020899de24a3adb258d41c9fe9e891bf2d7b34380de304d59cebae318ee647085883da84264a65f75790d8eee74e8807eb63839c965 WHIRLPOOL 5b00bf4ef5ee246402656e09725c349c324ab01d8fa6ae296f23f690379a881928e5d729101dca621465304c166820d1da383f616d4f83261bd3cf90c70121df
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-fps/ut2004-unwheel/metadata.xml b/games-fps/ut2004-unwheel/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-fps/ut2004-unwheel/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-fps/ut2004-unwheel/ut2004-unwheel-0_beta5.ebuild b/games-fps/ut2004-unwheel/ut2004-unwheel-0_beta5.ebuild
new file mode 100644
index 000000000000..0e44cbece4c6
--- /dev/null
+++ b/games-fps/ut2004-unwheel/ut2004-unwheel-0_beta5.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+MOD_DESC="multiplayer driving mod focusing on fun driving"
+MOD_NAME="UnWheel"
+MOD_DIR="unwheel"
+
+inherit games games-mods
+
+HOMEPAGE="http://www.moddb.com/mods/unwheel"
+SRC_URI="unwheel_r5.zip
+ unwheelcbpvol1.zip"
+
+LICENSE="GameFront"
+KEYWORDS="amd64 x86"
+IUSE="dedicated opengl"
+RESTRICT="fetch bindist"
+
+pkg_nofetch() {
+ elog "Please download the following files:"
+ elog "http://www.filefront.com/5110896"
+ elog "http://www.filefront.com/13792114"
+ elog "and move them to ${DISTDIR}"
+}
+
+src_unpack() {
+ mkdir ${MOD_DIR} || die
+ cd ${MOD_DIR} || die
+ unpack ${A}
+}
diff --git a/games-fps/ut2004/Manifest b/games-fps/ut2004/Manifest
new file mode 100644
index 000000000000..9335f82b4908
--- /dev/null
+++ b/games-fps/ut2004/Manifest
@@ -0,0 +1,6 @@
+DIST ut2004-lnxpatch3369-2.tar.bz2 22465217 SHA256 438b9b13a367d46f23cce12b065382a55afa2fc68add1f1dd3db03b015f60bb3 SHA512 0d6f26d5a811efd64be8c304e928e03f546d9a8eaba6b074843e2b7e76e0670b39df95200a2fe2040d72bbd204c7157ed0115649a5c85396a76d9e0b7ec284b1 WHIRLPOOL 2e04124aa7eb4e2689b048aceeb8c085a5756bad4c0f084da764055ea7a403623107bc6bb29d00b9b93b45675f4475e145edb4e6a3faf208d9fe36f4a65c9e78
+DIST ut2004-v3369-3-linux-dedicated.7z 5013927 SHA256 799f00deccb7ee1e3db3963deeb50a41b05a262e6f7363654c4f0438e06d7192 SHA512 3b2a7b64934a3647c02c9fec48565c5c2c35370d635b2af4059eb76587bfa13f46e6a4e14fdb0494ba7a4182497ed5963601986f4fcfa318e69a8a8a8c0178cf WHIRLPOOL ef459d7c053ac70be6313c65edaff095053cab840588d5762834b4402e299d8782401ebf1341ff61a150efed8420bf377b7a7ba10dbed6608d86791e2569e733
+EBUILD ut2004-3369.3-r1.ebuild 3955 SHA256 056e77760016d958082c1d1e1c1b4b01326cfbc82acfb92bca16705fc340fd46 SHA512 da1447c2dc7e299486c0d70e60f99cb10dc8f2cf9073a9e1f0d34054c83cb4cd2bd755b4b2042be5d8d61d7ce42d5a60971471ed236549f975e486bb2237ca07 WHIRLPOOL cfeba8b6117694f03210f21adadbfb1f247e8abb7812ae760ebdf93f62eafbc7f725c44ba8a09ea5e1aad00a36f11d0d7eff055d32c2916075f8049cce03a532
+MISC ChangeLog 2433 SHA256 c85ba7456e44510477b701fcaae6a89fb4fd3963093ce5d5f4fe3745975f4f8e SHA512 0a40c716357dbbbe76f3b6cad0ee9758b995b26d13e90c75ae0f2ff1d9b9943c806252e7baff354ca5fc57f4e387ef593c309a8fd8b06827c363341c5599bdf3 WHIRLPOOL d4daefe9e1184991da0a5c531625eaa16c1af4141331e3fde436d32a6087b21ac18ed27b0ba31a16014258de30646ee12c1981694598a4594c9643c9336e389e
+MISC ChangeLog-2015 12206 SHA256 fc72c6d60c632dea85bfac3e1adb31728a1373189b413a26b2484ab7145ed821 SHA512 88334672a33ba8e8aae167cc82c954018e4bb0afc1efa8daa1302430a03b2120e68d7ef04ca5b0a1a2289fb53ceaba1d76c7dd78b9c230a4ee112565be2ee9a8 WHIRLPOOL 9f8bd763460ba10a86d2553c1014fc4190d791a56e351e2171125b2e62edc71b4603f4ccded8b11986782dc1b103218cddc1e89ea635bc9c7df13a8521ddcdb1
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-fps/ut2004/metadata.xml b/games-fps/ut2004/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-fps/ut2004/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-fps/ut2004/ut2004-3369.3-r1.ebuild b/games-fps/ut2004/ut2004-3369.3-r1.ebuild
new file mode 100644
index 000000000000..e86886c0dc68
--- /dev/null
+++ b/games-fps/ut2004/ut2004-3369.3-r1.ebuild
@@ -0,0 +1,140 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils multilib games
+
+MY_P="ut2004-lnxpatch${PV%.*}-2.tar.bz2"
+DESCRIPTION="Editor's Choice Edition plus Mega Pack for the critically-acclaimed first-person shooter"
+HOMEPAGE="http://www.unrealtournament2004.com/"
+SRC_URI="
+ http://treefort.icculus.org/${PN}/${MY_P}
+ http://storage.guntoo.de/downs/downloads/Patch/ut2004-v${PV/./-}-linux-dedicated.7z
+ mirror://gentoo/ut2004-v${PV/./-}-linux-dedicated.7z"
+
+LICENSE="ut2003"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="dedicated opengl"
+RESTRICT="mirror strip"
+
+UIDEPEND="=virtual/libstdc++-3.3
+ virtual/opengl
+ x11-libs/libXext
+ x11-libs/libX11
+ x11-libs/libXau
+ x11-libs/libXdmcp
+ media-libs/libsdl
+ media-libs/openal"
+RDEPEND="sys-libs/glibc
+ games-fps/ut2004-data
+ games-fps/ut2004-bonuspack-ece
+ games-fps/ut2004-bonuspack-mega
+ dedicated? ( !games-server/ut2004-ded )
+ opengl? ( ${UIDEPEND} )
+ !dedicated? ( !opengl? ( ${UIDEPEND} ) )"
+DEPEND="app-arch/p7zip"
+
+S=${WORKDIR}/UT2004-Patch
+dir=${GAMES_PREFIX_OPT}/${PN}
+
+# The executable pages are required #114733
+QA_PREBUILT="${dir:1}/System/ut2004-bin
+ ${dir:1}/System/ucc-bin"
+
+src_prepare() {
+ cd "${S}"/System
+
+ # These files are owned by ut2004-bonuspack-mega
+ rm -f Manifest.in{i,t} Packages.md5 ucc-bin* || die
+
+ if use amd64 ; then
+ mv -f ut2004-bin-linux-amd64 ut2004-bin || die
+ else
+ rm -f ut2004-bin-linux-amd64 || die
+ fi
+
+ cd "${WORKDIR}"/ut2004-ucc-bin-09192008
+ if use amd64 ; then
+ mv -f ucc-bin-linux-amd64 "${S}"/System/ucc-bin || die
+ else
+ mv -f ucc-bin "${S}"/System/ || die
+ fi
+
+ if use dedicated && ! use opengl ; then
+ rm -f "${S}"/System/ut2004-bin || die
+ fi
+}
+
+src_install() {
+ insinto "${dir}"
+ doins -r *
+ fperms +x "${dir}"/System/ucc-bin
+
+ if use opengl || ! use dedicated ; then
+ fperms +x "${dir}"/System/ut2004-bin
+
+ dosym /usr/$(get_libdir)/libopenal.so "${dir}"/System/openal.so
+ dosym /usr/$(get_libdir)/libSDL-1.2.so.0 "${dir}"/System/libSDL-1.2.so.0
+
+ games_make_wrapper ut2004 ./ut2004 "${dir}" "${dir}"
+ make_desktop_entry ut2004 "Unreal Tournament 2004"
+ fi
+
+ if use dedicated ; then
+ games_make_wrapper ut2004-ded "./ucc-bin server" "${dir}"/System
+ fi
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+
+ # Here is where we check for the existence of a cdkey...
+ # If we don't find one, we ask the user for it
+ if [[ -f ${dir}/System/cdkey ]] ; then
+ einfo "A cdkey file is already present in ${dir}/System"
+ else
+ ewarn "You MUST run this before playing the game:"
+ ewarn "emerge --config =${CATEGORY}/${PF}"
+ ewarn "That way you can [re]enter your cdkey."
+ fi
+ elog "Starting with 3369, the game supports render-to-texture. To enable"
+ elog "it, you will need the Nvidia drivers of at least version 7676 and"
+ elog "you should edit the following:"
+ elog 'Set "UseRenderTargets=True" in the "[OpenGLDrv.OpenGLRenderDevice]"'
+ elog 'section of your UT2004.ini or Default.ini and set "bPlayerShadows=True"'
+ elog 'and "bBlobShadow=False" in the "[UnrealGame.UnrealPawn]" section of'
+ elog 'your User.ini or DefUser.ini.'
+}
+
+pkg_postrm() {
+ ewarn "This package leaves a cdkey file in ${dir}/System that you need"
+ ewarn "to remove to completely get rid of this game's files."
+}
+
+pkg_config() {
+ ewarn "Your CD key is NOT checked for validity here so"
+ ewarn "make sure you type it in correctly."
+ ewarn "If you CTRL+C out of this, the game will not run!"
+ echo
+ einfo "CD key format is: XXXXX-XXXXX-XXXXX-XXXXX"
+ while true ; do
+ einfo "Please enter your CD key:"
+ read CDKEY1
+ einfo "Please re-enter your CD key:"
+ read CDKEY2
+ if [[ -z ${CDKEY1} ]] || [[ -z ${CDKEY2} ]] ; then
+ echo "You entered a blank CD key. Try again."
+ else
+ if [[ ${CDKEY1} == ${CDKEY2} ]] ; then
+ echo "${CDKEY1}" | tr [:lower:] [:upper:] > "${dir}"/System/cdkey
+ einfo "Thank you!"
+ break
+ else
+ eerror "Your CD key entries do not match. Try again."
+ fi
+ fi
+ done
+}
diff --git a/games-fps/warsow-community-map-pack/Manifest b/games-fps/warsow-community-map-pack/Manifest
new file mode 100644
index 000000000000..c2cb0e8c5b0a
--- /dev/null
+++ b/games-fps/warsow-community-map-pack/Manifest
@@ -0,0 +1,4 @@
+DIST warsow_comunity_map_pack_01.zip 130057143 SHA256 58b84b10d5fbaa22e29d59194b8c5ebbc633356fbc6545a715e44a73bdd3c7e7 SHA512 47ea38467f6b88f4a8ceb0e38e2c12b62df46cbb62d1aebf7b824e71d80de1d65b81874960834055995c50f95de5f75f91b33fbf6985ee3121d823c8a5ca8dd7 WHIRLPOOL 145d66911009f1520460354f2ce6990f83a7a913aceb9aecc835bb36d770df7aba70ff1caec6af38e13074e1f7944b98477bd6e27e821e70cba6ba06ee348b6f
+EBUILD warsow-community-map-pack-01.ebuild 604 SHA256 9dd8b033d0f41cbf55be9f08a757f973d4db3c2deb68f7b9388a8a0f8c32a984 SHA512 68953cae50b3eb7edec9cf7687eddabd279a26a09a0b24b4d8c3859bc783c358c42afd98de4a4801ee66080b6b56d132daf2ca69acc63af7c38992d587950dd1 WHIRLPOOL 9df2cc227781c7edda6aafa3eb014f30190ebebd36fc9fd68e43e53469b99689dcba00cbadbd2a4179595e954293b55d9058c52c3ea5e0ee485cc947b385201e
+MISC ChangeLog 938 SHA256 8f800b5cdfb69a48d0a4d13fb0aa943df99e2b9b7909c7823f401f1986812d65 SHA512 d9819861a89cb86817272bc6f3a776213fa65814d2a8037723aff4989d54ad2a86fee71f58abca7c9012dabb4a992d5b9c2b568b5b49cd238d54d141499798ac WHIRLPOOL 0ab640fcdef32df4980b45f2acc59be54657266652b2b375d7613a2c96774e0513e1b42a86934230d1657708fef5aa02ac22966e6caacfc8dea53a09954662e8
+MISC metadata.xml 255 SHA256 07f4d71c37c1ce9a2e11d5810356303c668af7c9e94350056bd11fc6e214da9e SHA512 6d6ccdbd1026538693165380acda44c0e9496b703a8817c82629277d62948b7c29170398c8825e37ec70e19226cbdd9c41de573d6fc6286aaf786d241995307f WHIRLPOOL bfaedb87d06ad6e145cf480e79b593ade39d42648ba3732cc2b403b428f91a325546831bca7106d8c89cc9fca0b80ae4317e179b3822687843c5f2ead52b0cb7
diff --git a/games-fps/warsow-community-map-pack/metadata.xml b/games-fps/warsow-community-map-pack/metadata.xml
new file mode 100644
index 000000000000..7e3442868ea6
--- /dev/null
+++ b/games-fps/warsow-community-map-pack/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-fps/warsow-community-map-pack/warsow-community-map-pack-01.ebuild b/games-fps/warsow-community-map-pack/warsow-community-map-pack-01.ebuild
new file mode 100644
index 000000000000..a881bbb8f18f
--- /dev/null
+++ b/games-fps/warsow-community-map-pack/warsow-community-map-pack-01.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit games
+
+MY_P=${P//-/_}
+# They have a typo in their filename:
+MY_P=${MY_P/community/comunity}
+
+DESCRIPTION="Community Map Pack for the Warsow multiplayer FPS"
+HOMEPAGE="http://www.warsow.net/"
+SRC_URI="http://update.warsow.net/mirror/${MY_P}.zip"
+
+LICENSE="freedist"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+S=${WORKDIR}
+
+src_install() {
+ insinto "${GAMES_DATADIR}"/warsow
+ doins -r "${WORKDIR}"/{basewsw,previews}
+ dodoc "${WORKDIR}"/Readme.rtf
+ prepgamesdirs
+}
diff --git a/games-fps/wolfgl/Manifest b/games-fps/wolfgl/Manifest
new file mode 100644
index 000000000000..4684492ee503
--- /dev/null
+++ b/games-fps/wolfgl/Manifest
@@ -0,0 +1,13 @@
+AUX 0.93-gcc.patch 5604 SHA256 74d913811c4f3fe89600f7f0c54eed366e5592657d153421013592b47943f095 SHA512 5de8a4fb661b8b1ca4c7abbc56f2dd676333157ccf459297fd455e15132b5e5356d3ea8dde418c0848cb521dac5ad9ac017252829eae5936a2d6abf4fcfdf841 WHIRLPOOL be1274c297059042cce9c97baa68251e8aa2cb5b1344cbfc2954ae37b328f0d241dbeaffeba1fcf2e4914db64da2901900507fc20f274f9115199f2caae8567a
+AUX 0.93-gcc4.patch 2095 SHA256 6c92aee8c73ad80988b45994411fbb7cc049c1bb151f0787f4727077dc06295d SHA512 7b7452a22f4bdf4dedc1ba2ed46f8c629a0f0596d8c518f49f28ba01a346b5e6d388f80c265eb16d17ca3fd7b9b9fa4c15580e8b89968a11c2e8614ffafb191e WHIRLPOOL 03ce2b644769c11cf26082e4a3d805531e4f9f8ee162bd2a198c94301c2091fb4544c7ab5540949ecd03b1290c4765ed894fc03cf9f21d5a7ede0d81a1cd4f2e
+AUX 0.93-sample-rate.patch 344 SHA256 23ad3569f29871de20cc78ed0ee2dc303c2032e90dc193487033267416859901 SHA512 63a7d2b18bde6f3b443aa6cb32bc6f9be0c094836231e97495e0f8d553a4c38166036a2233af37bde6f2b2198d81d4e27f3a10393d9a4ae74a802c2881e20bbc WHIRLPOOL 66c6f3540564ee6faa974c58e93604bf8a0704b2c1de459f33b974d1f2d7fec3c78d9190f0e0288f8bc2fe78cee65ace8ebdecaa2d5bac7d14cd282426d4b20d
+AUX 0.93-sprite.patch 2318 SHA256 33581285a49b7dc3678425377c7290b5e06e5054803f8837a8c1a0f0785e8fe8 SHA512 8904f5470e84b416cdfdd7acabc89122885600f759a938cd81b1d96fe067c8c82378400e5ddf225eb774b24c5ac18e6e7b8f6d27681c3462130f2122b2f53c3a WHIRLPOOL 078e7b5bd89c253df0e8e1c2c92bf0ce98f0f26fef6b6b782e5790daf476eed127f0d44c5feaf0b2313d5d96c0703ea6e644a7793a420da934ce914712ba3a0f
+AUX wolfgl-0.93-as-needed.patch 397 SHA256 f0d231b53b178b3f18e9dc98f532458756a483b17d67ebff238e257fdfb4e6c6 SHA512 cdcd1aa914a6fe48e3477b24f051fb36d255542031abb2d2f46a9bb0da081b0093d1efb1b35b55cbfeec1ef6e989102e45bfb6f14246923263e102b2f0920bae WHIRLPOOL e51922fa80736a603fd9582a895611a311d840f2380a175211a9cc4a27e9608d7b92df6427f445f21855f96895601b9b08d61a83cdd10e50d630e995a917ebe6
+DIST sdmdata.zip 557147 SHA256 054590923cd35ce7c0bfae98c23be81ab70c28e11fd0e562b5253523fcd7b91f SHA512 cf6eae7027acbe6e3da6985639eb36def04254790f6449f5353ffe5edd13a73c01b0a35ef9873f2e97d09ec59e632337c5b3a1a26185befdf4dfa5a161267076 WHIRLPOOL 97db17b11b4e4a7baf430ea7d37f6bb279e90ea1d61441b59d1ddb8b691dfd07f8efe2399615a669422a8b6cd28f1e35d3ac29d906d1dd602d977387e140a0fd
+DIST wolfdata.zip 564771 SHA256 a32ee97c515b6e182597a06f2326d15cc4c343ddc70558ce5fe76c870b7a0027 SHA512 2b14c477e54d14fc543e146fa699f55dabb003bd3bac1e89422a49391cf8f29b5db6967b09c08a82c612f73fe71d624902c180d81481ad42f011f51448652a43 WHIRLPOOL c2de54265c392f24cdcfa818868b6450510cdaa5b7e214afa3832063346010535c65577464e5e77b8564bd44ea0b02066b47f0f051fd09737254fa8aa6d2e830
+DIST wolfgl-0.93.tbz2 146132 SHA256 137b311edabc7bdde462cfb51bcfd468e35398828d33f0d99fcc024ceece3739 SHA512 834dda2eb4e099d70fad52e40760886208c5ca60e687024f1fe51088b94c8cdea7c058d326daa61966946bb70feeee97d0b7fb7c284e98fdec0eb8c503de7e30 WHIRLPOOL 8c856ad5985fb626395e5f5ff6a05db2fe8de5dfc0357fe75c65c5be41bbd6e8cde9d8543cb1679e9e7078493e8b1502078c6b0e0dd315e749145382529f8cdc
+EBUILD wolfgl-0.93-r1.ebuild 1549 SHA256 d0488d0a1789987e943d111cf9c087a7ff01d0b43037840fafa7100ab913d985 SHA512 3fe9bbeac6fa0b6ffdfbad3b2fd93d1e1b7ded93227d9fa24302d2db603f6c1486eb23749af627c7cd541b052f21891be2abac98d405534e5bf8b921f2917bbc WHIRLPOOL 6b3b68abeff58eab1914708d8ab9838e418b717270aad9fece926bf504505792a7c663ceaac93abc50b56c524a46a92e1df0ab19f3571dc5df0c37b14f92672e
+EBUILD wolfgl-0.93-r2.ebuild 1407 SHA256 427177b0a32154ae77a31c1ac2b659b2acef527e19786488735d6f4fdf5c5836 SHA512 6dc9970ba56f226c2e83069f95c57658544f6e4641a65b039d9a9f5cc3c41112d0691bde1c5004107c56e837f827b0fe45fd557d66f3cd522abae45c225833e7 WHIRLPOOL 29f0f8df0b75dea5e1502b5b8ab10a62749f89e3a23bb03d5e356e68962150e4c9fe013a436811eb05d95e68ca5f0bdc021304b8cab53dd769ec23062fc26883
+MISC ChangeLog 2573 SHA256 036c1032641294a85d87ed9c206a443b2a9f2eb2a2f607e9bb0a191e3b4a8652 SHA512 14e3e50ede283f2a27ebf6368b101fe3822127b796f4f71f5bee375e81254f99763904319c24dd26081a9a69ab4403ab07600a0a100009447e9ee8017f600e1c WHIRLPOOL 88873d769f25e5d9d5b07d75b5dafa1893e53fdb92f4100c41a3f74bb370f01a24a18d31138ec74e519a67d483650828a224f8af01b6ca8be2fb72f7c174a290
+MISC ChangeLog-2015 1662 SHA256 a66b80e277c933f9fbe0e0fe1e9c983617aae4aec9654e334599bbfece1e061b SHA512 498351dc6f537d333963f78cb7842fd2bb33ad7da0774e2dea0ebe8de9bfeced1ef1d5ad1d81d868e1551206a0486c25a040113a1efb3576a8e155f2d9c8dc23 WHIRLPOOL f676c6df9443d3ec1c6f5564cf876b114ba0efc19beb7cf0463e97f47c2d1571a71407cdf14522f17d5d1ecf00d6d2be9adaf431df9593f16ec616bbdb1e7216
+MISC metadata.xml 451 SHA256 38f81658a25983a980cb6c86446c839b71f495f1e97bb3400b3b9e330682eb69 SHA512 2623437ddb8f1ebc5290d5076894cf2059df12f31a22043de4cb3246648076f7ba6dc923fde07812038a2405836d57d4f9171f5c80fcfc498ae452616128a8e8 WHIRLPOOL fbb69a971a2c2542ac14e1652b484b74c14c3d6c1f8e0c79c324713e42aeb06faf4294657d901f3abf494f32481f74dfa01642e28ad2c9704de4aae232e44b68
diff --git a/games-fps/wolfgl/files/0.93-gcc.patch b/games-fps/wolfgl/files/0.93-gcc.patch
new file mode 100644
index 000000000000..a22923393678
--- /dev/null
+++ b/games-fps/wolfgl/files/0.93-gcc.patch
@@ -0,0 +1,209 @@
+diff -abur a/common/console.c b/common/console.c
+--- a/common/console.c 2000-09-27 16:19:44.000000000 +0200
++++ b/common/console.c 2003-09-11 19:59:46.037562040 +0200
+@@ -3,6 +3,14 @@
+ #include "id_us.h"
+ #include "console.h"
+
++#ifdef _LINUX
++#include <string.h>
++#endif
++
++#ifdef _LINUX
++#include <string.h>
++#endif
++
+ static char con_lines[32][45]; // buffer
+ static int con_active; // console is visible
+ static int con_current; // current line
+diff -abur a/common/id_in.h b/common/id_in.h
+--- a/common/id_in.h 2000-09-27 16:04:26.000000000 +0200
++++ b/common/id_in.h 2003-09-11 19:32:14.368653880 +0200
+@@ -178,6 +178,7 @@
+
+ void IN_Startup();
+ void IN_Shutdown();
++void IN_KeyEvent(unsigned char key);
+ void IN_Default(wbool gotit, ControlType in);
+ void IN_ClearKeysDown();
+ void IN_ReadControl(int player, ControlInfo *info);
+diff -abur a/common/id_vh.c b/common/id_vh.c
+--- a/common/id_vh.c 2000-09-26 17:39:36.000000000 +0200
++++ b/common/id_vh.c 2003-09-11 19:24:57.183116184 +0200
+@@ -230,3 +230,4 @@
+
+ }
+ */
+\ No newline at end of file
++
+diff -abur a/common/opengl.c b/common/opengl.c
+--- a/common/opengl.c 2000-09-27 16:04:26.000000000 +0200
++++ b/common/opengl.c 2003-09-11 19:22:35.622636648 +0200
+@@ -1,5 +1,10 @@
+ #include <stdio.h>
+ #include <stdlib.h>
++
++#ifdef _LINUX
++#include <string.h>
++#endif
++
+ #include "system.h"
+ #include "opengl.h"
+ #include "wl_def.h"
+diff -abur a/common/wl_act2.c b/common/wl_act2.c
+--- a/common/wl_act2.c 2000-09-27 16:04:26.000000000 +0200
++++ b/common/wl_act2.c 2003-09-11 19:19:45.511497472 +0200
+@@ -1,5 +1,9 @@
+ // WL_ACT2.C
+
++#ifdef _LINUX
++#include <stdlib.h>
++#endif
++
+ #include "wl_def.h"
+
+ //=============================================================================
+diff -abur a/common/wl_agent.c b/common/wl_agent.c
+--- a/common/wl_agent.c 2003-09-11 20:04:40.738760648 +0200
++++ b/common/wl_agent.c 2003-09-11 19:57:06.860760592 +0200
+@@ -3,6 +3,10 @@
+ #include <string.h>
+ #include "wl_def.h"
+
++#ifdef _LINUX
++#include <stdlib.h>
++#endif
++
+ //=============================================================================
+ // LOCAL CONSTANTS
+ //=============================================================================
+diff -abur a/common/wl_draw.c b/common/wl_draw.c
+--- a/common/wl_draw.c 2003-09-11 20:04:40.739760496 +0200
++++ b/common/wl_draw.c 2003-09-11 19:20:33.512200256 +0200
+@@ -2,6 +2,11 @@
+
+ #include <stdio.h>
+ #include <stdlib.h>
++
++#ifdef _LINUX
++#include <string.h>
++#endif
++
+ #include "system.h"
+ #include "opengl.h"
+ #include "wl_def.h"
+diff -abur a/common/wl_menu.c b/common/wl_menu.c
+--- a/common/wl_menu.c 2000-09-27 16:04:27.000000000 +0200
++++ b/common/wl_menu.c 2003-09-11 20:07:38.892677136 +0200
+@@ -5,6 +5,10 @@
+ //
+ ////////////////////////////////////////////////////////////////////
+
++#ifdef _LINUX
++#include "../linux/input.h"
++#endif
++
+ #include <string.h>
+ #include "opengl.h"
+ #include "wl_def.h"
+diff -abur a/common/wl_menu.h b/common/wl_menu.h
+--- a/common/wl_menu.h 2000-09-26 17:38:31.000000000 +0200
++++ b/common/wl_menu.h 2003-09-11 18:31:41.593919584 +0200
+@@ -233,3 +233,4 @@
+ void NonShareware();
+ /*int GetYorN(int x,int y,int pic);
+ */
+\ No newline at end of file
++
+diff -abur a/common/wl_play.c b/common/wl_play.c
+--- a/common/wl_play.c 2000-09-27 16:04:27.000000000 +0200
++++ b/common/wl_play.c 2003-09-11 19:40:31.293109880 +0200
+@@ -1,6 +1,11 @@
+ // WL_PLAY.C
+
+ #include <memory.h>
++
++#ifdef _LINUX
++#include "../linux/input.h"
++#endif
++
+ #include "wl_def.h"
+ #include "system.h"
+
+diff -abur a/common/wl_state.c b/common/wl_state.c
+--- a/common/wl_state.c 2000-09-27 16:04:27.000000000 +0200
++++ b/common/wl_state.c 2003-09-11 19:23:26.895841936 +0200
+@@ -2,6 +2,10 @@
+
+ #include "wl_def.h"
+
++#ifdef _LINUX
++#include <stdlib.h>
++#endif
++
+ //=============================================================================
+ // GLOBAL VARIABLES
+ //=============================================================================
+diff -abur a/common/wl_text.c b/common/wl_text.c
+--- a/common/wl_text.c 2000-09-26 17:40:23.000000000 +0200
++++ b/common/wl_text.c 2003-09-11 19:19:00.110399488 +0200
+@@ -4,6 +4,10 @@
+ #include "wl_def.h"
+ #include "system.h"
+
++#ifdef _LINUX
++#include <string.h>
++#endif
++
+ #ifndef SPEAR
+
+ void FreeMusic(); // WL_MENU.C
+diff -abur a/linux/sound.c b/linux/sound.c
+--- a/linux/sound.c 2000-09-26 17:57:48.000000000 +0200
++++ b/linux/sound.c 2003-09-11 19:55:16.702507192 +0200
+@@ -9,6 +9,8 @@
+ #include <stdlib.h>
+
+ #include <sys/time.h>
++#include <string.h>
++#include <errno.h>
+
+ #include <fcntl.h>
+ #include <unistd.h>
+diff -abur a/linux/sound.h b/linux/sound.h
+--- a/linux/sound.h 2000-09-26 17:57:48.000000000 +0200
++++ b/linux/sound.h 2003-09-11 19:44:03.663824624 +0200
+@@ -1,5 +1,8 @@
+ void S_LoadSound(int id, void* data, long length);
+ void S_PlaySound(int id, int pan);
++void S_UpdateSound();
++void S_InitSound();
++void S_ShutDownSound();
+
+ extern int DigitalDevice;
+
+diff -abur a/linux/system.c b/linux/system.c
+--- a/linux/system.c 2000-09-26 17:57:48.000000000 +0200
++++ b/linux/system.c 2003-09-11 19:42:14.955350824 +0200
+@@ -1,9 +1,12 @@
+ #include <stdio.h>
++#include <string.h>
++#include <unistd.h>
+ #include <sys/time.h>
+ #include <X11/keysym.h>
+ #include <GL/gl.h>
+ #include <GL/glx.h>
+ #include "wl_def.h"
++#include "sound.h"
+
+ int screen_width, screen_height;
+ Display *dpy;
+@@ -117,7 +120,7 @@
+ visinfo = glXChooseVisual( dpy, scrnum, attrib );
+ if (!visinfo) {
+ printf("Error: couldn't get an RGB, Double-buffered visual\n");
+- exit(1);
++ _exit(1);
+ }
+
+ /* window attributes */
diff --git a/games-fps/wolfgl/files/0.93-gcc4.patch b/games-fps/wolfgl/files/0.93-gcc4.patch
new file mode 100644
index 000000000000..5dcccd76049b
--- /dev/null
+++ b/games-fps/wolfgl/files/0.93-gcc4.patch
@@ -0,0 +1,80 @@
+diff -ur wolfgl-0.93-orig/common/id_ca.c wolfgl-0.93/common/id_ca.c
+--- wolfgl-0.93-orig/common/id_ca.c 2006-01-28 16:59:10.000000000 -0500
++++ wolfgl-0.93/common/id_ca.c 2006-01-28 17:04:26.000000000 -0500
+@@ -252,6 +252,7 @@
+ {
+ unsigned short ch,chhigh,count,offset;
+ unsigned short *copyptr, *inptr, *outptr;
++ unsigned char *uc_inptr;
+
+ length/=2;
+
+@@ -268,13 +269,17 @@
+ if (!count)
+ {
+ // have to insert a word containing the tag byte
+- ch |= *((unsigned char*)inptr)++;
++ uc_inptr = (unsigned char*)inptr;
++ ch |= *(uc_inptr)++;
++ inptr = (unsigned short *)uc_inptr;
+ *outptr++ = ch;
+ length--;
+ }
+ else
+ {
+- offset = *((unsigned char*)inptr)++;
++ uc_inptr = (unsigned char*)inptr;
++ offset = *(uc_inptr)++;
++ inptr = (unsigned short *)uc_inptr;
+ copyptr = outptr - offset;
+ length -= count;
+ while (count--)
+@@ -287,7 +292,9 @@
+ if (!count)
+ {
+ // have to insert a word containing the tag byte
+- ch |= *((unsigned char*)inptr)++;
++ uc_inptr = (unsigned char*)inptr;
++ ch |= *(uc_inptr)++;
++ inptr = (unsigned short *)uc_inptr;
+ *outptr++ = ch;
+ length --;
+ }
+@@ -806,7 +813,7 @@
+
+ for (i=0;i<NUMCHUNKS;i++)
+ if (grsegs[i])
+- MM_SetPurge (&(memptr)grsegs[i],3);
++ MM_SetPurge ((memptr)&grsegs[i],3);
+ ca_levelbit<<=1;
+ ca_levelnum++;
+ }
+@@ -862,7 +869,7 @@
+
+ for (i = 0; i < NUMCHUNKS; i++)
+ if (grsegs[i])
+- MM_SetPurge (&(memptr)grsegs[i],3);
++ MM_SetPurge ((memptr)&grsegs[i],3);
+ }
+
+ //===========================================================================
+diff -ur wolfgl-0.93-orig/common/wl_game.c wolfgl-0.93/common/wl_game.c
+--- wolfgl-0.93-orig/common/wl_game.c 2006-01-28 16:59:10.000000000 -0500
++++ wolfgl-0.93/common/wl_game.c 2006-01-28 17:07:08.000000000 -0500
+@@ -545,13 +545,13 @@
+ {
+ // solid wall
+ tilemap[x][y] = tile;
+- (unsigned short)actorat[x][y] = tile;
++ actorat[x][y] = tile;
+ }
+ else
+ {
+ // area floor
+ tilemap[x][y] = 0;
+- (unsigned short)actorat[x][y] = 0;
++ actorat[x][y] = 0;
+ }
+ }
+
+
diff --git a/games-fps/wolfgl/files/0.93-sample-rate.patch b/games-fps/wolfgl/files/0.93-sample-rate.patch
new file mode 100644
index 000000000000..6e7156a1c716
--- /dev/null
+++ b/games-fps/wolfgl/files/0.93-sample-rate.patch
@@ -0,0 +1,11 @@
+--- a/linux/sound.c 2003-09-11 20:28:32.032170976 +0200
++++ b/linux/sound.c 2003-09-11 20:28:45.111182664 +0200
+@@ -64,7 +64,7 @@
+ #define BUFMUL 4
+ #define MIXBUFFERSIZE (SAMPLECOUNT*BUFMUL)
+
+-#define SAMPLERATE 11025 // Hz
++#define SAMPLERATE 8000 // Hz
+ #define SAMPLESIZE 2 // 16bit
+
+ // The actual output device.
diff --git a/games-fps/wolfgl/files/0.93-sprite.patch b/games-fps/wolfgl/files/0.93-sprite.patch
new file mode 100644
index 000000000000..135eb8e26eed
--- /dev/null
+++ b/games-fps/wolfgl/files/0.93-sprite.patch
@@ -0,0 +1,82 @@
+--- a/common/wl_agent.c 2003-09-11 20:39:02.674298800 +0200
++++ b/common/wl_agent.c 2003-09-11 20:42:17.229721880 +0200
+@@ -919,32 +919,31 @@
+ viewdist = 0x7fffffffl;
+ closest = NULL;
+
+-// while (1)
++ while (1)
+ {
+ oldclosest = closest;
+
+ for (check=ob->next ; check ; check=check->next)
+ if ((check->flags & FL_SHOOTABLE)
+- //&&
++ &&
+ // (check->flags & FL_VISABLE) &&
+-// (abs(check->viewx - centerx) < shootdelta)
++ (abs(check->viewx - centerx) < shootdelta)
+ )
+-// {
++ {
+ if (CheckLine(check))
+-// if (check->transx < viewdist)
++ if (check->transx < viewdist)
+ {
+-// viewdist = check->transx;
++ viewdist = check->transx;
+ closest = check;
+- break;
+ }
+-// }
++ }
+
+ if (closest == oldclosest)
+ return; // no more targets, all missed
+
+ // trace a line from player to enemey
+-// if (CheckLine(closest))
+-// break;
++ if (CheckLine(closest))
++ break;
+ }
+
+ // hit something
+--- a/common/wl_draw.c 2003-09-11 20:43:26.473195272 +0200
++++ b/common/wl_draw.c 2003-09-11 20:46:57.859059736 +0200
+@@ -877,7 +877,7 @@
+ tilespot = &tilemap[0][0]+spotloc;
+
+ // could be in any of the nine surrounding tiles
+- if ((*visspot) ||
++ if (1 || (*visspot) ||
+ (*(visspot-1) && !*(tilespot-1)) ||
+ (*(visspot+1) && !*(tilespot+1)) ||
+ (*(visspot-65) && !*(tilespot-65)) ||
+@@ -980,6 +980,8 @@
+
+ for (obj = player->next; obj; obj = obj->next)
+ {
++ int sprite;
++
+ if (!areabyplayer[obj->areanumber])
+ continue;
+ if (!gamestates[obj->state].shapenum)
+@@ -989,10 +991,14 @@
+ glTranslated((float)obj->x/(1<<16), (float)obj->y/(1<<16), 0);
+ glRotated(-player->angle, 0,0,1);
+
+- if (texture_index[PMSpriteStart+gamestates[obj->state].shapenum] == 0)
+- CreateSprite(PMSpriteStart+gamestates[obj->state].shapenum);
++ sprite = gamestates[obj->state].shapenum;
++ if (gamestates[obj->state].rotate)
++ sprite += CalcRotate(obj);
++
++ if (texture_index[PMSpriteStart+sprite] == 0)
++ CreateSprite(PMSpriteStart+sprite);
+ else
+- glBindTexture(GL_TEXTURE_2D, texture_index[PMSpriteStart+gamestates[obj->state].shapenum]);
++ glBindTexture(GL_TEXTURE_2D, texture_index[PMSpriteStart+sprite]);
+
+ glBegin(GL_QUADS);
+ glTexCoord2f(0,0);
diff --git a/games-fps/wolfgl/files/wolfgl-0.93-as-needed.patch b/games-fps/wolfgl/files/wolfgl-0.93-as-needed.patch
new file mode 100644
index 000000000000..f9da771e1d79
--- /dev/null
+++ b/games-fps/wolfgl/files/wolfgl-0.93-as-needed.patch
@@ -0,0 +1,11 @@
+--- a/linux/Makefile 2009-02-06 14:27:11.000000000 +0100
++++ b/linux/Makefile 2009-02-06 14:27:40.000000000 +0100
+@@ -19,7 +19,7 @@
+ @echo 'Do not call this file directly'
+
+ wolfgl: $(LINUX_OBJS) $(COMMON_OBJS)
+- $(CC) $(LINK_FLAGS) $(COMMON_OBJS) $(LINUX_OBJS) -o $(OUTDIR)/wolfgl
++ $(CC) $(LDFLAGS) $(COMMON_OBJS) $(LINUX_OBJS) $(LINK_FLAGS) -o $(OUTDIR)/wolfgl
+
+ # common directory
+
diff --git a/games-fps/wolfgl/metadata.xml b/games-fps/wolfgl/metadata.xml
new file mode 100644
index 000000000000..92093a34cff1
--- /dev/null
+++ b/games-fps/wolfgl/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="person">
+ <email>chainsaw@gentoo.org</email>
+ <name>Tony Vroon</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">wolfgl</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-fps/wolfgl/wolfgl-0.93-r1.ebuild b/games-fps/wolfgl/wolfgl-0.93-r1.ebuild
new file mode 100644
index 000000000000..abda49629276
--- /dev/null
+++ b/games-fps/wolfgl/wolfgl-0.93-r1.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=2
+#ECVS_SERVER="wolfgl.cvs.sourceforge.net:/cvsroot/wolfgl"
+#ECVS_MODULE="wolfgl"
+#inherit cvs
+inherit eutils games
+
+DESCRIPTION="Wolfenstein and Spear of Destiny port using OpenGL"
+HOMEPAGE="http://wolfgl.sourceforge.net/"
+SRC_URI="mirror://gentoo/${P}.tbz2
+ mirror://sourceforge/wolfgl/wolfdata.zip
+ mirror://sourceforge/wolfgl/sdmdata.zip"
+# mirror://sourceforge/wolfgl/wolfglx-wl6-${PV}.zip
+# mirror://sourceforge/wolfgl/wolfglx-sod-${PV}.zip
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86"
+IUSE=""
+
+RDEPEND="virtual/opengl"
+DEPEND="${RDEPEND}
+ x11-proto/xproto
+ app-arch/unzip"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PV}-gcc.patch \
+ "${FILESDIR}"/${PV}-sample-rate.patch \
+ "${FILESDIR}"/${PV}-sprite.patch \
+ "${FILESDIR}"/${P}-as-needed.patch \
+ "${FILESDIR}"/${PV}-gcc4.patch
+}
+
+src_compile() {
+ emake -j1 CFLAGS="${CFLAGS}" DATADIR="${GAMES_DATADIR}"/${PN} \
+ || die "emake failed"
+}
+
+src_install() {
+ newgamesbin linux/SDM/wolfgl wolfgl-sdm || die
+ newgamesbin linux/SOD/wolfgl wolfgl-sod || die
+ newgamesbin linux/WL1/wolfgl wolfgl-wl1 || die
+ newgamesbin linux/WL6/wolfgl wolfgl-wl6 || die
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins "${WORKDIR}"/*.{sdm,wl1} || die
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ elog "This installed the shareware data files for"
+ elog "Wolfenstein 3D and Spear Of Destiny."
+ elog "If you wish to play the full versions just"
+ elog "copy the data files to ${GAMES_DATADIR}/${PN}/"
+}
diff --git a/games-fps/wolfgl/wolfgl-0.93-r2.ebuild b/games-fps/wolfgl/wolfgl-0.93-r2.ebuild
new file mode 100644
index 000000000000..2fb858261675
--- /dev/null
+++ b/games-fps/wolfgl/wolfgl-0.93-r2.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+#ECVS_SERVER="wolfgl.cvs.sourceforge.net:/cvsroot/wolfgl"
+#ECVS_MODULE="wolfgl"
+#inherit cvs
+
+inherit eutils
+
+DESCRIPTION="Wolfenstein and Spear of Destiny port using OpenGL"
+HOMEPAGE="http://wolfgl.sourceforge.net/"
+SRC_URI="mirror://gentoo/${P}.tbz2
+ mirror://sourceforge/wolfgl/wolfdata.zip
+ mirror://sourceforge/wolfgl/sdmdata.zip"
+# mirror://sourceforge/wolfgl/wolfglx-wl6-${PV}.zip
+# mirror://sourceforge/wolfgl/wolfglx-sod-${PV}.zip
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+
+RDEPEND="virtual/opengl"
+DEPEND="${RDEPEND}
+ app-arch/unzip
+ x11-proto/xproto"
+
+PATCHES=(
+ "${FILESDIR}"/${PV}-gcc.patch
+ "${FILESDIR}"/${PV}-sample-rate.patch
+ "${FILESDIR}"/${PV}-sprite.patch
+ "${FILESDIR}"/${P}-as-needed.patch
+ "${FILESDIR}"/${PV}-gcc4.patch
+)
+
+src_compile() {
+ emake -j1 CFLAGS="${CFLAGS}" DATADIR="/usr/share/${PN}" || die "emake failed"
+}
+
+src_install() {
+ newbin linux/SDM/wolfgl wolfgl-sdm
+ newbin linux/SOD/wolfgl wolfgl-sod
+ newbin linux/WL1/wolfgl wolfgl-wl1
+ newbin linux/WL6/wolfgl wolfgl-wl6
+
+ insinto /usr/share/${PN}
+ doins "${WORKDIR}"/*.{sdm,wl1}
+}
+
+pkg_postinst() {
+ elog "This installed the shareware data files for"
+ elog "Wolfenstein 3D and Spear Of Destiny."
+ elog "If you wish to play the full versions just"
+ elog "copy the data files to /usr/share/${PN}/"
+}
diff --git a/games-fps/worldofpadman/Manifest b/games-fps/worldofpadman/Manifest
new file mode 100644
index 000000000000..fef593eff836
--- /dev/null
+++ b/games-fps/worldofpadman/Manifest
@@ -0,0 +1,7 @@
+AUX worldofpadman-1.6-gentoo.patch 2102 SHA256 4755298fa34f296d6fdc9334d875b582463ca4e5ae74c65c69e2bbdfb07a463f SHA512 d124b17972f0837c0ded524c0077bf2c58cf5d6d6254c69069d07e3616096ed7bf9e67ea9e6e658c1e706df28403375693858131eb09e30877d1132bec48efd7 WHIRLPOOL 706419680cce86ade743d9f96095bf7525a2e286de87c741d7135eeeec3d4240ab8c2b8cc6ab6ba9435813bf1c0e1d83dab8912c1081ad6adbc0e1328beae796
+DIST wop-1.5-unified.zip 947290087 SHA256 82af4a8b93cac1a6fa8deb2607e9b0a15255f8386b0c8cb21d6e532ac6c601f5 SHA512 fea0207efadf15afab7001227e27126aef4a673bd478dccb513c3011d0811074b2788083862f07e2f02f1a80ccb57a45ff64de8de155d8f8f7f1ab53ecf2402b WHIRLPOOL 9e39698f19f987fcae0957bd4bac53742fb6d88aa81e87750238871987f14c9202ab38918d30d0f4a420427cf719398182d4af74330f9bbd731530c54285f83b
+DIST wop-1.5.x-to-1.6-patch-unified.zip 122204892 SHA256 fe120218823825d742c506b2f448e15bf6ca756b99bc1d11d12749191e12c4c7 SHA512 a45018bd79e9e23c57bcaf692fa14c323671103558caad6acb794c2990cc5fe9cc8bdbe6a6c8254c4560d81eb59f5e3b9a6800a61b21a15870c4439f7179d936 WHIRLPOOL 61ff77e5168ec609f3fb498b7dffdf9138a14f6ea63e5537ffb583e17edb67cbab4c56d788bcfc994a2f3a11c517c10fa90c12cc0fc80571bd2702ce896597cc
+EBUILD worldofpadman-1.6.ebuild 2128 SHA256 3eb25f284236e996f94e5c7f945d5069cd9397eb67efc0dee57e9f7772ba35c9 SHA512 28e7bb1bae039a122a62b276e3a41d721847970062dd3032cef1cbb9cdaf668c3773b19dc4bf01c1e9da7054fb674997ae9ca51a65e10d5f7340aefcd747f7e9 WHIRLPOOL 8a86816c55841d05d0f77999cf03797fe72f47bc2322f3e4210cb762c8e976f7760dd5e41b1841f55b9af16968699c39fccf3abff5e4f67e8444821261ae91d9
+MISC ChangeLog 2641 SHA256 14d10f44bc4f32712a17b3992586903eaa484748512069c020b49755f63c6f38 SHA512 a8be34f769ba64d43185f4bbc5807deb76f1226eac27ca31af2798057b115637d7b090e576dbcc4ccb2f5f7f6dd71c052e26775edac10d2c5af48866e5f7c57a WHIRLPOOL 3cf4643dba2ba7bac2d66a6335eaaf73e1ea263d401fb60ec134e30af668b4551bc29a929f8148d81c0b9bf63071495c0ec553d3d9edec6613037e447e73e363
+MISC ChangeLog-2015 2605 SHA256 7b365d1d59978e58508004f918691adcd003f320f8ce017d998309c715ce87be SHA512 eb04008ade9a747bc75fe50a0ddd75f9c038e52378844ed5c3b0639cc2edd13afcb3de584baca5c26a66dbd4dfbb396a55c5d44db544e4261667f6bfa8a08683 WHIRLPOOL e3318a42b2163be4ea8cf6c0ac94d6e3ecc9a34897c69c58565450cf88fcb37ba7a3b1a40a393c2ccdf527d4fafc9391c7679bad0e7e710207854c0172ac546b
+MISC metadata.xml 421 SHA256 f1c33ba119cc06b5d003f569ca808bf8fa76a61f662ab2e7e504ce56d8b83e0b SHA512 2716235255bd6e00d84c6f11f784850959fd50a6542fd98d9c7815d0c7a6f5a201807b02f1cd7d1ace59f1f19f40cb97aa01b9d649bb198678ac60f84d81eb1e WHIRLPOOL 15ae8e5d0efbfc3a57b70b849543d905b3cf6d0165b70496ae560efa547ae1521cc61a024fa1e87d8dfcc6c72b5ef266455604c0edf2d90e2d8933cca5f67e62
diff --git a/games-fps/worldofpadman/files/worldofpadman-1.6-gentoo.patch b/games-fps/worldofpadman/files/worldofpadman-1.6-gentoo.patch
new file mode 100644
index 000000000000..04804563646d
--- /dev/null
+++ b/games-fps/worldofpadman/files/worldofpadman-1.6-gentoo.patch
@@ -0,0 +1,92 @@
+--- Makefile.old 2012-04-26 21:40:25.277417417 +0200
++++ Makefile 2012-04-26 21:43:34.300835150 +0200
+@@ -344,11 +344,11 @@
+ endif
+
+ ifeq ($(USE_CIN_THEORA),1)
+- CLIENT_LDFLAGS += -ltheora
++ CLIENT_LIBS += -ltheora
+ endif
+
+ ifeq ($(USE_CODEC_MP3),1)
+- CLIENT_LDFLAGS += -lmad
++ CLIENT_LIBS += -lmad
+ endif
+
+ ifeq ($(USE_CURL),1)
+@@ -380,12 +380,12 @@
+
+ ifeq ($(USE_CIN_THEORA),1)
+ BASE_CFLAGS += -DUSE_CIN_THEORA
+- CLIENT_LDFLAGS += -ltheora
++ CLIENT_LIBS += -ltheora
+ endif
+
+ ifeq ($(USE_CODEC_MP3),1)
+ BASE_CFLAGS += -DUSE_CODEC_MP3
+- CLIENT_LDFLAGS += -lmad
++ CLIENT_LIBS += -lmad
+ endif
+ else # ifeq Linux
+
+@@ -435,12 +435,12 @@
+
+ ifeq ($(USE_CIN_THEORA),1)
+ BASE_CFLAGS += -DUSE_CIN_THEORA
+- CLIENT_LDFLAGS += -ltheora
++ CLIENT_LIBS += -ltheora
+ endif
+
+ ifeq ($(USE_CODEC_MP3),1)
+ BASE_CFLAGS += -DUSE_CODEC_MP3
+- CLIENT_LDFLAGS += -lmad
++ CLIENT_LIBS += -lmad
+ endif
+
+ BASE_CFLAGS += -D_THREAD_SAFE=1
+@@ -565,7 +565,7 @@
+ endif
+
+ ifeq ($(USE_CODEC_MP3),1)
+- CLIENT_LDFLAGS += -lmad
++ CLIENT_LIBS += -lmad
+ endif
+
+ ifeq ($(ARCH),x86)
+@@ -662,11 +662,11 @@
+ endif
+
+ ifeq ($(USE_CIN_THEORA),1)
+- CLIENT_LDFLAGS += -ltheora
++ CLIENT_LIBS += -ltheora
+ endif
+
+ ifeq ($(USE_CODEC_MP3),1)
+- CLIENT_LDFLAGS += -lmad
++ CLIENT_LIBS += -lmad
+ endif
+
+ # cross-compiling tweaks
+@@ -732,11 +732,11 @@
+ endif
+
+ ifeq ($(USE_CIN_THEORA),1)
+- CLIENT_LDFLAGS += -ltheora
++ CLIENT_LIBS += -ltheora
+ endif
+
+ ifeq ($(USE_CODEC_MP3),1)
+- CLIENT_LDFLAGS += -lmad
++ CLIENT_LIBS += -lmad
+ endif
+
+ ifeq ($(USE_CURL),1)
+@@ -1780,7 +1780,7 @@
+
+ $(B)/wop-smp$(FULLBINEXT): $(Q3OBJ) $(Q3ROBJ) $(Q3POBJ_SMP) $(LIBSDLMAIN)
+ $(echo_cmd) "LD $@"
+- $(Q)$(CC) $(CLIENT_CFLAGS) $(CFLAGS) $(CLIENT_LDFLAGS) $(LDFLAGS) $(THREAD_LDFLAGS) \
++ $(Q)$(CC) $(CLIENT_CFLAGS) $(CFLAGS) $(CLIENT_LDFLAGS) $(LDFLAGS) $(THREAD_LDFLAGS) \
+ -o $@ $(Q3OBJ) $(Q3ROBJ) $(Q3POBJ_SMP) \
+ $(THREAD_LIBS) $(LIBSDLMAIN) $(CLIENT_LIBS) $(RENDERER_LIBS) $(LIBS)
+ endif
diff --git a/games-fps/worldofpadman/metadata.xml b/games-fps/worldofpadman/metadata.xml
new file mode 100644
index 000000000000..3450a58db130
--- /dev/null
+++ b/games-fps/worldofpadman/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>
+ <use>
+ <flag name="maps">Install extra maps (PadPack)</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">worldofpadman</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-fps/worldofpadman/worldofpadman-1.6.ebuild b/games-fps/worldofpadman/worldofpadman-1.6.ebuild
new file mode 100644
index 000000000000..fb2f804a8cf6
--- /dev/null
+++ b/games-fps/worldofpadman/worldofpadman-1.6.ebuild
@@ -0,0 +1,99 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="A cartoon style multiplayer first-person shooter"
+HOMEPAGE="http://worldofpadman.net/"
+SRC_URI="mirror://sourceforge/${PN}/wop-1.5-unified.zip
+ mirror://sourceforge/${PN}/wop-1.5.x-to-1.6-patch-unified.zip"
+
+LICENSE="GPL-2 worldofpadman"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="+curl dedicated maps +openal +theora +vorbis"
+
+RDEPEND="sys-libs/zlib
+ !dedicated? (
+ || (
+ (
+ >=media-libs/speex-1.2.0
+ media-libs/speexdsp
+ )
+ <media-libs/speex-1.2.0
+ )
+ virtual/jpeg:0
+ media-libs/libsdl[opengl,video,X]
+ virtual/opengl
+ virtual/glu
+ openal? ( media-libs/openal )
+ curl? ( net-misc/curl )
+ vorbis? ( media-libs/libvorbis )
+ theora? (
+ media-libs/libtheora
+ media-libs/libogg
+ )
+ )"
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+S=${WORKDIR}/${P}_svn2178-src
+
+src_unpack() {
+ unpack ${A}
+ unzip XTRAS/"editing files"/${P}-src.zip
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-gentoo.patch
+ sed -i \
+ -e 's:JPEG_LIB_VERSION < 80:JPEG_LIB_VERSION < 62:' \
+ code/renderer/tr_image_jpg.c || die #479652
+}
+
+src_compile() {
+ local arch
+
+ if use amd64 ; then
+ arch=x86_64
+ elif use x86 ; then
+ arch=i386
+ fi
+
+ emake \
+ V=1 \
+ ARCH=${arch} \
+ BUILD_CLIENT=$(use dedicated && echo 0) \
+ DEFAULT_BASEDIR="${GAMES_DATADIR}"/${PN} \
+ OPTIMIZE= \
+ USE_CURL=$(usex curl 1 0) \
+ USE_CURL_DLOPEN=0 \
+ USE_OPENAL=$(usex openal 1 0) \
+ USE_OPENAL_DLOPEN=0 \
+ USE_CODEC_VORBIS=$(usex vorbis 1 0) \
+ USE_CIN_THEORA=$(usex theora 1 0) \
+ USE_RENDERER_DLOPEN=0 \
+ USE_INTERNAL_ZLIB=0 \
+ USE_INTERNAL_JPEG=0 \
+ USE_INTERNAL_SPEEX=0
+}
+
+src_install() {
+ newgamesbin build/release-*/wopded.* ${PN}-ded
+ if ! use dedicated ; then
+ newgamesbin build/release-*/wop.* ${PN}
+ newicon misc/quake3.png ${PN}.png
+ make_desktop_entry ${PN} "World of Padman"
+ fi
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r ../wop
+
+ dodoc id-readme.txt \
+ IOQ3-README \
+ voip-readme.txt \
+ ../XTRAS/changelog.txt \
+ ../XTRAS/sounds_readme.txt
+ dohtml -r ../XTRAS/readme{,.html}
+ prepgamesdirs
+}
diff --git a/games-fps/xonotic/Manifest b/games-fps/xonotic/Manifest
new file mode 100644
index 000000000000..bf3a4c9780e5
--- /dev/null
+++ b/games-fps/xonotic/Manifest
@@ -0,0 +1,7 @@
+DIST xonotic-0.8.1.zip 984854761 SHA256 be8bcc41e2993a2f26d4d04c65a7eab810443bd98b11b45e482ffdbbf284c46f SHA512 adfce546257bdc7cfebe94f53eaa9cc9b19eaa546c6405e31ed6af080e3948732c960a024126202e5853cb98b955daadeeb5a96c602a6d4d83e284d3540214a4 WHIRLPOOL 4359263c98352a8b5d169147d9bfecb4258628f212d9a965f0d1577d0a8b2469648ae1ce21d8dc0ff622d20e126ea52e1464363f69fcf514991aefad71c1bee7
+DIST xonotic-0.8.2.zip 991045679 SHA256 a22f7230f486c5825b55cfdadd73399c9b0fae98c9e081dd8ac76eca08359ad5 SHA512 0787fcf326827ae0292e5917c7ff2c7fd79947209d4b62e7f83b8b828bec15b575da304e0631f9f163c9b0bd93bed13616e142398ff08cbdaaea890a939dfca5 WHIRLPOOL aff99ae1e995265c832747923afb5ee1048719d4410cc6b55ec773e51dc0920acffe627541209b5450f572e78ef7c74c8822ae2f6ebec2a8888f80dbfd34afba
+EBUILD xonotic-0.8.1.ebuild 2611 SHA256 05a75b914ed994c68de1bea496c260f98389834878f1ac44978bd365a31dc4e4 SHA512 01b8a6629b97a1d503e3d964efb258e486b83ba6681f34f10b866dc4f4676a862fa86847f5b9d760c72e33730a23c8c87b2a51ee37688b0bac56604ab809d4b4 WHIRLPOOL f1b051b33fa25eb0af2054c490c71683cc619d148509fbe76ea2e298327c73f0fac2debdff8d8e1ee595406550a8ac6365b691a3ff8a3904dfbfdd0870b3e406
+EBUILD xonotic-0.8.2.ebuild 2517 SHA256 d0b0cb88087a76af7f6831828c2fd78edcc4d9543613c382e53a1cbc718999b2 SHA512 c4a5d77d19c1570e4c6dd84100f2a2878ce09d7a747a5ec0741c3098c1b05307db94e92d918824a2f1a7cd4bceae6250e71020d672b7b1b79894459eaf2a57af WHIRLPOOL 6d3755844de6a612663b5427d501fe72ea1a2151b376e4cc2fff12909ebe9631c960a0f86bd6f1be5c8699c02c350c06261ab69060ed213b1236a2c85631a57c
+MISC ChangeLog 3559 SHA256 a3f6bf6a67cd14bd44a8f6630d6274753688ae179ad0065a229da5c914b39501 SHA512 823c9fb0f94061069fe930af6467f34096abd20ead67f1ad84e99704e7f0a0ae431bcae8b2f1d1d603cb059e57207dda5e5d49693309fd46e08ee995e9a0764f WHIRLPOOL b892e178e7a32443a4eae79b010ff0bfc34023954b6012a50cc1344d67a1fd098b1e6f683237bdbb295457af1b6b9e6d14b35476bf7e382f70a53ccd0582263d
+MISC ChangeLog-2015 2859 SHA256 7497734bdb9dc8a74a42a005519657592a6ee497cf772d170cd2b477d33a9260 SHA512 a704340d1c547a0c6d1cd4f06a571cc61c1f8359b657a7209af15b5f167bc430e7813ddc22e93b738051d912def1ba7a916e14adbf8b2dbab2139a285537c86e WHIRLPOOL 59f317633034918ea46fc1a91b2758c6c6e143d2f6eed88350d65a84642ff22e1e85edc2661061a7b75e84a27a80698788219fe75cdc0fe7672d2eb57efced71
+MISC metadata.xml 351 SHA256 65d84ec2cd5bb4eea4eb642c759fc0f2042a900f5f3a1b80718e47e0d19cf606 SHA512 14665ca256c368cbf80a08aaff18c005a25a4197eae82b559e934fbe6a3b17ef6f1fbd323621e38af5725f3e61ff750c72bb8fe650fb76eeed818070d411e3f6 WHIRLPOOL 49c363a9e3d0c97d8f30616c133ee04f28827e5101cabac3c1f2e92a94b846cd0080c02db20d542ee7196972f1c5c2ecd5b08286266aa7ec96c9585b90fb145a
diff --git a/games-fps/xonotic/metadata.xml b/games-fps/xonotic/metadata.xml
new file mode 100644
index 000000000000..2b46931205d2
--- /dev/null
+++ b/games-fps/xonotic/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>
+<use>
+ <flag name="ode">Enable support for physics engine from <pkg>dev-games/ode</pkg></flag>
+</use>
+</pkgmetadata>
diff --git a/games-fps/xonotic/xonotic-0.8.1.ebuild b/games-fps/xonotic/xonotic-0.8.1.ebuild
new file mode 100644
index 000000000000..cddaab04527e
--- /dev/null
+++ b/games-fps/xonotic/xonotic-0.8.1.ebuild
@@ -0,0 +1,117 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils check-reqs toolchain-funcs games
+
+# Switch to ^ when we switch to EAPI=6.
+MY_PN="X${PN:1}"
+DESCRIPTION="Fork of Nexuiz, Deathmatch FPS based on DarkPlaces, an advanced Quake 1 engine"
+HOMEPAGE="http://www.xonotic.org/"
+SRC_URI="http://dl.xonotic.org/${P}.zip"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="alsa debug dedicated doc ode sdl"
+
+UIRDEPEND="
+ media-libs/libogg
+ media-libs/libtheora
+ media-libs/libvorbis
+ media-libs/libmodplug
+ x11-libs/libX11
+ x11-libs/libXau
+ x11-libs/libXpm
+ x11-libs/libXext
+ x11-libs/libXdmcp
+ x11-libs/libXxf86dga
+ x11-libs/libXxf86vm
+ virtual/opengl
+ media-libs/freetype:2
+ alsa? ( media-libs/alsa-lib )
+ ode? ( dev-games/ode[double-precision] )
+ sdl? ( media-libs/libsdl[X,sound,joystick,opengl,video,alsa?] )"
+UIDEPEND="
+ x11-proto/xextproto
+ x11-proto/xf86dgaproto
+ x11-proto/xf86vidmodeproto
+ x11-proto/xproto"
+RDEPEND="
+ sys-libs/zlib
+ virtual/jpeg:0
+ media-libs/libpng:0
+ net-misc/curl
+ ~dev-libs/d0_blind_id-0.5
+ !dedicated? ( ${UIRDEPEND} )"
+DEPEND="${RDEPEND}
+ !dedicated? ( ${UIDEPEND} )"
+
+CHECKREQS_DISK_BUILD="1200M"
+CHECKREQS_DISK_USR="950M"
+
+S=${WORKDIR}/${MY_PN}
+
+pkg_pretend() {
+ check-reqs_pkg_pretend
+}
+
+pkg_setup() {
+ check-reqs_pkg_setup
+ games_pkg_setup
+}
+
+src_prepare() {
+ sed -i \
+ -e "/^EXE_/s:darkplaces:${PN}:" \
+ -e "s:-O3:${CFLAGS}:" \
+ -e "/-lm/s:$: ${LDFLAGS}:" \
+ -e '/^STRIP/s/strip/true/' \
+ source/darkplaces/makefile.inc || die
+
+ if ! use alsa; then
+ sed -i \
+ -e "/DEFAULT_SNDAPI/s:ALSA:OSS:" \
+ source/darkplaces/makefile || die
+ fi
+}
+
+src_compile() {
+ local t="$(use debug && echo debug || echo release)"
+ local i
+
+ tc-export CC CXX LD AR RANLIB
+
+ # use a for-loop wrt bug 473352
+ for i in sv-${t} $(use !dedicated && echo "cl-${t} $(use sdl && echo sdl-${t})") ; do
+ emake \
+ -C source/darkplaces \
+ DP_LINK_ODE=$(usex ode shared no) \
+ DP_FS_BASEDIR="${GAMES_DATADIR}/${PN}" \
+ ${i}
+ done
+}
+
+src_install() {
+ if ! use dedicated; then
+ dogamesbin source/darkplaces/${PN}-glx
+ newicon misc/logos/${PN}_icon.svg ${PN}.svg
+ make_desktop_entry ${PN}-glx "${MY_PN} (GLX)"
+
+ if use sdl; then
+ dogamesbin source/darkplaces/${PN}-sdl
+ make_desktop_entry ${PN}-sdl "${MY_PN} (SDL)"
+ fi
+ fi
+ dogamesbin source/darkplaces/${PN}-dedicated
+
+ dodoc Docs/*.txt
+ use doc && dohtml -r Docs
+
+ insinto "${GAMES_DATADIR}/${PN}"
+ doins -r key_0.d0pk server data
+ prepgamesdirs
+
+ elog "If you are using opensource drivers you should consider installing: "
+ elog " media-libs/libtxc_dxtn"
+}
diff --git a/games-fps/xonotic/xonotic-0.8.2.ebuild b/games-fps/xonotic/xonotic-0.8.2.ebuild
new file mode 100644
index 000000000000..5041c1379a73
--- /dev/null
+++ b/games-fps/xonotic/xonotic-0.8.2.ebuild
@@ -0,0 +1,118 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils check-reqs toolchain-funcs
+
+MY_PN="${PN^}"
+DESCRIPTION="Fork of Nexuiz, Deathmatch FPS based on DarkPlaces, an advanced Quake 1 engine"
+HOMEPAGE="http://www.xonotic.org/"
+SRC_URI="http://dl.xonotic.org/${P}.zip"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="alsa debug dedicated doc ode sdl"
+
+UIRDEPEND="
+ media-libs/libogg
+ media-libs/libtheora
+ media-libs/libvorbis
+ media-libs/libmodplug
+ x11-libs/libX11
+ x11-libs/libXau
+ x11-libs/libXpm
+ x11-libs/libXext
+ x11-libs/libXdmcp
+ x11-libs/libXxf86dga
+ x11-libs/libXxf86vm
+ virtual/opengl
+ media-libs/freetype:2
+ alsa? ( media-libs/alsa-lib )
+ ode? ( dev-games/ode[double-precision] )
+ sdl? ( media-libs/libsdl2[X,sound,joystick,opengl,video,alsa?] )"
+UIDEPEND="
+ x11-proto/xextproto
+ x11-proto/xf86dgaproto
+ x11-proto/xf86vidmodeproto
+ x11-proto/xproto"
+RDEPEND="
+ sys-libs/zlib
+ virtual/jpeg:0
+ media-libs/libpng:0
+ net-misc/curl
+ ~dev-libs/d0_blind_id-1.0
+ !dedicated? ( ${UIRDEPEND} )"
+DEPEND="${RDEPEND}
+ !dedicated? ( ${UIDEPEND} )"
+
+CHECKREQS_DISK_BUILD="1200M"
+CHECKREQS_DISK_USR="950M"
+
+S="${WORKDIR}/${MY_PN}"
+
+pkg_pretend() {
+ check-reqs_pkg_pretend
+}
+
+pkg_setup() {
+ check-reqs_pkg_setup
+}
+
+src_prepare() {
+ default
+
+ sed -i \
+ -e "/^EXE_/s:darkplaces:${PN}:" \
+ -e "s:-O3:${CFLAGS}:" \
+ -e "/-lm/s:$: ${LDFLAGS}:" \
+ -e '/^STRIP/s/strip/true/' \
+ source/darkplaces/makefile.inc || die
+
+ if ! use alsa; then
+ sed -i \
+ -e "/DEFAULT_SNDAPI/s:ALSA:OSS:" \
+ source/darkplaces/makefile || die
+ fi
+}
+
+src_compile() {
+ local t="$(usex debug debug release)"
+ local i
+
+ tc-export CC CXX LD AR RANLIB
+
+ # use a for-loop wrt bug 473352
+ for i in sv-${t} $(usex !dedicated "cl-${t} $(usex sdl "sdl-${t}" "")" "") ; do
+ emake \
+ -C source/darkplaces \
+ DP_LINK_ODE=$(usex ode shared no) \
+ DP_FS_BASEDIR="/usr/share/${PN}" \
+ ${i}
+ done
+}
+
+src_install() {
+ if ! use dedicated; then
+ dobin source/darkplaces/${PN}-glx
+ newicon misc/logos/${PN}_icon.svg ${PN}.svg
+ make_desktop_entry ${PN}-glx "${MY_PN} (GLX)"
+
+ if use sdl; then
+ dobin source/darkplaces/${PN}-sdl
+ make_desktop_entry ${PN}-sdl "${MY_PN} (SDL)"
+ fi
+ fi
+ dobin source/darkplaces/${PN}-dedicated
+
+ dodoc Docs/*.txt
+ use doc && dohtml -r Docs
+
+ insinto "/usr/share/${PN}"
+ doins -r key_0.d0pk server data
+}
+
+pkg_postinst() {
+ elog "If you are using opensource drivers you should consider installing: "
+ elog " media-libs/libtxc_dxtn"
+}