diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-util/numdiff | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-util/numdiff')
-rw-r--r-- | dev-util/numdiff/Manifest | 4 | ||||
-rw-r--r-- | dev-util/numdiff/files/numdiff-5.9.0-fix-build-system.patch | 166 | ||||
-rw-r--r-- | dev-util/numdiff/metadata.xml | 19 | ||||
-rw-r--r-- | dev-util/numdiff/numdiff-5.9.0.ebuild | 40 |
4 files changed, 229 insertions, 0 deletions
diff --git a/dev-util/numdiff/Manifest b/dev-util/numdiff/Manifest new file mode 100644 index 000000000000..32f70e51195b --- /dev/null +++ b/dev-util/numdiff/Manifest @@ -0,0 +1,4 @@ +AUX numdiff-5.9.0-fix-build-system.patch 6824 BLAKE2B ab87d5f4df3df3077ccc182bcda77ab3c8eb707353d7365eaca391373bc371e2f15274eee2d2e82956a38e9d2bd61f15fee424b3a475a97d822f7ff041dce651 SHA512 4ae5dcb4534b11ed54d3ef8f44b48ec5a20b7c4eb747bd14be9c7ba078c1e3cfbd107a3c1da1dabc4aba5881e1b14e2decef41cce6d4a06e8e5c1a780ccf2818 +DIST numdiff-5.9.0.tar.gz 915117 BLAKE2B 3f1edda377f43a9658bb62de1bfc02c8ff26f93f934628d5ac815c68b30e8817b9e004821aaa8c741686af4641993defd20f48e241bbd91b1f8c1b6edb4502c4 SHA512 7be7aad30afbb2a964046815807be0d9149edd18364660443220ce7032248cf83bf840eaf89e19193c8c68ad075cfa81759301574ed73151526e4eea34d33f86 +EBUILD numdiff-5.9.0.ebuild 865 BLAKE2B 9dcfeaf4b95610b5231da7f97c08eb2eb8531855a054309841adc8624d7fd027b54e42bff742ff4e61764a74baa72a5fe8038a682e197fa730f32d9063b5c83d SHA512 03c04118f5e0e3f30b5cba27e0881646163e8ee62634519682a46446fa7f93df6a5f404328aeaecb9cbd6b2d86d320b07c0e98d161d0b4607fd32de5cbe6497c +MISC metadata.xml 728 BLAKE2B b7459ab987baa5670b7ef5e050cf226ae89eb309887b1b950a3c363a231de229a594d8648aa6a32a9338a13a86025b43172c2c8e60a4c1b4c563a898e11e765a SHA512 f3480f48dd59ec51ae287c3a450fded09688865280f3b8e5d61b9b80d5565e75aee5ac9a5b945dd4e4ea00733709961f58e3ca09b793d3e3c1e4642f9bb0fd31 diff --git a/dev-util/numdiff/files/numdiff-5.9.0-fix-build-system.patch b/dev-util/numdiff/files/numdiff-5.9.0-fix-build-system.patch new file mode 100644 index 000000000000..5bbeba5f8f9d --- /dev/null +++ b/dev-util/numdiff/files/numdiff-5.9.0-fix-build-system.patch @@ -0,0 +1,166 @@ +--- a/configure.ac ++++ b/configure.ac +@@ -24,7 +24,7 @@ + + AC_INIT(Numdiff, 5.9, <ivprimi at libero dot it>, numdiff) + AC_CONFIG_SRCDIR(numdiff.h) +-AC_CONFIG_HEADER(config.h) ++AC_CONFIG_HEADERS(config.h) + + dnl -------------------------------------- + dnl My own flags +@@ -82,6 +82,7 @@ + + AC_ARG_ENABLE(nls, [ --enable-nls turn on Natural Language Support [default=yes]], + , enable_nls=yes) ++AC_SUBST([enable_nls]) + + AC_ARG_ENABLE(gmp, [ --enable-gmp turn on use of GNU MP [default=yes]], + , enable_gmp=yes) +--- a/Makefile.in ++++ b/Makefile.in +@@ -19,18 +19,18 @@ + prefix =@prefix@ + exec_prefix =@exec_prefix@ + bindir =@bindir@ +-docdir =@docdir@ +-localedir =@localedir@ +-infodir =@infodir@ ++datarootdir =@datarootdir@ ++docdir =@docdir@ ++localedir =@localedir@ ++infodir =@infodir@ ++htmldir =@htmldir@ ++pdfdir =@pdfdir@ + mandir =@mandir@ ++man1dir =$(mandir)/man1 + srcdir =@srcdir@ + VPATH =@srcdir@ + +-BINDIR=$(bindir) +-DOCDIR=$(docdir)/$(PACKAGE) +-INFODIR=$(infodir) +-LOCALEDIR=$(localedir) +-MANDIR=$(mandir)/man1 ++enable_nls =@enable_nls@ + + CC=@CC@ + @SET_MAKE@ +@@ -62,7 +62,7 @@ + HELP2MAN=help2man -s 1 -m "User Commands" + + # flags for the preprocessor: +-CPPFLAGS =-DPACKAGE="\"$(PACKAGE)\"" -DPACKAGE2="\"$(PACKAGETWO)\"" -DLOCALEDIR="\"$(LOCALEDIR)\"" -I$(srcdir) -I. @CPPFLAGS@ ++CPPFLAGS =-DPACKAGE="\"$(PACKAGE)\"" -DPACKAGE2="\"$(PACKAGETWO)\"" -DLOCALEDIR="\"$(localedir)\"" -I$(srcdir) -I. @CPPFLAGS@ + # flags for the C compiler: + CFLAGS =@CFLAGS@ + +@@ -77,7 +77,7 @@ + SOURCESONE=$(srcdir)/analyze.c $(srcdir)/arith.c $(srcdir)/bitvector.c $(srcdir)/cmpbuf.c $(srcdir)/cmpfns.c $(srcdir)/error.c $(srcdir)/errors.c $(srcdir)/exitfail.c $(srcdir)/flags.c $(srcdir)/getopt.c $(srcdir)/getopt1.c $(srcdir)/inout.c $(srcdir)/io.c $(srcdir)/linesplit.c $(srcdir)/main.c $(srcdir)/new.c $(srcdir)/number.c $(srcdir)/numutil.c $(srcdir)/options.c $(srcdir)/read_line.c $(srcdir)/setmode.c $(srcdir)/side.c $(srcdir)/thrlist.c $(srcdir)/util.c $(srcdir)/xalloc-die.c $(srcdir)/xmalloc.c + OBJECTSTWO=./bitvector.o ./getopt.o ./getopt1.o ./linesplit.o ./ndselect.o + SOURCESTWO=$(srcdir)/bitvector.c $(srcdir)/getopt.c $(srcdir)/getopt1.c $(srcdir)/linesplit.c $(srcdir)/ndselect.c $(srcdir)/read_line.c +-DOCS=$(srcdir)/AUTHORS $(srcdir)/BUGS $(srcdir)/COPYING $(srcdir)/ChangeLog $(srcdir)/INSTALL $(srcdir)/NEWS $(srcdir)/README $(srcdir)/TODO ++DOCS=$(srcdir)/AUTHORS $(srcdir)/BUGS $(srcdir)/ChangeLog $(srcdir)/NEWS $(srcdir)/README $(srcdir)/TODO + TEXISRC=$(srcdir)/docs/numdiff.txi + FDLTEXI=$(srcdir)/docs/fdl.texi + HTMLFILE=$(srcdir)/docs/numdiff.html +@@ -91,7 +91,7 @@ + PACKAGETWO_POT=$(srcdir)/po/$(PACKAGETWO)/$(PACKAGETWO).pot + PACKAGE_IT=$(srcdir)/po/$(PACKAGE)/it + PACKAGETWO_IT=$(srcdir)/po/$(PACKAGETWO)/it +-IT_LOC_DIR="$(DESTDIR)$(LOCALEDIR)/it/LC_MESSAGES" ++IT_LOC_DIR="$(DESTDIR)$(localedir)/it/LC_MESSAGES" + + GARBAGE=./numdiff.aux ./numdiff.cp ./numdiff.cps ./numdiff.fn ./numdiff.ky ./numdiff.log ./numdiff.pg ./numdiff.toc ./numdiff.tp ./numdiff.vr ./config.log ./config.status ./config.h.in.save ./config.h + +@@ -193,48 +193,61 @@ + # Rules needed by the installation process. + + installdirs: all +- $(MKDIR) "$(DESTDIR)$(BINDIR)" +- $(MKDIR) "$(DESTDIR)$(DOCDIR)" +- $(MKDIR) "$(DESTDIR)$(INFODIR)" +- $(MKDIR) "$(DESTDIR)$(MANDIR)" +- $(MKDIR) $(IT_LOC_DIR) +- +-install: installdirs html info pdf txt +- $(INSTALL_PROGRAM) $(PACKAGE) $(PACKAGETWO) "$(DESTDIR)$(BINDIR)" +- $(INSTALL_DATA) $(DOCS) "$(DESTDIR)$(DOCDIR)" +- $(INSTALL_DATA) $(MANFILE) "$(DESTDIR)$(MANDIR)" +- $(INSTALL_DATA) $(MANFILETWO) "$(DESTDIR)$(MANDIR)" +- $(INSTALL_DATA) $(HTMLFILE) "$(DESTDIR)$(DOCDIR)" +- $(INSTALL_DATA) $(PDFFILE) "$(DESTDIR)$(DOCDIR)" +- $(INSTALL_DATA) $(TXTFILE) "$(DESTDIR)$(DOCDIR)" ++ $(MKDIR) "$(DESTDIR)$(bindir)" ++ $(MKDIR) "$(DESTDIR)$(docdir)" ++ $(MKDIR) "$(DESTDIR)$(htmldir)" ++ $(MKDIR) "$(DESTDIR)$(pdfdir)" ++ $(MKDIR) "$(DESTDIR)$(infodir)" ++ $(MKDIR) "$(DESTDIR)$(mandir)" ++ $(MKDIR) "$(DESTDIR)$(man1dir)" ++ if [ $(enable_nls) == yes ]; then \ ++ $(MKDIR) "$(DESTDIR)$(localedir)"/it/LC_MESSAGES; \ ++ fi ++ ++ifeq ($(enable_nls),yes) ++opt_targets = install-nls ++endif ++install: installdirs html info pdf txt $(opt_targets) ++ $(INSTALL_PROGRAM) $(PACKAGE) $(PACKAGETWO) "$(DESTDIR)$(bindir)" ++ $(INSTALL_DATA) $(DOCS) "$(DESTDIR)$(docdir)" ++ $(INSTALL_DATA) $(MANFILE) "$(DESTDIR)$(man1dir)" ++ $(INSTALL_DATA) $(MANFILETWO) "$(DESTDIR)$(man1dir)" ++ $(INSTALL_DATA) $(HTMLFILE) "$(DESTDIR)$(htmldir)" ++ $(INSTALL_DATA) $(PDFFILE) "$(DESTDIR)$(pdfdir)" ++ $(INSTALL_DATA) $(TXTFILE) "$(DESTDIR)$(docdir)" + $(POST_INSTALL) +- $(INSTALL_DATA) $(INFOFILE) "$(DESTDIR)$(INFODIR)" +- $(INSTALL_DATA) $(INFOFILE).gz "$(DESTDIR)$(INFODIR)" ++ $(INSTALL_DATA) $(INFOFILE) "$(DESTDIR)$(infodir)" ++ $(INSTALL_DATA) $(INFOFILE).gz "$(DESTDIR)$(infodir)" + if $(SHELL) -c "$(INSTINFO) --version" \ + >/dev/null 2>&1; then \ +- $(INSTINFO) --dir-file="$(DESTDIR)$(INFODIR)/dir" "$(DESTDIR)$(INFODIR)/numdiff.info"; \ ++ $(INSTINFO) --dir-file="$(DESTDIR)$(infodir)/dir" "$(DESTDIR)$(infodir)/numdiff.info"; \ + else true; fi + +-install-nls: install ++install-nls: installdirs + $(INSTALL_DATA) $(PACKAGE_IT).mo $(IT_LOC_DIR)/$(PACKAGE).mo + $(INSTALL_DATA) $(PACKAGETWO_IT).mo $(IT_LOC_DIR)/$(PACKAGETWO).mo + + # Rules needed to removed the installed stuff + + uninstall: +- $(RM) "$(DESTDIR)$(BINDIR)/$(PACKAGE)" +- $(RM) "$(DESTDIR)$(BINDIR)/$(PACKAGETWO)" +- $(RM) "$(DESTDIR)$(DOCDIR)"/* +- $(RMDIR) "$(DESTDIR)$(DOCDIR)" +- $(INSTINFO) --delete "$(DESTDIR)$(INFODIR)/numdiff.info" "$(DESTDIR)$(INFODIR)/dir" +- $(RM) "$(DESTDIR)$(INFODIR)/numdiff.info.gz" +- $(RM) "$(DESTDIR)$(INFODIR)/numdiff.info" +- $(RM) "$(DESTDIR)$(MANDIR)/$(PACKAGE).1" +- $(RM) "$(DESTDIR)$(MANDIR)/$(PACKAGETWO).1" ++ $(RM) "$(DESTDIR)$(bindir)/$(PACKAGE)" ++ $(RM) "$(DESTDIR)$(bindir)/$(PACKAGETWO)" ++ $(RM) "$(DESTDIR)$(docdir)"/* ++ $(RMDIR) "$(DESTDIR)$(docdir)" ++ $(RM) "$(DESTDIR)$(htmldir)"/* ++ $(RMDIR) "$(DESTDIR)$(htmldir)" ++ $(RM) "$(DESTDIR)$(pdfdir)"/* ++ $(RMDIR) "$(DESTDIR)$(pdfdir)" ++ $(INSTINFO) --delete "$(DESTDIR)$(infodir)/numdiff.info" "$(DESTDIR)$(infodir)/dir" ++ $(RM) "$(DESTDIR)$(infodir)/numdiff.info.gz" ++ $(RM) "$(DESTDIR)$(infodir)/numdiff.info" ++ $(RM) "$(DESTDIR)$(man1dir)/$(PACKAGE).1" ++ $(RM) "$(DESTDIR)$(man1dir)/$(PACKAGETWO).1" ++ $(RMDIR) "$(DESTDIR)$(mandir)" + + uninstall-nls: uninstall +- $(FIND) "$(DESTDIR)$(LOCALEDIR)" -name '$(PACKAGE).mo' -exec $(RM) \{\} \; +- $(FIND) "$(DESTDIR)$(LOCALEDIR)" -name '$(PACKAGETWO).mo' -exec $(RM) \{\} \; ++ $(FIND) "$(DESTDIR)$(localedir)" -name '$(PACKAGE).mo' -exec $(RM) \{\} \; ++ $(FIND) "$(DESTDIR)$(localedir)" -name '$(PACKAGETWO).mo' -exec $(RM) \{\} \; + + # Cleaning rules + 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..223601ad7bf7 --- /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 + +inherit autotools + +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}" + +PATCHES=( + "${FILESDIR}"/${PN}-5.9.0-fix-build-system.patch +) + +src_prepare() { + default + # yes, it really only needs eautoconf, due to the + # config.h being hand-written, which would be bulldozered + # when running eautoreconf (due to it invoking autoheader) + eautoconf +} + +src_configure() { + econf \ + --enable-optimization \ + $(use_enable gmp) \ + $(use_enable nls) +} |