diff --git a/math/Makefile b/math/Makefile index 724eecea7560..a02bbe232910 100644 --- a/math/Makefile +++ b/math/Makefile @@ -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 diff --git a/math/rubygem-mathn/Makefile b/math/rubygem-mathn/Makefile new file mode 100644 index 000000000000..d59e8d7dc0e7 --- /dev/null +++ b/math/rubygem-mathn/Makefile @@ -0,0 +1,18 @@ +# Created by: Po-Chuan Hsieh +# $FreeBSD$ + +PORTNAME= mathn +PORTVERSION= 0.1.0 +CATEGORIES= math rubygems +MASTER_SITES= RG + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Deprecated library that extends math operations + +LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +USE_RUBY= yes +USES= gem + +.include diff --git a/math/rubygem-mathn/distinfo b/math/rubygem-mathn/distinfo new file mode 100644 index 000000000000..ab23d171244d --- /dev/null +++ b/math/rubygem-mathn/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1524345755 +SHA256 (rubygem/mathn-0.1.0.gem) = 17e4fce0fe975dd58204d19998527ce3a781cd28a789bffcfb32594aa908c8f2 +SIZE (rubygem/mathn-0.1.0.gem) = 8704 diff --git a/math/rubygem-mathn/pkg-descr b/math/rubygem-mathn/pkg-descr new file mode 100644 index 000000000000..3c0b34f703a7 --- /dev/null +++ b/math/rubygem-mathn/pkg-descr @@ -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