/[gentoo-x86]/games-rpg/dear-esther/dear-esther-20130608.ebuild
Gentoo

Contents of /games-rpg/dear-esther/dear-esther-20130608.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Mon Jun 1 21:00:38 2015 UTC (3 years, 5 months ago) by mr_bones_
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +6 -17 lines
clean up app-emulation/emul-linux which has been removed

(Portage version: 2.2.18/cvs/Linux x86_64, unsigned Manifest commit)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-rpg/dear-esther/dear-esther-20130608.ebuild,v 1.4 2015/02/25 15:55:30 ago Exp $
4
5 # TODO: unbundle libSDL2
6
7 EAPI=5
8 inherit eutils gnome2-utils unpacker games
9
10 TIMESTAMP="${PV:4:2}${PV:6:2}${PV:0:4}"
11 DESCRIPTION="Ghost story, told using first-person gaming technologies"
12 HOMEPAGE="http://dear-esther.com/"
13 SRC_URI="dearesther-linux-${TIMESTAMP}-bin"
14
15 LICENSE="all-rights-reserved"
16 SLOT="0"
17 KEYWORDS="-* amd64 x86"
18 IUSE=""
19 RESTRICT="bindist fetch splitdebug"
20
21 MYGAMEDIR=${GAMES_PREFIX_OPT}/${PN}
22 QA_PREBUILT="${MYGAMEDIR#/}/dearesther_linux
23 ${MYGAMEDIR#/}/bin/*.so*"
24
25 DEPEND="app-arch/unzip"
26 RDEPEND="
27 >=media-libs/freetype-2.5.0.1[abi_x86_32(-)]
28 >=media-libs/libsdl-1.2.15-r5[abi_x86_32(-)]
29 >=media-libs/openal-1.15.1[abi_x86_32(-)]
30 x11-libs/libX11[abi_x86_32(-)]
31 virtual/opengl[abi_x86_32(-)]"
32
33 S=${WORKDIR}/data
34
35 pkg_nofetch() {
36 einfo "Please buy & download ${SRC_URI} from:"
37 einfo " ${HOMEPAGE}"
38 einfo "and move it to ${DISTDIR}"
39 einfo
40 }
41
42 src_unpack() {
43 unpack_zip ${A}
44 }
45
46 src_install() {
47 insinto "${MYGAMEDIR}"
48 doins -r bin dearesther platform dearesther_linux
49
50 doicon -s 256 dearesther.png
51 make_desktop_entry "${PN}" "Dear Esther" dearesther
52 games_make_wrapper ${PN} "./dearesther_linux -game dearesther" "${MYGAMEDIR}" "${MYGAMEDIR}/bin"
53
54 dodoc README-linux.txt
55
56 fperms +x "${MYGAMEDIR}"/dearesther_linux
57
58 prepgamesdirs
59 }
60
61 pkg_preinst() {
62 games_pkg_preinst
63 gnome2_icon_savelist
64 }
65
66 pkg_postinst() {
67 games_pkg_postinst
68 gnome2_icon_cache_update
69 }
70
71 pkg_postrm() {
72 gnome2_icon_cache_update
73 }

  ViewVC Help
Powered by ViewVC 1.1.20