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

Contents of /games-misc/fortune-mod/fortune-mod-1.99.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.14 - (show annotations) (download)
Thu Feb 3 23:18:34 2005 UTC (9 years, 10 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.13: +1 -1 lines
FILE REMOVED
Fix #78928 again since OS X broke it.
(Portage version: 2.0.51-r15)

1 # Copyright 1999-2005 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.99.1.ebuild,v 1.13 2005/01/29 05:20:52 vapier Exp $
4
5 inherit eutils toolchain-funcs
6
7 DESCRIPTION="The notorious fortune program"
8 HOMEPAGE="http://www.redellipse.net/code/fortune"
9 SRC_URI="http://www.redellipse.net/code/downloads/${P}.tar.gz"
10
11 LICENSE="BSD"
12 SLOT="0"
13 KEYWORDS="alpha amd64 hppa mips ppc sparc x86"
14 IUSE="offensive"
15
16 DEPEND="virtual/libc
17 app-text/recode"
18
19 src_unpack() {
20 unpack ${A}
21 cd ${S}
22
23 sed -i \
24 -e 's:/games::' \
25 -e 's:/fortunes:/fortune:' \
26 -e 's:FORTDIR=$(prefix)/usr:FORTDIR=$(prefix)/usr/bin:' \
27 -e 's:^CFLAGS=.*$:CFLAGS=$(DEFINES) $(E_CFLAGS):' \
28 -e '/^all:/s:$: fortune/fortune.man:' \
29 Makefile \
30 || die "sed Makefile failed"
31 sed -i \
32 -e 's:char a, b;:short int a, b;:' util/rot.c \
33 || die "sed util/rot.c failed"
34
35 # fixes the '-m' segfault problem on _my_ computer,
36 # it might screw something else up i don't know about.
37 sed -i \
38 -e '/if (fp->utf8_charset)/{
39 N
40 /free (output);/d
41 }' fortune/fortune.c \
42 || die "sed fortune/fortune.c failed"
43 use offensive && off=1 || off=0
44 }
45
46 src_compile() {
47 emake \
48 CC=$(tc-getCC) \
49 E_CFLAGS="${CFLAGS}" \
50 LDFLAGS="${LDFLAGS}" \
51 OFFENSIVE="${off}" \
52 || die "emake failed"
53 }
54
55 src_install() {
56 make \
57 OFFENSIVE="${off}" \
58 prefix="${D}" \
59 install \
60 || die "make install failed"
61
62 dodoc ChangeLog INDEX INSTALL Notes Offensive README TODO cookie-files
63 }

  ViewVC Help
Powered by ViewVC 1.1.20