aboutsummaryrefslogtreecommitdiffstats
path: root/www/linkchecker/Makefile
blob: fec4f7b42d2df5c94a70c2b32b08945515bfbc67 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# ex:ts=8
# Ports collection makefile for:    linkchecker
# Date created:         Oct 17, 2003
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   linkchecker
PORTVERSION=    4.6
CATEGORIES= www python
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

MAINTAINER= clement@FreeBSD.org
COMMENT=    Check HTML documents for broken links

USE_PYTHON=     2.4
USE_PYDISTUTILS=    yes

MAN1=   linkchecker.1
MANLANG=    "" de fr

.if !defined(WITHOUT_NLS)
USE_GETTEXT=    yes
PLIST_SUB+= NLS=""
.else
PLIST_SUB+= NLS="@comment "
.endif

post-patch:
.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.mk>