2018-02-16 00:00:19 +01:00
|
|
|
# Copyright 1999-2018 Gentoo Foundation
|
2015-10-02 16:58:12 +02:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2016-09-02 00:36:47 +02:00
|
|
|
EAPI="6"
|
2015-10-02 18:21:14 +02:00
|
|
|
|
2016-09-02 00:36:47 +02:00
|
|
|
inherit eutils cdrom multilib
|
2011-03-13 19:43:59 +01:00
|
|
|
DESCRIPTION="Ankh a Adventure like Monkey Island"
|
|
|
|
HOMEPAGE="http://www.ankh-game.de/ankh.html"
|
2015-10-02 18:21:14 +02:00
|
|
|
LICENSE="all-rights-reserved"
|
2011-03-13 19:43:59 +01:00
|
|
|
|
|
|
|
SLOT="0"
|
2015-10-02 18:21:14 +02:00
|
|
|
KEYWORDS="-* ~amd64 ~x86"
|
2015-10-04 04:07:42 +02:00
|
|
|
IUSE="+multilib"
|
2011-03-13 19:43:59 +01:00
|
|
|
RESTRICT="strip"
|
2015-10-02 19:08:41 +02:00
|
|
|
ABI="x86"
|
2011-03-13 19:43:59 +01:00
|
|
|
|
2015-10-04 04:07:42 +02:00
|
|
|
REQUIRED_USE="amd64? ( multilib )"
|
2015-10-02 18:21:14 +02:00
|
|
|
|
2011-03-13 19:43:59 +01:00
|
|
|
DEPEND="app-arch/bzip2
|
2015-10-02 14:38:22 +02:00
|
|
|
app-arch/tar
|
|
|
|
app-arch/unzip"
|
2011-03-13 19:43:59 +01:00
|
|
|
|
|
|
|
RDEPEND="sys-libs/glibc
|
2015-10-04 04:07:42 +02:00
|
|
|
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
|
2015-10-02 18:21:14 +02:00
|
|
|
)
|
|
|
|
)"
|
2011-03-13 19:43:59 +01:00
|
|
|
|
|
|
|
S=${WORKDIR}
|
|
|
|
|
|
|
|
GAMES_CHECK_LICENSE="no"
|
2016-09-02 00:36:47 +02:00
|
|
|
dir="/opt/ankh"
|
|
|
|
Ddir="${D}/${dir}"
|
2011-03-13 19:43:59 +01:00
|
|
|
|
|
|
|
src_install() {
|
2015-10-02 14:38:22 +02:00
|
|
|
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 '{}' \;
|
2016-09-02 00:36:47 +02:00
|
|
|
# Argh the Program saves the settings in its install dir :(
|
2015-10-02 14:38:22 +02:00
|
|
|
# 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
|
|
|
|
|
|
|
|
make_desktop_entry ankh "Ankh" "${dir}"/Ankh.xpm
|
|
|
|
}
|