summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorDoug White <dwhite@FreeBSD.org>2000-05-24 04:34:16 +0000
committerDoug White <dwhite@FreeBSD.org>2000-05-24 04:34:16 +0000
commitc970b381edbfc9ea49cf6ef4d65725d40d85cc01 (patch)
treefea04fb667159b485986215612c93c1c0a998f40 /devel
parentUpdate from version 2.1.2 to 2.1.3 of LinuxThreads. (diff)
Add py-kqueue, a Python module to access kqueue(2) and kevent(2), Python-style.
Notes
Notes: svn path=/head/; revision=28721
Diffstat (limited to 'devel')
-rw-r--r--devel/Makefile1
-rw-r--r--devel/py-kqueue/Makefile37
-rw-r--r--devel/py-kqueue/distinfo1
-rw-r--r--devel/py-kqueue/pkg-comment1
-rw-r--r--devel/py-kqueue/pkg-descr13
-rw-r--r--devel/py-kqueue/pkg-plist3
6 files changed, 56 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index d5ea238ced31..138fd8e658b9 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -188,6 +188,7 @@
SUBDIR += pth
SUBDIR += pth-devel
SUBDIR += py-kjbuckets
+ SUBDIR += py-kqueue
SUBDIR += py-mxDateTime
SUBDIR += py-mxStack
SUBDIR += py-mxTools
diff --git a/devel/py-kqueue/Makefile b/devel/py-kqueue/Makefile
new file mode 100644
index 000000000000..b28b668983cb
--- /dev/null
+++ b/devel/py-kqueue/Makefile
@@ -0,0 +1,37 @@
+# Ports collection Makefile for: PyKQueue
+# Date created: 05/23/2000
+# Whom: dwhite@FreeBSD.org
+#
+# $FreeBSD$
+#
+
+PORTNAME= kqueue
+PORTVERSION= 1.0
+CATEGORIES= devel python
+MASTER_SITES= http://people.freebsd.org/~dwhite/PyKQueue/
+PKGNAMEPREFIX= py-
+DISTNAME= PyKQueue-${PORTVERSION}
+
+MAINTAINER= dwhite@FreeBSD.org
+
+BUILD_DEPENDS= python:${PORTSDIR}/lang/python
+RUN_DEPENDS= python:${PORTSDIR}/lang/python
+
+# NO_WRKSUBDIR= yes
+# MAKEFILE= makefile
+
+do-configure:
+ @(cd ${WRKSRC} && \
+ make -f Makefile.pre.in boot)
+
+do-install:
+ ${MKDIR} ${PREFIX}/lib/python1.5/site-packages
+ ${INSTALL_DATA} ${WRKSRC}/kqsyscallmodule.so \
+ ${PREFIX}/lib/python1.5/site-packages/
+ ${INSTALL_DATA} ${WRKSRC}/KQueue.py \
+ ${PREFIX}/lib/python1.5/site-packages/
+# .if !defined(NOPORTDOCS)
+# ${INSTALL_DATA} ${WRKSRC}/kjbuckets.html ${PREFIX}/share/doc/
+# .endif
+
+.include <bsd.port.mk>
diff --git a/devel/py-kqueue/distinfo b/devel/py-kqueue/distinfo
new file mode 100644
index 000000000000..4776ba5fe156
--- /dev/null
+++ b/devel/py-kqueue/distinfo
@@ -0,0 +1 @@
+MD5 (PyKQueue-1.0.tar.gz) = dc4814abe180152f5df6207816f2f73e
diff --git a/devel/py-kqueue/pkg-comment b/devel/py-kqueue/pkg-comment
new file mode 100644
index 000000000000..0c89bdf13aed
--- /dev/null
+++ b/devel/py-kqueue/pkg-comment
@@ -0,0 +1 @@
+Python interface to kqueue(2) and kevent(2) system calls
diff --git a/devel/py-kqueue/pkg-descr b/devel/py-kqueue/pkg-descr
new file mode 100644
index 000000000000..8741cbc57280
--- /dev/null
+++ b/devel/py-kqueue/pkg-descr
@@ -0,0 +1,13 @@
+py-kqueue (aka PyKQueue) is a Python module that interfaces to the kqueue(2)
+and kevent(2) system calls. kqueue(2) and kevent(2) implements an
+event-driven notification system, intended as a replacement for select(2) and
+poll(2), which require lengthy preparation and bookkeeping to use. With
+kevent(2), a list of file descriptors or other object to monitor is passed
+in once, and the system returns a notification when the object triggers a
+filter, such as 'ready to read data' for file descriptors. See the
+manpages for details.
+
+This Python module provides a C module and supporting Python script to
+use these functions in a object-oriented manner.
+
+WWW: http://people.freebsd.org/~dwhite/PyKQueue/
diff --git a/devel/py-kqueue/pkg-plist b/devel/py-kqueue/pkg-plist
new file mode 100644
index 000000000000..cbfb945c1453
--- /dev/null
+++ b/devel/py-kqueue/pkg-plist
@@ -0,0 +1,3 @@
+@exec mkdir -p %D/lib/python1.5/site-packages
+lib/python1.5/site-packages/kqsyscallmodule.so
+lib/python1.5/site-packages/KQueue.py