| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/games-strategy/gorky17-demo/gorky17-demo-1.0.1.0.1.ebuild,v 1.4 2008/02/29 19:46:36 carlo Exp $
|
| 4 |
|
| 5 |
inherit eutils unpacker versionator games
|
| 6 |
|
| 7 |
MY_PN="gorky17"
|
| 8 |
MY_PV=$(replace_version_separator 2 '-')
|
| 9 |
|
| 10 |
DESCRIPTION="Horror conspiracy game mixing elements of strategy and role-playing"
|
| 11 |
HOMEPAGE="http://www.linuxgamepublishing.com/info.php?id=gorky17"
|
| 12 |
SRC_URI="http://demofiles.linuxgamepublishing.com/${MY_PN}/${MY_PN}_demo.run
|
| 13 |
http://updatefiles.linuxgamepublishing.com/gorky17-demo/${PN}-${MY_PV}-x86.run"
|
| 14 |
|
| 15 |
LICENSE="as-is"
|
| 16 |
SLOT="0"
|
| 17 |
KEYWORDS="~x86"
|
| 18 |
IUSE=""
|
| 19 |
RESTRICT="strip"
|
| 20 |
|
| 21 |
RDEPEND="media-libs/alsa-lib
|
| 22 |
x86? (
|
| 23 |
media-libs/libsdl
|
| 24 |
sys-libs/zlib
|
| 25 |
x11-libs/libX11
|
| 26 |
x11-libs/libXau
|
| 27 |
x11-libs/libXdmcp
|
| 28 |
x11-libs/libXext )
|
| 29 |
amd64? (
|
| 30 |
app-emulation/emul-linux-x86-baselibs
|
| 31 |
app-emulation/emul-linux-x86-xlibs
|
| 32 |
app-emulation/emul-linux-x86-soundlibs
|
| 33 |
app-emulation/emul-linux-x86-sdl )"
|
| 34 |
|
| 35 |
S=${WORKDIR}
|
| 36 |
|
| 37 |
dir=${GAMES_PREFIX_OPT}/${PN}
|
| 38 |
Ddir=${D}/${dir}
|
| 39 |
|
| 40 |
QA_EXECSTACK="${dir:1}/gorky17_demo ${dir:1}/gorky17_demo.dynamic"
|
| 41 |
|
| 42 |
src_unpack() {
|
| 43 |
unpack_makeself ${MY_PN}_demo.run
|
| 44 |
unpack ./data/data.tar.gz
|
| 45 |
|
| 46 |
mkdir patch
|
| 47 |
cd patch
|
| 48 |
unpack_makeself ${PN}-${MY_PV}-x86.run
|
| 49 |
cd "${S}"
|
| 50 |
|
| 51 |
# Apply patch
|
| 52 |
mv bin/Linux/x86/* .
|
| 53 |
mv patch/*.sh .
|
| 54 |
./patch/bin/Linux/x86/loki_patch patch/patch.dat . \
|
| 55 |
|| die "loki_patch failed"
|
| 56 |
|
| 57 |
rm -r update.sh *patch.sh data lgp_* patch setup* bin
|
| 58 |
}
|
| 59 |
|
| 60 |
src_install() {
|
| 61 |
insinto "${dir}"
|
| 62 |
doins -r * || die "doins -r failed"
|
| 63 |
rm "${Ddir}"/${MY_PN}*
|
| 64 |
|
| 65 |
exeinto "${dir}"
|
| 66 |
doexe ${MY_PN}* || die "doexe failed"
|
| 67 |
|
| 68 |
games_make_wrapper ${PN} ./${MY_PN}_demo "${dir}" "${dir}"
|
| 69 |
newicon icon.xpm ${PN}.xpm
|
| 70 |
make_desktop_entry ${PN} "Gorky 17 (Demo)" ${PN}
|
| 71 |
|
| 72 |
prepgamesdirs
|
| 73 |
}
|
| 74 |
|
| 75 |
pkg_postinst() {
|
| 76 |
games_pkg_postinst
|
| 77 |
|
| 78 |
elog "The instruction manual is available as:"
|
| 79 |
elog " http://demofiles.linuxgamepublishing.com/gorky17/manual.pdf"
|
| 80 |
echo
|
| 81 |
}
|