Skip to content
Permalink
Browse files

Bug: https://trac.macports.org/ticket/1293

Submitted by:   pguyot@kallisys.net
Reviewed by:
Approved by:
Obtained from:
Port:	xmlrpc-c
Version:	0.9.10

new port, xmlrpc-c 0.9.10

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@4230 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Felix Kronlage
Felix Kronlage committed Dec 16, 2003
1 parent 8fd82e4 commit f093554874b2c368d9af0d900215e24a2b047d57
@@ -0,0 +1,24 @@
# $Id: Portfile,v 1.1 2003/12/16 08:06:13 fkr Exp $

PortSystem 1.0
name xmlrpc-c
version 0.9.10
categories devel www
maintainers pguyot@kallisys.net
description Lightweight RPC library based on XML and HTTP
long_description XML-RPC is a quick-and-easy way to make procedure calls \
over the Internet. It converts the procedure call into \
XML document, sends it to a remote server using HTTP, and \
gets back the response as XML. \
This library provides a modular implementation of XML-RPC \
for C and C++.
homepage http://xmlrpc-c.sourceforge.net/
platforms darwin
master_sites sourceforge
checksums md5 847410fae881f0fb641a186db6c8c015
patchfiles patch-config.sub patch-config.guess \
patch-lib-abyss-src-data.c \
patch-src-XmlRpcCpp.h \
patch-examples-meerkat-app-list.cc \
patch-tools-xml-rpc-api2cpp-DataType.cc
depends_lib bin:libwww-config:libwww
@@ -0,0 +1,12 @@
--- config.guess Fri Dec 12 09:21:39 2003
+++ config.guess Fri Dec 12 09:22:33 2003
@@ -68,6 +68,9 @@
# Note: order is significant - the case branches are not exclusive.

case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
+ *:Darwin:*:*)
+ echo `uname -p`-apple-darwin${UNAME_RELEASE}
+ exit 0 ;;
alpha:OSF1:*:*)
if test $UNAME_RELEASE = "V4.0"; then
UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
@@ -0,0 +1,11 @@
--- config.sub Fri Dec 12 09:17:58 2003
+++ config.sub Fri Dec 12 09:18:49 2003
@@ -912,7 +912,7 @@
| -aos* \
| -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
| -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
- | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
+ | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -darwin* | -riscix* \
| -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
@@ -0,0 +1,27 @@
--- examples/meerkat-app-list.cc.old Fri Dec 12 10:07:04 2003
+++ examples/meerkat-app-list.cc Fri Dec 12 10:09:17 2003
@@ -3,7 +3,9 @@
// http://www.oreillynet.com/pub/a/rss/2000/11/14/meerkat_xmlrpc.html */

#include <iostream.h>
-#include <strstream.h>
+#include <sstream>
+
+using namespace std;

#include <XmlRpcCpp.h>

@@ -17,12 +15,9 @@
static void list_apps (int hours) {

// Build our time_period parameter.
- ostrstream time_period_stream;
+ std::ostringstream time_period_stream;
time_period_stream << hours << "HOUR" << ends;
string time_period = time_period_stream.str();
-
- // (Ask the ostrstream to reclaim ownership of its buffer.)
- time_period_stream.freeze(false);

// Assemble our meerkat query recipe.
XmlRpcValue recipe = XmlRpcValue::makeStruct();
@@ -0,0 +1,11 @@
--- lib/abyss/src/data.c Fri Dec 12 09:33:36 2003
+++ lib/abyss/src/data.c Fri Dec 12 09:33:47 2003
@@ -32,7 +32,7 @@
**
*******************************************************************************/

-#include <malloc.h>
+#include <stdlib.h>
#include <string.h>
#include "abyss.h"

@@ -0,0 +1,11 @@
--- src/XmlRpcCpp.h Fri Dec 12 09:38:28 2003
+++ src/XmlRpcCpp.h Fri Dec 12 09:38:34 2003
@@ -46,7 +46,7 @@
// Tell me what your compiler does; I can provide some autoconf magic to the
// Right Thing on most platforms.
#include <string>
-// using namespace std;
+using namespace std;

#include <xmlrpc.h>
#include <xmlrpc_client.h>
@@ -0,0 +1,22 @@
--- tools/xml-rpc-api2cpp/DataType.cc Fri Dec 12 10:10:26 2003
+++ tools/xml-rpc-api2cpp/DataType.cc Fri Dec 12 10:10:52 2003
@@ -1,5 +1,5 @@
#include <iostream.h>
-#include <strstream.h>
+#include <sstream>
#include <stdexcept>

#include <XmlRpcCpp.h>
@@ -13,11 +13,9 @@
// a specific XML-RPC data type.

string DataType::defaultParameterBaseName (int position) const {
- ostrstream name_stream;
+ std::ostringstream name_stream;
name_stream << typeName() << position << ends;
string name(name_stream.str());
- // (Ask the ostrstream to reclaim ownership of its buffer.)
- name_stream.freeze(false);
return name;
}

0 comments on commit f093554

Please sign in to comment.
You can’t perform that action at this time.