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

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

py24-netdevicelib: Replace with py27

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.3 KB
Line 
1# $Id: Portfile 130620 2015-01-02 04:49:35Z ryandesign@macports.org $
2
3PortSystem 1.0
4PortGroup python 1.0
5
6name                    py-netdevicelib
7version                 0.1
8revision                1
9categories-append       net
10license                 LGPL-2.1
11platforms               darwin freebsd
12supported_archs noarch
13maintainers             nomaintainer
14description             python module for interacting with network devices like routers
15long_description        netdevicelib is a Python library for interacting  with \
16                                network devices, such as routers, switches, and  \
17                                firewalls. It is similar in concept (but more \
18                                ambitious in scope) to the  Net-Telnet-Cisco module \
19                                for Perl.
20
21homepage                http://netdevicelib.sourceforge.net/
22master_sites    sourceforge:netdevicelib
23distname                netdevicelib-${version}
24checksums               md5 5dfb04dc595f25b5ce808b1acdec720d
25
26python.versions 27
27
28if {${name} ne ${subport}} {
29    worksrcdir          netdevicelib/src/netdevicelib
30
31    patch       {
32        file copy ${filespath}/setup.py ${worksrcpath}
33        reinplace "s|VERSION|${version}|g" ${worksrcpath}/setup.py
34    }
35
36    post-destroot       {
37        xinstall -m 644 -W ${workpath}/netdevicelib CHANGES.txt COPYING.txt \
38            CREDITS.txt INSTALL.txt README.txt \
39            ${destroot}${prefix}/share/doc/${subport}
40        xinstall -m 644 -W ${worksrcpath}/examples getConfig.py version.py \
41            ${destroot}${prefix}/share/doc/${subport}/examples
42    }
43}
Note: See TracBrowser for help on using the repository browser.