diff options
Diffstat (limited to 'games-board/awale/awale-1.5.ebuild')
-rw-r--r-- | games-board/awale/awale-1.5.ebuild | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/games-board/awale/awale-1.5.ebuild b/games-board/awale/awale-1.5.ebuild new file mode 100644 index 000000000000..a0347e497782 --- /dev/null +++ b/games-board/awale/awale-1.5.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2015 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=5 + +inherit autotools eutils gnome2-utils games + +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} http://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= )" + +src_prepare() { + epatch "${FILESDIR}"/${P}-build.patch + + mv src/xawale.tcl src/xawale.tcl.in || die + mv configure.in configure.ac + rm aclocal.m4 + eautoreconf +} + +src_configure() { + egamesconf \ + --mandir=/usr/share/man \ + --with-iconsdir=/usr/share/icons/hicolor/48x48/apps \ + --with-desktopdir=/usr/share/applications \ + $(use_enable tk) +} + +src_install() { + default + prepgamesdirs + use tk && fperms +x "${GAMES_DATADIR}"/${PN}/xawale.tcl +} + +pkg_preinst() { + games_pkg_preinst + use tk && gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + use tk && gnome2_icon_cache_update +} + +pkg_postrm() { + use tk && gnome2_icon_cache_update +} |