1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit eutils unpacker cdrom games
9 DESCRIPTION="the hyped indie game of the year. By the Uplink creators"
10 HOMEPAGE="http://www.darwinia.co.uk/support/linux.html"
11 SRC_URI="http://www.introversion.co.uk/darwinia/downloads/${PN}-full-${MY_PV}.sh"
13 LICENSE="Introversion"
15 KEYWORDS="-* ~amd64 ~x86"
17 RESTRICT="bindist mirror strip"
20 ~virtual/libstdc++-3.3
21 media-libs/libsdl[abi_x86_32(-)]
22 media-libs/libvorbis[abi_x86_32(-)]
23 virtual/glu[abi_x86_32(-)]
24 virtual/opengl[abi_x86_32(-)]"
28 dir=${GAMES_PREFIX_OPT}/${PN}
29 QA_PREBUILT="${dir:1}/lib/darwinia.bin.x86"
32 use cdinstall && cdrom_get_cds gamefiles/main.dat
40 doins lib/{language,patch}.dat
41 doexe lib/darwinia.bin.x86 lib/open-www.sh
44 doexe bin/Linux/x86/darwinia
46 if use cdinstall ; then
47 doins "${CDROM_ROOT}"/gamefiles/{main,sounds}.dat
51 newicon darwinian.png darwinia.png
53 games_make_wrapper darwinia ./darwinia "${dir}" "${dir}"
54 make_desktop_entry darwinia "Darwinia"
59 if ! use cdinstall; then
60 ewarn "To play the game, you need to copy main.dat and sounds.dat"
61 ewarn "from gamefiles/ on the game CD to ${dir}/lib/."