summaryrefslogtreecommitdiff
path: root/textproc/xmlcatmgr
diff options
context:
space:
mode:
authorjmmv <jmmv>2003-12-23 11:45:05 +0000
committerjmmv <jmmv>2003-12-23 11:45:05 +0000
commitd0e9105806d3a20c2e61a950aae1e7c60734e3f0 (patch)
treead20efbeb3e8d13ee4fe64a94d2a57e43fd6b09b /textproc/xmlcatmgr
parent69029c1a00cb9d72852f548221354e4c76cea098 (diff)
downloadpkgsrc-d0e9105806d3a20c2e61a950aae1e7c60734e3f0.tar.gz
Update to 2.0alpha1. This is the first version of the development branch.
I'm updating the package to this version because it should fix many portability issues (avoiding the installation of GNU tools), and because it is a lot safer when modifying existing catalog files (not line oriented any more and with real file locking). I've tested the program under several other systems and platforms (including FreeBSD, Linux and Solaris, the later with the sunpro compiler too), and it built and worked fine. Thanks to simonb@ for testing under an Alpha system with pkgsrc. Change log follows: Released on 2003/12/23, its state was alpha. * xmlcatmgr has been completely rewritten in C. Even though, command line compatibility has been kept, so that existing scripts using this program do not break. * Buildtool is not used any more. A custom build infrastructure has been implemented, as something small and very portable was needed. * Added the `lookup' action, used to search for entries in catalogs. * Added real parsers to manipulate SGML and XML catalogs. The program is not line oriented any more, thus beeing a lot more flexible. * Multiple race conditions fixed, which were unavoidable from a shell script. * Better handling of special characters and spaces in strings, difficult to handle from shell scripts.
Diffstat (limited to 'textproc/xmlcatmgr')
-rw-r--r--textproc/xmlcatmgr/Makefile39
-rw-r--r--textproc/xmlcatmgr/PLIST3
-rw-r--r--textproc/xmlcatmgr/distinfo6
3 files changed, 25 insertions, 23 deletions
diff --git a/textproc/xmlcatmgr/Makefile b/textproc/xmlcatmgr/Makefile
index 4f1e96a8a99..1d816056624 100644
--- a/textproc/xmlcatmgr/Makefile
+++ b/textproc/xmlcatmgr/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.12 2003/12/16 22:45:33 jmmv Exp $
+# $NetBSD: Makefile,v 1.13 2003/12/23 11:45:05 jmmv Exp $
#
-DISTNAME= xmlcatmgr-1.2
+DISTNAME= xmlcatmgr-2.0alpha1
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=xmlcatmgr/}
@@ -9,19 +9,17 @@ MAINTAINER= jmmv@NetBSD.org
HOMEPAGE= http://xmlcatmgr.sourceforge.net/
COMMENT= XML (and SGML) catalog manager
+HAS_CONFIGURE= YES
USE_BUILDLINK2= YES
USE_PKGINSTALL= YES
-USE_GNU_TOOLS= awk
-
-MAKEFILE= Makefile.boot
-MAKE_ENV+= BT_PREFIX="${PREFIX}"
-MAKE_ENV+= BT_PROG_AWK="${AWK}"
-MAKE_ENV+= BT_PROG_GREP="${GREP}"
-MAKE_ENV+= BT_PROG_SH="${SH}"
-MAKE_ENV+= BT_DIR_CATALOG="${PKG_SYSCONFDIR}/xml"
-MAKE_ENV+= BT_INSTALL_DIR="${INSTALL_DATA_DIR}"
-MAKE_ENV+= BT_INSTALL_BIN="${INSTALL_SCRIPT}"
-MAKE_ENV+= BT_INSTALL_DATA="${INSTALL_DATA}"
+
+CONFIGURE_ARGS+= -p ${PREFIX}
+CONFIGURE_ARGS+= -c ${PKG_SYSCONFDIR}/xml/catalog
+CONFIGURE_ENV+= SED="${SED}"
+CONFIGURE_ENV+= INSTALL_DATA="${INSTALL_DATA}"
+CONFIGURE_ENV+= INSTALL_DIR="${INSTALL_DATA_DIR}"
+CONFIGURE_ENV+= INSTALL_PROGRAM="${INSTALL_PROGRAM}"
+CONFIGURE_SCRIPT= ${WRKSRC}/configure.sh
OWN_DIRS= ${PKG_SYSCONFDIR}/sgml ${PKG_SYSCONFDIR}/xml
EGDIR= ${PREFIX}/share/examples/xmlcatmgr
@@ -31,16 +29,19 @@ MAKE_DIRS= ${PREFIX}/share/sgml ${PREFIX}/share/xml
SUPPORT_FILES= ${EGDIR}/catalog.share.sgml ${PREFIX}/share/sgml/catalog
SUPPORT_FILES+= ${EGDIR}/catalog.share.xml ${PREFIX}/share/xml/catalog
+BUILD_DIRS= ${WRKSRC}/work
+INSTALL_DIRS= ${WRKSRC}/work
+
post-build:
@${ECHO} "Creating SGML catalogs..."
- @${WRKSRC}/bin/xmlcatmgr.sh -sc ${WRKDIR}/catalog.etc.sgml create
- @${WRKSRC}/bin/xmlcatmgr.sh -sc ${WRKDIR}/catalog.sgml create
- @${WRKSRC}/bin/xmlcatmgr.sh -sc ${WRKDIR}/catalog.etc.sgml add \
+ @${WRKSRC}/work/xmlcatmgr -sc ${WRKDIR}/catalog.etc.sgml create
+ @${WRKSRC}/work/xmlcatmgr -sc ${WRKDIR}/catalog.sgml create
+ @${WRKSRC}/work/xmlcatmgr -sc ${WRKDIR}/catalog.etc.sgml add \
CATALOG ${PREFIX}/share/sgml/catalog
@${ECHO} "Creating XML catalogs..."
- @${WRKSRC}/bin/xmlcatmgr.sh -c ${WRKDIR}/catalog.etc.xml create
- @${WRKSRC}/bin/xmlcatmgr.sh -c ${WRKDIR}/catalog.xml create
- @${WRKSRC}/bin/xmlcatmgr.sh -c ${WRKDIR}/catalog.etc.xml add \
+ @${WRKSRC}/work/xmlcatmgr -c ${WRKDIR}/catalog.etc.xml create
+ @${WRKSRC}/work/xmlcatmgr -c ${WRKDIR}/catalog.xml create
+ @${WRKSRC}/work/xmlcatmgr -c ${WRKDIR}/catalog.etc.xml add \
nextCatalog ${PREFIX}/share/xml/catalog
post-install:
diff --git a/textproc/xmlcatmgr/PLIST b/textproc/xmlcatmgr/PLIST
index 5b6c8c3ae67..336795a92b1 100644
--- a/textproc/xmlcatmgr/PLIST
+++ b/textproc/xmlcatmgr/PLIST
@@ -1,10 +1,11 @@
-@comment $NetBSD: PLIST,v 1.5 2003/10/13 12:12:57 jmmv Exp $
+@comment $NetBSD: PLIST,v 1.6 2003/12/23 11:45:05 jmmv Exp $
bin/xmlcatmgr
man/man1/xmlcatmgr.1
share/doc/${PKGNAME}/CHANGES
share/doc/${PKGNAME}/COPYING
share/doc/${PKGNAME}/PEOPLE
share/doc/${PKGNAME}/README
+share/doc/${PKGNAME}/TODO
share/examples/xmlcatmgr/catalog.etc.sgml
share/examples/xmlcatmgr/catalog.etc.xml
share/examples/xmlcatmgr/catalog.share.sgml
diff --git a/textproc/xmlcatmgr/distinfo b/textproc/xmlcatmgr/distinfo
index a2a846dfcef..8210927774d 100644
--- a/textproc/xmlcatmgr/distinfo
+++ b/textproc/xmlcatmgr/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.6 2003/12/16 22:45:33 jmmv Exp $
+$NetBSD: distinfo,v 1.7 2003/12/23 11:45:05 jmmv Exp $
-SHA1 (xmlcatmgr-1.2.tar.gz) = 2d59d667163ef8488825e89c954e97eb6c2a6bb0
-Size (xmlcatmgr-1.2.tar.gz) = 8448 bytes
+SHA1 (xmlcatmgr-2.0alpha1.tar.gz) = ad6f449cdfbb217abed6f0bdf63f1e02e3a09262
+Size (xmlcatmgr-2.0alpha1.tar.gz) = 21392 bytes