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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sat Feb 7 01:55:07 2015 UTC (4 years, 11 months ago) by mr_bones_
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
old

(Portage version: 2.2.14/cvs/Linux x86_64, unsigned Manifest commit)

1 # Copyright 1999-2013 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.20.ebuild,v 1.2 2013/05/08 19:44:45 mr_bones_ 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:0
26 media-fonts/dejavu
27 nls? ( virtual/libintl )"
28 DEPEND="${COMMON_DEPS}
29 sys-devel/gettext"
30 RDEPEND="${COMMON_DEPS}
31 x11-misc/xdg-utils"
32
33 src_prepare() {
34 rm -rf lib-src/enet
35 cp /usr/share/gettext/config.rpath .
36 epatch "${FILESDIR}"/${P}-autotools.patch
37 sed -i \
38 -e "s:DOCDIR:\"/usr/share/doc/${P}/html\":" \
39 src/main.cc || die
40 eautoreconf
41 }
42
43 src_configure() {
44 egamesconf $(use_enable nls)
45 }
46
47 src_install() {
48 emake DESTDIR="${D}" install
49 #rm -f "${GAMES_DATADIR}"/${PN}/fonts/DejaVuSansCondensed.ttf
50 dosym \
51 /usr/share/fonts/dejavu/DejaVuSansCondensed.ttf \
52 "${GAMES_DATADIR}"/${PN}/fonts/DejaVuSansCondensed.ttf
53 dodoc ACKNOWLEDGEMENTS AUTHORS CHANGES README doc/HACKING
54 dohtml -r doc/*
55 doman doc/enigma.6
56 prepgamesdirs
57 }
58
59 pkg_preinst() {
60 games_pkg_preinst
61 gnome2_icon_savelist
62 }
63
64 pkg_postinst() {
65 games_pkg_postinst
66 gnome2_icon_cache_update
67 }
68
69 pkg_postrm() {
70 gnome2_icon_cache_update
71 }

  ViewVC Help
Powered by ViewVC 1.1.20