Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Feb 2004 16:18:40 +0000
From:      "Stefan A. Deutscher" <sa.deutscher@tiscali.de>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/62221: New port: ndiff numerics diff utility
Message-ID:  <20040201161839.A43478@tiscali.de>
Resent-Message-ID: <200402011510.i11FAM6K065418@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         62221
>Category:       ports
>Synopsis:       New port: ndiff numerics diff utility
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 01 07:10:22 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Stefan A. Deutscher
>Release:        FreeBSD 5.1-RELEASE i386
>Organization:
>Environment:
System: FreeBSD dvorak.asylum.invalid 5.1-RELEASE FreeBSD 5.1-RELEASE #0: Fri Nov 21 21:48:14 CET 2003 root@dvorak.asylum.net:/usr/src/sys/i386/compile/GENERICCAM i386


	Athlon XP-1700
>Description:
	Made a port for ndiff for inclusion in the ports tree
	Passes portlint and multiple make instal/deinstall/package etc. runs
	ndiff is a utility for comparing putatively similar files, ignoring
	small numeric differences
>How-To-Repeat:
	
>Fix:

	shar file attached

--- ndiff-pr.tmp begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	ndiff
#	ndiff/pkg-plist
#	ndiff/pkg-descr
#	ndiff/Makefile
#	ndiff/distinfo
#
echo c - ndiff
mkdir -p ndiff > /dev/null 2>&1
echo x - ndiff/pkg-plist
sed 's/^X//' >ndiff/pkg-plist << 'END-of-ndiff/pkg-plist'
Xbin/ndiff
Xbin/ndiff-2.00
Xshare/lib/ndiff/ndiff-2.00/ndiff.awk
X@dirrm share/lib/ndiff/ndiff-2.00
X@dirrm share/lib/ndiff
X%%PORTDOCS%%share/doc/ndiff/ndiff.pdf
X%%PORTDOCS%%share/doc/ndiff/ndiff.ps
X%%PORTDOCS%%share/doc/ndiff/ndiff.html
X%%PORTDOCS%%@dirrm share/doc/ndiff
END-of-ndiff/pkg-plist
echo x - ndiff/pkg-descr
sed 's/^X//' >ndiff/pkg-descr << 'END-of-ndiff/pkg-descr'
Xndiff is a utility for comparing putatively similar files, ignoring small
Xnumeric differences.  The utility is written by Nelson H.  F. Beebe and
Xcovered by the GNU General Public License (GPL), version 2.  It may be
Xbuilt with arbitrary precision support (more powerful) or using built-in
Xfloating point precision, see Makefile.
X
XAssessing the consistency of a numerical program run in multiple
Xenvironments (operating systems, architectures, or compilers) can be a
Xdifficult task for a human, as small differences in numerical output values
Xare expected.  File differencing utilites, such as diff(1), will generally
Xproduce voluminous output, often longer than the original files.
X
Xndiff solves this problem. Taking two two text files expected to be
Xidentical, or at least numerically similar, it allows to specify absolute
Xand/or relative error tolerances for differences between numerical values
Xin the two files, and then reports only the lines with values exceeding
Xthose tolerances.  It also tells by how much they differ. A simple example:
X
X% ndiff --relative-error 1.0e-3 test019.txt.1 test019.txt.2
X### Maximum relative error in matching lines = 8.64e-51 at line 129 field 4
X
XWWW: http://www.math.utah.edu/~beebe/software/ndiff/
X
XHave fun.         Stefan   (sad@mailaps.org)
END-of-ndiff/pkg-descr
echo x - ndiff/Makefile
sed 's/^X//' >ndiff/Makefile << 'END-of-ndiff/Makefile'
X# New ports collection makefile for:   ndiff
X# Date created:        31 January 2004
X# Whom:                Stefan A. Deutscher (sad@mailaps.org)
X#
X# $FreeBSD$
X#
X
XPORTNAME=	ndiff
XPORTVERSION=	2.00
XCATEGORIES=	math
XMASTER_SITES=	ftp://ftp.math.utah.edu/pub/misc/
XPKGNAMEPREFIX=
X
XMAINTAINER=	ports@FreeBSD.org
XCOMMENT=	Compare putatively similar files, ignoring small numeric differences
X
XLIB_DEPENDS=	gmp:${PORTSDIR}/math/libgmp-freebsd
X
X# [If it extracts to a directory other than ${DISTNAME}...]
X# WRKSRC=	${WRKDIR}/ndiff-2.00
XGNU_CONFIGURE=	yes
X
XMAN1=		ndiff.1
XMANCOMPRESSED=	no
X
X# non-standard variables to be used in the rules below
XSLEEP?=		/bin/sleep
X
X# the special rules, in the order they are called
Xpre-fetch:
X	@${ECHO} This port checks for and installs also libgmp, the GNU library for arbitrary
X	@${ECHO} precision mathematics, a small download that may take some time to build. It
X	@${ECHO} is not absolutely needed, but enhances ndiff\'s functionality significantly.
X	@${ECHO}
X	@${ECHO} If you wish to build without this library, put a comment sign \(hash mark\) in
X	@${ECHO} front of the line LIB_DEPENDS= in this Makefile before building.
X	@${ECHO}
X	@${ECHO} Sleeping 15 seconds so you can read this ...
X	${SLEEP} 15
X
Xpost-patch:
X	# i need to do something after patch, great
X
Xpost-build:
X	@${ECHO} Now running \'make check\' in the build directory to test the build ...
X	( cd ${WRKSRC} && ${MAKE} -f ${WRKSRC}/Makefile check )
X	@${ECHO} Provided the above looks good to you, type \'make install\' to, well, install
X
Xpre-install:
X	# and then some more stuff before installing, wow
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X	${MKDIR} ${DOCSDIR}
X	${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.pdf  ${DOCSDIR}
X	${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.ps   ${DOCSDIR}
X	${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.html ${DOCSDIR}
X.endif
X
X.include <bsd.port.mk>
END-of-ndiff/Makefile
echo x - ndiff/distinfo
sed 's/^X//' >ndiff/distinfo << 'END-of-ndiff/distinfo'
XMD5 (ndiff-2.00.tar.gz) = 885548b4dc26e72c5455bebb5ba6c16d
END-of-ndiff/distinfo
exit
--- ndiff-pr.tmp ends here ---



>Release-Note:
>Audit-Trail:
>Unformatted:
 X-send-pr-version: 3.113
 X-GNATS-Notify: 
 
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040201161839.A43478>