[102149] trunk/dports/python
jmr at macports.org
jmr at macports.org
Mon Jan 28 09:05:10 PST 2013
Revision: 102149
https://trac.macports.org/changeset/102149
Author: jmr at macports.org
Date: 2013-01-28 09:05:10 -0800 (Mon, 28 Jan 2013)
Log Message:
-----------
py*-checker: unify, mark noarch
Modified Paths:
--------------
trunk/dports/python/py-checker/Portfile
trunk/dports/python/py-checker/files/patch-setup.py.diff
Removed Paths:
-------------
trunk/dports/python/py25-checker/
trunk/dports/python/py26-checker/
Modified: trunk/dports/python/py-checker/Portfile
===================================================================
--- trunk/dports/python/py-checker/Portfile 2013-01-28 16:43:09 UTC (rev 102148)
+++ trunk/dports/python/py-checker/Portfile 2013-01-28 17:05:10 UTC (rev 102149)
@@ -2,13 +2,15 @@
# $Id$
PortSystem 1.0
-PortGroup python24 1.0
+PortGroup python 1.0
name py-checker
version 0.8.18
+revision 1
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 @@
distname pychecker-${version}
checksums md5 ef156a631df46de150a364912f2e36c8
-patchfiles patch-setup.py.diff
-post-patch {
- reinplace "s|PYTHONLIB|${python.pkgd}|g" ${worksrcpath}/setup.py
-}
+python.versions 24 25 26
-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}"
+ }
}
Modified: trunk/dports/python/py-checker/files/patch-setup.py.diff
===================================================================
--- trunk/dports/python/py-checker/files/patch-setup.py.diff 2013-01-28 16:43:09 UTC (rev 102148)
+++ trunk/dports/python/py-checker/files/patch-setup.py.diff 2013-01-28 17:05:10 UTC (rev 102149)
@@ -1,11 +1,20 @@
---- setup.py 2006-02-04 11:29:46.000000000 +0900
-+++ setup.py.new 2006-05-10 22:26:36.000000000 +0900
-@@ -211,7 +211,7 @@
+--- setup.py.orig 2008-08-18 14:53:12.000000000 +1000
++++ setup.py 2009-07-11 02:02:09.000000000 +1000
+@@ -216,7 +216,7 @@
@raise Exception: If script cannot be created on disk.
"""
try:
- checker_path = os.path.join(package_path, "checker.py")
+ checker_path = os.path.join("PYTHONLIB/pychecker", "checker.py")
if sys.platform == "win32":
- script_str = "%s %s %%1 %%2 %%3 %%4 %%5 %%6 %%7 %%8 %%9\n" % (sys.executable, checker_path)
+ script_str = "%s %s %%*\n" % (sys.executable, checker_path)
else:
+@@ -258,7 +258,7 @@
+ 'author' : "Neal Norwitz",
+ 'author_email' : "nnorwitz at gmail.com",
+ 'url' : "http://pychecker.sourceforge.net/",
+- 'packages' : [ 'pychecker', ],
++ 'packages' : [ 'pychecker', 'pychecker2', ],
+ 'scripts' : [ "pychecker" ], # note: will be replaced by customized action
+ 'data_files' : [ ( "pychecker", DATA_FILES, ) ],
+ 'long_description' : LONG_DESCRIPTION,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130128/6ce79029/attachment.html>
More information about the macports-changes
mailing list