summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzamat H. Hackimov <azamat.hackimov@gmail.com>2020-03-05 23:29:00 +0300
committerAzamat H. Hackimov <azamat.hackimov@gmail.com>2020-03-05 23:29:00 +0300
commit6830a06d820b510d79badc8a8660c2e543466c59 (patch)
tree02c309e8a4f024aec5650995decc8098b9171ddf
parentgames-action/voxatron: fixes to package (diff)
downloadgamerlay-6830a06d820b510d79badc8a8660c2e543466c59.tar.gz
gamerlay-6830a06d820b510d79badc8a8660c2e543466c59.tar.bz2
gamerlay-6830a06d820b510d79badc8a8660c2e543466c59.zip
games-action/d2x-xl: remove package
Ubuildable and broken, uses deprecated eclass. Signed-off-by: Azamat H. Hackimov <azamat.hackimov@gmail.com>
-rw-r--r--games-action/d2x-xl/Manifest25
-rw-r--r--games-action/d2x-xl/d2x-xl-1.16.15.ebuild149
-rw-r--r--games-action/d2x-xl/d2x-xl-1.16.27.ebuild149
3 files changed, 0 insertions, 323 deletions
diff --git a/games-action/d2x-xl/Manifest b/games-action/d2x-xl/Manifest
deleted file mode 100644
index 26357f0..0000000
--- a/games-action/d2x-xl/Manifest
+++ /dev/null
@@ -1,25 +0,0 @@
-DIST D1-hires-ceilings.7z 1706313 SHA256 cae9d71c2bdd2b8a9a8617bf21c8e9179e617ed93183655a5da8c7c2688cee56 SHA512 7c3bbdc27a47ab1f8f0abc9f6924df9c37acf99b59d431c848e2d30f567c6cf4461a5854624c9e00a6cae81e5aeddbb675cfd00fec91185baff4e1692cb9c289 WHIRLPOOL e2c47dc7d9f27ce9a2facf8e47d542562b002c879291174ebd9a1e2444f07a879bf51d1bd4e252b54386e6f32ecf977154a2e7277b40f01b6b841ae17440bfe8
-DIST D1-hires-doors.7z 8794603 SHA256 e2272d26c40aa92283811d63c226c6d93583e8ee4e2462454ecc478b6551d7d9 SHA512 e52eab771033335919405d7ab3f9fb623dcbb568f68dd1b2197c2888a24687f67035a94ea49020e9915fb33c8517a1f432034161e54e9c78c58fe3b86ae9f618 WHIRLPOOL f2d85046bae9de391e6d8be7426854bfcbea86b6c6c2d4cefd1563a2f72cfc7d3d70e8532be93d5cee7767413e9032a53faec67e14ad591c1f7ed1ffb05ad76e
-DIST D1-hires-fans-grates.7z 1077324 SHA256 f6f240e95c715fe50f4c06df4fad8bb53084b947ae1b526a48cb0799123ac034 SHA512 953d26bcfd8afedc70b60c33e8e02ecf806d2dc517caf704aac1c34701342a5827d6484bab7668d3d7b4b098650184a8f214ecb091ae6e5c872b7fc7b73ad3b6 WHIRLPOOL 48a6c3e2a68aac3abfc1430c07a524e850d10fa112322f85ad3d651f9429c71892521dc4dd572eee8d5425bb980c2fd2881cc3545f461ee7832d7d11f765d6b7
-DIST D1-hires-lava.7z 1722928 SHA256 423604f6ad6c723d8835eab4bc866d6a49cd8d29aed66437e126268959781fc7 SHA512 50e213f195bb3f641cc1b78b89d37a690681169daa8a267071cfe0910c57cc5d5e532690c3e4581c410f92a7f0cda34ffc25cfd33e62025affd0233e06149725 WHIRLPOOL e88be9f1e83df55c735577bcb663513f44c82004dfbc938b4ce9bd2a0a5ac2634d5c9c3c4eb5c2c481fb4f170044a0b3eaea08b9cd3d56f993e8f8716dd1b1d6
-DIST D1-hires-lights.7z 330662 SHA256 4de6098ef1aed809777176766f3cf3c84c77d910d797a2865e71e77940e8e604 SHA512 cca79d7d102f2e777ea7998b1c96bb0ecc9f1a5c1bfe325b41d5c972edb463ae5f690074f20e74395019eafa148e22c8a246f70853d25947df4e525e3df62a8d WHIRLPOOL 85f975a186be0e6a24653063b85aeb3a254d92a2d9f5fb8da99603261ade93e35c338f5068c5a980441bc193741bcd1009e80d639bf066441d9e5111eb0adc0b
-DIST D1-hires-metal.7z 10851978 SHA256 7e9105d26effd200cefe2a9c175eb0bad32305690a4089d4b0f1e8bfeaba308a SHA512 10a587fd04fd86968425ba53d0daf8b506381f7080518a5b22771b12ca3147466a24b2d90c94076d1a3b4c43e9ae446721b5f5d67bc81ce48d72dd5e0edcb2e5 WHIRLPOOL a3eb25d47c65ba984623bc4915d73e765520bc16ac8ff6508b8b07265e3fcf3fd25c0875a438a93d296a2ee87accfd7f38757663a45bf276c86f48fea4bcea3f
-DIST D1-hires-rock.7z 74927262 SHA256 9cfebebdd10949e07e9c845cd4e50bdacccf5e7b01c38924c89b2761c61c8756 SHA512 82634d76705ed8e034e48c0db4a37e93bf7a1579b975b01eeaac25d2b83497f6461840929985935aae8bbad736f5a300f536e39e8770678118868320b103e841 WHIRLPOOL f924a7cd7b37e008e09750cd3ce172d4853bea74b04e08b7213ead3856f4b52f2905238e34589ce99b50aad3e58b1f83e62f551b86a9d9d3b4511a264ea063b3
-DIST D1-hires-signs.7z 756041 SHA256 e53c05766c1ec8fbe13394da144a496771435995ed7cd7d891b1637bb6d54f12 SHA512 64228fec9be6e29f8ebab3b4de3cd12a270c7e3cf98c500d4a45258a79c4751da103815512772e09a830f35fb1bd6d22c9f617cd12c1bdae8c4f703609a84240 WHIRLPOOL 9dd935c8bec8ebd985fd72bbcd74ecc6d9901dfed7495e026d6cb62b03d6c3040bbb296d755002c6b0ba40beb99b6d4ab3e1109abf1b6c9d84d02383fbf4eaa0
-DIST D1-hires-special.7z 2997863 SHA256 ccbd9e473a6a8c0b25140a0bf7e7992e6d05f0fee1b81213f9e48f1418b3cc4e SHA512 35e75b503190ef3dcc1bb5120f24bd64b6aeed437cb1ee75b4ac08fe977a2af3cf8404bcf72f54ec662dfd7f2b8503d681f94fe6e1c8f30d9260808f0ce78425 WHIRLPOOL 491f963f416b7adcdba12800c06a0eb8482401f2b8a7ccf5e44b3fceb6d02f05c1ce64dc02347edc6c5350defd4b04faad9c3d75f6476a5c76c87ff73067d845
-DIST D1-hires-switches.7z 185692 SHA256 605990b7c715de60e9d473556fcec2f6856b512a368c8413ef50d905456dc3b1 SHA512 7770954d29f9651f9efe9022910eeba01ded5d86d5f6e359adbe77277f7a30b976d84304ba9705a420723eb8baab64b5412bca61f8ca556eda3a97789b7a7bb5 WHIRLPOOL ea9de47e73dab0a72e17a5580e62676d6802227ef9e42600b51df949da1f505ec02956d99c2bd5e2edcddfb1c996a6aecdf0abd20b1b0fa31abcf411c3c01b3a
-DIST D2-hires-ceilings.7z 2275128 SHA256 5f603e62202caa8a7e90f6a8b342565c3af4b0c589e4237f520da27d2138dbf2 SHA512 314625a1305b846ff6fba88c66a152cfd5b39118b7a90e32d89c4f6f7867fb3924ea62cccfae39655afc63a53367776c7a4b4211ca2bbad8083d7e937ba8c330 WHIRLPOOL ef002b83cefafcd2cdff8670aded91bca979949c7af04fee306b4bdfcd4e6b944494a7d8ebed7e11029cd7adaef434b97663d9b365b543b1294aed52b4c8c5ad
-DIST D2-hires-doors.7z 30325794 SHA256 c672102a8a94c4a07aebb788a0f0e6a865ca0925160393767408c21c1eb36c97 SHA512 0fd018ae753884f3c1097002f358858fc323902b73fe35262887034087bb5559dcdc50447b6f58556dd49be7fc66b3a9dc06e7c344fb269006594163b398c67a WHIRLPOOL 66ee8c49769a9e969fbb2053aeaf8063ffead621663e03d934ec0d9d0601319b8b0464591dd67328861e60183299cb018ab36f08c7edd836d1124e491741aa68
-DIST D2-hires-fans-grates.7z 639087 SHA256 2fc9ffe2900eb879d3c2f3237f9a92ed891e8af63970fa6fc31c70d1ddce7a7d SHA512 c05d3ea7ae50072408324ab66ed1f0384c06774cb01a4680eb4becd6acab7745d654c256fb8a20c9b555792c8f2d5d5fae14463d2bb60fc999ee96163b252b21 WHIRLPOOL 4e56021893d866ecefc6ce7525ea10913aafc2af8b730d25c6ab088bb51357586d95b7cd5bcb60018ca3ab66f1ac7ba51a88f4513fcaae0ee80ec745db88031b
-DIST D2-hires-lava-water.7z 12988217 SHA256 be863af7692991e39f2ff922168412146a87e5ec9ee338d96dbfc8ee5a703edd SHA512 6613d1b7b5142e570362637f56eaaccfcc42feab4b49d8bb5c40723c0a4ca6f008fb58b44e9c2543ef0491d4505fa9ad973d47a39f51cb5baa71a7a95a023886 WHIRLPOOL 11bb486f3857f9a941a22a666c13a0d75f219eb653bb19b0d7b90c888358c4c2d43732249f733b512909bfde768b55cac0edfd9a9545f380c85688c24a735ba6
-DIST D2-hires-lights.7z 427361 SHA256 e43bfc372a6fc82a6ab2e295111c47ee44ca1ec44fa27ed857731ec3a5b458bd SHA512 f8b3f5ce4ebd97d8628cb05c63d0ed3e4a9d10b79f14b9e37aa1a4a57c45cfa05083928203f25d3ceff9abd45c6060e72c1014294b6f23da300abbd58fa9fd8f WHIRLPOOL 4b78cc1fce02405524c165d12774eb5e9d8270688b2f3543af1c536ffc7640ea56c9c9de5a1f0cd40a43a482366c09c664a53ee4f6ea0435200a3e095d4dfb86
-DIST D2-hires-metal.7z 9875930 SHA256 bb7971d9f1e0d62c3c65d48ce1deb9d7c5b3e9e2e2242566bf4eaf30d4498a74 SHA512 a54ac789f56368df77dd04a87b6b8bba7dec8d1a0715f5f3c6ed23288b6fbf4968c27def5bb99d21d49ac068c89156fbcff97ff838a7fe2a8468f2fc092136be WHIRLPOOL 2e4d52d2f4fc834f6122229e6f626c5d6b9ba5514ebedc7d59d6a4a773ae41d67a4dbc2b2626a37a2eac805336076bdcef2752256858c9487f60f9c452260bbf
-DIST D2-hires-rock.7z 101156499 SHA256 b5582d6ce78212d33da3cfb66ec684fcbe3842f470ba2ef7bb00ea02c4e68bbe SHA512 6609604819fd4fc36559d08ef08a3504835f151b5080c468be0d863aed4ad5788c94912a226701a792687a162280bfe0f3f109dfd0e8f53d7ad7664ed954d58b WHIRLPOOL 1af5e9278f430da1a0ea6aead62b9f32c08419d378536886e2d705ce67b5cbe9e79b69754ef7f36ac7391c571dace44c22c97a77c73e88642c5f50c88e6cb103
-DIST D2-hires-signs.7z 2009053 SHA256 e9dcd6d6e9bf40a274acdc2092597ce223a75ba3142ac3d0e89b9cbf08a6315a SHA512 5d740d6893a7671b294d954316be7541d936b07ba3b86a9ffe66776837101b4cf89253984f9cade5820fd394178fec8a5e66110475c687e10e1d82a2a856965d WHIRLPOOL 968943ff7adbe282f3a34d81ca1c16f135f6e761a0a838e3ac8449512ecf59d1f999f41048d353e79845faff6c55e65b8d2e188e916e3fcb65202e177d1c4d66
-DIST D2-hires-special.7z 5940848 SHA256 23979a195a27924101d53d55cb2d3d8fbe3f96aed1a4633f81fb034bbfb497eb SHA512 386fc90128cb9806e6e30c7dbf0a75894d5853c2eba5a54a2cd95b81a2d40d844bebda2a0433abcee3da2edd887f6ef551fb3d123e684aff0921d7550cc6f9ef WHIRLPOOL c40adfd20b4611921497545117b6ceabe833c03944a73e0489417740140c2bec62214929d92fabb96f86495296cc1605ab04623053607ecf4b0bf70a268673d3
-DIST D2-hires-switches.7z 341212 SHA256 14330e572c975ef2917a53ef3f97fe13fac454c720f0356358aadda189f158b8 SHA512 c23608640c92bc91b9e4e0d1a3183d71e13eca6d5c7469ff717c04f1be185a0eb35412201a5ffc33c611d2e0e16e6495a810adbcde7b411b863bc6bc58f19f2e WHIRLPOOL 51f8588ff93b88602e595b5db81f272f1bfbef665cbb8b70b898e81d538f4e92fb1cc70d68b85ed6bb1da44820498dda4dfe69c2a760204d0479beba290749a5
-DIST d2x-xl-data-1.15.295.7z 36903234 SHA256 b5f7d1547704b737790e262d86a3c5f9db400dfbfda0f3297ea0c22c544e77b6 SHA512 c59bc85845b459189f358f874486f25caa3cd32c1f4134a81fa3d8047eaa4be50803564f982f815c88cee3ddd0613d8b2dd119d9b6020324ee32758ab24d6a69 WHIRLPOOL 11627a91d78924ed31ca70e427a4f39a2c26dceef792d829c6fb91029f086efe73312f0000093773d020aa779a48b83d2956a7c970273e72cc52928555af4a36
-DIST d2x-xl-src-1.16.15.7z 2092287 SHA256 a62029130879d9ba2e642f6fd93948ffccfa784bb520d97feedf19a64d3af1f8 SHA512 5b5d6ad58f940296ed37b2dcb8c8f307d183ae8bb12dbfc8ef09c255111914704d50e8423c035d31f5d5148298e957363f3270b3686f1fcabc6f34a222ff988f WHIRLPOOL 6773bb4eec3c8974a716d01e46869bc3034016f45988a47bfa54a98eb0bf5e54328745e362d802c8cfde04b9dec962ac1a4c4e5dc28083de7348e92e8c8b26da
-DIST d2x-xl-src-1.16.27.7z 2123002 SHA256 eb4b8218925e00825bd69da66f308d7b1be7b3ed54276aacebd037de002a13ac SHA512 3614f3095614ba7c476f62e2ee39d95747f66eeb4ad63dc61a0902bc14fb259d8e28d0ce8c84f32a46240723e3eed3ac5c0ad101a1b4236638efebc8931f8a1e WHIRLPOOL b0488a316a26c21d154db0ac746c55c2071ed337601a1acb0b2869e14e606314894729edfd45df993c2c56e5082d414f6c5b32486a90526cabe8cb618d438b63
-DIST hires-models.7z 8298045 SHA256 aebcefb1955c6fd8ba6e96b187e247affdecd9632c5306a4b1c33fa5aa1a1f81 SHA512 5509371daec9546decfc6bd50f69b26947827e4f2edf58516be489743091a7093d500849bdae7914bf176cec607c67f53f6e3e113d6dc9198a8c2ed306392295 WHIRLPOOL 4d2f51eee66899103df3e6d99f730d7e7a14be0f5f4e01bbc25299e5dcec88ed469afe21501c4e9a563f746b2355963553a852d4b55f79f12ad755026d02703d
-DIST hires-sounds.7z 33964629 SHA256 05c2224149783a771c568b1ff244b25c4a90603df86fc1d7d025030886f3d904 SHA512 056bf1ba7686137da53db9e2661e521ebc5e3729206a7c5c8d5409146d39b608948d60aab5ce93f0b53a1a21e39616140b10b4f6b5d4bcaef8bf7fff808156d3 WHIRLPOOL 586c9cd69c0347c17fd8a5b9bef160ae81866410f7184ea8b2a71a0650dad6a418878990d512edc2968f638a0cb84b922b0b35019fef07bdc95cbf4b1fc081c5
diff --git a/games-action/d2x-xl/d2x-xl-1.16.15.ebuild b/games-action/d2x-xl/d2x-xl-1.16.15.ebuild
deleted file mode 100644
index 628bd17..0000000
--- a/games-action/d2x-xl/d2x-xl-1.16.15.ebuild
+++ /dev/null
@@ -1,149 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI=5
-
-inherit autotools eutils flag-o-matic toolchain-funcs games
-
-SRC_D2X="http://www.descent2.de/files"
-SRC_FILE="${PN}-src-${PV}.7z"
-DATA_FILE="${PN}-data-1.15.295.7z"
-
-DESCRIPTION="Descent 2 engine supporting high-resolution textures"
-HOMEPAGE="http://www.descent2.de/"
-
-D1_TEXTURES="ceilings doors fans-grates lava lights metal rock signs special switches"
-D2_TEXTURES="ceilings doors fans-grates lava-water lights metal rock signs special switches"
-TEXTURES_SRC_URI=""
-
-for X in ${D1_TEXTURES}; do
- TEXTURES_SRC_URI="${TEXTURES_SRC_URI} ${SRC_D2X}/textures/D1-hires-${X}.7z";
-done
-for X in ${D2_TEXTURES}; do
- TEXTURES_SRC_URI="${TEXTURES_SRC_URI} ${SRC_D2X}/textures/D2-hires-${X}.7z";
-done
-
-# www.descent2.de must be *first* in the SRC_URI list, because
-# all the SourceForge links exhaust Portage's retry patience.
-SRC_URI="${SRC_D2X}/${SRC_FILE}
- ${SRC_D2X}/${DATA_FILE}
- mirror://sourceforge/${PN}/${SRC_FILE}
- mirror://sourceforge/${PN}/${DATA_FILE}
- models? ( ${SRC_D2X}/models/hires-models.7z )
- sounds? ( ${SRC_D2X}/sound/hires-sounds.7z )
- textures? ( ${TEXTURES_SRC_URI} )"
-
-LICENSE="D1X"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="descent1 descent2 descent2-vertigo debug icon models openmp sounds textures"
-
-CDEPEND="media-libs/glew
- >=media-libs/libsdl-1.2.8:0
- media-libs/sdl-image:0
- media-libs/sdl-mixer:0
- media-libs/sdl-net:0
- net-misc/curl
- virtual/opengl"
-
-RDEPEND="${CDEPEND}
- descent1? ( games-action/descent1-data )
- descent2? ( games-action/descent2-data )
- descent2-vertigo? ( games-action/descent2-vertigo )"
-
-DEPEND="${CDEPEND}
- app-arch/p7zip
- icon? ( media-gfx/icoutils )"
-
-S="${WORKDIR}"
-DIR="${GAMES_DATADIR}/${PN}"
-
-RESTRICT=mirror
-
-src_unpack() {
- unpack "${SRC_FILE}" "./${PN}-makefiles.7z"
-}
-
-src_prepare() {
- if use icon ; then
- icotool -x "${PN}.ico" || die "icotool failed"
- fi
-
- # Use our own data directory.
- sed -i "s:/usr/local/games/${PN}:${DIR}:g" main/{setup,gamefolders}.cpp || \
- die "sed #1 failed"
-
- # Don't need these libraries.
- sed -i -r "/d2x_sdl_LDADD/s/-l(Xm|Xt|X11)//g" Makefile.am || \
- die "sed #2 failed"
-
- # Strip C(XX)FLAGS.
- sed -i -r "/C(XX)?FLAGS/s/-(fopenmp|g|O[0-9])//g" configure.ac || \
- die "sed #3 failed"
-
- chmod a+x ./autogen.sh || die "chmod #1 failed"
- ./autogen.sh || die "autogen.sh failed"
- chmod +x configure || die "chmod #2 failed"
- eautoreconf
-}
-
-src_configure() {
- if use openmp && tc-has-openmp; then
- append-cppflags -fopenmp
- export LIBS="${LIBS} -lgomp"
- fi
-
- local DEBUG_CONF="--disable-debug --enable-release"
- use debug && DEBUG_CONF="--enable-debug --disable-release"
-
- egamesconf ${DEBUG_CONF} --with-opengl
-}
-
-src_install() {
- use icon && newicon "${PN}_1_48x48x32.png" "${PN}.png"
-
- dogamesbin "${PN}"
- make_desktop_entry "${PN}" "D2X-XL" "${PN}"
-
- # Unpack D2X-XL data files.
- dodir "${DIR}"
- cd "${D}${DIR}" || die "cd \"${D}${DIR}\" failed"
- unpack "${DATA_FILE}"
-
- # Symlink original data files, which may or may not be present.
-
- if use descent1; then
- ln -s ../../d1x/descent.{hog,pig} data/ || die "ln #1 failed"
- fi
-
- if use descent2; then
- ln -s ../../d2x/descent2.{ham,hog,s11,s22} data/ || \
- die "ln #2 failed"
- ln -s ../../d2x/{groupa,alien{1,2},fire,ice,water}.pig data/ || \
- die "ln #3 failed"
- fi
-
- if use descent2-vertigo; then
- ln -s ../../d2x/hoard.ham data/ || die "ln #4 failed"
- mkdir missions || die "mdir missions failed"
- ln -s ../../d2x/missions/d2x.{hog,mn2} missions/ || die "ln #5 failed"
- fi
-
- # Optional data.
- use models && unpack hires-models.7z
- use sounds && unpack hires-sounds.7z
-
- if use textures; then
- for X in ${D1_TEXTURES}; do unpack "D1-hires-${X}.7z"; done
- for X in ${D2_TEXTURES}; do unpack "D2-hires-${X}.7z"; done
-
- # Make everything lower case.
- mv textures/D1 textures/d1 || die "mv #1 failed"
- mv sounds2/D1 sounds2/d1 || die "mv #2 failed"
- find -name "*[A-Z]*" -exec sh -c 'mv {} $(echo {} | tr A-Z a-z)' \; || \
- die "find -exec mv failed"
- fi
-
- prepgamesdirs
-}
diff --git a/games-action/d2x-xl/d2x-xl-1.16.27.ebuild b/games-action/d2x-xl/d2x-xl-1.16.27.ebuild
deleted file mode 100644
index 628bd17..0000000
--- a/games-action/d2x-xl/d2x-xl-1.16.27.ebuild
+++ /dev/null
@@ -1,149 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI=5
-
-inherit autotools eutils flag-o-matic toolchain-funcs games
-
-SRC_D2X="http://www.descent2.de/files"
-SRC_FILE="${PN}-src-${PV}.7z"
-DATA_FILE="${PN}-data-1.15.295.7z"
-
-DESCRIPTION="Descent 2 engine supporting high-resolution textures"
-HOMEPAGE="http://www.descent2.de/"
-
-D1_TEXTURES="ceilings doors fans-grates lava lights metal rock signs special switches"
-D2_TEXTURES="ceilings doors fans-grates lava-water lights metal rock signs special switches"
-TEXTURES_SRC_URI=""
-
-for X in ${D1_TEXTURES}; do
- TEXTURES_SRC_URI="${TEXTURES_SRC_URI} ${SRC_D2X}/textures/D1-hires-${X}.7z";
-done
-for X in ${D2_TEXTURES}; do
- TEXTURES_SRC_URI="${TEXTURES_SRC_URI} ${SRC_D2X}/textures/D2-hires-${X}.7z";
-done
-
-# www.descent2.de must be *first* in the SRC_URI list, because
-# all the SourceForge links exhaust Portage's retry patience.
-SRC_URI="${SRC_D2X}/${SRC_FILE}
- ${SRC_D2X}/${DATA_FILE}
- mirror://sourceforge/${PN}/${SRC_FILE}
- mirror://sourceforge/${PN}/${DATA_FILE}
- models? ( ${SRC_D2X}/models/hires-models.7z )
- sounds? ( ${SRC_D2X}/sound/hires-sounds.7z )
- textures? ( ${TEXTURES_SRC_URI} )"
-
-LICENSE="D1X"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="descent1 descent2 descent2-vertigo debug icon models openmp sounds textures"
-
-CDEPEND="media-libs/glew
- >=media-libs/libsdl-1.2.8:0
- media-libs/sdl-image:0
- media-libs/sdl-mixer:0
- media-libs/sdl-net:0
- net-misc/curl
- virtual/opengl"
-
-RDEPEND="${CDEPEND}
- descent1? ( games-action/descent1-data )
- descent2? ( games-action/descent2-data )
- descent2-vertigo? ( games-action/descent2-vertigo )"
-
-DEPEND="${CDEPEND}
- app-arch/p7zip
- icon? ( media-gfx/icoutils )"
-
-S="${WORKDIR}"
-DIR="${GAMES_DATADIR}/${PN}"
-
-RESTRICT=mirror
-
-src_unpack() {
- unpack "${SRC_FILE}" "./${PN}-makefiles.7z"
-}
-
-src_prepare() {
- if use icon ; then
- icotool -x "${PN}.ico" || die "icotool failed"
- fi
-
- # Use our own data directory.
- sed -i "s:/usr/local/games/${PN}:${DIR}:g" main/{setup,gamefolders}.cpp || \
- die "sed #1 failed"
-
- # Don't need these libraries.
- sed -i -r "/d2x_sdl_LDADD/s/-l(Xm|Xt|X11)//g" Makefile.am || \
- die "sed #2 failed"
-
- # Strip C(XX)FLAGS.
- sed -i -r "/C(XX)?FLAGS/s/-(fopenmp|g|O[0-9])//g" configure.ac || \
- die "sed #3 failed"
-
- chmod a+x ./autogen.sh || die "chmod #1 failed"
- ./autogen.sh || die "autogen.sh failed"
- chmod +x configure || die "chmod #2 failed"
- eautoreconf
-}
-
-src_configure() {
- if use openmp && tc-has-openmp; then
- append-cppflags -fopenmp
- export LIBS="${LIBS} -lgomp"
- fi
-
- local DEBUG_CONF="--disable-debug --enable-release"
- use debug && DEBUG_CONF="--enable-debug --disable-release"
-
- egamesconf ${DEBUG_CONF} --with-opengl
-}
-
-src_install() {
- use icon && newicon "${PN}_1_48x48x32.png" "${PN}.png"
-
- dogamesbin "${PN}"
- make_desktop_entry "${PN}" "D2X-XL" "${PN}"
-
- # Unpack D2X-XL data files.
- dodir "${DIR}"
- cd "${D}${DIR}" || die "cd \"${D}${DIR}\" failed"
- unpack "${DATA_FILE}"
-
- # Symlink original data files, which may or may not be present.
-
- if use descent1; then
- ln -s ../../d1x/descent.{hog,pig} data/ || die "ln #1 failed"
- fi
-
- if use descent2; then
- ln -s ../../d2x/descent2.{ham,hog,s11,s22} data/ || \
- die "ln #2 failed"
- ln -s ../../d2x/{groupa,alien{1,2},fire,ice,water}.pig data/ || \
- die "ln #3 failed"
- fi
-
- if use descent2-vertigo; then
- ln -s ../../d2x/hoard.ham data/ || die "ln #4 failed"
- mkdir missions || die "mdir missions failed"
- ln -s ../../d2x/missions/d2x.{hog,mn2} missions/ || die "ln #5 failed"
- fi
-
- # Optional data.
- use models && unpack hires-models.7z
- use sounds && unpack hires-sounds.7z
-
- if use textures; then
- for X in ${D1_TEXTURES}; do unpack "D1-hires-${X}.7z"; done
- for X in ${D2_TEXTURES}; do unpack "D2-hires-${X}.7z"; done
-
- # Make everything lower case.
- mv textures/D1 textures/d1 || die "mv #1 failed"
- mv sounds2/D1 sounds2/d1 || die "mv #2 failed"
- find -name "*[A-Z]*" -exec sh -c 'mv {} $(echo {} | tr A-Z a-z)' \; || \
- die "find -exec mv failed"
- fi
-
- prepgamesdirs
-}