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

Contents of /games-puzzle/enigma/enigma-1.21-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Jun 28 11:36:28 2015 UTC (4 years, 7 months ago) by zlogene
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
x86 stable wrt bug #552154

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 0xC42EB5D6)

1 # Copyright 1999-2015 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.21-r1.ebuild,v 1.2 2015/06/26 14:29:50 ago Exp $
4
5 EAPI=5
6 inherit autotools eutils gnome2-utils games
7
8 DESCRIPTION="puzzle game similar to Oxyd"
9 HOMEPAGE="http://www.nongnu.org/enigma/"
10 SRC_URI="mirror://sourceforge/enigma-game/${P}.tar.gz"
11
12 LICENSE="GPL-2+"
13 SLOT="0"
14 KEYWORDS="amd64 ~ppc x86"
15 IUSE="nls"
16
17 COMMON_DEPS="media-libs/sdl-ttf
18 media-libs/libsdl[video]
19 media-libs/sdl-mixer
20 media-libs/sdl-image[jpeg,png]
21 media-libs/libpng:0=
22 sys-libs/zlib
23 net-misc/curl
24 || ( >=dev-libs/xerces-c-3[icu] >=dev-libs/xerces-c-3[-icu,-iconv] )
25 net-libs/enet
26 nls? ( virtual/libintl )"
27 DEPEND="${COMMON_DEPS}
28 sys-devel/gettext"
29 RDEPEND="${COMMON_DEPS}
30 media-fonts/dejavu
31 x11-misc/xdg-utils"
32
33 src_prepare() {
34 cp /usr/share/gettext/config.rpath .
35 epatch "${FILESDIR}"/${P}-build.patch
36 sed -i \
37 -e "s:DOCDIR:\"/usr/share/doc/${P}/html\":" \
38 src/main.cc || die
39 eautoreconf
40 }
41
42 src_configure() {
43 egamesconf \
44 --with-system-enet \
45 $(use_enable nls)
46 }
47
48 src_install() {
49 DOCS="ACKNOWLEDGEMENTS AUTHORS CHANGES README doc/HACKING" \
50 default
51 dosym \
52 /usr/share/fonts/dejavu/DejaVuSansCondensed.ttf \
53 "${GAMES_DATADIR}"/${PN}/fonts/DejaVuSansCondensed.ttf
54 dosym \
55 /usr/share/fonts/dejavu/DejaVuSans.ttf \
56 "${GAMES_DATADIR}"/${PN}/fonts/vera_sans.ttf
57 dohtml -r doc/*
58 doman doc/enigma.6
59 prepgamesdirs
60 }
61
62 pkg_preinst() {
63 games_pkg_preinst
64 gnome2_icon_savelist
65 }
66
67 pkg_postinst() {
68 games_pkg_postinst
69 gnome2_icon_cache_update
70 }
71
72 pkg_postrm() {
73 gnome2_icon_cache_update
74 }

  ViewVC Help
Powered by ViewVC 1.1.20