summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2009-03-18 20:02:59 +0000
committerJeroen Roovers <jer@gentoo.org>2009-03-18 20:02:59 +0000
commitb47089e71d85a67d6ffe75e418f0a9a8f3d9eb1a (patch)
treec2817507693095f7c7a43552a9113a00365380eb /app-text/an
parentKeyword ~amd64 and explicit RDEPEND (diff)
downloadgentoo-2-b47089e71d85a67d6ffe75e418f0a9a8f3d9eb1a.tar.gz
gentoo-2-b47089e71d85a67d6ffe75e418f0a9a8f3d9eb1a.tar.bz2
gentoo-2-b47089e71d85a67d6ffe75e418f0a9a8f3d9eb1a.zip
Version bump. Do not store Debian patch locally. Remove some redundant comments and notifications.
(Portage version: 2.2_rc26/cvs/Linux i686)
Diffstat (limited to 'app-text/an')
-rw-r--r--app-text/an/ChangeLog9
-rw-r--r--app-text/an/an-0.95.3.1.ebuild66
-rw-r--r--app-text/an/files/an-0.95-make.patch31
3 files changed, 105 insertions, 1 deletions
diff --git a/app-text/an/ChangeLog b/app-text/an/ChangeLog
index f2aca7643300..91ccf1727e90 100644
--- a/app-text/an/ChangeLog
+++ b/app-text/an/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for app-text/an
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/an/ChangeLog,v 1.25 2009/03/07 14:11:06 gentoofan23 Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/an/ChangeLog,v 1.26 2009/03/18 20:02:59 jer Exp $
+
+*an-0.95.3.1 (18 Mar 2009)
+
+ 18 Mar 2009; Jeroen Roovers <jer@gentoo.org> +files/an-0.95-make.patch,
+ +an-0.95.3.1.ebuild:
+ Version bump. Do not store Debian patch locally. Remove some redundant
+ comments and notifications.
07 Mar 2009; Thomas Anderson <gentoofan23@gentoo.org> an-0.95.3.ebuild:
Transition to eapi 2 use deps
diff --git a/app-text/an/an-0.95.3.1.ebuild b/app-text/an/an-0.95.3.1.ebuild
new file mode 100644
index 000000000000..e7f633086ac4
--- /dev/null
+++ b/app-text/an/an-0.95.3.1.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/an/an-0.95.3.1.ebuild,v 1.1 2009/03/18 20:02:59 jer Exp $
+
+EAPI="2"
+inherit eutils toolchain-funcs versionator
+
+DESCRIPTION="Very fast anagram generator with dictionary lookup"
+HOMEPAGE="http://packages.debian.org/unstable/games/an"
+
+MY_PV="$(get_version_component_range 1-2)"
+DEB_REV="$(get_version_component_range 3-4)"
+SRC_URI="
+ mirror://debian/pool/main/a/${PN}/${PN}_${MY_PV}.orig.tar.gz
+ mirror://debian/pool/main/a/${PN}/${PN}_${MY_PV}-${DEB_REV}.diff.gz
+"
+
+LICENSE="GPL-2 LGPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~x86"
+IUSE=""
+
+RDEPEND="sys-apps/miscfiles[-minimal]"
+
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ MY_PL="$(replace_version_separator 2 -)"
+ epatch "${WORKDIR}"/${PN}_${MY_PV}-${DEB_REV}.diff
+ epatch "${FILESDIR}"/${PN}-${MY_PV}-make.patch
+
+ # sys-apps/miscfiles doesn't have /usr/dict/words:
+ sed \
+ -e 's:/usr/dict/words:/usr/share/dict/words:' \
+ -i README || die "sed failed"
+}
+
+src_compile() {
+ tc-export CC
+ emake || die "make failed"
+}
+
+src_install() {
+ dobin ${PN} || die
+ doman ${PN}.6 || die
+ dodoc \
+ debian/changelog \
+ debian/README.Debian \
+ DICTIONARY \
+ EXAMPLE.ANAGRAMS \
+ HINTS \
+ INSTALL \
+ README \
+ TODO || die
+}
+
+pkg_postinst() {
+ einfo "Helpful note from an's author:"
+ einfo " If you do not have a dictionary you can obtain one from the"
+ einfo " following site: ftp://ftp.funet.fi/pub/doc/dictionaries/"
+ einfo " You will find a selection of dictionaries in many different"
+ einfo " languages here."
+}
diff --git a/app-text/an/files/an-0.95-make.patch b/app-text/an/files/an-0.95-make.patch
new file mode 100644
index 000000000000..652dcbca9670
--- /dev/null
+++ b/app-text/an/files/an-0.95-make.patch
@@ -0,0 +1,31 @@
+--- Makefile.orig 2009-03-18 20:52:41.000000000 +0100
++++ Makefile 2009-03-18 20:54:06.000000000 +0100
+@@ -27,14 +27,14 @@
+
+
+ # Note that if you change CC here you must also change it in ./lib/Makefile
+-CC=gcc
++#CC=gcc
+
+ # if using a compiler which adheres strictly to ANSI C guidelines then
+ # uncomment the next line.
+
+ #DEFS=-DFORCE_ANSI
+
+-CFLAGS=-O2 -Wall
++CFLAGS := $(CFLAGS) -Wall
+ CINCLUDES=-I $(LIBDIR) $(DEFS)
+
+ # Nothing should need changing below here
+--- lib/Makefile.orig 2009-03-18 20:52:41.000000000 +0100
++++ lib/Makefile 2009-03-18 20:53:37.000000000 +0100
+@@ -22,7 +22,7 @@
+ #Note may need to change this for your system, the only reason this Makefile
+ #exists is because the non-gnu make on suns is brain dead.
+
+-CC=gcc
+-CFLAGS=-O2
++#CC=gcc
++#CFLAGS=-O2
+ all: getopt.o getopt1.o
+