From 125089ce2f694cdf4acffa3e7007b7a38b4b9c79 Mon Sep 17 00:00:00 2001 From: miwi Date: Thu, 5 Jun 2014 09:20:03 +0000 Subject: A class of units of physical quantities for Ruby. This class covers most functionality of UNIDATA's UDUNITS Library, however, with a more sophisticated handling of string expressions. UDUNITS always decomposes units into the four base units and discards the original string expressions. Therefore, 'hPa' always becomes '100 kg.m-1.sec-1', and 'day' always becomes '86400 sec'. On the other hand, this library tries to keep the original expressions as much as possible by default, while allowing partial to complete decompositions if needed. WWW: http://www.gfd-dennou.org/arch/ruby/products/numru-units/ PR: ports/190202 Submitted by: Shin-ya MURAKAMI --- math/Makefile | 1 + math/rubygem-numru-units/Makefile | 17 +++++++++++++++++ math/rubygem-numru-units/distinfo | 2 ++ math/rubygem-numru-units/pkg-descr | 12 ++++++++++++ 4 files changed, 32 insertions(+) create mode 100644 math/rubygem-numru-units/Makefile create mode 100644 math/rubygem-numru-units/distinfo create mode 100644 math/rubygem-numru-units/pkg-descr (limited to 'math') diff --git a/math/Makefile b/math/Makefile index 4f485c2517d9..72d4a2d0301e 100644 --- a/math/Makefile +++ b/math/Makefile @@ -612,6 +612,7 @@ SUBDIR += ruby-numru_units SUBDIR += rubygem-narray SUBDIR += rubygem-narray_miss + SUBDIR += rubygem-numru-units SUBDIR += saga SUBDIR += sage SUBDIR += sc diff --git a/math/rubygem-numru-units/Makefile b/math/rubygem-numru-units/Makefile new file mode 100644 index 000000000000..41d5edc3d631 --- /dev/null +++ b/math/rubygem-numru-units/Makefile @@ -0,0 +1,17 @@ +# Created by: Shin-ya MURAKAMI +# $FreeBSD$ + +PORTNAME= numru-units +PORTVERSION= 1.7.0 +CATEGORIES= math rubygems +MASTER_SITES= RG + +MAINTAINER= murashin@gfd-dennou.org +COMMENT= A class to handle units of physical quantities for Ruby + +USE_RUBY= yes +USE_RAKE= yes +USE_RUBYGEMS= yes +RUBYGEM_AUTOPLIST= yes + +.include diff --git a/math/rubygem-numru-units/distinfo b/math/rubygem-numru-units/distinfo new file mode 100644 index 000000000000..49c93d131a7e --- /dev/null +++ b/math/rubygem-numru-units/distinfo @@ -0,0 +1,2 @@ +SHA256 (rubygem/numru-units-1.7.0.gem) = 140a332b544405c494505ebd3537fc62598c8d0e888f1aaaa72b70406ddeffa5 +SIZE (rubygem/numru-units-1.7.0.gem) = 129536 diff --git a/math/rubygem-numru-units/pkg-descr b/math/rubygem-numru-units/pkg-descr new file mode 100644 index 000000000000..624394c120f8 --- /dev/null +++ b/math/rubygem-numru-units/pkg-descr @@ -0,0 +1,12 @@ +A class of units of physical quantities for Ruby. + +This class covers most functionality of UNIDATA's UDUNITS Library, however, +with a more sophisticated handling of string expressions. + +UDUNITS always decomposes units into the four base units and discards the +original string expressions. Therefore, 'hPa' always becomes '100 +kg.m-1.sec-1', and 'day' always becomes '86400 sec'. On the other hand, this +library tries to keep the original expressions as much as possible by default, +while allowing partial to complete decompositions if needed. + +WWW: http://www.gfd-dennou.org/arch/ruby/products/numru-units/ -- cgit