app-text/an: EAPI bump.
authorJeroen Roovers <jer@gentoo.org>
Sat, 10 Jun 2017 10:05:48 +0000 (12:05 +0200)
committerJeroen Roovers <jer@gentoo.org>
Sat, 10 Jun 2017 10:06:06 +0000 (12:06 +0200)
Package-Manager: Portage-2.3.6, Repoman-2.3.2

app-text/an/an-1.2-r1.ebuild [new file with mode: 0644]

diff --git a/app-text/an/an-1.2-r1.ebuild b/app-text/an/an-1.2-r1.ebuild
new file mode 100644 (file)
index 0000000..d9c0142
--- /dev/null
@@ -0,0 +1,39 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Very fast anagram generator with dictionary lookup"
+HOMEPAGE="http://packages.debian.org/unstable/games/an"
+
+SRC_URI="mirror://debian/pool/main/a/${PN}/${PN}_${PV}.orig.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86"
+
+DEPEND="
+       dev-libs/icu:=
+"
+RDEPEND="
+       ${DEPEND}
+       sys-apps/miscfiles[-minimal]
+"
+
+src_prepare() {
+       default
+
+       sed -i \
+               -e '/^CC/s|:=|?=|' \
+               -e 's|$(CC) $(CFLAGS)|& $(LDFLAGS)|g' \
+               -e '/^CPPFLAGS/s|-D_BSD_SOURCE=1 -D_GNU_SOURCE=1|-D_DEFAULT_SOURCE=1|g' \
+               Makefile || die
+       tc-export CC
+}
+
+src_install() {
+       dobin ${PN}
+       newman ${PN}.6 ${PN}.1
+       dodoc ALGORITHM
+}