diff options
-rw-r--r-- | dev-libs/xmlrpc-c/ChangeLog | 11 | ||||
-rw-r--r-- | dev-libs/xmlrpc-c/files/xmlrpc-c-1.06.27-abyss-header-fixup.patch | 18 | ||||
-rw-r--r-- | dev-libs/xmlrpc-c/files/xmlrpc-c-1.06.27-curl-easy-setopt.patch | 14 | ||||
-rw-r--r-- | dev-libs/xmlrpc-c/files/xmlrpc-c-1.06.27-gcc43-test-fix.patch | 30 | ||||
-rw-r--r-- | dev-libs/xmlrpc-c/metadata.xml | 4 | ||||
-rw-r--r-- | dev-libs/xmlrpc-c/xmlrpc-c-1.06.27.ebuild | 76 |
6 files changed, 150 insertions, 3 deletions
diff --git a/dev-libs/xmlrpc-c/ChangeLog b/dev-libs/xmlrpc-c/ChangeLog index f0c9ad8fa052..6d413fb3520d 100644 --- a/dev-libs/xmlrpc-c/ChangeLog +++ b/dev-libs/xmlrpc-c/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for dev-libs/xmlrpc-c # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/xmlrpc-c/ChangeLog,v 1.48 2008/05/27 19:21:43 corsair Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/xmlrpc-c/ChangeLog,v 1.49 2008/05/30 23:55:33 loki_val Exp $ + +*xmlrpc-c-1.06.27 (30 May 2008) + + 30 May 2008; Peter Alfredsen <loki_val@gentoo.org> + +files/xmlrpc-c-1.06.27-abyss-header-fixup.patch, + +files/xmlrpc-c-1.06.27-curl-easy-setopt.patch, + +files/xmlrpc-c-1.06.27-gcc43-test-fix.patch, metadata.xml, + +xmlrpc-c-1.06.27.ebuild: + Version bump. Taking over as maintainer. 27 May 2008; Markus Rothe <corsair@gentoo.org> xmlrpc-c-1.06.09-r2.ebuild: Stable on ppc64 diff --git a/dev-libs/xmlrpc-c/files/xmlrpc-c-1.06.27-abyss-header-fixup.patch b/dev-libs/xmlrpc-c/files/xmlrpc-c-1.06.27-abyss-header-fixup.patch new file mode 100644 index 000000000000..607b8bc7ebdb --- /dev/null +++ b/dev-libs/xmlrpc-c/files/xmlrpc-c-1.06.27-abyss-header-fixup.patch @@ -0,0 +1,18 @@ +--- xmlrpc-c-1.06.27.orig/GNUmakefile ++++ xmlrpc-c-1.06.27/GNUmakefile +@@ -100,13 +100,13 @@ + # Install old names of header files for backward compatibility + cd $(DESTDIR)$(HEADERINST_DIR); \ + rm -f xmlrpc.h xmlrpc_client.h xmlrpc_server.h xmlrpc_cgi.h \ +- xmlrpc_server_abyss.h xmlrpc_server_w32httpsys.h \ ++ xmlrpc_abyss.h xmlrpc_server_w32httpsys.h \ + XmlRpcCpp.h; \ + $(LN_S) xmlrpc-c/oldxmlrpc.h xmlrpc.h; \ + $(LN_S) xmlrpc-c/client.h xmlrpc_client.h; \ + $(LN_S) xmlrpc-c/server.h xmlrpc_server.h; \ + $(LN_S) xmlrpc-c/server_cgi.h xmlrpc_cgi.h; \ +- $(LN_S) xmlrpc-c/server_abyss.h xmlrpc_server_abyss.h; \ ++ $(LN_S) xmlrpc-c/server_abyss.h xmlrpc_abyss.h; \ + $(LN_S) xmlrpc-c/server_w32httpsys.h xmlrpc_server_w32httpsys.h; \ + $(LN_S) xmlrpc-c/oldcppwrapper.hpp XmlRpcCpp.h ;\ +
\ No newline at end of file diff --git a/dev-libs/xmlrpc-c/files/xmlrpc-c-1.06.27-curl-easy-setopt.patch b/dev-libs/xmlrpc-c/files/xmlrpc-c-1.06.27-curl-easy-setopt.patch new file mode 100644 index 000000000000..6ac078709807 --- /dev/null +++ b/dev-libs/xmlrpc-c/files/xmlrpc-c-1.06.27-curl-easy-setopt.patch @@ -0,0 +1,14 @@ +Index: xmlrpc-c/lib/curl_transport/xmlrpc_curl_transport.c +=================================================================== +--- xmlrpc-c.orig/lib/curl_transport/xmlrpc_curl_transport.c ++++ xmlrpc-c/lib/curl_transport/xmlrpc_curl_transport.c +@@ -1214,7 +1214,7 @@ setupCurlSession(xmlrpc_env * + curl_easy_setopt(curlSessionP, CURLOPT_SSLENGINE, + curlSetupP->sslEngine); + if (curlSetupP->sslEngineDefault) +- curl_easy_setopt(curlSessionP, CURLOPT_SSLENGINE_DEFAULT); ++ curl_easy_setopt(curlSessionP, CURLOPT_SSLENGINE_DEFAULT, 1); + if (curlSetupP->sslVersion != XMLRPC_SSLVERSION_DEFAULT) + curl_easy_setopt(curlSessionP, CURLOPT_SSLVERSION, + curlSetupP->sslVersion); + diff --git a/dev-libs/xmlrpc-c/files/xmlrpc-c-1.06.27-gcc43-test-fix.patch b/dev-libs/xmlrpc-c/files/xmlrpc-c-1.06.27-gcc43-test-fix.patch new file mode 100644 index 000000000000..e74061170812 --- /dev/null +++ b/dev-libs/xmlrpc-c/files/xmlrpc-c-1.06.27-gcc43-test-fix.patch @@ -0,0 +1,30 @@ +diff -NrU5 xmlrpc-c-1.06.27.orig/src/cpp/test/server_abyss.cpp xmlrpc-c-1.06.27/src/cpp/test/server_abyss.cpp +--- xmlrpc-c-1.06.27.orig/src/cpp/test/server_abyss.cpp 2008-05-31 01:21:14.000000000 +0200 ++++ xmlrpc-c-1.06.27/src/cpp/test/server_abyss.cpp 2008-05-31 01:21:43.000000000 +0200 +@@ -12,10 +12,11 @@ + #include <iostream> + #include <vector> + #include <sstream> + #include <memory> + #include <time.h> ++#include <cstring> + + #include "xmlrpc-c/girerr.hpp" + using girerr::error; + using girerr::throwf; + #include "xmlrpc-c/base.hpp" +diff -NrU5 xmlrpc-c-1.06.27.orig/src/cpp/test/test.cpp xmlrpc-c-1.06.27/src/cpp/test/test.cpp +--- xmlrpc-c-1.06.27.orig/src/cpp/test/test.cpp 2008-05-31 01:21:14.000000000 +0200 ++++ xmlrpc-c-1.06.27/src/cpp/test/test.cpp 2008-05-31 01:21:20.000000000 +0200 +@@ -3,10 +3,11 @@ + #include <iomanip> + #include <vector> + #include <sstream> + #include <memory> + #include <time.h> ++#include <cstring> + + #include "xmlrpc-c/girerr.hpp" + using girerr::error; + #include "transport_config.h" + #include "xmlrpc-c/base.hpp" diff --git a/dev-libs/xmlrpc-c/metadata.xml b/dev-libs/xmlrpc-c/metadata.xml index fae7d74a9aee..762741c0ab18 100644 --- a/dev-libs/xmlrpc-c/metadata.xml +++ b/dev-libs/xmlrpc-c/metadata.xml @@ -3,7 +3,7 @@ <pkgmetadata> <herd>no-herd</herd> <maintainer> - <email>maintainer-needed@gentoo.org</email> - <name>Default assignee for orphaned packages</name> + <email>loki_val@gentoo.org</email> + <name>Peter Alfredsen</name> </maintainer> </pkgmetadata> 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" +} |