[100818] trunk/dports/python/py-tlslite/Portfile

jmr at macports.org jmr at macports.org
Thu Dec 27 04:16:43 PST 2012


Revision: 100818
          https://trac.macports.org/changeset/100818
Author:   jmr at macports.org
Date:     2012-12-27 04:16:43 -0800 (Thu, 27 Dec 2012)
Log Message:
-----------
py-tlslite: use unified portgroup, license, noarch

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

Modified: trunk/dports/python/py-tlslite/Portfile
===================================================================
--- trunk/dports/python/py-tlslite/Portfile	2012-12-27 12:02:22 UTC (rev 100817)
+++ trunk/dports/python/py-tlslite/Portfile	2012-12-27 12:16:43 UTC (rev 100818)
@@ -1,11 +1,13 @@
 # $Id$
 
 PortSystem			1.0
-PortGroup			python24 1.0
+PortGroup			python 1.0
+
 name				py-tlslite
 version				0.3.0
 revision			1
 categories-append	crypto security
+license				public-domain
 maintainers			nomaintainer
 description			Python library for TLSv1 and SSLv3 operations
 long_description \
@@ -16,19 +18,24 @@
 	crypto operations.
 
 platforms			darwin
+supported_archs		noarch
 
 homepage			http://trevp.net/tlslite/
-master_sites		${homepage}
+#master_sites		${homepage}
+master_sites		http://distfiles.macports.org/python/
 
 distname			tlslite-${version}
 checksums			md5 2d5f7efafa5d04598b21f1889e981207
 
-post-destroot {
-	file mkdir ${destroot}${prefix}/share/doc/${name}
-	xinstall -m 644 ${worksrcpath}/readme.txt \
-		${destroot}${prefix}/share/doc/${name}
-	foreach f {tls.py tlsdb.py} {
-		reinplace "s|#! python|#!${python.bin}|g" ${destroot}${prefix}/bin/${f}
-	}
+python.versions		24
+
+if {$subport != $name} {
+    post-destroot {
+        file mkdir ${destroot}${prefix}/share/doc/${subport}
+        xinstall -m 644 ${worksrcpath}/readme.txt \
+            ${destroot}${prefix}/share/doc/${subport}
+        foreach f {tls.py tlsdb.py} {
+            reinplace "s|#! python|#!${python.bin}|g" ${destroot}${prefix}/bin/${f}
+        }
+    }
 }
-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121227/157984c4/attachment.html>


More information about the macports-changes mailing list