From 1163bed9136d94e97e792f26cb6f76e869664ab4 Mon Sep 17 00:00:00 2001 From: Gabor Pali Date: Sun, 3 Jun 2012 19:16:56 +0000 Subject: [PATCH] Utilities for dealing with IEEE floating point numbers, ported from the Tango math library; approximate and exact equality comparisons for general types. WWW: http://github.com/patperry/hs-ieee754 Obtained from: FreeBSD Haskell --- lang/ghc/bsd.hackage.mk | 1 + math/hs-ieee754/Makefile | 18 ++++++++++++++++++ math/hs-ieee754/distinfo | 2 ++ math/hs-ieee754/pkg-descr | 5 +++++ 4 files changed, 26 insertions(+) create mode 100644 math/hs-ieee754/Makefile create mode 100644 math/hs-ieee754/distinfo create mode 100644 math/hs-ieee754/pkg-descr diff --git a/lang/ghc/bsd.hackage.mk b/lang/ghc/bsd.hackage.mk index fcd35cf51bdf..3367b97f4542 100644 --- a/lang/ghc/bsd.hackage.mk +++ b/lang/ghc/bsd.hackage.mk @@ -161,6 +161,7 @@ hxt_port= textproc/hs-hxt hxt-charproperties_port= textproc/hs-hxt-charproperties hxt-regex-xmlschema_port= textproc/hs-hxt-regex-xmlschema hxt-unicode_port= textproc/hs-hxt-unicode +ieee754_port= math/hs-ieee754 IfElse_port= devel/hs-IfElse IORefCAS_port= devel/hs-IORefCAS json_port= converters/hs-json diff --git a/math/hs-ieee754/Makefile b/math/hs-ieee754/Makefile new file mode 100644 index 000000000000..86f9c53abf46 --- /dev/null +++ b/math/hs-ieee754/Makefile @@ -0,0 +1,18 @@ +# New ports collection makefile for: hs-ieee754 +# Date created: April 7, 2012 +# Whom: haskell@FreeBSD.org +# +# $FreeBSD$ +# + +PORTNAME= ieee754 +PORTVERSION= 0.7.3 +CATEGORIES= math haskell + +MAINTAINER= haskell@FreeBSD.org +COMMENT= Utilities for dealing with IEEE floating point numbers + +LICENSE= BSD + +.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk" +.include diff --git a/math/hs-ieee754/distinfo b/math/hs-ieee754/distinfo new file mode 100644 index 000000000000..99a76e2c0762 --- /dev/null +++ b/math/hs-ieee754/distinfo @@ -0,0 +1,2 @@ +SHA256 (cabal/ieee754-0.7.3.tar.gz) = 603fc8470330abd25b4c46d63536cca75ca4d282acfefa565fddc612e021073f +SIZE (cabal/ieee754-0.7.3.tar.gz) = 16219 diff --git a/math/hs-ieee754/pkg-descr b/math/hs-ieee754/pkg-descr new file mode 100644 index 000000000000..614a09e9b446 --- /dev/null +++ b/math/hs-ieee754/pkg-descr @@ -0,0 +1,5 @@ +Utilities for dealing with IEEE floating point numbers, ported from the +Tango math library; approximate and exact equality comparisons for general +types. + +WWW: http://github.com/patperry/hs-ieee754