diff options
author | Sam James <sam@gentoo.org> | 2021-08-22 03:30:46 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-08-23 05:06:03 +0100 |
commit | b966f09f7f5761ae059e3bce032042bdc00aa7ff (patch) | |
tree | 9bdb27d0cabb95e7a9ff5a413d65dcad7e47a537 /games-strategy/darwinia/darwinia-1.4.0_beta9-r3.ebuild | |
parent | games-simulation/train-valley: tidy ebuild (diff) | |
download | gentoo-b966f09f7f5761ae059e3bce032042bdc00aa7ff.tar.gz gentoo-b966f09f7f5761ae059e3bce032042bdc00aa7ff.tar.bz2 gentoo-b966f09f7f5761ae059e3bce032042bdc00aa7ff.zip |
games-strategy/darwinia: use non-relative wrapper path
Bug: https://bugs.gentoo.org/809356
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'games-strategy/darwinia/darwinia-1.4.0_beta9-r3.ebuild')
-rw-r--r-- | games-strategy/darwinia/darwinia-1.4.0_beta9-r3.ebuild | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/games-strategy/darwinia/darwinia-1.4.0_beta9-r3.ebuild b/games-strategy/darwinia/darwinia-1.4.0_beta9-r3.ebuild new file mode 100644 index 000000000000..73c5504bd035 --- /dev/null +++ b/games-strategy/darwinia/darwinia-1.4.0_beta9-r3.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +CDROM_OPTIONAL="yes" +inherit cdrom desktop unpacker wrapper + +MY_PV=${PV/_beta/b} +DESCRIPTION="The hyped indie game of the year - by the Uplink creators" +HOMEPAGE="http://www.darwinia.co.uk/support/linux.html" +SRC_URI="http://www.introversion.co.uk/darwinia/downloads/${PN}-full-${MY_PV}.sh" +S="${WORKDIR}" + +LICENSE="Introversion" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +RESTRICT="bindist mirror strip" + +RDEPEND=" + sys-libs/libstdc++-v3:5 + media-libs/libsdl[abi_x86_32(-)] + media-libs/libvorbis[abi_x86_32(-)] + virtual/glu[abi_x86_32(-)] + virtual/opengl[abi_x86_32(-)] +" + +dir=/opt/${PN} +QA_PREBUILT="${dir#1}/lib/darwinia.bin.x86" + +src_unpack() { + use cdinstall && cdrom_get_cds gamefiles/main.dat + unpack_makeself +} + +src_install() { + insinto "${dir}"/lib + exeinto "${dir}"/lib + + doins lib/{language,patch}.dat + doexe lib/darwinia.bin.x86 lib/open-www.sh + + exeinto "${dir}" + doexe bin/Linux/x86/darwinia + + if use cdinstall ; then + doins "${CDROM_ROOT}"/gamefiles/{main,sounds}.dat + fi + + dodoc README + newicon darwinian.png darwinia.png + + make_wrapper darwinia ./darwinia "${dir}" "${dir}" + make_desktop_entry darwinia "Darwinia" +} + +pkg_postinst() { + if ! use cdinstall; then + ewarn "To play the game, you need to copy main.dat and sounds.dat" + ewarn "from gamefiles/ on the game CD to ${dir}/lib/." + fi +} |