diff options
author | Peter Alfredsen <loki_val@gentoo.org> | 2008-05-30 23:55:33 +0000 |
---|---|---|
committer | Peter Alfredsen <loki_val@gentoo.org> | 2008-05-30 23:55:33 +0000 |
commit | 305c3e4745799d487fc1916cd169696c520dfc4c (patch) | |
tree | 62c785e83edd09a1e2b5a8afb42d8ef59c8a9b60 /dev-libs/xmlrpc-c/xmlrpc-c-1.06.27.ebuild | |
parent | handle 7-zip archives via `file` so that things like sd7 files work magically (diff) | |
download | gentoo-2-305c3e4745799d487fc1916cd169696c520dfc4c.tar.gz gentoo-2-305c3e4745799d487fc1916cd169696c520dfc4c.tar.bz2 gentoo-2-305c3e4745799d487fc1916cd169696c520dfc4c.zip |
Version bump. Taking over as maintainer.
(Portage version: 2.1.5.2)
Diffstat (limited to 'dev-libs/xmlrpc-c/xmlrpc-c-1.06.27.ebuild')
-rw-r--r-- | dev-libs/xmlrpc-c/xmlrpc-c-1.06.27.ebuild | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/dev-libs/xmlrpc-c/xmlrpc-c-1.06.27.ebuild b/dev-libs/xmlrpc-c/xmlrpc-c-1.06.27.ebuild new file mode 100644 index 000000000000..cb426a5fd729 --- /dev/null +++ b/dev-libs/xmlrpc-c/xmlrpc-c-1.06.27.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2008 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.06.27.ebuild,v 1.1 2008/05/30 23:55:33 loki_val Exp $ + +EAPI=1 + +inherit eutils + +DESCRIPTION="A lightweigt RPC library based on XML and HTTP" +SRC_URI="mirror://sourceforge/${PN}/${P/-c}.tgz" +HOMEPAGE="http://xmlrpc-c.sourceforge.net/" + +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" +IUSE="+curl threads" +LICENSE="BSD" +SLOT="0" + +DEPEND="dev-libs/libxml2 + curl? ( net-misc/curl )" + +pkg_setup() { + if ! use curl + then + ewarn "Curl support disabled: No client library will be be built" + fi +} + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${P}-curl-easy-setopt.patch + epatch "${FILESDIR}"/${P}-abyss-header-fixup.patch + + #CPP test suite doesn't pass, but if we were to get it to pass, + #this is needed to get it to build. + epatch "${FILESDIR}"/${P}-gcc43-test-fix.patch + epatch "${FILESDIR}"/${PN}-1.06.09-asneeded.patch + epatch "${FILESDIR}"/${PN}-1.05-pic.patch + + # Respect the user's CFLAGS/CXXFLAGS. + sed -i -e "/CFLAGS_COMMON/s:-g -O3$:${CFLAGS}:" Makefile.common + sed -i -e "/CXXFLAGS_COMMON/s:-g$:${CXXFLAGS}:" Makefile.common +} + +src_compile() { + # Respect the user's LDFLAGS. + export LADD=${LDFLAGS} + econf --disable-wininet-client --enable-libxml2-backend --disable-libwww-client \ + $(use_enable threads abyss-threads) \ + $(use_enable curl curl-client) || die "econf failed" + emake -j1 || die "emake failed" +} + +src_test() { + unset LDFLAGS LADD + cd "${S}"/src/test/ + einfo "Building general tests" + make || die "Make of general tests failed" + einfo "Running general tests" + ./test || die "General tests failed" + + #C++ tests. They fail. + #cd "${S}"/src/cpp/test + #einfo "Building C++ tests" + #make || die "Make of C++ tests failed" + #einfo "Running C++ tests" + #./test || die "C++ tests failed" +} + + +src_install() { + emake -j1 DESTDIR="${D}" install || die "installation failed" + + dodoc README doc/CREDITS doc/DEVELOPING doc/HISTORY doc/SECURITY doc/TESTING \ + doc/TODO || die "installing docs failed" +} |