70 lines
1.7 KiB
Bash
70 lines
1.7 KiB
Bash
# Copyright 1999-2014 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: /var/cvsroot/gentoo-x86/games-strategy/darwinia/darwinia-1.4.0_beta9.ebuild,v 1.15 2014/09/07 15:36:20 ulm Exp $
|
|
|
|
CDROM_OPTIONAL="yes"
|
|
inherit eutils unpacker cdrom games
|
|
|
|
MY_PV=${PV/_beta/b}
|
|
DESCRIPTION="the hyped indie game of the year. By the Uplink creators"
|
|
HOMEPAGE="http://www.darwinia.co.uk/support/linux.html"
|
|
SRC_URI="http://www.introversion.co.uk/darwinia/downloads/${PN}-full-${MY_PV}.sh"
|
|
|
|
LICENSE="Introversion"
|
|
SLOT="0"
|
|
KEYWORDS="-* ~amd64 ~x86"
|
|
IUSE=""
|
|
RESTRICT="mirror strip"
|
|
|
|
RDEPEND="
|
|
~virtual/libstdc++-3.3
|
|
x86? (
|
|
virtual/opengl
|
|
virtual/glu
|
|
media-libs/libsdl
|
|
media-libs/libvorbis )
|
|
amd64? (
|
|
app-emulation/emul-linux-x86-xlibs
|
|
app-emulation/emul-linux-x86-medialibs
|
|
app-emulation/emul-linux-x86-sdl )"
|
|
|
|
S=${WORKDIR}
|
|
|
|
dir=${GAMES_PREFIX_OPT}/${PN}
|
|
QA_PREBUILT="${dir:1}/lib/darwinia.bin.x86"
|
|
|
|
src_unpack() {
|
|
use cdinstall && cdrom_get_cds gamefiles/main.dat
|
|
unpack_makeself
|
|
}
|
|
|
|
src_install() {
|
|
insinto "${dir}"/lib
|
|
exeinto "${dir}"/lib
|
|
|
|
doins lib/{language,patch}.dat
|
|
doexe lib/darwinia.bin.x86 lib/open-www.sh || die "copying executables"
|
|
|
|
exeinto "${dir}"
|
|
doexe bin/Linux/x86/darwinia || die "couldn't do exe"
|
|
|
|
if use cdinstall ; then
|
|
doins "${CDROM_ROOT}"/gamefiles/{main,sounds}.dat \
|
|
|| die "couldn't copy data files"
|
|
fi
|
|
|
|
dodoc README || die "no reading"
|
|
newicon darwinian.png darwinia.png
|
|
|
|
games_make_wrapper darwinia ./darwinia "${dir}" "${dir}"
|
|
make_desktop_entry darwinia "Darwinia"
|
|
prepgamesdirs
|
|
}
|
|
|
|
pkg_postinst() {
|
|
if ! use cdinstall; then
|
|
ewarn "To play the game, you need to copy main.dat and sounds.dat"
|
|
ewarn "from gamefiles/ on the game CD to ${dir}/lib/."
|
|
fi
|
|
games_pkg_postinst
|
|
}
|