blob: c8eb052fbaa5e5ab176cd5d5e58f9837bef2df65 (
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
59
60
61
62
63
64
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-roguelike/scourge/scourge-0.15.ebuild,v 1.1 2006/09/29 18:15:03 nyhm Exp $
inherit eutils wxwidgets games
DESCRIPTION="A rogue-like adventure game to eliminate pests"
HOMEPAGE="http://scourge.sourceforge.net/"
SRC_URI="mirror://sourceforge/scourge/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="editor"
DEPEND="x11-libs/libXmu
x11-libs/libXi
virtual/glu
virtual/opengl
>=media-libs/freetype-2
>=media-libs/libsdl-1.2
media-libs/sdl-net
media-libs/sdl-mixer
editor? ( >=x11-libs/wxGTK-2.6 )"
S=${WORKDIR}/${P}/${PN}
pkg_setup() {
games_pkg_setup
if use editor ; then
WX_GTK_VER="2.6" need-wxwidgets gtk2 \
|| die "You need to emerge wxGTK with USE='X'"
fi
}
src_unpack() {
unpack ${A}
cd "${S}"
if use editor ; then
sed -i \
-e "/WXWIDGET_CFLAGS/s:wx-config:${WX_CONFIG}:" \
-e "/WXWIDGET_LIBS/s:wx-config:${WX_CONFIG}:" \
configure || die "sed failed"
fi
}
src_compile() {
egamesconf \
--with-data-dir="${GAMES_DATADIR}/${PN}" \
$(use_enable editor) \
|| die
emake || die "emake failed"
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
use editor && mv "${D}/${GAMES_BINDIR}"/{tools,${PN}-tools}
insinto "${GAMES_DATADIR}/${PN}"
doins -r ../scourge_data/* || die "doins failed"
doicon assets/scourge.png
make_desktop_entry scourge Scourge
dodoc AUTHORS README
prepgamesdirs
}
|