svn commit: r467909 - in head/math: . rubygem-mathn
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Sat Apr 21 22:40:30 UTC 2018
Author: sunpoet
Date: Sat Apr 21 22:40:28 2018
New Revision: 467909
URL: https://svnweb.freebsd.org/changeset/ports/467909
Log:
Add rubygem-mathn 0.1.0
mathn serves to make mathematical operations more precise in Ruby and to
integrate other mathematical standard libraries.
Requiring mathn causes changes to the behavior (and even the types) of
operations on classes like Integer and it applies to the entire process, not
just the file or gem which includes mathn. Therefore, we recommend that instead
of requiring mathn, you instead explicitly specify rational values as desired.
Before ruby 2.5, mathn was part of the ruby standard library. It was deprecated
in ruby 2.2.0, and removed from ruby 2.5.0. In order to use the library with a
current version of ruby, you must install it as a gem.
WWW: https://github.com/ruby/mathn
Added:
head/math/rubygem-mathn/
head/math/rubygem-mathn/Makefile (contents, props changed)
head/math/rubygem-mathn/distinfo (contents, props changed)
head/math/rubygem-mathn/pkg-descr (contents, props changed)
Modified:
head/math/Makefile
Modified: head/math/Makefile
==============================================================================
--- head/math/Makefile Sat Apr 21 21:57:00 2018 (r467908)
+++ head/math/Makefile Sat Apr 21 22:40:28 2018 (r467909)
@@ -740,6 +740,7 @@
SUBDIR += rubygem-algebra
SUBDIR += rubygem-expression_parser
SUBDIR += rubygem-fftw3
+ SUBDIR += rubygem-mathn
SUBDIR += rubygem-narray
SUBDIR += rubygem-narray_miss
SUBDIR += rubygem-numru-misc
Added: head/math/rubygem-mathn/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/math/rubygem-mathn/Makefile Sat Apr 21 22:40:28 2018 (r467909)
@@ -0,0 +1,18 @@
+# Created by: Po-Chuan Hsieh <sunpoet at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= mathn
+PORTVERSION= 0.1.0
+CATEGORIES= math rubygems
+MASTER_SITES= RG
+
+MAINTAINER= sunpoet at FreeBSD.org
+COMMENT= Deprecated library that extends math operations
+
+LICENSE= BSD2CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE.txt
+
+USE_RUBY= yes
+USES= gem
+
+.include <bsd.port.mk>
Added: head/math/rubygem-mathn/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/math/rubygem-mathn/distinfo Sat Apr 21 22:40:28 2018 (r467909)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1524345755
+SHA256 (rubygem/mathn-0.1.0.gem) = 17e4fce0fe975dd58204d19998527ce3a781cd28a789bffcfb32594aa908c8f2
+SIZE (rubygem/mathn-0.1.0.gem) = 8704
Added: head/math/rubygem-mathn/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/math/rubygem-mathn/pkg-descr Sat Apr 21 22:40:28 2018 (r467909)
@@ -0,0 +1,13 @@
+mathn serves to make mathematical operations more precise in Ruby and to
+integrate other mathematical standard libraries.
+
+Requiring mathn causes changes to the behavior (and even the types) of
+operations on classes like Integer and it applies to the entire process, not
+just the file or gem which includes mathn. Therefore, we recommend that instead
+of requiring mathn, you instead explicitly specify rational values as desired.
+
+Before ruby 2.5, mathn was part of the ruby standard library. It was deprecated
+in ruby 2.2.0, and removed from ruby 2.5.0. In order to use the library with a
+current version of ruby, you must install it as a gem.
+
+WWW: https://github.com/ruby/mathn
More information about the svn-ports-all
mailing list