From d82032cc0f54424138037abd985ecd11570b4da5 Mon Sep 17 00:00:00 2001 From: Joe Marcus Clarke Date: Mon, 3 Jun 2002 20:17:37 +0000 Subject: Set the default XML catalog location to the correct path. Bump PORTREVISION. --- textproc/libxml2/Makefile | 5 +++++ textproc/libxml2/files/patch-catalog.c | 15 +++++++++++++++ textproc/libxml2/files/patch-xmlcatalog.c | 11 +++++++++++ 3 files changed, 31 insertions(+) create mode 100644 textproc/libxml2/files/patch-catalog.c create mode 100644 textproc/libxml2/files/patch-xmlcatalog.c (limited to 'textproc/libxml2') diff --git a/textproc/libxml2/Makefile b/textproc/libxml2/Makefile index 5fb6303ed94d..cfb7adc52ac5 100644 --- a/textproc/libxml2/Makefile +++ b/textproc/libxml2/Makefile @@ -7,6 +7,7 @@ PORTNAME= libxml2 PORTVERSION= 2.4.22 +PORTREVISION= 1 CATEGORIES= textproc gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= stable/sources/libxml @@ -50,4 +51,8 @@ pre-patch: @find ${WRKSRC} -name Makefile.in | xargs ${PERL} -pi -e \ 's|\$\(libdir\)/pkgconfig|\$\(prefix\)/libdata/pkgconfig|g' +post-patch: + @${PERL} -pi -e 's|\%\%LOCALBASE\%\%|${LOCALBASE}|g' \ + ${WRKSRC}/catalog.c ${WRKSRC}/xmlcatalog.c + .include diff --git a/textproc/libxml2/files/patch-catalog.c b/textproc/libxml2/files/patch-catalog.c new file mode 100644 index 000000000000..a567a2fe728b --- /dev/null +++ b/textproc/libxml2/files/patch-catalog.c @@ -0,0 +1,15 @@ +--- catalog.c.orig Mon Jun 3 15:28:28 2002 ++++ catalog.c Mon Jun 3 15:29:03 2002 +@@ -56,10 +56,10 @@ + #define XML_URN_PUBID "urn:publicid:" + #define XML_CATAL_BREAK ((xmlChar *) -1) + #ifndef XML_XML_DEFAULT_CATALOG +-#define XML_XML_DEFAULT_CATALOG "file:///etc/xml/catalog" ++#define XML_XML_DEFAULT_CATALOG "file://%%LOCALBASE%%/share/xml/catalog" + #endif + #ifndef XML_SGML_DEFAULT_CATALOG +-#define XML_SGML_DEFAULT_CATALOG "file:///etc/sgml/catalog" ++#define XML_SGML_DEFAULT_CATALOG "file://%%LOCALBASE%%/share/sgml/catalog" + #endif + + static int xmlExpandCatalog(xmlCatalogPtr catal, const char *filename); diff --git a/textproc/libxml2/files/patch-xmlcatalog.c b/textproc/libxml2/files/patch-xmlcatalog.c new file mode 100644 index 000000000000..dea513899b5b --- /dev/null +++ b/textproc/libxml2/files/patch-xmlcatalog.c @@ -0,0 +1,11 @@ +--- xmlcatalog.c.orig Mon Jun 3 15:30:00 2002 ++++ xmlcatalog.c Mon Jun 3 15:30:17 2002 +@@ -41,7 +41,7 @@ + + #ifdef LIBXML_CATALOG_ENABLED + +-#define XML_SGML_DEFAULT_CATALOG "/etc/sgml/catalog" ++#define XML_SGML_DEFAULT_CATALOG "%%LOCALBASE%%/share/sgml/catalog" + + /************************************************************************ + * * -- cgit v1.2.3