Lines 7-26
Link Here
|
7 |
|
7 |
|
8 |
PORTNAME= dtdparse |
8 |
PORTNAME= dtdparse |
9 |
PORTVERSION= 2.0.b6 |
9 |
PORTVERSION= 2.0.b6 |
|
|
10 |
PORTREVISION= 1 |
10 |
CATEGORIES= textproc |
11 |
CATEGORIES= textproc |
11 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} |
12 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} |
12 |
MASTER_SITE_SUBDIR= dtdparse |
13 |
MASTER_SITE_SUBDIR= dtdparse |
13 |
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.b/beta/} |
14 |
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.b/beta/} |
14 |
|
15 |
|
15 |
MAINTAINER= fuyuki@mj.0038.net |
16 |
MAINTAINER= fuyuki@hadaly.org |
16 |
|
17 |
|
17 |
RUN_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Text/DelimMatch.pm:${PORTSDIR}/textproc/p5-DelimMatch \ |
18 |
RUN_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Text/DelimMatch.pm:${PORTSDIR}/textproc/p5-DelimMatch \ |
18 |
${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/XML/DOM.pm:${PORTSDIR}/textproc/p5-XML-DOM \ |
19 |
${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/XML/DOM.pm:${PORTSDIR}/textproc/p5-XML-DOM |
19 |
${MKCATALOG}:${PORTSDIR}/textproc/mkcatalog |
|
|
20 |
|
20 |
|
21 |
USE_PERL5= yes |
21 |
USE_PERL5= yes |
22 |
|
22 |
|
23 |
NO_BUILD= yes |
23 |
# pod's are broken |
|
|
24 |
#MAN1= dtdformat.1 dtdparse.1 |
24 |
|
25 |
|
25 |
SITE_PERL= ${PREFIX}/lib/perl5/site_perl/${PERL_VER} |
26 |
SITE_PERL= ${PREFIX}/lib/perl5/site_perl/${PERL_VER} |
26 |
XMLDIR= ${PREFIX}/share/xml/${PORTNAME} |
27 |
XMLDIR= ${PREFIX}/share/xml/${PORTNAME} |
Lines 28-59
Link Here
|
28 |
SCRIPTS= dtdflatten dtdformat dtdparse \ |
29 |
SCRIPTS= dtdflatten dtdformat dtdparse \ |
29 |
tools/contentmodel tools/dtdstats tools/elements |
30 |
tools/contentmodel tools/dtdstats tools/elements |
30 |
|
31 |
|
31 |
MKCATALOG= ${LOCALBASE}/sbin/mkcatalog |
|
|
32 |
PLIST_SUB= MKCATALOG=${MKCATALOG} |
33 |
|
34 |
post-patch: |
32 |
post-patch: |
35 |
cd ${WRKSRC}; \ |
33 |
cd ${WRKSRC}; \ |
36 |
${PERL} -pi -e 's,/usr/local/bin/perl5,${PERL},' ${SCRIPTS} |
34 |
${PERL} -pi -e 's,/usr/local/bin/perl5,${PERL},' ${SCRIPTS} |
|
|
35 |
${PERL} -pi -e 's,modules/,XML/DTDParse/,' ${WRKSRC}/dtdformat |
36 |
|
37 |
do-build: |
38 |
#.for i in dtdformat dtdparse |
39 |
# cd ${WRKSRC}; pod2man ${i} >${i}.1 |
40 |
#.endfor |
37 |
|
41 |
|
38 |
do-install: |
42 |
do-install: |
39 |
cd ${WRKSRC}; ${INSTALL_SCRIPT} ${SCRIPTS} ${PREFIX}/bin |
43 |
cd ${WRKSRC}; ${INSTALL_SCRIPT} ${SCRIPTS} ${PREFIX}/bin |
40 |
${MKDIR} ${SITE_PERL}/XML/DTDParse |
44 |
${MKDIR} ${SITE_PERL}/XML/DTDParse |
41 |
${INSTALL_DATA} ${WRKSRC}/XML/DTDParse/*.pm ${SITE_PERL}/XML/DTDParse |
45 |
${INSTALL_DATA} ${WRKSRC}/XML/DTDParse/*.pm ${SITE_PERL}/XML/DTDParse |
42 |
${MKDIR} ${SITE_PERL}/modules |
46 |
${INSTALL_DATA} ${WRKSRC}/modules/*.pl ${SITE_PERL}/XML/DTDParse |
43 |
${INSTALL_DATA} ${WRKSRC}/modules/*.pl ${SITE_PERL}/modules |
|
|
44 |
${MKDIR} ${XMLDIR} |
47 |
${MKDIR} ${XMLDIR} |
45 |
${INSTALL_DATA} ${WRKSRC}/dtd.dtd ${XMLDIR} |
48 |
${INSTALL_DATA} ${WRKSRC}/dtd.dtd ${XMLDIR} |
46 |
${ECHO_CMD} \ |
49 |
${ECHO_CMD} \ |
47 |
'PUBLIC "-//Norman Walsh//DTD DTDParse V2.0//EN" "dtd.dtd"' \ |
50 |
'PUBLIC "-//Norman Walsh//DTD DTDParse V2.0//EN" "dtd.dtd"' \ |
48 |
>${XMLDIR}/catalog |
51 |
>${XMLDIR}/catalog |
|
|
52 |
# cd ${WRKSRC}; ${INSTALL_MAN} ${MAN1} ${PREFIX}/man/man1 |
49 |
|
53 |
|
50 |
post-install: |
54 |
post-install: |
51 |
${MKCATALOG} -c ${PREFIX}/share/xml/catalog -q install dtdparse |
|
|
52 |
${MKDIR} ${EXAMPLESDIR} |
55 |
${MKDIR} ${EXAMPLESDIR} |
53 |
cd ${WRKSRC}/sample; \ |
56 |
cd ${WRKSRC}/sample; \ |
54 |
${INSTALL_DATA} sample* simple* ${EXAMPLESDIR} |
57 |
${INSTALL_DATA} sample* simple* ${EXAMPLESDIR} |
55 |
# README is not 'additional' documentation because it's the only file |
|
|
56 |
# that contains copyright notice |
57 |
${MKDIR} ${DOCSDIR} |
58 |
${MKDIR} ${DOCSDIR} |
58 |
cd ${WRKSRC}; ${INSTALL_DATA} README WhatsNew ${DOCSDIR} |
59 |
cd ${WRKSRC}; ${INSTALL_DATA} README WhatsNew ${DOCSDIR} |
59 |
|
60 |
|