diff options
author | Sam James <sam@gentoo.org> | 2021-08-21 22:45:26 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-08-23 05:05:49 +0100 |
commit | a51c0404f644252b49c6bf1532f41d57dc4486ec (patch) | |
tree | f4afe8f268852bcfaf91600e715a05bee8b15fcf /games-puzzle/tiny-and-big/tiny-and-big-1.4.1-r2.ebuild | |
parent | games-puzzle/splice: use non-relative wrapper path (diff) | |
download | gentoo-a51c0404f644252b49c6bf1532f41d57dc4486ec.tar.gz gentoo-a51c0404f644252b49c6bf1532f41d57dc4486ec.tar.bz2 gentoo-a51c0404f644252b49c6bf1532f41d57dc4486ec.zip |
games-puzzle/tiny-and-big: use non-relative wrapper path
Bug: https://bugs.gentoo.org/809356
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'games-puzzle/tiny-and-big/tiny-and-big-1.4.1-r2.ebuild')
-rw-r--r-- | games-puzzle/tiny-and-big/tiny-and-big-1.4.1-r2.ebuild | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/games-puzzle/tiny-and-big/tiny-and-big-1.4.1-r2.ebuild b/games-puzzle/tiny-and-big/tiny-and-big-1.4.1-r2.ebuild new file mode 100644 index 000000000000..983779968c63 --- /dev/null +++ b/games-puzzle/tiny-and-big/tiny-and-big-1.4.1-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="Combines elements of adventure, jump&run and physical puzzles" +HOMEPAGE="http://www.tinyandbig.com/" +SRC_URI="tinyandbig_grandpasleftovers-retail-linux-${PV}_1370968537.tar.bz2" +S="${WORKDIR}"/tinyandbig + +LICENSE="all-rights-reserved" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +IUSE="bundled-libs" + +RESTRICT="bindist fetch bundled-libs? ( splitdebug )" + +MYGAMEDIR=/opt/${PN} +QA_PREBUILT="${MYGAMEDIR#/}/bin32/* + ${MYGAMEDIR#/}/bin64/*" + +# TODO: unbundle media-libs/cal3d, lib hacked or old version +RDEPEND=" + media-libs/openal + virtual/opengl + x11-libs/libX11 + !bundled-libs? ( + media-gfx/nvidia-cg-toolkit + ) +" +BDEPEND="app-arch/bzip2" + +pkg_nofetch() { + einfo "Please buy & download ${SRC_URI} from:" + einfo " ${HOMEPAGE}" + einfo "and move it to your DISTDIR directory." + einfo +} + +src_prepare() { + default + + if ! use bundled-libs ; then + rm -v $(usex amd64 "bin64" "bin32")/libCg{,GL}.so || die "unbundling libs failed!" + fi +} + +src_install() { + local bindir=$(usex amd64 "bin64" "bin32") + + insinto ${MYGAMEDIR} + doins -r assets ${bindir} + + make_wrapper ${PN} "./${bindir}/tinyandbig" "${MYGAMEDIR}" "${MYGAMEDIR}/${bindir}" + make_desktop_entry ${PN} "Tiny & Big" + dodoc readme.txt + + fperms +x ${MYGAMEDIR}/${bindir}/tinyandbig +} |