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 052081382AC for ; Sun, 19 Jun 2016 10:16:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D9A34E0A5C; Sun, 19 Jun 2016 10:16:21 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 717B4E0A5C for ; Sun, 19 Jun 2016 10:16:21 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 58F0834067D for ; Sun, 19 Jun 2016 10:16:05 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 11B262412 for ; Sun, 19 Jun 2016 10:16:02 +0000 (UTC) From: "Andrew Savchenko" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrew Savchenko" Message-ID: <1466331340.8846a53e588bf0d52d7159b0a492c7bb907e61a4.bircoph@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/giflib/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/giflib/giflib-5.1.4.ebuild X-VCS-Directories: media-libs/giflib/ X-VCS-Committer: bircoph X-VCS-Committer-Name: Andrew Savchenko X-VCS-Revision: 8846a53e588bf0d52d7159b0a492c7bb907e61a4 X-VCS-Branch: master Date: Sun, 19 Jun 2016 10:16:02 +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: a815d173-67c0-498d-9ca3-cc214a32f66e X-Archives-Hash: 76b985f2e1e05baf1844c0ffc1f502f5 commit: 8846a53e588bf0d52d7159b0a492c7bb907e61a4 Author: Andrew Savchenko gentoo org> AuthorDate: Sun Jun 19 10:15:40 2016 +0000 Commit: Andrew Savchenko gentoo org> CommitDate: Sun Jun 19 10:15:40 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8846a53e media-libs/giflib: fix bug 581750 - install html docs; - control docs install using USE=doc. Package-Manager: portage-2.3.0_rc1 Signed-off-by: Andrew Savchenko gentoo.org> media-libs/giflib/giflib-5.1.4.ebuild | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/media-libs/giflib/giflib-5.1.4.ebuild b/media-libs/giflib/giflib-5.1.4.ebuild index 161a7a0..f2086d6 100644 --- a/media-libs/giflib/giflib-5.1.4.ebuild +++ b/media-libs/giflib/giflib-5.1.4.ebuild @@ -13,14 +13,15 @@ SRC_URI="mirror://sourceforge/giflib/${P}.tar.bz2" LICENSE="MIT" SLOT="0/7" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" -IUSE="static-libs" +IUSE="doc static-libs" RDEPEND=" abi_x86_32? ( !<=app-emulation/emul-linux-x86-baselibs-20140406-r1 !app-emulation/emul-linux-x86-baselibs[-abi_x86_32] )" -DEPEND="${RDEPEND}" +DEPEND="${RDEPEND} + doc? ( app-text/xmlto )" src_prepare() { default @@ -39,16 +40,33 @@ multilib_src_configure() { econf "${myeconfargs[@]}" } +multilib_src_compile() { + default + + if use doc && multilib_is_native_abi; then + emake -C doc + fi +} + multilib_src_install() { default # for static libs the .la file is required if built with +X use static-libs || prune_libtool_files --all + + if use doc && multilib_is_native_abi; then + docinto html + dodoc doc/*.html + fi } multilib_src_install_all() { doman doc/*.1 - dodoc AUTHORS BUGS ChangeLog NEWS README TODO doc/*.txt - docinto html - dodoc -r doc/whatsinagif + docinto + dodoc AUTHORS BUGS ChangeLog NEWS README TODO + if use doc; then + dodoc doc/*.txt + docinto html + dodoc -r doc/whatsinagif + fi }