From 17723d556ead6989b54ad22a561dc8936c7e9139 Mon Sep 17 00:00:00 2001 From: Marc Recht Date: Mon, 7 Apr 2003 06:13:42 +0000 Subject: [PATCH] Initial import of py-spreadmodule 1.3 This is a Python extension module for Spread, an open source group communications package. --- py-spreadmodule/DESCR | 2 ++ py-spreadmodule/Makefile | 27 +++++++++++++++++++++++++++ py-spreadmodule/PLIST | 2 ++ py-spreadmodule/TODO | 3 +++ py-spreadmodule/distinfo | 5 +++++ py-spreadmodule/patches/patch-aa | 16 ++++++++++++++++ 6 files changed, 55 insertions(+) create mode 100644 py-spreadmodule/DESCR create mode 100644 py-spreadmodule/Makefile create mode 100644 py-spreadmodule/PLIST create mode 100644 py-spreadmodule/TODO create mode 100644 py-spreadmodule/distinfo create mode 100644 py-spreadmodule/patches/patch-aa diff --git a/py-spreadmodule/DESCR b/py-spreadmodule/DESCR new file mode 100644 index 0000000000..c25bb5e9c2 --- /dev/null +++ b/py-spreadmodule/DESCR @@ -0,0 +1,2 @@ +This is a Python extension module for Spread, an open source group +communications package. diff --git a/py-spreadmodule/Makefile b/py-spreadmodule/Makefile new file mode 100644 index 0000000000..38237a2183 --- /dev/null +++ b/py-spreadmodule/Makefile @@ -0,0 +1,27 @@ +# $NetBSD: Makefile,v 1.1.1.1 2003/04/07 06:13:42 marc Exp $ +# + +DISTNAME= SpreadModule-1.3 +PKGNAME= ${PYPKGPREFIX}-spreadmodule-1.3 +CATEGORIES= net +MASTER_SITES= http://www.python.org/other/spread/ +EXTRACT_SUFX= .tgz + +MAINTAINER= marc@informatik.uni-bremen.de +HOMEPAGE= http://www.python.org/other/spread/ +COMMENT= Python bindings for the Spread messaging service + +WRKSRC= ${WRKDIR}/SpreadModule-1.3 +PYDISTUTILSPKG= YES +USE_BUILDLINK2= YES +#LDFLAGS+= -lpthread +PTHREAD_OPTS+= require + +post-patch: + ${MV} ${WRKSRC}/setup.py ${WRKSRC}/setup.py.pre + ${SED} -e "s,/usr/local,${PREFIX},g" ${WRKSRC}/setup.py.pre > ${WRKSRC}/setup.py + +.include "../../net/spread/buildlink2.mk" +.include "../../lang/python/extension.mk" +.include "../../mk/pthread.buildlink2.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/py-spreadmodule/PLIST b/py-spreadmodule/PLIST new file mode 100644 index 0000000000..4353f20407 --- /dev/null +++ b/py-spreadmodule/PLIST @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2003/04/07 06:13:42 marc Exp $ +${PYSITELIB}/spread.so diff --git a/py-spreadmodule/TODO b/py-spreadmodule/TODO new file mode 100644 index 0000000000..af51946934 --- /dev/null +++ b/py-spreadmodule/TODO @@ -0,0 +1,3 @@ +Fix threading issues. +SpreadModule needs a Python that has been built with support for +threading. diff --git a/py-spreadmodule/distinfo b/py-spreadmodule/distinfo new file mode 100644 index 0000000000..c844920200 --- /dev/null +++ b/py-spreadmodule/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2003/04/07 06:13:42 marc Exp $ + +SHA1 (SpreadModule-1.3.tgz) = fc7f72735300828ca9710e26b6cf0e4a297df683 +Size (SpreadModule-1.3.tgz) = 15804 bytes +SHA1 (patch-aa) = d847156d4f7e308c75499e4970e6067feb2fda2d diff --git a/py-spreadmodule/patches/patch-aa b/py-spreadmodule/patches/patch-aa new file mode 100644 index 0000000000..ea125f6440 --- /dev/null +++ b/py-spreadmodule/patches/patch-aa @@ -0,0 +1,16 @@ +$NetBSD: patch-aa,v 1.1.1.1 2003/04/07 06:13:42 marc Exp $ + +--- setup.py.orig 2002-04-25 21:22:07.000000000 +0200 ++++ setup.py 2003-03-14 20:27:16.000000000 +0100 +@@ -19,9 +19,9 @@ + else: + SPREAD_DIR = "/usr/local" + ext = Extension('spread', ['spreadmodule.c'], +- include_dirs = [SPREAD_DIR + "/include"], ++ include_dirs = [SPREAD_DIR + "/include/spread"], + library_dirs = [SPREAD_DIR + "/lib"], +- libraries = ['tsp'], ++ extra_objects = [SPREAD_DIR + '/lib/libtspread.a'], + ) + + setup(name = "Spread API for Python",