summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorjmmv <jmmv>2003-01-11 22:08:42 +0000
committerjmmv <jmmv>2003-01-11 22:08:42 +0000
commitd554dd518b8c45b199df1972fc3cb5eab485b908 (patch)
tree6ea7800a6caea031cb094c296bfcdcc3e49ba3d1 /textproc
parent3983c6fb4c8e5549623842fc20199d0598902514 (diff)
downloadpkgsrc-d554dd518b8c45b199df1972fc3cb5eab485b908.tar.gz
Register the installed catalog file in share/sgml/catalog using xmlcatmgr.
Also set the default catalog to be PKG_SYSCONFDIR/catalog. Bump PKGREVISION to 1.
Diffstat (limited to 'textproc')
-rw-r--r--textproc/sp/Makefile10
-rw-r--r--textproc/sp/PLIST7
-rw-r--r--textproc/sp/distinfo4
-rw-r--r--textproc/sp/patches/patch-aa4
4 files changed, 16 insertions, 9 deletions
diff --git a/textproc/sp/Makefile b/textproc/sp/Makefile
index cf31e9bba1b..3c770faeb64 100644
--- a/textproc/sp/Makefile
+++ b/textproc/sp/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.9 2001/09/27 23:18:47 jlam Exp $
+# $NetBSD: Makefile,v 1.10 2003/01/11 22:08:42 jmmv Exp $
#
DISTNAME= sp-1.3.4
+PKGREVISION= 1
CATEGORIES= textproc
MASTER_SITES= ftp://ftp.jclark.com/pub/sp/ \
ftp://ftp.funet.fi/pub/mirrors/ftp.jclark.com/pub/sp/ \
@@ -18,14 +19,18 @@ COMMENT= SGML System Conforming to International Standard ISO 8879
CONFLICTS+= jade-[0-9]*
CONFLICTS+= opensp-[0-9]*
+USE_BUILDLINK2= YES
+
MAKE_ENV+= INSTALL="${INSTALL}"
+MAKE_ENV+= PKG_SYSCONFDIR="${PKG_SYSCONFDIR}"
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/sp ${PREFIX}/share/sgml/dtd
cd ${WRKSRC}/doc; for n in *.htm ; do ${INSTALL_DATA} $$n ${PREFIX}/share/doc/sp/$n ; done
cd ${WRKSRC}/pubtext; for n in * ; do ${INSTALL_DATA} $$n ${PREFIX}/share/sgml/dtd/$n ; done
cd ${WRKSRC}/lib; ${INSTALL_DATA} libsp.a ${PREFIX}/lib/libsp.a
- ${ECHO} "CATALOG ${PREFIX}/share/sgml/dtd/html.soc" > ${PREFIX}/share/sgml/catalog
+ ${PREFIX}/bin/xmlcatmgr -c ${PREFIX}/share/sgml/catalog add \
+ CATALOG ${PREFIX}/share/sgml/dtd/html.soc
.include "../../mk/bsd.prefs.mk"
@@ -39,4 +44,5 @@ post-patch:
done
.endif
+.include "../../textproc/xmlcatmgr/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/textproc/sp/PLIST b/textproc/sp/PLIST
index 8797accfdfb..9099c1211dc 100644
--- a/textproc/sp/PLIST
+++ b/textproc/sp/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1 2001/10/31 22:58:50 zuntum Exp $
+@comment $NetBSD: PLIST,v 1.2 2003/01/11 22:08:42 jmmv Exp $
bin/nsgmls
bin/sx
bin/spam
@@ -45,7 +45,8 @@ share/sgml/dtd/html.dtd
share/sgml/dtd/html.soc
share/sgml/dtd/xml.dcl
share/sgml/dtd/xml.soc
-share/sgml/catalog
+@exec ${LOCALBASE}/bin/xmlcatmgr -c %D/share/sgml/catalog add CATALOG %D/share/sgml/dtd/html.soc
+@unexec ${LOCALBASE}/bin/xmlcatmgr -c %D/share/sgml/catalog remove %D/share/sgml/dtd/html.soc
@dirrm share/sgml/dtd
-@dirrm share/sgml
+@comment in xmlcatmgr: @dirrm share/sgml
@dirrm share/doc/sp
diff --git a/textproc/sp/distinfo b/textproc/sp/distinfo
index 8b775771a08..40e06e74a74 100644
--- a/textproc/sp/distinfo
+++ b/textproc/sp/distinfo
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.2 2001/04/20 15:05:07 skrll Exp $
+$NetBSD: distinfo,v 1.3 2003/01/11 22:08:42 jmmv Exp $
SHA1 (sp-1.3.4.tar.gz) = e71e96356b4bba269d01b6761d4ae33b4f291377
Size (sp-1.3.4.tar.gz) = 597801 bytes
-SHA1 (patch-aa) = 92e28fa167729580ddac068fb70397abace9901d
+SHA1 (patch-aa) = ee80b5e5e9a9365fe01ed950353650e070c6f2fe
SHA1 (patch-ac) = 012f14a4640db95a1d3708682de04d0d18fae97e
SHA1 (patch-ad) = 4a8f06ac288cf22616825fbcbed2e047fd6bcf5a
diff --git a/textproc/sp/patches/patch-aa b/textproc/sp/patches/patch-aa
index 791a058fc33..fdf43ba50e4 100644
--- a/textproc/sp/patches/patch-aa
+++ b/textproc/sp/patches/patch-aa
@@ -1,4 +1,4 @@
-$NetBSD: patch-aa,v 1.3 1999/12/16 22:03:13 mjl Exp $
+$NetBSD: patch-aa,v 1.4 2003/01/11 22:08:42 jmmv Exp $
--- Makefile.orig Sat Oct 10 06:15:02 1998
+++ Makefile Thu Dec 16 22:42:56 1999
@@ -21,7 +21,7 @@ $NetBSD: patch-aa,v 1.3 1999/12/16 22:03:13 mjl Exp $
# Add -DJADE_MIF to include the Jade MIF backend
XDEFINES=
-DEFINES=-DSP_HAVE_BOOL -DSP_ANSI_CLASS_INST -DSP_MULTI_BYTE $(XDEFINES)
-+DEFINES=-DSP_HAVE_BOOL -DSP_ANSI_CLASS_INST -DSP_MULTI_BYTE $(XDEFINES) -DSGML_CATALOG_FILES_DEFAULT=\"${PREFIX}/share/sgml/catalog\" -DSP_HAVE_LOCALE
++DEFINES=-DSP_HAVE_BOOL -DSP_ANSI_CLASS_INST -DSP_MULTI_BYTE $(XDEFINES) -DSGML_CATALOG_FILES_DEFAULT=\"${PKG_SYSCONFDIR}/catalog\" -DSP_HAVE_LOCALE
CXXFLAGS=-ansi $(DEBUG) $(WARN)
# Flag to pass to CXX to make it output list of dependencies as a Makefile.
CXXDEPGENFLAGS=-MM