commit: d9683b48d65a7e6b172161c504cb8d9da117d0e1 Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org> AuthorDate: Sun Jul 2 22:24:24 2017 +0000 Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org> CommitDate: Sun Jul 2 22:24:24 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d9683b48
app-misc/countrycodes: Port to EAPI6 Package-Manager: Portage-2.3.6, Repoman-2.3.2 app-misc/countrycodes/countrycodes-1.0.5-r2.ebuild | 34 ++++++++++++++++++++++ app-misc/countrycodes/files/1.0.5-Makefile.patch | 6 ++-- 2 files changed, 37 insertions(+), 3 deletions(-) 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 index 00000000000..b9140b6b2c8 --- /dev/null +++ b/app-misc/countrycodes/countrycodes-1.0.5-r2.ebuild @@ -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 +} diff --git a/app-misc/countrycodes/files/1.0.5-Makefile.patch b/app-misc/countrycodes/files/1.0.5-Makefile.patch index 4ee47e32dfd..677e59acc5c 100644 --- a/app-misc/countrycodes/files/1.0.5-Makefile.patch +++ b/app-misc/countrycodes/files/1.0.5-Makefile.patch @@ -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
