summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMamoru Komachi <usata@gentoo.org>2004-11-07 09:49:18 +0000
committerMamoru Komachi <usata@gentoo.org>2004-11-07 09:49:18 +0000
commit0e8c4ae09f6d4a4d7ceac9cb23a446daa3c05bf7 (patch)
treee3cf886b7ce93330e000e10e47dc51d92d085864 /app-text/xml2
parentRevision bump; fixes bug #70307, use tc-getCC, and don't install md5 man page... (diff)
downloadgentoo-2-0e8c4ae09f6d4a4d7ceac9cb23a446daa3c05bf7.tar.gz
gentoo-2-0e8c4ae09f6d4a4d7ceac9cb23a446daa3c05bf7.tar.bz2
gentoo-2-0e8c4ae09f6d4a4d7ceac9cb23a446daa3c05bf7.zip
Initial import. Ebuild submitted by James Rowe <jnrowe@ukfsn.org>; bug #64494.
Diffstat (limited to 'app-text/xml2')
-rw-r--r--app-text/xml2/ChangeLog11
-rw-r--r--app-text/xml2/Manifest3
-rw-r--r--app-text/xml2/files/digest-xml2-0.31
-rw-r--r--app-text/xml2/files/xml2-0.3-libxml2.patch69
-rw-r--r--app-text/xml2/metadata.xml5
-rw-r--r--app-text/xml2/xml2-0.3.ebuild42
6 files changed, 131 insertions, 0 deletions
diff --git a/app-text/xml2/ChangeLog b/app-text/xml2/ChangeLog
new file mode 100644
index 000000000000..1dc57c8d7159
--- /dev/null
+++ b/app-text/xml2/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for app-text/xml2
+# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/xml2/ChangeLog,v 1.1 2004/11/07 09:49:18 usata Exp $
+
+*xml2-0.3 (07 Nov 2004)
+
+ 07 Nov 2004; Mamoru KOMACHI <usata@gentoo.org> +metadata.xml,
+ +files/xml2-0.3-libxml2.patch, +xml2-0.3.ebuild:
+ Initial import. Ebuild submitted by James Rowe <jnrowe@ukfsn.org>;
+ bug #64494.
+
diff --git a/app-text/xml2/Manifest b/app-text/xml2/Manifest
new file mode 100644
index 000000000000..24caf17af652
--- /dev/null
+++ b/app-text/xml2/Manifest
@@ -0,0 +1,3 @@
+MD5 222e1b0d941d49273047cabd84997708 xml2-0.3.ebuild 733
+MD5 a5ff7fd7e95501227c698f69a40d141d files/xml2-0.3-libxml2.patch 1757
+MD5 ea42ef5e0dc89daa228f6fabbce4bae4 files/digest-xml2-0.3 59
diff --git a/app-text/xml2/files/digest-xml2-0.3 b/app-text/xml2/files/digest-xml2-0.3
new file mode 100644
index 000000000000..59cbb2821651
--- /dev/null
+++ b/app-text/xml2/files/digest-xml2-0.3
@@ -0,0 +1 @@
+MD5 8f142a2393bace5edcfea2ad394ef200 xml2-0.3.tar.gz 11553
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
+ {
diff --git a/app-text/xml2/metadata.xml b/app-text/xml2/metadata.xml
new file mode 100644
index 000000000000..06689a1a9114
--- /dev/null
+++ b/app-text/xml2/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>text-markup</herd>
+</pkgmetadata>
diff --git a/app-text/xml2/xml2-0.3.ebuild b/app-text/xml2/xml2-0.3.ebuild
new file mode 100644
index 000000000000..293ade531e3b
--- /dev/null
+++ b/app-text/xml2/xml2-0.3.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/xml2/xml2-0.3.ebuild,v 1.1 2004/11/07 09:49:18 usata Exp $
+
+inherit eutils
+
+DESCRIPTION="Converts XML to line-oriented file format"
+
+HOMEPAGE="http://dan.egnor.name/xml2/"
+
+SRC_URI="http://download.gale.org/${P}.tar.gz"
+
+LICENSE="GPL-2"
+
+SLOT="0"
+
+KEYWORDS="~x86"
+
+IUSE="xml2"
+
+DEPEND="xml2? ( dev-libs/libxml2 )
+ !xml2? ( dev-libs/libxml )"
+
+src_unpack() {
+ unpack ${A}; cd ${S}
+
+ if use xml2 ; then
+ epatch ${FILESDIR}/${P}-libxml2.patch
+ fi
+ sed -i -e "s:CFLAGS=-g -Wall:CFLAGS=${CFLAGS}:" makefile || die
+}
+
+src_compile() {
+ emake || die "make failed"
+}
+
+src_install() {
+ dobin 2csv 2xml csv2 xml2
+ # HTML support symlinks, upstream considers it be necessary
+ dosym /usr/bin/2xml /usr/bin/2html
+ dosym /usr/bin/xml2 /usr/bin/html2
+}