Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Jun 2003 20:48:52 +0900 (JST)
From:      Hiroki Sato <hrs@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/53818: New port: textproc/xmlcatmgr
Message-ID:  <200306271148.h5RBmqfI099460@alph.allbsd.org>
Resent-Message-ID: <200306271150.h5RBoKo7044473@freefall.freebsd.org>

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

>Number:         53818
>Category:       ports
>Synopsis:       New port: textproc/xmlcatmgr
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 27 04:50:20 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Hiroki Sato
>Release:        FreeBSD 4.8-STABLE i386
>Organization:
Tokyo University of Science
>Environment:
System: FreeBSD alph.allbsd.org 4.8-STABLE FreeBSD 4.8-STABLE #7: Tue May 20 00:05:43 JST 2003     hrs@alph.allbsd.org:/home/obj/home/src/sys/ALPH  i386

>Description:
	xmlcatmgr is a small utility for manipulating SGML/XML catalog.
	This PR supersedes ports/52640 and please read the original PR
	for the motivation.


>How-To-Repeat:
	N/A

>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:
#
#	xmlcatmgr
#	xmlcatmgr/Makefile
#	xmlcatmgr/distinfo
#	xmlcatmgr/pkg-plist
#	xmlcatmgr/pkg-descr
#	xmlcatmgr/pkg-message
#
echo c - xmlcatmgr
mkdir -p xmlcatmgr > /dev/null 2>&1
echo x - xmlcatmgr/Makefile
sed 's/^X//' >xmlcatmgr/Makefile << 'END-of-xmlcatmgr/Makefile'
X# Ports collection makefile for:  xmlcatmgr
X# Date created:			  Sat May 24, 2003
X# Whom:				  Hiroki Sato <hrs@FreeBSD.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	xmlcatmgr
XPORTVERSION=	0.2
XCATEGORIES=	textproc
XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=	${PORTNAME:L}
X
XMAINTAINER=	hrs@FreeBSD.org
XCOMMENT=	SGML/XML catalog manager
X
XMAN1=		xmlcatmgr.1
X
XCATALOG_MASTER_SGML_DIR?=	${PREFIX}/share/sgml
XCATALOG_MASTER_SGML?=		${CATALOG_MASTER_SGML_DIR}/catalog
XCATALOG_PORTS_SGML?=		${CATALOG_MASTER_SGML_DIR}/catalog.ports
X
XCATALOG_MASTER_XML_DIR?=	${PREFIX}/share/xml
XCATALOG_MASTER_XML?=		${CATALOG_MASTER_XML_DIR}/catalog
XCATALOG_PORTS_XML?=		${CATALOG_MASTER_XML_DIR}/catalog.ports
X
XMAKEFILE=       Makefile.boot
XMAKE_ENV+=      BT_PREFIX="${PREFIX}"
XMAKE_ENV+=      BT_PROG_AWK="${AWK}"
XMAKE_ENV+=      BT_PROG_SH="${SH}"
XMAKE_ENV+=      BT_DIR_CATALOG="${CATALOG_MASTER_XML_DIR}"
XMAKE_ENV+=      BT_INSTALL_DIR="${MKDIR}"
XMAKE_ENV+=      BT_INSTALL_BIN="${INSTALL_SCRIPT}"
XMAKE_ENV+=      BT_INSTALL_DATA="${INSTALL_DATA}"
X
Xpost-build:
X	@${ECHO} "Creating SGML catalogs..."
X	${WRKSRC}/bin/xmlcatmgr.sh -sc ${WRKDIR}/catalog.sgml create
X	${WRKSRC}/bin/xmlcatmgr.sh -sc ${WRKDIR}/catalog.ports.sgml create
X	${WRKSRC}/bin/xmlcatmgr.sh -sc ${WRKDIR}/catalog.sgml add \
X		CATALOG catalog.ports
X	@${ECHO} "Creating XML catalogs..."
X	${WRKSRC}/bin/xmlcatmgr.sh -c ${WRKDIR}/catalog.xml create
X	${WRKSRC}/bin/xmlcatmgr.sh -c ${WRKDIR}/catalog.ports.xml create
X	${WRKSRC}/bin/xmlcatmgr.sh -c ${WRKDIR}/catalog.xml add \
X		nextCatalog catalog.ports
X
Xpost-install:
X	@if [ -r ${CATALOG_MASTER_SGML} ]; then\
X	  ${WRKSRC}/bin/xmlcatmgr -sc ${CATALOG_MASTER_SGML} add CATALOG catalog.ports;\
X	else\
X	  ${INSTALL_DATA} ${WRKDIR}/catalog.sgml ${CATALOG_MASTER_SGML};\
X	fi
X	@if [ -r ${CATALOG_PORTS_SGML} ]; then\
X	  echo "Skipped: ${CATALOG_PORTS_SGML} is already exist.";\
X	else\
X	  ${INSTALL_DATA} ${WRKDIR}/catalog.ports.sgml ${CATALOG_PORTS_SGML};\
X	fi
X	@if [ -r ${CATALOG_MASTER_XML} ]; then\
X	  ${WRKSRC}/bin/xmlcatmgr -c ${CATALOG_MASTER_XML} add nextCatalog catalog.ports;\
X	else\
X	  ${INSTALL_DATA} ${WRKDIR}/catalog.xml ${CATALOG_MASTER_XML};\
X	fi
X	@if [ -r ${CATALOG_PORTS_XML} ]; then\
X	  echo "Skipped: ${CATALOG_PORTS_XML} is already exist.";\
X	else\
X	  ${INSTALL_DATA} ${WRKDIR}/catalog.ports.xml ${CATALOG_PORTS_XML};\
X	fi
X
X.include <bsd.port.mk>
END-of-xmlcatmgr/Makefile
echo x - xmlcatmgr/distinfo
sed 's/^X//' >xmlcatmgr/distinfo << 'END-of-xmlcatmgr/distinfo'
XMD5 (xmlcatmgr-0.2.tar.gz) = cac49c33adf3d70ae5626cfe58d0aa6e
END-of-xmlcatmgr/distinfo
echo x - xmlcatmgr/pkg-plist
sed 's/^X//' >xmlcatmgr/pkg-plist << 'END-of-xmlcatmgr/pkg-plist'
X@comment $FreeBSD$
Xbin/xmlcatmgr
Xshare/sgml/catalog
Xshare/sgml/catalog.ports
Xshare/xml/catalog
Xshare/xml/catalog.ports
X@dirrm share/sgml
X@dirrm share/xml
END-of-xmlcatmgr/pkg-plist
echo x - xmlcatmgr/pkg-descr
sed 's/^X//' >xmlcatmgr/pkg-descr << 'END-of-xmlcatmgr/pkg-descr'
Xxmlcatmgr is a command line script used to manipulate SGML and XML catalogs.
XIt is designed with simplicity in mind:  it does not depend on external
Xprograms nor libraries, so it is ideal to manage catalog files from inside
Xpkgsrc.  It is also useful to handle shared directories like share/sgml and
Xshare/xml.
X
XXML catalogs are files that contain mappings from public identifiers to
Xsystem identifiers.  This allows XML parsers to locate public identifiers
Xin the local system.
X
END-of-xmlcatmgr/pkg-descr
echo x - xmlcatmgr/pkg-message
sed 's/^X//' >xmlcatmgr/pkg-message << 'END-of-xmlcatmgr/pkg-message'
XThe following catalogs are installed:
X
X 1) ${PREFIX}/share/sgml/catalog
X
X   The top level catalog for SGML stuff.  This is not changed
X   by ports/packages but textproc/xmlcatmgr.
X
X 2) ${PREFIX}/share/sgml/catalog.ports
X
X   The catalog is for handling SGML stuff installed under
X   ${PREFIX}/share/sgml.  This is changed by ports/packages.
X
X 3) ${PREFIX}/share/xml/catalog
X
X   The top level catalog for XML stuff.  This is not changed
X   by ports/packages but textproc/xmlcatmgr.
X
X 4) ${PREFIX}/share/xml/catalog.ports
X
X   The catalog is for handling XML stuff installed under
X   ${PREFIX}/share/xml.  This is changed by ports/packages.
X
END-of-xmlcatmgr/pkg-message
exit

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200306271148.h5RBmqfI099460>