summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2010-11-02 19:20:16 +0000
committerdrochner <drochner@pkgsrc.org>2010-11-02 19:20:16 +0000
commit9ce29dff929b6c7679d2cc9bbc0fa6ac7c27ca11 (patch)
treed1c6873e125508bdd21015839ca9a34609ffed5e /devel
parentbdf961e91a0bcce2b88837dd6e2f07f383620bf1 (diff)
downloadpkgsrc-9ce29dff929b6c7679d2cc9bbc0fa6ac7c27ca11.tar.gz
add py-multiprocessing-2.6.2.1, a threading package which was
integrated into the main Python distribution in 2.6
Diffstat (limited to 'devel')
-rw-r--r--devel/py-multiprocessing/DESCR7
-rw-r--r--devel/py-multiprocessing/Makefile22
-rw-r--r--devel/py-multiprocessing/PLIST78
-rw-r--r--devel/py-multiprocessing/distinfo6
-rw-r--r--devel/py-multiprocessing/patches/patch-aa19
5 files changed, 132 insertions, 0 deletions
diff --git a/devel/py-multiprocessing/DESCR b/devel/py-multiprocessing/DESCR
new file mode 100644
index 00000000000..8e8fffc1d98
--- /dev/null
+++ b/devel/py-multiprocessing/DESCR
@@ -0,0 +1,7 @@
+`multiprocessing` is a back port of the Python 2.6/3.0
+`multiprocessing <http://docs.python.org/library/multiprocessing.html>`
+package. The multiprocessing package itself is a renamed and updated version
+of R Oudkerk's `pyprocessing <http://pypi.python.org/pypi/processing/>`
+package.
+This standalone variant is intended to be compatible with Python 2.4 and 2.5,
+and will draw it's fixes/improvements from python-trunk.
diff --git a/devel/py-multiprocessing/Makefile b/devel/py-multiprocessing/Makefile
new file mode 100644
index 00000000000..02856a607d0
--- /dev/null
+++ b/devel/py-multiprocessing/Makefile
@@ -0,0 +1,22 @@
+# $NetBSD: Makefile,v 1.1.1.1 2010/11/02 19:20:16 drochner Exp $
+#
+
+DISTNAME= multiprocessing-2.6.2.1
+PKGNAME= ${PYPKGPREFIX}-multiprocessing-2.6.2.1
+CATEGORIES= devel
+MASTER_SITES= http://pypi.python.org/packages/source/m/multiprocessing/
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://pypi.python.org/pypi/multiprocessing/
+COMMENT= Python threading package
+#LICENSE= # TODO: (see mk/license.mk)
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+PYDISTUTILSPKG= yes
+
+do-test:
+ ${PYTHONBIN} -c "from multiprocessing import tests;tests.test_main()"
+
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/py-multiprocessing/PLIST b/devel/py-multiprocessing/PLIST
new file mode 100644
index 00000000000..696f70c65a6
--- /dev/null
+++ b/devel/py-multiprocessing/PLIST
@@ -0,0 +1,78 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2010/11/02 19:20:16 drochner Exp $
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/multiprocessing/__init__.py
+${PYSITELIB}/multiprocessing/__init__.pyc
+${PYSITELIB}/multiprocessing/__init__.pyo
+${PYSITELIB}/multiprocessing/_multiprocessing.so
+${PYSITELIB}/multiprocessing/connection.py
+${PYSITELIB}/multiprocessing/connection.pyc
+${PYSITELIB}/multiprocessing/connection.pyo
+${PYSITELIB}/multiprocessing/dummy/__init__.py
+${PYSITELIB}/multiprocessing/dummy/__init__.pyc
+${PYSITELIB}/multiprocessing/dummy/__init__.pyo
+${PYSITELIB}/multiprocessing/dummy/connection.py
+${PYSITELIB}/multiprocessing/dummy/connection.pyc
+${PYSITELIB}/multiprocessing/dummy/connection.pyo
+${PYSITELIB}/multiprocessing/examples/__init__.py
+${PYSITELIB}/multiprocessing/examples/__init__.pyc
+${PYSITELIB}/multiprocessing/examples/__init__.pyo
+${PYSITELIB}/multiprocessing/examples/mp_benchmarks.py
+${PYSITELIB}/multiprocessing/examples/mp_benchmarks.pyc
+${PYSITELIB}/multiprocessing/examples/mp_benchmarks.pyo
+${PYSITELIB}/multiprocessing/examples/mp_distributing.py
+${PYSITELIB}/multiprocessing/examples/mp_distributing.pyc
+${PYSITELIB}/multiprocessing/examples/mp_distributing.pyo
+${PYSITELIB}/multiprocessing/examples/mp_newtype.py
+${PYSITELIB}/multiprocessing/examples/mp_newtype.pyc
+${PYSITELIB}/multiprocessing/examples/mp_newtype.pyo
+${PYSITELIB}/multiprocessing/examples/mp_pool.py
+${PYSITELIB}/multiprocessing/examples/mp_pool.pyc
+${PYSITELIB}/multiprocessing/examples/mp_pool.pyo
+${PYSITELIB}/multiprocessing/examples/mp_synchronize.py
+${PYSITELIB}/multiprocessing/examples/mp_synchronize.pyc
+${PYSITELIB}/multiprocessing/examples/mp_synchronize.pyo
+${PYSITELIB}/multiprocessing/examples/mp_webserver.py
+${PYSITELIB}/multiprocessing/examples/mp_webserver.pyc
+${PYSITELIB}/multiprocessing/examples/mp_webserver.pyo
+${PYSITELIB}/multiprocessing/examples/mp_workers.py
+${PYSITELIB}/multiprocessing/examples/mp_workers.pyc
+${PYSITELIB}/multiprocessing/examples/mp_workers.pyo
+${PYSITELIB}/multiprocessing/forking.py
+${PYSITELIB}/multiprocessing/forking.pyc
+${PYSITELIB}/multiprocessing/forking.pyo
+${PYSITELIB}/multiprocessing/heap.py
+${PYSITELIB}/multiprocessing/heap.pyc
+${PYSITELIB}/multiprocessing/heap.pyo
+${PYSITELIB}/multiprocessing/managers.py
+${PYSITELIB}/multiprocessing/managers.pyc
+${PYSITELIB}/multiprocessing/managers.pyo
+${PYSITELIB}/multiprocessing/patch.py
+${PYSITELIB}/multiprocessing/patch.pyc
+${PYSITELIB}/multiprocessing/patch.pyo
+${PYSITELIB}/multiprocessing/pool.py
+${PYSITELIB}/multiprocessing/pool.pyc
+${PYSITELIB}/multiprocessing/pool.pyo
+${PYSITELIB}/multiprocessing/process.py
+${PYSITELIB}/multiprocessing/process.pyc
+${PYSITELIB}/multiprocessing/process.pyo
+${PYSITELIB}/multiprocessing/queues.py
+${PYSITELIB}/multiprocessing/queues.pyc
+${PYSITELIB}/multiprocessing/queues.pyo
+${PYSITELIB}/multiprocessing/reduction.py
+${PYSITELIB}/multiprocessing/reduction.pyc
+${PYSITELIB}/multiprocessing/reduction.pyo
+${PYSITELIB}/multiprocessing/sharedctypes.py
+${PYSITELIB}/multiprocessing/sharedctypes.pyc
+${PYSITELIB}/multiprocessing/sharedctypes.pyo
+${PYSITELIB}/multiprocessing/synchronize.py
+${PYSITELIB}/multiprocessing/synchronize.pyc
+${PYSITELIB}/multiprocessing/synchronize.pyo
+${PYSITELIB}/multiprocessing/tests.py
+${PYSITELIB}/multiprocessing/tests.pyc
+${PYSITELIB}/multiprocessing/tests.pyo
+${PYSITELIB}/multiprocessing/util.py
+${PYSITELIB}/multiprocessing/util.pyc
+${PYSITELIB}/multiprocessing/util.pyo
diff --git a/devel/py-multiprocessing/distinfo b/devel/py-multiprocessing/distinfo
new file mode 100644
index 00000000000..4633f2e99f8
--- /dev/null
+++ b/devel/py-multiprocessing/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2010/11/02 19:20:16 drochner Exp $
+
+SHA1 (multiprocessing-2.6.2.1.tar.gz) = a8f78d818a3960e003c1f9f1ec6eaac704d3e6ac
+RMD160 (multiprocessing-2.6.2.1.tar.gz) = 87412f3054ae4e5c17a9aba73970d96fd192aec5
+Size (multiprocessing-2.6.2.1.tar.gz) = 108003 bytes
+SHA1 (patch-aa) = 9baaf59c02777e19d7c74f540e474f174a6b222f
diff --git a/devel/py-multiprocessing/patches/patch-aa b/devel/py-multiprocessing/patches/patch-aa
new file mode 100644
index 00000000000..3a8fbd90007
--- /dev/null
+++ b/devel/py-multiprocessing/patches/patch-aa
@@ -0,0 +1,19 @@
+$NetBSD: patch-aa,v 1.1.1.1 2010/11/02 19:20:16 drochner Exp $
+
+--- setup.py.orig 2009-07-30 12:36:48.000000000 +0000
++++ setup.py
+@@ -65,6 +65,14 @@ elif sys.platform.startswith('openbsd'):
+ HAVE_FD_TRANSFER=1,
+ )
+ libraries = []
++elif sys.platform.startswith('netbsd'):
++ macros = dict(
++ HAVE_SEM_OPEN=1,
++ HAVE_SEM_TIMEDWAIT=0,
++ HAVE_FD_TRANSFER=1,
++ HAVE_BROKEN_SEM_GETVALUE=1
++ )
++ libraries = ['rt']
+ else: # Linux and other unices
+ macros = dict(
+ HAVE_SEM_OPEN=1,