[101639] trunk/dports/python/py-netdevicelib/Portfile
jmr at macports.org
jmr at macports.org
Tue Jan 15 15:58:00 PST 2013
Revision: 101639
https://trac.macports.org/changeset/101639
Author: jmr at macports.org
Date: 2013-01-15 15:58:00 -0800 (Tue, 15 Jan 2013)
Log Message:
-----------
py-netdevicelib: use unified portgroup, license, noarch
Modified Paths:
--------------
trunk/dports/python/py-netdevicelib/Portfile
Modified: trunk/dports/python/py-netdevicelib/Portfile
===================================================================
--- trunk/dports/python/py-netdevicelib/Portfile 2013-01-15 23:51:24 UTC (rev 101638)
+++ trunk/dports/python/py-netdevicelib/Portfile 2013-01-15 23:58:00 UTC (rev 101639)
@@ -1,13 +1,15 @@
# $Id$
PortSystem 1.0
-PortGroup python24 1.0
+PortGroup python 1.0
name py-netdevicelib
version 0.1
revision 1
categories python net
+license LGPL-2.1
platforms darwin freebsd
+supported_archs noarch
maintainers nomaintainer
description python module for interacting with network devices like routers
long_description netdevicelib is a Python library for interacting with \
@@ -21,17 +23,21 @@
distname netdevicelib-${version}
checksums md5 5dfb04dc595f25b5ce808b1acdec720d
-worksrcdir netdevicelib/src/netdevicelib
+python.versions 24
-patch {
- file copy ${filespath}/setup.py ${worksrcpath}
- reinplace "s|VERSION|${version}|g" ${worksrcpath}/setup.py
-}
+if {$subport != $name} {
+ worksrcdir netdevicelib/src/netdevicelib
-post-destroot {
- xinstall -m 644 -W ${workpath}/netdevicelib CHANGES.txt COPYING.txt \
- CREDITS.txt INSTALL.txt README.txt \
- ${destroot}${prefix}/share/doc/${name}
- xinstall -m 644 -W ${worksrcpath}/examples getConfig.py version.py \
- ${destroot}${prefix}/share/doc/${name}/examples
+ patch {
+ file copy ${filespath}/setup.py ${worksrcpath}
+ reinplace "s|VERSION|${version}|g" ${worksrcpath}/setup.py
+ }
+
+ post-destroot {
+ xinstall -m 644 -W ${workpath}/netdevicelib CHANGES.txt COPYING.txt \
+ CREDITS.txt INSTALL.txt README.txt \
+ ${destroot}${prefix}/share/doc/${subport}
+ xinstall -m 644 -W ${worksrcpath}/examples getConfig.py version.py \
+ ${destroot}${prefix}/share/doc/${subport}/examples
+ }
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130115/2551b05a/attachment.html>
More information about the macports-changes
mailing list