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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Sat Sep 20 13:42:49 2008 UTC (5 years, 6 months ago) by mr_bones_
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -1 lines
FILE REMOVED
old
(Portage version: 2.1.4.4)

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.3.ebuild,v 1.8 2008/02/29 19:49:37 carlo 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 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 \
32 "${FILESDIR}/${P}-fix-gettext-Makefile.patch" \
33 "${FILESDIR}/${P}-user-CFLAGS.patch" \
34 "${FILESDIR}/${P}-fix-tr.po.patch"
35 # avoid the strip on install
36 sed -i \
37 -e "s/@INSTALL_STRIP_PROGRAM@/@INSTALL_PROGRAM@/" \
38 src/Makefile.in \
39 || die "sed failed"
40 }
41
42 src_compile() {
43 egamesconf \
44 --with-datadir-name="${GAMES_DATADIR}/${PN}" \
45 $(use_enable debug) \
46 $(use_enable nls) \
47 || die
48 emake || die "emake failed"
49 }
50
51 src_install() {
52 emake DESTDIR="${D}" install || die "emake install failed"
53 dodoc AUTHORS ChangeLog
54 newicon data/wormux-32.xpm wormux.xpm
55 make_desktop_entry wormux Wormux wormux
56 prepgamesdirs
57 }

  ViewVC Help
Powered by ViewVC 1.1.20