# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-text/htmltidy/htmltidy-0.8.4.ebuild,v 1.13 2004/07/13 22:05:14 agriffis Exp $ # convert from normalized gentoo version number to htmltidy's wacky date thing month=(dmy jan feb mar apr may jun jul aug sep oct nov dec) parts=(${PV//./ }) vers=$(printf "%d%s%02d" ${parts[2]} ${month[${parts[1]}]} ${parts[0]}) MY_P=tidy${vers} S=${WORKDIR}/${MY_P} DESCRIPTION="fix mistakes and tidy up sloppy editing in HTML and XML" SRC_URI="mirror://sourceforge/tidy/${MY_P}.tgz" HOMEPAGE="http://tidy.sourceforge.net/" SLOT="0" KEYWORDS="x86 sparc" IUSE="" LICENSE="GPL-2" DEPEND="" src_unpack() { unpack ${A} cd ${S} # fix man page install path and skip "chown" t=Makefile cp $t $t.orig sed 's:)man/:)share/man/:; s:chgrp\|chown:#&:' $t.orig > $t } src_compile() { emake CFLAGS="${CFLAGS}" || die "emake failed" } src_install() { dodir /usr/bin dodir /usr/share/man/man1 make INSTALLDIR="${D}/usr/" install || die dohtml -a html,gif * }