source: trunk/dports/python/py-pcapy/Portfile

Last change on this file was 130658, checked in by larryv@…, 3 years ago

py{24,25,26}-pcapy: Replace with py27

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1# $Id: Portfile 130658 2015-01-02 06:28:03Z ryandesign@macports.org $
2
3PortSystem          1.0
4PortGroup           python 1.0
5
6name                py-pcapy
7version             0.10.5
8categories-append   net
9license             Apache-1.1
10maintainers         nomaintainer
11
12description         python interface to libpcap
13
14long_description    Pcapy is a Python extension module that interfaces with \
15                    the libpcap packet capture library. Pcapy enables python \
16                    scripts to capture packets on the network.
17
18platforms           darwin
19
20homepage            http://oss.coresecurity.com/projects/pcapy.html
21master_sites        http://oss.coresecurity.com/repo/
22distname            pcapy-${version}
23
24checksums           md5     1dcff6af494f3d6763f457aa86aa0853 \
25                    sha1    e7e803b423f2c2e3401ee616cddfd6ab237fc8d8 \
26                    rmd160  fef424f4b912ba73e95e192355a0ad2e527492ff
27
28python.versions     27
29
30if {${name} ne ${subport}} {
31    depends_lib-append  port:libpcap
32
33    build.env       CPPFLAGS="-I${prefix}/include -L${prefix}/lib" \
34                    CFLAGS=-I${prefix}/include \
35                    LDFLAGS=-L${prefix}/lib
36
37    post-destroot {
38        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
39        eval file rename [glob ${destroot}${python.prefix}/share/doc/pcapy/*] \
40            ${destroot}${prefix}/share/doc/${subport}
41        xinstall -m 644 -W ${worksrcpath} ChangeLog PKG-INFO \
42            ${destroot}${prefix}/share/doc/${subport}
43    }
44    livecheck.type      none
45} else {
46    livecheck.type      regex
47    livecheck.regex     {pcapy-([0-9.]+)\.tar}
48}
Note: See TracBrowser for help on using the repository browser.