From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Feb 1 07:10:32 2004 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9E82F16A4CE for ; Sun, 1 Feb 2004 07:10:32 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id AE67943D3F for ; Sun, 1 Feb 2004 07:10:22 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i11FAMFR065419 for ; Sun, 1 Feb 2004 07:10:22 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i11FAM6K065418; Sun, 1 Feb 2004 07:10:22 -0800 (PST) (envelope-from gnats) Resent-Date: Sun, 1 Feb 2004 07:10:22 -0800 (PST) Resent-Message-Id: <200402011510.i11FAM6K065418@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, sad@mailaps.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0898A16A4D2 for ; Sun, 1 Feb 2004 07:06:02 -0800 (PST) Received: from webmail.tiscali.de (relay1.tiscali.de [62.26.116.129]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1E69643D2F for ; Sun, 1 Feb 2004 07:05:58 -0800 (PST) (envelope-from sa.deutscher@tiscali.de) Received: from localhost (217.235.19.4) by webmail.tiscali.de (6.7.019) id 400E9541003AAE4B for FreeBSD-gnats-submit@freebsd.org; Sun, 1 Feb 2004 16:05:57 +0100 Received: by localhost (IBM OS/2 SENDMAIL VERSION 2.0/2.0) id QAA153.09; Sun, 1 Feb 2004 16:18:42 -0500 Message-Id: <20040201161839.A43478@tiscali.de> Date: Sun, 1 Feb 2004 16:18:40 +0000 From: "Stefan A. Deutscher" To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/62221: New port: ndiff numerics diff utility X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: sad@mailaps.org List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Feb 2004 15:10:32 -0000 >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 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: