1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00
freebsd-ports/www/linkchecker/Makefile
Bartek Rutkowski a5eb191aea www/linkchecker: update 9.2 -> 9.3
Approved by:	marino (mentor)
2014-07-17 11:59:02 +00:00

83 lines
2.7 KiB
Makefile

# Created by: ijliao
# $FreeBSD$
PORTNAME= linkchecker
PORTVERSION= 9.3
CATEGORIES= www python
MASTER_SITES= CHEESESHOP
DISTNAME= LinkChecker-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Check HTML documents for broken links
LICENSE= GPLv2
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dnspython>0:${PORTSDIR}/dns/py-dnspython \
${PYTHON_PKGNAMEPREFIX}requests>=2:${PORTSDIR}/www/py-requests
WRKSRC= ${WRKDIR}/${DISTNAME}
USE_PYTHON= 2
USE_PYDISTUTILS= yes
PYDISTUTILS_AUTOPLIST= yes
INSTALLS_ICONS= yes
OPTIONS_DEFINE= CLAMAV EXAMPLES GEOIP GTK2 LOGIN NLS QT4 \
SQLITE3 SYNTAX
OPTIONS_DEFAULT= SQLITE3 SYNTAX
OPTIONS_SUB= yes
CLAMAV_DESC= Clam Antivirus
CLAMAV_RUN_DEPENDS= clamscan:${PORTSDIR}/security/clamav
GEOIP_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}GeoIP>0:${PORTSDIR}/net/py-GeoIP
GTK2_USE= gnome=pygtk2
LOGIN_DESC= Login form submission
LOGIN_RUN_DEPENDS= twill:${PORTSDIR}/www/twill
NLS_USES= gettext
QT4_EXTRA_PATCHES_OFF= ${PATCHDIR}/extra-patch-noqt-setup.py
QT4_RUN_DEPENDS=\
${PYTHON_PKGNAMEPREFIX}qt4-sql>=${PYQT_VERSION}:${PORTSDIR}/databases/py-qt4-sql \
${PYTHON_PKGNAMEPREFIX}qt4-core>=${PYQT_VERSION}:${PORTSDIR}/devel/py-qt4-core \
${PYTHON_PKGNAMEPREFIX}qt4-gui>=${PYQT_VERSION}:${PORTSDIR}/x11-toolkits/py-qt4-gui \
${PYTHON_PKGNAMEPREFIX}qt4-help>=${PYQT4_VERSION}:${PORTSDIR}/devel/py-qt4-help \
${PYTHON_PKGNAMEPREFIX}qt4-qscintilla2>=${QSCI2_VERSION}:${PORTSDIR}/devel/py-qt4-qscintilla2
SQLITE3_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sqlite3>0:${PORTSDIR}/databases/py-sqlite3
SYNTAX_DESC= HTML/CSS syntax check
SYNTAX_RUN_DEPENDS=\
${PYTHON_PKGNAMEPREFIX}cssutils>=0.9.5:${PORTSDIR}/www/py-cssutils \
${PYTHON_PKGNAMEPREFIX}utidy>=0.2:${PORTSDIR}/www/py-utidy
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e \
'/^Icon/s|=.*|=linkchecker|' ${WRKSRC}/doc/*.desktop
@${REINPLACE_CMD} -e 's|share/man|man|' ${WRKSRC}/setup.py
post-build:
.if ${PORT_OPTIONS:MNLS}
.for lang in de es fr
(cd ${WRKSRC}/po && msgfmt -c -o ${lang}.mo ${lang}.po)
.endfor
.endif
post-install:
.for i in 16 32 48 64 128
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${i}x${i}/apps
(cd ${WRKSRC}/doc/html && ${INSTALL_DATA} logo${i}x${i}.png \
${STAGEDIR}${PREFIX}/share/icons/hicolor/${i}x${i}/apps/linkchecker.png)
.endfor
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
(cd ${WRKSRC}/cgi-bin/lconline && ${INSTALL_DATA} * \
${STAGEDIR}${EXAMPLESDIR})
.for i in linkchecker.apache2.conf linkchecker-completion
(cd ${WRKSRC}/config && ${INSTALL_DATA} ${i} \
${STAGEDIR}${EXAMPLESDIR})
.endfor
.for i in check_blacklist.sh check_for_x_errors.sh check_urls.sh
(cd ${WRKSRC}/doc/examples && ${INSTALL_DATA} ${i} \
${STAGEDIR}${EXAMPLESDIR})
.endfor
.include <bsd.port.mk>