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>
This commit is contained in:
Martin Wilke 2014-06-05 09:20:03 +00:00
parent 2989d91b3d
commit dd5e466c72
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=356619
4 changed files with 32 additions and 0 deletions

View file

@ -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

View file

@ -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>

View file

@ -0,0 +1,2 @@
SHA256 (rubygem/numru-units-1.7.0.gem) = 140a332b544405c494505ebd3537fc62598c8d0e888f1aaaa72b70406ddeffa5
SIZE (rubygem/numru-units-1.7.0.gem) = 129536

View file

@ -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/