Clean up misc crap.
authorMike Frysinger <vapier@gentoo.org>
Thu, 13 Oct 2005 00:30:47 +0000 (00:30 +0000)
committerMike Frysinger <vapier@gentoo.org>
Thu, 13 Oct 2005 00:30:47 +0000 (00:30 +0000)
Package-Manager: portage-2.0.53_rc5

games-misc/fortune-mod-sp-fortunes/Manifest
games-misc/fortune-mod/ChangeLog
games-misc/fortune-mod/Manifest
games-misc/fortune-mod/files/digest-fortune-mod-1.99.1-r2 [new file with mode: 0644]
games-misc/fortune-mod/files/fortune-mod-1.99.1-gentoo.patch
games-misc/fortune-mod/fortune-mod-1.99.1-r2.ebuild [new file with mode: 0644]

index 7b0c9be1e2d2557cf5175df99bba45aea33fe443..9086bcd231c8de65e9ce598c693e4d4eebc991b7 100644 (file)
@@ -1,4 +1,6 @@
-MD5 f4ac868f7ac0f295bde3be7bf8f6eb82 ChangeLog 909
+MD5 c1098243ffd4af2dd2ffc351d34ff174 ChangeLog 1081
+MD5 94ac29960f1c70a63745d953165c2906 files/digest-fortune-mod-sp-fortunes-0.1 57
+MD5 25db118d213d49ff8832a7c745796848 files/digest-fortune-mod-sp-fortunes-0.2 57
 MD5 b4efe8fb649934fde6d9fef36d97f8e5 fortune-mod-sp-fortunes-0.1.ebuild 672
+MD5 4ee1ddfa7516368db3cf75f374facd0f fortune-mod-sp-fortunes-0.2.ebuild 697
 MD5 f17b9b8fa07a38914fe1c03268f51678 metadata.xml 158
-MD5 94ac29960f1c70a63745d953165c2906 files/digest-fortune-mod-sp-fortunes-0.1 57
index 71c762f33823aac6816a1b33fc7189e9065de718..b43e86af8e200ee773b0734f6fb0ecb2ff1b722b 100644 (file)
@@ -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:
index fdbf73ee1cbbf86a9bc2b23b4a604e6f41234272..e5617fee41f1e86585dbaa4734149376d3e8d002 100644 (file)
@@ -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 (file)
index 0000000..3cc07d2
--- /dev/null
@@ -0,0 +1 @@
+MD5 f208805b3b712e32997d7667e0ec52d8 fortune-mod-1.99.1.tar.gz 1812089
index 377d72b804b594f3eefe01b398c097b1575a6e89..2827ff55c7aa76b898ec0efb479fabd8a7cafad6 100644 (file)
@@ -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 (file)
index 0000000..3d81fdf
--- /dev/null
@@ -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
+}