summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2009-06-01 07:15:38 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2009-06-01 07:15:38 +0000
commit25ff8be4849fcdbafbf7eb740507d170f80ba029 (patch)
tree473caca27c670356655721f080422399a2329ff5 /dev-libs/libffi
parentUnmask libffi and related pkgs wrt #163724 (diff)
downloadgentoo-2-25ff8be4849fcdbafbf7eb740507d170f80ba029.tar.gz
gentoo-2-25ff8be4849fcdbafbf7eb740507d170f80ba029.tar.bz2
gentoo-2-25ff8be4849fcdbafbf7eb740507d170f80ba029.zip
Only build static libs if USE flag is defined.
(Portage version: 2.1.6.13/cvs/Linux x86_64)
Diffstat (limited to 'dev-libs/libffi')
-rw-r--r--dev-libs/libffi/ChangeLog8
-rw-r--r--dev-libs/libffi/libffi-3.0.5.ebuild34
-rw-r--r--dev-libs/libffi/libffi-3.0.6.ebuild34
-rw-r--r--dev-libs/libffi/libffi-3.0.8.ebuild32
-rw-r--r--dev-libs/libffi/metadata.xml3
5 files changed, 26 insertions, 85 deletions
diff --git a/dev-libs/libffi/ChangeLog b/dev-libs/libffi/ChangeLog
index 64a06698132c..3b06d4d18c8e 100644
--- a/dev-libs/libffi/ChangeLog
+++ b/dev-libs/libffi/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-libs/libffi
-# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/libffi/ChangeLog,v 1.57 2008/12/24 18:31:29 wormo Exp $
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libffi/ChangeLog,v 1.58 2009/06/01 07:15:38 ssuominen Exp $
+
+ 01 Jun 2009; Samuli Suominen <ssuominen@gentoo.org> -libffi-3.0.5.ebuild,
+ -libffi-3.0.6.ebuild, libffi-3.0.8.ebuild, metadata.xml:
+ Only build static libs if USE flag is defined.
*libffi-3.0.8 (24 Dec 2008)
diff --git a/dev-libs/libffi/libffi-3.0.5.ebuild b/dev-libs/libffi/libffi-3.0.5.ebuild
deleted file mode 100644
index 6b653be6178f..000000000000
--- a/dev-libs/libffi/libffi-3.0.5.ebuild
+++ /dev/null
@@ -1,34 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/libffi/libffi-3.0.5.ebuild,v 1.5 2008/06/29 12:49:08 hkbst Exp $
-
-inherit eutils
-
-DESCRIPTION="a portable, high level programming interface to various calling conventions."
-HOMEPAGE="http://sourceware.org/libffi"
-SRC_URI="ftp://sourceware.org/pub/${PN}/${P}.tar.gz"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="debug test"
-
-DEPEND="test? ( dev-util/dejagnu )"
-RDEPEND=""
-
-pkg_setup() {
- ewarn "This package provides a separate libffi which may conflict with the"
- ewarn "one provided by sys-devel/gcc when it is built with libffi use flag on."
- ebeep
-}
-
-src_compile() {
- econf --disable-dependency-tracking \
- $(use_enable debug) || die "econf failed."
- emake || die "emake failed."
-}
-
-src_install() {
- emake DESTDIR="${D}" install || die "emake install failed."
- dodoc ChangeLog* README TODO
-}
diff --git a/dev-libs/libffi/libffi-3.0.6.ebuild b/dev-libs/libffi/libffi-3.0.6.ebuild
deleted file mode 100644
index 7342c835e9ed..000000000000
--- a/dev-libs/libffi/libffi-3.0.6.ebuild
+++ /dev/null
@@ -1,34 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/libffi/libffi-3.0.6.ebuild,v 1.1 2008/09/02 15:08:51 hkbst Exp $
-
-inherit eutils
-
-DESCRIPTION="a portable, high level programming interface to various calling conventions."
-HOMEPAGE="http://sourceware.org/libffi"
-SRC_URI="ftp://sourceware.org/pub/${PN}/${P}.tar.gz"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="debug test"
-
-DEPEND="test? ( dev-util/dejagnu )"
-RDEPEND=""
-
-pkg_setup() {
- ewarn "This package provides a separate libffi which may conflict with the"
- ewarn "one provided by sys-devel/gcc when it is built with libffi use flag on."
- ebeep
-}
-
-src_compile() {
- econf --disable-dependency-tracking \
- $(use_enable debug) || die "econf failed."
- emake || die "emake failed."
-}
-
-src_install() {
- emake DESTDIR="${D}" install || die "emake install failed."
- dodoc ChangeLog* README TODO
-}
diff --git a/dev-libs/libffi/libffi-3.0.8.ebuild b/dev-libs/libffi/libffi-3.0.8.ebuild
index b88f688f4d7a..9d6bf468d42b 100644
--- a/dev-libs/libffi/libffi-3.0.8.ebuild
+++ b/dev-libs/libffi/libffi-3.0.8.ebuild
@@ -1,7 +1,8 @@
-# Copyright 1999-2008 Gentoo Foundation
+# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/libffi/libffi-3.0.8.ebuild,v 1.1 2008/12/24 18:31:29 wormo Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libffi/libffi-3.0.8.ebuild,v 1.2 2009/06/01 07:15:38 ssuominen Exp $
+EAPI=2
inherit eutils
DESCRIPTION="a portable, high level programming interface to various calling conventions."
@@ -11,24 +12,25 @@ SRC_URI="ftp://sourceware.org/pub/${PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE="debug test"
+IUSE="debug static-libs test"
-DEPEND="test? ( dev-util/dejagnu )"
RDEPEND=""
+DEPEND="test? ( dev-util/dejagnu )"
-pkg_setup() {
- ewarn "This package provides a separate libffi which may conflict with the"
- ewarn "one provided by sys-devel/gcc when it is built with libffi use flag on."
- ebeep
-}
-
-src_compile() {
- econf --disable-dependency-tracking \
- $(use_enable debug) || die "econf failed."
- emake || die "emake failed."
+src_configure() {
+ econf \
+ --disable-dependency-tracking \
+ $(use_enable static-libs static) \
+ $(use_enable debug)
}
src_install() {
- emake DESTDIR="${D}" install || die "emake install failed."
+ emake DESTDIR="${D}" install || die "emake install failed"
dodoc ChangeLog* README TODO
}
+
+pkg_postinst() {
+ ewarn "Please unset USE flag libffi in sys-devel/gcc. There is no"
+ ewarn "file collision but your package might link to wrong library."
+ ebeep
+}
diff --git a/dev-libs/libffi/metadata.xml b/dev-libs/libffi/metadata.xml
index 238cc07b775d..effecf0b70ba 100644
--- a/dev-libs/libffi/metadata.xml
+++ b/dev-libs/libffi/metadata.xml
@@ -33,4 +33,7 @@
exist above libffi that handles type conversions for values passed
between the two languages.
</longdescription>
+ <use>
+ <flag name='static-libs'>Compile static archives</flag>
+ </use>
</pkgmetadata>