# Copyright 1999-2005 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.2 2005/01/01 16:43:31 eradicator 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 }