aboutsummaryrefslogtreecommitdiffstats
path: root/www/linkchecker
diff options
context:
space:
mode:
Diffstat (limited to 'www/linkchecker')
-rw-r--r--www/linkchecker/Makefile26
-rw-r--r--www/linkchecker/distinfo6
-rw-r--r--www/linkchecker/files/nls-patch-setup.py11
-rw-r--r--www/linkchecker/files/patch-setup.py10
-rw-r--r--www/linkchecker/pkg-plist16
5 files changed, 54 insertions, 15 deletions
diff --git a/www/linkchecker/Makefile b/www/linkchecker/Makefile
index f57147ab3be0..fec4f7b42d2d 100644
--- a/www/linkchecker/Makefile
+++ b/www/linkchecker/Makefile
@@ -7,8 +7,8 @@
#
PORTNAME= linkchecker
-PORTVERSION= 4.5
-CATEGORIES= www
+PORTVERSION= 4.6
+CATEGORIES= www python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -17,13 +17,27 @@ COMMENT= Check HTML documents for broken links
USE_PYTHON= 2.4
USE_PYDISTUTILS= yes
+
MAN1= linkchecker.1
+MANLANG= "" de fr
-.include <bsd.port.pre.mk>
+.if !defined(WITHOUT_NLS)
+USE_GETTEXT= yes
+PLIST_SUB+= NLS=""
+.else
+PLIST_SUB+= NLS="@comment "
+.endif
-.if ${OSVERSION} < 500000
post-patch:
- @${REINPLACE_CMD} -e 's/gnu99/gnu89/' ${WRKSRC}/setup.py
+.if !defined(WITHOUT_NLS)
+ @cd ${WRKSRC} && ${PATCH} --quiet < ${FILESDIR}/nls-patch-setup.py
+.endif
+
+.if !defined(WITHOUT_NLS)
+post-install:
+ ${CP} ${WRKSRC}/build/share/locale/de/LC_MESSAGES/linkchecker.mo ${PREFIX}/share/locale/de/LC_MESSAGES/
+ ${CP} ${WRKSRC}/build/share/locale/es/LC_MESSAGES/linkchecker.mo ${PREFIX}/share/locale/es/LC_MESSAGES/
+ ${CP} ${WRKSRC}/build/share/locale/fr/LC_MESSAGES/linkchecker.mo ${PREFIX}/share/locale/fr/LC_MESSAGES/
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/www/linkchecker/distinfo b/www/linkchecker/distinfo
index a768ee933e75..ad7817efcbbe 100644
--- a/www/linkchecker/distinfo
+++ b/www/linkchecker/distinfo
@@ -1,3 +1,3 @@
-MD5 (linkchecker-4.5.tar.gz) = 88685a632dd33d3e0dc852e87a9a1c23
-SHA256 (linkchecker-4.5.tar.gz) = 292882c5ef7fd1d053b2aaa8e139862b7cf07d7e3b8e69d6c98074a6eb7be2d3
-SIZE (linkchecker-4.5.tar.gz) = 604680
+MD5 (linkchecker-4.6.tar.gz) = 310a8fce39ef502687d4f6e0d771899d
+SHA256 (linkchecker-4.6.tar.gz) = e65df696bd1a65934ee4982fc363943b6c1a200a95e2d428c23f89d3f2a4cd87
+SIZE (linkchecker-4.6.tar.gz) = 607101
diff --git a/www/linkchecker/files/nls-patch-setup.py b/www/linkchecker/files/nls-patch-setup.py
new file mode 100644
index 000000000000..d1e089ed31b0
--- /dev/null
+++ b/www/linkchecker/files/nls-patch-setup.py
@@ -0,0 +1,11 @@
+--- setup.py Wed Dec 27 12:28:29 2006
++++ setup.py Wed Dec 27 12:28:04 2006
+@@ -500,6 +500,8 @@
+
+ if os.name == 'posix':
+ data_files.append(('man/man1', ['doc/en/linkchecker.1']))
++ data_files.append(('man/de/man1', ['doc/de/linkchecker.1']))
++ data_files.append(('man/fr/man1', ['doc/fr/linkchecker.1']))
+ data_files.append(('share/examples/linkchecker',
+ ['config/linkchecker-completion',
+ 'doc/examples/check_blacklist.sh',
diff --git a/www/linkchecker/files/patch-setup.py b/www/linkchecker/files/patch-setup.py
index 936886bec5fd..32fccaa463ab 100644
--- a/www/linkchecker/files/patch-setup.py
+++ b/www/linkchecker/files/patch-setup.py
@@ -1,5 +1,5 @@
---- setup.py.orig Fri Sep 22 12:15:34 2006
-+++ setup.py Fri Nov 3 12:18:45 2006
+--- setup.py.orig Tue Nov 21 17:49:07 2006
++++ setup.py Wed Dec 27 12:28:29 2006
@@ -471,7 +471,6 @@
# windows does not have unistd.h
define_macros.append(('YY_NO_UNISTD_H', None))
@@ -27,6 +27,6 @@
- data_files.append(('share/linkchecker/examples',
+ data_files.append(('man/man1', ['doc/en/linkchecker.1']))
+ data_files.append(('share/examples/linkchecker',
- ['config/linkchecker-completion', 'config/linkcheck-cron.sh']))
- elif win_compiling:
- data_files.append(('share/linkchecker/doc',
+ ['config/linkchecker-completion',
+ 'doc/examples/check_blacklist.sh',
+ 'doc/examples/check_for_x_errors.sh',
diff --git a/www/linkchecker/pkg-plist b/www/linkchecker/pkg-plist
index b8654ceed00b..54f2d6201ef4 100644
--- a/www/linkchecker/pkg-plist
+++ b/www/linkchecker/pkg-plist
@@ -2,6 +2,9 @@ bin/linkchecker
%%DATADIR%%/linkcheckerrc
%%DATADIR%%/logging.conf
%%EXAMPLESDIR%%/check.js
+%%EXAMPLESDIR%%/check_blacklist.sh
+%%EXAMPLESDIR%%/check_for_x_errors.sh
+%%EXAMPLESDIR%%/check_urls.sh
%%EXAMPLESDIR%%/index.html
%%EXAMPLESDIR%%/lc.cgi
%%EXAMPLESDIR%%/lc.fcgi
@@ -9,7 +12,6 @@ bin/linkchecker
%%EXAMPLESDIR%%/lc_cgi.html.en
%%EXAMPLESDIR%%/leer.html.de
%%EXAMPLESDIR%%/leer.html.en
-%%EXAMPLESDIR%%/linkcheck-cron.sh
%%EXAMPLESDIR%%/linkchecker-completion
%%PYTHON_SITELIBDIR%%/_linkchecker_configdata.py
%%PYTHON_SITELIBDIR%%/linkcheck/HtmlParser/__init__.py
@@ -337,6 +339,9 @@ bin/linkchecker
%%PYTHON_SITELIBDIR%%/linkcheck/dns/zone.py
%%PYTHON_SITELIBDIR%%/linkcheck/dns/zone.pyc
%%PYTHON_SITELIBDIR%%/linkcheck/dns/zone.pyo
+%%PYTHON_SITELIBDIR%%/linkcheck/dummy.py
+%%PYTHON_SITELIBDIR%%/linkcheck/dummy.pyc
+%%PYTHON_SITELIBDIR%%/linkcheck/dummy.pyo
%%PYTHON_SITELIBDIR%%/linkcheck/fcgi.py
%%PYTHON_SITELIBDIR%%/linkcheck/fcgi.pyc
%%PYTHON_SITELIBDIR%%/linkcheck/fcgi.pyo
@@ -442,3 +447,12 @@ bin/linkchecker
@dirrm %%PYTHON_SITELIBDIR%%/linkcheck/ftpparse
@dirrm %%PYTHON_SITELIBDIR%%/linkcheck/logger
@dirrm %%PYTHON_SITELIBDIR%%/linkcheck
+%%NLS%%share/locale/de/LC_MESSAGES/linkchecker.mo
+%%NLS%%share/locale/es/LC_MESSAGES/linkchecker.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/linkchecker.mo
+%%NLS%%@dirrmtry share/locale/fr/LC_MESSAGES
+%%NLS%%@dirrmtry share/locale/fr
+%%NLS%%@dirrmtry share/locale/es/LC_MESSAGES
+%%NLS%%@dirrmtry share/locale/es
+%%NLS%%@dirrmtry share/locale/de/LC_MESSAGES
+%%NLS%%@dirrmtry share/locale/de