aboutsummaryrefslogtreecommitdiffstats
path: root/math/ruby-numru_units
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2004-03-15 00:18:27 +0800
committerpav <pav@FreeBSD.org>2004-03-15 00:18:27 +0800
commita8967810dd916d84a210f1d50d3cbfae798aad13 (patch)
treedce59897e19dd64cd4100fe54e2df4718820d8f5 /math/ruby-numru_units
parenta38f5cd6bdb9e2f65f7194410b303221f65fa8c7 (diff)
downloadfreebsd-ports-gnome-a8967810dd916d84a210f1d50d3cbfae798aad13.tar.gz
freebsd-ports-gnome-a8967810dd916d84a210f1d50d3cbfae798aad13.tar.zst
freebsd-ports-gnome-a8967810dd916d84a210f1d50d3cbfae798aad13.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>
Diffstat (limited to 'math/ruby-numru_units')
-rw-r--r--math/ruby-numru_units/Makefile35
-rw-r--r--math/ruby-numru_units/distinfo2
-rw-r--r--math/ruby-numru_units/pkg-descr14
-rw-r--r--math/ruby-numru_units/pkg-plist6
4 files changed, 57 insertions, 0 deletions
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%%