diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-10-13 00:30:47 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-10-13 00:30:47 +0000 |
commit | 68c58eb78035bfde5573368a81c4ec2fdfd653fc (patch) | |
tree | 5a34bc85a949a74a61d4e1f31d0fcb76bb028c33 /games-misc/fortune-mod | |
parent | ~ppc-macos keyword (diff) | |
download | historical-68c58eb78035bfde5573368a81c4ec2fdfd653fc.tar.gz historical-68c58eb78035bfde5573368a81c4ec2fdfd653fc.tar.bz2 historical-68c58eb78035bfde5573368a81c4ec2fdfd653fc.zip |
Clean up misc crap.
Package-Manager: portage-2.0.53_rc5
Diffstat (limited to 'games-misc/fortune-mod')
-rw-r--r-- | games-misc/fortune-mod/ChangeLog | 10 | ||||
-rw-r--r-- | games-misc/fortune-mod/Manifest | 18 | ||||
-rw-r--r-- | games-misc/fortune-mod/files/digest-fortune-mod-1.99.1-r2 | 1 | ||||
-rw-r--r-- | games-misc/fortune-mod/files/fortune-mod-1.99.1-gentoo.patch | 71 | ||||
-rw-r--r-- | games-misc/fortune-mod/fortune-mod-1.99.1-r2.ebuild | 36 |
5 files changed, 89 insertions, 47 deletions
diff --git a/games-misc/fortune-mod/ChangeLog b/games-misc/fortune-mod/ChangeLog index 71c762f33823..b43e86af8e20 100644 --- a/games-misc/fortune-mod/ChangeLog +++ b/games-misc/fortune-mod/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for games-misc/fortune-mod -# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-misc/fortune-mod/ChangeLog,v 1.18 2005/08/27 17:56:51 corsair Exp $ +# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-misc/fortune-mod/ChangeLog,v 1.19 2005/10/13 00:30:47 vapier Exp $ + +*fortune-mod-1.99.1-r2 (13 Oct 2005) + + 13 Oct 2005; Mike Frysinger <vapier@gentoo.org> + files/fortune-mod-1.99.1-gentoo.patch, +fortune-mod-1.99.1-r2.ebuild: + Clean up misc crap. 27 Aug 2005; Markus Rothe <corsair@gentoo.org> fortune-mod-1.99.1-r1.ebuild: diff --git a/games-misc/fortune-mod/Manifest b/games-misc/fortune-mod/Manifest index fdbf73ee1cbb..e5617fee41f1 100644 --- a/games-misc/fortune-mod/Manifest +++ b/games-misc/fortune-mod/Manifest @@ -1,5 +1,17 @@ -MD5 43a071fbd4253dda8556f72d25c9c2e1 ChangeLog 4554 +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +MD5 93f27593bdaa6eca5cd1847f895076da ChangeLog 4736 +MD5 5ff47d4205e2b0ea5e0a538115a58237 files/digest-fortune-mod-1.99.1-r1 71 +MD5 5ff47d4205e2b0ea5e0a538115a58237 files/digest-fortune-mod-1.99.1-r2 71 +MD5 7bc30eb65bb0a4619124cb2219064945 files/fortune-mod-1.99.1-gentoo.patch 2040 MD5 d962711282e74285afccfbe293c27bfe fortune-mod-1.99.1-r1.ebuild 1641 +MD5 8163bf6e09f06a09452b09d6965a26e4 fortune-mod-1.99.1-r2.ebuild 1041 MD5 f17b9b8fa07a38914fe1c03268f51678 metadata.xml 158 -MD5 5ff47d4205e2b0ea5e0a538115a58237 files/digest-fortune-mod-1.99.1-r1 71 -MD5 50bbbab155b4fc9db4abb8a3b2ea7666 files/fortune-mod-1.99.1-gentoo.patch 2866 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.2 (GNU/Linux) + +iD8DBQFDTasygIKl8Uu19MoRAooQAJ9l2FMevttaq8eoZQVHB8qoBR2YSACfd9Sm +gymnLjytObtjhtP9ztoMdsk= +=NzsO +-----END PGP SIGNATURE----- diff --git a/games-misc/fortune-mod/files/digest-fortune-mod-1.99.1-r2 b/games-misc/fortune-mod/files/digest-fortune-mod-1.99.1-r2 new file mode 100644 index 000000000000..3cc07d26a029 --- /dev/null +++ b/games-misc/fortune-mod/files/digest-fortune-mod-1.99.1-r2 @@ -0,0 +1 @@ +MD5 f208805b3b712e32997d7667e0ec52d8 fortune-mod-1.99.1.tar.gz 1812089 diff --git a/games-misc/fortune-mod/files/fortune-mod-1.99.1-gentoo.patch b/games-misc/fortune-mod/files/fortune-mod-1.99.1-gentoo.patch index 377d72b804b5..2827ff55c7aa 100644 --- a/games-misc/fortune-mod/files/fortune-mod-1.99.1-gentoo.patch +++ b/games-misc/fortune-mod/files/fortune-mod-1.99.1-gentoo.patch @@ -1,30 +1,17 @@ -diff -uNr fortune-mod-1.99.1/datfiles/Makefile fortune-mod-1.99.1-new/datfiles/Makefile ---- fortune-mod-1.99.1/datfiles/Makefile Fri Mar 5 07:29:56 2004 -+++ fortune-mod-1.99.1-new/datfiles/Makefile Tue Feb 1 15:23:49 2005 -@@ -58,7 +58,7 @@ - if [ $(WEB) = 1 ] ; then cd html && $(MAKE) install ; fi - for i in $(COOKIES) ; do \ - install -m 0644 $$i $$i.dat $(COOKIEDIR) || exit $? ; \ -- cp -d $$i.u8 $(COOKIEDIR) ; \ -+ cp -R $$i.u8 $(COOKIEDIR) ; \ - done +--- fortune-mod-1.99.1/Makefile ++++ fortune-mod-1.99.1/Makefile +@@ -65,8 +65,7 @@ + RECODELIBS=-lrecode - clean: -diff -uNr fortune-mod-1.99.1/datfiles/off/Makefile fortune-mod-1.99.1-new/datfiles/off/Makefile ---- fortune-mod-1.99.1/datfiles/off/Makefile Fri Mar 5 07:29:56 2004 -+++ fortune-mod-1.99.1-new/datfiles/off/Makefile Tue Feb 1 15:24:28 2005 -@@ -38,7 +38,7 @@ - install -m 0755 -d $(OCOOKIEDIR) - for i in $(OCOOKIES) ; \ - do install -m 0644 $$i $$i.dat $(OCOOKIEDIR) || exit $$? ; \ -- cp -d $$i.u8 $(OCOOKIEDIR) ; \ -+ cp -R $$i.u8 $(OCOOKIEDIR) ; \ - done + DEFINES=-DFORTDIR="\"$(COOKIEDIR)\"" -DOFFDIR="\"$(OCOOKIEDIR)\"" -DLOCFORTDIR="\"$(LOCALDIR)\"" -DLOCOFFDIR="\"$(LOCALODIR)\"" +-CFLAGS=-O2 $(DEFINES) -Wall -fomit-frame-pointer -pipe -fsigned-char +-LDFLAGS=-s ++CFLAGS += $(DEFINES) -fsigned-char - clean: -diff -uNr fortune-mod-1.99.1/fortune/fortune.c fortune-mod-1.99.1-new/fortune/fortune.c ---- fortune-mod-1.99.1/fortune/fortune.c Fri Mar 5 07:29:56 2004 -+++ fortune-mod-1.99.1-new/fortune/fortune.c Tue Feb 1 15:28:44 2005 + # The above flags are used by default; the debug flags are used when make + # is called with a debug target, such as 'make debug' +--- fortune-mod-1.99.1/fortune/fortune.c ++++ fortune-mod-1.99.1/fortune/fortune.c @@ -97,7 +97,7 @@ #endif /* killing warnings */ @@ -34,21 +21,19 @@ diff -uNr fortune-mod-1.99.1/fortune/fortune.c fortune-mod-1.99.1-new/fortune/fo #ifdef HAVE_STDBOOL_H #include <stdbool.h> -@@ -256,7 +256,7 @@ - RECODE_OUTER outer; +@@ -256,6 +256,7 @@ int add_dir(register FILEDESC *); -- + +const char *program_name; char *program_version(void) { static char buf[BUFSIZ]; -@@ -1675,15 +1675,17 @@ - { +@@ -1675,14 +1675,17 @@ char *ctype, *crequest; getargs(ac, av); -- -+ program_name = (char *const) av[0]; + ++ program_name = (char *const) av[0]; outer = recode_new_outer(true); request = recode_new_request (outer); @@ -65,10 +50,9 @@ diff -uNr fortune-mod-1.99.1/fortune/fortune.c fortune-mod-1.99.1-new/fortune/fo crequest = malloc(strlen(ctype) + 7 + 1); sprintf(crequest, "UTF-8..%s", ctype); recode_scan_request (request, crequest); -diff -uNr fortune-mod-1.99.1/util/rot.c fortune-mod-1.99.1-new/util/rot.c ---- fortune-mod-1.99.1/util/rot.c Fri Mar 5 07:29:57 2004 -+++ fortune-mod-1.99.1-new/util/rot.c Tue Feb 1 15:29:51 2005 -@@ -5,6 +5,7 @@ +--- fortune-mod-1.99.1/util/rot.c ++++ fortune-mod-1.99.1/util/rot.c +@@ -5,10 +5,11 @@ #include <stdio.h> #include <ctype.h> @@ -76,14 +60,17 @@ diff -uNr fortune-mod-1.99.1/util/rot.c fortune-mod-1.99.1-new/util/rot.c int main(void) { -diff -uNr fortune-mod-1.99.1/util/unstr.c fortune-mod-1.99.1-new/util/unstr.c ---- fortune-mod-1.99.1/util/unstr.c Fri Mar 5 07:29:57 2004 -+++ fortune-mod-1.99.1-new/util/unstr.c Tue Feb 1 15:30:41 2005 -@@ -96,7 +96,7 @@ - #include <ctype.h> +- char a, b; ++ short int a, b; + + while ((a = getchar()) != EOF) + { +--- fortune-mod-1.99.1/util/unstr.c ++++ fortune-mod-1.99.1/util/unstr.c +@@ -96,6 +96,7 @@ #include <string.h> #include <unistd.h> -- + +#include <stdlib.h> #ifndef MAXPATHLEN #define MAXPATHLEN 1024 diff --git a/games-misc/fortune-mod/fortune-mod-1.99.1-r2.ebuild b/games-misc/fortune-mod/fortune-mod-1.99.1-r2.ebuild new file mode 100644 index 000000000000..3d81fdfc924f --- /dev/null +++ b/games-misc/fortune-mod/fortune-mod-1.99.1-r2.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2005 Gentoo Foundation +# 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-r2.ebuild,v 1.1 2005/10/13 00:30:47 vapier Exp $ + +inherit eutils toolchain-funcs + +DESCRIPTION="The notorious fortune program" +HOMEPAGE="http://www.redellipse.net/code/fortune" +SRC_URI="http://www.redellipse.net/code/downloads/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~ppc-macos ~ppc64 ~sparc ~x86" +IUSE="offensive" + +DEPEND="app-text/recode" + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}"/${P}-gentoo.patch + + sed -i \ + -e 's:/games::' \ + -e 's:/fortunes:/fortune:' \ + -e '/^FORTDIR=/s:=.*:=$(prefix)/usr/bin:' \ + -e '/^all:/s:$: fortune/fortune.man:' \ + -e "/^OFFENSIVE=/s:=.*:=`use offensive && echo 1 || echo 0`:" \ + Makefile || die "sed Makefile failed" +} + +src_install() { + make prefix="${D}" install || die "make install failed" + dodoc ChangeLog INDEX Notes Offensive README TODO cookie-files +} |