summaryrefslogtreecommitdiff
path: root/net/py-soappy
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2002-10-01 17:21:39 +0000
committerdrochner <drochner@pkgsrc.org>2002-10-01 17:21:39 +0000
commit0cd6bf1d37d4aced5d1eac4ed08e883a88684887 (patch)
treef8b6a7f441a0a1d1b7689f3c0f07f65b32a71df7 /net/py-soappy
parentb292a01dd6f34d048b72219d64c2050d3d3ba7df (diff)
downloadpkgsrc-0cd6bf1d37d4aced5d1eac4ed08e883a88684887.tar.gz
import SOAP.py from the "Web Services for Python" project, with some fixes
to make it work with Python-2.2 (extracted from py-google). This is the third SOAP implementation in Python I've tried, and the first which actually works.
Diffstat (limited to 'net/py-soappy')
-rw-r--r--net/py-soappy/DESCR2
-rw-r--r--net/py-soappy/Makefile28
-rw-r--r--net/py-soappy/PLIST2
-rw-r--r--net/py-soappy/buildlink.mk6
-rw-r--r--net/py-soappy/buildlink2.mk7
-rw-r--r--net/py-soappy/distinfo5
-rw-r--r--net/py-soappy/patches/patch-aa62
7 files changed, 112 insertions, 0 deletions
diff --git a/net/py-soappy/DESCR b/net/py-soappy/DESCR
new file mode 100644
index 00000000000..edb9ef86faf
--- /dev/null
+++ b/net/py-soappy/DESCR
@@ -0,0 +1,2 @@
+SOAP implementation by Cayce Ullman (c_ullman@yahoo.com) and Brian Matthews
+(blm@blmatthews.com).
diff --git a/net/py-soappy/Makefile b/net/py-soappy/Makefile
new file mode 100644
index 00000000000..7b8f48f92be
--- /dev/null
+++ b/net/py-soappy/Makefile
@@ -0,0 +1,28 @@
+# $NetBSD: Makefile,v 1.1.1.1 2002/10/01 17:21:39 drochner Exp $
+#
+
+DISTNAME= SOAPpy097
+PKGNAME= ${PYPKGPREFIX}-SOAPpy-0.9.7
+CATEGORIES= net
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pywebsvcs/}
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= packages@netbsd.org
+HOMEPAGE= http://pywebsvcs.sourceforge.net/
+COMMENT= SOAP implementation
+
+NO_BUILD= #yes
+PY_PATCHPLIST= #yes
+
+# XXX hack to get rid of RCS keywords in patch files
+post-extract:
+ ${SED} 's@\$$\(Id:.*\)\$$@\1@g' <${WRKSRC}/SOAP.py \
+ >${WRKSRC}/SOAP.py.tmp
+ ${MV} ${WRKSRC}/SOAP.py.tmp ${WRKSRC}/SOAP.py
+
+do-install:
+ ${CP} ${WRKSRC}/SOAP.py ${PREFIX}/${PYSITELIB}
+
+.include "../../textproc/pyxml/buildlink.mk"
+.include "../../lang/python/extension.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/py-soappy/PLIST b/net/py-soappy/PLIST
new file mode 100644
index 00000000000..e51789425fe
--- /dev/null
+++ b/net/py-soappy/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2002/10/01 17:21:39 drochner Exp $
+${PYSITELIB}/SOAP.py
diff --git a/net/py-soappy/buildlink.mk b/net/py-soappy/buildlink.mk
new file mode 100644
index 00000000000..c19aa55079c
--- /dev/null
+++ b/net/py-soappy/buildlink.mk
@@ -0,0 +1,6 @@
+# $NetBSD: buildlink.mk,v 1.1.1.1 2002/10/01 17:21:39 drochner Exp $
+
+.include "../../lang/python/pyversion.mk"
+
+BUILDLINK_DEPENDS.pysoappy?= ${PYPKGPREFIX}-SOAPpy-*
+DEPENDS+= ${BUILDLINK_DEPENDS.pysoappy}:../../net/py-soappy
diff --git a/net/py-soappy/buildlink2.mk b/net/py-soappy/buildlink2.mk
new file mode 100644
index 00000000000..b223e5a4795
--- /dev/null
+++ b/net/py-soappy/buildlink2.mk
@@ -0,0 +1,7 @@
+# $NetBSD: buildlink2.mk,v 1.1.1.1 2002/10/01 17:21:39 drochner Exp $
+
+.include "../../lang/python/pyversion.mk"
+
+BUILDLINK_PACKAGES+= pysoappy
+BUILDLINK_DEPENDS.pytk?= ${PYPKGPREFIX}-SOAPpy-*
+BUILDLINK_PKGSRCDIR.pytk?= ../../net/py-soappy
diff --git a/net/py-soappy/distinfo b/net/py-soappy/distinfo
new file mode 100644
index 00000000000..59ea1f7307e
--- /dev/null
+++ b/net/py-soappy/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2002/10/01 17:21:39 drochner Exp $
+
+SHA1 (SOAPpy097.tgz) = 52fa0abcd5086cd33c3b0cb480d2f8fd17869859
+Size (SOAPpy097.tgz) = 76598 bytes
+SHA1 (patch-aa) = c237cdc66fe182c47d2cea4f20404ee1163f08a0
diff --git a/net/py-soappy/patches/patch-aa b/net/py-soappy/patches/patch-aa
new file mode 100644
index 00000000000..b5f48c58b76
--- /dev/null
+++ b/net/py-soappy/patches/patch-aa
@@ -0,0 +1,62 @@
+$NetBSD: patch-aa,v 1.1.1.1 2002/10/01 17:21:39 drochner Exp $
+
+--- SOAP.py.orig Tue Oct 1 18:52:15 2002
++++ SOAP.py Tue Oct 1 18:53:25 2002
+@@ -71,6 +71,18 @@
+ # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ #
+ ################################################################################
++#
++# Additional changes:
++# 0.9.7.3 - 4/18/2002 - Mark Pilgrim (f8dy@diveintomark.org)
++# added dump_dict as alias for dump_dictionary for Python 2.2 compatibility
++# 0.9.7.2 - 4/12/2002 - Mark Pilgrim (f8dy@diveintomark.org)
++# fixed logic to unmarshal the value of "null" attributes ("true" or "1"
++# means true, others false)
++# 0.9.7.1 - 4/11/2002 - Mark Pilgrim (f8dy@diveintomark.org)
++# added "dump_str" as alias for "dump_string" for Python 2.2 compatibility
++# Between 2.1 and 2.2, type("").__name__ changed from "string" to "str"
++################################################################################
++
+ import xml.sax
+ import UserList
+ import base64
+@@ -89,9 +101,9 @@
+ try: from M2Crypto import SSL
+ except: pass
+
+-ident = 'Id: SOAP.py,v 1.1.1.1 2001/06/27 21:36:12 cullman Exp '
++ident = 'Id: SOAP.py,v 1.3 2002/04/18 19:19:45 f8dy Exp '
+
+-__version__ = "0.9.7"
++__version__ = "0.9.7.3"
+
+ # Platform hackery
+
+@@ -2097,7 +2109,9 @@
+ null = attrs[(NS.XSI3, 'nil')]
+ del attrs[(NS.XSI3, 'nil')]
+
+- null = int(null)
++ #MAP 4/12/2002 - must also support "true"
++ #null = int(null)
++ null = (str(null).lower() in ['true', '1'])
+
+ if null:
+ if len(cur) or \
+@@ -3102,6 +3116,7 @@
+ typed, ns_map, self.genroot(ns_map), id)
+
+ dump_unicode = dump_string
++ dump_str = dump_string # 4/12/2002 - MAP - for Python 2.2
+
+ def dump_None(self, obj, tag, typed = 0, ns_map = {}):
+ tag = tag or self.gentag()
+@@ -3214,6 +3229,7 @@
+ self.dump(v, k, 1, ns_map)
+
+ self.out += '</%s>\n' % tag
++ dump_dict = dump_dictionary # 4/18/2002 - MAP - for Python 2.2
+
+ def dump_instance(self, obj, tag, typed = 1, ns_map = {}):
+ if not tag: