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

Last change on this file was 129909, checked in by jmr@…, 3 years ago

py*-libdnet: unify, remove python24 and python25 versions (#46274, maintainer timeout)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
1# $Id: Portfile 129909 2014-12-23 00:20:20Z ryandesign@macports.org $
2
3PortSystem              1.0
4
5name                    py-libdnet
6version                 1.12
7categories              python net
8license                 BSD
9maintainers             nzbox.com:msavory consault.com:chris.owen
10platforms               darwin
11
12description             A python module for the libdnet low-level networking library.
13long_description        \
14        Libdnet provides a simplified, portable interface to several low-level \
15        networking routines, including: network address manipulation, kernel \
16        arp(4) cache and route(4) table lookup and manipulation, network \
17        firewalling (IP filter, ipfw, ipchains, pf, ...), network interface \
18        lookup and manipulation, raw IP packet and Ethernet frame transmission.
19
20homepage                http://code.google.com/p/libdnet/
21master_sites            googlecode
22extract.suffix          .tgz
23distname                libdnet-${version}
24dist_subdir             libdnet
25
26checksums               md5     9253ef6de1b5e28e9c9a62b882e44cc9 \
27                        sha1    71302be302e84fc19b559e811951b5d600d976f8 \
28                        rmd160  4b849f07c3513522fda65af067928b7e6d504aab
29
30subport py27-libdnet {
31    set python.bin      ${prefix}/bin/python2.7
32    set python.prefix  ${frameworks_dir}/Python.framework/Versions/2.7
33    depends_lib-append  port:python27
34}
35subport py26-libdnet {
36    set python.bin      ${prefix}/bin/python2.6
37    set python.prefix  ${frameworks_dir}/Python.framework/Versions/2.6
38    depends_lib-append  port:python26
39}
40
41if {$subport ne $name} {
42    depends_lib-append          port:libdnet
43
44    # libdnet is not universal
45    universal_variant       no
46
47    pre-destroot {
48        worksrcdir      ${worksrcdir}/python
49    }
50    destroot.cmd                ${python.bin} setup.py --no-user-cfg install
51    destroot.destdir    --prefix=${python.prefix} --root=${destroot}
52    livecheck.type  none
53} else {
54    livecheck.regex "libdnet-(\\d+(?:\\.\\d+)*)${extract.suffix}"
55
56    # py-libdnet was previously for python 2.4
57    revision            1
58    replaced_by         py27-libdnet
59    depends_lib         port:py27-libdnet
60    supported_archs     noarch
61    use_configure       no
62    build               {}
63    destroot {
64        xinstall -d ${destroot}${prefix}/share/doc/${name}
65        system "echo This port is a stub. > ${destroot}${prefix}/share/doc/${name}/README"
66    }
67}
Note: See TracBrowser for help on using the repository browser.