openbsd-ports/www/linkchecker/patches/patch-setup_py
2005-01-25 09:15:44 +00:00

38 lines
1.8 KiB
Plaintext

$OpenBSD: patch-setup_py,v 1.6 2005/01/25 09:15:44 xsa Exp $
--- setup.py.orig Mon Jan 24 16:02:06 2005
+++ setup.py Tue Jan 25 10:07:07 2005
@@ -85,7 +85,9 @@ class MyInstall (install, object):
val = getattr(self, attr)[cutoff:]
else:
val = getattr(self, attr)
+ val = "!!SITEPKG!!"
if attr == 'install_data':
+ val = sys.prefix
cdir = os.path.join(val, "share", "linkchecker")
data.append('config_dir = %r' % cnormpath(cdir))
data.append("%s = %r" % (attr, cnormpath(val)))
@@ -248,7 +250,7 @@ data_files = [
['share/locale/nl/LC_MESSAGES/linkchecker.mo']),
('share/linkchecker',
['config/linkcheckerrc', 'config/logging.conf', ]),
- ('share/linkchecker/examples',
+ ('share/examples/linkchecker',
['cgi/lconline/leer.html.en', 'cgi/lconline/leer.html.de',
'cgi/lconline/index.html', 'cgi/lconline/lc_cgi.html.en',
'cgi/lconline/lc_cgi.html.de', 'cgi/lconline/check.js',
@@ -256,10 +258,10 @@ data_files = [
]
if os.name == 'posix':
- data_files.append(('share/man/man1', ['doc/en/linkchecker.1']))
- data_files.append(('share/man/de/man1', ['doc/de/linkchecker.1']))
- data_files.append(('share/man/fr/man1', ['doc/fr/linkchecker.1']))
- data_files.append(('share/linkchecker/examples',
+ data_files.append(('man/man1', ['doc/en/linkchecker.1']))
+# data_files.append(('share/man/de/man1', ['doc/de/linkchecker.1']))
+# data_files.append(('share/man/fr/man1', ['doc/fr/linkchecker.1']))
+ data_files.append(('share/examples/linkchecker',
['config/linkchecker-completion', 'config/linkcheck-cron.sh']))
elif os.name == 'nt':
data_files.append(('share/linkchecker/doc',