oops, make this actually work as expected; problem initially found
by saad@; ok/input alek@. bump PKGNAME;
This commit is contained in:
parent
aeca8f4bb7
commit
e97f3c9165
@ -1,10 +1,11 @@
|
||||
# $OpenBSD: Makefile,v 1.18 2005/01/12 23:56:27 xsa Exp $
|
||||
# $OpenBSD: Makefile,v 1.19 2005/01/23 22:27:49 xsa Exp $
|
||||
|
||||
SHARED_ONLY= Yes
|
||||
|
||||
COMMENT= "checks HTML documents for broken links"
|
||||
|
||||
DISTNAME= linkchecker-2.1
|
||||
PKGNAME= ${DISTNAME}p0
|
||||
CATEGORIES= www
|
||||
|
||||
HOMEPAGE= http://linkchecker.sourceforge.net/
|
||||
@ -27,4 +28,7 @@ BUILD_DEPENDS= :py-dns-*:net/py-dns
|
||||
|
||||
NO_REGRESS= Yes
|
||||
|
||||
pre-build:
|
||||
@perl -pi -e "s,!!SITEPKG!!,${MODPY_SITEPKG},g" ${WRKSRC}/setup.py
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,7 +1,23 @@
|
||||
$OpenBSD: patch-setup_py,v 1.4 2005/01/12 23:56:27 xsa Exp $
|
||||
$OpenBSD: patch-setup_py,v 1.5 2005/01/23 22:27:49 xsa Exp $
|
||||
--- setup.py.orig Tue Jan 11 13:04:34 2005
|
||||
+++ setup.py Wed Jan 12 15:45:50 2005
|
||||
@@ -242,7 +242,7 @@ data_files = [
|
||||
+++ setup.py Sat Jan 22 20:25:23 2005
|
||||
@@ -98,6 +98,7 @@ class MyInstall (install, object):
|
||||
val = getattr(self, attr)[cutoff:]
|
||||
else:
|
||||
val = getattr(self, attr)
|
||||
+ val = "!!SITEPKG!!"
|
||||
if win_compiling and d in win_path_scheme:
|
||||
# look for placeholders to replace
|
||||
oldpath, newpath = win_path_scheme[d]
|
||||
@@ -105,6 +106,7 @@ class MyInstall (install, object):
|
||||
if oldpath in val:
|
||||
val = val.replace(oldpath, newpath)
|
||||
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)))
|
||||
@@ -242,7 +244,7 @@ data_files = [
|
||||
['share/locale/nl/LC_MESSAGES/linkchecker.mo']),
|
||||
('share/linkchecker',
|
||||
['config/linkcheckerrc', 'config/logging.conf', ]),
|
||||
@ -10,7 +26,7 @@ $OpenBSD: patch-setup_py,v 1.4 2005/01/12 23:56:27 xsa Exp $
|
||||
['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',
|
||||
@@ -250,10 +250,10 @@ data_files = [
|
||||
@@ -250,10 +252,10 @@ data_files = [
|
||||
]
|
||||
|
||||
if os.name == 'posix':
|
||||
|
Loading…
Reference in New Issue
Block a user