diff options
Diffstat (limited to 'app-text/xml2/xml2-0.3.ebuild')
-rw-r--r-- | app-text/xml2/xml2-0.3.ebuild | 42 |
1 files changed, 42 insertions, 0 deletions
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 +} |