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

(-)textproc/dtdparse/Makefile (-29 / +5 lines)
Lines 6-17 Link Here
6
#
6
#
7
7
8
PORTNAME=	dtdparse
8
PORTNAME=	dtdparse
9
PORTVERSION=	2.0.b6
9
PORTVERSION=	2.00
10
PORTREVISION=	1
11
CATEGORIES=	textproc
10
CATEGORIES=	textproc
12
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
11
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
13
MASTER_SITE_SUBDIR=	dtdparse
12
MASTER_SITE_SUBDIR=	dtdparse
14
DISTNAME=	${PORTNAME}-${PORTVERSION:S/.b/beta/}
13
DISTNAME=	SGML-DTDParse-${PORTVERSION}
15
14
16
MAINTAINER=	ports@FreeBSD.org
15
MAINTAINER=	ports@FreeBSD.org
17
COMMENT=	Parse a DTD and produce an XML document that represents it
16
COMMENT=	Parse a DTD and produce an XML document that represents it
Lines 20-51 Link Here
20
		${SITE_PERL}/XML/DOM.pm:${PORTSDIR}/textproc/p5-XML-DOM
19
		${SITE_PERL}/XML/DOM.pm:${PORTSDIR}/textproc/p5-XML-DOM
21
20
22
USE_PERL5=	yes
21
USE_PERL5=	yes
23
NO_BUILD=	yes
22
PERL_CONFIGURE=	yes
24
XMLDIR=		${PREFIX}/share/xml/${PORTNAME}
25
SCRIPTS=	dtdflatten dtdformat dtdparse \
26
		tools/contentmodel tools/dtdstats tools/elements
27
23
28
post-patch:
24
MAN1=		dtddiff2html.1 dtdformat.1 dtddiff.1 dtdparse.1 dtdflatten.1
29
	cd ${WRKSRC}; \
25
MAN3=		SGML::DTDParse::DTD.3 SGML::DTDParse.3 SGML::DTDParse::Util.3
30
		${PERL} -pi -e 's,/usr/local/bin/perl5,${PERL},' ${SCRIPTS}
31
	${PERL} -pi -e 's,modules/,XML/DTDParse/,' ${WRKSRC}/dtdformat
32
33
do-install:
34
	cd ${WRKSRC}; ${INSTALL_SCRIPT} ${SCRIPTS} ${PREFIX}/bin
35
	${MKDIR} ${SITE_PERL}/XML/DTDParse
36
	${INSTALL_DATA} ${WRKSRC}/XML/DTDParse/*.pm ${SITE_PERL}/XML/DTDParse
37
	${INSTALL_DATA} ${WRKSRC}/modules/*.pl ${SITE_PERL}/XML/DTDParse
38
	${MKDIR} ${XMLDIR}
39
	${INSTALL_DATA} ${WRKSRC}/dtd.dtd ${XMLDIR}
40
	${ECHO_CMD} \
41
		'PUBLIC "-//Norman Walsh//DTD DTDParse V2.0//EN" "dtd.dtd"' \
42
		>${XMLDIR}/catalog
43
44
post-install:
45
	${MKDIR} ${EXAMPLESDIR}
46
	cd ${WRKSRC}/sample; \
47
		${INSTALL_DATA} sample* simple* ${EXAMPLESDIR}
48
	${MKDIR} ${DOCSDIR}
49
	cd ${WRKSRC}; ${INSTALL_DATA} README WhatsNew ${DOCSDIR}
50
26
51
.include <bsd.port.mk>
27
.include <bsd.port.mk>
(-)textproc/dtdparse/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
MD5 (dtdparse-2.0beta6.tar.gz) = 905b08b8e814585cf8f49461521dee6c
1
MD5 (SGML-DTDParse-2.00.tar.gz) = bcff0835a0a7480794311fa0821d4db9
2
SIZE (dtdparse-2.0beta6.tar.gz) = 37950
2
SIZE (SGML-DTDParse-2.00.tar.gz) = 57846
(-)textproc/dtdparse/files/patch-aa (-20 lines)
Lines 1-20 Link Here
1
--- dtdformat.orig	Wed Aug  1 23:54:27 2001
2
+++ dtdformat	Tue Jan 29 14:38:09 2002
3
@@ -122,16 +122,8 @@
4
 	require $userlib;
5
     }
6
 } else {
7
-    my $plain = $0;
8
-    $plain =~ s/\\/\//g;
9
-    if ($plain =~ /\//) {
10
-	$plain =~ s/^(.*)\/[^\/]+$/$1\/modules\/plain.pl/;
11
-    } else {
12
-	$plain = "modules/plain.pl";
13
-    }
14
-
15
     &status("Using plain library.",1);
16
-    require $plain;
17
+    require 'modules/plain.pl';
18
 }
19
20
 foreach my $key (keys %option) {
(-)textproc/dtdparse/pkg-plist (-23 / +17 lines)
Lines 1-26 Link Here
1
bin/contentmodel
1
bin/dtddiff
2
bin/dtddiff2html
2
bin/dtdflatten
3
bin/dtdflatten
3
bin/dtdformat
4
bin/dtdformat
4
bin/dtdparse
5
bin/dtdparse
5
bin/dtdstats
6
%%SITE_PERL%%/SGML/DTDParse/Catalog.pm
6
bin/elements
7
%%SITE_PERL%%/SGML/DTDParse/ContentModel.pm
7
%%SITE_PERL%%/XML/DTDParse/Catalog.pm
8
%%SITE_PERL%%/SGML/DTDParse/DTD.pm
8
%%SITE_PERL%%/XML/DTDParse/ContentModel.pm
9
%%SITE_PERL%%/SGML/DTDParse/Format/html.pl
9
%%SITE_PERL%%/XML/DTDParse/DTD.pm
10
%%SITE_PERL%%/SGML/DTDParse/Format/plain.pl
10
%%SITE_PERL%%/XML/DTDParse/Tokenizer.pm
11
%%SITE_PERL%%/SGML/DTDParse/Format/refentry.pl
11
%%SITE_PERL%%/XML/DTDParse/html.pl
12
%%SITE_PERL%%/SGML/DTDParse/Tokenizer.pm
12
%%SITE_PERL%%/XML/DTDParse/plain.pl
13
%%SITE_PERL%%/SGML/DTDParse/Util.pm
13
%%SITE_PERL%%/XML/DTDParse/refentry.pl
14
%%SITE_PERL%%/SGML/DTDParse.pm
14
@dirrm %%SITE_PERL%%/XML/DTDParse
15
%%SITE_PERL%%/mach/auto/SGML/DTDParse/.packlist
15
@unexec rmdir %D/%%SITE_PERL%%/XML 2>/dev/null || true
16
@dirrm %%SITE_PERL%%/mach/auto/SGML/DTDParse
16
share/xml/dtdparse/catalog
17
@dirrm %%SITE_PERL%%/SGML/DTDParse/Format
17
share/xml/dtdparse/dtd.dtd
18
@dirrm %%SITE_PERL%%/SGML/DTDParse
18
@dirrm share/xml/dtdparse
19
@unexec rmdir %D/%%SITE_PERL%%/mach/auto/SGML 2>/dev/null || true
19
%%EXAMPLESDIR%%/sample.dtd
20
@unexec rmdir %D/%%SITE_PERL%%/SGML 2>/dev/null || true
20
%%EXAMPLESDIR%%/sample.mod
21
%%EXAMPLESDIR%%/simple-inline.mod
22
%%EXAMPLESDIR%%/simple.dtd
23
@dirrm %%EXAMPLESDIR%%
24
%%DOCSDIR%%/README
25
%%DOCSDIR%%/WhatsNew
26
@dirrm %%DOCSDIR%%

Return to bug 83859