# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # There are many slots for this package because people in the community # like to play old versions. Every release includes content changes # where species/spells/monsters are added or removed. The public # servers (e.g. http://crawl.akrasiac.org:8080) usually support playing # versions back to 0.11. # It's not necessary for Gentoo to support these old version but it's # something nice that our distro can offer that others don't. If the # maintenance burden becomes excessive than we can revisit that # position. EAPI=8 LUA_COMPAT=( lua5-1 ) LUA_REQ_USE="deprecated" PYTHON_COMPAT=( python3_{9,10,11,12} ) 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" # MY_SLOT to satisfy pkgcheck variable order checking MY_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}-${MY_SLOT}.png https://dev.gentoo.org/~stasibear/distfiles/${PN}.svg -> ${PN}-${MY_SLOT}.svg " S=${WORKDIR}/${MY_P}/source # 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" SLOT="${MY_SLOT}" KEYWORDS="amd64 x86" IUSE="advpng debug ncurses sound test +tiles" RESTRICT="!test? ( test )" REQUIRED_USE="${LUA_REQUIRED_USE}" 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? (