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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Wed May 12 21:29:43 2004 UTC (10 years, 2 months ago) by wolf31o2
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Moved fortune-mod-9708 to fortune-mod-1.0.9708 and added fortune-mod-1.99.1 as ~x86.  This should solve the version change in the upstream packaging.  It will require a downgrade for all stable arches, and will even show up as a downgrade on ~arch machines due to the nature of the old versioning.  This closes bug #43906.

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 }

  ViewVC Help
Powered by ViewVC 1.1.20