Modified: trunk/dports/python/py-weblib/Portfile (100768 => 100769)
--- trunk/dports/python/py-weblib/Portfile 2012-12-23 22:02:29 UTC (rev 100768)
+++ trunk/dports/python/py-weblib/Portfile 2012-12-23 22:46:22 UTC (rev 100769)
@@ -1,12 +1,14 @@
# $Id$
PortSystem 1.0
-PortGroup python24 1.0
+PortGroup python 1.0
name py-weblib
version 1.3.4
categories python www
+license GPL-2
platforms darwin freebsd
+supported_archs noarch
maintainers nomaintainer
description Python web application library
long_description Python web application library handling FORM input, \
@@ -14,19 +16,23 @@
basic HTTP functions.
homepage http://www.stroeder.com/pylib/PyWebLib
-master_sites ${homepage}/download/
+master_sites ${homepage}/download/ http://distfiles.macports.org/python
distname pyweblib-${version}
checksums md5 762492fb70db7d044e7dc2a420c4f075 \
sha1 c2839936cc272a5299a5e196bacf536d06b3d7a3 \
rmd160 4c219f7c5ecacb43324ff86ccd25f3712c685ec9
-post-destroot {
- xinstall -m 644 ${worksrcpath}/CHANGES \
- ${destroot}${prefix}/share/doc/${name}
- xinstall -m 644 -W ${worksrcpath}/htdocs/pydoc pyweblib.forms.html \
- pyweblib.helper.html pyweblib.html pyweblib.httphelper.html \
- pyweblib.session.html pyweblib.sslenv.html \
- ${destroot}${prefix}/share/doc/${name}
- xinstall -m 644 -W ${worksrcpath}/cgi-bin test-forms.py \
- test-session.py ${destroot}${prefix}/share/doc/${name}/examples
+python.versions 24
+
+if {$subport != $name} {
+ post-destroot {
+ xinstall -m 644 ${worksrcpath}/CHANGES \
+ ${destroot}${prefix}/share/doc/${subport}
+ xinstall -m 644 -W ${worksrcpath}/htdocs/pydoc pyweblib.forms.html \
+ pyweblib.helper.html pyweblib.html pyweblib.httphelper.html \
+ pyweblib.session.html pyweblib.sslenv.html \
+ ${destroot}${prefix}/share/doc/${subport}
+ xinstall -m 644 -W ${worksrcpath}/cgi-bin test-forms.py \
+ test-session.py ${destroot}${prefix}/share/doc/${subport}/examples
+ }
}