diff options
Diffstat (limited to 'games-misc/gBhed/gBhed-0.17.ebuild')
-rw-r--r-- | games-misc/gBhed/gBhed-0.17.ebuild | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/games-misc/gBhed/gBhed-0.17.ebuild b/games-misc/gBhed/gBhed-0.17.ebuild new file mode 100644 index 000000000000..ddd5b4827054 --- /dev/null +++ b/games-misc/gBhed/gBhed-0.17.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +DESCRIPTION="An Al Bhed translator" +HOMEPAGE="http://liquidchile.net/software/gbhed/" +SRC_URI="http://liquidchile.net/software/gbhed/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="gtk" + +DEPEND="gtk? ( x11-libs/gtk+:2 )" + +src_prepare() { + sed -i 's/19/32/' src/gui/translation_fork.c || die +} + +src_configure() { + egamesconf \ + --datadir="${GAMES_DATADIR}"/${PN} \ + $(use_enable gtk gbhed) +} + +src_install() { + emake -C src DESTDIR="${D}" install + dodoc AUTHORS ChangeLog NEWS README THANKS TODO + doman doc/abtranslate.1 + + if use gtk ; then + insinto "${GAMES_DATADIR}"/${PN}/pixmaps + doins pixmaps/*.{jpg,png,xpm} + newicon pixmaps/gbhed48.png ${PN}.png + make_desktop_entry gbhed ${PN} + doman doc/gbhed.1 + fi + + prepgamesdirs +} |