blob: 4a9d6e02a9c1132ad481c3a807c6a273a11994b2 (
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
|
# New ports collection makefile for: w3c-validator
# Date created: 13 September 2005
# Whom: Naram Qashat <cyberbotx@cyberbotx.com>
#
# $FreeBSD$
#
PORTNAME= validator
PORTVERSION= 0.7.2
PORTREVISION= 2
CATEGORIES= www
MASTER_SITES= http://validator.w3.org/dist/ \
http://www.cyberbotx.com/w3c-validator/
DISTFILES= validator-${PORTVERSION:S/./_/g}.tar.gz sgml-lib-${PORTVERSION:S/./_/g}.tar.gz
MAINTAINER= cyberbotx@cyberbotx.com
COMMENT= Markup Validation Service from the World Wide Web Consortium (W3C)
RUN_DEPENDS= onsgmls:${PORTSDIR}/textproc/opensp \
${SITE_PERL}/Config/General.pm:${PORTSDIR}/devel/p5-Config-General \
${SITE_PERL}/${PERL_ARCH}/HTML/Parser.pm:${PORTSDIR}/www/p5-HTML-Parser \
${SITE_PERL}/HTML/Template.pm:${PORTSDIR}/www/p5-HTML-Template \
${SITE_PERL}/Bundle/LWP.pm:${PORTSDIR}/www/p5-libwww \
${SITE_PERL}/Net/IP.pm:${PORTSDIR}/net-mgmt/p5-Net-IP \
${SITE_PERL}/Set/IntSpan.pm:${PORTSDIR}/math/p5-Set-IntSpan \
${SITE_PERL}/${PERL_ARCH}/Text/Iconv.pm:${PORTSDIR}/converters/p5-Text-Iconv \
${SITE_PERL}/URI.pm:${PORTSDIR}/net/p5-URI
NO_BUILD= yes
USE_PERL5_RUN= yes
SUB_FILES= pkg-message validator.conf.sample
post-extract:
@${RM} ${WRKSRC}/README.cvs
@${RM} -rf ${WRKSRC}/misc
@${RM} -rf ${WRKSRC}/httpd/conf
@${RM} ${WRKSRC}/htdocs/config/validator.conf
pre-install:
@${CP} ${WRKDIR}/validator.conf.sample ${WRKSRC}/htdocs/config/
do-install:
${MKDIR} ${PREFIX}/www/validator
${MKDIR} ${PREFIX}/www/validator/htdocs
${MKDIR} ${PREFIX}/www/validator/htdocs/config
${MKDIR} ${PREFIX}/www/validator/htdocs/dev
${MKDIR} ${PREFIX}/www/validator/htdocs/dev/tests
${MKDIR} ${PREFIX}/www/validator/htdocs/docs
${MKDIR} ${PREFIX}/www/validator/htdocs/images
${MKDIR} ${PREFIX}/www/validator/htdocs/misc
${MKDIR} ${PREFIX}/www/validator/htdocs/sgml-lib
${MKDIR} ${PREFIX}/www/validator/htdocs/sgml-lib/IETF
${MKDIR} ${PREFIX}/www/validator/htdocs/sgml-lib/ISO-HTML
${MKDIR} ${PREFIX}/www/validator/htdocs/sgml-lib/REC-html32-19970114
${MKDIR} ${PREFIX}/www/validator/htdocs/sgml-lib/REC-html40-19980424
${MKDIR} ${PREFIX}/www/validator/htdocs/sgml-lib/REC-html401-19991224
${MKDIR} ${PREFIX}/www/validator/htdocs/sgml-lib/REC-MathML2-20031021
${MKDIR} ${PREFIX}/www/validator/htdocs/sgml-lib/REC-MathML2-20031021/html
${MKDIR} ${PREFIX}/www/validator/htdocs/sgml-lib/REC-MathML2-20031021/iso8879
${MKDIR} ${PREFIX}/www/validator/htdocs/sgml-lib/REC-MathML2-20031021/iso9573-13
${MKDIR} ${PREFIX}/www/validator/htdocs/sgml-lib/REC-MathML2-20031021/mathml
${MKDIR} ${PREFIX}/www/validator/htdocs/sgml-lib/REC-smil-19980615
${MKDIR} ${PREFIX}/www/validator/htdocs/sgml-lib/REC-smil20-20050107
${MKDIR} ${PREFIX}/www/validator/htdocs/sgml-lib/REC-SVG-20010904
${MKDIR} ${PREFIX}/www/validator/htdocs/sgml-lib/REC-SVG11-20030114
${MKDIR} ${PREFIX}/www/validator/htdocs/sgml-lib/REC-xhtml-basic-20001219
${MKDIR} ${PREFIX}/www/validator/htdocs/sgml-lib/REC-xhtml1-20020801
${MKDIR} ${PREFIX}/www/validator/htdocs/sgml-lib/REC-xhtml11-20010531
${MKDIR} ${PREFIX}/www/validator/htdocs/source
${MKDIR} ${PREFIX}/www/validator/httpd
${MKDIR} ${PREFIX}/www/validator/httpd/cgi-bin
${MKDIR} ${PREFIX}/www/validator/share
${MKDIR} ${PREFIX}/www/validator/share/templates
${MKDIR} ${PREFIX}/www/validator/share/templates/en_US
${INSTALL_DATA} `find ${WRKSRC}/htdocs -type f -depth 1` ${PREFIX}/www/validator/htdocs
${INSTALL_DATA} ${WRKSRC}/htdocs/config/* ${PREFIX}/www/validator/htdocs/config
${INSTALL_DATA} ${WRKSRC}/htdocs/dev/tests/* ${PREFIX}/www/validator/htdocs/dev/tests
${INSTALL_DATA} ${WRKSRC}/htdocs/docs/* ${PREFIX}/www/validator/htdocs/docs
${INSTALL_DATA} ${WRKSRC}/htdocs/images/* ${PREFIX}/www/validator/htdocs/images
${INSTALL_DATA} ${WRKSRC}/htdocs/misc/* ${PREFIX}/www/validator/htdocs/misc
${INSTALL_DATA} `find ${WRKSRC}/htdocs/sgml-lib -type f -depth 1` ${PREFIX}/www/validator/htdocs/sgml-lib
${INSTALL_DATA} ${WRKSRC}/htdocs/sgml-lib/IETF/* ${PREFIX}/www/validator/htdocs/sgml-lib/IETF
${INSTALL_DATA} ${WRKSRC}/htdocs/sgml-lib/ISO-HTML/* ${PREFIX}/www/validator/htdocs/sgml-lib/ISO-HTML
${INSTALL_DATA} ${WRKSRC}/htdocs/sgml-lib/REC-html32-19970114/* ${PREFIX}/www/validator/htdocs/sgml-lib/REC-html32-19970114
${INSTALL_DATA} ${WRKSRC}/htdocs/sgml-lib/REC-html40-19980424/* ${PREFIX}/www/validator/htdocs/sgml-lib/REC-html40-19980424
${INSTALL_DATA} ${WRKSRC}/htdocs/sgml-lib/REC-html401-19991224/* ${PREFIX}/www/validator/htdocs/sgml-lib/REC-html401-19991224
${INSTALL_DATA} `find ${WRKSRC}/htdocs/sgml-lib/REC-MathML2-20031021 -type f -depth 1` ${PREFIX}/www/validator/htdocs/sgml-lib/REC-MathML2-20031021
${INSTALL_DATA} ${WRKSRC}/htdocs/sgml-lib/REC-MathML2-20031021/html/* ${PREFIX}/www/validator/htdocs/sgml-lib/REC-MathML2-20031021/html
${INSTALL_DATA} ${WRKSRC}/htdocs/sgml-lib/REC-MathML2-20031021/iso8879/* ${PREFIX}/www/validator/htdocs/sgml-lib/REC-MathML2-20031021/iso8879
${INSTALL_DATA} ${WRKSRC}/htdocs/sgml-lib/REC-MathML2-20031021/iso9573-13/* ${PREFIX}/www/validator/htdocs/sgml-lib/REC-MathML2-20031021/iso9573-13
${INSTALL_DATA} ${WRKSRC}/htdocs/sgml-lib/REC-MathML2-20031021/mathml/* ${PREFIX}/www/validator/htdocs/sgml-lib/REC-MathML2-20031021/mathml
${INSTALL_DATA} ${WRKSRC}/htdocs/sgml-lib/REC-smil-19980615/* ${PREFIX}/www/validator/htdocs/sgml-lib/REC-smil-19980615
${INSTALL_DATA} ${WRKSRC}/htdocs/sgml-lib/REC-smil20-20050107/* ${PREFIX}/www/validator/htdocs/sgml-lib/REC-smil20-20050107
${INSTALL_DATA} ${WRKSRC}/htdocs/sgml-lib/REC-SVG-20010904/* ${PREFIX}/www/validator/htdocs/sgml-lib/REC-SVG-20010904
${INSTALL_DATA} ${WRKSRC}/htdocs/sgml-lib/REC-SVG11-20030114/* ${PREFIX}/www/validator/htdocs/sgml-lib/REC-SVG11-20030114
${INSTALL_DATA} ${WRKSRC}/htdocs/sgml-lib/REC-xhtml-basic-20001219/* ${PREFIX}/www/validator/htdocs/sgml-lib/REC-xhtml-basic-20001219
${INSTALL_DATA} ${WRKSRC}/htdocs/sgml-lib/REC-xhtml1-20020801/* ${PREFIX}/www/validator/htdocs/sgml-lib/REC-xhtml1-20020801
${INSTALL_DATA} ${WRKSRC}/htdocs/sgml-lib/REC-xhtml11-20010531/* ${PREFIX}/www/validator/htdocs/sgml-lib/REC-xhtml11-20010531
${INSTALL_DATA} ${WRKSRC}/htdocs/source/* ${PREFIX}/www/validator/htdocs/source
${INSTALL_SCRIPT} ${WRKSRC}/httpd/cgi-bin/* ${PREFIX}/www/validator/httpd/cgi-bin
${INSTALL_DATA} ${WRKSRC}/share/templates/en_US/* ${PREFIX}/www/validator/share/templates/en_US
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 500600
IGNORE= requires Perl 5.6.0 or better to run
.endif
.if ${PERL_LEVEL} < 500800
RUN_DEPENDS+= ${SITE_PERL}/CGI.pm:${PORTSDIR}/www/p5-CGI.pm
.endif
.include <bsd.port.post.mk>
|