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

(-)Makefile (-13 / +14 lines)
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
(-)pkg-descr (-1 / +1 lines)
Lines 5-8 Link Here
5
WWW: http://sourceforge.net/projects/dtdparse/
5
WWW: http://sourceforge.net/projects/dtdparse/
6
6
7
- Kimura Fuyuki
7
- Kimura Fuyuki
8
fuyuki@mj.0038.net
8
fuyuki@hadaly.org
(-)pkg-plist (-6 / +3 lines)
Lines 8-22 Link Here
8
lib/perl5/site_perl/%%PERL_VER%%/XML/DTDParse/ContentModel.pm
8
lib/perl5/site_perl/%%PERL_VER%%/XML/DTDParse/ContentModel.pm
9
lib/perl5/site_perl/%%PERL_VER%%/XML/DTDParse/DTD.pm
9
lib/perl5/site_perl/%%PERL_VER%%/XML/DTDParse/DTD.pm
10
lib/perl5/site_perl/%%PERL_VER%%/XML/DTDParse/Tokenizer.pm
10
lib/perl5/site_perl/%%PERL_VER%%/XML/DTDParse/Tokenizer.pm
11
lib/perl5/site_perl/%%PERL_VER%%/XML/DTDParse/html.pl
12
lib/perl5/site_perl/%%PERL_VER%%/XML/DTDParse/plain.pl
13
lib/perl5/site_perl/%%PERL_VER%%/XML/DTDParse/refentry.pl
11
@dirrm lib/perl5/site_perl/%%PERL_VER%%/XML/DTDParse
14
@dirrm lib/perl5/site_perl/%%PERL_VER%%/XML/DTDParse
12
@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/XML 2>/dev/null || true
15
@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/XML 2>/dev/null || true
13
lib/perl5/site_perl/%%PERL_VER%%/modules/html.pl
14
lib/perl5/site_perl/%%PERL_VER%%/modules/plain.pl
15
lib/perl5/site_perl/%%PERL_VER%%/modules/refentry.pl
16
@dirrm lib/perl5/site_perl/%%PERL_VER%%/modules
17
@unexec %%MKCATALOG%% -c %D/share/xml/catalog -q deinstall dtdparse
18
share/xml/dtdparse/catalog
16
share/xml/dtdparse/catalog
19
@exec %%MKCATALOG%% -c %D/share/xml/catalog -q install dtdparse
20
share/xml/dtdparse/dtd.dtd
17
share/xml/dtdparse/dtd.dtd
21
@dirrm share/xml/dtdparse
18
@dirrm share/xml/dtdparse
22
share/examples/dtdparse/sample.dtd
19
share/examples/dtdparse/sample.dtd

Return to bug 40769