View | Details | Raw Unified | Return to bug 50380
Collapse All | Expand All

(-)Makefile (-15 / +4 lines)
Lines 13-32 Link Here
13
MASTER_SITE_SUBDIR=	dtdparse
13
MASTER_SITE_SUBDIR=	dtdparse
14
DISTNAME=	${PORTNAME}-${PORTVERSION:S/.b/beta/}
14
DISTNAME=	${PORTNAME}-${PORTVERSION:S/.b/beta/}
15
15
16
MAINTAINER=	fuyuki@hadaly.org
16
MAINTAINER=	ports@FreeBSD.org
17
COMMENT=	Parse a DTD and produce an XML document that represents it
17
COMMENT=	Parse a DTD and produce an XML document that represents it
18
18
19
RUN_DEPENDS=	${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Text/DelimMatch.pm:${PORTSDIR}/textproc/p5-DelimMatch \
19
RUN_DEPENDS=	${SITE_PERL}/Text/DelimMatch.pm:${PORTSDIR}/textproc/p5-DelimMatch \
20
		${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/XML/DOM.pm:${PORTSDIR}/textproc/p5-XML-DOM
20
		${SITE_PERL}/XML/DOM.pm:${PORTSDIR}/textproc/p5-XML-DOM
21
21
22
USE_PERL5=	yes
22
USE_PERL5=	yes
23
23
NO_BUILD=	yes
24
# pod's are broken
25
#MAN1=		dtdformat.1 dtdparse.1
26
27
SITE_PERL=	${PREFIX}/lib/perl5/site_perl/${PERL_VER}
28
XMLDIR=		${PREFIX}/share/xml/${PORTNAME}
24
XMLDIR=		${PREFIX}/share/xml/${PORTNAME}
29
30
SCRIPTS=	dtdflatten dtdformat dtdparse \
25
SCRIPTS=	dtdflatten dtdformat dtdparse \
31
		tools/contentmodel tools/dtdstats tools/elements
26
		tools/contentmodel tools/dtdstats tools/elements
32
27
Lines 35-45 Link Here
35
		${PERL} -pi -e 's,/usr/local/bin/perl5,${PERL},' ${SCRIPTS}
30
		${PERL} -pi -e 's,/usr/local/bin/perl5,${PERL},' ${SCRIPTS}
36
	${PERL} -pi -e 's,modules/,XML/DTDParse/,' ${WRKSRC}/dtdformat
31
	${PERL} -pi -e 's,modules/,XML/DTDParse/,' ${WRKSRC}/dtdformat
37
32
38
do-build:
39
#.for i in dtdformat dtdparse
40
#	cd ${WRKSRC}; pod2man ${i} >${i}.1
41
#.endfor
42
43
do-install:
33
do-install:
44
	cd ${WRKSRC}; ${INSTALL_SCRIPT} ${SCRIPTS} ${PREFIX}/bin
34
	cd ${WRKSRC}; ${INSTALL_SCRIPT} ${SCRIPTS} ${PREFIX}/bin
45
	${MKDIR} ${SITE_PERL}/XML/DTDParse
35
	${MKDIR} ${SITE_PERL}/XML/DTDParse
Lines 50-56 Link Here
50
	${ECHO_CMD} \
40
	${ECHO_CMD} \
51
		'PUBLIC "-//Norman Walsh//DTD DTDParse V2.0//EN" "dtd.dtd"' \
41
		'PUBLIC "-//Norman Walsh//DTD DTDParse V2.0//EN" "dtd.dtd"' \
52
		>${XMLDIR}/catalog
42
		>${XMLDIR}/catalog
53
#	cd ${WRKSRC}; ${INSTALL_MAN} ${MAN1} ${PREFIX}/man/man1
54
43
55
post-install:
44
post-install:
56
	${MKDIR} ${EXAMPLESDIR}
45
	${MKDIR} ${EXAMPLESDIR}
(-)pkg-descr (-3 lines)
Lines 3-8 Link Here
3
understanding and documentation of DTDs.
3
understanding and documentation of DTDs.
4
4
5
WWW: http://sourceforge.net/projects/dtdparse/
5
WWW: http://sourceforge.net/projects/dtdparse/
6
7
- Kimura Fuyuki
8
fuyuki@hadaly.org
(-)pkg-plist (-17 / +17 lines)
Lines 4-26 Link Here
4
bin/dtdparse
4
bin/dtdparse
5
bin/dtdstats
5
bin/dtdstats
6
bin/elements
6
bin/elements
7
lib/perl5/site_perl/%%PERL_VER%%/XML/DTDParse/Catalog.pm
7
%%SITE_PERL%%/XML/DTDParse/Catalog.pm
8
lib/perl5/site_perl/%%PERL_VER%%/XML/DTDParse/ContentModel.pm
8
%%SITE_PERL%%/XML/DTDParse/ContentModel.pm
9
lib/perl5/site_perl/%%PERL_VER%%/XML/DTDParse/DTD.pm
9
%%SITE_PERL%%/XML/DTDParse/DTD.pm
10
lib/perl5/site_perl/%%PERL_VER%%/XML/DTDParse/Tokenizer.pm
10
%%SITE_PERL%%/XML/DTDParse/Tokenizer.pm
11
lib/perl5/site_perl/%%PERL_VER%%/XML/DTDParse/html.pl
11
%%SITE_PERL%%/XML/DTDParse/html.pl
12
lib/perl5/site_perl/%%PERL_VER%%/XML/DTDParse/plain.pl
12
%%SITE_PERL%%/XML/DTDParse/plain.pl
13
lib/perl5/site_perl/%%PERL_VER%%/XML/DTDParse/refentry.pl
13
%%SITE_PERL%%/XML/DTDParse/refentry.pl
14
@dirrm lib/perl5/site_perl/%%PERL_VER%%/XML/DTDParse
14
@dirrm %%SITE_PERL%%/XML/DTDParse
15
@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/XML 2>/dev/null || true
15
@unexec rmdir %D/%%SITE_PERL%%/XML 2>/dev/null || true
16
share/xml/dtdparse/catalog
16
share/xml/dtdparse/catalog
17
share/xml/dtdparse/dtd.dtd
17
share/xml/dtdparse/dtd.dtd
18
@dirrm share/xml/dtdparse
18
@dirrm share/xml/dtdparse
19
share/examples/dtdparse/sample.dtd
19
%%EXAMPLESDIR%%/sample.dtd
20
share/examples/dtdparse/sample.mod
20
%%EXAMPLESDIR%%/sample.mod
21
share/examples/dtdparse/simple-inline.mod
21
%%EXAMPLESDIR%%/simple-inline.mod
22
share/examples/dtdparse/simple.dtd
22
%%EXAMPLESDIR%%/simple.dtd
23
@dirrm share/examples/dtdparse
23
@dirrm %%EXAMPLESDIR%%
24
share/doc/dtdparse/README
24
%%DOCSDIR%%/README
25
share/doc/dtdparse/WhatsNew
25
%%DOCSDIR%%/WhatsNew
26
@dirrm share/doc/dtdparse
26
@dirrm %%DOCSDIR%%

Return to bug 50380