From 9fe8c9d84c0005b15ac46dc94780d6f3144c8032 Mon Sep 17 00:00:00 2001 From: Tomas Chvatal Date: Sun, 23 Oct 2011 12:03:00 +0000 Subject: Make static libs optional (Portage version: 2.2.0_alpha70/cvs/Linux x86_64) --- dev-libs/yajl/ChangeLog | 5 ++++- dev-libs/yajl/yajl-2.0.2.ebuild | 9 +++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) (limited to 'dev-libs/yajl') diff --git a/dev-libs/yajl/ChangeLog b/dev-libs/yajl/ChangeLog index cb817e4e5932..84151f4fdaa1 100644 --- a/dev-libs/yajl/ChangeLog +++ b/dev-libs/yajl/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for dev-libs/yajl # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/yajl/ChangeLog,v 1.15 2011/10/18 16:51:28 ssuominen Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/yajl/ChangeLog,v 1.16 2011/10/23 12:03:00 scarabeus Exp $ + + 23 Oct 2011; Tomáš Chvátal yajl-2.0.2.ebuild: + Make static libs optional 18 Oct 2011; Samuli Suominen yajl-1.0.11.ebuild: ppc/ppc64 stable wrt #382641 diff --git a/dev-libs/yajl/yajl-2.0.2.ebuild b/dev-libs/yajl/yajl-2.0.2.ebuild index 0fcaa71e7e2b..7a66ee9eae07 100644 --- a/dev-libs/yajl/yajl-2.0.2.ebuild +++ b/dev-libs/yajl/yajl-2.0.2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/yajl/yajl-2.0.2.ebuild,v 1.5 2011/10/17 20:19:18 maekke Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/yajl/yajl-2.0.2.ebuild,v 1.6 2011/10/23 12:03:00 scarabeus Exp $ EAPI=4 @@ -14,7 +14,7 @@ LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86" -IUSE="" +IUSE="static-libs" PATCHES=( "${FILESDIR}"/${PN}-fix_static_linking.patch @@ -32,3 +32,8 @@ src_test() { emake test popd > /dev/null } + +src_install() { + cmake-utils_src_install + use static-libs || find "${ED}" -name '*.a' -exec rm -f {} + +} -- cgit v1.2.3-65-gdbad