diff options
Diffstat (limited to 'games-roguelike')
22 files changed, 1332 insertions, 30 deletions
diff --git a/games-roguelike/Manifest.gz b/games-roguelike/Manifest.gz Binary files differindex 17b1d10ca1f0..eb4b4778347c 100644 --- a/games-roguelike/Manifest.gz +++ b/games-roguelike/Manifest.gz diff --git a/games-roguelike/hengband/Manifest b/games-roguelike/hengband/Manifest index 16d5a26b5b9a..c2643d80c43c 100644 --- a/games-roguelike/hengband/Manifest +++ b/games-roguelike/hengband/Manifest @@ -1,7 +1,10 @@ AUX hengband-1.6.2-added_faq.patch 6371 BLAKE2B 322267980e2b9ddc75245528a1a29fae0936e6cb3a6d87287e4e4d475090c37c47b9d8268fbe52cc5e6725f6a2d034d28c4fdecba57a23137384340a5e5c3fcb SHA512 254283e117f6bf7d050ec152d7bb04cdcbd23235f56da8ed8aa587e23ef21de0a556cac4027e8a3b0fa32d66448c96ac18e9e76d242b9d1a921befcaf78195a1 AUX hengband-1.6.2-autoconf-ncurses.patch 939 BLAKE2B 434adedaf4e301ba504ef4af113e8466634f468e29572a0dbc08f7cfe3a4c1c108df9e2cf2ccc5c15e784ff6fe291d285331f9741a231da66b52ad27763988a6 SHA512 509d50cb3e9080d2e060da3efdc0a8b96e921b0668389f797ec23657a8617932f245ed0da9eb0a9cf1ec97c4f5adfc45d05c8ae4fa45677ed10e02226aabee6b AUX hengband-1.6.2-ovflfix.patch 308 BLAKE2B 9ba098376a067d919a569d3fc104f5deff57524e22609871842c244aaf816db076456af16917ec0b6c03b6f42e9e07e0b69d51d60f18b8cd62f86483632a243e SHA512 f50e4d247dfac9df2b0f292f15488179b490db57f2ef919173325e8fd4c0dcd47be1b6a96313940aec06790cefe4c26ce1a26029182691981d2927e58e7ef00d +AUX hengband-2.1.2-autoconf-ncurses.patch 1189 BLAKE2B 0ecf5bd59b4426dc489e281ce3a56e0e04d35c1a210e79be09bde87e36219b0c112cd9da839bb16db5aa9502913361a033ce00564f4b575f90466c47fbf31908 SHA512 09cf2efdd1b3b0f83709b422479fc44cc4f660ca7a0b73db0f4c08e9888ccce590c5bab04efa9a7179915e78d9a1aff2a2a43ea3ea75f4945e7dfcdcb2d88b1c DIST hengband-1.6.2-mispellings.patch.gz 11964 BLAKE2B a409161c70d655078396c8774b251cbb467802eaa9d6c96322a49ba1956fb3c9a5ba24d8de74907afea96c1df62fdfee3fe581a45e19b77e51f917e862c63531 SHA512 73838981616e09deca7afc3911386e665ac38fafcdcea42d87bc41e4bc187551278efeaa608a772a444e0c178c3f990e16dd302b6a8dc6dfdd8625d463b9b3b5 DIST hengband-1.6.2.tar.bz2 2029169 BLAKE2B 3a25a829f3fba8bd265d0b13fc81becbbf505dcb4efd78010d6cc8db29bb4be22911d18bf7c4496e4b408c3742aa12c36060bacd62bb79de0be4fa5c36191afa SHA512 24c67f00556d7899b4f18f3071c4bd50bc754566c4c4736c18248ced243b1332e6c84381250c1a59358e7a914e5d62db05c47ab0921bcf40fbd6cfe4b6717520 -EBUILD hengband-1.6.2-r1.ebuild 1446 BLAKE2B 46baa4715f6e4e074170c3083efcf883ef068a75618579ce2daf7f734f373689bc7d547fe9370ff73a5215297b18421e23c6ef1cb1c77f162c59576cdd67ceed SHA512 58fc37dbbd377fc40f481c1d30bfe35a4303dc9d9856a8298606236cf21db90ac5e207817bd7a19f02d4f0b12f218e1290e6faa4abd82ba71d5caf434a193198 -MISC metadata.xml 335 BLAKE2B 36bbe1145fd3906ec765307b18c168c0cce6956cb88c3807cb48ba53604ad8932bd7e2a4d6095ed1ea6eac693ad65e7151e36be8a81eff7caed2bf3e6c858625 SHA512 089640e668500338eda9d1585d25347bcb37dbbf51107452abb365312dc1bce57cae528e98271f84c1ae9e24c0c8021f70ae2f626ee1fd30cdc8d79397a89a8b +DIST hengband-2.2.1.tar.gz 2977622 BLAKE2B 229dbae112e733c0f8de0210fb311a0f8a0306f0b84866386fd00fedc75e72721dc5d3f79b271e90b848d01165746b8d5fa21e4ec50d4b50a824151749595095 SHA512 a84aa9a01efd787f2a459b70ac8cf6db3eb8f17d10276bc38c026276f446ada8ff6db3902ae970c2ef263187e9cd7f51b9a59c8bd6fa2d96161ba6bfe0914cab +EBUILD hengband-1.6.2-r1.ebuild 1439 BLAKE2B a4c64b6d0883a1690d7a017d508deae2a4b7815dcb32bf7d590807e9fa3cb5417de41bf27021f6edeea9a96db8574d7abeb54b924ca59d9e7143173a3471c600 SHA512 c05a4ab8c1de48cb3ca5ffdb5b01cf2fde1fd848cc7766e2c0ce34a40208dee865acc10eec9dd927fa2f3cc55db7657d64aaf941411d9f64b13076066aa64437 +EBUILD hengband-2.2.1.ebuild 1270 BLAKE2B 03e875ba80bb9f539405d669d2ddc34c24f483d6e2a881a6513958ced396b725cd87e13e82e97ecf94225f7203397f50541ca4cb3cf88f854921046d6566face SHA512 ba5dfc4469686d7b74e0e7a1c6e53a8b2aa96c88e33d64126d746145f86ea7c43a7ce7ca8fdc0696fb245cc1d43dc3fc9907b673b9d170a377f81161bae60743 +MISC metadata.xml 325 BLAKE2B faf40c9ebc4d9eb31c2cb4d9d8b82728efec0a780f5c6ca3c3b5d6a8a83e4e2eba8afc2f94b67b121725a5851ebdb1298d222a6ec744a183763c6c216b7ba257 SHA512 99e72bc23012663d16b895d55f7f888ed7e9829a28707a69d279667e9dba5e4ce54c7156f8a5ca078bbc6b31b7e4770ebef332243d811602701a4b9c03da1992 diff --git a/games-roguelike/hengband/files/hengband-2.1.2-autoconf-ncurses.patch b/games-roguelike/hengband/files/hengband-2.1.2-autoconf-ncurses.patch new file mode 100644 index 000000000000..4f695310d7b5 --- /dev/null +++ b/games-roguelike/hengband/files/hengband-2.1.2-autoconf-ncurses.patch @@ -0,0 +1,28 @@ +diff -Naur a/configure.ac b/configure.ac +--- a/configure.ac 2018-03-19 11:04:42.000000000 +0000 ++++ b/configure.ac 2022-05-31 22:18:52.959822579 +0100 +@@ -51,16 +51,14 @@ + + dnl Checks for libraries. + dnl Replace `main' with a function in -lncurses: +-AC_CHECK_LIB(ncursesw, initscr, [AC_DEFINE(USE_GCU, 1, [Allow -mGCU environment]) AC_DEFINE(USE_NCURSES, 1, [Use ncurses]) LIBS="$LIBS -lncursesw"]) +-if test "$ac_cv_lib_ncursesw_initscr" != yes; then +- AC_CHECK_LIB(ncurses, initscr, [AC_DEFINE(USE_GCU, 1, [Allow -mGCU environment]) AC_DEFINE(USE_NCURSES, 1, [Use ncurses]) LIBS="$LIBS -lncurses"]) +- if test "$ac_cv_lib_ncurses_initscr" != yes; then +- AC_CHECK_LIB(curses, initscr, [AC_DEFINE(USE_GCU, 1, [Allow -mGCU environment]) LIBS="$LIBS -lcurses"]) +- if test "$ac_cv_lib_curses_initscr" != yes; then +- AC_CHECK_LIB(termcap, tgetent, [AC_DEFINE(USE_CAP, 1, [Allow -mCAP environment]) LIBS="$LIBS -ltermcap"]) +- fi +- fi +-fi ++PKG_CHECK_MODULES( ++ [NCURSES], ++ [ncurses], ++ [AC_DEFINE(USE_GCU, 1, [Allow -mGCU environment]) ++ AC_DEFINE(USE_NCURSES, 1, [Use ncurses]) ++ [LIBS="${LIBS} ${NCURSES_LIBS}"] ++ ] ++) + + AC_CHECK_LIB(iconv, iconv_open) + diff --git a/games-roguelike/hengband/hengband-1.6.2-r1.ebuild b/games-roguelike/hengband/hengband-1.6.2-r1.ebuild index e6fb57c68472..8b526ce1d82e 100644 --- a/games-roguelike/hengband/hengband-1.6.2-r1.ebuild +++ b/games-roguelike/hengband/hengband-1.6.2-r1.ebuild @@ -6,7 +6,7 @@ EAPI=7 inherit autotools DESCRIPTION="An Angband variant, with a Japanese/fantasy theme" -HOMEPAGE="http://hengband.sourceforge.jp/en/" +HOMEPAGE="https://hengband.github.io/" SRC_URI="mirror://sourceforge.jp/hengband/10331/${P}.tar.bz2 mirror://gentoo/${P}-mispellings.patch.gz" diff --git a/games-roguelike/hengband/hengband-2.2.1.ebuild b/games-roguelike/hengband/hengband-2.2.1.ebuild new file mode 100644 index 000000000000..adcef5288ffb --- /dev/null +++ b/games-roguelike/hengband/hengband-2.2.1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools + +DESCRIPTION="An Angband variant, with a Japanese/fantasy theme" +HOMEPAGE="https://hengband.github.io/" +SRC_URI="https://github.com/hengband/hengband/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Moria" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="X l10n_ja" + +RDEPEND=" + >=sys-libs/ncurses-5:0= + X? ( x11-libs/libX11 ) +" +DEPEND=" + ${RDEPEND} + X? ( x11-libs/libXt ) +" +BDEPEND=" + virtual/pkgconfig + l10n_ja? ( app-i18n/nkf ) +" + +PATCHES=( + "${FILESDIR}/${PN}-2.1.2-autoconf-ncurses.patch" +) + +src_prepare() { + # Fix syntax for chown. + sed -i '/chown/s/\./:/' lib/*/Makefile.am || die + # Don't use the games sub-dir since we're not using games.eclass any more. + sed -i 's:/games/:/:g' configure.ac || die + + default + eautoreconf +} + +src_configure() { + local myconf=( + --bindir="${EPREFIX}"/usr/bin + --with-setgid="nobody" + $(use_with X x) + ) + use l10n_ja || myconf+=( --disable-japanese ) + + econf "${myconf[@]}" +} + +src_install() { + default + dodoc lib/help/faq.txt + + if use l10n_ja ; then + dodoc readme.txt autopick.txt readme_eng.txt autopick_eng.txt + else + newdoc readme_eng.txt readme.txt + newdoc autopick_eng.txt autopick.txt + fi +} diff --git a/games-roguelike/hengband/metadata.xml b/games-roguelike/hengband/metadata.xml index 8f0fc036cdbc..c1857cbd91cf 100644 --- a/games-roguelike/hengband/metadata.xml +++ b/games-roguelike/hengband/metadata.xml @@ -6,6 +6,6 @@ <name>Gentoo Games Project</name> </maintainer> <upstream> - <remote-id type="sourceforge-jp">hengband</remote-id> + <remote-id type="osdn">hengband</remote-id> </upstream> </pkgmetadata> diff --git a/games-roguelike/stone-soup/Manifest b/games-roguelike/stone-soup/Manifest index 0ce9790842c9..55f976d75da7 100644 --- a/games-roguelike/stone-soup/Manifest +++ b/games-roguelike/stone-soup/Manifest @@ -1,4 +1,6 @@ -AUX make.patch 2728 BLAKE2B 94930ab98012754cc2760dbffc905173bafc0303d492e3f1180f7d4fcff1bd12aef3ea3f74c2ded37cb36c66cecd09003dc630ba8090605bffe52f7ae087c165 SHA512 7144caa5e4a4612c32efe5ccbee5763fa271f1d887218a42740a2b507babd67444f834e75cee645c03a0499c0135df118ede4a52e222ea05fac8b31846696bc4 +AUX make-advpng.patch 501 BLAKE2B 06ea1fdc6f9fa9c26f39493c074213c517434e376934faff2231a5600715af9122fb7cbdc00a6c1c8b1301e5a22f11493bd72de42d94c8d802f680f0de338ae4 SHA512 28f6bfcdc14c92ce6ff041a93d156af7a0e45609a6c97af0e3ec749e86d9b33e9a2aa46f664c69173ad08c1cc0985c4121d452954b8ffe7f56558fd529f503be +AUX make-no-png-dep-fix.patch 2728 BLAKE2B 94930ab98012754cc2760dbffc905173bafc0303d492e3f1180f7d4fcff1bd12aef3ea3f74c2ded37cb36c66cecd09003dc630ba8090605bffe52f7ae087c165 SHA512 7144caa5e4a4612c32efe5ccbee5763fa271f1d887218a42740a2b507babd67444f834e75cee645c03a0499c0135df118ede4a52e222ea05fac8b31846696bc4 +AUX make.patch 3190 BLAKE2B 82322638290720242d1bfbf9995dce61e2ba857716cb233297ec4e5f32ef1cf9c88730a17b8dbf78897c635660a5beea9f88da51d0dcdf10f2490609bc7e4b62 SHA512 15fc91a939997b67249638c87071a1c7e6d7b5ed2625e14ca48cc7721ca0216d6b4590da40070077b31d9380ed96626ec7c80c780b1f9a8bba74a2d4800fb1ed AUX rltiles-make.patch 1704 BLAKE2B b740e8b305e9071a9b024589e4ef6cb4fd088d4424e35ab164f920ec0cf06b94a46b19ac7d223d5eac3ca92bb2565efea00731a556e429056041cddb5658988a SHA512 378bea1e53477c881b93f824e45231b13c34318e34cf1413325a642d2d4f7f16c654b00584bec552238e1e2ec6e8046b67ea7cbd5aa4cb6ecf9fb6a70d600dd9 DIST stone-soup-0.25.png 1351 BLAKE2B cc31abd59701aa6f0fb0bdcd90630ceebf7b3cb8b60f0e2817f8800c5bc4b3a5b9fef63c90a97b6248f306e7e3da0df3863a2195b8771863344d2443e7956d59 SHA512 4695204c8b936f7aac1ba15b02a6115a955fb2c56aa9a0b968ff007bc9a1a59b608110d60cce5625a9b92cd2c869bbea7e15433a53c1a338622809477a5846bc DIST stone-soup-0.25.svg 68546 BLAKE2B 7c66286c9e8a3516e8483b3edb628a59fce29d8d248c3fd5b06e308782bbc651814f21ec958b30c36074a2576ced4bb10f291b5236da6f6e865ce1d7cefdf96d SHA512 dca555271faf704eb8ecdf5ee8a763df42cdeba94e9c163608c438cfc73c6fbf53416547050cad57f477ade191842e701785b65b7a9f18e27ceab05df8f2f75f @@ -8,12 +10,20 @@ DIST stone-soup-0.27.png 1351 BLAKE2B cc31abd59701aa6f0fb0bdcd90630ceebf7b3cb8b6 DIST stone-soup-0.27.svg 68546 BLAKE2B 7c66286c9e8a3516e8483b3edb628a59fce29d8d248c3fd5b06e308782bbc651814f21ec958b30c36074a2576ced4bb10f291b5236da6f6e865ce1d7cefdf96d SHA512 dca555271faf704eb8ecdf5ee8a763df42cdeba94e9c163608c438cfc73c6fbf53416547050cad57f477ade191842e701785b65b7a9f18e27ceab05df8f2f75f DIST stone-soup-0.28.png 1351 BLAKE2B cc31abd59701aa6f0fb0bdcd90630ceebf7b3cb8b60f0e2817f8800c5bc4b3a5b9fef63c90a97b6248f306e7e3da0df3863a2195b8771863344d2443e7956d59 SHA512 4695204c8b936f7aac1ba15b02a6115a955fb2c56aa9a0b968ff007bc9a1a59b608110d60cce5625a9b92cd2c869bbea7e15433a53c1a338622809477a5846bc DIST stone-soup-0.28.svg 68546 BLAKE2B 7c66286c9e8a3516e8483b3edb628a59fce29d8d248c3fd5b06e308782bbc651814f21ec958b30c36074a2576ced4bb10f291b5236da6f6e865ce1d7cefdf96d SHA512 dca555271faf704eb8ecdf5ee8a763df42cdeba94e9c163608c438cfc73c6fbf53416547050cad57f477ade191842e701785b65b7a9f18e27ceab05df8f2f75f +DIST stone-soup-0.29.0_pre20220522.tar.gz 16361027 BLAKE2B 6155ce9a56a99b5845ae9ab1747adaed5c3b0e6155eeb42a3a7cba026819701e9b8de72a7e83996f8a3892bfc8119c446feffeb639831be76c626e130ccd8cda SHA512 e026b314d94c45bb91ca41d0ab52003902718dadd16c536fbef6a49348b837a04d48d7eccf43d3e6b810ab4b38d11fe5ede3cd88b6925762b6a7fcadfdf8f936 +DIST stone-soup-0.29.png 1351 BLAKE2B cc31abd59701aa6f0fb0bdcd90630ceebf7b3cb8b60f0e2817f8800c5bc4b3a5b9fef63c90a97b6248f306e7e3da0df3863a2195b8771863344d2443e7956d59 SHA512 4695204c8b936f7aac1ba15b02a6115a955fb2c56aa9a0b968ff007bc9a1a59b608110d60cce5625a9b92cd2c869bbea7e15433a53c1a338622809477a5846bc +DIST stone-soup-0.29.svg 68546 BLAKE2B 7c66286c9e8a3516e8483b3edb628a59fce29d8d248c3fd5b06e308782bbc651814f21ec958b30c36074a2576ced4bb10f291b5236da6f6e865ce1d7cefdf96d SHA512 dca555271faf704eb8ecdf5ee8a763df42cdeba94e9c163608c438cfc73c6fbf53416547050cad57f477ade191842e701785b65b7a9f18e27ceab05df8f2f75f DIST stone_soup-0.25.1.zip 95477710 BLAKE2B 0b38a6c7cb7c4c87acccb861b5aae665cd2b6b532f6e86d4a9fa594e0d363b86b4af1ea47275f7fd026ea69d85215be8cdf46258bd620e738b4850e5eceed006 SHA512 fa7e8be582c5c6615531884ade4c113542c06c164b6912095c1adf2f16a31cb2ecce057d74132b11b1b1c256a77433037948d4e54819739b7e222cc896cd5220 DIST stone_soup-0.26.1.zip 95585384 BLAKE2B 6d1cb99fc44e918cad4144608f259e67a26df444b93c8501590ff209e8856fd08c514d4c8c78cb0848d8e6127cdf4360b47d21ced5d919da982421934b46102d SHA512 637f1a07e9f35e18eda10c17dc28449364c56aee8456497e30552acb55608a9433cff8b64af877049c21cb2a42eb2fcad28f58a7e57a1d835eb8c252e580205d DIST stone_soup-0.27.1.zip 96934633 BLAKE2B 8821920a4faad9474f08a34ae3c272cb9dcd3ddeb9029e033c22eb8e6650ef20bbc30e0c0ca1556d08c1b7b898fdbdd3667a3ac9a8527e0c322cd8c78ab391bb SHA512 845dafc9895ada3712903de63b95cca9eeb66160e4a04ba21193d916447fca8e7248b851f1e938f43b8d3937cf4f4437443bdc4fe2da893fe3918fed4e0b5204 DIST stone_soup-0.28.0.zip 98876317 BLAKE2B 10f554ea004778b6a2537caa2f994c8e7b12e190ddaaf55f9fb5d2499b91ee6d15d63a9d50167528c1625058bc262c5cba8ba08235fc377e83329ba5f80158be SHA512 7316175ccf6efea376a8a9157f9c4d1786f59c544af39e5ff28a9fcd889e23ef58c2a3680df46807c84b2ce0feb347e661c929195e8affb3d3f98c24832b17e0 -EBUILD stone-soup-0.25.1-r102.ebuild 4849 BLAKE2B d4b8cc74e22ba3ca1c4813aaebdb374a5b148030fab4aa293441fe2ac8c819d9134d0cd0b0e5948bb808fe3d8ecee984800bec6af9b7ded400856c409ee96961 SHA512 bc93054ef0b17d525c217182310554da9941443e9017dd7c27c22fd08182fb1facda59f6216575bb894ca93ded7eda6f76d65f186fdd7fa72e1e171a17f232c6 -EBUILD stone-soup-0.26.1-r1.ebuild 5062 BLAKE2B 484cf705f8660d7c115d83833d5126a7a78fbbd9e4aefb450705729a20b225021841a7b13f75960a852426f6901393d9fbf99eb14142bbccf17222eae78d67cc SHA512 c034c53667c3b64e635487d4d3ec22fd0b4043d2c52bebaf8a826f1285c3d84716884d53e83078c2556d2bd5216c395180461b4f5f2bb5d042f96e067c1f390a -EBUILD stone-soup-0.27.1.ebuild 4849 BLAKE2B f6e59e7b5f997de239b2be47a288a6bc457d8bfcb432d57892fb2c9398597f8b63f402c036bb94bd72033ab6e821ebb6d728bc448d90dd2fdb3e0ee378581db3 SHA512 53b28b736663053ee5841a8e2818748758381c44d2a700ddd43769c9554d2a70f7d341bde4be3704827de9a4d6ee3030220963ad50b7c9f248ebdb5155017d92 -EBUILD stone-soup-0.28.0.ebuild 5446 BLAKE2B 6903899a252925bed8428ad79fce3654aae1781c8e6ac600103213e3484ea2349159100d15e5f1d703603b80c09f08d87235ff7e066d6aa4bc06fa8a804cc313 SHA512 61d9e50c3c6292ecefb7fde17366a73be58afe55727ce335315711468eb0c9b7c42b43f91d1fb0e349dd8db5f2929f3dfbec391b6dc72c41722c44abdaca7ca7 -MISC metadata.xml 1620 BLAKE2B c010b68c8a3287ab8015f4111ecdf32cf49801b133e31c782d3c72f74e5805e7929cd169ef21a247a484d7398ce688e3e1196ecaa265f6740261e95592d30e1d SHA512 e2c62e86f83eb9be7badd06573b2ad142dffba70924a5aa4fcde847ce141edf2f9a767285ff8aa263c90e1963611e07664e4d9de06d2d7c89a4a9a0df1c42615 +EBUILD stone-soup-0.25.1-r102.ebuild 4864 BLAKE2B db1579a905e9830253e473268b703d93bcdb4049ee4b8baf05727ba9e09546f60c384599fcbf55e7b17859b0cf50cdffdec6bafe3828ab862f43927e7e979cfc SHA512 d805258ec6059b690c9ba762ae39ec4e34d9d7a9b3bce7c0edb0645da8caf44bdabdf36e8d9b454cfb27179894ce81b3f01e32ae99d900f05261d2ef047f7cd0 +EBUILD stone-soup-0.25.1-r103.ebuild 5009 BLAKE2B f5b8398549c5795bd7be3f2fab6fa3f152b3df6a8fc12edaec850361d79edb429d8e155dc5ef36740f7776961fbd8f09275f2822553126bd401e8a39bbfdf72c SHA512 0bd3db7af966b4a880bcfb62cec62743aaf4ce071973f7f953f64095d19eb34fc4a40762b89a6973d198dce4a704ef89db53459472c8c4041feafbabdc8c0a9c +EBUILD stone-soup-0.26.1-r1.ebuild 5077 BLAKE2B 2c5a311b29921349f247095ff15282510e6d9563a973a533bc49f25cb05a6d423befff60eeeea1739a1e39bcffc17b779663c423eef03322edfd968093d4f034 SHA512 ecb2951cdfb3f73e2c122eed0f7a86f6323e0eb28ae4ae40b2f6b8a455817ec07a216a782c9ed85449994ab735f0d93c7e17c95e1963a9e077da3a6fe7b21de3 +EBUILD stone-soup-0.26.1-r2.ebuild 5222 BLAKE2B 7191e7b373999c69b41a17615d30847d9c3adc03cf5a79ceffc9f7ad7d0b0660b09d87d00ae7fe087dd04fd44b18ce4019326f21420035d4273a698ce264f41f SHA512 d192d73c7be60ed413c05aa8b383b2158d81a40c7b875ac231943447fce6a72d26b0f5337c68adb4bc7518c832e51f5dcfe60049e7979a0eff2ae2fff1e62b2f +EBUILD stone-soup-0.27.1-r1.ebuild 5009 BLAKE2B 7011dba6c4c08ad5d72192da939e87fa5431da161a6696c76382d8e53ac94d5dd02c218b66d80c2280304ca5730752e7ff1682da688fbec04158d8099a67a899 SHA512 1565168d6e6469fde1d27c493c5825eafaf663f167685969519d9526c5a1a0acbc96bd7468ba2aa860444af06d700bc9f5b3e18187819f1eb0df3efc585e47aa +EBUILD stone-soup-0.27.1.ebuild 4864 BLAKE2B fe2fcb78fadb8e8dc9cd9084e511e82867d39d9254be85769aabf8e8075be5d1d3f35dcc7ae81ae027ed9826c1e0b092fe3887afdf72f9f41d6c518c6ab01de0 SHA512 4cf1ce6683e724bc2bc9d46aaec73f63e13a45837d594e4715731b1effa2152e51e7d79ea2ed969c0967c8a824688875fc8b89002bab904313b8e5868272fbfd +EBUILD stone-soup-0.28.0-r1.ebuild 5606 BLAKE2B 16cb82e4f0a74ea25f8395c37495e0efe8016fda3c77b1c50fb19241a8bba7f6fd7b857ceea182389753061de622f64783089a8c703ba884fdb11ce0581592e9 SHA512 63c39af14be89ca6dcfc715ecf65c5ab4787985294cb3de8f2b1f8ca5b6ee12f00fd5e1f7776adf8c9f2560a1df30f46e7909602d0768c7305e459502aa93fe7 +EBUILD stone-soup-0.28.0.ebuild 5461 BLAKE2B ae415f1b9690d72a233697326651d44c5534d69a8e290ec12e06c42ca2df47c31d3572f229665f52ee70ada828e26b7ea4057c1ac64bce208274031df6efc45b SHA512 c7bf67b85583f0e0ef2e3ed394ba950574360fc804697f0f3fe90b35a8ab636855305616b677a83c9ad8c43005bea2088e2ceb7322d720d235a04f50eebe978f +EBUILD stone-soup-0.29.0_pre20220522.ebuild 5646 BLAKE2B fc9496550abd9d4aac1e84e459c100f25cc470d15dc68823d46f423e2c7b374bc4f80fa7b72188595cafc934d37c212e798b5a65d4445321f6eebf11d2005270 SHA512 dfb0844d8b3a7b82179d15796ee8918eb5a4a4c5c4c009f755c40f41ae3d3a755ffe49b6ba6d8c9fee257112b0bd78780a055ff71476793ce17896d6a49f4fae +MISC metadata.xml 1684 BLAKE2B 4d3fe12186ce860f5b049b5b2cdb626f9ab095d688163739a972e0f53a7d835c191dbec0ee4868bb575648cbd3c818ed2fdec44b75730855ea5d8bc3eaf4996c SHA512 9dbe6b3c720b81887c74b0a5e81a0ba5e410d947a6560f66cbb4605c090dfa46a897f8550191e6c6ce7ec06a7460d0e3c625afe7f5ee41e32ab3b800887463cd diff --git a/games-roguelike/stone-soup/files/make-advpng.patch b/games-roguelike/stone-soup/files/make-advpng.patch new file mode 100644 index 000000000000..683e478212b4 --- /dev/null +++ b/games-roguelike/stone-soup/files/make-advpng.patch @@ -0,0 +1,21 @@ +--- a/Makefile 2022-05-22 11:54:15.819138403 -0500 ++++ b/Makefile 2022-05-22 11:56:24.475145274 -0500 +@@ -1080,8 +1080,7 @@ + + ifdef TILES_ANY + ifndef NO_OPTIMIZE +- PNGCRUSH = pngcrush -q -m 113 +- PNGCRUSH_LABEL = PNGCRUSH ++ USE_ADVPNG = y + endif + endif + +@@ -1727,7 +1726,8 @@ + $(TILEDEFSRCS) $(TILEDEFHDRS) $(ORIGTILEFILES): build-rltiles + + dat/tiles/%.png: $(RLTILES)/%.png + $(QUIET_PNGCRUSH)$(PNGCRUSH) $< $@ ++ $(QUIET_ADVPNG)$(ADVPNG) $@ + + clean-rltiles: + $(RM) $(DESTTILEFILES) diff --git a/games-roguelike/stone-soup/files/make-no-png-dep-fix.patch b/games-roguelike/stone-soup/files/make-no-png-dep-fix.patch new file mode 100644 index 000000000000..b43c9c41e8c8 --- /dev/null +++ b/games-roguelike/stone-soup/files/make-no-png-dep-fix.patch @@ -0,0 +1,94 @@ +--- a/Makefile 2021-08-02 13:54:26.603900984 -0500 ++++ b/Makefile 2021-08-02 13:57:26.018910565 -0500 +@@ -186,7 +186,7 @@ + uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not') + uname_M := $(shell sh -c 'uname -m 2>/dev/null || echo not') + +-HOST := $(shell sh -c 'cc -dumpmachine || echo unknown') ++HOST := + ARCH := $(HOST) + + ifdef CROSSHOST +@@ -457,15 +457,7 @@ + GCC_VER_SUFFIX:=-$(GCC_VER) + endif + +-# Attempt to use a full compiler name, to make +-# distcc builds work nicely. +-LMACH := $(shell gcc -dumpmachine)- +-ifeq ($(LMACH),-) + LMACH := +-endif +-ifeq ($(shell which $(LMACH)gcc$(GCC_VER_SUFFIX) > /dev/null 2> /dev/null && echo "Yes"),) +-LMACH := +-endif + + ifneq ($(FORCE_CC),) + GCC := $(FORCE_CC) +@@ -765,7 +757,6 @@ + FULLDEBUG=YesPlease + DEBUG=YesPlease + NO_OPTIMIZE=YesPlease +- COVERAGE=YesPlease + endif + + # Debug-Lite +@@ -773,7 +764,6 @@ + ifneq (,$(filter debug-lite,$(MAKECMDGOALS))) + DEBUG=YesPlease + NO_OPTIMIZE=YesPlease +- COVERAGE=YesPlease + endif + + # Profile +@@ -781,12 +771,10 @@ + ifneq (,$(filter profile,$(MAKECMDGOALS))) + FULLDEBUG=YesPlease + DEBUG=YesPlease +- COVERAGE=YesPlease + endif + + # Unit tests + ifneq (,$(filter catch2-tests,$(MAKECMDGOALS))) +- COVERAGE=YesPlease + endif + + ifdef HURRY +@@ -938,7 +926,7 @@ + INSTALL_FONTS += "$(PROPORTIONAL_FONT)" + endif + else +- SYS_PROPORTIONAL_FONT = $(shell util/find_font "$(OUR_PROPORTIONAL_FONT)") ++ SYS_PROPORTIONAL_FONT = /usr/share/fonts/dejavu/DejaVuSans.ttf + ifneq (,$(SYS_PROPORTIONAL_FONT)) + ifeq (,$(COPY_FONTS)) + DEFINES += -DPROPORTIONAL_FONT=\"$(SYS_PROPORTIONAL_FONT)\" +@@ -958,7 +946,7 @@ + INSTALL_FONTS += "$(MONOSPACED_FONT)" + endif + else +- SYS_MONOSPACED_FONT = $(shell util/find_font "$(OUR_MONOSPACED_FONT)") ++ SYS_MONOSPACED_FONT = /usr/share/fonts/dejavu/DejaVuSansMono.ttf + ifneq (,$(SYS_MONOSPACED_FONT)) + ifeq (,$(COPY_FONTS)) + DEFINES += -DMONOSPACED_FONT=\"$(SYS_MONOSPACED_FONT)\" +@@ -1187,9 +1175,8 @@ + + LANGUAGES = $(filter-out en, $(notdir $(wildcard dat/descript/??))) + SRC_PKG_BASE := stone_soup +-SRC_VERSION := $(shell git describe --tags $(MERGE_BASE) 2>/dev/null || cat util/release_ver) ++SRC_VERSION := $(shell cat util/release_ver) + MAJOR_VERSION = $(shell echo "$(SRC_VERSION)"|$(SED) -r 's/-.*//;s/^([^.]+\.[^.]+).*/\1/') +-RECENT_TAG := $(shell git describe --abbrev=0 --tags $(MERGE_BASE)) + WINARCH := $(shell $(GXX) -dumpmachine | grep -q x64_64 && echo win64 || echo win32) + + export SRC_VERSION +@@ -1523,7 +1510,7 @@ + endif + endif + +-install: all install-data ++install: install-data + [ -d $(prefix_fp)/$(bin_prefix) ] || mkdir -p $(prefix_fp)/$(bin_prefix) + $(COPY) $(GAME) $(prefix_fp)/$(bin_prefix)/ + $(STRIP) $(prefix_fp)/$(bin_prefix)/$(GAME) diff --git a/games-roguelike/stone-soup/files/make.patch b/games-roguelike/stone-soup/files/make.patch index b43c9c41e8c8..e0d086520099 100644 --- a/games-roguelike/stone-soup/files/make.patch +++ b/games-roguelike/stone-soup/files/make.patch @@ -1,5 +1,5 @@ ---- a/Makefile 2021-08-02 13:54:26.603900984 -0500 -+++ b/Makefile 2021-08-02 13:57:26.018910565 -0500 +--- a/Makefile 2022-05-22 11:25:51.733047395 -0500 ++++ b/Makefile 2022-05-22 11:42:54.240102003 -0500 @@ -186,7 +186,7 @@ uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not') uname_M := $(shell sh -c 'uname -m 2>/dev/null || echo not') @@ -9,7 +9,7 @@ ARCH := $(HOST) ifdef CROSSHOST -@@ -457,15 +457,7 @@ +@@ -451,15 +451,7 @@ GCC_VER_SUFFIX:=-$(GCC_VER) endif @@ -25,7 +25,7 @@ ifneq ($(FORCE_CC),) GCC := $(FORCE_CC) -@@ -765,7 +757,6 @@ +@@ -759,7 +751,6 @@ FULLDEBUG=YesPlease DEBUG=YesPlease NO_OPTIMIZE=YesPlease @@ -33,7 +33,7 @@ endif # Debug-Lite -@@ -773,7 +764,6 @@ +@@ -767,7 +758,6 @@ ifneq (,$(filter debug-lite,$(MAKECMDGOALS))) DEBUG=YesPlease NO_OPTIMIZE=YesPlease @@ -41,7 +41,7 @@ endif # Profile -@@ -781,12 +771,10 @@ +@@ -775,12 +765,10 @@ ifneq (,$(filter profile,$(MAKECMDGOALS))) FULLDEBUG=YesPlease DEBUG=YesPlease @@ -54,7 +54,7 @@ endif ifdef HURRY -@@ -938,7 +926,7 @@ +@@ -932,7 +920,7 @@ INSTALL_FONTS += "$(PROPORTIONAL_FONT)" endif else @@ -63,7 +63,7 @@ ifneq (,$(SYS_PROPORTIONAL_FONT)) ifeq (,$(COPY_FONTS)) DEFINES += -DPROPORTIONAL_FONT=\"$(SYS_PROPORTIONAL_FONT)\" -@@ -958,7 +946,7 @@ +@@ -952,7 +940,7 @@ INSTALL_FONTS += "$(MONOSPACED_FONT)" endif else @@ -72,7 +72,22 @@ ifneq (,$(SYS_MONOSPACED_FONT)) ifeq (,$(COPY_FONTS)) DEFINES += -DMONOSPACED_FONT=\"$(SYS_MONOSPACED_FONT)\" -@@ -1187,9 +1175,8 @@ +@@ -1092,14 +1080,8 @@ + + ifdef TILES_ANY + ifndef NO_OPTIMIZE +- ifneq (,$(shell which advpng)) +- USE_ADVPNG = y +- else +- ifneq (,$(shell which pngcrush)) + PNGCRUSH = pngcrush -q -m 113 + PNGCRUSH_LABEL = PNGCRUSH +- endif +- endif + endif + endif + +@@ -1181,9 +1163,8 @@ LANGUAGES = $(filter-out en, $(notdir $(wildcard dat/descript/??))) SRC_PKG_BASE := stone_soup @@ -83,7 +98,7 @@ WINARCH := $(shell $(GXX) -dumpmachine | grep -q x64_64 && echo win64 || echo win32) export SRC_VERSION -@@ -1523,7 +1510,7 @@ +@@ -1511,7 +1492,7 @@ endif endif @@ -92,3 +107,13 @@ [ -d $(prefix_fp)/$(bin_prefix) ] || mkdir -p $(prefix_fp)/$(bin_prefix) $(COPY) $(GAME) $(prefix_fp)/$(bin_prefix)/ $(STRIP) $(prefix_fp)/$(bin_prefix)/$(GAME) +@@ -1747,9 +1728,6 @@ + + dat/tiles/%.png: $(RLTILES)/%.png + $(QUIET_PNGCRUSH)$(PNGCRUSH) $< $@ +-ifdef USE_ADVPNG +- $(QUIET_ADVPNG)$(ADVPNG) $@ +-endif + + clean-rltiles: + $(RM) $(DESTTILEFILES) diff --git a/games-roguelike/stone-soup/metadata.xml b/games-roguelike/stone-soup/metadata.xml index 3d2030e7ea4d..1893130c23a1 100644 --- a/games-roguelike/stone-soup/metadata.xml +++ b/games-roguelike/stone-soup/metadata.xml @@ -15,12 +15,14 @@ <remote-id type="sourceforge">crawl-ref</remote-id> </upstream> <use> - <flag name="tiles">Enable for graphical (tiled) build. - (can be enabled on top of ncurses) + <flag name="advpng">Use alternate png optimization. </flag> <flag name="ncurses">Enable for console (uses ncurses) based build. (can be enabled on top of tiles) </flag> + <flag name="tiles">Enable for graphical (tiled) build. + (can be enabled on top of ncurses) + </flag> </use> <longdescription lang="en"> Dungeon Crawl Stone Soup is a free roguelike game of exploration diff --git a/games-roguelike/stone-soup/stone-soup-0.25.1-r102.ebuild b/games-roguelike/stone-soup/stone-soup-0.25.1-r102.ebuild index c78e6a378ad4..caf09a0a1313 100644 --- a/games-roguelike/stone-soup/stone-soup-0.25.1-r102.ebuild +++ b/games-roguelike/stone-soup/stone-soup-0.25.1-r102.ebuild @@ -63,7 +63,7 @@ DEPEND="${RDEPEND} S=${WORKDIR}/${MY_P}/source PATCHES=( - "${FILESDIR}"/make.patch + "${FILESDIR}"/make-no-png-dep-fix.patch "${FILESDIR}"/rltiles-make.patch ) diff --git a/games-roguelike/stone-soup/stone-soup-0.25.1-r103.ebuild b/games-roguelike/stone-soup/stone-soup-0.25.1-r103.ebuild new file mode 100644 index 000000000000..67a30f696915 --- /dev/null +++ b/games-roguelike/stone-soup/stone-soup-0.25.1-r103.ebuild @@ -0,0 +1,203 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +LUA_COMPAT=( lua5-{1..3} ) +PYTHON_COMPAT=( python3_{7,8,9,10} ) +VIRTUALX_REQUIRED="manual" +inherit desktop python-any-r1 lua-single xdg-utils toolchain-funcs + +MY_P="stone_soup-${PV}" +DESCRIPTION="Role-playing roguelike game of exploration and treasure-hunting in dungeons" +HOMEPAGE="https://crawl.develz.org" +SLOT="0.25" +SRC_URI=" + https://github.com/crawl/crawl/releases/download/${PV}/${PN/-/_}-${PV}.zip + https://dev.gentoo.org/~stasibear/distfiles/${PN}.png -> ${PN}-${SLOT}.png + https://dev.gentoo.org/~stasibear/distfiles/${PN}.svg -> ${PN}-${SLOT}.svg +" + +# 3-clause BSD: mt19937ar.cc, MSVC/stdint.h +# 2-clause BSD: all contributions by Steve Noonan and Jesse Luehrs +# Public Domain|CC0: most of tiles +# MIT: json.cc/json.h, some .js files in webserver/static/scripts/contrib/ +LICENSE="GPL-2 BSD BSD-2 public-domain CC0-1.0 MIT" +KEYWORDS="~amd64 ~x86" +IUSE="advpng debug ncurses sound test +tiles" +RESTRICT="!test? ( test )" + +RDEPEND=" + ${LUA_DEPS} + dev-db/sqlite:3 + sys-libs/zlib + !ncurses? ( !tiles? ( sys-libs/ncurses:0 ) ) + ncurses? ( sys-libs/ncurses:0 ) + tiles? ( + media-fonts/dejavu + media-libs/freetype:2 + media-libs/libpng:0 + sound? ( + media-libs/libsdl2[X,opengl,sound,video] + media-libs/sdl2-mixer + ) + !sound? ( media-libs/libsdl2[X,opengl,video] ) + media-libs/sdl2-image[png] + virtual/glu + virtual/opengl + )" +DEPEND="${RDEPEND} + test? ( dev-cpp/catch:0 ) + tiles? ( + sys-libs/ncurses:0 + ) + " +BDEPEND=" + app-arch/unzip + dev-lang/perl + ${PYTHON_DEPS} + $(python_gen_any_dep 'dev-python/pyyaml[${PYTHON_USEDEP}]') + sys-devel/flex + tiles? ( + advpng? ( + app-arch/advancecomp + ) + !advpng? ( + media-gfx/pngcrush + ) + ) + virtual/pkgconfig + virtual/yacc + " + +S=${WORKDIR}/${MY_P}/source +PATCHES=( + "${FILESDIR}"/make.patch + "${FILESDIR}"/rltiles-make.patch +) + +python_check_deps() { + has_version "dev-python/pyyaml[${PYTHON_USEDEP}]" +} + +pkg_setup() { + + python-any-r1_pkg_setup + + if use !ncurses && use !tiles ; then + ewarn "Neither ncurses nor tiles frontend" + ewarn "selected, choosing ncurses only." + ewarn "Note that you can also enable both." + fi + + if use sound && use !tiles ; then + ewarn "Sound support is only available with tiles." + fi +} + +src_prepare() { + default + python_fix_shebang "${S}/util/species-gen.py" + + if use advpng; then + eapply "${FILESDIR}/make-advpng.patch" + fi + + sed -i -e "s/GAME = crawl$/GAME = crawl-${SLOT}/" "${S}/Makefile" \ + || die "Couldn't append slot to executable name" + + # Replace bundled catch2 package with system implementation + # https://bugs.gentoo.org/829950 + if use test; then + cp /usr/include/catch2/catch.hpp "${S}/catch2-tests" || die "Couldn't substitute system catch2" + fi +} + +src_compile() { + + # Insurance that we're not using bundled lib sources + rm -rf contrib || die "Couldn't delete contrib directory" + + myemakeargs=( + $(usex debug "FULLDEBUG=y DEBUG=y" "") + BUILD_LUA= + AR="$(tc-getAR)" + CFOPTIMIZE='' + CFOTHERS="${CXXFLAGS}" + CONTRIBS= + DATADIR="/usr/share/${PN}-${SLOT}" + FORCE_CC="$(tc-getCC)" + FORCE_CXX="$(tc-getCXX)" + LDFLAGS="${LDFLAGS}" + MAKEOPTS="${MAKEOPTS}" + PKGCONFIG="$(tc-getPKG_CONFIG)" + RANLIB="$(tc-getRANLIB)" + SAVEDIR="~/.crawl-${SLOT}" + SOUND=$(usex sound "y" "") + STRIP=touch + USE_LUAJIT= + V=1 + prefix="/usr" + ) + + if use ncurses || (use !ncurses && use !tiles) ; then + emake "${myemakeargs[@]}" + # move it in case we build both variants + use tiles && { mv "crawl-${SLOT}" "${WORKDIR}"/crawl-ncurses-${SLOT} || die ;} + fi + + if use tiles ; then + emake "${myemakeargs[@]}" clean + emake "${myemakeargs[@]}" "TILES=y" + fi +} + +src_test() { + emake "${myemakeargs[@]}" \ + $(usex tiles "TILES=y" "") \ + catch2-tests +} + +src_install() { + emake "${myemakeargs[@]}" \ + $(usex tiles "TILES=y" "") \ + DESTDIR="${D}" \ + prefix_fp="" \ + bin_prefix="${D}/usr/bin" \ + install + + [[ -e "${WORKDIR}/crawl-ncurses-${SLOT}" ]] && dobin "${WORKDIR}/crawl-ncurses-${SLOT}" + + # don't relocate docs, needed at runtime + rm -rf "${D}/usr/share/${PN}-${SLOT}"/docs/license + + mv "${WORKDIR}/${MY_P}"/docs/crawl.6 "${WORKDIR}/${MY_P}/docs/crawl-${SLOT}.6" \ + || die "Couldn't append slot to man page name" + doman "${WORKDIR}/${MY_P}/docs/crawl-${SLOT}.6" + + # icons and menu for graphical build + if use tiles ; then + doicon -s 48 "${DISTDIR}"/${PN}-${SLOT}.png + doicon -s scalable "${DISTDIR}"/${PN}-${SLOT}.svg + make_desktop_entry "crawl-${SLOT}" "crawl-${SLOT}" "crawl-${SLOT}" + fi +} + +pkg_postinst() { + xdg_icon_cache_update + + elog "crawl is a slotted install that supports having" + elog "multiple versions installed. The binary has the" + elog "slot appended, e.g. 'crawl-"${SLOT}"'." + + if use tiles && use ncurses ; then + elog + elog "Since you have enabled both tiles and ncurses frontends" + elog "the ncurses binary is called 'crawl-ncurses-"${SLOT}"' and the" + elog "tiles binary is called 'crawl-"${SLOT}"'." + fi +} + +pkg_postrm() { + xdg_icon_cache_update +} diff --git a/games-roguelike/stone-soup/stone-soup-0.26.1-r1.ebuild b/games-roguelike/stone-soup/stone-soup-0.26.1-r1.ebuild index 5d766d8353bb..21a11669794b 100644 --- a/games-roguelike/stone-soup/stone-soup-0.26.1-r1.ebuild +++ b/games-roguelike/stone-soup/stone-soup-0.26.1-r1.ebuild @@ -63,7 +63,7 @@ DEPEND="${RDEPEND} S=${WORKDIR}/${MY_P}/source PATCHES=( - "${FILESDIR}"/make.patch + "${FILESDIR}"/make-no-png-dep-fix.patch "${FILESDIR}"/rltiles-make.patch ) diff --git a/games-roguelike/stone-soup/stone-soup-0.26.1-r2.ebuild b/games-roguelike/stone-soup/stone-soup-0.26.1-r2.ebuild new file mode 100644 index 000000000000..0d4c15a1cafe --- /dev/null +++ b/games-roguelike/stone-soup/stone-soup-0.26.1-r2.ebuild @@ -0,0 +1,207 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +LUA_COMPAT=( lua5-{1..3} ) +PYTHON_COMPAT=( python3_{7,8,9,10} ) +VIRTUALX_REQUIRED="manual" +inherit desktop python-any-r1 lua-single xdg-utils toolchain-funcs + +MY_P="stone_soup-${PV}" +DESCRIPTION="Role-playing roguelike game of exploration and treasure-hunting in dungeons" +HOMEPAGE="https://crawl.develz.org" +SLOT="0.26" +SRC_URI=" + https://github.com/crawl/crawl/releases/download/${PV}/${PN/-/_}-${PV}.zip + https://dev.gentoo.org/~stasibear/distfiles/${PN}.png -> ${PN}-${SLOT}.png + https://dev.gentoo.org/~stasibear/distfiles/${PN}.svg -> ${PN}-${SLOT}.svg +" + +# 3-clause BSD: mt19937ar.cc, MSVC/stdint.h +# 2-clause BSD: all contributions by Steve Noonan and Jesse Luehrs +# Public Domain|CC0: most of tiles +# MIT: json.cc/json.h, some .js files in webserver/static/scripts/contrib/ +LICENSE="GPL-2 BSD BSD-2 public-domain CC0-1.0 MIT" +KEYWORDS="~amd64 ~x86" +IUSE="advpng debug ncurses sound test +tiles" +RESTRICT="!test? ( test )" + +RDEPEND=" + ${LUA_DEPS} + dev-db/sqlite:3 + sys-libs/zlib + !ncurses? ( !tiles? ( sys-libs/ncurses:0 ) ) + ncurses? ( sys-libs/ncurses:0 ) + tiles? ( + media-fonts/dejavu + media-libs/freetype:2 + media-libs/libpng:0 + sound? ( + media-libs/libsdl2[X,opengl,sound,video] + media-libs/sdl2-mixer + ) + !sound? ( media-libs/libsdl2[X,opengl,video] ) + media-libs/sdl2-image[png] + virtual/glu + virtual/opengl + )" +DEPEND="${RDEPEND} + test? ( dev-cpp/catch:0 ) + tiles? ( + sys-libs/ncurses:0 + ) + " +BDEPEND=" + app-arch/unzip + dev-lang/perl + ${PYTHON_DEPS} + $(python_gen_any_dep 'dev-python/pyyaml[${PYTHON_USEDEP}]') + sys-devel/flex + tiles? ( + advpng? ( + app-arch/advancecomp + ) + !advpng? ( + media-gfx/pngcrush + ) + ) + virtual/pkgconfig + virtual/yacc + " + +S=${WORKDIR}/${MY_P}/source +PATCHES=( + "${FILESDIR}"/make.patch + "${FILESDIR}"/rltiles-make.patch +) + +python_check_deps() { + has_version "dev-python/pyyaml[${PYTHON_USEDEP}]" +} + +pkg_setup() { + + python-any-r1_pkg_setup + + if use !ncurses && use !tiles ; then + ewarn "Neither ncurses nor tiles frontend" + ewarn "selected, choosing ncurses only." + ewarn "Note that you can also enable both." + fi + + if use sound && use !tiles ; then + ewarn "Sound support is only available with tiles." + fi +} + +src_prepare() { + default + python_fix_shebang "${S}/util/species-gen.py" + + if use advpng; then + eapply "${FILESDIR}/make-advpng.patch" + fi + + sed -i -e "s/GAME = crawl$/GAME = crawl-${SLOT}/" "${S}/Makefile" \ + || die "Couldn't append slot to executable name" + + # Replace bundled catch2 package with system implementation + # https://bugs.gentoo.org/829950 + if use test; then + cp /usr/include/catch2/catch.hpp "${S}/catch2-tests" || die "Couldn't substitute system catch2" + fi +} + +src_compile() { + + # Insurance that we're not using bundled lib sources + rm -rf contrib || die "Couldn't delete contrib directory" + + myemakeargs=( + $(usex debug "FULLDEBUG=y DEBUG=y" "") + BUILD_LUA= + AR="$(tc-getAR)" + CFOPTIMIZE='' + CFOTHERS="${CXXFLAGS}" + CONTRIBS= + DATADIR="/usr/share/${PN}-${SLOT}" + FORCE_CC="$(tc-getCC)" + FORCE_CXX="$(tc-getCXX)" + LDFLAGS="${LDFLAGS}" + MAKEOPTS="${MAKEOPTS}" + PKGCONFIG="$(tc-getPKG_CONFIG)" + RANLIB="$(tc-getRANLIB)" + SAVEDIR="~/.crawl-${SLOT}" + SOUND=$(usex sound "y" "") + STRIP=touch + USE_LUAJIT= + V=1 + prefix="/usr" + ) + + if use ncurses || (use !ncurses && use !tiles) ; then + emake "${myemakeargs[@]}" + # move it in case we build both variants + use tiles && { mv "crawl-${SLOT}" "${WORKDIR}"/crawl-ncurses-${SLOT} || die ;} + fi + + if use tiles ; then + emake "${myemakeargs[@]}" clean + emake "${myemakeargs[@]}" "TILES=y" + fi +} + +src_test() { + emake "${myemakeargs[@]}" \ + $(usex tiles "TILES=y" "") \ + catch2-tests +} + +src_install() { + emake "${myemakeargs[@]}" \ + $(usex tiles "TILES=y" "") \ + DESTDIR="${D}" \ + prefix_fp="" \ + bin_prefix="${D}/usr/bin" \ + install + + [[ -e "${WORKDIR}/crawl-ncurses-${SLOT}" ]] && dobin "${WORKDIR}/crawl-ncurses-${SLOT}" + + # don't relocate docs, needed at runtime + rm -rf "${D}/usr/share/${PN}-${SLOT}"/docs/license + + mv "${WORKDIR}/${MY_P}"/docs/crawl.6 "${WORKDIR}/${MY_P}/docs/crawl-${SLOT}.6" \ + || die "Couldn't append slot to man page name" + doman "${WORKDIR}/${MY_P}/docs/crawl-${SLOT}.6" + + # icons and menu for graphical build + if use tiles ; then + doicon -s 48 "${DISTDIR}"/${PN}-${SLOT}.png + doicon -s scalable "${DISTDIR}"/${PN}-${SLOT}.svg + make_desktop_entry "crawl-${SLOT}" "crawl-${SLOT}" "crawl-${SLOT}" + fi +} + +pkg_postinst() { + xdg_icon_cache_update + + elog "Since version 0.25.1-r101, crawl is a slotted install" + elog "that supports having multiple versions installed. The" + elog "binary has the slot appended, e.g. 'crawl-"${SLOT}"'." + elog + elog "The local save directory also has the slot appended." + elog "If you have saved games from 0.25 but before 0.25.1-r101" + elog "you can 'mv ~/.crawl ~/.crawl-0.25' to fix it" + + if use tiles && use ncurses ; then + elog + elog "Since you have enabled both tiles and ncurses frontends" + elog "the ncurses binary is called 'crawl-ncurses-"${SLOT}"' and the" + elog "tiles binary is called 'crawl-"${SLOT}"'." + fi +} + +pkg_postrm() { + xdg_icon_cache_update +} diff --git a/games-roguelike/stone-soup/stone-soup-0.27.1-r1.ebuild b/games-roguelike/stone-soup/stone-soup-0.27.1-r1.ebuild new file mode 100644 index 000000000000..b4a89576bda6 --- /dev/null +++ b/games-roguelike/stone-soup/stone-soup-0.27.1-r1.ebuild @@ -0,0 +1,203 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +LUA_COMPAT=( lua5-{1..3} ) +PYTHON_COMPAT=( python3_{7,8,9,10} ) +VIRTUALX_REQUIRED="manual" +inherit desktop python-any-r1 lua-single xdg-utils toolchain-funcs + +MY_P="stone_soup-${PV}" +DESCRIPTION="Role-playing roguelike game of exploration and treasure-hunting in dungeons" +HOMEPAGE="https://crawl.develz.org" +SLOT="0.27" +SRC_URI=" + https://github.com/crawl/crawl/releases/download/${PV}/${PN/-/_}-${PV}.zip + https://dev.gentoo.org/~stasibear/distfiles/${PN}.png -> ${PN}-${SLOT}.png + https://dev.gentoo.org/~stasibear/distfiles/${PN}.svg -> ${PN}-${SLOT}.svg +" + +# 3-clause BSD: mt19937ar.cc, MSVC/stdint.h +# 2-clause BSD: all contributions by Steve Noonan and Jesse Luehrs +# Public Domain|CC0: most of tiles +# MIT: json.cc/json.h, some .js files in webserver/static/scripts/contrib/ +LICENSE="GPL-2 BSD BSD-2 public-domain CC0-1.0 MIT" +KEYWORDS="~amd64 ~x86" +IUSE="advpng debug ncurses sound test +tiles" +RESTRICT="!test? ( test )" + +RDEPEND=" + ${LUA_DEPS} + dev-db/sqlite:3 + sys-libs/zlib + !ncurses? ( !tiles? ( sys-libs/ncurses:0 ) ) + ncurses? ( sys-libs/ncurses:0 ) + tiles? ( + media-fonts/dejavu + media-libs/freetype:2 + media-libs/libpng:0 + sound? ( + media-libs/libsdl2[X,opengl,sound,video] + media-libs/sdl2-mixer + ) + !sound? ( media-libs/libsdl2[X,opengl,video] ) + media-libs/sdl2-image[png] + virtual/glu + virtual/opengl + )" +DEPEND="${RDEPEND} + test? ( dev-cpp/catch:0 ) + tiles? ( + sys-libs/ncurses:0 + ) + " +BDEPEND=" + app-arch/unzip + dev-lang/perl + ${PYTHON_DEPS} + $(python_gen_any_dep 'dev-python/pyyaml[${PYTHON_USEDEP}]') + sys-devel/flex + tiles? ( + advpng? ( + app-arch/advancecomp + ) + !advpng? ( + media-gfx/pngcrush + ) + ) + virtual/pkgconfig + virtual/yacc + " + +S=${WORKDIR}/${MY_P}/source +PATCHES=( + "${FILESDIR}"/make.patch + "${FILESDIR}"/rltiles-make.patch +) + +python_check_deps() { + has_version "dev-python/pyyaml[${PYTHON_USEDEP}]" +} + +pkg_setup() { + + python-any-r1_pkg_setup + + if use !ncurses && use !tiles ; then + ewarn "Neither ncurses nor tiles frontend" + ewarn "selected, choosing ncurses only." + ewarn "Note that you can also enable both." + fi + + if use sound && use !tiles ; then + ewarn "Sound support is only available with tiles." + fi +} + +src_prepare() { + default + python_fix_shebang "${S}/util/species-gen.py" + + if use advpng; then + eapply "${FILESDIR}/make-advpng.patch" + fi + + sed -i -e "s/GAME = crawl$/GAME = crawl-${SLOT}/" "${S}/Makefile" \ + || die "Couldn't append slot to executable name" + + # Replace bundled catch2 package with system implementation + # https://bugs.gentoo.org/829950 + if use test; then + cp /usr/include/catch2/catch.hpp "${S}/catch2-tests" || die "Couldn't substitute system catch2" + fi +} + +src_compile() { + + # Insurance that we're not using bundled lib sources + rm -rf contrib || die "Couldn't delete contrib directory" + + myemakeargs=( + $(usex debug "FULLDEBUG=y DEBUG=y" "") + BUILD_LUA= + AR="$(tc-getAR)" + CFOPTIMIZE='' + CFOTHERS="${CXXFLAGS}" + CONTRIBS= + DATADIR="/usr/share/${PN}-${SLOT}" + FORCE_CC="$(tc-getCC)" + FORCE_CXX="$(tc-getCXX)" + LDFLAGS="${LDFLAGS}" + MAKEOPTS="${MAKEOPTS}" + PKGCONFIG="$(tc-getPKG_CONFIG)" + RANLIB="$(tc-getRANLIB)" + SAVEDIR="~/.crawl-${SLOT}" + SOUND=$(usex sound "y" "") + STRIP=touch + USE_LUAJIT= + V=1 + prefix="/usr" + ) + + if use ncurses || (use !ncurses && use !tiles) ; then + emake "${myemakeargs[@]}" + # move it in case we build both variants + use tiles && { mv "crawl-${SLOT}" "${WORKDIR}"/crawl-ncurses-${SLOT} || die ;} + fi + + if use tiles ; then + emake "${myemakeargs[@]}" clean + emake "${myemakeargs[@]}" "TILES=y" + fi +} + +src_test() { + emake "${myemakeargs[@]}" \ + $(usex tiles "TILES=y" "") \ + catch2-tests +} + +src_install() { + emake "${myemakeargs[@]}" \ + $(usex tiles "TILES=y" "") \ + DESTDIR="${D}" \ + prefix_fp="" \ + bin_prefix="${D}/usr/bin" \ + install + + [[ -e "${WORKDIR}/crawl-ncurses-${SLOT}" ]] && dobin "${WORKDIR}/crawl-ncurses-${SLOT}" + + # don't relocate docs, needed at runtime + rm -rf "${D}/usr/share/${PN}-${SLOT}"/docs/license + + mv "${WORKDIR}/${MY_P}"/docs/crawl.6 "${WORKDIR}/${MY_P}/docs/crawl-${SLOT}.6" \ + || die "Couldn't append slot to man page name" + doman "${WORKDIR}/${MY_P}/docs/crawl-${SLOT}.6" + + # icons and menu for graphical build + if use tiles ; then + doicon -s 48 "${DISTDIR}"/${PN}-${SLOT}.png + doicon -s scalable "${DISTDIR}"/${PN}-${SLOT}.svg + make_desktop_entry "crawl-${SLOT}" "crawl-${SLOT}" "crawl-${SLOT}" + fi +} + +pkg_postinst() { + xdg_icon_cache_update + + elog "crawl is a slotted install that supports having" + elog "multiple versions installed. The binary has the" + elog "slot appended, e.g. 'crawl-"${SLOT}"'." + + if use tiles && use ncurses ; then + elog + elog "Since you have enabled both tiles and ncurses frontends" + elog "the ncurses binary is called 'crawl-ncurses-"${SLOT}"' and the" + elog "tiles binary is called 'crawl-"${SLOT}"'." + fi +} + +pkg_postrm() { + xdg_icon_cache_update +} diff --git a/games-roguelike/stone-soup/stone-soup-0.27.1.ebuild b/games-roguelike/stone-soup/stone-soup-0.27.1.ebuild index 5edf90bf5aa1..8c7c910c42ba 100644 --- a/games-roguelike/stone-soup/stone-soup-0.27.1.ebuild +++ b/games-roguelike/stone-soup/stone-soup-0.27.1.ebuild @@ -63,7 +63,7 @@ DEPEND="${RDEPEND} S=${WORKDIR}/${MY_P}/source PATCHES=( - "${FILESDIR}"/make.patch + "${FILESDIR}"/make-no-png-dep-fix.patch "${FILESDIR}"/rltiles-make.patch ) diff --git a/games-roguelike/stone-soup/stone-soup-0.28.0-r1.ebuild b/games-roguelike/stone-soup/stone-soup-0.28.0-r1.ebuild new file mode 100644 index 000000000000..c75e955a01e0 --- /dev/null +++ b/games-roguelike/stone-soup/stone-soup-0.28.0-r1.ebuild @@ -0,0 +1,222 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +LUA_COMPAT=( lua5-{1..3} ) +PYTHON_COMPAT=( python3_{7,8,9,10} ) +VIRTUALX_REQUIRED="manual" +inherit desktop python-any-r1 lua-single xdg-utils toolchain-funcs + +DESCRIPTION="Role-playing roguelike game of exploration and treasure-hunting in dungeons" +HOMEPAGE="https://crawl.develz.org" +SLOT="0.28" + +# Leave empty string if not a _pre release +COMMITSHA="" +if [ -z "${COMMITSHA}" ]; then + # This is a proper release + SRC_URI=" + https://github.com/crawl/crawl/releases/download/${PV}/${PN/-/_}-${PV}.zip + https://dev.gentoo.org/~stasibear/distfiles/${PN}.png -> ${PN}-${SLOT}.png + https://dev.gentoo.org/~stasibear/distfiles/${PN}.svg -> ${PN}-${SLOT}.svg + " + MY_P="stone_soup-${PV}" +else + # This is a _pre release + SRC_URI=" + https://github.com/crawl/crawl/archive/${COMMITSHA}.tar.gz -> ${P}.tar.gz + https://dev.gentoo.org/~stasibear/distfiles/${PN}.png -> ${PN}-${SLOT}.png + https://dev.gentoo.org/~stasibear/distfiles/${PN}.svg -> ${PN}-${SLOT}.svg + " + MY_P="crawl-${COMMITSHA}/crawl-ref" +fi + +# 3-clause BSD: mt19937ar.cc, MSVC/stdint.h +# 2-clause BSD: all contributions by Steve Noonan and Jesse Luehrs +# Public Domain|CC0: most of tiles +# MIT: json.cc/json.h, some .js files in webserver/static/scripts/contrib/ +LICENSE="GPL-2 BSD BSD-2 public-domain CC0-1.0 MIT" +KEYWORDS="~amd64 ~x86" +IUSE="advpng debug ncurses sound test +tiles" +RESTRICT="!test? ( test )" + +S=${WORKDIR}/${MY_P}/source +RDEPEND=" + ${LUA_DEPS} + dev-db/sqlite:3 + sys-libs/zlib + !ncurses? ( !tiles? ( sys-libs/ncurses:0 ) ) + ncurses? ( sys-libs/ncurses:0 ) + tiles? ( + media-fonts/dejavu + media-libs/freetype:2 + media-libs/libpng:0 + sound? ( + media-libs/libsdl2[X,opengl,sound,video] + media-libs/sdl2-mixer + ) + !sound? ( media-libs/libsdl2[X,opengl,video] ) + media-libs/sdl2-image[png] + virtual/glu + virtual/opengl + )" +DEPEND="${RDEPEND} + test? ( dev-cpp/catch:0 ) + tiles? ( + sys-libs/ncurses:0 + ) + " +BDEPEND=" + app-arch/unzip + dev-lang/perl + ${PYTHON_DEPS} + $(python_gen_any_dep 'dev-python/pyyaml[${PYTHON_USEDEP}]') + sys-devel/flex + tiles? ( + advpng? ( + app-arch/advancecomp + ) + !advpng? ( + media-gfx/pngcrush + ) + ) + virtual/pkgconfig + virtual/yacc + " + +PATCHES=( + "${FILESDIR}"/make.patch + "${FILESDIR}"/rltiles-make.patch +) + +python_check_deps() { + has_version "dev-python/pyyaml[${PYTHON_USEDEP}]" +} + +pkg_setup() { + + python-any-r1_pkg_setup + + if use !ncurses && use !tiles ; then + ewarn "Neither ncurses nor tiles frontend" + ewarn "selected, choosing ncurses only." + ewarn "Note that you can also enable both." + fi + + if use sound && use !tiles ; then + ewarn "Sound support is only available with tiles." + fi +} + +src_prepare() { + default + python_fix_shebang "${S}/util/species-gen.py" + + if use advpng; then + eapply "${FILESDIR}/make-advpng.patch" + fi + + sed -i -e "s/GAME = crawl$/GAME = crawl-${SLOT}/" "${S}/Makefile" \ + || die "Couldn't append slot to executable name" + + # File required for a _pre build + if ! [ -f "${S}/util/release_ver" ]; then + echo "${SLOT}" >"${S}/util/release_ver" || die "Couldn't write release_ver" + fi + + # Replace bundled catch2 package with system implementation + # https://bugs.gentoo.org/829950 + if use test; then + cp /usr/include/catch2/catch.hpp "${S}/catch2-tests" || die "Couldn't substitute system catch2" + fi +} + +src_compile() { + + # Insurance that we're not using bundled lib sources + rm -rf contrib || die "Couldn't delete contrib directory" + + myemakeargs=( + $(usex debug "FULLDEBUG=y DEBUG=y" "") + BUILD_LUA= + AR="$(tc-getAR)" + CFOPTIMIZE='' + CFOTHERS="${CXXFLAGS}" + CONTRIBS= + DATADIR="/usr/share/${PN}-${SLOT}" + FORCE_CC="$(tc-getCC)" + FORCE_CXX="$(tc-getCXX)" + LDFLAGS="${LDFLAGS}" + MAKEOPTS="${MAKEOPTS}" + PKGCONFIG="$(tc-getPKG_CONFIG)" + RANLIB="$(tc-getRANLIB)" + SAVEDIR="~/.crawl-${SLOT}" + SOUND=$(usex sound "y" "") + STRIP=touch + USE_LUAJIT= + V=1 + prefix="/usr" + ) + + if use ncurses || (use !ncurses && use !tiles) ; then + emake "${myemakeargs[@]}" + # move it in case we build both variants + use tiles && { mv "crawl-${SLOT}" "${WORKDIR}"/crawl-ncurses-${SLOT} || die ;} + fi + + if use tiles ; then + emake "${myemakeargs[@]}" clean + emake "${myemakeargs[@]}" "TILES=y" + fi +} + +src_test() { + emake "${myemakeargs[@]}" \ + $(usex tiles "TILES=y" "") \ + catch2-tests +} + +src_install() { + emake "${myemakeargs[@]}" \ + $(usex tiles "TILES=y" "") \ + DESTDIR="${D}" \ + prefix_fp="" \ + bin_prefix="${D}/usr/bin" \ + install + + [[ -e "${WORKDIR}/crawl-ncurses-${SLOT}" ]] && dobin "${WORKDIR}/crawl-ncurses-${SLOT}" + + # don't relocate docs, needed at runtime + rm -rf "${D}/usr/share/${PN}-${SLOT}"/docs/license + + mv "${WORKDIR}/${MY_P}"/docs/crawl.6 "${WORKDIR}/${MY_P}/docs/crawl-${SLOT}.6" \ + || die "Couldn't append slot to man page name" + doman "${WORKDIR}/${MY_P}/docs/crawl-${SLOT}.6" + + # icons and menu for graphical build + if use tiles ; then + doicon -s 48 "${DISTDIR}"/${PN}-${SLOT}.png + doicon -s scalable "${DISTDIR}"/${PN}-${SLOT}.svg + make_desktop_entry "crawl-${SLOT}" "crawl-${SLOT}" "crawl-${SLOT}" + fi +} + +pkg_postinst() { + xdg_icon_cache_update + + elog "crawl is a slotted install that supports having" + elog "multiple versions installed. The binary has the" + elog "slot appended, e.g. 'crawl-"${SLOT}"'." + + if use tiles && use ncurses ; then + elog + elog "Since you have enabled both tiles and ncurses frontends" + elog "the ncurses binary is called 'crawl-ncurses-"${SLOT}"' and the" + elog "tiles binary is called 'crawl-"${SLOT}"'." + fi +} + +pkg_postrm() { + xdg_icon_cache_update +} diff --git a/games-roguelike/stone-soup/stone-soup-0.28.0.ebuild b/games-roguelike/stone-soup/stone-soup-0.28.0.ebuild index f02ffe30abd0..9922b64db97c 100644 --- a/games-roguelike/stone-soup/stone-soup-0.28.0.ebuild +++ b/games-roguelike/stone-soup/stone-soup-0.28.0.ebuild @@ -77,7 +77,7 @@ DEPEND="${RDEPEND} " PATCHES=( - "${FILESDIR}"/make.patch + "${FILESDIR}"/make-no-png-dep-fix.patch "${FILESDIR}"/rltiles-make.patch ) diff --git a/games-roguelike/stone-soup/stone-soup-0.29.0_pre20220522.ebuild b/games-roguelike/stone-soup/stone-soup-0.29.0_pre20220522.ebuild new file mode 100644 index 000000000000..581562af2424 --- /dev/null +++ b/games-roguelike/stone-soup/stone-soup-0.29.0_pre20220522.ebuild @@ -0,0 +1,222 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +LUA_COMPAT=( lua5-{1..3} ) +PYTHON_COMPAT=( python3_{7,8,9,10} ) +VIRTUALX_REQUIRED="manual" +inherit desktop python-any-r1 lua-single xdg-utils toolchain-funcs + +DESCRIPTION="Role-playing roguelike game of exploration and treasure-hunting in dungeons" +HOMEPAGE="https://crawl.develz.org" +SLOT="0.29" + +# Leave empty string if not a _pre release +COMMITSHA="acb4ef3bc58aea425821c9a58552bf662dc29f07" +if [ -z "${COMMITSHA}" ]; then + # This is a proper release + SRC_URI=" + https://github.com/crawl/crawl/releases/download/${PV}/${PN/-/_}-${PV}.zip + https://dev.gentoo.org/~stasibear/distfiles/${PN}.png -> ${PN}-${SLOT}.png + https://dev.gentoo.org/~stasibear/distfiles/${PN}.svg -> ${PN}-${SLOT}.svg + " + MY_P="stone_soup-${PV}" +else + # This is a _pre release + SRC_URI=" + https://github.com/crawl/crawl/archive/${COMMITSHA}.tar.gz -> ${P}.tar.gz + https://dev.gentoo.org/~stasibear/distfiles/${PN}.png -> ${PN}-${SLOT}.png + https://dev.gentoo.org/~stasibear/distfiles/${PN}.svg -> ${PN}-${SLOT}.svg + " + MY_P="crawl-${COMMITSHA}/crawl-ref" +fi + +# 3-clause BSD: mt19937ar.cc, MSVC/stdint.h +# 2-clause BSD: all contributions by Steve Noonan and Jesse Luehrs +# Public Domain|CC0: most of tiles +# MIT: json.cc/json.h, some .js files in webserver/static/scripts/contrib/ +LICENSE="GPL-2 BSD BSD-2 public-domain CC0-1.0 MIT" +KEYWORDS="~amd64 ~x86" +IUSE="advpng debug ncurses sound test +tiles" +RESTRICT="!test? ( test )" + +S=${WORKDIR}/${MY_P}/source +RDEPEND=" + ${LUA_DEPS} + dev-db/sqlite:3 + sys-libs/zlib + !ncurses? ( !tiles? ( sys-libs/ncurses:0 ) ) + ncurses? ( sys-libs/ncurses:0 ) + tiles? ( + media-fonts/dejavu + media-libs/freetype:2 + media-libs/libpng:0 + sound? ( + media-libs/libsdl2[X,opengl,sound,video] + media-libs/sdl2-mixer + ) + !sound? ( media-libs/libsdl2[X,opengl,video] ) + media-libs/sdl2-image[png] + virtual/glu + virtual/opengl + )" +DEPEND="${RDEPEND} + test? ( dev-cpp/catch:0 ) + tiles? ( + sys-libs/ncurses:0 + ) + " +BDEPEND=" + app-arch/unzip + dev-lang/perl + ${PYTHON_DEPS} + $(python_gen_any_dep 'dev-python/pyyaml[${PYTHON_USEDEP}]') + sys-devel/flex + tiles? ( + advpng? ( + app-arch/advancecomp + ) + !advpng? ( + media-gfx/pngcrush + ) + ) + virtual/pkgconfig + virtual/yacc + " + +PATCHES=( + "${FILESDIR}"/make.patch + "${FILESDIR}"/rltiles-make.patch +) + +python_check_deps() { + has_version "dev-python/pyyaml[${PYTHON_USEDEP}]" +} + +pkg_setup() { + + python-any-r1_pkg_setup + + if use !ncurses && use !tiles ; then + ewarn "Neither ncurses nor tiles frontend" + ewarn "selected, choosing ncurses only." + ewarn "Note that you can also enable both." + fi + + if use sound && use !tiles ; then + ewarn "Sound support is only available with tiles." + fi +} + +src_prepare() { + default + python_fix_shebang "${S}/util/species-gen.py" + + if use advpng; then + eapply "${FILESDIR}/make-advpng.patch" + fi + + sed -i -e "s/GAME = crawl$/GAME = crawl-${SLOT}/" "${S}/Makefile" \ + || die "Couldn't append slot to executable name" + + # File required for a _pre build + if ! [ -f "${S}/util/release_ver" ]; then + echo "${SLOT}" >"${S}/util/release_ver" || die "Couldn't write release_ver" + fi + + # Replace bundled catch2 package with system implementation + # https://bugs.gentoo.org/829950 + if use test; then + cp /usr/include/catch2/catch.hpp "${S}/catch2-tests" || die "Couldn't substitute system catch2" + fi +} + +src_compile() { + + # Insurance that we're not using bundled lib sources + rm -rf contrib || die "Couldn't delete contrib directory" + + myemakeargs=( + $(usex debug "FULLDEBUG=y DEBUG=y" "") + BUILD_LUA= + AR="$(tc-getAR)" + CFOPTIMIZE='' + CFOTHERS="${CXXFLAGS}" + CONTRIBS= + DATADIR="/usr/share/${PN}-${SLOT}" + FORCE_CC="$(tc-getCC)" + FORCE_CXX="$(tc-getCXX)" + LDFLAGS="${LDFLAGS}" + MAKEOPTS="${MAKEOPTS}" + PKGCONFIG="$(tc-getPKG_CONFIG)" + RANLIB="$(tc-getRANLIB)" + SAVEDIR="~/.crawl-${SLOT}" + SOUND=$(usex sound "y" "") + STRIP=touch + USE_LUAJIT= + V=1 + prefix="/usr" + ) + + if use ncurses || (use !ncurses && use !tiles) ; then + emake "${myemakeargs[@]}" + # move it in case we build both variants + use tiles && { mv "crawl-${SLOT}" "${WORKDIR}"/crawl-ncurses-${SLOT} || die ;} + fi + + if use tiles ; then + emake "${myemakeargs[@]}" clean + emake "${myemakeargs[@]}" "TILES=y" + fi +} + +src_test() { + emake "${myemakeargs[@]}" \ + $(usex tiles "TILES=y" "") \ + catch2-tests +} + +src_install() { + emake "${myemakeargs[@]}" \ + $(usex tiles "TILES=y" "") \ + DESTDIR="${D}" \ + prefix_fp="" \ + bin_prefix="${D}/usr/bin" \ + install + + [[ -e "${WORKDIR}/crawl-ncurses-${SLOT}" ]] && dobin "${WORKDIR}/crawl-ncurses-${SLOT}" + + # don't relocate docs, needed at runtime + rm -rf "${D}/usr/share/${PN}-${SLOT}"/docs/license + + mv "${WORKDIR}/${MY_P}"/docs/crawl.6 "${WORKDIR}/${MY_P}/docs/crawl-${SLOT}.6" \ + || die "Couldn't append slot to man page name" + doman "${WORKDIR}/${MY_P}/docs/crawl-${SLOT}.6" + + # icons and menu for graphical build + if use tiles ; then + doicon -s 48 "${DISTDIR}"/${PN}-${SLOT}.png + doicon -s scalable "${DISTDIR}"/${PN}-${SLOT}.svg + make_desktop_entry "crawl-${SLOT}" "crawl-${SLOT}" "crawl-${SLOT}" + fi +} + +pkg_postinst() { + xdg_icon_cache_update + + elog "crawl is a slotted install that supports having" + elog "multiple versions installed. The binary has the" + elog "slot appended, e.g. 'crawl-"${SLOT}"'." + + if use tiles && use ncurses ; then + elog + elog "Since you have enabled both tiles and ncurses frontends" + elog "the ncurses binary is called 'crawl-ncurses-"${SLOT}"' and the" + elog "tiles binary is called 'crawl-"${SLOT}"'." + fi +} + +pkg_postrm() { + xdg_icon_cache_update +} diff --git a/games-roguelike/wrogue/Manifest b/games-roguelike/wrogue/Manifest index be715478acce..e4f4dafbcaf5 100644 --- a/games-roguelike/wrogue/Manifest +++ b/games-roguelike/wrogue/Manifest @@ -2,4 +2,4 @@ AUX wrogue-0.8.0b-fix-build-system.patch 844 BLAKE2B 2d5a90199a745990f01ca0b65b5 AUX wrogue-0.8.0b-string-allocation.patch 661 BLAKE2B c716bb56543535debfb18922416779b31d379bb54c7362a0e70a7377e485ebcf4878aae10f956f1a9a8506ccc8b35a6e9208fe0cf424a38ca5238481d62283a0 SHA512 d31544df6b8a92c877b8114d3f73060d99875ba56e176643a27f3b49f993efc85081a03d4eb41b2af9cc2e44094e5f9005e0fe9b8154500519eb7fc7850bd27f DIST wrogue-0.8.0b.zip 433553 BLAKE2B 9a634fe3b20497aab3431824e86b5905eeff90d757d15118227f9e2ffd8e5db9e81c12c43140b8dcd4b4a459f4c6b1b76ff54cf3be1d92dbfc8db5ab23a49fe2 SHA512 f8da3ccc26e36723bbf7654023cdd73747c2ffcb45420b77cc66495b596cc82ca9d90a2d239b12ea95c1185b11bad332cf41fe1b278ee34af6ff1479eb6e4d81 EBUILD wrogue-0.8.0b-r1.ebuild 810 BLAKE2B 691419c8748d8662bf41059b72e9b0334e91f91bd1981a9b0fdc869bdabc9a417b2fb8a8b87393aaab909e45d898ccf14f5b45aa27a356b3d88c9b71ecf7bda0 SHA512 09bf22de0a73bb735b9e64186ad3342f41f059dfd118a7f8709b6405f5af2c123550dd10c36ca31cf8772b04f3ffcdc92b0d9df15aa5fb68c9d85244f9af8d16 -MISC metadata.xml 509 BLAKE2B f2ff6beae8581099d43209d275563ac1dd1ad411d9230804f2ba0eb07aec33682ba3fb08a34e3ab3c1911d30b40d5a799b760e63de5ab3108492991e42260e99 SHA512 17600c668fc13ef693e17c1b867a0023d62797c5fd699d57f2840553f426c670e9d6b1dd88478f83c5fa0664904fa59f9ce13fb7542b4cab6dfe27a9b0d1ac47 +MISC metadata.xml 436 BLAKE2B 10772ce090f9f72cba3c99ef2fb1647de8927f39b2d994f1761d94ebc1dd2cd44caea776d7aa21db13e12ead181adac004d54112d55f534a3ea154e1ddbab24d SHA512 f81a85b801ab68b71d8dc4b8bc4cc684425573110369375d9bf0d668fabc42ccbc6a78c7ba98eb920c5d9d8365861dc5739991c03d414280131f3158e9568a7a diff --git a/games-roguelike/wrogue/metadata.xml b/games-roguelike/wrogue/metadata.xml index a97d8139b7db..968ca19a0d39 100644 --- a/games-roguelike/wrogue/metadata.xml +++ b/games-roguelike/wrogue/metadata.xml @@ -9,7 +9,4 @@ Warp Rogue is a gothic science fantasy roguelike game. It features RPG-like game mechanics, recruitable NPCs, and a consistent theme. </longdescription> - <upstream> - <remote-id type="freecode">wrogue</remote-id> - </upstream> </pkgmetadata> |