/[gentoo-x86]/games-strategy/wormux/wormux-0.7.4.ebuild
Gentoo

Contents of /games-strategy/wormux/wormux-0.7.4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Tue Feb 6 06:53:46 2007 UTC (7 years, 6 months ago) by mr_bones_
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
old
(Portage version: 2.1.1-r2)

1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-strategy/wormux/wormux-0.7.4.ebuild,v 1.3 2007/01/04 23:46:48 nyhm Exp $
4
5 inherit eutils games
6
7 DESCRIPTION="A free Worms clone"
8 HOMEPAGE="http://www.wormux.org/"
9 SRC_URI="http://download.gna.org/wormux/${P}.tar.gz"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="~amd64 ~ppc ~x86"
14 IUSE="debug nls"
15
16 RDEPEND=">=media-libs/libsdl-1.2.6
17 >=media-libs/sdl-image-1.2
18 >=media-libs/sdl-mixer-1.2
19 >=media-libs/sdl-ttf-2.0
20 media-libs/sdl-net
21 >=media-libs/sdl-gfx-2.0.13
22 >=dev-cpp/libxmlpp-2.6
23 nls? ( virtual/libintl )"
24 DEPEND="${RDEPEND}
25 dev-util/pkgconfig
26 nls? ( sys-devel/gettext )"
27
28 src_unpack() {
29 unpack ${A}
30 cd "${S}"
31 epatch "${FILESDIR}/${P}-user-CFLAGS.patch"
32 # avoid the strip on install
33 sed -i \
34 -e "s/@INSTALL_STRIP_PROGRAM@/@INSTALL_PROGRAM@/" \
35 src/Makefile.in \
36 || die "sed failed"
37 }
38
39 src_compile() {
40 egamesconf \
41 --with-datadir-name="${GAMES_DATADIR}/${PN}" \
42 --with-localedir-name="/usr/share/locale" \
43 $(use_enable debug) \
44 $(use_enable nls) \
45 || die
46 emake || die "emake failed"
47 }
48
49 src_install() {
50 emake DESTDIR="${D}" install || die "emake install failed"
51 dodoc AUTHORS ChangeLog README
52 newicon data/wormux-32.xpm wormux.xpm
53 make_desktop_entry wormux Wormux wormux.xpm
54 prepgamesdirs
55 }

  ViewVC Help
Powered by ViewVC 1.1.20