openbsd-ports/www/linkchecker/patches/patch-setup_py
gonzalo dfe73fd2b0 Update for Linkchecker for 7.9 with some changes:
* checking: Catch any errors initializing the MIME database.
* checking: Fix writing temporary files.
* checking: Properly handle URLs with user/password information.

And others.

Delete --no-compile to build pyc and add devel/desktop-file-utils

Tested on i386.

Ok Amit Kulkarni (maintainer) aja@
2012-07-05 11:37:51 +00:00

49 lines
2.0 KiB
Plaintext

--- setup.py.orig Sun Jun 10 17:17:44 2012
+++ setup.py Sun Jul 1 19:54:30 2012
@@ -314,6 +314,7 @@ class MyInstallLib (install_lib, object):
else:
val = getattr(cmd_obj, attr)
if attr == 'install_data':
+ val = sys.prefix
cdir = os.path.join(val, "share", "linkchecker")
data.append('config_dir = %r' % cnormpath(cdir))
elif attr == 'install_lib':
@@ -609,11 +610,11 @@ data_files = [
]
if os.name == 'posix':
- data_files.append(('share/man/man1', ['doc/en/linkchecker.1', 'doc/en/linkchecker-gui.1']))
- data_files.append(('share/man/man5', ['doc/en/linkcheckerrc.5']))
- data_files.append(('share/man/de/man1', ['doc/de/linkchecker.1', 'doc/de/linkchecker-gui.1']))
- data_files.append(('share/man/de/man5', ['doc/de/linkcheckerrc.5']))
- data_files.append(('share/linkchecker/examples',
+ data_files.append(('man/man1', ['doc/en/linkchecker.1', 'doc/en/linkchecker-gui.1']))
+ data_files.append(('man/man5', ['doc/en/linkcheckerrc.5']))
+# data_files.append(('share/man/de/man1', ['doc/de/linkchecker.1', 'doc/de/linkchecker-gui.1']))
+# data_files.append(('share/man/de/man5', ['doc/de/linkcheckerrc.5']))
+ data_files.append(('share/examples/linkchecker',
['config/linkchecker-completion',
'doc/examples/check_blacklist.sh',
'doc/examples/check_for_x_errors.sh',
@@ -841,9 +842,6 @@ o a command line, GUI and web interface
'py2app': MyPy2app,
'register': MyRegister,
},
- package_dir = {
- 'dns': 'third_party/dnspython/dns',
- },
packages = [
'linkcheck',
'linkcheck.bookmarks',
@@ -856,10 +854,6 @@ o a command line, GUI and web interface
'linkcheck.HtmlParser',
'linkcheck.logger',
'linkcheck.network',
- 'dns',
- 'dns.rdtypes',
- 'dns.rdtypes.ANY',
- 'dns.rdtypes.IN',
],
ext_modules = [
Extension('linkcheck.HtmlParser.htmlsax',