[28857] trunk/dports/python

source_changes at macosforge.org source_changes at macosforge.org
Mon Sep 10 02:21:09 PDT 2007


Revision: 28857
          http://trac.macosforge.org/projects/macports/changeset/28857
Author:   afb at macports.org
Date:     2007-09-10 02:21:08 -0700 (Mon, 10 Sep 2007)

Log Message:
-----------
new port: but same as py-checker

Added Paths:
-----------
    trunk/dports/python/py25-checker/
    trunk/dports/python/py25-checker/Portfile
    trunk/dports/python/py25-checker/files/
    trunk/dports/python/py25-checker/files/patch-setup.py.diff

Added: trunk/dports/python/py25-checker/Portfile
===================================================================
--- trunk/dports/python/py25-checker/Portfile	                        (rev 0)
+++ trunk/dports/python/py25-checker/Portfile	2007-09-10 09:21:08 UTC (rev 28857)
@@ -0,0 +1,36 @@
+# $Id$
+
+PortSystem 1.0
+PortGroup python25 1.0
+
+name			py25-checker
+version			0.8.17
+categories		python
+maintainers		nomaintainer at macports.org
+platforms		darwin freebsd
+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 \
+				caught by a compiler for less dynamic \
+				languages, like C and C++.  It is similar to \
+				lint.  Because of the dynamic nature of \
+				python, some warnings may be incorrect.  \
+				However, spurious warnings should be fairly \
+				infrequent.
+
+homepage		http://pychecker.sourceforge.net/
+master_sites		sourceforge:pychecker
+distname		pychecker-${version}
+checksums		md5 9d2a2d62b368ce503830f830a89bd230
+
+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/${name}
+	system "chmod -R a+r ${destroot}${prefix}"
+}


Property changes on: trunk/dports/python/py25-checker/Portfile
___________________________________________________________________
Name: svn:keywords
   + Id
Name: svn:eol-style
   + native

Added: trunk/dports/python/py25-checker/files/patch-setup.py.diff
===================================================================
--- trunk/dports/python/py25-checker/files/patch-setup.py.diff	                        (rev 0)
+++ trunk/dports/python/py25-checker/files/patch-setup.py.diff	2007-09-10 09:21:08 UTC (rev 28857)
@@ -0,0 +1,11 @@
+--- 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 @@
+    @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)
+       else:

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070910/d426725a/attachment.html


More information about the macports-changes mailing list