blob: 959e2917f3e70bb15a1e273ad4f681484055a080 (
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
54
55
56
57
58
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-games/gtkradiant/gtkradiant-1.4.0.ebuild,v 1.12 2006/03/15 22:38:47 wolf31o2 Exp $
inherit eutils games
DESCRIPTION="FPS level editor"
HOMEPAGE="http://www.qeradiant.com/?data=editors/gtk"
SRC_URI="mirror://idsoftware/qeradiant/GtkRadiant/GtkRadiant-1_4/Linux/linux-radiant-${PV}.run"
LICENSE="qeradiant"
SLOT="0"
KEYWORDS="-* x86"
IUSE=""
RDEPEND="media-libs/libpng
sys-libs/zlib
=dev-libs/glib-2*
=x11-libs/gtk+-2*
dev-libs/atk
x11-libs/pango
x11-libs/gtkglext
dev-libs/libxml2
virtual/opengl"
S="${WORKDIR}"
dir="${GAMES_PREFIX_OPT}/${PN}"
Ddir="${D}/${dir}"
src_unpack() {
unpack_makeself
check_license
}
src_install() {
dodir "${dir}"
cp -r bin/Linux/x86/* "${Ddir}/" || die "cp failed"
chmod -R a+x "${Ddir}/"
cp -r README license.txt core/* "${Ddir}" || die "cp failed"
echo ${PV:2:1} > "${Ddir}/RADIANT_MAJOR"
echo ${PV:4} > "${Ddir}/RADIANT_MINOR"
chmod a+x "${Ddir}/openurl.sh"
dogamesbin "${FILESDIR}/"{q3map2,radiant} || die "dogamesbin failed"
insinto "${dir}/games"
doins "${FILESDIR}/"*.game || die "doins failed"
exeinto "${dir}"
doexe ${FILESDIR}/{q3map2,radiant} || die "doexe failed"
dodir "${GAMES_PREFIX_OPT}"
cp -r et "${D}/${GAMES_PREFIX_OPT}/enemy-territory" || die "cp failed"
cp -r q3 "${D}/${GAMES_PREFIX_OPT}/quake3" || die "cp failed"
cp -r wolf "${D}/${GAMES_PREFIX_OPT}/rtcw" || die "cp failed"
dodir "${GAMES_DATADIR}"
cp -r q2 "${D}/${GAMES_DATADIR}/quake2-data" || die "cp failed"
prepgamesdirs
}
|