[19985] trunk/dports/python/py-pylibpcap

source_changes at macosforge.org source_changes at macosforge.org
Sun Oct 8 08:10:04 PDT 2006


Revision: 19985
          http://trac.macosforge.org/projects/macports/changeset/19985
Author:   pmq at macports.org
Date:     2006-10-08 08:10:03 -0700 (Sun, 08 Oct 2006)

Log Message:
-----------
Closes #9026. Fixes the pylibcap port, without reverting the SWIG port.

Modified Paths:
--------------
    trunk/dports/python/py-pylibpcap/Portfile

Added Paths:
-----------
    trunk/dports/python/py-pylibpcap/files/
    trunk/dports/python/py-pylibpcap/files/patch-setup.py

Property Changed:
----------------
    trunk/dports/python/py-pylibpcap/Portfile

Modified: trunk/dports/python/py-pylibpcap/Portfile
===================================================================
--- trunk/dports/python/py-pylibpcap/Portfile	2006-10-08 07:39:48 UTC (rev 19984)
+++ trunk/dports/python/py-pylibpcap/Portfile	2006-10-08 15:10:03 UTC (rev 19985)
@@ -1,27 +1,36 @@
-# $Id: Portfile,v 1.3 2005/12/06 01:59:32 matt Exp $
+# $Id$
+
 PortSystem              1.0
 PortGroup               python24 1.0
 
 name                    py-pylibpcap
 version                 0.5.1
-revision		1
-distname		pylibpcap-${version}
+revision		2
 categories              python net
-maintainers             chris.owen at consault.com
-description             A python module for the libpcap packet capture library.
+platforms		darwin
+maintainers             chris.owen at consault.com pmq at macports.org
+
+description             Python module for the libpcap packet capture library
 long_description        \
-Pylibpcap is a Python extension module that interfaces with the libpcap \
-        packet capture library.  Pylibpcap enables python scripts to capture \
-        packets on the network.
-homepage                http://pylibpcap.sourceforge.net/
+    Pylibpcap is a Python extension module that interfaces with the libpcap \
+    packet capture library.  Pylibpcap enables python scripts to capture \
+    packets on the network.
+
+homepage                http://pylibpcap.sourceforge.net
 master_sites            sourceforge:pylibpcap
-checksums		\
-	md5		85adbefd87be3a3a32bed899974fe3dc \
-	sha1		c8e85258b3b3f79d629531856cfb3242c07f5796 \
-	rmd160		f1e2309fbaf0878e6b4fb87b626686377c6c105a
 
+distname		pylibpcap-${version}
+checksums		sha1 c8e85258b3b3f79d629531856cfb3242c07f5796 \
+			rmd160 f1e2309fbaf0878e6b4fb87b626686377c6c105a
+
 depends_lib		port:libpcap port:swig
 
+patchfiles		patch-setup.py
+
+pre-build {
+    system "${prefix}/bin/python mk-constants.py"
+}
+
 post-destroot {
         xinstall -m 644 -W ${worksrcpath} COPYING PKG-INFO README \
                 ${destroot}${prefix}/share/doc/${name}


Property changes on: trunk/dports/python/py-pylibpcap/Portfile
___________________________________________________________________
Name: svn:keywords
   + Id

Added: trunk/dports/python/py-pylibpcap/files/patch-setup.py
===================================================================
--- trunk/dports/python/py-pylibpcap/files/patch-setup.py	                        (rev 0)
+++ trunk/dports/python/py-pylibpcap/files/patch-setup.py	2006-10-08 15:10:03 UTC (rev 19985)
@@ -0,0 +1,15 @@
+$NetBSD: patch-aa,v 1.1.1.1 2005/08/10 13:51:01 drochner Exp $
+
+--- setup.py.orig	2005-08-10 12:30:07.000000000 +0200
++++ setup.py
+@@ -14,8 +14,8 @@ config_defines = [ ]
+ 
+ # uncomment this line and comment out the next one if you want to build
+ # pcap.c from the SWIG interface
+-sourcefiles = ["mk-constants.py", "pcap.i"]
+-# sourcefiles = ["pcap.c"]
++#sourcefiles = ["mk-constants.py", "pcap.i"]
++sourcefiles = ["pcap.c"]
+ 
+ # if you are building against a non-installed version of libpcap,
+ # specify its directory here, otherwise set this to None

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20061008/375f01a6/attachment.html


More information about the macports-changes mailing list