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

Last change on this file since 10121 was 10121, checked in by mww, 15 years ago

upgrade to python 2.4

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