aboutsummaryrefslogtreecommitdiff
blob: 7628f46d0c2c1385e4433ff9d1a573769d954959 (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
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=4

DESCRIPTION="A diff program that ignores small numeric differences (actually called ndiff)"
HOMEPAGE="http://www.math.utah.edu/~beebe/software/ndiff/"
SRC_URI="ftp://ftp.math.utah.edu/pub/misc/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc"

DEPEND="dev-libs/gmp"
RDEPEND="${DEPEND}"

# Rename the files from ndiff to numdiff, since /usr/bin/ndiff is already
# provided by net-analyzer/nmap:
src_install() {
	newbin ndiff numdiff
	dodoc README* INSTALL ChangeLog
	newman ndiff.man numdiff.1
	if use doc ; then
		newdoc ndiff.html numdiff.html
		newdoc ndiff.pdf numdiff.pdf
		newdoc ndiff.ps numdiff.ps
		newdoc ndiff.txt numdiff.txt
	fi
	insinto /usr/share/${P}
	newins ndiff.awk numdiff.awk
}