games-arcade/open-supaplex: add 7.2

Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org>
Part-of: https://codeberg.org/gentoo/gentoo/pulls/444
Merges: https://codeberg.org/gentoo/gentoo/pulls/444
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Alexey Sokolov
2026-03-28 16:28:49 +00:00
committed by Sam James
parent 0c8ec8a0ef
commit 65ec11332b
2 changed files with 51 additions and 0 deletions
+1
View File
@@ -1 +1,2 @@
DIST open-supaplex-7.1.2.tar.gz 50157943 BLAKE2B 74811edf2dbf65b21fc502703ecadaa293ac5219e0c17b6876a6c6d81c46456d3d06717b56124ce5a675dbfa2c228235479ab8e5baf33fc3618576936dc9b62c SHA512 960c916d9af142511c755babeed24e4cde71bf9b61a5d77b988c45dc9fb9065ca6c65f07b72a2c413a1a7a5158da597f72e9d4d907de9585c4a6cc410e6134f6
DIST open-supaplex-7.2.tar.gz 17696996 BLAKE2B 6faf95fa889ae6d176d1f180c021a00d59f6481636ba3f0222333c247496fd7cab1fdca7a3a98d679ce0170d8c5047692d9961fe2857f84795f1152cec333313 SHA512 267bb17320da9c26be573fc287fa299a630f05bc9982905e0503af4299a9431798d4f24ea9c19d570031bb96c243fc49524d47a23d3c4b88b6a4272d9d0a0826
@@ -0,0 +1,50 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit desktop flag-o-matic toolchain-funcs
DESCRIPTION="OSS reimplementation of Supaplex in C and SDL"
HOMEPAGE="https://github.com/sergiou87/open-supaplex"
SRC_URI="https://github.com/sergiou87/open-supaplex/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
RESTRICT="!test? ( test )"
RDEPEND="
media-libs/libsdl2[joystick,sound,video]
media-libs/sdl2-mixer[wav]
"
DEPEND="${RDEPEND}"
BDEPEND="
test? ( dev-lang/ruby )
"
src_compile() {
append-cflags -DFILE_FHS_XDG_DIRS -DFILE_DATA_PATH="${EPREFIX}/usr/share/OpenSupaplex"
emake -C linux CC="$(tc-getCC)"
}
src_test() {
emake -C tests CC="$(tc-getCC)"
# Avoid installing savegames, configs, etc, if any were written during the test
cp -R resources "${T}/test" || die
cd tests || die
# gems are not used by the test, but by default ruby fails to start if
# dev-ruby/rubygems is not installed. dev-lang/ruby depends on that package
# via PDEPEND which is why it's not available if ruby was pulled as a
# dependency to open-supaplex on clean machine.
# https://bugs.gentoo.org/739126
OPENSUPAPLEX_PATH="${T}/test" ruby --disable=gems ./run-tests.rb ./opensupaplex || die
}
src_install() {
dobin linux/opensupaplex
insinto /usr/share/OpenSupaplex
doins -r resources/*
doicon open-supaplex.svg
make_desktop_entry opensupaplex OpenSupaplex open-supaplex
}