diff options
Diffstat (limited to 'app-text/xml2/files/xml2-0.3-libxml2.patch')
-rw-r--r-- | app-text/xml2/files/xml2-0.3-libxml2.patch | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/app-text/xml2/files/xml2-0.3-libxml2.patch b/app-text/xml2/files/xml2-0.3-libxml2.patch new file mode 100644 index 000000000000..f0e1f37f2af2 --- /dev/null +++ b/app-text/xml2/files/xml2-0.3-libxml2.patch @@ -0,0 +1,69 @@ +diff -pruN a/2xml.c b/2xml.c +--- a/2xml.c 2001-01-02 18:27:07.000000000 +0000 ++++ b/2xml.c 2004-09-15 02:49:23.000000000 +0100 +@@ -24,7 +24,7 @@ + #include <assert.h> + #include <ctype.h> + +-#include <HTMLparser.h> ++#include <libxml/HTMLparser.h> + + int do_html; + int in_tag = 0; +@@ -116,7 +116,7 @@ static void leave(const char *name) + } + } + +-static void characters(const char *stuff,const char *context) ++static void LOCAL_characters(const char *stuff,const char *context) + { + switch (context[0]) { + case '!': +@@ -183,7 +183,7 @@ static void line(char *data) + } + + if (NULL == name && NULL == *ptr && NULL != content) +- characters("\n",context); ++ LOCAL_characters("\n",context); + + release(ptr); + +@@ -204,7 +204,7 @@ static void line(char *data) + } + + *ptr = NULL; +- if (NULL != content) characters(content,context); ++ if (NULL != content) LOCAL_characters(content,context); + } + + int main(int argc,char *argv[]) +diff -pruN a/makefile b/makefile +--- a/makefile 2001-01-31 17:59:53.000000000 +0000 ++++ b/makefile 2004-09-15 02:43:25.000000000 +0100 +@@ -4,9 +4,9 @@ FILES=xml2 html2 2html 2xml csv2 2csv + TAR=xml2-$(VERSION).tar.gz + DIR=xml2-$(VERSION) + +-CFLAGS=-g -Wall `xml-config --cflags` +-# CFLAGS=-O2 `xml-config --cflags` +-LDLIBS=`xml-config --libs` ++CFLAGS=-g -Wall $(shell pkg-config --cflags libxml-2.0) ++# CFLAGS=-O2 $(shell pkg-config --cflags libxml-2.0) ++LDLIBS=$(shell pkg-config --libs libxml-2.0) + + all: $(FILES) + +diff -pruN a/xml2.c b/xml2.c +--- a/xml2.c 2000-03-20 01:01:32.000000000 +0000 ++++ b/xml2.c 2004-09-15 02:41:59.000000000 +0100 +@@ -24,8 +24,8 @@ + #include <string.h> + #include <ctype.h> + +-#include <parser.h> +-#include <HTMLparser.h> ++#include <libxml/parser.h> ++#include <libxml/HTMLparser.h> + + struct node + { |