[106762] trunk/dports/python

jmr at macports.org jmr at macports.org
Fri Jun 7 05:50:44 PDT 2013


Revision: 106762
          https://trac.macports.org/changeset/106762
Author:   jmr at macports.org
Date:     2013-06-07 05:50:44 -0700 (Fri, 07 Jun 2013)
Log Message:
-----------
py25-nevow: use unified portgroup, license, noarch

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

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

Removed Paths:
-------------
    trunk/dports/python/py25-nevow/

Modified: trunk/dports/python/py-nevow/Portfile
===================================================================
--- trunk/dports/python/py25-nevow/Portfile	2013-06-07 04:50:53 UTC (rev 106748)
+++ trunk/dports/python/py-nevow/Portfile	2013-06-07 12:50:44 UTC (rev 106762)
@@ -1,12 +1,14 @@
 # $Id$
 
 PortSystem 1.0
-PortGroup python25 1.0
+PortGroup python 1.0
 
-name			py25-nevow
+name			py-nevow
 version			0.9.33
 revision                0
+license			MIT
 platforms		darwin
+supported_archs	noarch
 maintainers		nomaintainer
 description		A Web Application Construction Kit
 long_description	Nevow is a next-generation web application templating \
@@ -18,20 +20,25 @@
 
 distname		Nevow-${version}
 homepage		http://divmod.org/trac/wiki/DivmodNevow
-master_sites	        http://divmod.org/trac/attachment/wiki/SoftwareReleases/${distfiles}?format=raw&dummy=
+master_sites	        http://divmod.org/trac/attachment/wiki/SoftwareReleases/${distfiles}?format=raw&dummy= \
+	            http://distfiles.macports.org/python/
 checksums		md5     328898bca9a45904d42e2962250fb4a7 \
 			sha1    862ecf171c398d79887cdd9122709bff139a4e72 \
 			rmd160  d3d953758499bf0f5af23df38ca7fdc6b1d26834
 
-depends_lib-append	port:py25-twisted
+python.versions	25
 
-post-destroot {
-	xinstall -d ${destroot}${prefix}/share/doc/${name}
-	file copy ${worksrcpath}/doc/ \
-		${destroot}${prefix}/share/doc/${name}
-	file delete ${destroot}${prefix}/share/doc/${name}/examples
-	file copy ${worksrcpath}/examples \
-		${destroot}${prefix}/share/doc/${name}/examples
-	xinstall -m 644 -W ${worksrcpath} LICENSE README \
-		${destroot}${prefix}/share/doc/${name}
+if {$subport != $name} {
+    depends_lib-append	port:py${python.version}-twisted
+
+    post-destroot {
+        xinstall -d ${destroot}${prefix}/share/doc/${subport}
+        file copy ${worksrcpath}/doc/ \
+            ${destroot}${prefix}/share/doc/${subport}
+        file delete ${destroot}${prefix}/share/doc/${subport}/examples
+        file copy ${worksrcpath}/examples \
+            ${destroot}${prefix}/share/doc/${subport}/examples
+        xinstall -m 644 -W ${worksrcpath} LICENSE README \
+            ${destroot}${prefix}/share/doc/${subport}
+    }
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130607/fd1237e9/attachment.html>


More information about the macports-changes mailing list