[101896] trunk/dports/python

jmr at macports.org jmr at macports.org
Sun Jan 20 22:40:45 PST 2013


Revision: 101896
          https://trac.macports.org/changeset/101896
Author:   jmr at macports.org
Date:     2013-01-20 22:40:45 -0800 (Sun, 20 Jan 2013)
Log Message:
-----------
py*-htmltemplate: unify

Modified Paths:
--------------
    trunk/dports/python/py-htmltemplate/Portfile

Removed Paths:
-------------
    trunk/dports/python/py25-htmltemplate/
    trunk/dports/python/py26-htmltemplate/

Modified: trunk/dports/python/py-htmltemplate/Portfile
===================================================================
--- trunk/dports/python/py-htmltemplate/Portfile	2013-01-21 06:33:03 UTC (rev 101895)
+++ trunk/dports/python/py-htmltemplate/Portfile	2013-01-21 06:40:45 UTC (rev 101896)
@@ -1,13 +1,14 @@
 # $Id$
 
 PortSystem 1.0
-PortGroup python24 1.0
+PortGroup python 1.0
 
 name			py-htmltemplate
 version			1.5.0
 categories		python textproc
 license			MIT
 platforms		darwin
+supported_archs	noarch
 maintainers		nomaintainer
 description		HTML template engine for python
 long_description	HTMLTemplate converts HTML/XHTML templates into simple \
@@ -21,10 +22,14 @@
 				sha1    e538e19074df19a171ff873e115e01d69ed32464 \
 				rmd160  27647bdf7e2d3511169d83afc3ee31d950536ccb
 
-post-destroot {
-	eval xinstall -m 644 [glob ${worksrcpath}/doc/*] \
-		${destroot}${prefix}/share/doc/${name}
-	xinstall -m 755 -d ${destroot}${prefix}/share/examples/${name}
-	eval xinstall -m 644 [glob ${worksrcpath}/sample/*] \
-		${destroot}${prefix}/share/examples/${name}
+python.versions	24 25 26
+
+if {$subport != $name} {
+    post-destroot {
+        eval xinstall -m 644 [glob ${worksrcpath}/doc/*] \
+            ${destroot}${prefix}/share/doc/${subport}
+        xinstall -m 755 -d ${destroot}${prefix}/share/examples/${subport}
+        eval xinstall -m 644 [glob ${worksrcpath}/sample/*] \
+            ${destroot}${prefix}/share/examples/${subport}
+    }
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130120/dbbe4bec/attachment.html>


More information about the macports-changes mailing list