# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-text/html-xml-utils/html-xml-utils-2.3-r1.ebuild,v 1.10 2004/07/01 11:58:19 eradicator Exp $ DESCRIPTION="A number of simple utilities for manipulating HTML and XML files." SRC_URI="http://www.w3.org/Tools/HTML-XML-utils/${P}.tar.gz" HOMEPAGE="http://www.w3.org/Tools/HTML-XML-utils/" LICENSE="W3C" KEYWORDS="x86 sparc" SLOT="0" IUSE="" DEPEND="virtual/libc" src_unpack() { unpack ${A} cd ${S} cp heap.c heap.c.orig sed -e "s/#define FILE.*/#define FILE __FILE__/" \ -e "s/#define LINE.*/#define LINE __LINE__/" \ < heap.c.orig > heap.c || die } src_install () { make DESTDIR=${D} install || die dodoc AUTHORS ChangeLog COPYING NEWS README TODO # Check bug #27399, the following binary conflicts with # one provided by the 'normalize' package, so we're # renaming this one mv ${D}/usr/bin/normalize ${D}/usr/bin/normalize-html mv ${D}/usr/share/man/man1/normalize.1 \ ${D}/usr/share/man/man1/normalize-html.1 }