summaryrefslogtreecommitdiff
path: root/games-roguelike
diff options
context:
space:
mode:
Diffstat (limited to 'games-roguelike')
-rw-r--r--games-roguelike/Manifest.gzbin3051 -> 3054 bytes
-rw-r--r--games-roguelike/zangband/Manifest1
-rw-r--r--games-roguelike/zangband/zangband-2.7.4c-r1.ebuild82
3 files changed, 83 insertions, 0 deletions
diff --git a/games-roguelike/Manifest.gz b/games-roguelike/Manifest.gz
index 3bfd4eda4627..8b599e6f7991 100644
--- a/games-roguelike/Manifest.gz
+++ b/games-roguelike/Manifest.gz
Binary files differ
diff --git a/games-roguelike/zangband/Manifest b/games-roguelike/zangband/Manifest
index a61fce0285f7..f328f31bcba6 100644
--- a/games-roguelike/zangband/Manifest
+++ b/games-roguelike/zangband/Manifest
@@ -4,5 +4,6 @@ AUX zangband-2.7.4c-rng.patch 285 BLAKE2B fa32ebcf9ce2e2da9f004d6973c19355e9ba81
AUX zangband-2.7.4c-tinfo.patch 513 BLAKE2B e095db92aa2d350850032d337dbfa7daf345b2ed01870a51ce864b6c01285335f412f79104d966468698bbf8839f9bc6dab494114d5e4979a70ec206d6e41373 SHA512 e0ec33b61f4aff5a6180ff861296a6fd1bf7ee9acb54b7b4dd4b35ccbfaf70e2e36c2dc0da2dbbfbd1d42857c9fec11e5bd7c1d8f2bf7f43acee5b41ba844629
AUX zangband-2.7.4c-tk85.patch 1404 BLAKE2B 88c346359d06439763baa39312e9f65da0acb934427e82754e14781cf8b599afb857689061aff6db4855898573a3bf7436322173242d3a76723316aa9415732c SHA512 41c71ebd62fe0eba51b0a07352729dda67ada6c7ff38a05adc6d66b71128962c324c4e51c7ed20db30fa4438e32704d1c5c32d567d1e115d2b41b1816fcd21f7
DIST zangband-2.7.4c.tar.gz 2821355 BLAKE2B 5d541ad0e24d61000194beb6d5139b3ff5236de3e48ace9861716c953303f5b37c855c933e7aaab711ff7389a7f81e644654535f88f83cd999484d3e4254f4ad SHA512 491dfeb72b6eb34f7feaa45d5360014da8eaeccd173dd75b3f7a1c2034e4fb634817493957b75babc0d9600077a80d88529cf2e86769948fc86d05e59958356e
+EBUILD zangband-2.7.4c-r1.ebuild 1691 BLAKE2B d0c65eaffedd643bfdf21d9ade6e959c28f580f3af54795c2de454aff54412f8d34294f91ddc14b3d9eec61ae362b6d2fb74a78fa10e3e2a82f4025bb9b07210 SHA512 4685a50c5c0dd74c6fefff20ba71856e9923914b1cd83a54d487f1b2447727f8fec7d26f09d50ea02670ac76ae80c1046f0ee44e369b700fbba1892551916603
EBUILD zangband-2.7.4c.ebuild 1233 BLAKE2B cda232b9f7a6bb0ce7198485aeae4c45730f32fb51a50b213169d1c44a6e36d6e140cc2d3c59d8b9bcee775cfa18303ca59ae73b64d890f399efb3b4545cd4a1 SHA512 714107a5740ea7a25f994e1793ec22438a6091c2636b36a3c6ae009b2c79045e64280248ea387eef2ccef3ab620be56eb87152acb5f41bee6cda53716692da56
MISC metadata.xml 377 BLAKE2B a52a4837ae11279fed757c0aba520bd69ecf01cb04bf7886b97dcd662e59a17cfe4a5c1719291351a741dd3434cb8d4614d7d6ace84343454a4e34c5ce9b3284 SHA512 fcc53a968c91652d6c7417133aabd1a8203bb012122bae245ad55e51f05225ef3078a17cf1a2f250eebb960ffbf9efe61e26fbf5afe1685006082692aa5b700a
diff --git a/games-roguelike/zangband/zangband-2.7.4c-r1.ebuild b/games-roguelike/zangband/zangband-2.7.4c-r1.ebuild
new file mode 100644
index 000000000000..d1fb2671077c
--- /dev/null
+++ b/games-roguelike/zangband/zangband-2.7.4c-r1.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools
+
+DESCRIPTION="An enhanced version of the Roguelike game Angband"
+HOMEPAGE="http://www.zangband.org/"
+SRC_URI="ftp://ftp.sunet.se/pub/games/Angband/Variant/ZAngband/${P}.tar.gz"
+S="${WORKDIR}"/${PN}
+
+LICENSE="Moria"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="tk"
+
+RDEPEND="
+ acct-group/gamestat
+ sys-libs/ncurses:=
+ x11-libs/libX11
+ x11-libs/libXaw
+ x11-libs/libXt
+ tk? (
+ dev-lang/tcl:=
+ dev-lang/tk:=
+ )
+"
+DEPEND="
+ ${RDEPEND}
+ x11-base/xorg-proto
+"
+BDEPEND="acct-group/gamestat"
+
+DOCS=( readme z_faq.txt z_update.txt )
+
+PATCHES=(
+ "${FILESDIR}"/${P}-tk85.patch
+ "${FILESDIR}"/${P}-rng.patch
+ "${FILESDIR}"/${P}-tinfo.patch
+ "${FILESDIR}"/${P}-configure.patch
+ "${FILESDIR}"/${P}-makefile.patch
+)
+
+src_prepare() {
+ default
+
+ mv configure.in configure.ac || die
+ eautoreconf
+}
+
+src_configure() {
+ local myconf=(
+ --datadir="${EPREFIX}"/var
+ --with-setgid=gamestat
+ --without-gtk
+ $(use_with tk tcltk)
+ )
+
+ econf "${myconf[@]}"
+}
+
+src_install() {
+ dodir /var/games/${PN}
+
+ # Install the basic files but remove unneeded bits to install ourselves
+ emake DESTDIR="${ED}"/var/games/${PN}/ installbase
+ # Covered via DOCS
+ rm "${ED}"/var/games/${PN}/{angdos.cfg,readme,z_faq.txt,z_update.txt} || die
+
+ # Install everything else and fix the permissions
+ dobin zangband
+
+ keepdir /var/games/zangband/lib/{bone,info,user,save,xtra/{,help,music}}
+
+ # All users in the games group need write permissions to
+ # some important dirs
+ fowners -R :gamestat /var/games/${PN}/lib/{apex,data,save,user}
+ fperms -R g+w /var/games/${PN}/lib/{apex,data,save,user}
+
+ einstalldocs
+}