[83235] trunk/dports/python

jmr at macports.org jmr at macports.org
Sun Aug 28 23:31:35 PDT 2011


Revision: 83235
          http://trac.macports.org/changeset/83235
Author:   jmr at macports.org
Date:     2011-08-28 23:31:33 -0700 (Sun, 28 Aug 2011)
Log Message:
-----------
unify py*-py2app

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

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

Modified: trunk/dports/python/py-py2app/Portfile
===================================================================
--- trunk/dports/python/py-py2app/Portfile	2011-08-29 06:01:44 UTC (rev 83234)
+++ trunk/dports/python/py-py2app/Portfile	2011-08-29 06:31:33 UTC (rev 83235)
@@ -1,44 +1,50 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
 # $Id$
 
-PortSystem		1.0
-PortGroup		python24 1.0
+PortSystem          1.0
+PortGroup           python 1.0
 
-name			py-py2app
-version			0.6.3
-revision		1
-categories-append	devel
-license			{MIT PSF}
-maintainers		jwa openmaintainer
-description		converts python scripts into executable Mac OS X apps
+name                py-py2app
+version             0.6.3
+revision            1
+categories-append   devel
+license             {MIT PSF}
+maintainers         jmr openmaintainer
+description         converts python scripts into executable Mac OS X apps
 long_description \
     A distutils extension which converts python scripts into executable \
     Mac OS X applications, able to run without requiring an existing python \
     installation.  This is a replacement for bundlebuilder.
 
-platforms		darwin
+platforms           darwin
 
-homepage		http://wiki.python.org/moin/MacPython/py2app
-master_sites		http://cheeseshop.python.org/packages/source/p/py2app/
-distname		py2app-${version}
+homepage            http://wiki.python.org/moin/MacPython/py2app
+master_sites        http://pypi.python.org/packages/source/p/py2app/
+distname            py2app-${version}
 
-checksums           md5     49a9101ff25fb59d1ba733e329bf502e \
-                    sha1    cb7daad349cdd491d2021cb05b96be471628acf4 \
-                    rmd160  601e08e0292f2c115f55e85619fb2d979255b1aa
+checksums           md5 49a9101ff25fb59d1ba733e329bf502e \
+                    sha1 cb7daad349cdd491d2021cb05b96be471628acf4 \
+                    rmd160 601e08e0292f2c115f55e85619fb2d979255b1aa
 
-depends_lib-append	port:py-setuptools \
-    port:py-macholib \
-    port:py-bdist_mpkg
+python.versions     24 25 26 27
 
-post-destroot {
-    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name} \
-	${destroot}${prefix}/share/examples/${name}
-    xinstall -m 644 -W ${worksrcpath} LICENSE.txt README.txt \
-	${destroot}${prefix}/share/doc/${name}
-	# tar mishandles this filename, ticket #30252
-	move "${destroot}${prefix}/share/examples/${name}/PyObjC/TinyTinyEdit/dist.€" \
-	     "${destroot}${prefix}/share/examples/${name}/PyObjC/TinyTinyEdit/dist"
+if {$subport != $name} {
+    depends_lib     port:py${python.version}-macholib \
+                    port:py${python.version}-bdist_mpkg
+
+    post-destroot {
+        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport} \
+        ${destroot}${prefix}/share/examples/${subport}
+        xinstall -m 644 -W ${worksrcpath} LICENSE.txt README.txt \
+        ${destroot}${prefix}/share/doc/${subport}
+        eval file copy [glob ${worksrcpath}/examples/*] \
+        ${destroot}${prefix}/share/examples/${subport}
+        # tar mishandles this filename with "C" locale, ticket #30252
+        move "${destroot}${prefix}/share/examples/${subport}/PyObjC/TinyTinyEdit/dist.€" \
+             "${destroot}${prefix}/share/examples/${subport}/PyObjC/TinyTinyEdit/dist"
+    }
 }
 
-livecheck.type	regex
-livecheck.url	http://cheeseshop.python.org/pypi/py2app/
-livecheck.regex	py2app (0\.\[0-9\]+\.\[0-9\]+)
+livecheck.type  regex
+livecheck.url   http://pypi.python.org/pypi/py2app/
+livecheck.regex py2app (0\.\[0-9\]+\.\[0-9\]+)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110828/d5b38300/attachment.html>


More information about the macports-changes mailing list