diff options
author | Sam James <sam@gentoo.org> | 2022-05-16 07:50:43 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-05-16 19:56:46 +0000 |
commit | 98f7809bfe5e8e73a09069669b30ef3b37d71424 (patch) | |
tree | ae1f8a540a337422451cdb5032990edda3069dc3 /dev-libs/libiconv | |
parent | net-misc/geoipupdate: drop 4.3.0 (diff) | |
download | gentoo-98f7809bfe5e8e73a09069669b30ef3b37d71424.tar.gz gentoo-98f7809bfe5e8e73a09069669b30ef3b37d71424.tar.bz2 gentoo-98f7809bfe5e8e73a09069669b30ef3b37d71424.zip |
dev-libs/libiconv: add 1.17
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-libs/libiconv')
-rw-r--r-- | dev-libs/libiconv/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/libiconv/libiconv-1.17.ebuild | 52 |
2 files changed, 53 insertions, 0 deletions
diff --git a/dev-libs/libiconv/Manifest b/dev-libs/libiconv/Manifest index 6d09de8d4734..a37a6328727a 100644 --- a/dev-libs/libiconv/Manifest +++ b/dev-libs/libiconv/Manifest @@ -1,2 +1,3 @@ DIST libiconv-1.15.tar.gz 5264188 BLAKE2B 2384dbf8549fa56e841b15b7e2698b83c0ee171cdff13aef48c60eae0bc4f5e7b2e937bc8d5eddf89fba11412d17bebd77bdda7060c177ce9dc9be00172c0c12 SHA512 1233fe3ca09341b53354fd4bfe342a7589181145a1232c9919583a8c9979636855839049f3406f253a9d9829908816bb71fd6d34dd544ba290d6f04251376b1a DIST libiconv-1.16.tar.gz 5166734 BLAKE2B 8e7f4d64d757db6c3ffa973c9cebcf20b34f9859a547dbba8cebe3a4865bda86f33c5be197951877c46eff5a7fc00b1b11474fb3baa036f08ac2faf97eca138c SHA512 365dac0b34b4255a0066e8033a8b3db4bdb94b9b57a9dca17ebf2d779139fe935caf51a465d17fd8ae229ec4b926f3f7025264f37243432075e5583925bb77b7 +DIST libiconv-1.17.tar.gz 5413283 BLAKE2B 1d317dd0655c680a2082c38561cdff51ac1a9181d4734a8bb1e86861dfd66f1a6c0846a90b5b88f3b38b1fa9983d9e563551f27e95a8e329896b71becceae52b SHA512 18a09de2d026da4f2d8b858517b0f26d853b21179cf4fa9a41070b2d140030ad9525637dc4f34fc7f27abca8acdc84c6751dfb1d426e78bf92af4040603ced86 diff --git a/dev-libs/libiconv/libiconv-1.17.ebuild b/dev-libs/libiconv/libiconv-1.17.ebuild new file mode 100644 index 000000000000..44e0fff50f00 --- /dev/null +++ b/dev-libs/libiconv/libiconv-1.17.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit multilib-minimal + +DESCRIPTION="GNU charset conversion library for libc which doesn't implement it" +HOMEPAGE="https://www.gnu.org/software/libiconv/" +SRC_URI="mirror://gnu/libiconv/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +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" +IUSE="prefix static-libs" + +DEPEND="!sys-libs/glibc + !sys-libs/musl" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}/${PN}-1.16-fix-link-install.patch" +) + +multilib_src_configure() { + if use prefix ; then + # In Prefix we want to have the same header declaration on every + # platform, so make configure find that it should do + # "const char * *inbuf" + export am_cv_func_iconv=no + fi + + # Disable NLS support because that creates a circular dependency + # between libiconv and gettext + ECONF_SOURCE="${S}" \ + econf \ + --docdir="\$(datarootdir)/doc/${PF}/html" \ + --disable-nls \ + --enable-shared \ + $(use_enable static-libs static) +} + +multilib_src_install_all() { + use static-libs || find "${ED}" -name 'lib*.la' -delete + + # We need to rename our copies, bug #503162 + cd "${ED}"/usr/share/man || die + local f + for f in man*/*.[0-9] ; do + mv "${f}" "${f%/*}/${PN}-${f#*/}" || die + done +} |