blob: 9867ff41f633c3d141fb32ee37338d27a3401a8c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
CDROM_OPTIONAL="yes"
inherit eutils unpacker cdrom games
DESCRIPTION="Quake III Arena - data portion"
HOMEPAGE="http://icculus.org/quake3/"
SRC_URI="mirror://idsoftware/quake3/linux/linuxq3apoint-${PV}-3.x86.run"
LICENSE="Q3AEULA"
SLOT="0"
KEYWORDS="~alpha amd64 ~ia64 ppc x86 ~x86-fbsd"
IUSE=""
S=${WORKDIR}
dir=${GAMES_DATADIR}/quake3
src_unpack() {
use cdinstall && cdrom_get_cds baseq3/pak0.pk3:Quake3/baseq3/pak0.pk3
unpack_makeself
}
src_install() {
ebegin "Copying files from linux client ..."
insinto "${GAMES_DATADIR}"/quake3/baseq3
doins baseq3/*.pk3
eend 0
if use cdinstall ; then
einfo "Copying files from CD ..."
doins "${CDROM_ROOT}/${CDROM_MATCH}"
eend 0
fi
find "${D}" -exec touch '{}' \;
prepgamesdirs
}
pkg_postinst() {
games_pkg_postinst
if ! use cdinstall ; then
echo
elog "You need to copy pak0.pk3 from your Quake3 CD into:"
elog " ${dir}/baseq3."
elog "Or if you have a Windows installation of Q3 make a symlink to save space."
elog
elog "Or, re-emerge quake3-data with USE=cdinstall."
echo
fi
}
|