/[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.8 - (show annotations) (download)
Wed Apr 29 22:09:10 2015 UTC (2 months, 4 weeks ago) by mr_bones_
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
games-puzzle/drod-bin is gone

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

  ViewVC Help
Powered by ViewVC 1.1.20