/[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.3 - (hide annotations) (download)
Sat Aug 11 12:52:02 2012 UTC (23 months, 1 week ago) by maekke
Branch: MAIN
Changes since 1.2: +2 -2 lines
x86 stable, bug #418987

(Portage version: 2.1.11.9/cvs/Linux x86_64)

1 tupone 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 maekke 1.3 # $Header: /var/cvsroot/gentoo-x86/games-puzzle/drod-bin/drod-bin-1.6.7.ebuild,v 1.2 2012/02/08 21:30:14 vapier Exp $
4 vapier 1.2
5 tupone 1.1 EAPI=2
6    
7 vapier 1.2 inherit eutils unpacker games
8 tupone 1.1
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 maekke 1.3 KEYWORDS="-* ~amd64 x86"
17 tupone 1.1 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     S="${WORKDIR}"
36    
37     src_configure() {
38     GDIR=${GAMES_PREFIX_OPT}/drod
39     sed "s:%DRODAE_HOME%:${GDIR}:g" bin/Linux/x86/glibc-2.1/drod-ae.in > drod
40     chmod a+x drod-ae
41     }
42    
43     src_install() {
44     insinto "${GDIR}"
45     doins -r Data
46    
47     exeinto "${GDIR}"
48     doexe bin/Linux/x86/glibc-2.1/drod-ae.bin
49     dogamesbin drod
50    
51     exeinto "${GDIR}"/Libs
52     doexe Libs/{libexpat.so.0.5.0,libfmod-3.74.1.so}
53     dosym libexpat.so.0.5.0 "${GDIR}"/Libs/libexpat.so.0
54    
55     dosym Data/Help "${GDIR}"/Help
56    
57     newicon Data/Bitmaps/Icon.bmp ${PN}.bmp
58     make_desktop_entry drod "Deadly Rooms of Death" /usr/share/pixmaps/${PN}.bmp
59    
60     prepgamesdirs
61     }
62    
63     pkg_preinst() {
64     games_pkg_preinst
65     if [[ -d "${ROOT}${GDIR}/bin/Data" ]] ; then
66     mv "${ROOT}${GDIR}"/{bin/Data,Data.backup}
67     echo
68     ewarn "Your saved games have been backed up to ${GDIR}/Data.backup."
69     ewarn "You can restore your game by copying the files to"
70     ewarn "~/.caravel/drod-1_6/ like this:"
71     ewarn " mkdir -p ~/.caravel/drod-1_6/"
72     ewarn " cp ${GDIR}/Data.backup/* ~/.caravel/drod-1_6/"
73     echo
74     fi
75     }

  ViewVC Help
Powered by ViewVC 1.1.20