1 |
commit: 98f7809bfe5e8e73a09069669b30ef3b37d71424 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 16 07:50:43 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 16 19:56:46 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=98f7809b |
7 |
|
8 |
dev-libs/libiconv: add 1.17 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
dev-libs/libiconv/Manifest | 1 + |
13 |
dev-libs/libiconv/libiconv-1.17.ebuild | 52 ++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 53 insertions(+) |
15 |
|
16 |
diff --git a/dev-libs/libiconv/Manifest b/dev-libs/libiconv/Manifest |
17 |
index 6d09de8d4734..a37a6328727a 100644 |
18 |
--- a/dev-libs/libiconv/Manifest |
19 |
+++ b/dev-libs/libiconv/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST libiconv-1.15.tar.gz 5264188 BLAKE2B 2384dbf8549fa56e841b15b7e2698b83c0ee171cdff13aef48c60eae0bc4f5e7b2e937bc8d5eddf89fba11412d17bebd77bdda7060c177ce9dc9be00172c0c12 SHA512 1233fe3ca09341b53354fd4bfe342a7589181145a1232c9919583a8c9979636855839049f3406f253a9d9829908816bb71fd6d34dd544ba290d6f04251376b1a |
22 |
DIST libiconv-1.16.tar.gz 5166734 BLAKE2B 8e7f4d64d757db6c3ffa973c9cebcf20b34f9859a547dbba8cebe3a4865bda86f33c5be197951877c46eff5a7fc00b1b11474fb3baa036f08ac2faf97eca138c SHA512 365dac0b34b4255a0066e8033a8b3db4bdb94b9b57a9dca17ebf2d779139fe935caf51a465d17fd8ae229ec4b926f3f7025264f37243432075e5583925bb77b7 |
23 |
+DIST libiconv-1.17.tar.gz 5413283 BLAKE2B 1d317dd0655c680a2082c38561cdff51ac1a9181d4734a8bb1e86861dfd66f1a6c0846a90b5b88f3b38b1fa9983d9e563551f27e95a8e329896b71becceae52b SHA512 18a09de2d026da4f2d8b858517b0f26d853b21179cf4fa9a41070b2d140030ad9525637dc4f34fc7f27abca8acdc84c6751dfb1d426e78bf92af4040603ced86 |
24 |
|
25 |
diff --git a/dev-libs/libiconv/libiconv-1.17.ebuild b/dev-libs/libiconv/libiconv-1.17.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..44e0fff50f00 |
28 |
--- /dev/null |
29 |
+++ b/dev-libs/libiconv/libiconv-1.17.ebuild |
30 |
@@ -0,0 +1,52 @@ |
31 |
+# Copyright 1999-2022 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+inherit multilib-minimal |
37 |
+ |
38 |
+DESCRIPTION="GNU charset conversion library for libc which doesn't implement it" |
39 |
+HOMEPAGE="https://www.gnu.org/software/libiconv/" |
40 |
+SRC_URI="mirror://gnu/libiconv/${P}.tar.gz" |
41 |
+ |
42 |
+LICENSE="LGPL-2.1" |
43 |
+SLOT="0" |
44 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt" |
45 |
+IUSE="prefix static-libs" |
46 |
+ |
47 |
+DEPEND="!sys-libs/glibc |
48 |
+ !sys-libs/musl" |
49 |
+RDEPEND="${DEPEND}" |
50 |
+ |
51 |
+PATCHES=( |
52 |
+ "${FILESDIR}/${PN}-1.16-fix-link-install.patch" |
53 |
+) |
54 |
+ |
55 |
+multilib_src_configure() { |
56 |
+ if use prefix ; then |
57 |
+ # In Prefix we want to have the same header declaration on every |
58 |
+ # platform, so make configure find that it should do |
59 |
+ # "const char * *inbuf" |
60 |
+ export am_cv_func_iconv=no |
61 |
+ fi |
62 |
+ |
63 |
+ # Disable NLS support because that creates a circular dependency |
64 |
+ # between libiconv and gettext |
65 |
+ ECONF_SOURCE="${S}" \ |
66 |
+ econf \ |
67 |
+ --docdir="\$(datarootdir)/doc/${PF}/html" \ |
68 |
+ --disable-nls \ |
69 |
+ --enable-shared \ |
70 |
+ $(use_enable static-libs static) |
71 |
+} |
72 |
+ |
73 |
+multilib_src_install_all() { |
74 |
+ use static-libs || find "${ED}" -name 'lib*.la' -delete |
75 |
+ |
76 |
+ # We need to rename our copies, bug #503162 |
77 |
+ cd "${ED}"/usr/share/man || die |
78 |
+ local f |
79 |
+ for f in man*/*.[0-9] ; do |
80 |
+ mv "${f}" "${f%/*}/${PN}-${f#*/}" || die |
81 |
+ done |
82 |
+} |