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
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2018-04-21 22:40:28 +00:00
parent 7fc93d2033
commit cfc07ca3b5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=467909
4 changed files with 35 additions and 0 deletions

View file

@ -740,6 +740,7 @@
SUBDIR += rubygem-algebra SUBDIR += rubygem-algebra
SUBDIR += rubygem-expression_parser SUBDIR += rubygem-expression_parser
SUBDIR += rubygem-fftw3 SUBDIR += rubygem-fftw3
SUBDIR += rubygem-mathn
SUBDIR += rubygem-narray SUBDIR += rubygem-narray
SUBDIR += rubygem-narray_miss SUBDIR += rubygem-narray_miss
SUBDIR += rubygem-numru-misc SUBDIR += rubygem-numru-misc

View file

@ -0,0 +1,18 @@
# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
# $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 <bsd.port.mk>

View file

@ -0,0 +1,3 @@
TIMESTAMP = 1524345755
SHA256 (rubygem/mathn-0.1.0.gem) = 17e4fce0fe975dd58204d19998527ce3a781cd28a789bffcfb32594aa908c8f2
SIZE (rubygem/mathn-0.1.0.gem) = 8704

View file

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