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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Jan 1 01:56:41 2007 UTC (13 years ago) by nyhm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Fix data loading, bug #158759
(Portage version: 2.1.2_rc4-r3)
 (Signed Manifest commit)

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-1.00.ebuild,v 1.1 2006/12/21 08:47:58 mr_bones_ 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://download.berlios.de/enigma-game/${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 dev-libs/xerces-c
22 nls? ( virtual/libintl )"
23 DEPEND="${RDEPEND}
24 nls? ( sys-devel/gettext )"
25
26 src_unpack() {
27 unpack ${A}
28 cd "${S}"
29
30 # fix up the locale install location
31 if use nls ; then
32 sed -i \
33 -e "/^datadir/s:=.*:= /usr/share:" \
34 po/Makefile.in.in \
35 src/Makefile.am \
36 || die "sed failed"
37 fi
38
39 # thanks, we'll handle the doc install ourselves.
40 sed -i \
41 -e 's/: install-docDATA/:/' \
42 -e '/^SUBDIRS/s/doc//' Makefile.in \
43 || die "sed failed"
44 }
45
46 src_compile() {
47 egamesconf \
48 --disable-dependency-tracking \
49 --enable-optimize \
50 $(use_enable nls) \
51 || die
52 emake || die "emake failed"
53 }
54
55 src_install() {
56 emake DESTDIR="${D}" install || die "emake install failed"
57 mv "${D}/${GAMES_PREFIX}/share/"* "${D}/usr/share/"
58 rm -r "${D}/${GAMES_PREFIX}/share"
59 dodoc ACKNOWLEDGEMENTS AUTHORS CHANGES README doc/HACKING
60 dohtml -r doc/*
61 doman doc/enigma.6
62 prepgamesdirs
63 }

  ViewVC Help
Powered by ViewVC 1.1.20