You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.3 KiB
53 lines
1.3 KiB
12 years ago
|
# Copyright 1999-2012 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.2.ebuild,v 1.1 2012/05/22 11:21:13 polynomial-c 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.bz2"
|
||
|
|
||
|
LICENSE="Epinions"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~ppc ~x86"
|
||
|
IUSE="examples static-libs"
|
||
|
|
||
|
DEPEND="dev-libs/expat"
|
||
|
RDEPEND="${DEPEND}"
|
||
|
|
||
|
# NOTES:
|
||
|
# to prevent conflict with xmlrpc-c, headers are installed in
|
||
|
# /usr/include/${PN} instead of /usr/include (bug 274291)
|
||
|
|
||
|
src_prepare() {
|
||
|
# do not build examples
|
||
|
sed -i -e "s:sample::" Makefile.in || die "sed failed"
|
||
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
econf \
|
||
|
--includedir=/usr/include/${PN} \
|
||
|
--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
|
||
|
insinto "/usr/share/doc/${PF}/examples"
|
||
|
doins sample/*.c sample/*.php || die "doins failed"
|
||
|
doins -r sample/tests || die "doins failed"
|
||
|
fi
|
||
|
}
|