diff options
Diffstat (limited to 'games-roguelike/stone-soup/stone-soup-0.25.1-r102.ebuild')
-rw-r--r-- | games-roguelike/stone-soup/stone-soup-0.25.1-r102.ebuild | 12 |
1 files changed, 10 insertions, 2 deletions
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 de7a56e16eed..c78e6a378ad4 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 @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -24,7 +24,8 @@ SRC_URI=" # 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="debug ncurses sound +tiles" +IUSE="debug ncurses sound test +tiles" +RESTRICT="!test? ( test )" RDEPEND=" ${LUA_DEPS} @@ -51,6 +52,7 @@ DEPEND="${RDEPEND} ${PYTHON_DEPS} $(python_gen_any_dep 'dev-python/pyyaml[${PYTHON_USEDEP}]') sys-devel/flex + test? ( dev-cpp/catch:0 ) tiles? ( media-gfx/pngcrush sys-libs/ncurses:0 @@ -90,6 +92,12 @@ src_prepare() { 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() { |