diff options
author | Sam James <sam@gentoo.org> | 2021-08-21 22:45:08 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-08-23 05:05:48 +0100 |
commit | b763af036279c4a765c840a25dfd9cae59ba690b (patch) | |
tree | d26c8ebc10c40d92de321d96c2cbb2010a943793 /games-puzzle/splice/splice-20121120-r2.ebuild | |
parent | games-fps/ut2004-demo: use non-relative wrapper path (diff) | |
download | gentoo-b763af036279c4a765c840a25dfd9cae59ba690b.tar.gz gentoo-b763af036279c4a765c840a25dfd9cae59ba690b.tar.bz2 gentoo-b763af036279c4a765c840a25dfd9cae59ba690b.zip |
games-puzzle/splice: use non-relative wrapper path
Bug: https://bugs.gentoo.org/809356
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'games-puzzle/splice/splice-20121120-r2.ebuild')
-rw-r--r-- | games-puzzle/splice/splice-20121120-r2.ebuild | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/games-puzzle/splice/splice-20121120-r2.ebuild b/games-puzzle/splice/splice-20121120-r2.ebuild new file mode 100644 index 000000000000..4a89f862c355 --- /dev/null +++ b/games-puzzle/splice/splice-20121120-r2.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit desktop wrapper + +DESCRIPTION="An experimental and artistic puzzler set in a microbial world" +HOMEPAGE="http://www.cipherprime.com/games/splice/" +SRC_URI="splice-linux-1353389454.tar.gz" +S="${WORKDIR}"/Linux + +LICENSE="all-rights-reserved" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" + +RESTRICT="bindist fetch splitdebug" + +MYGAMEDIR=/opt/${PN} +QA_PREBUILT=" + ${MYGAMEDIR#/}/Splice* + ${MYGAMEDIR#/}/Splice_Data/Mono/* +" + +# TODO: unbundle mono? (seems hardcoded) +# icon +RDEPEND=" + virtual/glu + virtual/opengl + x11-libs/libX11 + x11-libs/libXcursor + x11-libs/libXext" + +pkg_nofetch() { + einfo "Please buy & download ${SRC_URI} from:" + einfo " ${HOMEPAGE}" + einfo "and move it to your DISTDIR directory." +} + +src_prepare() { + default + + einfo "Removing ${ARCH} unrelated files..." + rm -v Splice.x86$(usex amd64 "" "_64") || die + rm -rv Splice_Data/Mono/x86$(usex amd64 "" "_64") || die + + rm README~ || die + mv README "${T}"/ || die +} + +src_install() { + dodoc "${T}"/README + + insinto ${MYGAMEDIR} + doins -r * + + make_desktop_entry ${PN} + make_wrapper ${PN} "./Splice.x86$(usex amd64 "_64" "")" "${MYGAMEDIR}" + + fperms +x ${MYGAMEDIR}/Splice.x86$(usex amd64 "_64" "") +} |