/[gentoo-x86]/games-puzzle/enigma/enigma-0.92.ebuild
Gentoo

Contents of /games-puzzle/enigma/enigma-0.92.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Fri Mar 23 16:43:06 2007 UTC (12 years, 10 months ago) by nyhm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
rm old version
(Portage version: 2.1.2.2)

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-puzzle/enigma/enigma-0.92.ebuild,v 1.3 2006/10/05 18:11:51 nyhm Exp $
4
5 inherit eutils games
6
7 DESCRIPTION="puzzle game similar to Oxyd"
8 HOMEPAGE="http://www.nongnu.org/enigma/"
9 SRC_URI="http://savannah.nongnu.org/download/enigma/${P}.tar.gz"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="~amd64 ppc ~sparc x86"
14 IUSE="nls"
15
16 RDEPEND="media-libs/sdl-ttf
17 >=media-libs/libsdl-1.2.0
18 >=media-libs/sdl-mixer-1.2.4
19 >=media-libs/sdl-image-1.2.0
20 >=dev-lang/lua-4.0
21 nls? ( virtual/libintl )"
22 DEPEND="${RDEPEND}
23 nls? ( sys-devel/gettext )"
24
25 src_unpack() {
26 unpack ${A}
27 cd "${S}"
28
29 # fix up the locale install location
30 if use nls ; then
31 sed -i \
32 -e "/^datadir/s:=.*:= /usr/share:" \
33 po/Makefile.in.in \
34 src/Makefile.am \
35 || die "sed failed"
36 fi
37
38 # thanks, we'll handle the doc install ourselves.
39 sed -i \
40 -e 's/: install-docDATA/:/' \
41 -e '/^SUBDIRS/s/doc//' Makefile.in \
42 || die "sed failed"
43
44 epatch "${FILESDIR}"/${P}-gcc41.patch
45 }
46
47 src_compile() {
48 egamesconf \
49 --disable-dependency-tracking \
50 --enable-optimize \
51 $(use_enable nls) \
52 || die
53 emake || die "emake failed"
54 }
55
56 src_install() {
57 make DESTDIR="${D}" install || die "make install failed"
58 mv "${D}/${GAMES_PREFIX}/share/"* "${D}/usr/share/"
59 rm -r "${D}/${GAMES_PREFIX}/share"
60 dodoc NEWS README AUTHORS ChangeLog \
61 doc/{TODO,CREATING-LEVELS,HACKING}
62 dohtml -r doc/*
63 doman doc/enigma.6
64 prepgamesdirs
65 }

  ViewVC Help
Powered by ViewVC 1.1.20