You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-libs/libiconv/libiconv-1.14-r1.ebuild

54 lines
1.5 KiB

# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libiconv/libiconv-1.14-r1.ebuild,v 1.6 2014/03/27 06:37:41 vapier Exp $
EAPI="4"
inherit libtool toolchain-funcs multilib-minimal
DESCRIPTION="GNU charset conversion library for libc which doesn't implement it"
HOMEPAGE="http://www.gnu.org/software/libiconv/"
SRC_URI="mirror://gnu/libiconv/${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 arm ~mips ppc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
IUSE="+static-libs"
DEPEND="!sys-libs/glibc
!userland_GNU? ( !sys-apps/man-pages )"
RDEPEND="${DEPEND}"
src_prepare() {
epatch "${FILESDIR}"/${P}-no-gets.patch
elibtoolize
}
multilib_src_configure() {
# 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() {
# Install in /lib as utils installed in /lib like gnutar
# can depend on this
gen_usr_ldscript -a iconv charset
# If we have a GNU userland, we probably have sys-apps/man-pages
# installed, which means we want to rename our copies #503162.
# The use of USELAND=GNU is kind of a hack though ...
if use userland_GNU ; then
cd "${ED}"/usr/share/man || die
local f
for f in man*/*.[0-9] ; do
mv "${f}" "${f%/*}/${PN}-${f#*/}" || die
done
fi
}