diff options
author | Chris Gianelloni <wolf31o2@gentoo.org> | 2004-05-12 21:29:43 +0000 |
---|---|---|
committer | Chris Gianelloni <wolf31o2@gentoo.org> | 2004-05-12 21:29:43 +0000 |
commit | c232b3800cd6c21521b42b64ad308c3e66adf3fc (patch) | |
tree | 61d2cb1e160a033cac3ca3a8f878cd51f38affd5 /games-misc/fortune-mod | |
parent | Stable on alpha. (Manifest recommit) (diff) | |
download | gentoo-2-c232b3800cd6c21521b42b64ad308c3e66adf3fc.tar.gz gentoo-2-c232b3800cd6c21521b42b64ad308c3e66adf3fc.tar.bz2 gentoo-2-c232b3800cd6c21521b42b64ad308c3e66adf3fc.zip |
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.
Diffstat (limited to 'games-misc/fortune-mod')
-rw-r--r-- | games-misc/fortune-mod/ChangeLog | 16 | ||||
-rw-r--r-- | games-misc/fortune-mod/files/digest-fortune-mod-1.0.9708-r1 (renamed from games-misc/fortune-mod/files/digest-fortune-mod-9708-r1) | 0 | ||||
-rw-r--r-- | games-misc/fortune-mod/files/digest-fortune-mod-1.99.1 | 1 | ||||
-rw-r--r-- | games-misc/fortune-mod/fortune-mod-1.0.9708-r1.ebuild (renamed from games-misc/fortune-mod/fortune-mod-9708-r1.ebuild) | 9 | ||||
-rw-r--r-- | games-misc/fortune-mod/fortune-mod-1.99.1.ebuild | 55 |
5 files changed, 74 insertions, 7 deletions
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 <wolf31o2@gentoo.org> + +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/files/digest-fortune-mod-9708-r1 b/games-misc/fortune-mod/files/digest-fortune-mod-1.0.9708-r1 index 679b925ad361..679b925ad361 100644 --- a/games-misc/fortune-mod/files/digest-fortune-mod-9708-r1 +++ b/games-misc/fortune-mod/files/digest-fortune-mod-1.0.9708-r1 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/fortune-mod-9708-r1.ebuild b/games-misc/fortune-mod/fortune-mod-1.0.9708-r1.ebuild index 71d2f07473d3..9478046133f3 100644 --- a/games-misc/fortune-mod/fortune-mod-9708-r1.ebuild +++ b/games-misc/fortune-mod/fortune-mod-1.0.9708-r1.ebuild @@ -1,14 +1,15 @@ # 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 $ +# $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/${P}.tar.gz" +SRC_URI="http://www.ibiblio.org/pub/Linux/games/amusements/fortune/${MY_P}" LICENSE="BSD" SLOT="0" @@ -26,8 +27,8 @@ pkg_setup() { src_unpack() { unpack ${A} cd ${S} - epatch ${FILESDIR}/${PV}-Makefile.patch - epatch ${FILESDIR}/${PV}-ppc-rot.patch + epatch ${FILESDIR}/9708-Makefile.patch + epatch ${FILESDIR}/9708-ppc-rot.patch } src_compile() { 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 +} |