You've already forked macports-ports
mirror of
https://github.com/encounter/macports-ports.git
synced 2026-07-10 12:19:27 -07:00
41 lines
1.4 KiB
Tcl
41 lines
1.4 KiB
Tcl
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
|
|
|
|
PortSystem 1.0
|
|
PortGroup python 1.0
|
|
|
|
name py-pypcap
|
|
version 1.1
|
|
categories-append net
|
|
license BSD
|
|
maintainers gmail.com:andrew.reusch openmaintainer
|
|
description python extension module for libpcap
|
|
long_description A simplified object-oriented Python extension module for libpcap
|
|
platforms darwin
|
|
|
|
homepage https://code.google.com/p/pypcap/
|
|
master_sites googlecode:pypcap
|
|
distname pypcap-${version}
|
|
|
|
checksums md5 034c3cbbfa81aa19e8f685b767c65764 \
|
|
sha1 966f62deca16d5086e2ef6694b0c795f273da15c \
|
|
rmd160 119dcc393d42678e6fa8f0b0f8b82536ab1efb13
|
|
|
|
python.versions 27
|
|
|
|
if {$subport ne $name} {
|
|
patchfiles patch-setup.py.diff patch-pcap.pyx
|
|
|
|
pre-configure {
|
|
system -W ${worksrcpath} "${python.prefix}/bin/pyrexc pcap.pyx"
|
|
}
|
|
|
|
use_configure yes
|
|
configure.cmd ${python.bin} setup.py
|
|
configure.args config
|
|
configure.pre_args
|
|
configure.post_args --with-pcap="${prefix}"
|
|
|
|
depends_build port:py${python.version}-pyrex
|
|
depends_lib-append port:libpcap
|
|
}
|