diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /games-roguelike/zangband |
reinit the tree, so we can have metadata
Diffstat (limited to 'games-roguelike/zangband')
7 files changed, 189 insertions, 0 deletions
diff --git a/games-roguelike/zangband/Manifest b/games-roguelike/zangband/Manifest new file mode 100644 index 000000000000..6b045d8285be --- /dev/null +++ b/games-roguelike/zangband/Manifest @@ -0,0 +1,9 @@ +AUX zangband-2.7.4c-configure.patch 1506 SHA256 ca32b55fbc3bff799e59cb7a11650f9d7950d74802820775121333d3349ea961 SHA512 a5f0e8265aa05da7881b0e194bd4b1cc07d1376ad14d20bb4707d08ba1042a919d57f5ec7a8c990fd1d7f13d9dd8e5f147c1816eb99f2589dfdf0d399161c3ea WHIRLPOOL bdd138212d1ae4988439511f54f25606f533dfac0e7de5e705c66a236f611722f61035e22920f18b01f5c34f4a6ebc92b35838cc3f7651724b94bb898f70bb43 +AUX zangband-2.7.4c-makefile.patch 631 SHA256 90a745022235031c0bd31f72bc8e58eab47640d0673061a775447250b08af832 SHA512 c6453d867336a7974757b1240a28715fd0e801d59f61fed23d053be86c7cdf6ea07bc874415b860076a4e5fd08537eff17793f0caa52a2bdb219514a7b8d1fd8 WHIRLPOOL 98c3312e8026071d824ff2438cfa68848dc31555fe46153b593d208596147b2e89ba565f944d107816eac1b5b7070b0f371121c8b79c5ceec0fcf5edaf68a00a +AUX zangband-2.7.4c-rng.patch 285 SHA256 518c9353b4feed8e984b9aff61ad18bbcb24bdd431413b33fa5bf61f27d1ec97 SHA512 ff6e63d15c8d6243b24fc580c8e21c556edf578b5c31b6c0af62db8f096e4e47ebe50d201811d834ba32af678e5c6775b4d4426295dd3d87dbd8ce798d13528c WHIRLPOOL 65cc4596b76311090a2db1b62cbec6c3eec3d0653d8a44ba617d9121d7111f9b859309f67a7d17e837696f0a68402fda847584d03dab7d938ea9cb2425aa6fff +AUX zangband-2.7.4c-tk85.patch 1405 SHA256 6b55fef0367c8780fe084b05fbdaf3360c3c809bdcbcc7609cdc25a197851015 SHA512 358edb61b0703dabbe780a2fdca284b80c1fd68dba16e1b70de42b96c7407e5eaf6d9304789c2a37098c1ed2c10690731c9ad10002995f82c6289c1657d2e2c3 WHIRLPOOL 0f62d81953b90e0a8bc895504bad230334d127259cce1959bd605aad5a513c72e3248f9eeba0b5b91e017aff19c935b93f6e9cbfa3e6444aa638054fef3542a3 +DIST zangband-2.7.4c.tar.gz 2821355 SHA256 3033fc52d0daab6098394a8caaa6572ba64585d7b9deb62800328ca7ba592cdc SHA512 491dfeb72b6eb34f7feaa45d5360014da8eaeccd173dd75b3f7a1c2034e4fb634817493957b75babc0d9600077a80d88529cf2e86769948fc86d05e59958356e WHIRLPOOL 4a6cb2cdcb27449d4f1967c1e502cf111aa703b19ed77b2285a63f4cbd7ed70bb081a30a5d95ca3268c7b65bd975ef6b67179b92cd7357da59dc9e63291986f0 +EBUILD zangband-2.7.4c.ebuild 1585 SHA256 3e5cd28d26ab3e7fd793b3fa5fc2655b5711a58f1a8ec232d6177c911524e2ff SHA512 1b62b7d5396a862271918ffe60817b2698fd1f5dcba7d158ea7dba9f56cff310303073a0c690d98436c1b326aabf0fe49b3bf06ba8f67076430949a0cb3afcbd WHIRLPOOL d70c8e32dae616e5200aa0f42b725936a951fdc6b10f654bd5e27870ba6bcc64a00d0cd20d55106a3e788f79ef4e6211704f66dc62898a12d21f70f18b80c296 +MISC ChangeLog 2591 SHA256 4ba9ede266c638c1f763bb4cc9a99215462ed3241a741dd4befffcb018f393c2 SHA512 de4f9a4832402b0a481e27b6b838fefff072cffbce576494571d6727a4407fb15f5f561731ab20d18628625ba25ffc3957dee78128947bfa532a07b939883267 WHIRLPOOL 909df62fe046268d6040f225d9d0e3b3bca7335d9786a2b679a46857e58c13bab2d22108afaa500e9b659a5f2d4f06c7bc90c2e88d8b73fa1c5b21d0bab14989 +MISC ChangeLog-2015 3765 SHA256 d2cdcc3aa517881eb36cae1aac94e93dbbc01910389e3b7f0740f65a668df51e SHA512 e6486aa5c630878f6ee084bbfc186bca2a9b2f6891367b5d3c37b550900e3a73261515c89c3a2be237def0875b36951def424c379dc31e313ad29032b9b28743 WHIRLPOOL 7ff84ad18e35b920cfd4899ae4c78b03327e9ffb19a9beb5ee9bb37cecb35af39d08e3aa9bcefc1704fbca8dd8477eb0426e12860b1200793bf4746a66854d14 +MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088 diff --git a/games-roguelike/zangband/files/zangband-2.7.4c-configure.patch b/games-roguelike/zangband/files/zangband-2.7.4c-configure.patch new file mode 100644 index 000000000000..756ea757845c --- /dev/null +++ b/games-roguelike/zangband/files/zangband-2.7.4c-configure.patch @@ -0,0 +1,51 @@ +--- configure.in.orig ++++ configure.in +@@ -236,48 +236,5 @@ + AC_CHECK_FUNCS([Tk_SetClassProcs TkpSync]) + AC_CHECK_FUNCS([mkstemp usleep getpwuid getpwnam shmget]) + +-dnl A nice function to test compiler options (like warnings) +-AC_DEFUN(AC_CHECK_CC_OPT, +-[FLAG=`echo zangband_cv_cflag_$1 | sed s/-/_/g` +-AC_CACHE_CHECK([whether ${CC-cc} accepts $1], +-[$FLAG], +-[echo 'void f(void); void f(){}' > conftest.c +-if test -z "`${CC-cc} -c ${CFLAGS} $1 conftest.c 2>&1`"; then +- eval $FLAG=yes +-else +- eval $FLAG=no +-fi]) +-if test ${!FLAG} = yes ; then +- CFLAGS="$1 $CFLAGS" +-fi +-]) +- +-dnl Check for lots of extra warning options +-AC_CHECK_CC_OPT(-pedantic) +-AC_CHECK_CC_OPT(-W) +-AC_CHECK_CC_OPT(-Wall) +-AC_CHECK_CC_OPT(-Wmissing-prototypes) +-AC_CHECK_CC_OPT(-Wmissing-declarations) +-AC_CHECK_CC_OPT(-Wno-long-long) +-AC_CHECK_CC_OPT(-Wwrite-strings) +-AC_CHECK_CC_OPT(-Wpointer-arith) +-AC_CHECK_CC_OPT(-Wbad-function-cast) +-AC_CHECK_CC_OPT(-Waggregate-return) +-AC_CHECK_CC_OPT(-Wstrict-prototypes) +-AC_CHECK_CC_OPT(-Wredundant-decls) +-dnl AC_CHECK_CC_OPT(-Wunreachable-code) +-AC_CHECK_CC_OPT(-Wchar-subscripts) +-AC_CHECK_CC_OPT(-Wimplicit) +-AC_CHECK_CC_OPT(-Wparentheses) +-AC_CHECK_CC_OPT(-Wsequence-point) +-AC_CHECK_CC_OPT(-Wreturn-type) +-AC_CHECK_CC_OPT(-Wswitch) +-AC_CHECK_CC_OPT(-Wunused) +-AC_CHECK_CC_OPT(-Wuninitialized) +-AC_CHECK_CC_OPT(-Wundef) +-AC_CHECK_CC_OPT(-Wnested-externs) +-AC_CHECK_CC_OPT(-Wdeclaration-after-statement) +-AC_CHECK_CC_OPT(-Wsign-compare) +- + AC_CONFIG_FILES([makefile]) + AC_OUTPUT diff --git a/games-roguelike/zangband/files/zangband-2.7.4c-makefile.patch b/games-roguelike/zangband/files/zangband-2.7.4c-makefile.patch new file mode 100644 index 000000000000..bae74904cf02 --- /dev/null +++ b/games-roguelike/zangband/files/zangband-2.7.4c-makefile.patch @@ -0,0 +1,29 @@ +--- makefile.in.orig ++++ makefile.in +@@ -111,17 +111,6 @@ + %.o: %.c + $(CC) $(CFLAGS) $(CPPFLAGS) $(DEFS) $< -c -o $@ $(DEFS) + +-## +-## Hack - make sure the build system is consistant. +-## +-makefile: configure makefile.in +- $(CONFIGURE) +- +-configure: configure.in +- aclocal +- autoheader +- autoconf +- + dirs: + -mkdir $(DESTDIR) + -mkdir $(addprefix $(DESTDIR),$(filter-out $(srcdirlist), $(dirlist))) +@@ -205,7 +194,7 @@ + @echo $(srcdirlist) $(srcfiles) + + # Hack to remake files depending on DEFAULT_PATH +-.default_path: makefile ++.default_path: + @if [ ! -r .default_path ]; then \ + echo "$(DESTDIR)" > .default_path; \ + fi diff --git a/games-roguelike/zangband/files/zangband-2.7.4c-rng.patch b/games-roguelike/zangband/files/zangband-2.7.4c-rng.patch new file mode 100644 index 000000000000..4ac1b101dc8c --- /dev/null +++ b/games-roguelike/zangband/files/zangband-2.7.4c-rng.patch @@ -0,0 +1,11 @@ +--- zangband/src/z-rand.c ++++ zangband/src/z-rand.c +@@ -168,7 +168,7 @@ + r = (Rand_state[j] += Rand_state[Rand_place]); + + /* Hack -- extract a 28-bit "random" number */ +- r = (r >> 4) / n; ++ r = ((r >> 4) & 0x0FFFFFFF) / n; + + /* Advance the index */ + Rand_place = j; diff --git a/games-roguelike/zangband/files/zangband-2.7.4c-tk85.patch b/games-roguelike/zangband/files/zangband-2.7.4c-tk85.patch new file mode 100644 index 000000000000..73ea2ab5f9dc --- /dev/null +++ b/games-roguelike/zangband/files/zangband-2.7.4c-tk85.patch @@ -0,0 +1,19 @@ +--- configure.in.orig ++++ configure.in +@@ -141,12 +141,12 @@ + ]) + + if test "x$with_tcltk" != "xno" ; then +- AC_SEARCH_LIBS([Tcl_Init], [tcl84 tcl8.4 tcl83 tcl8.3], +- AC_SEARCH_LIBS([Tk_Init], [tk84 tk8.4 tk83 tk8.3], +- [AC_SEARCH_HEADERS(/usr/local/include/tcl.h /usr/local/include/tcl/tcl.h /usr/include/tcl.h /usr/include/tcl8.4/tcl.h /usr/local/include/tcl8.4/tcl.h /usr/include/tcl8.3/tcl.h /usr/local/include/tcl8.3/tcl.h ++ AC_SEARCH_LIBS([Tcl_Init], [tcl86 tcl8.6 tcl85 tcl8.5 tcl84 tcl8.4 tcl83 tcl8.3], ++ AC_SEARCH_LIBS([Tk_Init], [tk86 tk8.6 tk85 tk8.5 tk84 tk8.4 tk83 tk8.3], ++ [AC_SEARCH_HEADERS(/usr/local/include/tcl.h /usr/local/include/tcl/tcl.h /usr/include/tcl.h /usr/include/tcl8.5/tcl.h /usr/include/tcl8.4/tcl.h /usr/local/include/tcl8.4/tcl.h /usr/include/tcl8.3/tcl.h /usr/local/include/tcl8.3/tcl.h + ,BASE_TCL_DIR) + +- AC_SEARCH_HEADERS("$BASE_TCL_DIR/tk.h" /usr/local/include/tk.h /usr/local/include/tcl/tk.h /usr/include/tk.h /usr/include/tk8.4/tk.h /usr/local/include/tk8.4/tk.h /usr/include/tk8.3/tk.h /usr/local/include/tk8.3/tk.h ++ AC_SEARCH_HEADERS("$BASE_TCL_DIR/tk.h" /usr/local/include/tk.h /usr/local/include/tcl/tk.h /usr/include/tk.h /usr/include/tk8.6/tk.h /usr/include/tk8.5/tk.h /usr/include/tk8.4/tk.h /usr/local/include/tk8.4/tk.h /usr/include/tk8.3/tk.h /usr/local/include/tk8.3/tk.h + ,BASE_TK_DIR) + + dnl Checks for libraries. diff --git a/games-roguelike/zangband/metadata.xml b/games-roguelike/zangband/metadata.xml new file mode 100644 index 000000000000..78274e0fa550 --- /dev/null +++ b/games-roguelike/zangband/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-roguelike/zangband/zangband-2.7.4c.ebuild b/games-roguelike/zangband/zangband-2.7.4c.ebuild new file mode 100644 index 000000000000..cb6468119444 --- /dev/null +++ b/games-roguelike/zangband/zangband-2.7.4c.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit autotools eutils games + +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" + +LICENSE="Moria" +SLOT="0" +KEYWORDS="amd64 x86 ~x86-fbsd" +IUSE="tk" + +RDEPEND=" + tk? ( + dev-lang/tcl:0= + dev-lang/tk:0= + ) + x11-libs/libXaw" +DEPEND="${RDEPEND} + x11-proto/xextproto" + +S=${WORKDIR}/${PN} + +src_prepare() { + epatch "${FILESDIR}"/${P}-tk85.patch \ + "${FILESDIR}"/${P}-rng.patch \ + "${FILESDIR}"/${P}-configure.patch \ + "${FILESDIR}"/${P}-makefile.patch + mv configure.in configure.ac || die + eautoreconf +} + +src_configure() { + egamesconf \ + --datadir="${GAMES_DATADIR_BASE}" \ + --with-setgid="${GAMES_GROUP}" \ + --without-gtk \ + $(use_with tk tcltk) +} + +src_install() { + # Keep some important dirs we want to chmod later + keepdir "${GAMES_DATADIR}"/${PN}/lib/{apex,user,save,bone,info,xtra/help,xtra/music} + + # Install the basic files but remove unneeded crap + emake DESTDIR="${D}/${GAMES_DATADIR}"/${PN}/ installbase + rm "${D}${GAMES_DATADIR}"/${PN}/{angdos.cfg,readme,z_faq.txt,z_update.txt} + + # Install everything else and fix the permissions + dogamesbin zangband + dodoc readme z_faq.txt z_update.txt + find "${D}${GAMES_DATADIR}/zangband/lib" -type f -exec chmod a-x \{\} + + + prepgamesdirs + # All users in the games group need write permissions to + # some important dirs + fperms -R g+w "${GAMES_DATADIR}"/zangband/lib/{apex,data,save,user} +} |