Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Jun 2001 01:05:56 -0700 (PDT)
From:      perky@python.or.kr
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/27955: Update & New port : net/py-xmlrpc and net/py-fastxmlrpc
Message-ID:  <200106080805.f5885u230950@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         27955
>Category:       ports
>Synopsis:       Update & New port : net/py-xmlrpc and net/py-fastxmlrpc
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 08 01:10:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Chang, Hye-Shik
>Release:        FreeBSD 4.3
>Organization:
Yonsei University
>Environment:
FreeBSD perky.dnip.net 4.3-STABLE FreeBSD 4.3-STABLE #0: Tue May 15 18:19:32 KST 2001     root@perky.linuxkorea.co.kr:/usr/src/sys/compile/PERKY  i386
>Description:
related unclosed PRs :
   ports/26447  New Port: net/py-xmlrpc    / mine
   ports/27737  New port: net/py-xmlrpclib  / Johann Visagie's

current net/py-xmlrpc is xmlrpc fast implementation of sourceforge project
but NOT widely used (but it is really very fast, and active project activities :)
PythonWare's xmlrpclib is more general, widely used one and also
it is depended by many packages.

I think it's rather to move that ports. like this:
   net/py-xmlrpc         ->    net/py-fastxmlrpc
   PythonWare's         ->    net/py-xmlrpc

fortunately, current py-xmlrpc's version is smaller than PythonWare's one.
therefore, I think it is possible to update net/py-xmlrpc -> PythonWare's
one and import newly net/py-fastxmlrpc.

and SourceForge's py-xmlrpc's version is updated.
0.8.2 -> 0.8.6
PythonWare's was slightly cleaned up (from previous PR/26447).

>How-To-Repeat:

>Fix:
Patch for net/py-xmlrpc to PythonWare's py-xmlrpc 0.9.8

diff -ruN net/py-xmlrpc/Makefile local/py-xmlrpc/Makefile
--- net/py-xmlrpc/Makefile	Thu May 24 21:37:22 2001
+++ local/py-xmlrpc/Makefile	Fri Jun  8 16:11:34 2001
@@ -1,32 +1,44 @@
 # New ports collection makefile for:	py-xmlrpc
-# Date created:				22 April 2001
+# Date created:				8 April 2001
 # Whom:					Hye-Shik Chang <perky@python.or.kr>
 #
-# $FreeBSD: ports/net/py-xmlrpc/Makefile,v 1.1 2001/05/24 12:37:22 ijliao Exp $
+# $FreeBSD$
 #

 PORTNAME=	xmlrpc
-PORTVERSION=	0.8.2
+PORTVERSION=	0.9.8
 CATEGORIES=	net python
-MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
-MASTER_SITE_SUBDIR= ${PKGNAMEPREFIX}${PORTNAME}
+MASTER_SITES=	http://www.pythonware.com/downloads/
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
-DISTNAME=	${PKGNAMEPREFIX}${PORTNAME}-${PORTVERSION}
+DISTNAME=	${PORTNAME}-${PORTVERSION}-${PORTRELDATE}
 
 MAINTAINER=	perky@python.or.kr
 
-BUILD_DEPENDS=	${PYDISTUTILS}
-
-WRKSRC=		${WRKDIR}/${PORTNAME}
-PLIST_SUB+=	PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S/^${LOCALBASE}\///g}
-
+PORTRELDATE=	990621
 USE_PYTHON=	yes
-SETUP_CMD=	cd ${WRKSRC} && ${PYTHON_CMD} setup.py
+USE_ZIP=	yes
+EXTRACT_BEFORE_ARGS= -qa
+NO_WRKSUBDIR=	yes
+
+PLIST_SUB+=	PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S/^${LOCALBASE}\///g} \
+		SHARE_SUBDIR=${SHARE_SUBDIR}
+SHARE_SUBDIR=	${PKGNAMEPREFIX}${PORTNAME}
+
+DOC_FILES=	README
+LIB_FILES=	xmlrpclib.py xmlrpclib.pyc
+EXAMPLE_FILES=	xmlrpcserver.py xmlrpc_handler.py
 
 do-build:
-	${SETUP_CMD} build
+	${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}
 
 do-install:
-	${SETUP_CMD} install
+.if !defined(NOPORTDOCS)
+	${MKDIR} ${PREFIX}/share/doc/${SHARE_SUBDIR}
+	cd ${WRKSRC} && ${INSTALL_DATA} ${DOC_FILES} ${PREFIX}/share/doc/${SHARE_SUBDIR}
+	${MKDIR} ${PREFIX}/share/examples/${SHARE_SUBDIR}
+	cd ${WRKSRC} && ${INSTALL_DATA} ${EXAMPLE_FILES} ${PREFIX}/share/examples/${SHARE_SUBDIR}
+.endif
+	${MKDIR} ${PYTHON_SITELIBDIR}
+	cd ${WRKSRC} && ${INSTALL_DATA} ${LIB_FILES} ${PYTHON_SITELIBDIR}
 
 .include <bsd.port.mk>
diff -ruN net/py-xmlrpc/distinfo local/py-xmlrpc/distinfo
--- net/py-xmlrpc/distinfo	Thu May 24 21:37:22 2001
+++ local/py-xmlrpc/distinfo	Fri Jun  8 15:53:24 2001
@@ -1 +1 @@
-MD5 (py-xmlrpc-0.8.2.tar.gz) = bd484cd20b7b7a418222a39b39bb4c39
+MD5 (xmlrpc-0.9.8-990621.zip) = 1bf145c9ef6e430fbdcb1cb26f382c59
diff -ruN net/py-xmlrpc/files/patch-setup.py local/py-xmlrpc/files/patch-setup.py
--- net/py-xmlrpc/files/patch-setup.py	Thu May 24 21:37:22 2001
+++ local/py-xmlrpc/files/patch-setup.py	Thu Jan  1 09:00:00 1970
@@ -1,11 +0,0 @@
---- setup.py.orig	Sun Apr 22 23:37:47 2001
-+++ setup.py	Sun Apr 22 23:37:55 2001
-@@ -4,7 +4,7 @@
- 
- import sys
- 
--if sys.platform[:5] == 'linux':
-+if sys.platform[:7] == 'freebsd':
- 	MACROS	= {'define' : []}
- 	LIBS	= []
- else:
diff -ruN net/py-xmlrpc/pkg-comment local/py-xmlrpc/pkg-comment
--- net/py-xmlrpc/pkg-comment	Thu May 24 21:37:22 2001
+++ local/py-xmlrpc/pkg-comment	Fri Jun  8 16:13:32 2001
@@ -1 +1 @@
-A fast implementation of the xmlrpc spec for Python
+A general and widely used Python interface to XML-RPC
diff -ruN net/py-xmlrpc/pkg-descr local/py-xmlrpc/pkg-descr
--- net/py-xmlrpc/pkg-descr	Thu May 24 21:37:22 2001
+++ local/py-xmlrpc/pkg-descr	Fri Jun  8 16:13:43 2001
@@ -1,9 +1,9 @@
-A very fast implementation of the xmlrpc spec 
-for Python (written in C). It supports both blocking 
-and non-blocking clients and servers on Windows and 
-POSIX platforms. Version 0.8.1 is 100% compliant 
-with the www.xmlrpc.com validator.
+xmlrpclib module is an implementation of the XML-RPC protocol.
+This implementation is tightly integrated with Python, 
+which makes it very easy to call remote methods.
+The marshalling and parsing classes provided by this module
+can also be used in XML-RPC server implementations.
 
-WWW: http://sourceforge.net/projects/py-xmlrpc/
+WWW: http://www.pythonware.com/products/xmlrpc/index.htm
 
-- Hye Shik Chang, a.k.a. "Perky"
+- Hye-Shik Chang, a.k.a. "Perky"
diff -ruN net/py-xmlrpc/pkg-plist local/py-xmlrpc/pkg-plist
--- net/py-xmlrpc/pkg-plist	Thu May 24 21:37:22 2001
+++ local/py-xmlrpc/pkg-plist	Fri Jun  8 16:11:44 2001
@@ -1,3 +1,7 @@
-%%PYTHON_SITELIBDIR%%/_xmlrpc.so
-%%PYTHON_SITELIBDIR%%/xmlrpc.py
-%%PYTHON_SITELIBDIR%%/xmlrpc.pyc
+%%PYTHON_SITELIBDIR%%/xmlrpclib.py
+%%PYTHON_SITELIBDIR%%/xmlrpclib.pyc
+%%PORTDOCS%%share/doc/%%SHARE_SUBDIR%%/README
+%%PORTDOCS%%@dirrm share/doc/%%SHARE_SUBDIR%%
+%%PORTDOCS%%share/examples/%%SHARE_SUBDIR%%/xmlrpcserver.py
+%%PORTDOCS%%share/examples/%%SHARE_SUBDIR%%/xmlrpc_handler.py
+%%PORTDOCS%%@dirrm share/examples/%%SHARE_SUBDIR%%


New port shar for py-fastxmlrpc-0.8.6 (originally py-xmlrpc 0.8.2)

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	py-fastxmlrpc/
#	py-fastxmlrpc/Makefile
#	py-fastxmlrpc/distinfo
#	py-fastxmlrpc/pkg-comment
#	py-fastxmlrpc/pkg-descr
#	py-fastxmlrpc/pkg-plist
#
echo c - py-fastxmlrpc/
mkdir -p py-fastxmlrpc/ > /dev/null 2>&1
echo x - py-fastxmlrpc/Makefile
sed 's/^X//' >py-fastxmlrpc/Makefile << 'END-of-py-fastxmlrpc/Makefile'
X# New ports collection makefile for:	py-xmlrpc
X# Date created:				22 April 2001
X# Whom:					Hye-Shik Chang <perky@python.or.kr>
X#
X# $FreeBSD: ports/net/py-xmlrpc/Makefile,v 1.1 2001/05/24 12:37:22 ijliao Exp $
X#
X
XPORTNAME=	fastxmlrpc
XPORTVERSION=	0.8.6
XCATEGORIES=	net python
XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR= ${PKGNAMEPREFIX}${PORTNAME}
XPKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
XDISTNAME=	${PKGNAMEPREFIX}${PORTNAME:S/fast//}-${PORTVERSION}
X
XMAINTAINER=	perky@python.or.kr
X
XBUILD_DEPENDS=	${PYDISTUTILS}
XUSE_PYTHON=	yes
X
XPLIST_SUB+=	PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S/^${LOCALBASE}\///g} \
X		SHARE_SUBDIR=${SHARE_SUBDIR}
XSHARE_SUBDIR=   ${PKGNAMEPREFIX}${PORTNAME}
XSETUP_CMD=	cd ${WRKSRC} && ${PYTHON_CMD} setup.py
X
Xdo-build:
X	${SETUP_CMD} build
X
Xdo-install:
X	${SETUP_CMD} install
X.if !defined(NOPORTDOCS)
X	${MKDIR} ${PREFIX}/share/examples/${SHARE_SUBDIR}
X	cd ${WRKSRC} && ${INSTALL_DATA} doc/example/* ${PREFIX}/share/examples/${SHARE_SUBDIR}
X.endif
X
X.include <bsd.port.mk>
END-of-py-fastxmlrpc/Makefile
echo x - py-fastxmlrpc/distinfo
sed 's/^X//' >py-fastxmlrpc/distinfo << 'END-of-py-fastxmlrpc/distinfo'
XMD5 (py-xmlrpc-0.8.6.tar.gz) = b27630de8034a4b6fe4fc9fb4a5b742f
END-of-py-fastxmlrpc/distinfo
echo x - py-fastxmlrpc/pkg-comment
sed 's/^X//' >py-fastxmlrpc/pkg-comment << 'END-of-py-fastxmlrpc/pkg-comment'
XA fast implementation of the xmlrpc spec for Python
END-of-py-fastxmlrpc/pkg-comment
echo x - py-fastxmlrpc/pkg-descr
sed 's/^X//' >py-fastxmlrpc/pkg-descr << 'END-of-py-fastxmlrpc/pkg-descr'
XA very fast implementation of the xmlrpc spec 
Xfor Python (written in C). It supports both blocking 
Xand non-blocking clients and servers on Windows and 
XPOSIX platforms. Version 0.8.1 is 100% compliant 
Xwith the www.xmlrpc.com validator.
X
XWWW: http://sourceforge.net/projects/py-xmlrpc/
X
X- Hye Shik Chang, a.k.a. "Perky"
END-of-py-fastxmlrpc/pkg-descr
echo x - py-fastxmlrpc/pkg-plist
sed 's/^X//' >py-fastxmlrpc/pkg-plist << 'END-of-py-fastxmlrpc/pkg-plist'
X%%PYTHON_SITELIBDIR%%/_xmlrpc.so
X%%PYTHON_SITELIBDIR%%/xmlrpc.py
X%%PYTHON_SITELIBDIR%%/xmlrpc.pyc
X%%PORTDOCS%%share/examples/%%SHARE_SUBDIR%%/README
X%%PORTDOCS%%share/examples/%%SHARE_SUBDIR%%/baseClient.py
X%%PORTDOCS%%share/examples/%%SHARE_SUBDIR%%/baseControl.py
X%%PORTDOCS%%share/examples/%%SHARE_SUBDIR%%/baseServer.py
X%%PORTDOCS%%share/examples/%%SHARE_SUBDIR%%/exControl.py
X%%PORTDOCS%%share/examples/%%SHARE_SUBDIR%%/exclient.py
X%%PORTDOCS%%share/examples/%%SHARE_SUBDIR%%/exserver.py
X%%PORTDOCS%%share/examples/%%SHARE_SUBDIR%%/killserver.py
X%%PORTDOCS%%@dirrm share/examples/%%SHARE_SUBDIR%%
END-of-py-fastxmlrpc/pkg-plist
exit


>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200106080805.f5885u230950>