From 871aae7a6b6a0423977e104f110bca9a002e62ec Mon Sep 17 00:00:00 2001 From: Chris Gianelloni Date: Wed, 12 May 2004 21:29:43 +0000 Subject: 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. --- games-misc/fortune-mod/ChangeLog | 16 +++++-- games-misc/fortune-mod/Manifest | 8 ++-- .../files/digest-fortune-mod-1.0.9708-r1 | 1 + .../fortune-mod/files/digest-fortune-mod-1.99.1 | 1 + .../fortune-mod/files/digest-fortune-mod-9708-r1 | 1 - .../fortune-mod/fortune-mod-1.0.9708-r1.ebuild | 54 +++++++++++++++++++++ games-misc/fortune-mod/fortune-mod-1.99.1.ebuild | 55 ++++++++++++++++++++++ games-misc/fortune-mod/fortune-mod-9708-r1.ebuild | 53 --------------------- 8 files changed, 129 insertions(+), 60 deletions(-) create mode 100644 games-misc/fortune-mod/files/digest-fortune-mod-1.0.9708-r1 create mode 100644 games-misc/fortune-mod/files/digest-fortune-mod-1.99.1 delete mode 100644 games-misc/fortune-mod/files/digest-fortune-mod-9708-r1 create mode 100644 games-misc/fortune-mod/fortune-mod-1.0.9708-r1.ebuild create mode 100644 games-misc/fortune-mod/fortune-mod-1.99.1.ebuild delete mode 100644 games-misc/fortune-mod/fortune-mod-9708-r1.ebuild (limited to 'games-misc/fortune-mod') diff --git a/games-misc/fortune-mod/ChangeLog b/games-misc/fortune-mod/ChangeLog index 3ae92b05471a..3aec93dbca9a 100644 --- a/games-misc/fortune-mod/ChangeLog +++ b/games-misc/fortune-mod/ChangeLog @@ -1,7 +1,17 @@ # ChangeLog for games-misc/fortune-mod -# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-misc/fortune-mod/ChangeLog,v 1.2 2003/09/10 20:25:52 vapier Exp $ - +# Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-misc/fortune-mod/ChangeLog,v 1.3 2004/05/12 21:29:43 wolf31o2 Exp $ + +*fortune-mod-1.99.1 (12 May 2004) + + 12 May 2004; Chris Gianelloni + +fortune-mod-1.0.9708-r1.ebuild, +fortune-mod-1.99.1.ebuild, + -fortune-mod-9708-r1.ebuild: + 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. *fortune-mod-9708-r1 (20 Jul 2002) diff --git a/games-misc/fortune-mod/Manifest b/games-misc/fortune-mod/Manifest index b52efcf93a37..7eff5dbe4eff 100644 --- a/games-misc/fortune-mod/Manifest +++ b/games-misc/fortune-mod/Manifest @@ -1,6 +1,8 @@ -MD5 d3adb40b7c5f63929f86ed102af1ca66 ChangeLog 1961 -MD5 80d30c8c706eddc5b88284a711285313 fortune-mod-9708-r1.ebuild 1431 +MD5 d9c282d0a25b44eea5df80ef503e1a5c fortune-mod-1.0.9708-r1.ebuild 1453 +MD5 c62c1bbe8b6e302138cd80b79ed8a3f9 fortune-mod-1.99.1.ebuild 1246 +MD5 32b761b9d23e6256e3887e9a7e0f9340 ChangeLog 2476 MD5 f17b9b8fa07a38914fe1c03268f51678 metadata.xml 158 +MD5 45891a0eae39a7ec90b6f2433147874f files/digest-fortune-mod-1.0.9708-r1 69 +MD5 5ff47d4205e2b0ea5e0a538115a58237 files/digest-fortune-mod-1.99.1 71 MD5 69ebce3aec1f10dead82c52fd02c1350 files/9708-Makefile.patch 1305 MD5 53d07a3874dcef229e5e19296a9d8db1 files/9708-ppc-rot.patch 226 -MD5 45891a0eae39a7ec90b6f2433147874f files/digest-fortune-mod-9708-r1 69 diff --git a/games-misc/fortune-mod/files/digest-fortune-mod-1.0.9708-r1 b/games-misc/fortune-mod/files/digest-fortune-mod-1.0.9708-r1 new file mode 100644 index 000000000000..679b925ad361 --- /dev/null +++ b/games-misc/fortune-mod/files/digest-fortune-mod-1.0.9708-r1 @@ -0,0 +1 @@ +MD5 81a87a44f9d94b0809dfc2b7b140a379 fortune-mod-9708.tar.gz 1408517 diff --git a/games-misc/fortune-mod/files/digest-fortune-mod-1.99.1 b/games-misc/fortune-mod/files/digest-fortune-mod-1.99.1 new file mode 100644 index 000000000000..3cc07d26a029 --- /dev/null +++ b/games-misc/fortune-mod/files/digest-fortune-mod-1.99.1 @@ -0,0 +1 @@ +MD5 f208805b3b712e32997d7667e0ec52d8 fortune-mod-1.99.1.tar.gz 1812089 diff --git a/games-misc/fortune-mod/files/digest-fortune-mod-9708-r1 b/games-misc/fortune-mod/files/digest-fortune-mod-9708-r1 deleted file mode 100644 index 679b925ad361..000000000000 --- a/games-misc/fortune-mod/files/digest-fortune-mod-9708-r1 +++ /dev/null @@ -1 +0,0 @@ -MD5 81a87a44f9d94b0809dfc2b7b140a379 fortune-mod-9708.tar.gz 1408517 diff --git a/games-misc/fortune-mod/fortune-mod-1.0.9708-r1.ebuild b/games-misc/fortune-mod/fortune-mod-1.0.9708-r1.ebuild new file mode 100644 index 000000000000..9478046133f3 --- /dev/null +++ b/games-misc/fortune-mod/fortune-mod-1.0.9708-r1.ebuild @@ -0,0 +1,54 @@ +# 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.0.9708-r1.ebuild,v 1.1 2004/05/12 21:29:43 wolf31o2 Exp $ + +inherit eutils + +MY_P="${PN}-9708.tar.gz" +#The original (http://www.progsoc.uts.edu.au/~dbugger/hacks/hacks.html) is dead +# but the guy setup his 'perm' home with LSM (http://lsm.execpc.com/) +DESCRIPTION="The notorious fortune program" +HOMEPAGE="ftp://sunsite.unc.edu/pub/Linux/games/amusements/fortune/" +SRC_URI="http://www.ibiblio.org/pub/Linux/games/amusements/fortune/${MY_P}" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="x86 ppc sparc mips alpha hppa amd64" +IUSE="offensive" + +DEPEND="virtual/glibc" + +pkg_setup() { + einfo "By default the fortune ebuild does not include 'offensive' fortunes." + einfo "If you wish to enable this functionality, you must manually edit the" + einfo "ebuild. The comments inside are self explainatory." +} + +src_unpack() { + unpack ${A} + cd ${S} + epatch ${FILESDIR}/9708-Makefile.patch + epatch ${FILESDIR}/9708-ppc-rot.patch +} + +src_compile() { + [ `use offensive` ] && off=1 || off=0 + emake \ + OFFENSIVE=${off} \ + OPTCFLAGS="${CFLAGS}" \ + || die +} + +src_install() { + [ `use offensive` ] && off=1 || off=0 + make \ + OFFENSIVE=${off} \ + OPTCFLAGS="${CFLAGS}" \ + DESTDIR=${D} \ + install \ + || die + + dosed /usr/share/man/man6/fortune.6 + + dodoc ChangeLog INDEX INSTALL Notes README TODO +} diff --git a/games-misc/fortune-mod/fortune-mod-1.99.1.ebuild b/games-misc/fortune-mod/fortune-mod-1.99.1.ebuild new file mode 100644 index 000000000000..836f2b7f56d8 --- /dev/null +++ b/games-misc/fortune-mod/fortune-mod-1.99.1.ebuild @@ -0,0 +1,55 @@ +# 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.1 2004/05/12 21:29:43 wolf31o2 Exp $ + +inherit eutils + +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="~x86" +IUSE="offensive" + +DEPEND="virtual/glibc + app-text/recode" + +[ `use offensive` ] && off=1 || off=0 + +src_unpack() { + unpack ${A} + cd ${S} + + sed -i \ + -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 + + # 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)/{ + N + /free (output);/d + }' fortune/fortune.c +} + +src_compile() { + emake \ + OFFENSIVE="${off}" \ + || die +} + +src_install() { + make \ + OFFENSIVE="${off}" \ + prefix="${D}" \ + install \ + || die + + dodoc ChangeLog INDEX INSTALL Notes Offensive README TODO cookie-files +} diff --git a/games-misc/fortune-mod/fortune-mod-9708-r1.ebuild b/games-misc/fortune-mod/fortune-mod-9708-r1.ebuild deleted file mode 100644 index 71d2f07473d3..000000000000 --- a/games-misc/fortune-mod/fortune-mod-9708-r1.ebuild +++ /dev/null @@ -1,53 +0,0 @@ -# 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-9708-r1.ebuild,v 1.4 2004/05/04 00:21:18 mr_bones_ Exp $ - -inherit eutils - -#The original (http://www.progsoc.uts.edu.au/~dbugger/hacks/hacks.html) is dead -# but the guy setup his 'perm' home with LSM (http://lsm.execpc.com/) -DESCRIPTION="The notorious fortune program" -HOMEPAGE="ftp://sunsite.unc.edu/pub/Linux/games/amusements/fortune/" -SRC_URI="http://www.ibiblio.org/pub/Linux/games/amusements/fortune/${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="x86 ppc sparc mips alpha hppa amd64" -IUSE="offensive" - -DEPEND="virtual/glibc" - -pkg_setup() { - einfo "By default the fortune ebuild does not include 'offensive' fortunes." - einfo "If you wish to enable this functionality, you must manually edit the" - einfo "ebuild. The comments inside are self explainatory." -} - -src_unpack() { - unpack ${A} - cd ${S} - epatch ${FILESDIR}/${PV}-Makefile.patch - epatch ${FILESDIR}/${PV}-ppc-rot.patch -} - -src_compile() { - [ `use offensive` ] && off=1 || off=0 - emake \ - OFFENSIVE=${off} \ - OPTCFLAGS="${CFLAGS}" \ - || die -} - -src_install() { - [ `use offensive` ] && off=1 || off=0 - make \ - OFFENSIVE=${off} \ - OPTCFLAGS="${CFLAGS}" \ - DESTDIR=${D} \ - install \ - || die - - dosed /usr/share/man/man6/fortune.6 - - dodoc ChangeLog INDEX INSTALL Notes README TODO -} -- cgit v1.2.3-65-gdbad