aboutsummaryrefslogtreecommitdiff
blob: 3c06acbf55cc5ea05339c93b46223ed86ef889cf (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-2014 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"
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 used to be
# provided by net-analyzer/nmap, before v4.85:
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
}