summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin English <wizardedit@gentoo.org>2016-09-08 13:24:18 -0500
committerAustin English <wizardedit@gentoo.org>2016-09-08 13:24:27 -0500
commit88cffad02cf554b77e3bda2c7ad3fc4219ce12c8 (patch)
tree067d06a4fea62099d254fec7566dc5a07596f928 /games-board
parentgames-board/ascal: remove deprecated games eclass (diff)
downloadgentoo-88cffad02cf554b77e3bda2c7ad3fc4219ce12c8.tar.gz
gentoo-88cffad02cf554b77e3bda2c7ad3fc4219ce12c8.tar.bz2
gentoo-88cffad02cf554b77e3bda2c7ad3fc4219ce12c8.zip
games-board/awale: remove deprecated games eclass
Also update to EAPI 6 Gentoo-Bug: https://bugs.gentoo.org/574082 Package-Manager: portage-2.3.0
Diffstat (limited to 'games-board')
-rw-r--r--games-board/awale/awale-1.5-r1.ebuild60
1 files changed, 60 insertions, 0 deletions
diff --git a/games-board/awale/awale-1.5-r1.ebuild b/games-board/awale/awale-1.5-r1.ebuild
new file mode 100644
index 000000000000..96ed7bcb45dc
--- /dev/null
+++ b/games-board/awale/awale-1.5-r1.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+# do not use autotools related stuff in stable ebuilds
+# unless you like random breakage: 469796, 469798, 424041
+
+EAPI=6
+
+inherit autotools eutils gnome2-utils
+
+DESCRIPTION="Free Awale - The game of all Africa"
+HOMEPAGE="http://www.nongnu.org/awale/"
+SRC_URI="mirror://nongnu/awale/${P}.tar.gz"
+SRC_URI="${SRC_URI} https://dev.gentoo.org/~hasufell/distfiles/${P}-no-autoreconf2.patch.xz" # STABLE ARCH
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="tk"
+
+RDEPEND="tk? ( dev-lang/tcl:0= dev-lang/tk:0= )"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-build.patch
+)
+
+src_prepare() {
+ default
+
+ mv src/xawale.tcl src/xawale.tcl.in || die
+ mv configure.{in,ac} || die
+ rm aclocal.m4 || die
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --mandir=/usr/share/man \
+ --with-iconsdir=/usr/share/icons/hicolor/48x48/apps \
+ --with-desktopdir=/usr/share/applications \
+ $(use_enable tk)
+}
+
+src_install() {
+ default
+ use tk && fperms +x /usr/share/${PN}/xawale.tcl
+}
+
+pkg_preinst() {
+ use tk && gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ use tk && gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ use tk && gnome2_icon_cache_update
+}