app-misc/countrycodes: Port to EAPI6
authorManuel Rüger <mrueg@gentoo.org>
Sun, 2 Jul 2017 22:24:24 +0000 (00:24 +0200)
committerManuel Rüger <mrueg@gentoo.org>
Sun, 2 Jul 2017 22:24:24 +0000 (00:24 +0200)
Package-Manager: Portage-2.3.6, Repoman-2.3.2

app-misc/countrycodes/countrycodes-1.0.5-r2.ebuild [new file with mode: 0644]
app-misc/countrycodes/files/1.0.5-Makefile.patch

diff --git a/app-misc/countrycodes/countrycodes-1.0.5-r2.ebuild b/app-misc/countrycodes/countrycodes-1.0.5-r2.ebuild
new file mode 100644 (file)
index 0000000..b9140b6
--- /dev/null
@@ -0,0 +1,34 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs
+
+DESCRIPTION="An ISO 3166 country code finder"
+HOMEPAGE="http://www.grigna.com/diego/linux/countrycodes/"
+SRC_URI="http://www.grigna.com/diego/linux/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+
+S="${WORKDIR}"/${P}/src
+
+PATCHES=( "${FILESDIR}"/${PV}-Makefile.patch )
+
+src_prepare() {
+       default
+       tc-export CC
+}
+
+src_install() {
+       emake \
+               prefix="${D}/usr" \
+               mandir="${D}/usr/share/man/man1" install
+       dosym iso3166 /usr/bin/countrycodes
+       dosym iso3166.1 /usr/share/man/man1/countrycodes
+       dodoc ../doc/{Changelog,README}
+       prepman
+}
index 4ee47e32dfd24acfbaf509d8212a994dd3cd9b53..677e59acc5c0407814a01b7da39dabab57a28a2f 100644 (file)
@@ -1,7 +1,7 @@
-diff --git a/src/Makefile b/src/Makefile
+diff --git a/Makefile b/Makefile
 index 9330578..3ff7319 100644
---- a/src/Makefile
-+++ b/src/Makefile
+--- a/Makefile
++++ b/Makefile
 @@ -26,13 +26,13 @@ BINMODE=755
  LOGDIRMODE=700