forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tiny-and-big-1.4.1.ebuild
61 lines (47 loc) · 1.36 KB
/
tiny-and-big-1.4.1.ebuild
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
# TODO: unbundle media-libs/cal3d, lib hacked or old version
EAPI=5
inherit eutils games
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"
LICENSE="all-rights-reserved"
SLOT="0"
KEYWORDS="-* amd64 x86"
IUSE="bundled-libs"
RESTRICT="bindist fetch bundled-libs? ( splitdebug )"
MYGAMEDIR=${GAMES_PREFIX_OPT}/${PN}
QA_PREBUILT="${MYGAMEDIR#/}/bin32/*
${MYGAMEDIR#/}/bin64/*"
DEPEND="app-arch/bzip2"
RDEPEND="
virtual/opengl
media-libs/openal
x11-libs/libX11
!bundled-libs? (
media-gfx/nvidia-cg-toolkit
)"
S=${WORKDIR}/tinyandbig
pkg_nofetch() {
einfo "Please buy & download ${SRC_URI} from:"
einfo " ${HOMEPAGE}"
einfo "and move it to ${DISTDIR}"
einfo
}
src_prepare() {
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}
games_make_wrapper ${PN} "./${bindir}/tinyandbig" "${MYGAMEDIR}" "${MYGAMEDIR}/${bindir}"
make_desktop_entry ${PN} "Tiny & Big"
dodoc readme.txt
fperms +x "${MYGAMEDIR}"/${bindir}/tinyandbig
prepgamesdirs
}