[125317] trunk/dports/python

jmr at macports.org jmr at macports.org
Sat Sep 13 07:21:04 PDT 2014


Revision: 125317
          https://trac.macports.org/changeset/125317
Author:   jmr at macports.org
Date:     2014-09-13 07:21:04 -0700 (Sat, 13 Sep 2014)
Log Message:
-----------
py26-pyfsevents: use unified python portgroup

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

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

Removed Paths:
-------------
    trunk/dports/python/py26-pyfsevents/

Modified: trunk/dports/python/py-pyfsevents/Portfile
===================================================================
--- trunk/dports/python/py26-pyfsevents/Portfile	2014-09-13 07:39:41 UTC (rev 125314)
+++ trunk/dports/python/py-pyfsevents/Portfile	2014-09-13 14:21:04 UTC (rev 125317)
@@ -1,8 +1,9 @@
 # $Id$
 
 PortSystem          1.0
-PortGroup           python26 1.0
-name                py26-pyfsevents
+PortGroup           python 1.0
+
+name                py-pyfsevents
 version             0.2b1
 maintainers         nomaintainer
 description         Python interface to Mac OS X's FSEvents
@@ -15,29 +16,33 @@
 
 license             MIT
 
-homepage            http://pypi.python.org/pypi/pyfsevents
-master_sites        http://pypi.python.org/packages/source/p/pyfsevents/
+homepage            https://pypi.python.org/pypi/pyfsevents
+master_sites        https://pypi.python.org/packages/source/p/pyfsevents/
 distname            pyfsevents-${version}
 
 checksums           md5     41b41d336ed402b9ad1486f441b51de4 \
                     sha1    b80645f726fd59544bc757b362ace0afd8ed26fd \
                     rmd160  a5f9486dc6ffd08e502aba7dd444c8aa7b9026dc
 
-post-destroot {
-   xinstall -m 644 -W ${worksrcpath} BUGS LICENSE README \
-      ${destroot}${prefix}/share/doc/${name}
-   xinstall -m 755 -d ${destroot}${prefix}/share/examples/${name}
-   eval xinstall -m 644 [glob ${worksrcpath}/examples/*] \
-      ${destroot}${prefix}/share/examples/${name}
+python.versions     26
+
+if {$subport ne $name} {
+    post-destroot {
+       xinstall -m 644 -W ${worksrcpath} BUGS LICENSE README \
+          ${destroot}${prefix}/share/doc/${subport}
+       xinstall -m 755 -d ${destroot}${prefix}/share/examples/${subport}
+       eval xinstall -m 644 [glob ${worksrcpath}/examples/*] \
+          ${destroot}${prefix}/share/examples/${subport}
+    }
+    livecheck.type      none
+} else {
+    livecheck.type      regex
+    livecheck.url       [lindex ${master_sites} 0]
+    livecheck.regex     pyfsevents-(\[\\w.\]+)${extract.suffix}
 }
 
 platform darwin 8 {
    pre-fetch {
-      error "${name} needs at least 10.5 to function"
+      error "${subport} needs at least 10.5 to function"
    }
 }
-
-livecheck.type      regex
-livecheck.url       [lindex ${master_sites} 0]
-livecheck.regex     pyfsevents-(\[\\w.\]+)${extract.suffix}
-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140913/a77f649e/attachment.html>


More information about the macports-changes mailing list