summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2018-05-01 13:13:30 +0200
committerPacho Ramos <pacho@gentoo.org>2018-05-01 21:32:20 +0200
commitb31de580329d508063c5d28940fda6bd3b62b2d1 (patch)
treea4ffa7fb6c99357604380959c991700684f4d471 /games-puzzle/enigma
parentgames-puzzle/einstein: Drop old (diff)
downloadgentoo-b31de580329d508063c5d28940fda6bd3b62b2d1.tar.gz
gentoo-b31de580329d508063c5d28940fda6bd3b62b2d1.tar.bz2
gentoo-b31de580329d508063c5d28940fda6bd3b62b2d1.zip
games-puzzle/enigma: Stop using games.eclass
Package-Manager: Portage-2.3.31, Repoman-2.3.9
Diffstat (limited to 'games-puzzle/enigma')
-rw-r--r--games-puzzle/enigma/enigma-1.21-r3.ebuild75
1 files changed, 75 insertions, 0 deletions
diff --git a/games-puzzle/enigma/enigma-1.21-r3.ebuild b/games-puzzle/enigma/enigma-1.21-r3.ebuild
new file mode 100644
index 000000000000..bdecef930251
--- /dev/null
+++ b/games-puzzle/enigma/enigma-1.21-r3.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools gnome2-utils
+
+DESCRIPTION="Puzzle game similar to Oxyd"
+HOMEPAGE="http://www.nongnu.org/enigma/"
+SRC_URI="mirror://sourceforge/enigma-game/${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="nls"
+
+COMMON_DEPS="
+ media-libs/sdl-ttf
+ media-libs/libsdl[video]
+ media-libs/sdl-mixer
+ media-libs/sdl-image[jpeg,png]
+ media-libs/libpng:0=
+ sys-libs/zlib
+ net-misc/curl
+ || ( >=dev-libs/xerces-c-3[icu] >=dev-libs/xerces-c-3[-icu,-iconv] )
+ net-libs/enet:=
+ nls? ( virtual/libintl )
+"
+DEPEND="${COMMON_DEPS}
+ sys-devel/gettext
+"
+RDEPEND="${COMMON_DEPS}
+ media-fonts/dejavu
+ x11-misc/xdg-utils
+"
+
+src_prepare() {
+ default
+ cp /usr/share/gettext/config.rpath .
+ eapply "${FILESDIR}"/${P}-build.patch \
+ "${FILESDIR}"/${P}-gcc6.patch
+ sed -i \
+ -e "s:DOCDIR:\"/usr/share/doc/${P}/html\":" \
+ src/main.cc || die
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --with-system-enet \
+ $(use_enable nls)
+}
+
+src_install() {
+ HTML_DOCS="doc/*" DOCS="ACKNOWLEDGEMENTS AUTHORS CHANGES README doc/HACKING" \
+ default
+ dosym \
+ /usr/share/fonts/dejavu/DejaVuSansCondensed.ttf \
+ /usr/share/${PN}/fonts/DejaVuSansCondensed.ttf
+ dosym \
+ /usr/share/fonts/dejavu/DejaVuSans.ttf \
+ /usr/share/${PN}/fonts/vera_sans.ttf
+ doman doc/enigma.6
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}