[105735] trunk/dports/python

jmr at macports.org jmr at macports.org
Fri May 3 19:45:42 PDT 2013


Revision: 105735
          https://trac.macports.org/changeset/105735
Author:   jmr at macports.org
Date:     2013-05-03 19:45:42 -0700 (Fri, 03 May 2013)
Log Message:
-----------
py27-pychecker: use unified portgroup, license, noarch

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

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

Removed Paths:
-------------
    trunk/dports/python/py27-pychecker/

Modified: trunk/dports/python/py-pychecker/Portfile
===================================================================
--- trunk/dports/python/py27-pychecker/Portfile	2013-05-03 22:31:06 UTC (rev 105728)
+++ trunk/dports/python/py-pychecker/Portfile	2013-05-04 02:45:42 UTC (rev 105735)
@@ -2,12 +2,14 @@
 # $Id$
 
 PortSystem          1.0
-PortGroup           python27 1.0
+PortGroup           python 1.0
 
-name                py27-pychecker
+name                py-pychecker
 version             0.8.19
+license             BSD
 maintainers         nomaintainer
 platforms           darwin freebsd
+supported_archs     noarch
 description         python source code checker for finding bugs
 long_description    PyChecker is a tool for finding bugs in python source \
                     code. It finds problems that are typically \
@@ -24,14 +26,18 @@
 checksums           sha1    acbc469b4ecde0182e9be42dceeae5375a923ff3 \
                     rmd160  7c401f3d2025dec1438c623b161359ef9721d0bf
 
-patchfiles          patch-setup.py.diff
-post-patch {
-    reinplace "s|PYTHONLIB|${python.pkgd}|g" ${worksrcpath}/setup.py
-}
+python.versions     27
 
-post-destroot {
-    xinstall -m 644 -W ${worksrcpath} ChangeLog COPYRIGHT KNOWN_BUGS \
-        MAINTAINERS README TODO VERSION pycheckrc \
-        ${destroot}${prefix}/share/doc/${name}
-    system "chmod -R a+r ${destroot}${prefix}"
+if {$subport != $name} {
+    patchfiles          patch-setup.py.diff
+    post-patch {
+        reinplace "s|PYTHONLIB|${python.pkgd}|g" ${worksrcpath}/setup.py
+    }
+
+    post-destroot {
+        xinstall -m 644 -W ${worksrcpath} ChangeLog COPYRIGHT KNOWN_BUGS \
+            MAINTAINERS README TODO VERSION pycheckrc \
+            ${destroot}${prefix}/share/doc/${subport}
+        system "chmod -R a+r ${destroot}${prefix}"
+    }
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130503/d9dd6a10/attachment-0001.html>


More information about the macports-changes mailing list