Merge branch 'feature/preserve-ankh' into 'master'

Feature/preserve ankh



See merge request !16
This commit is contained in:
Manuel Friedli 2015-10-04 04:11:03 +02:00
commit 822dfa2382
3 changed files with 89 additions and 0 deletions

2
games-rpg/ankh/Manifest Normal file
View file

@ -0,0 +1,2 @@
EBUILD ankh-1.0.ebuild 1966 SHA256 2fc1db10d0d931930b8dcee297e7e5967cb55f7ce510ef50f2764dff2998036e SHA512 92feab4cdc973eb594156bd682a095110af8b33b5312b366d55d8f6d4dd9220aa0110fc33735692bbb61400c25fe4458923ae163ca06cbb718fa098acf68bfd0 WHIRLPOOL 8765c5bd5ee1c87d0eaed9ab36990816515affa0c0d548447996f75f295d3334ef6fe83920413c2d5a8f87de3b890b4d417bea529c6b5ce751b4ff9894828caa
MISC metadata.xml 234 SHA256 f35b97f99a26d73cc441e1d93bfe25aaa4e9f7f6d90c8d05a74f7b7bc5b68472 SHA512 59d8156b3ca3e99c40d5a2a32de7edf2eb53279b2424998862589d6bad77617d23fc852afec0a92f8ac5bb54a88ebc504cc0641029c1936412e90ab03dfdd447 WHIRLPOOL 935a1401910a42f888c991e443a49275ea8b87976c5aa977f670053d97d18754231749749bc92d37d4b5f45ecf65914480942a11b5827b6c08fb24313a428431

View file

@ -0,0 +1,79 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="5"
inherit eutils cdrom games multilib
DESCRIPTION="Ankh a Adventure like Monkey Island"
HOMEPAGE="http://www.ankh-game.de/ankh.html"
LICENSE="all-rights-reserved"
SLOT="0"
KEYWORDS="-* ~amd64 ~x86"
IUSE="+multilib"
RESTRICT="strip"
ABI="x86"
REQUIRED_USE="amd64? ( multilib )"
DEPEND="app-arch/bzip2
app-arch/tar
app-arch/unzip"
RDEPEND="sys-libs/glibc
multilib? (
virtual/opengl[abi_x86_32(-)]
x11-libs/libXext[abi_x86_32(-)]
x11-libs/libX11[abi_x86_32(-)]
x11-libs/libXau[abi_x86_32(-)]
x11-libs/libXdmcp[abi_x86_32(-)]
|| (
(
amd64? ( x11-drivers/nvidia-drivers[multilib(-)] )
x86? ( x11-drivers/nvidia-drivers )
)
x11-drivers/ati-drivers[abi_x86_32(-)]
)
)
!multilib? (
virtual/opengl
x11-libs/libXext
x11-libs/libX11
x11-libs/libXau
x11-libs/libXdmcp
|| (
x11-drivers/nvidia-drivers
x11-drivers/ati-drivers
)
)"
S=${WORKDIR}
GAMES_CHECK_LICENSE="no"
dir=${GAMES_PREFIX_OPT}/ankh
Ddir=${D}/${dir}
src_install() {
cdrom_get_cds data/Ankh.tar.gz
insinto "${dir}"
exeinto "${dir}"
einfo "Unpacking common.zip from Disk..."
unzip -qo "${CDROM_ROOT}"/data/common.zip -d "$Ddir"
einfo "Unpacking bin-x86.tar.gz from Disk..."
tar xzf "${CDROM_ROOT}"/data/bin-x86.tar.gz -C "$Ddir"
einfo "Unpacking libs-x86.tar.gz from Disk..."
tar xzf "${CDROM_ROOT}"/data/libs-x86.tar.gz -C "$Ddir"
einfo "Unpacking Ankh.tar.gz from Disk..."
tar xzf "${CDROM_ROOT}"/data/Ankh.tar.gz -C "$Ddir"
find "${Ddir}" -exec touch '{}' \;
# Argh the Program saves the settings in his install dir :(
# so we have to set some dir to be writeable by the group
chmod g+w "${Ddir}"/media/ # the settings are saved here
chmod g+w "${Ddir}"/bin/release # the log-files are saved here
dosym "${dir}"/Ankh /usr/games/bin/ankh
prepgamesdirs
make_desktop_entry ankh "Ankh" "${dir}"/Ankh.xpm
}

View file

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer>
<email>manuel@fritteli.ch</email>
<name>Manuel Friedli</name>
</maintainer>
</pkgmetadata>