blob: 034dc37941afce53ab5a054d9e262db97faf3d7a (
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
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-puzzle/enigma/enigma-1.01.ebuild,v 1.8 2008/11/18 21:14:32 mr_bones_ Exp $
inherit autotools eutils games
DESCRIPTION="puzzle game similar to Oxyd"
HOMEPAGE="http://www.nongnu.org/enigma/"
SRC_URI="mirror://berlios/enigma-game/${P}-64bit.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc x86"
IUSE="nls"
RDEPEND="media-libs/sdl-ttf
media-libs/libsdl
media-libs/sdl-mixer
media-libs/sdl-image
media-libs/libpng
dev-libs/xerces-c
net-libs/enet
nls? ( virtual/libintl )"
DEPEND="${RDEPEND}
sys-devel/gettext"
src_unpack() {
unpack ${A}
cd "${S}"
cp /usr/share/gettext/config.rpath .
epatch \
"${FILESDIR}"/${P}-autotools.patch \
"${FILESDIR}"/${P}-gcc43.patch \
"${FILESDIR}"/${P}-xerces-c.patch
eautoreconf
}
src_compile() {
egamesconf \
--disable-dependency-tracking \
$(use_enable nls) \
|| die
emake || die "emake failed"
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc ACKNOWLEDGEMENTS AUTHORS CHANGES README doc/HACKING
dohtml -r doc/*
doman doc/enigma.6
prepgamesdirs
}
|