/[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.6 - (show annotations) (download)
Sun Sep 7 15:32:25 2014 UTC (11 days, 7 hours ago) by ulm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +3 -5 lines
Replace emul-linux-x86-compat dependency by virtual/libstdc++, bug 522218.

(Portage version: 2.2.12/cvs/Linux x86_64, signed Manifest commit with key 9433907D693FB5B8!)

1 # Copyright 1999-2014 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.5 2013/11/14 22:02:47 mr_bones_ 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="virtual/libstdc++:3.3
22 x86? (
23 x11-libs/libX11
24 media-libs/freetype
25 media-libs/libsdl
26 media-libs/sdl-ttf
27 )
28 amd64? (
29 app-emulation/emul-linux-x86-xlibs
30 app-emulation/emul-linux-x86-sdl
31 )"
32
33 GDIR=${GAMES_PREFIX_OPT}/drod
34 QA_PREBUILT="${GDIR:1}/drod-ae.bin
35 ${GDIR:1}/Libs/*"
36
37 S=${WORKDIR}
38
39 src_configure() {
40 sed "s:%DRODAE_HOME%:${GDIR}:g" bin/Linux/x86/glibc-2.1/drod-ae.in > drod
41 chmod a+x drod-ae
42 }
43
44 src_install() {
45 insinto "${GDIR}"
46 doins -r Data
47
48 exeinto "${GDIR}"
49 doexe bin/Linux/x86/glibc-2.1/drod-ae.bin
50 dogamesbin drod
51
52 exeinto "${GDIR}"/Libs
53 doexe Libs/{libexpat.so.0.5.0,libfmod-3.74.1.so}
54 dosym libexpat.so.0.5.0 "${GDIR}"/Libs/libexpat.so.0
55
56 dosym Data/Help "${GDIR}"/Help
57
58 newicon Data/Bitmaps/Icon.bmp ${PN}.bmp
59 make_desktop_entry drod "Deadly Rooms of Death" /usr/share/pixmaps/${PN}.bmp
60
61 prepgamesdirs
62 }
63
64 pkg_preinst() {
65 games_pkg_preinst
66 if [[ -d "${ROOT}${GDIR}/bin/Data" ]] ; then
67 mv "${ROOT}${GDIR}"/{bin/Data,Data.backup}
68 echo
69 ewarn "Your saved games have been backed up to ${GDIR}/Data.backup."
70 ewarn "You can restore your game by copying the files to"
71 ewarn "~/.caravel/drod-1_6/ like this:"
72 ewarn " mkdir -p ~/.caravel/drod-1_6/"
73 ewarn " cp ${GDIR}/Data.backup/* ~/.caravel/drod-1_6/"
74 echo
75 fi
76 }

  ViewVC Help
Powered by ViewVC 1.1.20