summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Maier <tamiko@gentoo.org>2017-05-26 11:05:49 -0500
committerMatthias Maier <tamiko@gentoo.org>2017-05-26 11:05:49 -0500
commitac11add67bae4ccced3e579c8db38e5a91644ae8 (patch)
treeae7519bca45ff99dbee0a76d174d18997aaec736 /dev-util/numdiff
parentdev-libs/icu: Add backport for bug 616468 (diff)
downloadgentoo-ac11add67bae4ccced3e579c8db38e5a91644ae8.tar.gz
gentoo-ac11add67bae4ccced3e579c8db38e5a91644ae8.tar.bz2
gentoo-ac11add67bae4ccced3e579c8db38e5a91644ae8.zip
dev-util/numdiff: Initial commit, move from science overlay
Package-Manager: Portage-2.3.5, Repoman-2.3.2
Diffstat (limited to 'dev-util/numdiff')
-rw-r--r--dev-util/numdiff/Manifest1
-rw-r--r--dev-util/numdiff/metadata.xml19
-rw-r--r--dev-util/numdiff/numdiff-5.9.0.ebuild40
3 files changed, 60 insertions, 0 deletions
diff --git a/dev-util/numdiff/Manifest b/dev-util/numdiff/Manifest
new file mode 100644
index 000000000000..1f4f0ff96957
--- /dev/null
+++ b/dev-util/numdiff/Manifest
@@ -0,0 +1 @@
+DIST numdiff-5.9.0.tar.gz 915117 SHA256 87284a117944723eebbf077f857a0a114d818f8b5b54d289d59e73581194f5ef SHA512 7be7aad30afbb2a964046815807be0d9149edd18364660443220ce7032248cf83bf840eaf89e19193c8c68ad075cfa81759301574ed73151526e4eea34d33f86 WHIRLPOOL b3fd89d4d4941dc2097aaef64b4a154618b1fdf6ebe72286f36b52464fd2fe222ae171401923ed96371244a00e584d4030a9c5f3bcfb67e2dc6164a4736406c7
diff --git a/dev-util/numdiff/metadata.xml b/dev-util/numdiff/metadata.xml
new file mode 100644
index 000000000000..67838213dfc0
--- /dev/null
+++ b/dev-util/numdiff/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>tamiko@gentoo.org</email>
+ <name>Matthias Maier</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>sci@gentoo.org</email>
+ <name>Gentoo Science Project</name>
+ </maintainer>
+ <longdescription>
+ numdiff is a program that can be used to compare putatively similar files
+ line by line and field by field, ignoring small numeric differences
+ or/and different numeric formats. Equivalently, numdiff is a program with
+ the capability to appropriately compare files containing numerical fields
+ (and not only).
+</longdescription>
+</pkgmetadata>
diff --git a/dev-util/numdiff/numdiff-5.9.0.ebuild b/dev-util/numdiff/numdiff-5.9.0.ebuild
new file mode 100644
index 000000000000..5645f7f98752
--- /dev/null
+++ b/dev-util/numdiff/numdiff-5.9.0.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="File comparision, ignoring small numeric differences and formats"
+HOMEPAGE="http://www.nongnu.org/numdiff/"
+SRC_URI="http://savannah.nongnu.org/download/numdiff/${P}.tar.gz"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+nls +gmp"
+
+RDEPEND="
+ gmp? ( dev-libs/gmp:0 )
+ nls? ( sys-devel/gettext )
+ !dev-util/ndiff"
+
+DEPEND="${RDEPEND}"
+
+src_configure() {
+ local myeconfargs=(
+ $(use_enable gmp)
+ $(use_enable nls)
+ --enable-optimization
+ )
+ econf ${myeconfargs[@]}
+}
+
+src_install() {
+ default
+
+ # Remove some empty folders:
+ rm -r "${ED}"/usr/share/locale || die
+
+ #Fix up wrong installation paths:
+ mv "${ED}"/usr/share/doc/${P}/{numdiff/numdiff.{html,pdf,txt*},} || die
+ rm -r "${ED}"/usr/share/doc/${P}/numdiff || die
+}