Update of /cvsroot/fink/dists/10.3/unstable/main/finkinfo/libs
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14169

Added Files:
        pykqueue-py23.info pykqueue-py23.patch 
Log Message:
New package from trackers (Submissions #940552).


--- NEW FILE: pykqueue-py23.patch ---
diff -Naur PyKQueue-1.3/Makefile.pre.in PyKQueue-1.3.new/Makefile.pre.in
--- PyKQueue-1.3/Makefile.pre.in        2004-04-23 00:23:17.000000000 -0700
+++ PyKQueue-1.3.new/Makefile.pre.in    2004-04-23 14:09:10.000000000 -0700
@@ -118,7 +118,7 @@
 OPT=           @OPT@
 LDFLAGS=       @LDFLAGS@
 LDLAST=                @LDLAST@
-DEFS=          @DEFS@
+DEFS=
 LIBS=          @LIBS@
 LIBM=          @LIBM@
 LIBC=          @LIBC@
diff -Naur PyKQueue-1.3/kqsyscallmodule.c PyKQueue-1.3.new/kqsyscallmodule.c
--- PyKQueue-1.3/kqsyscallmodule.c      2001-01-28 18:59:50.000000000 -0800
+++ PyKQueue-1.3.new/kqsyscallmodule.c  2004-04-23 00:47:02.000000000 -0700
@@ -137,7 +137,7 @@
 }
 
 statichere PyTypeObject KQEvent_Type = {
-  PyObject_HEAD_INIT(NULL)
+  PyObject_HEAD_INIT(&PyType_Type)
   0,                             // ob_size
   "KQEvent",                     // tp_name
   sizeof(KQEventObject),         // tp_basicsize
@@ -291,13 +291,15 @@
 
   /* Build timespec for timeout */
   totimespec.tv_sec = timeout / 1000;
-  totimespec.tv_nsec = (timeout % 1000) * 100000;
+  totimespec.tv_nsec = (timeout % 1000) * 1000000;
 
   // printf("timespec: sec=%d nsec=%d\n", totimespec.tv_sec, totimespec.tv_nsec);
 
   /* Make the call */
 
+  Py_BEGIN_ALLOW_THREADS
   gotNumEvents = kevent (self->fd, changelist, haveNumEvents, triggered, 
wantNumEvents, &totimespec);
+  Py_END_ALLOW_THREADS
 
   /* Don't need the input event list anymore, so get rid of it */
   free (changelist);
@@ -361,7 +363,7 @@
 statichere PyTypeObject KQueue_Type = {
        /* The ob_type field must be initialized in the module init function
         * to be portable to Windows without using C++. */
-       PyObject_HEAD_INIT(NULL)
+       PyObject_HEAD_INIT(&PyType_Type)
        0,                      /*ob_size*/
        "KQueue",                       /*tp_name*/
        sizeof(KQueueObject),   /*tp_basicsize*/

--- NEW FILE: pykqueue-py23.info ---
Package: pykqueue-py23
Version: 1.3
Revision: 1
Description: Python wrapper for the kqueue library
Type: python
License: BSD
Maintainer: rayg <[EMAIL PROTECTED]>

Depends: adns, python23 | python23-nox

Source: 
ftp://ftp.freebsd.org/pub/FreeBSD/ports/local-distfiles/dwhite/PyKQueue-%v.tar.gz
Source-MD5: f50c3ae4b254ae933149938f8ed62bb5

Patch: %n.patch

CompileScript: <<
 make -f Makefile.pre.in boot PYTHON=%p/bin/python2.3 
 make
<<
  
InstallScript: <<
 head -24 KQueue.py | tail +2 | sed 's/^# *//' > LICENSE
 install -d -m 755 %i/lib/python2.3/site-packages
 install -m 644 kqsyscallmodule.so %i/lib/python2.3/site-packages
 install -m 644 KQueue.py %i/lib/python2.3/site-packages
<<
  
DocFiles: LICENSE README

Homepage: http://people.freebsd.org/~dwhite/PyKQueue/
DescPackaging: <<
 Patched for Twisted: 
 http://twistedmatrix.com/documents/current/api/twisted.internet.kqreactor.html
<<



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Fink-commits mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-commits

Reply via email to