diff options
Diffstat (limited to 'games-puzzle/enigma/enigma-0.92.ebuild')
-rw-r--r-- | games-puzzle/enigma/enigma-0.92.ebuild | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/games-puzzle/enigma/enigma-0.92.ebuild b/games-puzzle/enigma/enigma-0.92.ebuild new file mode 100644 index 000000000000..7bc1a8c7f34f --- /dev/null +++ b/games-puzzle/enigma/enigma-0.92.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-puzzle/enigma/enigma-0.92.ebuild,v 1.1 2005/06/17 00:39:56 mr_bones_ Exp $ + +inherit eutils games + +DESCRIPTION="puzzle game similar to Oxyd" +HOMEPAGE="http://www.nongnu.org/enigma/" +SRC_URI="http://savannah.nongnu.org/download/enigma/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ppc ~sparc x86" +IUSE="nls" + +DEPEND="sys-libs/zlib + media-libs/sdl-ttf + >=media-libs/libsdl-1.2.0 + >=media-libs/sdl-mixer-1.2.4 + >=media-libs/sdl-image-1.2.0 + >=dev-lang/lua-4.0 + nls? ( sys-devel/gettext )" + +src_unpack() { + unpack ${A} + cd "${S}" + + # fix up the locale install location + if use nls ; then + sed -i \ + -e "/^datadir/s:=.*:= /usr/share:" \ + po/Makefile.in.in \ + src/Makefile.am \ + || die "sed failed" + fi + + # thanks, we'll handle the doc install ourselves. + sed -i \ + -e 's/: install-docDATA/:/' \ + -e '/^SUBDIRS/s/doc//' Makefile.in \ + || die "sed failed" +} + +src_compile() { + egamesconf \ + --disable-dependency-tracking \ + --enable-optimize \ + $(use_enable nls) \ + || die + emake || die "emake failed" +} + +src_install() { + make DESTDIR="${D}" install || die "make install failed" + mv "${D}/${GAMES_PREFIX}/share/"* "${D}/usr/share/" + rm -r "${D}/${GAMES_PREFIX}/share" + dodoc NEWS README AUTHORS ChangeLog \ + doc/{TODO,CREATING-LEVELS,HACKING} + dohtml -r doc/* + doman doc/enigma.6 + prepgamesdirs +} |