# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-text/htp/htp-1.15.ebuild,v 1.4 2005/01/01 16:21:12 eradicator Exp $ inherit distutils eutils DESCRIPTION="An HTML preprocessor" HOMEPAGE="http://htp.sourceforge.net/" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" LICENSE="Clarified-Artistic" SLOT="0" KEYWORDS="~x86 ~amd64 ~ppc ~sparc ~alpha" IUSE="" DEPEND="virtual/libc" RDEPEND="virtual/libc" # HTP does not use autoconf, have to set options defined in Makefile.config src_unpack() { unpack ${A} || die cd ${S} # Patch to remove meta-generator tag with "ego-gratifying Easter egg": epatch ${FILESDIR}/easteregg.patch # Patch to make compilation on amd64 possible epatch ${FILESDIR}/fix-amd64.patch } src_compile() { emake CCOPT="-c ${CFLAGS}" || die } src_install() { make DESTDIR="${D}" prefix="${D}/usr" pkgdocdir="${D}/usr/share/doc/${PF}" \ install || die }