Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/libidn2/, net-dns/libidn2/files/
Date: Fri, 30 Dec 2016 16:58:08
Message-Id: 1483108219.8e2c4c4d924970ce6155ce65d5251ef9736547b9.jer@gentoo
1 commit: 8e2c4c4d924970ce6155ce65d5251ef9736547b9
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Fri Dec 30 14:30:05 2016 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Fri Dec 30 14:30:19 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e2c4c4d
7
8 net-dns/libidn2: Version bump.
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11
12 net-dns/libidn2/Manifest | 5 ++
13 net-dns/libidn2/files/libidn2-0.12-Werror.patch | 11 ++++
14 net-dns/libidn2/files/libidn2-0.12-examples.patch | 11 ++++
15 net-dns/libidn2/files/libidn2-0.12-noinstall.patch | 11 ++++
16 net-dns/libidn2/files/libidn2-0.12-wget.patch | 41 +++++++++++++++
17 net-dns/libidn2/libidn2-0.12.ebuild | 60 ++++++++++++++++++++++
18 6 files changed, 139 insertions(+)
19
20 diff --git a/net-dns/libidn2/Manifest b/net-dns/libidn2/Manifest
21 index e95f47c..b380b21 100644
22 --- a/net-dns/libidn2/Manifest
23 +++ b/net-dns/libidn2/Manifest
24 @@ -1 +1,6 @@
25 DIST libidn2-0.11.tar.gz 1563669 SHA256 5d397bdc258b372b8a25c8fb5240430d6fae28f9d790d3670f4b6012fa87bfff SHA512 99cbd69b5bbc6463b1e6e1d94a644cb3cb9ea7c16e8eba8b6d8078e5a9c4f25bdca57f8105837a2ed33f955bba6939042be799f749d21f66bd28b06c44b1a773 WHIRLPOOL 82ebf62e087475a5264ae2c3f56dc98f34b531b5b6435149ce13110239f2d53d5d6c1c79bc54c7d3fa23bbb0fdc861f0a38ac7c6dcbacd9e9c1d351f412d3aae
26 +DIST libidn2-0.12-DerivedNormalizationProps.txt 783470 SHA256 c5e867ae043fe5d1cf713150d859356bfdcdba291c39f584af0bfb943f1a9743 SHA512 a977f708594d40f69a2c25a60254975285346a51ebd27c9bc739ffb4f66a5f1821130849072a8ee9a10992b9de0b28a0e54684b2df407e0bf72cd801535b1aea WHIRLPOOL 34476e86221efd67a620de4f339bcc9c91f6f46d047c5fe32bc2597645e142848c9f35a6cef43c38b8d681a21d9335de35708d4930920beaba637566ece043cf
27 +DIST libidn2-0.12-IdnaMappingTable.txt 742564 SHA256 84c8f25d2b58531dada678cbfb779c0fb04b1aac42c7744a63fb59784e974775 SHA512 4480f9bd92a70b5b0c24ae02cd3638f95d2517ba5169ba5a36edf8d571d897ee7c654f428e60fb0a2013c534737041aa49fb06dd7809982441ce9eff37271a6a WHIRLPOOL 3eae4e68251d44b47e07c53b9b25c62897e9257cbd34e6e70dbd89c8deda0735e320bb480c963351e2fd1a13f242ddb31c89787f505234ed393b80fd6a0ccddf
28 +DIST libidn2-0.12-IdnaTest.txt 422220 SHA256 f56af7d031fddd8264cd95086e360375e3a09e680c8e2d947be469bfa4f4097d SHA512 6ca6f22d01ed88170d8799991129823b55497ffd6d82b724e0f1781317d128e9c72344afe0db3eed50aab3b822a1c36a78da4138f1de421c7ce0da3a4778dda0 WHIRLPOOL 2f1ab3a7bb78cb34ac6ece100111e2cf4b6f021882531b4641ae3472108dce6d2c2ab48b2ab263aa1190e63641e95e5c6688c3c54317db978e49da359ee449d0
29 +DIST libidn2-0.12-idna-tables-6.3.0.txt 162415 SHA256 ac67b5bf7c2de2d3b6e11fa7bf0d7ba54e6457788aec1ebde48739ee084822b7 SHA512 8cb3cc47948a796c2765e220350beccbefda40700bc60fb6b3bcdda24046798e2fee4c6a1a9fc80a3e9bcb3cbaa9a141936d24907eb5a09b43ec94d72fca3de0 WHIRLPOOL d7fffb5a19b0dd602296cb6eb484bf3f55353617c1c2adc9038173156cccf3a8a9eda1c8f5722634ea84099f266b6a036e20694a04a66134b79609b17d6de6a3
30 +DIST libidn2-0.12.tar.gz 1223699 SHA256 5aac6a35546a472b218a1b1257b39e5e829fda489152f6c793064afc5a2f2956 SHA512 044c0a06dca6866d80400a67ef5e9334afa77f55053cd358f107f2d788aa6938c53cb37791d02c58f2e2a00ed7e4167820cd3c544b6a073db41d4877e0a9ca1b WHIRLPOOL c4db646d229ce0ce2d4ddb3c8de074891d2c965051cb3544a41aaafb9181dbea44731794d9e0230f6e199825f0747b45274f65a4fe9e0ddf69d33daf851cf065
31
32 diff --git a/net-dns/libidn2/files/libidn2-0.12-Werror.patch b/net-dns/libidn2/files/libidn2-0.12-Werror.patch
33 new file mode 100644
34 index 00000000..9ab1465
35 --- /dev/null
36 +++ b/net-dns/libidn2/files/libidn2-0.12-Werror.patch
37 @@ -0,0 +1,11 @@
38 +--- a/configure.ac
39 ++++ b/configure.ac
40 +@@ -27,7 +27,7 @@
41 + AC_CONFIG_AUX_DIR([build-aux])
42 + AC_CONFIG_HEADERS([config.h])
43 + AC_CONFIG_MACRO_DIR([m4])
44 +-AM_INIT_AUTOMAKE([-Wall -Werror subdir-objects])
45 ++AM_INIT_AUTOMAKE([-Wall subdir-objects])
46 + AC_CANONICAL_HOST
47 +
48 + AC_PROG_CC
49
50 diff --git a/net-dns/libidn2/files/libidn2-0.12-examples.patch b/net-dns/libidn2/files/libidn2-0.12-examples.patch
51 new file mode 100644
52 index 00000000..4972fec
53 --- /dev/null
54 +++ b/net-dns/libidn2/files/libidn2-0.12-examples.patch
55 @@ -0,0 +1,11 @@
56 +--- a/Makefile.am
57 ++++ b/Makefile.am
58 +@@ -15,7 +15,7 @@
59 +
60 + DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc
61 +
62 +-SUBDIRS = lib . src doc examples tests po
63 ++SUBDIRS = lib . src doc tests po
64 + ACLOCAL_AMFLAGS = -I m4
65 + EXTRA_DIST = m4/gnulib-cache.m4
66 +
67
68 diff --git a/net-dns/libidn2/files/libidn2-0.12-noinstall.patch b/net-dns/libidn2/files/libidn2-0.12-noinstall.patch
69 new file mode 100644
70 index 00000000..e02779f
71 --- /dev/null
72 +++ b/net-dns/libidn2/files/libidn2-0.12-noinstall.patch
73 @@ -0,0 +1,11 @@
74 +--- a/src/Makefile.am
75 ++++ b/src/Makefile.am
76 +@@ -18,7 +18,7 @@
77 + AM_CPPFLAGS = -I$(top_srcdir) -I$(srcdir) -I$(top_builddir)/lib -I$(top_srcdir)/lib
78 + AM_CFLAGS = $(WARN_CFLAGS)
79 +
80 +-bin_PROGRAMS = idn2 idn2_noinstall
81 ++bin_PROGRAMS = idn2
82 +
83 + idn2_SOURCES = idn2.c blurbs.h
84 + idn2_LDADD = libidn2_cmd.la ../libidn2.la $(LIBS)
85
86 diff --git a/net-dns/libidn2/files/libidn2-0.12-wget.patch b/net-dns/libidn2/files/libidn2-0.12-wget.patch
87 new file mode 100644
88 index 00000000..5b6fa36
89 --- /dev/null
90 +++ b/net-dns/libidn2/files/libidn2-0.12-wget.patch
91 @@ -0,0 +1,41 @@
92 +--- a/tests/Makefile.am
93 ++++ b/tests/Makefile.am
94 +@@ -29,8 +29,5 @@
95 + DISTCLEANFILES = $(BUILT_SOURCES)
96 + EXTRA_DIST = gen-utc-test.pl
97 +
98 +-$(IDNA_TXT):
99 +- wget http://www.unicode.org/Public/idna/6.3.0/IdnaTest.txt
100 +-
101 + $(IDNA_INC): $(IDNA_TXT) $(srcdir)/gen-utc-test.pl
102 + $(srcdir)/gen-utc-test.pl < $(IDNA_TXT) > $(IDNA_INC)
103 +--- a/Makefile.am
104 ++++ b/Makefile.am
105 +@@ -58,18 +58,6 @@
106 + data.c: $(srcdir)/gen-tables-from-iana.pl $(IDNA_TABLE)
107 + cat $(IDNA_TABLE) | $(srcdir)/gen-tables-from-iana.pl
108 +
109 +-$(IDNA_TABLE):
110 +- rm -f $(IDNA_TABLE)
111 +- wget $(IANA_URL)
112 +-
113 +-$(TR46MAP):
114 +- rm -f $(TR46MAP)
115 +- wget $(TR46MAP_URL)
116 +-
117 +-$(NFCQC):
118 +- rm -f $(NFCQC)
119 +- wget $(NFCQC_URL)
120 +-
121 + tr46map.c: gentr46map $(TR46MAP) $(NFCQC)
122 + ./gentr46map >tr46map.c
123 +
124 +@@ -78,7 +66,7 @@
125 +
126 + TLD_URL = https://www.iana.org/domains/root/db/
127 + tv.c: $(srcdir)/gen-idn-tld-tv.pl
128 +- (cat tld-cache || wget -O - $(TLD_URL)) | $(srcdir)/gen-idn-tld-tv.pl
129 ++ (cat tld-cache | $(srcdir)/gen-idn-tld-tv.pl
130 +
131 + if HAVE_LD_VERSION_SCRIPT
132 + libidn2_la_LDFLAGS += -Wl,--version-script=$(srcdir)/idn2.map
133
134 diff --git a/net-dns/libidn2/libidn2-0.12.ebuild b/net-dns/libidn2/libidn2-0.12.ebuild
135 new file mode 100644
136 index 00000000..4824ae5
137 --- /dev/null
138 +++ b/net-dns/libidn2/libidn2-0.12.ebuild
139 @@ -0,0 +1,60 @@
140 +# Copyright 1999-2016 Gentoo Foundation
141 +# Distributed under the terms of the GNU General Public License v2
142 +# $Id$
143 +
144 +EAPI=6
145 +inherit autotools eutils multilib-minimal
146 +
147 +DESCRIPTION="An implementation of the IDNA2008 specifications (RFCs 5890, 5891, 5892, 5893)"
148 +HOMEPAGE="https://www.gnu.org/software/libidn/#libidn2"
149 +SRC_URI="
150 + mirror://gnu-alpha/libidn/${P}.tar.gz
151 + https://ftp.iana.org/assignments/idna-tables-6.3.0/idna-tables-6.3.0.txt -> ${P}-idna-tables-6.3.0.txt
152 + http://www.unicode.org/Public/idna/6.3.0/IdnaMappingTable.txt -> ${P}-IdnaMappingTable.txt
153 + http://www.unicode.org/Public/6.3.0/ucd/DerivedNormalizationProps.txt -> ${P}-DerivedNormalizationProps.txt
154 + http://www.unicode.org/Public/idna/6.3.0/IdnaTest.txt -> ${P}-IdnaTest.txt
155 +"
156 +
157 +LICENSE="GPL-2+ LGPL-3+"
158 +SLOT="0"
159 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~x86 ~ppc-aix ~x64-freebsd ~x86-freebsd ~hppa-hpux ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
160 +IUSE="static-libs"
161 +
162 +RDEPEND="
163 + dev-libs/libunistring[${MULTILIB_USEDEP}]
164 +"
165 +DEPEND="
166 + ${RDEPEND}
167 + dev-lang/perl
168 + sys-apps/help2man
169 +"
170 +
171 +PATCHES=(
172 + "${FILESDIR}"/${PN}-0.12-Werror.patch
173 + "${FILESDIR}"/${PN}-0.12-examples.patch
174 + "${FILESDIR}"/${PN}-0.12-noinstall.patch
175 + "${FILESDIR}"/${PN}-0.12-wget.patch
176 +)
177 +
178 +src_prepare() {
179 + default
180 +
181 + cp "${DISTDIR}"/${P}-idna-tables-6.3.0.txt "${S}"/idna-tables-6.3.0.txt || die
182 + cp "${DISTDIR}"/${P}-IdnaMappingTable.txt "${S}"/IdnaMappingTable.txt || die
183 + cp "${DISTDIR}"/${P}-DerivedNormalizationProps.txt "${S}"/DerivedNormalizationProps.txt || die
184 + cp "${DISTDIR}"/${P}-IdnaTest.txt "${S}"/tests/IdnaTest.txt || die
185 +
186 + eautoreconf
187 + multilib_copy_sources
188 +}
189 +
190 +multilib_src_configure() {
191 + econf \
192 + $(use_enable static-libs static)
193 +}
194 +
195 +multilib_src_install() {
196 + default
197 +
198 + prune_libtool_files
199 +}