From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 9B11B13888F for ; Tue, 13 Oct 2015 00:20:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6484521C007; Tue, 13 Oct 2015 00:20:39 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7D608E07D4 for ; Tue, 13 Oct 2015 00:20:38 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B06AD340884 for ; Tue, 13 Oct 2015 00:20:37 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 351C2F66 for ; Tue, 13 Oct 2015 00:20:33 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <1444695264.a593d8173708b836e38d245ac93c18cc88876841.vapier@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libiconv/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/libiconv/libiconv-1.14-r2.ebuild X-VCS-Directories: dev-libs/libiconv/ X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: a593d8173708b836e38d245ac93c18cc88876841 X-VCS-Branch: master Date: Tue, 13 Oct 2015 00:20:33 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 1d65861c-cf92-4dc7-80ad-a0bb314fc452 X-Archives-Hash: c6b5a8545e4995b47e2b5b8e211d044b commit: a593d8173708b836e38d245ac93c18cc88876841 Author: Mike Frysinger gentoo org> AuthorDate: Mon Oct 12 20:42:12 2015 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Tue Oct 13 00:14:24 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a593d817 dev-libs/libiconv: change USE=static-libs default and clean up .la files Do not provide static-libs by default as we don't do this for other libs. Along those lines, make sure we delete the .la files when there are no static libraries available as they just get in the way. dev-libs/libiconv/libiconv-1.14-r2.ebuild | 55 +++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/dev-libs/libiconv/libiconv-1.14-r2.ebuild b/dev-libs/libiconv/libiconv-1.14-r2.ebuild new file mode 100644 index 0000000..ae98764 --- /dev/null +++ b/dev-libs/libiconv/libiconv-1.14-r2.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit libtool toolchain-funcs 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="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() { + use static-libs || find "${ED}" -name 'lib*.la' -delete + + # 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 +}