Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Jan 2002 18:31:07 +0900 (JST)
From:      Kimura Fuyuki <fuyuki@mj.0038.net>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/34400: New port: textproc/dtdparse
Message-ID:  <20020129093108249.SPGD.20723.t-mta4.odn.ne.jp@mta4.odn.ne.jp>

next in thread | raw e-mail | index | archive | help

>Number:         34400
>Category:       ports
>Synopsis:       New port: textproc/dtdparse
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 29 01:40:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Kimura Fuyuki
>Release:        FreeBSD 4.5-RC i386
>Organization:
>Environment:
System: FreeBSD ns.test 4.5-RC FreeBSD 4.5-RC #4: Sat Jan 26 17:21:53 JST 2002 root@ns.test:/sack/obj/usr/src/sys/NS i386



>Description:
DTDParse is a tool for manipulating XML and SGML Document Type
Definitions (DTDs). DTDParse is designed primarily to aid in the
understanding and documentation of DTDs.

WWW: http://sourceforge.net/projects/dtdparse/

>How-To-Repeat:

>Fix:
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	dtdparse
#	dtdparse/Makefile
#	dtdparse/distinfo
#	dtdparse/pkg-comment
#	dtdparse/pkg-descr
#	dtdparse/pkg-plist
#	dtdparse/files
#	dtdparse/files/patch-aa
#
echo c - dtdparse
mkdir -p dtdparse > /dev/null 2>&1
echo x - dtdparse/Makefile
sed 's/^X//' >dtdparse/Makefile << 'END-of-dtdparse/Makefile'
X# New ports collection makefile for:   dtdparse
X# Date created:                29 January 2002
X# Whom:                        Kimura Fuyuki <fuyuki@mj.0038.net>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	dtdparse
XPORTVERSION=	2.0.b6
XCATEGORIES=	textproc
XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=	dtdparse
XDISTNAME=       ${PORTNAME}-${PORTVERSION:S/.b/beta/}
X
XMAINTAINER=	fuyuki@mj.0038.net
X
XRUN_DEPENDS=	${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Text/DelimMatch.pm:${PORTSDIR}/textproc/p5-DelimMatch \
X		${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/XML/DOM.pm:${PORTSDIR}/textproc/p5-XML-DOM \
X		${MKCATALOG}:${PORTSDIR}/textproc/mkcatalog
X
XUSE_PERL5=	yes
X
XNO_BUILD=	yes
X
XSITE_PERL=	${PREFIX}/lib/perl5/site_perl/${PERL_VER}
XXMLDIR=		${PREFIX}/share/xml/${PORTNAME}
X
XSCRIPTS=	dtdflatten dtdformat dtdparse \
X		tools/contentmodel tools/dtdstats tools/elements
X
XMKCATALOG=	${LOCALBASE}/sbin/mkcatalog
XPLIST_SUB=	MKCATALOG=${MKCATALOG}
X
Xpost-patch:
X	cd ${WRKSRC}; \
X		${PERL} -pi -e 's,/usr/local/bin/perl5,${PERL},' ${SCRIPTS}
X
Xdo-install:
X	cd ${WRKSRC}; ${INSTALL_SCRIPT} ${SCRIPTS} ${PREFIX}/bin
X	${MKDIR} ${SITE_PERL}/XML/DTDParse
X	${INSTALL_DATA} ${WRKSRC}/XML/DTDParse/*.pm ${SITE_PERL}/XML/DTDParse
X	${MKDIR} ${SITE_PERL}/modules
X	${INSTALL_DATA} ${WRKSRC}/modules/*.pl ${SITE_PERL}/modules
X	${MKDIR} ${XMLDIR}
X	${INSTALL_DATA} ${WRKSRC}/dtd.dtd ${XMLDIR}
X	${ECHO_CMD} \
X		'PUBLIC "-//Norman Walsh//DTD DTDParse V2.0//EN" "dtd.dtd"' \
X		>${XMLDIR}/catalog
X
Xpost-install:
X	${MKCATALOG} -c ${PREFIX}/share/xml/catalog -q install dtdparse
X	${MKDIR} ${EXAMPLESDIR}
X	cd ${WRKSRC}/sample; \
X		${INSTALL_DATA} sample* simple* ${EXAMPLESDIR}
X# README is not 'additional' documentation because it's the only file
X# that contains copyright notice
X	${MKDIR} ${DOCSDIR}
X	cd ${WRKSRC}; ${INSTALL_DATA} README WhatsNew ${DOCSDIR}
X
X.include <bsd.port.mk>
END-of-dtdparse/Makefile
echo x - dtdparse/distinfo
sed 's/^X//' >dtdparse/distinfo << 'END-of-dtdparse/distinfo'
XMD5 (dtdparse-2.0beta6.tar.gz) = 905b08b8e814585cf8f49461521dee6c
END-of-dtdparse/distinfo
echo x - dtdparse/pkg-comment
sed 's/^X//' >dtdparse/pkg-comment << 'END-of-dtdparse/pkg-comment'
XParse a DTD and produce an XML document that represents it
END-of-dtdparse/pkg-comment
echo x - dtdparse/pkg-descr
sed 's/^X//' >dtdparse/pkg-descr << 'END-of-dtdparse/pkg-descr'
XDTDParse is a tool for manipulating XML and SGML Document Type
XDefinitions (DTDs). DTDParse is designed primarily to aid in the
Xunderstanding and documentation of DTDs.
X
XWWW: http://sourceforge.net/projects/dtdparse/
X
X- Kimura Fuyuki
Xfuyuki@mj.0038.net
END-of-dtdparse/pkg-descr
echo x - dtdparse/pkg-plist
sed 's/^X//' >dtdparse/pkg-plist << 'END-of-dtdparse/pkg-plist'
Xbin/contentmodel
Xbin/dtdflatten
Xbin/dtdformat
Xbin/dtdparse
Xbin/dtdstats
Xbin/elements
Xlib/perl5/site_perl/%%PERL_VER%%/XML/DTDParse/Catalog.pm
Xlib/perl5/site_perl/%%PERL_VER%%/XML/DTDParse/ContentModel.pm
Xlib/perl5/site_perl/%%PERL_VER%%/XML/DTDParse/DTD.pm
Xlib/perl5/site_perl/%%PERL_VER%%/XML/DTDParse/Tokenizer.pm
X@dirrm lib/perl5/site_perl/%%PERL_VER%%/XML/DTDParse
X@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/XML 2>/dev/null || true
Xlib/perl5/site_perl/%%PERL_VER%%/modules/html.pl
Xlib/perl5/site_perl/%%PERL_VER%%/modules/plain.pl
Xlib/perl5/site_perl/%%PERL_VER%%/modules/refentry.pl
X@dirrm lib/perl5/site_perl/%%PERL_VER%%/modules
X@unexec %%MKCATALOG%% -c %D/share/xml/catalog -q deinstall dtdparse
Xshare/xml/dtdparse/catalog
X@exec %%MKCATALOG%% -c %D/share/xml/catalog -q install dtdparse
Xshare/xml/dtdparse/dtd.dtd
X@dirrm share/xml/dtdparse
X@unexec rmdir %D/share/xml 2>/dev/null || true
Xshare/examples/dtdparse/sample.dtd
Xshare/examples/dtdparse/sample.mod
Xshare/examples/dtdparse/simple-inline.mod
Xshare/examples/dtdparse/simple.dtd
X@dirrm share/examples/dtdparse
Xshare/doc/dtdparse/README
Xshare/doc/dtdparse/WhatsNew
X@dirrm share/doc/dtdparse
END-of-dtdparse/pkg-plist
echo c - dtdparse/files
mkdir -p dtdparse/files > /dev/null 2>&1
echo x - dtdparse/files/patch-aa
sed 's/^X//' >dtdparse/files/patch-aa << 'END-of-dtdparse/files/patch-aa'
X--- dtdformat.orig	Wed Aug  1 23:54:27 2001
X+++ dtdformat	Tue Jan 29 14:38:09 2002
X@@ -122,16 +122,8 @@
X 	require $userlib;
X     }
X } else {
X-    my $plain = $0;
X-    $plain =~ s/\\/\//g;
X-    if ($plain =~ /\//) {
X-	$plain =~ s/^(.*)\/[^\/]+$/$1\/modules\/plain.pl/;
X-    } else {
X-	$plain = "modules/plain.pl";
X-    }
X-
X     &status("Using plain library.",1);
X-    require $plain;
X+    require 'modules/plain.pl';
X }
X
X foreach my $key (keys %option) {
END-of-dtdparse/files/patch-aa
exit





>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020129093108249.SPGD.20723.t-mta4.odn.ne.jp>