[151685] trunk/dports/www/linkchecker
khindenburg at macports.org
khindenburg at macports.org
Fri Aug 19 19:31:58 PDT 2016
Revision: 151685
https://trac.macports.org/changeset/151685
Author: khindenburg at macports.org
Date: 2016-08-19 19:31:58 -0700 (Fri, 19 Aug 2016)
Log Message:
-----------
linkchecker: add patch to fix error #52052
Modified Paths:
--------------
trunk/dports/www/linkchecker/Portfile
Added Paths:
-----------
trunk/dports/www/linkchecker/files/
trunk/dports/www/linkchecker/files/patch-version.diff
Modified: trunk/dports/www/linkchecker/Portfile
===================================================================
--- trunk/dports/www/linkchecker/Portfile 2016-08-20 02:21:37 UTC (rev 151684)
+++ trunk/dports/www/linkchecker/Portfile 2016-08-20 02:31:58 UTC (rev 151685)
@@ -7,6 +7,7 @@
name linkchecker
version 9.3
+revision 1
categories www python
maintainers khindenburg openmaintainer
platforms darwin freebsd
@@ -45,6 +46,8 @@
depends_lib-append path:share/py27-sip/PyQt4:py27-pyqt4
depends_lib-append port:py27-requests
+patchfiles patch-version.diff
+
pre-build {
system "cd ${worksrcpath} && make -C doc/html"
}
Added: trunk/dports/www/linkchecker/files/patch-version.diff
===================================================================
--- trunk/dports/www/linkchecker/files/patch-version.diff (rev 0)
+++ trunk/dports/www/linkchecker/files/patch-version.diff 2016-08-20 02:31:58 UTC (rev 151685)
@@ -0,0 +1,17 @@
+--- linkcheck/__init__.py 2014-07-16 01:34:58.000000000 -0400
++++ linkcheck/__init__.py 2016-08-19 22:24:48.000000000 -0400
+@@ -24,10 +24,11 @@
+ # Needs Python >= 2.7.2 which fixed http://bugs.python.org/issue11467
+ if not (hasattr(sys, 'version_info') or
+ sys.version_info < (2, 7, 2, 'final', 0)):
+- raise SystemExit("This program requires Python 2.7.2 or later.")
++ import platform
++ version = platform.python_version()
++ raise SystemExit("This program requires Python 2.7.2 or later instead of %s." % version)
++
+ import requests
+-if requests.__version__ <= '2.2.0':
+- raise SystemExit("This program requires Python requests 2.2.0 or later.")
+
+ import os
+ # add the custom linkcheck_dns directory to sys.path
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160819/6ded02ba/attachment.html>
More information about the macports-changes
mailing list