/[gentoo-x86]/games-puzzle/drod-bin/drod-bin-1.6.7.ebuild
Gentoo

Contents of /games-puzzle/drod-bin/drod-bin-1.6.7.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Thu Nov 14 22:02:47 2013 UTC (9 months ago) by mr_bones_
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +2 -2 lines
tidy

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

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-puzzle/drod-bin/drod-bin-1.6.7.ebuild,v 1.4 2013/01/27 08:31:06 tupone Exp $
4
5 EAPI=2
6
7 inherit eutils unpacker games
8
9 DESCRIPTION="Deadly Rooms Of Death: face room upon room of deadly things, armed with only a sword and your wits"
10 HOMEPAGE="http://www.drod.net/"
11 #SRC_URI="mirror://sourceforge/drod/CDROD-${PV}-setup.sh.bin"
12 SRC_URI="mirror://sourceforge/drod/Linux%20Setup/Caravel%20DROD%201.6.7%20Setup/DRODAESetup-1.6.7.run"
13
14 LICENSE="MPL-1.1"
15 SLOT="0"
16 KEYWORDS="-* ~amd64 x86"
17 IUSE=""
18 RESTRICT="strip"
19
20 DEPEND=""
21 RDEPEND="
22 x86? (
23 x11-libs/libX11
24 media-libs/freetype
25 media-libs/libsdl
26 media-libs/sdl-ttf
27 sys-libs/libstdc++-v3
28 )
29 amd64? (
30 app-emulation/emul-linux-x86-xlibs
31 app-emulation/emul-linux-x86-sdl
32 app-emulation/emul-linux-x86-compat
33 )"
34
35 GDIR=${GAMES_PREFIX_OPT}/drod
36 QA_PREBUILT="${GDIR:1}/drod-ae.bin
37 ${GDIR:1}/Libs/*"
38
39 S=${WORKDIR}
40
41 src_configure() {
42 sed "s:%DRODAE_HOME%:${GDIR}:g" bin/Linux/x86/glibc-2.1/drod-ae.in > drod
43 chmod a+x drod-ae
44 }
45
46 src_install() {
47 insinto "${GDIR}"
48 doins -r Data
49
50 exeinto "${GDIR}"
51 doexe bin/Linux/x86/glibc-2.1/drod-ae.bin
52 dogamesbin drod
53
54 exeinto "${GDIR}"/Libs
55 doexe Libs/{libexpat.so.0.5.0,libfmod-3.74.1.so}
56 dosym libexpat.so.0.5.0 "${GDIR}"/Libs/libexpat.so.0
57
58 dosym Data/Help "${GDIR}"/Help
59
60 newicon Data/Bitmaps/Icon.bmp ${PN}.bmp
61 make_desktop_entry drod "Deadly Rooms of Death" /usr/share/pixmaps/${PN}.bmp
62
63 prepgamesdirs
64 }
65
66 pkg_preinst() {
67 games_pkg_preinst
68 if [[ -d "${ROOT}${GDIR}/bin/Data" ]] ; then
69 mv "${ROOT}${GDIR}"/{bin/Data,Data.backup}
70 echo
71 ewarn "Your saved games have been backed up to ${GDIR}/Data.backup."
72 ewarn "You can restore your game by copying the files to"
73 ewarn "~/.caravel/drod-1_6/ like this:"
74 ewarn " mkdir -p ~/.caravel/drod-1_6/"
75 ewarn " cp ${GDIR}/Data.backup/* ~/.caravel/drod-1_6/"
76 echo
77 fi
78 }

  ViewVC Help
Powered by ViewVC 1.1.20