[gentoo-commits] repo/gentoo:master commit in: app-misc/countrycodes/, app-misc/countrycodes/files/

2022-07-31 Thread David Seifert
commit: 5e3d221b8ff309df6ce38212d05157cdca2a45d7
Author: David Seifert  gentoo  org>
AuthorDate: Sun Jul 31 20:03:20 2022 +
Commit: David Seifert  gentoo  org>
CommitDate: Sun Jul 31 20:03:20 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5e3d221b

app-misc/countrycodes: update EAPI 6 -> 8

Signed-off-by: David Seifert  gentoo.org>

 0.5-r3.ebuild => countrycodes-1.0.5-r4.ebuild} | 16 ++--
 app-misc/countrycodes/files/1.0.5-Makefile.patch   | 29 --
 2 files changed, 23 insertions(+), 22 deletions(-)

diff --git a/app-misc/countrycodes/countrycodes-1.0.5-r3.ebuild 
b/app-misc/countrycodes/countrycodes-1.0.5-r4.ebuild
similarity index 71%
rename from app-misc/countrycodes/countrycodes-1.0.5-r3.ebuild
rename to app-misc/countrycodes/countrycodes-1.0.5-r4.ebuild
index 01d51733774f..3515c7e85217 100644
--- a/app-misc/countrycodes/countrycodes-1.0.5-r3.ebuild
+++ b/app-misc/countrycodes/countrycodes-1.0.5-r4.ebuild
@@ -1,31 +1,29 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=8
 
 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";
+S="${WORKDIR}/${P}/src"
 
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~alpha amd64 ~ia64 ~mips ppc ppc64 ~sparc x86"
 
-S="${WORKDIR}"/${P}/src
+PATCHES=( "${FILESDIR}"/${PV}-Makefile.patch )
 
-PATCHES=( "${FILESDIR}/${PV}-Makefile.patch" )
-
-src_prepare() {
-   default
+src_configure() {
tc-export CC
 }
 
 src_install() {
emake \
-   prefix="${D}/usr" \
-   mandir="${D}/usr/share/man/man1" install
+   prefix="${ED}"/usr \
+   mandir="${ED}"/usr/share/man/man1 install
dosym iso3166 /usr/bin/countrycodes
dosym iso3166.1 /usr/share/man/man1/countrycodes
dodoc ../doc/{Changelog,README}

diff --git a/app-misc/countrycodes/files/1.0.5-Makefile.patch 
b/app-misc/countrycodes/files/1.0.5-Makefile.patch
index 677e59acc5c0..fab4c82019e1 100644
--- a/app-misc/countrycodes/files/1.0.5-Makefile.patch
+++ b/app-misc/countrycodes/files/1.0.5-Makefile.patch
@@ -1,34 +1,27 @@
-diff --git a/Makefile b/Makefile
-index 9330578..3ff7319 100644
 --- a/Makefile
 +++ b/Makefile
-@@ -26,13 +26,13 @@ BINMODE=755
+@@ -26,10 +26,9 @@
  LOGDIRMODE=700
  
  # Compiler to use
 -CC=gcc
-+CC ?= gcc
  
  # Compiler warnings
 -WARNINGS= -pedantic -Wall
-+WARNINGS= 
++CFLAGS += -pedantic -Wall
  
  # Compiler flags
--CCOPTS = -O2 -fomit-frame-pointer
-+CCOPTS = ${CFLAGS}
- 
- # The makefile standards document I read says that I have to put it here...
- SHELL = /bin/sh
-@@ -61,7 +61,7 @@ PROGRAM = iso3166
+ CCOPTS = -O2 -fomit-frame-pointer
+@@ -61,7 +60,7 @@
  all: $(PROGRAM)
  
  $(PROGRAM): $(ISO3166OBJ)
 -  $(CC) $(CCOPTS) $(ISO3166OBJ) -o $@
-+  $(CC) $(CCOPTS) $(LDFLAGS) $(ISO3166OBJ) -o $@
++  $(CC) $(CFLAGS) $(LDFLAGS) $(ISO3166OBJ) -o $@
  
  clean:
rm -f $(ISO3166OBJ) core defines.h $(PROGRAM)
-@@ -70,8 +70,10 @@ strip:
+@@ -70,8 +69,10 @@
strip $(PROGRAM)
  
  install:
@@ -40,3 +33,13 @@ index 9330578..3ff7319 100644
@$(SEDBIN) $(SEDCMDS) ${docdir}/iso3166.1.in > ${mandir}/iso3166.1
@chown 0.0 ${mandir}/iso3166.1
@echo
+@@ -80,9 +81,6 @@
+   rm -f ${bindir}/$(PROGRAM)
+   rm -f ${mandir}/iso3166.1
+ 
+-.c.o:
+-  $(CC) $(CCOPTS) $(WARNINGS) -c $<
+-
+ $(ISO3166OBJ): common.h defines.h protos.h tables.h
+ 
+ defines.h:



[gentoo-commits] repo/gentoo:master commit in: app-misc/countrycodes/, app-misc/countrycodes/files/

2022-08-01 Thread Matt Turner
commit: d5b66c5fc3651bebeb0925789789e855f651852f
Author: Matt Turner  gentoo  org>
AuthorDate: Tue Aug  2 01:26:28 2022 +
Commit: Matt Turner  gentoo  org>
CommitDate: Tue Aug  2 01:56:49 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d5b66c5f

app-misc/countrycodes: Version bump to 1.0.6

Signed-off-by: Matt Turner  gentoo.org>

 app-misc/countrycodes/Manifest   |  1 +
 app-misc/countrycodes/countrycodes-1.0.6.ebuild  | 29 
 app-misc/countrycodes/files/1.0.6-Makefile.patch | 35 
 3 files changed, 65 insertions(+)

diff --git a/app-misc/countrycodes/Manifest b/app-misc/countrycodes/Manifest
index aeb223a8e905..6820a770e307 100644
--- a/app-misc/countrycodes/Manifest
+++ b/app-misc/countrycodes/Manifest
@@ -1 +1,2 @@
 DIST countrycodes-1.0.5.tar.gz 18621 BLAKE2B 
1f2e1fb0f96d1388687929895c310e1e93c320f4d3f3f4cfe19c50d2ab850bafcefb5e13cfdaed546237ae5873eb95ae574ac47c0048bc2fa37c96158b5082fe
 SHA512 
d62beaaccdbc8f7e14f3edf0044aeeef6375a3deffc0e4246a49fb8209ed7256208c878f811950c5c3bfda729988a46c173aecec72ee66e8843932d97064f035
+DIST countrycodes-1.0.6.tar.gz 18834 BLAKE2B 
b5e0806618da0dd740a890b9c4d369cf2c44182515ec91aaa08a5e19da447635fb8536611a278ffcc419b506efa07df7e71bf5d520895a059c4aaa6e0cbc9b48
 SHA512 
be069593f60f785ef4d2e107340b941902a9c45d81ed04f8518a78f2be610ffdd1675da3da1d07271fc7ab736aabdd9f92f060d132e7b7b41310f1b653c53244

diff --git a/app-misc/countrycodes/countrycodes-1.0.6.ebuild 
b/app-misc/countrycodes/countrycodes-1.0.6.ebuild
new file mode 100644
index ..01499421f229
--- /dev/null
+++ b/app-misc/countrycodes/countrycodes-1.0.6.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+DESCRIPTION="An ISO 3166 country code finder"
+HOMEPAGE="https://sourceforge.net/projects/countrycodes/";
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
+
+PATCHES=( "${FILESDIR}"/${PV}-Makefile.patch )
+
+src_configure() {
+   tc-export CC
+}
+
+src_install() {
+   emake \
+   prefix="${ED}"/usr \
+   mandir="${ED}"/usr/share/man install
+   dosym iso3166 /usr/bin/countrycodes
+   dosym iso3166.1 /usr/share/man/man1/countrycodes
+   dodoc README
+}

diff --git a/app-misc/countrycodes/files/1.0.6-Makefile.patch 
b/app-misc/countrycodes/files/1.0.6-Makefile.patch
new file mode 100644
index ..051c02946230
--- /dev/null
+++ b/app-misc/countrycodes/files/1.0.6-Makefile.patch
@@ -0,0 +1,35 @@
+diff --git a/Makefile b/Makefile
+index b6e1323..b11a453 100644
+--- a/Makefile
 b/Makefile
+@@ -23,10 +23,9 @@ BINMODE=755
+ LOGDIRMODE=700
+ 
+ # Compiler to use
+-CC=gcc
+ 
+ # Compiler warnings
+-WARNINGS= -pedantic -Wall
++CFLAGS += -pedantic -Wall
+ 
+ # Compiler flags
+ CCOPTS = -O2 -fomit-frame-pointer
+@@ -58,7 +57,7 @@ PROGRAM = iso3166
+ all: $(PROGRAM)
+ 
+ $(PROGRAM): $(ISO3166OBJ)
+-  $(CC) $(CCOPTS) $(ISO3166OBJ) -o $@
++  $(CC) $(CFLAGS) $(LDFLAGS) $(ISO3166OBJ) -o $@
+ 
+ clean:
+   $(RM) $(ISO3166OBJ) core defines.h $(PROGRAM)
+@@ -79,9 +78,6 @@ uninstall:
+   $(RM) ${bindir}/$(PROGRAM)
+   $(RM) ${mandir}/iso3166.1
+ 
+-.c.o:
+-  $(CC) $(CCOPTS) $(WARNINGS) -c $<
+-
+ $(ISO3166OBJ): common.h defines.h protos.h tables.h
+ 
+ defines.h: