1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit eutils multilib flag-o-matic libtool toolchain-funcs
7 DESCRIPTION="GNU charset conversion library for libc which doesn't implement it"
8 HOMEPAGE="https://www.gnu.org/software/libiconv/"
9 SRC_URI="mirror://gnu/libiconv/${P}.tar.gz"
13 KEYWORDS="~sparc-fbsd ~x86-fbsd"
16 DEPEND="!sys-libs/glibc
24 # This patch is needed as libiconv 1.10 provides (and uses) new functions
25 # and they are not present in the old libiconv.so, and this breaks the
26 # ${DESTDIR} != ${prefix} that we use. It's a problem for Solaris, but we
27 # don't have to deal with it for now.
28 #epatch "${FILESDIR}"/${PN}-1.10-link.patch
30 # Make sure that libtool support is updated to link "the linux way" on
36 # Install in /lib as utils installed in /lib like gnutar
39 # Disable NLS support because that creates a circular dependency
40 # between libiconv and gettext
47 emake || die "emake failed"
51 emake DESTDIR="${D}" docdir="/usr/share/doc/${PF}/html" install || die "make install failed"
53 # Move static libs and creates ldscripts into /usr/lib
55 mv "${D}"/usr/$(get_libdir)/lib{iconv,charset}*$(get_libname)* "${D}/$(get_libdir)" || die
56 gen_usr_ldscript libiconv$(get_libname)
57 gen_usr_ldscript libcharset$(get_libname)