aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/xslint/Makefile
blob: 134b3ef32b8c12fbd3c128ba6a37b9f9c0411c86 (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
# New ports collection makefile for:    xslint
# Date created:         11 August 2001
# Whom:             Alex Kapranoff <kapr@crosswinds.net>
#
# $FreeBSD$
#

PORTNAME=   xslint
PORTVERSION=    005
CATEGORIES= textproc perl5
MASTER_SITES=   http://nwalsh.com/xsl/xslint/
DISTNAME=   ${PORTNAME}${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    XSL(T) stylesheet checker

RUN_DEPENDS=    ${SITE_PERL}/XML/DOM.pm:${PORTSDIR}/textproc/p5-XML-DOM

USE_PERL5=  yes
USE_ZIP=    yes

WRKSRC=     ${WRKDIR}/${PORTNAME}
NO_BUILD=   yes

post-patch:
    ${PERL5} -pi -e 's,/usr/local/bin/perl5,${PERL},' ${WRKSRC}/${PORTNAME}.pl

do-install:
    ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.pl ${PREFIX}/bin/${PORTNAME}
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/xslint.html ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/xslint.xml ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif

.include <bsd.port.mk>