summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2004-05-13 09:16:49 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2004-05-13 09:16:49 +0000
commit22abc9557db6e91bfb1cb3b24ca150e1bdd986f4 (patch)
tree96b6b896c0bea26afdeed9fdc631df7c53f95092 /games-misc
parentsecurity bump to stable (diff)
downloadhistorical-22abc9557db6e91bfb1cb3b24ca150e1bdd986f4.tar.gz
historical-22abc9557db6e91bfb1cb3b24ca150e1bdd986f4.tar.bz2
historical-22abc9557db6e91bfb1cb3b24ca150e1bdd986f4.zip
off into function; error check sed; E_CFLAGS; error messages
Diffstat (limited to 'games-misc')
-rw-r--r--games-misc/fortune-mod/ChangeLog6
-rw-r--r--games-misc/fortune-mod/Manifest4
-rw-r--r--games-misc/fortune-mod/fortune-mod-1.99.1.ebuild27
3 files changed, 23 insertions, 14 deletions
diff --git a/games-misc/fortune-mod/ChangeLog b/games-misc/fortune-mod/ChangeLog
index 9e14248a4f33..0a53a2bc4876 100644
--- a/games-misc/fortune-mod/ChangeLog
+++ b/games-misc/fortune-mod/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for games-misc/fortune-mod
# Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-misc/fortune-mod/ChangeLog,v 1.5 2004/05/13 08:10:45 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-misc/fortune-mod/ChangeLog,v 1.6 2004/05/13 09:16:49 mr_bones_ Exp $
+
+ 13 May 2004; Michael Sterrett <mr_bones_@gentoo.org>
+ fortune-mod-1.99.1.ebuild:
+ off into function; error check sed; E_CFLAGS; error messages
13 May 2004; Michael Sterrett <mr_bones_@gentoo.org>
fortune-mod-1.0.9708-r1.ebuild:
diff --git a/games-misc/fortune-mod/Manifest b/games-misc/fortune-mod/Manifest
index 3a114ec60eac..462100637aa4 100644
--- a/games-misc/fortune-mod/Manifest
+++ b/games-misc/fortune-mod/Manifest
@@ -1,7 +1,7 @@
-MD5 2a972158f3889cea31709f58e942cfa4 ChangeLog 2902
+MD5 b15e1fbcf10695e25df8afb53924f99e ChangeLog 3050
MD5 f17b9b8fa07a38914fe1c03268f51678 metadata.xml 158
MD5 8879ab5e327e06d792dde202f6305039 fortune-mod-1.0.9708-r1.ebuild 1508
-MD5 48df5a5eee64295dff17af0eda666b87 fortune-mod-1.99.1.ebuild 1256
+MD5 1c3f352f3329080dfc9e4e20dce0dc91 fortune-mod-1.99.1.ebuild 1440
MD5 69ebce3aec1f10dead82c52fd02c1350 files/9708-Makefile.patch 1305
MD5 53d07a3874dcef229e5e19296a9d8db1 files/9708-ppc-rot.patch 226
MD5 45891a0eae39a7ec90b6f2433147874f files/digest-fortune-mod-1.0.9708-r1 69
diff --git a/games-misc/fortune-mod/fortune-mod-1.99.1.ebuild b/games-misc/fortune-mod/fortune-mod-1.99.1.ebuild
index 7dffb0871c9a..e4a7f622ecc8 100644
--- a/games-misc/fortune-mod/fortune-mod-1.99.1.ebuild
+++ b/games-misc/fortune-mod/fortune-mod-1.99.1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-misc/fortune-mod/fortune-mod-1.99.1.ebuild,v 1.2 2004/05/13 07:52:01 kumba Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-misc/fortune-mod/fortune-mod-1.99.1.ebuild,v 1.3 2004/05/13 09:16:49 mr_bones_ Exp $
inherit eutils
@@ -16,8 +16,6 @@ IUSE="offensive"
DEPEND="virtual/glibc
app-text/recode"
-[ `use offensive` ] && off=1 || off=0
-
src_unpack() {
unpack ${A}
cd ${S}
@@ -26,22 +24,29 @@ src_unpack() {
-e 's:/games::' \
-e 's:/fortunes:/fortune:' \
-e 's:FORTDIR=$(prefix)/usr:FORTDIR=$(prefix)/usr/bin:' \
- -e "s:^CFLAGS=.*$:CFLAGS=\$(DEFINES) ${CFLAGS}:" \
- Makefile
- sed -i 's:char a, b;:short int a, b;:' util/rot.c
+ -e 's:^CFLAGS=.*$:CFLAGS=$(DEFINES) $(E_CFLAGS):' \
+ Makefile \
+ || die "sed Makefile failed"
+ sed -i \
+ -e 's:char a, b;:short int a, b;:' util/rot.c \
+ || die "sed util/rot.c failed"
- # fixes the '-m' segfault problem on _my_ computer, it might screw something else up i don't know about.
+ # fixes the '-m' segfault problem on _my_ computer,
+ # it might screw something else up i don't know about.
sed -i \
- '/if (fp->utf8_charset)/{
+ -e '/if (fp->utf8_charset)/{
N
/free (output);/d
- }' fortune/fortune.c
+ }' fortune/fortune.c \
+ || die "sed fortune/fortune.c failed"
+ use offensive && off=1 || off=0
}
src_compile() {
emake \
+ E_CFLAGS="${CFLAGS}" \
OFFENSIVE="${off}" \
- || die
+ || die "emake failed"
}
src_install() {
@@ -49,7 +54,7 @@ src_install() {
OFFENSIVE="${off}" \
prefix="${D}" \
install \
- || die
+ || die "make install failed"
dodoc ChangeLog INDEX INSTALL Notes Offensive README TODO cookie-files
}