[101919] trunk/dports/python
jmr at macports.org
jmr at macports.org
Mon Jan 21 18:46:17 PST 2013
Revision: 101919
https://trac.macports.org/changeset/101919
Author: jmr at macports.org
Date: 2013-01-21 18:46:17 -0800 (Mon, 21 Jan 2013)
Log Message:
-----------
py*-htmlgen: unify
Modified Paths:
--------------
trunk/dports/python/py-htmlgen/Portfile
Removed Paths:
-------------
trunk/dports/python/py26-htmlgen/
Modified: trunk/dports/python/py-htmlgen/Portfile
===================================================================
--- trunk/dports/python/py-htmlgen/Portfile 2013-01-22 01:39:47 UTC (rev 101918)
+++ trunk/dports/python/py-htmlgen/Portfile 2013-01-22 02:46:17 UTC (rev 101919)
@@ -1,13 +1,15 @@
# $Id$
PortSystem 1.0
-PortGroup python24 1.0
+PortGroup python 1.0
name py-htmlgen
version 2.2
revision 1
categories python textproc
+license MIT
platforms darwin
+supported_archs noarch
maintainers nomaintainer
description python class library for the generation of HTML documents
long_description HTMLgen is a class library for the generation of HTML \
@@ -28,15 +30,19 @@
distname HTMLgen
checksums md5 cd20f8b63d3215e57289ddbf56c97f48
-post-extract {
- file copy ${filespath}/setup.py ${worksrcpath}
- file delete ${worksrcpath}/installp.py ${worksrcpath}/HTMLtest.py
- reinplace "s|VERSION|${version}|g" ${worksrcpath}/setup.py
-}
+python.versions 24 26
-post-destroot {
- file delete -force ${destroot}${prefix}/share/doc/${name}
- file copy ${worksrcpath}/html ${destroot}${prefix}/share/doc/${name}
- xinstall -m 644 -W ${worksrcpath} ChangeLog README \
- ${destroot}${prefix}/share/doc/${name}
+if {$subport != $name} {
+ post-extract {
+ file copy ${filespath}/setup.py ${worksrcpath}
+ file delete ${worksrcpath}/installp.py ${worksrcpath}/HTMLtest.py
+ reinplace "s|VERSION|${version}|g" ${worksrcpath}/setup.py
+ }
+
+ post-destroot {
+ file delete -force ${destroot}${prefix}/share/doc/${subport}
+ file copy ${worksrcpath}/html ${destroot}${prefix}/share/doc/${subport}
+ xinstall -m 644 -W ${worksrcpath} ChangeLog README \
+ ${destroot}${prefix}/share/doc/${subport}
+ }
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130121/6c9665fd/attachment-0001.html>
More information about the macports-changes
mailing list