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/xmlrpc-epi-0.54-r1.ebuild
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/xmlrpc-epi-0.54-r1.ebuild')
-rw-r--r--dev-libs/xmlrpc-epi/xmlrpc-epi-0.54-r1.ebuild14
1 files changed, 11 insertions, 3 deletions
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