diff options
Diffstat (limited to 'games-util/hearse/hearse-1.4.ebuild')
-rw-r--r-- | games-util/hearse/hearse-1.4.ebuild | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/games-util/hearse/hearse-1.4.ebuild b/games-util/hearse/hearse-1.4.ebuild new file mode 100644 index 000000000000..2a3dea90ba96 --- /dev/null +++ b/games-util/hearse/hearse-1.4.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-util/hearse/hearse-1.4.ebuild,v 1.1 2003/11/25 11:05:46 mr_bones_ Exp $ + +inherit games + +DESCRIPTION="exchange Nethack bones files with other players" +HOMEPAGE="http://www.argon.org/~roderick/hearse/" +SRC_URI="http://www.argon.org/~roderick/hearse/dist/${P}.tar.gz" + +KEYWORDS="~x86" +LICENSE="GPL-2" +SLOT="0" +IUSE="" + +DEPEND=">=dev-lang/perl-5.8.0 + >=games-roguelike/nethack-3.4.1 + >=sys-apps/sed-4" + +src_unpack() { + unpack ${A} + cd ${S} + + # patch because Gentoo's nethack ebuild uses bz2 and not gz for bones + sed -i \ + -e "s:gzip :bzip2 :" \ + -e "s:.gz:.bz2:" hearse || \ + die "sed hearse failed" + sed -i \ + -e 's:gzip :bzip2 :' \ + -e "s:gz|z|Z:bz2:" bones-info || \ + die "sed bones-info failed" +} +src_compile() { + perl Makefile.PL || die "perl failed" + emake || die "emake failed" +} + +src_install() { + dogamesbin hearse bones-info || die "dogamesbin failed" + doman blib/man1/*.1 || die "doman failed" + dodoc Notes README debian/changelog || die "dodoc failed" + prepgamesdirs +} + +pkg_postinst() { + games_pkg_postinst + + einfo "As root, run \"${GAMES_BINDIR}/hearse --user-email your@address.com\" to activate." + einfo "Add the following to /etc/crontab to automatically exchange bones:" + einfo " 0 3 * * * root perl -we 'sleep rand 3600'; ${GAMES_BINDIR}/hearse --quiet" +} |