summaryrefslogtreecommitdiff
blob: 74259bdf88911b388006616925b089fad12f8ad7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/comparator/comparator-2.3.ebuild,v 1.5 2004/09/03 15:43:14 dholm Exp $

inherit distutils
DESCRIPTION="ESR's utility for making fast comparisons among large source trees"
HOMEPAGE="http://www.catb.org/~esr/comparator/"
SRC_URI="mirror://gentoo/${P}.tar.gz
	 http://www.catb.org/~esr/comparator/${P}.tar.gz"
LICENSE="as-is GPL-2"
SLOT="0"
KEYWORDS="~x86 ~sparc ~ppc"
IUSE=""
#DEPEND='' inherit handles this
DEPEND="${DEPEND} app-text/xmlto"
RDEPEND="${RDEPEND}" #becase I don't want xmlto in here

src_unpack() {
	unpack ${A}
	# we will do this ourselves
	sed -e '/python setup.py install/d' -i ${S}/Makefile
	# Fix the Makefile to accept our CFLAGS
	sed -e "s/CFLAGS  = -O3/CFLAGS  = ${CFLAGS}/" -i ${S}/Makefile
}

src_compile() {
	distutils_src_install
	emake || die "emake failed"
	emake comparator.html scf-standard.html || die "emake docs failed"
}

src_install() {
	distutils_src_install
	einstall ROOT=${D} install || die "einstall failed"
	dohtml *.html
}