/[gentoo-x86]/games-fps/quake3-teamarena/quake3-teamarena-1.32b.ebuild
Gentoo

Contents of /games-fps/quake3-teamarena/quake3-teamarena-1.32b.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Mon Jan 16 19:23:30 2012 UTC (6 years, 9 months ago) by ulm
Branch: MAIN
Changes since 1.8: +4 -3 lines
Migrate to cdrom.eclass, bug 398809.

(Portage version: 2.1.10.44/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-fps/quake3-teamarena/quake3-teamarena-1.32b.ebuild,v 1.8 2010/02/16 14:50:03 nyhm Exp $
4
5 CDROM_DISABLE_PROPERTIES=1
6 inherit eutils cdrom games
7
8 DESCRIPTION="Quake III Team Arena - data portion"
9 HOMEPAGE="http://icculus.org/quake3/"
10 SRC_URI="mirror://idsoftware/quake3/linux/linuxq3apoint-${PV}-3.x86.run"
11
12 LICENSE="Q3AEULA"
13 SLOT="0"
14 KEYWORDS="amd64 ~ppc x86 ~x86-fbsd"
15 IUSE="cdinstall"
16 PROPERTIES="cdinstall? ( interactive )"
17
18 RDEPEND="|| (
19 games-fps/quake3
20 games-fps/quake3-bin )"
21
22 S=${WORKDIR}
23
24 src_unpack() {
25 use cdinstall && cdrom_get_cds Setup/missionpack/PAK0.PK3
26 unpack_makeself
27 }
28
29 src_install() {
30 einfo "Copying Team Arena files from linux client ..."
31 insinto "${GAMES_DATADIR}"/quake3/missionpack
32 doins missionpack/*.pk3 || die "missionpack"
33
34 if use cdinstall ; then
35 einfo "Copying files from CD ..."
36 newins "${CDROM_ROOT}/Setup/missionpack/PAK0.PK3" pak0.pk3 \
37 || die "pak0"
38 eend 0
39 fi
40
41 find "${D}" -exec touch '{}' \;
42 prepgamesdirs
43 }
44
45 pkg_postinst() {
46 games_pkg_postinst
47 if ! use cdinstall ; then
48 elog "You need to copy PAK0.PK3 from your Team Arena CD into"
49 elog "${dir}/missionpack and name it pak0.pk3."
50 elog "Or if you have got a Window installation of Q3 make a symlink to save space."
51 elog
52 elog "Or, re-emerge quake3-teamarena with USE=cdinstall."
53 echo
54 fi
55 }

  ViewVC Help
Powered by ViewVC 1.1.20