diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2004-03-14 16:18:27 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2004-03-14 16:18:27 +0000 |
commit | 00a09b915bee75b23101d485d1bc6862954c68e0 (patch) | |
tree | d8f53f609902f6d08b6f29bf6bd2ca73d50b633e | |
parent | 5802bd330f80b920b6806f57cd6b840ac9cf46bd (diff) | |
download | ports-00a09b915bee75b23101d485d1bc6862954c68e0.tar.gz ports-00a09b915bee75b23101d485d1bc6862954c68e0.zip |
Add ruby-numru_units, a Ruby class to handle units of physical quantities
like 'hPa' -> '100 kg.m-1.sec-1' etc..
PR: ports/64247
Submitted by: Shin'ya Murakami <murakami@ahs.scitec.kobe-u.ac.jp>
Notes
Notes:
svn path=/head/; revision=103996
-rw-r--r-- | math/Makefile | 1 | ||||
-rw-r--r-- | math/ruby-numru_units/Makefile | 35 | ||||
-rw-r--r-- | math/ruby-numru_units/distinfo | 2 | ||||
-rw-r--r-- | math/ruby-numru_units/pkg-descr | 14 | ||||
-rw-r--r-- | math/ruby-numru_units/pkg-plist | 6 |
5 files changed, 58 insertions, 0 deletions
diff --git a/math/Makefile b/math/Makefile index a32ae9df9034..f78df834d3e5 100644 --- a/math/Makefile +++ b/math/Makefile @@ -182,6 +182,7 @@ SUBDIR += ruby-narray_miss SUBDIR += ruby-netcdf SUBDIR += ruby-numru_misc + SUBDIR += ruby-numru_units SUBDIR += sc SUBDIR += scalapack SUBDIR += scigraphica diff --git a/math/ruby-numru_units/Makefile b/math/ruby-numru_units/Makefile new file mode 100644 index 000000000000..7774262cf443 --- /dev/null +++ b/math/ruby-numru_units/Makefile @@ -0,0 +1,35 @@ +# New ports collection makefile for: RubyNumruUnits +# Date created: 14 March 2004 +# Whom: Shin'ya Murakami <murakami@ahs.scitec.kobe-u.ac.jp> +# +# $FreeBSD$ +# + +PORTNAME= numru_units +PORTVERSION= 1.1 +CATEGORIES= math ruby +MASTER_SITES= ftp://www.gfd-dennou.org/arch/ruby/products/numru-units/ +PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX} +DISTNAME= numru-units-${PORTVERSION} +DIST_SUBDIR= ruby + +MAINTAINER= murakami@ahs.scitec.kobe-u.ac.jp +COMMENT= A class to handle units of physical quantities for Ruby + +USE_RUBY= yes +NO_BUILD= yes + +DOCS= ChangeLog doc/units.html doc/units.rd + +do-install: + @cd ${WRKSRC}/ && ${RUBY} ./install.rb + +post-install: +.if !defined(NOPORTDOCS) + ${MKDIR} ${RUBY_MODDOCDIR} +.for f in ${DOCS} + ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR} +.endfor +.endif + +.include <bsd.port.mk> diff --git a/math/ruby-numru_units/distinfo b/math/ruby-numru_units/distinfo new file mode 100644 index 000000000000..920583c3eda1 --- /dev/null +++ b/math/ruby-numru_units/distinfo @@ -0,0 +1,2 @@ +MD5 (ruby/numru-units-1.1.tar.gz) = 0157350bc4359362ff791e8792a6d4b6 +SIZE (ruby/numru-units-1.1.tar.gz) = 98431 diff --git a/math/ruby-numru_units/pkg-descr b/math/ruby-numru_units/pkg-descr new file mode 100644 index 000000000000..48a8e080c5c4 --- /dev/null +++ b/math/ruby-numru_units/pkg-descr @@ -0,0 +1,14 @@ +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. + +Author: Takeshi Horinouchi <horinout@kurasc.kyoto-u.ac.jp> + Eizi Toyoda +WWW: http://www.gfd-dennou.org/arch/ruby/products/numru-units/ diff --git a/math/ruby-numru_units/pkg-plist b/math/ruby-numru_units/pkg-plist new file mode 100644 index 000000000000..0c56bca0ab85 --- /dev/null +++ b/math/ruby-numru_units/pkg-plist @@ -0,0 +1,6 @@ +%%RUBY_SITELIBDIR%%/numru/units.rb +@unexec rmdir %D/%%RUBY_SITELIBDIR%%/numru 2>/dev/null || true +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/ChangeLog +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/units.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/units.rd +%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%% |