diff options
author | miwi <miwi@FreeBSD.org> | 2014-06-05 17:20:03 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2014-06-05 17:20:03 +0800 |
commit | 125089ce2f694cdf4acffa3e7007b7a38b4b9c79 (patch) | |
tree | 5db17461eb64b45a28dc58a149552f9baa084941 /math | |
parent | 08d11723c95acb1c848ed8f2e6fa9724aa976414 (diff) | |
download | freebsd-ports-gnome-125089ce2f694cdf4acffa3e7007b7a38b4b9c79.tar.gz freebsd-ports-gnome-125089ce2f694cdf4acffa3e7007b7a38b4b9c79.tar.zst freebsd-ports-gnome-125089ce2f694cdf4acffa3e7007b7a38b4b9c79.zip |
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 <murashin@gfd-dennou.org>
Diffstat (limited to 'math')
-rw-r--r-- | math/Makefile | 1 | ||||
-rw-r--r-- | math/rubygem-numru-units/Makefile | 17 | ||||
-rw-r--r-- | math/rubygem-numru-units/distinfo | 2 | ||||
-rw-r--r-- | math/rubygem-numru-units/pkg-descr | 12 |
4 files changed, 32 insertions, 0 deletions
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 <murashin@gfd-dennou.org> +# $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 <bsd.port.mk> 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/ |