diff options
Diffstat (limited to 'dev-libs/xmlrpc-c-cvs/xmlrpc-c-cvs-9999.ebuild')
-rw-r--r-- | dev-libs/xmlrpc-c-cvs/xmlrpc-c-cvs-9999.ebuild | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/dev-libs/xmlrpc-c-cvs/xmlrpc-c-cvs-9999.ebuild b/dev-libs/xmlrpc-c-cvs/xmlrpc-c-cvs-9999.ebuild new file mode 100644 index 0000000..967f09f --- /dev/null +++ b/dev-libs/xmlrpc-c-cvs/xmlrpc-c-cvs-9999.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/xmlrpc-c/xmlrpc-c-1.09.00.ebuild,v 1.1 2007/01/30 09:44:33 hollow Exp $ + +inherit autotools eutils cvs + +DESCRIPTION="A lightweigt RPC library based on XML and HTTP" +HOMEPAGE="http://xmlrpc-c.sourceforge.net/" + +KEYWORDS="~alpha ~amd64 ~ppc ~x86" +IUSE="curl libwww threads" +LICENSE="GPL-2" +SLOT="0" + +DEPEND="dev-libs/libxml2 + libwww? ( net-libs/libwww ) + curl? ( net-misc/curl )" + +ECVS_SERVER="xmlrpc-c.cvs.sourceforge.net:/cvsroot/xmlrpc-c" +ECVS_MODULE="xmlrpc-c" +S="${WORKDIR}/${ECVS_MODULE}" + +pkg_setup() { + # paralell make doesn't work + MAKEOPTS="-j1" + + if ! use curl && ! use libwww; then + ewarn "Neither CURL nor libwww support was selected" + ewarn "No client library will be be built" + fi +} + +src_unpack() { + cvs_src_unpack + cd "${S}" + + epatch "${FILESDIR}/xmlrpc-c-threadupdatestatus.patch" + epatch "${FILESDIR}/xmlrpc-c-pic.patch" + epatch "${FILESDIR}/xmlrpc-c-mkinstalldirs.patch" + epatch "${FILESDIR}/xmlrpc-c-implicit-abs.patch" + epatch "${FILESDIR}/xmlrpc-c-type-punned-pointer-deref.patch" + + # get rid of autogenerated files + rm -f aclocal.m4 config.guess config.sub install-shi + rm -f ltconfig ltmain.sh missing mkinstalldirs + + # force eautomake though xmlrpc-c doesn't really use it + touch Makefile.am + echo 'AC_CONFIG_FILES([Makefile])' >> configure.in + + eautoreconf +} + +src_compile() { + econf --disable-wininet-client --enable-libxml2-backend \ + $(use_enable threads abyss-threads) \ + $(use_enable curl curl-client) \ + $(use_enable libwww libwww-client) || die "econf failed" + + emake || die "emake failed" +} + +src_install() { + make DESTDIR=${D} install || die +} |