[119081] trunk/dports/python/py-dateutil/Portfile

macsforever2000 at macports.org macsforever2000 at macports.org
Wed Apr 16 12:39:31 PDT 2014


Revision: 119081
          https://trac.macports.org/changeset/119081
Author:   macsforever2000 at macports.org
Date:     2014-04-16 12:39:30 -0700 (Wed, 16 Apr 2014)
Log Message:
-----------
py-dateutil: Fix permissions for egg-info. (#43187). Honor mode line. Make livecheck like other python ports.

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

Modified: trunk/dports/python/py-dateutil/Portfile
===================================================================
--- trunk/dports/python/py-dateutil/Portfile	2014-04-16 19:05:15 UTC (rev 119080)
+++ trunk/dports/python/py-dateutil/Portfile	2014-04-16 19:39:30 UTC (rev 119081)
@@ -7,6 +7,7 @@
 name              py-dateutil
 set my_name       python-dateutil
 version           2.2
+revision          1
 platforms         darwin
 supported_archs   noarch
 maintainers       dh openmaintainer
@@ -34,17 +35,20 @@
     test.env          PYTHONPATH=${worksrcpath}/build/lib
 
     post-destroot {
-      set docdir ${prefix}/share/doc/${subport}
-      xinstall -d ${destroot}${docdir}
-      xinstall -m 0644 -W ${worksrcpath} LICENSE README NEWS ${destroot}${docdir}
+        set docdir ${prefix}/share/doc/${subport}
+        xinstall -d ${destroot}${docdir}
+        xinstall -m 0644 -W ${worksrcpath} LICENSE README NEWS ${destroot}${docdir}
+
+        # Fix permissions problems on these files
+        xinstall -m 0644 -W ${worksrcpath}/python_dateutil.egg-info \
+            PKG-INFO SOURCES.txt dependency_links.txt not-zip-safe requires.txt top_level.txt \
+            ${destroot}${python.pkgd}/python_dateutil-${version}-py${python.branch}.egg-info
+
     }
-}
-
-if {${name} eq ${subport}} {
+    livecheck.type    none
+} else {
     livecheck.type    regex
     livecheck.regex   /${my_name}-(\\d+(?:\\.\\d+)*)
-} else {
-    livecheck.type    none
 }
 
 subport py32-dateutil {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140416/052a2fde/attachment.html>


More information about the macports-changes mailing list