| 1 |
# Copyright 1999-2004 Gentoo Technologies, Inc.
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /home/cvsroot/gentoo-x86/games-misc/fortune-mod/fortune-mod-9708-r1.ebuild,v 1.4 2004/05/04 00:21:18 mr_bones_ Exp $
|
| 4 |
|
| 5 |
inherit eutils
|
| 6 |
|
| 7 |
#The original (http://www.progsoc.uts.edu.au/~dbugger/hacks/hacks.html) is dead
|
| 8 |
# but the guy setup his 'perm' home with LSM (http://lsm.execpc.com/)
|
| 9 |
DESCRIPTION="The notorious fortune program"
|
| 10 |
HOMEPAGE="ftp://sunsite.unc.edu/pub/Linux/games/amusements/fortune/"
|
| 11 |
SRC_URI="http://www.ibiblio.org/pub/Linux/games/amusements/fortune/${P}.tar.gz"
|
| 12 |
|
| 13 |
LICENSE="BSD"
|
| 14 |
SLOT="0"
|
| 15 |
KEYWORDS="x86 ppc sparc mips alpha hppa amd64"
|
| 16 |
IUSE="offensive"
|
| 17 |
|
| 18 |
DEPEND="virtual/glibc"
|
| 19 |
|
| 20 |
pkg_setup() {
|
| 21 |
einfo "By default the fortune ebuild does not include 'offensive' fortunes."
|
| 22 |
einfo "If you wish to enable this functionality, you must manually edit the"
|
| 23 |
einfo "ebuild. The comments inside are self explainatory."
|
| 24 |
}
|
| 25 |
|
| 26 |
src_unpack() {
|
| 27 |
unpack ${A}
|
| 28 |
cd ${S}
|
| 29 |
epatch ${FILESDIR}/${PV}-Makefile.patch
|
| 30 |
epatch ${FILESDIR}/${PV}-ppc-rot.patch
|
| 31 |
}
|
| 32 |
|
| 33 |
src_compile() {
|
| 34 |
[ `use offensive` ] && off=1 || off=0
|
| 35 |
emake \
|
| 36 |
OFFENSIVE=${off} \
|
| 37 |
OPTCFLAGS="${CFLAGS}" \
|
| 38 |
|| die
|
| 39 |
}
|
| 40 |
|
| 41 |
src_install() {
|
| 42 |
[ `use offensive` ] && off=1 || off=0
|
| 43 |
make \
|
| 44 |
OFFENSIVE=${off} \
|
| 45 |
OPTCFLAGS="${CFLAGS}" \
|
| 46 |
DESTDIR=${D} \
|
| 47 |
install \
|
| 48 |
|| die
|
| 49 |
|
| 50 |
dosed /usr/share/man/man6/fortune.6
|
| 51 |
|
| 52 |
dodoc ChangeLog INDEX INSTALL Notes README TODO
|
| 53 |
}
|