1998-11-09 02:26:20 +01:00
|
|
|
# New ports collection makefile for: tidy
|
|
|
|
# Date created: 27 Oct 1998
|
|
|
|
# Whom: Abel Chow <achow@transoft.net>
|
|
|
|
#
|
1999-08-31 04:43:35 +02:00
|
|
|
# $FreeBSD$
|
1998-11-09 02:26:20 +01:00
|
|
|
#
|
|
|
|
|
2000-04-10 02:07:29 +02:00
|
|
|
PORTNAME= tidy
|
2003-02-19 01:43:41 +01:00
|
|
|
PORTVERSION= 030217
|
1998-11-09 02:26:20 +01:00
|
|
|
CATEGORIES= www
|
2003-02-02 00:24:54 +01:00
|
|
|
MASTER_SITES= http://tidy.sourceforge.net/src/%SUBDIR%/ \
|
|
|
|
http://tidy.sourceforge.net/docs/
|
|
|
|
MASTER_SITE_SUBDIR= . old
|
|
|
|
PKGNAMESUFFIX= -devel
|
|
|
|
DISTNAME= tidy_src
|
1999-01-06 04:34:34 +01:00
|
|
|
EXTRACT_SUFX= .tgz
|
2003-02-02 00:24:54 +01:00
|
|
|
DISTFILES= ${DISTNAME}_${PORTVERSION}${EXTRACT_SUFX}
|
1998-11-09 02:26:20 +01:00
|
|
|
|
2003-02-02 00:24:54 +01:00
|
|
|
MAINTAINER= thierry@pompo.net
|
2003-02-19 01:43:41 +01:00
|
|
|
COMMENT= Utility to clean up and pretty print HTML/XHTML/XML
|
1998-11-09 02:26:20 +01:00
|
|
|
|
2003-02-02 00:24:54 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
2000-02-16 01:08:36 +01:00
|
|
|
|
2003-02-02 00:24:54 +01:00
|
|
|
USE_GMAKE= yes
|
1998-11-09 02:26:20 +01:00
|
|
|
|
2003-02-02 00:24:54 +01:00
|
|
|
#MAN1= tidy.1
|
1998-11-09 02:26:20 +01:00
|
|
|
|
2003-02-02 00:24:54 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
2003-02-19 01:43:41 +01:00
|
|
|
DOCVER= 030216
|
2003-02-02 00:24:54 +01:00
|
|
|
DISTFILES+= tidy_docs_${DOCVER}${EXTRACT_SUFX}
|
|
|
|
DOCFILES= Overview.html faq.html grid.gif pending.html \
|
|
|
|
quickref.html release-notes.html tidy.css tidy.gif
|
|
|
|
APIEXT= css html js png
|
|
|
|
.endif
|
|
|
|
|
|
|
|
BIN2STRIP= tidy tab2space
|
|
|
|
|
2003-02-19 01:43:41 +01:00
|
|
|
post-extract:
|
|
|
|
@${CP} -p ${WRKSRC}/build/gmake/Makefile ${WRKSRC}
|
|
|
|
|
2003-02-02 00:24:54 +01:00
|
|
|
pre-install:
|
|
|
|
@if [ -f ${LOCALBASE}/bin/tidy ]; then \
|
|
|
|
${ECHO_MSG} "" ; \
|
|
|
|
${ECHO_MSG} "Conflict: please deinstall the port bin/tidy." ; \
|
|
|
|
${ECHO_MSG} "" ; \
|
|
|
|
${FALSE} ; \
|
|
|
|
fi
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
.for pgm in ${BIN2STRIP}
|
|
|
|
@${STRIP_CMD} ${PREFIX}/bin/${pgm}
|
|
|
|
.endfor
|
1998-11-09 02:26:20 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
1999-08-28 00:30:39 +02:00
|
|
|
@${ECHO_MSG} "===> Installing documentation for ${PKGNAME}"
|
2003-02-02 00:24:54 +01:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
1998-11-09 02:26:20 +01:00
|
|
|
.for docfile in ${DOCFILES}
|
2003-02-02 00:24:54 +01:00
|
|
|
@${INSTALL_MAN} ${WRKSRC}/htmldoc/${docfile} ${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
@${MKDIR} ${DOCSDIR}/api
|
|
|
|
.for ext in ${APIEXT}
|
|
|
|
@${CP} -p ${WRKSRC}/htmldoc/api/*.${ext} ${DOCSDIR}/api
|
1998-11-09 02:26:20 +01:00
|
|
|
.endfor
|
2003-02-02 00:24:54 +01:00
|
|
|
@${CHOWN} -R ${MANOWN}:${MANGRP} ${DOCSDIR}/api
|
|
|
|
@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
|
1998-11-09 02:26:20 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|