[101250] users/g5pw/dports/python

g5pw at macports.org g5pw at macports.org
Mon Jan 7 02:47:53 PST 2013


Revision: 101250
          https://trac.macports.org/changeset/101250
Author:   g5pw at macports.org
Date:     2013-01-07 02:47:53 -0800 (Mon, 07 Jan 2013)
Log Message:
-----------
python/py-pyobjc{,-core}:
  rename py-pyobjc to py-pyobjc-core, unify both ports
  update to 2.4

Modified Paths:
--------------
    users/g5pw/dports/python/py-pyobjc/Portfile

Added Paths:
-----------
    users/g5pw/dports/python/py-pyobjc-core/
    users/g5pw/dports/python/py-pyobjc-core/Portfile

Removed Paths:
-------------
    users/g5pw/dports/python/py-pyobjc-core/Portfile

Modified: users/g5pw/dports/python/py-pyobjc/Portfile
===================================================================
--- users/g5pw/dports/python/py-pyobjc/Portfile	2013-01-07 07:06:23 UTC (rev 101249)
+++ users/g5pw/dports/python/py-pyobjc/Portfile	2013-01-07 10:47:53 UTC (rev 101250)
@@ -2,16 +2,19 @@
 # $Id$
 
 PortSystem 1.0
-PortGroup python24 1.0
+PortGroup python 1.0
 
 name                py-pyobjc
+replaced_by         py-pyobjc-core
 version             1.4
+revision            1
+python.versions     25 26 27 32
 categories          python devel
 license             MIT
 maintainers         nomaintainer
 platforms           darwin
 description         bidirectional bridge between python and Objective C
-long_description	The PyObjC project aims to provide a bridge between \
+long_description    The PyObjC project aims to provide a bridge between \
                     the Python and Objective-C programming languages. The \
                     bridge is intended to be fully bidirectional, allowing \
                     the Python programmer to take full advantage of the \
@@ -20,22 +23,11 @@
                     Python based functionality.
 
 homepage            http://pyobjc.sourceforge.net/
-master_sites        http://pyobjc.sourceforge.net/software/
-distname            pyobjc-${version}
-checksums           sha1 6f83b13b78e19f390709eaedf3004c81d983dc5d
+distfiles
 
-if {${os.major} > 8} {
-    pre-fetch {
-        return -code error "PyObjC 1.4 is for Mac OS X 10.4 and lower. On 10.5, use py-pyobjc2 instead."
-    }
+pre-configure {
+    ui_error "${name} has been renamed to ${replaced_by}. Please install ${replaced_by} instead."
+    return -code error "obsolete port"
 }
 
-post-destroot {
-    xinstall -m 644 -W ${worksrcpath} HISTORIC.txt Install.html Install.txt \
-            License.txt NEWS.html NEWS.txt README.txt ReadMe.html \
-            ${destroot}${prefix}/share/doc/${name}
-    file copy ${worksrcpath}/Doc ${destroot}${prefix}/share/doc/${name}/html
-    file delete ${destroot}${prefix}/share/doc/${name}/examples
-    file copy ${worksrcpath}/Examples \
-            ${destroot}${prefix}/share/doc/${name}/examples
-}
+livecheck.type      none

Deleted: users/g5pw/dports/python/py-pyobjc-core/Portfile
===================================================================
--- users/g5pw/dports/python/py-pyobjc/Portfile	2013-01-02 12:58:11 UTC (rev 100970)
+++ users/g5pw/dports/python/py-pyobjc-core/Portfile	2013-01-07 10:47:53 UTC (rev 101250)
@@ -1,40 +0,0 @@
-# $Id$
-
-PortSystem 1.0
-PortGroup python24 1.0
-
-name			py-pyobjc
-version			1.4
-categories		python devel
-license         MIT
-maintainers		nomaintainer
-platforms		darwin
-description		bidirectional bridge between python and Objective C
-long_description	The PyObjC project aims to provide a bridge between \
-				the Python and Objective-C programming languages. The \
-				bridge is intended to be fully bidirectional, allowing \
-				the Python programmer to take full advantage of the \
-				power provided by various Objective-C based toolkits \
-				and the Objective-C programmer transparent access to \
-				Python based functionality.
-
-homepage		http://pyobjc.sourceforge.net/
-master_sites	http://pyobjc.sourceforge.net/software/
-distname		pyobjc-${version}
-checksums		sha1 6f83b13b78e19f390709eaedf3004c81d983dc5d
-
-if {${os.major} > 8} {
-    pre-fetch {
-        return -code error "PyObjC 1.4 is for Mac OS X 10.4 and lower. On 10.5, use py-pyobjc2 instead."
-    }
-}
-
-post-destroot {
-	xinstall -m 644 -W ${worksrcpath} HISTORIC.txt Install.html Install.txt \
-		License.txt NEWS.html NEWS.txt README.txt ReadMe.html \
-		${destroot}${prefix}/share/doc/${name}
-	file copy ${worksrcpath}/Doc ${destroot}${prefix}/share/doc/${name}/html
-	file delete ${destroot}${prefix}/share/doc/${name}/examples
-	file copy ${worksrcpath}/Examples \
-		${destroot}${prefix}/share/doc/${name}/examples
-}

Copied: users/g5pw/dports/python/py-pyobjc-core/Portfile (from rev 100971, users/g5pw/dports/python/py-pyobjc/Portfile)
===================================================================
--- users/g5pw/dports/python/py-pyobjc-core/Portfile	                        (rev 0)
+++ users/g5pw/dports/python/py-pyobjc-core/Portfile	2013-01-07 10:47:53 UTC (rev 101250)
@@ -0,0 +1,50 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=portfile:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+PortGroup python 1.0
+
+set my_name         pyobjc-core
+name                py-${my_name}
+version             2.4
+python.versions     26 27 32 33
+categories          python devel
+license             MIT
+maintainers         nomaintainer
+platforms           darwin
+description         bidirectional bridge between python and Objective C
+long_description    The PyObjC project aims to provide a bridge between \
+                    the Python and Objective-C programming languages. The \
+                    bridge is intended to be fully bidirectional, allowing \
+                    the Python programmer to take full advantage of the \
+                    power provided by various Objective-C based toolkits \
+                    and the Objective-C programmer transparent access to \
+                    Python based functionality.
+
+homepage            http://pypi.python.org/pypi/${my_name}
+master_sites        http://pypi.python.org/packages/source/p/${my_name}/
+distname            ${my_name}-${version}
+
+checksums           rmd160  9ec46a504e272128aeadff93c9dce8c1b26f73df \
+                    sha256  7f9fc1b481a6f91ad668631b69e3c9e0f3cbf2474eb2d67aea8d1082c54a9a91
+
+if {${name} != ${subport}} {
+    depends_lib-append	port:py${python.version}-distribute \
+                        port:py${python.version}-py2app \
+                        port:libxml2
+
+    post-destroot {
+        xinstall -d -m 775 ${destroot}${prefix}/share/doc/${subport}
+        # Don't copy Install.txt
+        xinstall -W ${worksrcpath} -m 644 HISTORIC.txt License.txt NEWS.txt README.txt \
+                ${destroot}${prefix}/share/doc/${subport}
+        copy ${worksrcpath}/Doc ${destroot}${prefix}/share/doc/${subport}/html
+        delete ${destroot}${prefix}/share/doc/${subport}/examples
+        copy ${worksrcpath}/Examples \
+                ${destroot}${prefix}/share/doc/${subport}/examples
+    }
+}
+
+livecheck.type  regex
+livecheck.url   http://pypi.python.org/pypi/${my_name}/
+livecheck.regex {${my_name} ([0-9.]+)}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130107/321e5f2d/attachment.html>


More information about the macports-changes mailing list