Package: numdiff Version: 5.2.1 Revision: 1 Maintainer: David Fang # Source: http://savannah.spinellicreations.com/%n/%n-%v.tar.gz Source-MD5: a8f4c3347a20b4effd8a38511729dd55 Source2: http://savannah.spinellicreations.com/%n/%n_tests-1.0.1.tar.gz Source2-MD5: e10dbc3e68445a5bbfd2f452af477847 BuildDepends: << fink-package-precedence, gettext-bin, gettext-tools, gmp5, libgettext8-dev, libiconv-dev, libgnugetopt << Depends: << gmp5-shlibs, libgettext8-shlibs, libiconv, libgnugetopt-shlibs << ConfigureParams: --mandir=%p/share/man --infodir=%p/share/info SetCPPFLAGS: -I%p/include -I%p/share/gettext -I%p/include/gnugetopt SetCFLAGS: -g -O2 -MD SetLDFLAGS: -L%p/lib SetLIBS: -lintl PatchScript: << #/bin/sh -ev # upstream thinks it's a good idea to look for /usr/local sed -i.orig -e '/if test.*\/usr\/local/,/^fi/d' configure # main.c uses a garbage, uninitialized value. bad upstream! sed -i.orig -e '/init_mpa/s|list->iscale|1|' main.c # move some files out of the way in favor of fink's mkdir trash mv getopt* gettext* trash touch getopt{,1}.c # don't update info dir in Makefile, let PostInst do it sed -i.orig -e '/SHELL.*INSTINFO/,/else true; fi/d' Makefile.in << CompileScript: << #!/bin/sh -ev %{default_script} fink-package-precedence --depfile-ext=.d --header --libs . << InfoDocs: numdiff.info DocFiles: << AUTHORS BUGS COPYING* ChangeLog* NEWS README TODO << InstallScript: make install DESTDIR=%d # InfoTest: << TestScript: << #!/bin/sh -ev cd ../numdiff_tests ln -s ../%n-%v/{numdiff,ndselect} . export PATH=`pwd`:$PATH # prompts for diffing binary files [n] yes n | ./runalltests.sh || exit 2 << TestSuiteSize: small << Description: Numerical diff tool DescDetail: << numdiff is a little 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). By default, Numdiff assumes the fields are separated by white-space characters (spaces, horizontal tabulations and newlines), but the user can also specify its list of separators through the option -s, see the User Manual. When you compare a couple of such files, what you want to obtain usually is a list of the numerical fields in the second file which numerically differ from the corresponding fields in the first file. Well known tools like diff, cmp or wdiff can not be used to this purpose: they can not recognize whether a difference between two numerical fields is only due to the notation or is actually a difference of numerical values. Moreover, you could also want to ignore differences in numerical values as long as they do not exceed a certain threshold. In other words, you could desire to neglect all small numerical differences too. However, programs like diff and wdiff can not be used to ignore small numerical differences, since they do not even know what a numerical difference is. That is why I decided to implement Numdiff. In writing this program I was inspired by ndiff, a GPL'ed software by Nelson H. F. Beebe of the Salt Lake City University, see http://www.math.utah.edu/~beebe/software/ndiff ndiff is a good tool and I used it for a while, but I did not completely like the way it works and so numdiff was born. Although ndiff inspired numdiff, they are completely different from the viewpoint of the source code: numdiff has been entirely written from scratch with addition of source code from GNU bc, GNU diff and GNUlib. << DescPort: << Effortless. << DescPackaging: << Standard. << Homepage: http://www.nongnu.org/numdiff/ License: GPL