dev-util/numdiff: Initial commit, move from science overlay

Package-Manager: Portage-2.3.5, Repoman-2.3.2
This commit is contained in:
Matthias Maier
2017-05-26 11:05:49 -05:00
parent 216c7c2dad
commit ac11add67b
3 changed files with 60 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST numdiff-5.9.0.tar.gz 915117 SHA256 87284a117944723eebbf077f857a0a114d818f8b5b54d289d59e73581194f5ef SHA512 7be7aad30afbb2a964046815807be0d9149edd18364660443220ce7032248cf83bf840eaf89e19193c8c68ad075cfa81759301574ed73151526e4eea34d33f86 WHIRLPOOL b3fd89d4d4941dc2097aaef64b4a154618b1fdf6ebe72286f36b52464fd2fe222ae171401923ed96371244a00e584d4030a9c5f3bcfb67e2dc6164a4736406c7

View File

@@ -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>

View File

@@ -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
}