summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-roguelike/tome')
-rw-r--r--games-roguelike/tome/Manifest54
-rw-r--r--games-roguelike/tome/files/2.2.7-gentoo-paths.patch31
-rw-r--r--games-roguelike/tome/files/2.3.0-gentoo-paths.patch31
-rw-r--r--games-roguelike/tome/files/digest-tome-2.2.7-r13
-rw-r--r--games-roguelike/tome/files/digest-tome-2.3.03
-rw-r--r--games-roguelike/tome/tome-2.2.7-r1.ebuild77
-rw-r--r--games-roguelike/tome/tome-2.3.0.ebuild80
7 files changed, 23 insertions, 256 deletions
diff --git a/games-roguelike/tome/Manifest b/games-roguelike/tome/Manifest
index 2dfc104868ed..df4a6f585113 100644
--- a/games-roguelike/tome/Manifest
+++ b/games-roguelike/tome/Manifest
@@ -1,14 +1,6 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
-AUX 2.2.7-gentoo-paths.patch 1172 RMD160 284efaf1eb85ee17f9d08719179f835cf4777100 SHA1 c6c2203e504cd0b09f91c2ed8e3eec9fd6f84280 SHA256 e1978ac45c002a7b40a1f7123430a8aa1a4c45c48468b8d0bd6c670041a538e1
-MD5 23dd9f8f71868b8ab82d8bbbc79ad740 files/2.2.7-gentoo-paths.patch 1172
-RMD160 284efaf1eb85ee17f9d08719179f835cf4777100 files/2.2.7-gentoo-paths.patch 1172
-SHA256 e1978ac45c002a7b40a1f7123430a8aa1a4c45c48468b8d0bd6c670041a538e1 files/2.2.7-gentoo-paths.patch 1172
-AUX 2.3.0-gentoo-paths.patch 1172 RMD160 284efaf1eb85ee17f9d08719179f835cf4777100 SHA1 c6c2203e504cd0b09f91c2ed8e3eec9fd6f84280 SHA256 e1978ac45c002a7b40a1f7123430a8aa1a4c45c48468b8d0bd6c670041a538e1
-MD5 23dd9f8f71868b8ab82d8bbbc79ad740 files/2.3.0-gentoo-paths.patch 1172
-RMD160 284efaf1eb85ee17f9d08719179f835cf4777100 files/2.3.0-gentoo-paths.patch 1172
-SHA256 e1978ac45c002a7b40a1f7123430a8aa1a4c45c48468b8d0bd6c670041a538e1 files/2.3.0-gentoo-paths.patch 1172
AUX 2.3.1-gentoo-paths.patch 1172 RMD160 284efaf1eb85ee17f9d08719179f835cf4777100 SHA1 c6c2203e504cd0b09f91c2ed8e3eec9fd6f84280 SHA256 e1978ac45c002a7b40a1f7123430a8aa1a4c45c48468b8d0bd6c670041a538e1
MD5 23dd9f8f71868b8ab82d8bbbc79ad740 files/2.3.1-gentoo-paths.patch 1172
RMD160 284efaf1eb85ee17f9d08719179f835cf4777100 files/2.3.1-gentoo-paths.patch 1172
@@ -17,22 +9,21 @@ AUX 2.3.3-gentoo-paths.patch 1172 RMD160 284efaf1eb85ee17f9d08719179f835cf477710
MD5 23dd9f8f71868b8ab82d8bbbc79ad740 files/2.3.3-gentoo-paths.patch 1172
RMD160 284efaf1eb85ee17f9d08719179f835cf4777100 files/2.3.3-gentoo-paths.patch 1172
SHA256 e1978ac45c002a7b40a1f7123430a8aa1a4c45c48468b8d0bd6c670041a538e1 files/2.3.3-gentoo-paths.patch 1172
+AUX 2.3.4-gentoo-paths.patch 1172 RMD160 284efaf1eb85ee17f9d08719179f835cf4777100 SHA1 c6c2203e504cd0b09f91c2ed8e3eec9fd6f84280 SHA256 e1978ac45c002a7b40a1f7123430a8aa1a4c45c48468b8d0bd6c670041a538e1
+MD5 23dd9f8f71868b8ab82d8bbbc79ad740 files/2.3.4-gentoo-paths.patch 1172
+RMD160 284efaf1eb85ee17f9d08719179f835cf4777100 files/2.3.4-gentoo-paths.patch 1172
+SHA256 e1978ac45c002a7b40a1f7123430a8aa1a4c45c48468b8d0bd6c670041a538e1 files/2.3.4-gentoo-paths.patch 1172
AUX tome-2.3.3-gcc41.patch 605 RMD160 b69a831cb23c35f16fe01db2ef052129591e0247 SHA1 e95496729d1a007a83ce9f48157f9a030f83c7fc SHA256 876a5505048b845fa44f6051f10b93f93a8acc5fb2f252ba1c7b57e454532626
MD5 1d9ee2dd777668e69d1d30b610c1faa6 files/tome-2.3.3-gcc41.patch 605
RMD160 b69a831cb23c35f16fe01db2ef052129591e0247 files/tome-2.3.3-gcc41.patch 605
SHA256 876a5505048b845fa44f6051f10b93f93a8acc5fb2f252ba1c7b57e454532626 files/tome-2.3.3-gcc41.patch 605
-DIST tome-227-src.tar.bz2 2600527 RMD160 6f86a6bc1a8f6f311bb3d04f91dcfc6486a31f17 SHA1 d2ba527c65e3da19be4751c97d4a160f43e17a70 SHA256 58ce8c1199b7c8e5ceaa44e3d1179414fead31b43934bacaf69c0b240b147f75
-DIST tome-230-src.tar.bz2 2815096 RMD160 2d1ffba118123073492c56deba3f428dd3fbe298 SHA1 f213ed9f483ab9e9ccd74692289b4d38aa3e2991 SHA256 ba872f4c20bf9d591135c8d50061d9f59c3f97c00d546c4a0c543d930232063c
+AUX tome-2.3.4-gcc41.patch 605 RMD160 b69a831cb23c35f16fe01db2ef052129591e0247 SHA1 e95496729d1a007a83ce9f48157f9a030f83c7fc SHA256 876a5505048b845fa44f6051f10b93f93a8acc5fb2f252ba1c7b57e454532626
+MD5 1d9ee2dd777668e69d1d30b610c1faa6 files/tome-2.3.4-gcc41.patch 605
+RMD160 b69a831cb23c35f16fe01db2ef052129591e0247 files/tome-2.3.4-gcc41.patch 605
+SHA256 876a5505048b845fa44f6051f10b93f93a8acc5fb2f252ba1c7b57e454532626 files/tome-2.3.4-gcc41.patch 605
DIST tome-231-src.tar.bz2 2638388 RMD160 f25e609409f0055a8fa3fade72bc42eb97e07338 SHA1 1c611663c90865cc56d90334efdf333e9ba70ed2 SHA256 f764e1e059c86f2591f5a830dccbfada67dba176b1dbbab6e562663deb979971
DIST tome-233-src.tar.bz2 2865537 RMD160 5f7006182be65e1fd49a9f3be1ef1f25e00fd0d3 SHA1 067f98cd395c268dbfd87a923fe064abeac12855 SHA256 2220419d69533ac8c3cc5687c1f9f6e5c9eadacf9643900ba50dce3696a9d721
-EBUILD tome-2.2.7-r1.ebuild 1933 RMD160 35770cb5ebdfdcbb67d3a2d76682d33cf58bbd56 SHA1 ce96ab48be43ce2888996bc2f9ed05d26fcd4131 SHA256 abd6492c84520fb81f1608da5ff2d6c9de2d3254d388e33a774c55341c898187
-MD5 0b0a13ad1028fdf0c82b63d2f5124a7e tome-2.2.7-r1.ebuild 1933
-RMD160 35770cb5ebdfdcbb67d3a2d76682d33cf58bbd56 tome-2.2.7-r1.ebuild 1933
-SHA256 abd6492c84520fb81f1608da5ff2d6c9de2d3254d388e33a774c55341c898187 tome-2.2.7-r1.ebuild 1933
-EBUILD tome-2.3.0.ebuild 2071 RMD160 b4883467b9053f1c840e2bbc982b61ff8f0e5bf6 SHA1 80255298a2f95485120e2695d17f0ed5984a911a SHA256 9ce9516732448776b487cab1a4601741735827f7da490bc40d840ef7d8e92e45
-MD5 a92f303c235ad449026180dfd3cf1cfd tome-2.3.0.ebuild 2071
-RMD160 b4883467b9053f1c840e2bbc982b61ff8f0e5bf6 tome-2.3.0.ebuild 2071
-SHA256 9ce9516732448776b487cab1a4601741735827f7da490bc40d840ef7d8e92e45 tome-2.3.0.ebuild 2071
+DIST tome-234-src.tar.bz2 2909120 RMD160 c932786beda9aa7f7bc5d371a8f6fe18089ec94c SHA1 933d498c3823672be70168921af8e73affcfabf3 SHA256 ed119f4dfbb0ba984092cd6fddf5dcb5dc2c12a66d57be791182b8274c4f463b
EBUILD tome-2.3.1.ebuild 2082 RMD160 869ad5506fec7e5d49cd773fae79c4896f71d1c0 SHA1 a84368cdb61e1ce4f91748411e80614deb1f9231 SHA256 077360e62a2905f915a5c888e94633fd26f7d5bc54cbcc52bc62bdbc5ae0c575
MD5 11700d82746873465da2ae1725abff8d tome-2.3.1.ebuild 2082
RMD160 869ad5506fec7e5d49cd773fae79c4896f71d1c0 tome-2.3.1.ebuild 2082
@@ -41,30 +32,31 @@ EBUILD tome-2.3.3.ebuild 3708 RMD160 e82d9344d52cdc5fb3b0a8afe71c22bc39c03d9f SH
MD5 49245f10ebf8341112877b1ab855252f tome-2.3.3.ebuild 3708
RMD160 e82d9344d52cdc5fb3b0a8afe71c22bc39c03d9f tome-2.3.3.ebuild 3708
SHA256 6c782b215487c1ccee22fad53d1e78c6824002dc1b4a71c42c6964787b9aea60 tome-2.3.3.ebuild 3708
-MISC ChangeLog 4690 RMD160 d2cf62ea40b270eab80f6b8eedcbc2f86a7c4a83 SHA1 cea5dfabdcb1ad4d0a88d1390819426fa9b3deb4 SHA256 f2646f74299cfa079caf4e2bf5d189fc348d908bebc553fc48987dcb94443bd1
-MD5 ed9d38f1b2c651b0a19506941c1b4f53 ChangeLog 4690
-RMD160 d2cf62ea40b270eab80f6b8eedcbc2f86a7c4a83 ChangeLog 4690
-SHA256 f2646f74299cfa079caf4e2bf5d189fc348d908bebc553fc48987dcb94443bd1 ChangeLog 4690
+EBUILD tome-2.3.4.ebuild 3647 RMD160 f60a8cec2c6eff0864ba472310877469212d4bd3 SHA1 161c8f0be2ca29bb2ca2371c339aa77c418c211f SHA256 6534a136227e91017b52bce4d038faaa2f1cb8465431560f51eb98757af5e1e3
+MD5 1ed1f43bdd24c3961539f9349946535a tome-2.3.4.ebuild 3647
+RMD160 f60a8cec2c6eff0864ba472310877469212d4bd3 tome-2.3.4.ebuild 3647
+SHA256 6534a136227e91017b52bce4d038faaa2f1cb8465431560f51eb98757af5e1e3 tome-2.3.4.ebuild 3647
+MISC ChangeLog 4978 RMD160 41da816999c0194b1736f10cc27e8fc531303f25 SHA1 254b4e442db0a7d7514adc5bf113833bde3a91f5 SHA256 47dcd12973e145a51b57e88f610aa7757c2bde59b4c7b9f9db96498f9b3524d6
+MD5 a2e293ccb94cf55b41f9e34fbd7e9ad1 ChangeLog 4978
+RMD160 41da816999c0194b1736f10cc27e8fc531303f25 ChangeLog 4978
+SHA256 47dcd12973e145a51b57e88f610aa7757c2bde59b4c7b9f9db96498f9b3524d6 ChangeLog 4978
MISC metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea SHA1 be5251fa1dacef5c41b74761bb1c8c54fb633b9e SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3
MD5 f17b9b8fa07a38914fe1c03268f51678 metadata.xml 158
RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea metadata.xml 158
SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3 metadata.xml 158
-MD5 2b7fa16de09206112d60ee628383f526 files/digest-tome-2.2.7-r1 244
-RMD160 7170d6df363869a41d89c0fba227e4657642a508 files/digest-tome-2.2.7-r1 244
-SHA256 88de2724caf495d98751495e00246e82984a0f5185c7734745774883b4b4befd files/digest-tome-2.2.7-r1 244
-MD5 2e71e8befade2598dd575458f22557a4 files/digest-tome-2.3.0 244
-RMD160 35666e2f2b44812145eaa7dfe94b8991b988031a files/digest-tome-2.3.0 244
-SHA256 1e9989e4ee5165eddde03d5ab911ace98e0c761e4499be436f90aa3fc4eb669d files/digest-tome-2.3.0 244
MD5 be0eb8fb39ae1e3aa45a89acf5e01518 files/digest-tome-2.3.1 244
RMD160 2db5af0397ef157a988936c800d52094b3fc4a5c files/digest-tome-2.3.1 244
SHA256 efacb79f05ec2662bdbce251ea95ca42148f3201ba71874199866296c87468e2 files/digest-tome-2.3.1 244
MD5 431dea3eb67e375073976220f6f968d3 files/digest-tome-2.3.3 244
RMD160 c6c54aa02f66a011fdd6a1b8ea8efbccda7af3aa files/digest-tome-2.3.3 244
SHA256 5b525bbceb08351853df881ea9482ca77827edc4a9979284dfd348518e25722e files/digest-tome-2.3.3 244
+MD5 13db4ac696329c005592284d274cfd00 files/digest-tome-2.3.4 244
+RMD160 7762eb4f3e76dc509f07e42f84865cde4ff0f502 files/digest-tome-2.3.4 244
+SHA256 32517a5db1b62caae97b1458c067255c4d1ce0f988254d5be6e43e638b400a23 files/digest-tome-2.3.4 244
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
-iD8DBQFFKWWMbfN2jvlVAhwRAjNoAKCdl49pmY/9qDT2DCOG+mkf7XL7rQCgmcBE
-lfr9231u5NukqAPVPqddfOE=
-=nnLk
+iD8DBQFFZxNOdz7hIScOURERAmazAJ0Wu6q1Q5w3LfBcfUVhOxdFe9756QCfXxt6
+T1xsS1Zii/lcCnnyFa8Q+eM=
+=xRMe
-----END PGP SIGNATURE-----
diff --git a/games-roguelike/tome/files/2.2.7-gentoo-paths.patch b/games-roguelike/tome/files/2.2.7-gentoo-paths.patch
deleted file mode 100644
index d171a1cf540f..000000000000
--- a/games-roguelike/tome/files/2.2.7-gentoo-paths.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-diff -rU 1 tome-225-src.orig/src/files.c tome-225-src/src/files.c
---- tome-225-src.orig/src/files.c 2004-01-14 11:17:02.423263360 -0500
-+++ tome-225-src/src/files.c 2004-01-14 11:17:50.074019344 -0500
-@@ -5670,3 +5670,3 @@
- /* Build the filename */
-- path_build(buf, 1024, ANGBAND_DIR_APEX, "scores.raw");
-+ sprintf(buf, "GENTOO_DIR/tome-scores.raw");
-
-@@ -5748,3 +5748,3 @@
- /* Build the filename */
-- path_build(buf, 1024, ANGBAND_DIR_APEX, "scores.raw");
-+ sprintf(buf, "GENTOO_DIR/tome-scores.raw");
-
-@@ -5846,3 +5846,3 @@
- /* Build the filename */
-- path_build(buf, 1024, ANGBAND_DIR_APEX, "scores.raw");
-+ sprintf(buf, "GENTOO_DIR/tome-scores.raw");
-
-@@ -6296,3 +6296,3 @@
- /* Build the filename */
-- path_build(buf, 1024, ANGBAND_DIR_APEX, "scores.raw");
-+ sprintf(buf, "GENTOO_DIR/tome-scores.raw");
-
-diff -rU 1 tome-225-src.orig/src/init2.c tome-225-src/src/init2.c
---- tome-225-src.orig/src/init2.c 2004-01-14 11:17:02.473255760 -0500
-+++ tome-225-src/src/init2.c 2004-01-14 11:17:58.286770816 -0500
-@@ -6686,3 +6686,3 @@
- /* Build the filename */
-- path_build(buf, 1024, ANGBAND_DIR_APEX, "scores.raw");
-+ sprintf(buf, "GENTOO_DIR/tome-scores.raw");
-
diff --git a/games-roguelike/tome/files/2.3.0-gentoo-paths.patch b/games-roguelike/tome/files/2.3.0-gentoo-paths.patch
deleted file mode 100644
index d171a1cf540f..000000000000
--- a/games-roguelike/tome/files/2.3.0-gentoo-paths.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-diff -rU 1 tome-225-src.orig/src/files.c tome-225-src/src/files.c
---- tome-225-src.orig/src/files.c 2004-01-14 11:17:02.423263360 -0500
-+++ tome-225-src/src/files.c 2004-01-14 11:17:50.074019344 -0500
-@@ -5670,3 +5670,3 @@
- /* Build the filename */
-- path_build(buf, 1024, ANGBAND_DIR_APEX, "scores.raw");
-+ sprintf(buf, "GENTOO_DIR/tome-scores.raw");
-
-@@ -5748,3 +5748,3 @@
- /* Build the filename */
-- path_build(buf, 1024, ANGBAND_DIR_APEX, "scores.raw");
-+ sprintf(buf, "GENTOO_DIR/tome-scores.raw");
-
-@@ -5846,3 +5846,3 @@
- /* Build the filename */
-- path_build(buf, 1024, ANGBAND_DIR_APEX, "scores.raw");
-+ sprintf(buf, "GENTOO_DIR/tome-scores.raw");
-
-@@ -6296,3 +6296,3 @@
- /* Build the filename */
-- path_build(buf, 1024, ANGBAND_DIR_APEX, "scores.raw");
-+ sprintf(buf, "GENTOO_DIR/tome-scores.raw");
-
-diff -rU 1 tome-225-src.orig/src/init2.c tome-225-src/src/init2.c
---- tome-225-src.orig/src/init2.c 2004-01-14 11:17:02.473255760 -0500
-+++ tome-225-src/src/init2.c 2004-01-14 11:17:58.286770816 -0500
-@@ -6686,3 +6686,3 @@
- /* Build the filename */
-- path_build(buf, 1024, ANGBAND_DIR_APEX, "scores.raw");
-+ sprintf(buf, "GENTOO_DIR/tome-scores.raw");
-
diff --git a/games-roguelike/tome/files/digest-tome-2.2.7-r1 b/games-roguelike/tome/files/digest-tome-2.2.7-r1
deleted file mode 100644
index 13a96fd5c9a9..000000000000
--- a/games-roguelike/tome/files/digest-tome-2.2.7-r1
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 3b268d1252fa509ea498bc1d303f5a95 tome-227-src.tar.bz2 2600527
-RMD160 6f86a6bc1a8f6f311bb3d04f91dcfc6486a31f17 tome-227-src.tar.bz2 2600527
-SHA256 58ce8c1199b7c8e5ceaa44e3d1179414fead31b43934bacaf69c0b240b147f75 tome-227-src.tar.bz2 2600527
diff --git a/games-roguelike/tome/files/digest-tome-2.3.0 b/games-roguelike/tome/files/digest-tome-2.3.0
deleted file mode 100644
index 3cf33d1aa58b..000000000000
--- a/games-roguelike/tome/files/digest-tome-2.3.0
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 5f2e0d76893c856d77f34f0533cd90a8 tome-230-src.tar.bz2 2815096
-RMD160 2d1ffba118123073492c56deba3f428dd3fbe298 tome-230-src.tar.bz2 2815096
-SHA256 ba872f4c20bf9d591135c8d50061d9f59c3f97c00d546c4a0c543d930232063c tome-230-src.tar.bz2 2815096
diff --git a/games-roguelike/tome/tome-2.2.7-r1.ebuild b/games-roguelike/tome/tome-2.2.7-r1.ebuild
deleted file mode 100644
index c8792ca31ad1..000000000000
--- a/games-roguelike/tome/tome-2.2.7-r1.ebuild
+++ /dev/null
@@ -1,77 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-roguelike/tome/tome-2.2.7-r1.ebuild,v 1.6 2006/02/27 23:34:27 tupone Exp $
-
-inherit eutils games
-
-MY_PV=${PV//./}
-DESCRIPTION="save the world from Morgoth and battle evil (or become evil ;])"
-HOMEPAGE="http://t-o-m-e.net/"
-SRC_URI="http://t-o-m-e.net/dl/src/tome-${MY_PV}-src.tar.bz2"
-
-LICENSE="Moria"
-SLOT="0"
-KEYWORDS="x86 ppc ~amd64"
-IUSE=""
-
-RDEPEND=">=sys-libs/ncurses-5
- || ( x11-libs/libX11 virtual/x11 )"
-DEPEND="${RDEPEND}
- || ( x11-misc/makedepend virtual/x11 )"
-
-S="${WORKDIR}/tome-${MY_PV}-src"
-
-src_unpack() {
- unpack ${A}
- cd "${S}/src"
- mv makefile.std makefile
- epatch "${FILESDIR}/${PV}-gentoo-paths.patch"
- sed -i \
- -e "s:GENTOO_DIR:${GAMES_STATEDIR}:" files.c init2.c \
- || die "sed failed"
- #bug #53640
- sed -i \
- -e "s:-DUSE_X11:-DUSE_GCU -DUSE_X11:" \
- -e "s:-lX11:-lncurses -lX11:" \
- makefile \
- || die "sed failed"
- find "${S}" -name .cvsignore -exec rm -f \{\} \;
-}
-
-src_compile() {
- cd src
- make depend || die "make depend failed"
- emake -j1 \
- COPTS="${CFLAGS}" \
- BINDIR="${GAMES_BINDIR}" \
- LIBDIR="${GAMES_DATADIR}/${PN}" \
- || die "emake failed"
-}
-
-src_install() {
- cd src
- make \
- DESTDIR="${D}" \
- OWNER="${GAMES_USER}" \
- BINDIR="${GAMES_BINDIR}" \
- LIBDIR="${GAMES_DATADIR}/${PN}" install \
- || die "make install failed"
- cd "${S}"
- dodoc *.txt
-
- dodir "${GAMES_STATEDIR}"
- touch "${D}/${GAMES_STATEDIR}/${PN}-scores.raw"
- prepgamesdirs
- fperms g+w "${GAMES_STATEDIR}/${PN}-scores.raw"
- fperms g+w "${GAMES_DATADIR}/${PN}/data"
-}
-
-pkg_postinst() {
- games_pkg_postinst
- echo
- ewarn "ToME ${PV} is not save-game compatible with previous versions."
- echo
- einfo "If you have older save files and you wish to continue those games,"
- einfo "you'll need to remerge the version of ToME with which you started"
- einfo "those save-games."
-}
diff --git a/games-roguelike/tome/tome-2.3.0.ebuild b/games-roguelike/tome/tome-2.3.0.ebuild
deleted file mode 100644
index eb5743270185..000000000000
--- a/games-roguelike/tome/tome-2.3.0.ebuild
+++ /dev/null
@@ -1,80 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-roguelike/tome/tome-2.3.0.ebuild,v 1.3 2006/02/27 23:34:27 tupone Exp $
-
-inherit eutils games
-
-MY_PV=${PV//./}
-DESCRIPTION="save the world from Morgoth and battle evil (or become evil ;])"
-HOMEPAGE="http://t-o-m-e.net/"
-SRC_URI="http://t-o-m-e.net/dl/src/tome-${MY_PV}-src.tar.bz2"
-
-LICENSE="Moria"
-SLOT="0"
-KEYWORDS="x86 ~ppc ~amd64"
-IUSE=""
-
-RDEPEND=">=sys-libs/ncurses-5
- || ( x11-libs/libX11 virtual/x11 )"
-DEPEND="${RDEPEND}
- || ( x11-misc/makedepend virtual/x11 )"
-
-S="${WORKDIR}/tome-${MY_PV}-src"
-
-src_unpack() {
- unpack ${A}
- cd "${S}/src"
- mv makefile.std makefile
- epatch "${FILESDIR}/${PV}-gentoo-paths.patch"
- sed -i \
- -e "s:GENTOO_DIR:${GAMES_STATEDIR}:" files.c init2.c \
- || die "sed failed"
- #bug #53640
- sed -i \
- -e "s:-DUSE_X11:-DUSE_GCU -DUSE_X11:" \
- -e "s:-lX11:-lncurses -lX11:" \
- makefile \
- || die "sed failed"
- find "${S}" -name .cvsignore -exec rm -f \{\} \;
- find "${S}/lib/edit" -type f -exec chmod a-x \{\} \;
-}
-
-src_compile() {
- cd src
- make depend || die "make depend failed"
- emake ./tolua || die "emake ./tolua failed"
- emake \
- COPTS="${CFLAGS}" \
- BINDIR="${GAMES_BINDIR}" \
- LIBDIR="${GAMES_DATADIR}/${PN}" \
- || die "emake failed"
-}
-
-src_install() {
- cd src
- make \
- DESTDIR="${D}" \
- OWNER="${GAMES_USER}" \
- BINDIR="${GAMES_BINDIR}" \
- LIBDIR="${GAMES_DATADIR}/${PN}" install \
- || die "make install failed"
- cd "${S}"
- dodoc *.txt
-
- dodir "${GAMES_STATEDIR}"
- touch "${D}/${GAMES_STATEDIR}/${PN}-scores.raw"
- prepgamesdirs
- fperms g+w "${GAMES_STATEDIR}/${PN}-scores.raw"
- #FIXME: something has to be done about this.
- fperms g+w "${GAMES_DATADIR}/${PN}/data"
-}
-
-pkg_postinst() {
- games_pkg_postinst
- echo
- ewarn "ToME ${PV} is not save-game compatible with previous versions."
- echo
- einfo "If you have older save files and you wish to continue those games,"
- einfo "you'll need to remerge the version of ToME with which you started"
- einfo "those save-games."
-}