mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
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:
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
|
@ -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
|
||||||
|
|
18
math/rubygem-mathn/Makefile
Normal file
18
math/rubygem-mathn/Makefile
Normal 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>
|
3
math/rubygem-mathn/distinfo
Normal file
3
math/rubygem-mathn/distinfo
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
TIMESTAMP = 1524345755
|
||||||
|
SHA256 (rubygem/mathn-0.1.0.gem) = 17e4fce0fe975dd58204d19998527ce3a781cd28a789bffcfb32594aa908c8f2
|
||||||
|
SIZE (rubygem/mathn-0.1.0.gem) = 8704
|
13
math/rubygem-mathn/pkg-descr
Normal file
13
math/rubygem-mathn/pkg-descr
Normal 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
|
Loading…
Add table
Reference in a new issue