summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMounir Lamouri <volkmar@gentoo.org>2009-07-07 18:49:11 +0000
committerMounir Lamouri <volkmar@gentoo.org>2009-07-07 18:49:11 +0000
commitf2322152c0d72f7e91ad2befadd3d0b2e0539dad (patch)
treed874e12df7cd3c3e6859caecec742c4e975f146e /dev-libs/xmlrpc-epi
parentAutomated update of use.local.desc (diff)
downloadgentoo-2-f2322152c0d72f7e91ad2befadd3d0b2e0539dad.tar.gz
gentoo-2-f2322152c0d72f7e91ad2befadd3d0b2e0539dad.tar.bz2
gentoo-2-f2322152c0d72f7e91ad2befadd3d0b2e0539dad.zip
add static-libs USE flag and remove .la files if not enabled
(Portage version: 13790-svn/cvs/Linux ppc)
Diffstat (limited to 'dev-libs/xmlrpc-epi')
-rw-r--r--dev-libs/xmlrpc-epi/ChangeLog7
-rw-r--r--dev-libs/xmlrpc-epi/metadata.xml3
-rw-r--r--dev-libs/xmlrpc-epi/xmlrpc-epi-0.54-r1.ebuild14
3 files changed, 20 insertions, 4 deletions
diff --git a/dev-libs/xmlrpc-epi/ChangeLog b/dev-libs/xmlrpc-epi/ChangeLog
index 044154cd4934..a4a94e309da5 100644
--- a/dev-libs/xmlrpc-epi/ChangeLog
+++ b/dev-libs/xmlrpc-epi/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-libs/xmlrpc-epi
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/xmlrpc-epi/ChangeLog,v 1.4 2009/07/07 14:37:20 lavajoe Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/xmlrpc-epi/ChangeLog,v 1.5 2009/07/07 18:49:11 volkmar Exp $
+
+ 07 Jul 2009; Mounir Lamouri <volkmar@gentoo.org>
+ xmlrpc-epi-0.54-r1.ebuild:
+ Add static-libs USE flag and remove .la files if not enabled.
+ Thanks to Mauro Toffanin.
07 Jul 2009; Joe Peterson <lavajoe@gentoo.org> xmlrpc-epi-0.54-r1.ebuild:
Keyword ~amd64
diff --git a/dev-libs/xmlrpc-epi/metadata.xml b/dev-libs/xmlrpc-epi/metadata.xml
index d44dc8ef07cc..e1d1f4c511aa 100644
--- a/dev-libs/xmlrpc-epi/metadata.xml
+++ b/dev-libs/xmlrpc-epi/metadata.xml
@@ -6,5 +6,8 @@
<email>volkmar@gentoo.org</email>
<name>Mounir Lamouri</name>
</maintainer>
+ <use>
+ <flag name="static-libs">Compile static archives</flag>
+ </use>
</pkgmetadata>
diff --git a/dev-libs/xmlrpc-epi/xmlrpc-epi-0.54-r1.ebuild b/dev-libs/xmlrpc-epi/xmlrpc-epi-0.54-r1.ebuild
index 4dff17579aa7..f61b1ef933ee 100644
--- a/dev-libs/xmlrpc-epi/xmlrpc-epi-0.54-r1.ebuild
+++ b/dev-libs/xmlrpc-epi/xmlrpc-epi-0.54-r1.ebuild
@@ -1,9 +1,11 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/xmlrpc-epi/xmlrpc-epi-0.54-r1.ebuild,v 1.2 2009/07/07 14:37:20 lavajoe Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/xmlrpc-epi/xmlrpc-epi-0.54-r1.ebuild,v 1.3 2009/07/07 18:49:11 volkmar Exp $
EAPI="2"
+inherit multilib
+
DESCRIPTION="Epinions implementation of XML-RPC protocol in C"
HOMEPAGE="http://xmlrpc-epi.sourceforge.net/"
SRC_URI="mirror://sourceforge/xmlrpc-epi/${P}.tar.gz"
@@ -11,7 +13,7 @@ SRC_URI="mirror://sourceforge/xmlrpc-epi/${P}.tar.gz"
LICENSE="Epinions"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
-IUSE="examples"
+IUSE="examples static-libs"
DEPEND="dev-libs/expat"
RDEPEND="${DEPEND}"
@@ -28,12 +30,18 @@ src_prepare() {
src_configure() {
econf \
--includedir=/usr/include/${PN} \
- --disable-dependency-tracking
+ --disable-dependency-tracking \
+ $(use_enable static-libs static)
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
+ if ! use static-libs; then
+ # remove useless la files
+ rm "${D}"/usr/$(get_libdir)/lib${PN}.la || die "rm failed"
+ fi
+
dodoc AUTHORS ChangeLog NEWS README || die "dodoc failed"
if use examples; then