[82445] trunk/dports/python

blb at macports.org blb at macports.org
Sat Aug 13 16:30:39 PDT 2011


Revision: 82445
          http://trac.macports.org/changeset/82445
Author:   blb at macports.org
Date:     2011-08-13 16:30:39 -0700 (Sat, 13 Aug 2011)
Log Message:
-----------
py2*-asn1: unify

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

Added Paths:
-----------
    trunk/dports/python/py-asn1/

Removed Paths:
-------------
    trunk/dports/python/py25-asn1/
    trunk/dports/python/py26-asn1/
    trunk/dports/python/py27-asn1/

Modified: trunk/dports/python/py-asn1/Portfile
===================================================================
--- trunk/dports/python/py26-asn1/Portfile	2011-08-13 22:10:32 UTC (rev 82436)
+++ trunk/dports/python/py-asn1/Portfile	2011-08-13 23:30:39 UTC (rev 82445)
@@ -1,9 +1,9 @@
 # $Id$
 
 PortSystem          1.0
-PortGroup           python26 1.0
+PortGroup           python 1.0
 
-name                py26-asn1
+name                py-asn1
 epoch               1
 version             0.0.13
 categories-append   devel crypto
@@ -24,14 +24,19 @@
 checksums           sha1    047a253592a865faea56590955ca5c2988cf9f40 \
                     rmd160  3f34c796a2d1149f53c8604bc62caac0c3ab9beb
 
-post-destroot {
-   xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
-   xinstall -m 644 -W ${worksrcpath} CHANGES LICENSE README THANKS TODO \
-      ${destroot}${prefix}/share/doc/${name}
-   xinstall -m 644 -W ${worksrcpath}/doc pyasn1-tutorial.html \
-      ${destroot}${prefix}/share/doc/${name}
+if {${name} != ${subport}} {
+   post-destroot {
+      xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
+      xinstall -m 644 -W ${worksrcpath} CHANGES LICENSE README THANKS TODO \
+         ${destroot}${prefix}/share/doc/${subport}
+      xinstall -m 644 -W ${worksrcpath}/doc pyasn1-tutorial.html \
+         ${destroot}${prefix}/share/doc/${subport}
+   }
 }
 
+python.default_version   27
+python.versions          25 26 27
+
 livecheck.type      regex
 livecheck.url       http://sourceforge.net/project/showfiles.php?group_id=93839&package_id=148920
 livecheck.regex     pyasn1-(\[-.0-9a-zA-Z_\]+)\\.tar\\.gz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110813/f12ec3bd/attachment.html>


More information about the macports-changes mailing list