/[gentoo-x86]/games-misc/fortune-mod/fortune-mod-1.0.9708-r1.ebuild
Gentoo

Contents of /games-misc/fortune-mod/fortune-mod-1.0.9708-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Sat Jan 29 05:20:52 2005 UTC (9 years, 7 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
respect $CC / $LDFLAGS #78928
(Portage version: 2.0.51-r15)

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

  ViewVC Help
Powered by ViewVC 1.1.20