diff options
Diffstat (limited to 'games-puzzle/hoh-bin/hoh-bin-1.0.ebuild')
-rw-r--r-- | games-puzzle/hoh-bin/hoh-bin-1.0.ebuild | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/games-puzzle/hoh-bin/hoh-bin-1.0.ebuild b/games-puzzle/hoh-bin/hoh-bin-1.0.ebuild new file mode 100644 index 000000000000..7993074fe364 --- /dev/null +++ b/games-puzzle/hoh-bin/hoh-bin-1.0.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-puzzle/hoh-bin/hoh-bin-1.0.ebuild,v 1.1 2004/01/05 07:51:20 mr_bones_ Exp $ + +inherit games + +S="${WORKDIR}/hoh-install-1.0" +DESCRIPTION="PC remake of the spectrum game" +HOMEPAGE="http://retrospec.sgn.net/games/hoh/" +SRC_URI="http://retrospec.sgn.net/download.php?id=63\&path=games/hoh/bin/hohlin-${PV/./}.tar.bz2" + +RESTRICT="nostrip" +KEYWORDS="x86" +LICENSE="free-noncomm" +SLOT="0" +IUSE="" + +DEPEND="virtual/x11" + +src_compile() { + cat > "${T}/hoh" <<-EOF + #!/bin/bash + export LD_LIBRARY_PATH="${GAMES_PREFIX_OPT}/HoH/data/runtime" + cd "${GAMES_PREFIX_OPT}/HoH/data" + exec ./HoH \$@ +EOF +} + +src_install() { + local DATADIR="${GAMES_PREFIX_OPT}/HoH/data" + local DOCDIR="${GAMES_PREFIX_OPT}/HoH/docs" + + dogamesbin "${T}/hoh" || die "dogames bin failed" + dodir "${DATADIR}" "${DOCDIR}" || die "dodir failed" + cp -af data/* "${D}/${DATADIR}/" || die "cp failed (data)" + cp -af docs/* "${D}/${DOCDIR}/" || die "cp failed (docs)" + prepgamesdirs +} |