From 0e7ef53ddcc33809bcb2644d3649617113b78ea3 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 23 Sep 2022 17:30:18 +0100 Subject: gentoo auto-resync : 23:09:2022 - 17:30:17 --- games-roguelike/Manifest.gz | Bin 3050 -> 3054 bytes games-roguelike/stone-soup/Manifest | 14 +- .../stone-soup/stone-soup-0.25.1-r103.ebuild | 4 +- .../stone-soup/stone-soup-0.26.1-r2.ebuild | 4 +- .../stone-soup/stone-soup-0.27.1-r1.ebuild | 4 +- .../stone-soup/stone-soup-0.28.0-r1.ebuild | 4 +- .../stone-soup/stone-soup-0.29.0.ebuild | 2 +- .../stone-soup-0.29.0_pre20220701.ebuild | 222 -------------------- .../stone-soup/stone-soup-0.29.1.ebuild | 226 +++++++++++++++++++++ 9 files changed, 246 insertions(+), 234 deletions(-) delete mode 100644 games-roguelike/stone-soup/stone-soup-0.29.0_pre20220701.ebuild create mode 100644 games-roguelike/stone-soup/stone-soup-0.29.1.ebuild (limited to 'games-roguelike') diff --git a/games-roguelike/Manifest.gz b/games-roguelike/Manifest.gz index 67ebc6d066fd..d2fe54c0f786 100644 Binary files a/games-roguelike/Manifest.gz and b/games-roguelike/Manifest.gz differ diff --git a/games-roguelike/stone-soup/Manifest b/games-roguelike/stone-soup/Manifest index 04d10a462f1c..9dd08cabd61e 100644 --- a/games-roguelike/stone-soup/Manifest +++ b/games-roguelike/stone-soup/Manifest @@ -9,7 +9,7 @@ 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_pre20220701.tar.gz 16490746 BLAKE2B dfc4251a3c4eda66867833ac2a97178c24ebd03ce23b63d067143d7c8046821bb9f658bc53242ad56053aa117b09a5ffb7dcf499035bf5ee1aff6c8bd06b64c8 SHA512 66e95e32067e281adb3195823d34e9a13fdc8089c4bc747e35844718a29657674a0c89d2c9823a60c2bc479caa5b6eb8b4cc7e7ade990c8f14bbc34ed11555ed +DIST stone-soup-0.29.1.tar.gz 17510846 BLAKE2B 65b84797c8d8a268a3ce95de9d928e131bf6e21a1ea6ac3e72263c75f9d6288e9d95f9df6401528c06aefbda9bb642c79bf78065a65224297d33c050abf37056 SHA512 2ca49c4cd228526d47e4ad7e9556b6c26566595458423cd8e6b762298f229eb7ba273770ae1e12939ba66574a5b55e44812d06c4809d4327ed9bfd738501af04 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 @@ -17,10 +17,10 @@ DIST stone_soup-0.26.1.zip 95585384 BLAKE2B 6d1cb99fc44e918cad4144608f259e67a26d DIST stone_soup-0.27.1.zip 96934633 BLAKE2B 8821920a4faad9474f08a34ae3c272cb9dcd3ddeb9029e033c22eb8e6650ef20bbc30e0c0ca1556d08c1b7b898fdbdd3667a3ac9a8527e0c322cd8c78ab391bb SHA512 845dafc9895ada3712903de63b95cca9eeb66160e4a04ba21193d916447fca8e7248b851f1e938f43b8d3937cf4f4437443bdc4fe2da893fe3918fed4e0b5204 DIST stone_soup-0.28.0.zip 98876317 BLAKE2B 10f554ea004778b6a2537caa2f994c8e7b12e190ddaaf55f9fb5d2499b91ee6d15d63a9d50167528c1625058bc262c5cba8ba08235fc377e83329ba5f80158be SHA512 7316175ccf6efea376a8a9157f9c4d1786f59c544af39e5ff28a9fcd889e23ef58c2a3680df46807c84b2ce0feb347e661c929195e8affb3d3f98c24832b17e0 DIST stone_soup-0.29.0.zip 100424389 BLAKE2B 8b8b72a01519984dad1ee7915572e65d7578e5163a9eaf3ce5d6c1a31196b369d9417fdc255a48951f2e23c732f50e934e5edab5cb2f82e7582dcf86d7712254 SHA512 a84c8bcd6d4d50a74144068462b3b4c14d3ce40e7cf857b31516617273ee4ad2330f6591c671862c9b69a6f4812ee6e8bebee1cc9117f3570b40f0d5bec4c074 -EBUILD stone-soup-0.25.1-r103.ebuild 5051 BLAKE2B 893477dcb97c3c347236cf057a3d081758bbfceae5fbdc0fb5ae2b921378eb9c1d0b8220bb77a16d8b63602ac0b30367d33e94ace5c69554a0f82e3955055a9f SHA512 8716388a2a2f3cf2232308cabab54e9cc4f226370ee6f92353fefd797ce73ae7e48d1b42c74e31a26d393024e4c9b39c5b995418266c12d83f3190011312be07 -EBUILD stone-soup-0.26.1-r2.ebuild 5264 BLAKE2B 14d01ff96467b7c7545a0e355425394ee575861202bce96cd646f7b9f648124ec9d9e3bd9f9d2d678beb43753d9fcc3a4fe726d0b6216896e688805f1af41421 SHA512 681397aaba48190bd37b84cef5c1b775d72611e1d07ff72fda5454a654c5edd134be509b268501dd1d74b644ec68905e49aa397e543442b54cde9ac60f75862d -EBUILD stone-soup-0.27.1-r1.ebuild 5051 BLAKE2B ee032542c1e20a2b8c64e7f82b0a380020879f70b4ebaf1031b19b88b4ee9ac47b72dd2ad863c20a2089e651e794dc3eeafab7248b9efc43f9eb8959885f19f7 SHA512 398c9d87367d531c4f8a4dc92eedcc32847f7e729f2fe989c3d48e8f26112e27659f1ae573e027932b8233579e1ccac0603e1e50066f2cb4716fa6dfe140d585 -EBUILD stone-soup-0.28.0-r1.ebuild 5648 BLAKE2B 4e8c8e6fb8ab801b76e151ca346059c1405b5132b0f61808430800ac872f087e65967704e4b3275ab9096bbbb76e75267b32d1cabf36699e217db57fa4f12250 SHA512 59c228c7a7dcbd518f486c1f2e5c3806f06ecf404a7f9727bce4da5c1644eb62a9b41992d4aec38a0521ebdee38c0b4de9869830b8b57380a0915a28d3d8b61a -EBUILD stone-soup-0.29.0.ebuild 5777 BLAKE2B aa96e50d0bb79f550a374574ac1e2d9874a2d263499344d401c2db929a7e9365077e77be07f3386e0b972096dc43932d2185b537c35ce2ed2d9a473b8eab114c SHA512 ea715882632aa6a068ef9df79a6bbda0721e8ab26c327b3f9431728d3a94f7c00b2aaa2024eaeea9c24de902538ea2fba4ad62c83d416e2398dc98b520ef2804 -EBUILD stone-soup-0.29.0_pre20220701.ebuild 5688 BLAKE2B 2a209842bc8586e195e0529bfd43118e959ad0fc5fe67f4b5e9db8e6d0f100cacc71fa236db87a5bce886e204f82e67ec02153a601ccb8e347403aba53471bee SHA512 16517c1f55c6fbb17b68a38470551d10dddc936909101896aa31dfce1e713fa2877742de58149b778f72313d4ee9814478a5ab5a51da0bb63b449eaa8e8cbdaf +EBUILD stone-soup-0.25.1-r103.ebuild 5178 BLAKE2B 409be752e41373d4546634fba416c44fe523f45877b2f043251b7b7738c0703c3b2874aa8d3e426b9d051f244f9547c8223d18bff191e5901c6bf1fec0ac09a5 SHA512 9e052f218411117c0ea499212ec870a32df38218f388b5d73f72810ec509bf729e1477aa84537623b92717c12a911d8045cfdebca16af3568e306fdcee09afc1 +EBUILD stone-soup-0.26.1-r2.ebuild 5391 BLAKE2B d427603853c6a353128189937b1bce7cd527d677f791d8da4720bf4e4739aeaac2093db86f803019a2b22042680b376b41168d29d059031accb58add0298d846 SHA512 31f62a74fba003882f1bb5560f0f14076dd82e35d9f127215ddb55de77fbbba625934df238f643d5bdd35cccba13a0ba810e7de1791ace857250db3ee58b3c81 +EBUILD stone-soup-0.27.1-r1.ebuild 5178 BLAKE2B 6cabd24eaff39e4988672ae897863a003e0bb82b539ea14352b7a47f57f522d86421ccf4c9290ec491870add152953c5d426c90fb7a659c7c924a72a3cd98f4f SHA512 b33ca1f2b1a66fb3a84411a694b569cb4fbbb5a1728e7cbb115b791654f06b5e03896366eb66dd7b4e80598ba7e476c5b1eb18bd6ea3ad14a2a28754eb7ad883 +EBUILD stone-soup-0.28.0-r1.ebuild 5775 BLAKE2B 878b042ae56335aa271e3a3cf4638d7d58e9422955c40eea2f07b6dbcfd977368c615b837b5e0601e648ae3e4f2893a6d81ade909862261e34d780a84fc11e83 SHA512 c082cac5ab126754c4b925d43a823d93bf6b416832c718c7c79b7a8cc6540732fa274ff889b2247b29a33979cf9d3ea3be557653b059e55d223f7691578db7f1 +EBUILD stone-soup-0.29.0.ebuild 5775 BLAKE2B 3f4cffb59e05aa9f511a34c3a757c83b0c3f31d4eb642055d781e9a1edd6d084ba95511269eca3ae22b3830a79c6634edbc47fa464392d7f4260db37819c8f32 SHA512 da49b04075965aeda7169c47bb00858c5ee6c036df03759933e127fd9d5b904c828761a21dcb18222048c81a35dc582af0fc400e868f500fc732433dc7cd3a67 +EBUILD stone-soup-0.29.1.ebuild 5735 BLAKE2B 5f4422eac10f031e7255ff336e9f7cee665aca9b3f0a636152b1afbd4706679abb4baa42b52dcf252da15b41b40ba418f4008c9848333fab4908f7912e6d9e9c SHA512 b6a61fdbc9255dcb564765ba8b9fae7d6d87bf879d2e7b55a144edad0fd0395c3554de92d1f56d7cb7a861b645b74dfdae19d2ab916ce412e2afd31441779829 MISC metadata.xml 1684 BLAKE2B 4d3fe12186ce860f5b049b5b2cdb626f9ab095d688163739a972e0f53a7d835c191dbec0ee4868bb575648cbd3c818ed2fdec44b75730855ea5d8bc3eaf4996c SHA512 9dbe6b3c720b81887c74b0a5e81a0ba5e410d947a6560f66cbb4605c090dfa46a897f8550191e6c6ce7ec06a7460d0e3c625afe7f5ee41e32ab3b800887463cd 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 index 4e70392680ef..c031e7ff924e 100644 --- a/games-roguelike/stone-soup/stone-soup-0.25.1-r103.ebuild +++ b/games-roguelike/stone-soup/stone-soup-0.25.1-r103.ebuild @@ -123,7 +123,9 @@ src_compile() { BUILD_LUA= AR="$(tc-getAR)" CFOPTIMIZE='' - CFOTHERS="${CXXFLAGS}" + # -DLUA_COMPAT_OPENLIB=1 is required to enable the + # deprecated (in 5.1) luaL_openlib API (#869671) + CFOTHERS="${CXXFLAGS} -DLUA_COMPAT_OPENLIB=1" CONTRIBS= DATADIR="/usr/share/${PN}-${SLOT}" FORCE_CC="$(tc-getCC)" 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 index a99ba5143943..6647e4a8ac92 100644 --- a/games-roguelike/stone-soup/stone-soup-0.26.1-r2.ebuild +++ b/games-roguelike/stone-soup/stone-soup-0.26.1-r2.ebuild @@ -123,7 +123,9 @@ src_compile() { BUILD_LUA= AR="$(tc-getAR)" CFOPTIMIZE='' - CFOTHERS="${CXXFLAGS}" + # -DLUA_COMPAT_OPENLIB=1 is required to enable the + # deprecated (in 5.1) luaL_openlib API (#869671) + CFOTHERS="${CXXFLAGS} -DLUA_COMPAT_OPENLIB=1" CONTRIBS= DATADIR="/usr/share/${PN}-${SLOT}" FORCE_CC="$(tc-getCC)" 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 index c9995c1ead92..9c6b0d903512 100644 --- a/games-roguelike/stone-soup/stone-soup-0.27.1-r1.ebuild +++ b/games-roguelike/stone-soup/stone-soup-0.27.1-r1.ebuild @@ -123,7 +123,9 @@ src_compile() { BUILD_LUA= AR="$(tc-getAR)" CFOPTIMIZE='' - CFOTHERS="${CXXFLAGS}" + # -DLUA_COMPAT_OPENLIB=1 is required to enable the + # deprecated (in 5.1) luaL_openlib API (#869671) + CFOTHERS="${CXXFLAGS} -DLUA_COMPAT_OPENLIB=1" CONTRIBS= DATADIR="/usr/share/${PN}-${SLOT}" FORCE_CC="$(tc-getCC)" 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 index 503a00a72353..1d0513573630 100644 --- a/games-roguelike/stone-soup/stone-soup-0.28.0-r1.ebuild +++ b/games-roguelike/stone-soup/stone-soup-0.28.0-r1.ebuild @@ -142,7 +142,9 @@ src_compile() { BUILD_LUA= AR="$(tc-getAR)" CFOPTIMIZE='' - CFOTHERS="${CXXFLAGS}" + # -DLUA_COMPAT_OPENLIB=1 is required to enable the + # deprecated (in 5.1) luaL_openlib API (#869671) + CFOTHERS="${CXXFLAGS} -DLUA_COMPAT_OPENLIB=1" CONTRIBS= DATADIR="/usr/share/${PN}-${SLOT}" FORCE_CC="$(tc-getCC)" diff --git a/games-roguelike/stone-soup/stone-soup-0.29.0.ebuild b/games-roguelike/stone-soup/stone-soup-0.29.0.ebuild index dfe12e5420ae..641b2c72a9f8 100644 --- a/games-roguelike/stone-soup/stone-soup-0.29.0.ebuild +++ b/games-roguelike/stone-soup/stone-soup-0.29.0.ebuild @@ -37,7 +37,7 @@ fi # 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" +KEYWORDS="amd64 x86" IUSE="advpng debug ncurses sound test +tiles" RESTRICT="!test? ( test )" REQUIRED_USE="${LUA_REQUIRED_USE}" diff --git a/games-roguelike/stone-soup/stone-soup-0.29.0_pre20220701.ebuild b/games-roguelike/stone-soup/stone-soup-0.29.0_pre20220701.ebuild deleted file mode 100644 index 60e009774b02..000000000000 --- a/games-roguelike/stone-soup/stone-soup-0.29.0_pre20220701.ebuild +++ /dev/null @@ -1,222 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -LUA_COMPAT=( lua5-1 ) -PYTHON_COMPAT=( python3_{8,9,10,11} ) -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="40bbea3e7347d6647ea791ba38964496f292cc81" -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 )" -REQUIRED_USE="${LUA_REQUIRED_USE}" - -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? ( "${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.29.1.ebuild b/games-roguelike/stone-soup/stone-soup-0.29.1.ebuild new file mode 100644 index 000000000000..455921a656d5 --- /dev/null +++ b/games-roguelike/stone-soup/stone-soup-0.29.1.ebuild @@ -0,0 +1,226 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +LUA_COMPAT=( lua5-1 ) +PYTHON_COMPAT=( python3_{8,9,10,11} ) +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="" +if [ -z "${COMMITSHA}" ]; then + # This is a tagged release + # Note the archive URI and file layout changed upstream between 0.29.0 and 0.29.1 + SRC_URI=" + https://github.com/crawl/crawl/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz + " + MY_P="crawl-${PV}/crawl-ref" +else + # This is a _pre release + SRC_URI=" + https://github.com/crawl/crawl/archive/${COMMITSHA}.tar.gz -> ${P}.tar.gz + " + MY_P="crawl-${COMMITSHA}/crawl-ref" +fi +SRC_URI=" + ${SRC_URI} + 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 )" +REQUIRED_USE="${LUA_REQUIRED_USE}" + +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? ( "${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='' + # -DLUA_COMPAT_OPENLIB=1 is required to enable the + # deprecated (in 5.1) luaL_openlib API (#869671) + CFOTHERS="${CXXFLAGS} -DLUA_COMPAT_OPENLIB=1" + 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 +} -- cgit v1.2.3