diff options
author | taca <taca@pkgsrc.org> | 2015-03-08 15:19:13 +0000 |
---|---|---|
committer | taca <taca@pkgsrc.org> | 2015-03-08 15:19:13 +0000 |
commit | 8141fc302a600ff2c6b7e91363b28ed02e45a907 (patch) | |
tree | b9456e5fde6660e3367f02fa5e03776c6c1366ec /math | |
parent | 7dfc8b21a2896248435e1a88ae6fc61d0cf72c92 (diff) | |
download | pkgsrc-8141fc302a600ff2c6b7e91363b28ed02e45a907.tar.gz |
Update ruby-gsl to 1.16.0.4.
* Switch to rb-gsl gem.
Fri Dec 19 2014
* Ruby/GSL 1.16.0.4
* Optimize and extract multiplication and division operations on Fixnum
and Float. Pull request #8 by Veselin Vasilev.
* Fixed division in GSL::Oper for GSL::Vector::Col. Issue #9.
Tue Oct 21 2014
* Ruby/GSL 1.16.0.3
* Fixed RDoc issues. Issue #6 by @bigtunacan.
* Fixed $LOAD_PATH problem. Pull request #7 by Takahiro SATOH.
Wed Jul 9 2014
* Ruby/GSL 1.16.0.2
* Fixed linking problem.
Thu Apr 24 2014
* Ruby/GSL 1.16.0.1
* Extensive cleanup.
* Fixed linking problems.
* Required Ruby version >= 1.8.7.
Fri Jan 24 2014
* Ruby/GSL 1.16.0
* GSL-1.16 support.
Diffstat (limited to 'math')
-rw-r--r-- | math/ruby-gsl/Makefile | 9 | ||||
-rw-r--r-- | math/ruby-gsl/PLIST | 442 | ||||
-rw-r--r-- | math/ruby-gsl/distinfo | 16 | ||||
-rw-r--r-- | math/ruby-gsl/patches/patch-ext_fft.c | 21 | ||||
-rw-r--r-- | math/ruby-gsl/patches/patch-ext_linalg.c | 89 | ||||
-rw-r--r-- | math/ruby-gsl/patches/patch-ext_linalg__complex.c | 32 | ||||
-rw-r--r-- | math/ruby-gsl/patches/patch-ext_ool.c | 18 | ||||
-rw-r--r-- | math/ruby-gsl/patches/patch-ext_vector__complex.c | 29 | ||||
-rw-r--r-- | math/ruby-gsl/patches/patch-ext_vector__source.c | 49 | ||||
-rw-r--r-- | math/ruby-gsl/patches/patch-ext_wavelet.c | 39 | ||||
-rw-r--r-- | math/ruby-gsl/patches/patch-include_rb__gsl__common.h | 18 |
11 files changed, 206 insertions, 556 deletions
diff --git a/math/ruby-gsl/Makefile b/math/ruby-gsl/Makefile index 6c0ce10758c..430506eae30 100644 --- a/math/ruby-gsl/Makefile +++ b/math/ruby-gsl/Makefile @@ -1,15 +1,18 @@ -# $NetBSD: Makefile,v 1.14 2014/03/13 11:08:51 jperkin Exp $ +# $NetBSD: Makefile,v 1.15 2015/03/08 15:19:13 taca Exp $ -DISTNAME= gsl-1.15.3 +DISTNAME= rb-gsl-${VERS} +PKGNAME= ${RUBY_PKGPREFIX}-gsl-${VERS} CATEGORIES= math MAINTAINER= pkgsrc-users@NetBSD.org -HOMEPAGE= http://rb-gsl.rubyforge.org/ +HOMEPAGE= https://github.com/blackwinter/rb-gsl COMMENT= Ruby interface to GNU Scientific Library LICENSE= gnu-gpl-v2 # OR later DEPENDS+= ${RUBY_PKGPREFIX}-narray>=0.5.9:../../math/ruby-narray +VERS= 1.16.0.4 + USE_GCC_RUNTIME= yes .include "../../lang/ruby/gem.mk" diff --git a/math/ruby-gsl/PLIST b/math/ruby-gsl/PLIST index c355ad5bccc..b93099840da 100644 --- a/math/ruby-gsl/PLIST +++ b/math/ruby-gsl/PLIST @@ -1,13 +1,13 @@ -@comment $NetBSD: PLIST,v 1.6 2014/03/26 13:25:26 taca Exp $ +@comment $NetBSD: PLIST,v 1.7 2015/03/08 15:19:13 taca Exp $ ${GEM_HOME}/cache/${GEM_NAME}.gem -${GEM_EXTSDIR}/rb_gsl.${RUBY_DLEXT} +${GEM_EXTSDIR}/gem.build_complete +${GEM_EXTSDIR}/gsl/gsl_native.${RUBY_DLEXT} ${GEM_LIBDIR}/AUTHORS ${GEM_LIBDIR}/COPYING ${GEM_LIBDIR}/ChangeLog ${GEM_LIBDIR}/README ${GEM_LIBDIR}/Rakefile ${GEM_LIBDIR}/THANKS -${GEM_LIBDIR}/VERSION ${GEM_LIBDIR}/examples/alf/alf.gp ${GEM_LIBDIR}/examples/alf/alf.rb ${GEM_LIBDIR}/examples/blas/blas.rb @@ -355,163 +355,163 @@ ${GEM_LIBDIR}/examples/vector/write.rb ${GEM_LIBDIR}/examples/vector/zip.rb ${GEM_LIBDIR}/examples/wavelet/ecg.dat ${GEM_LIBDIR}/examples/wavelet/wavelet1.rb -${GEM_LIBDIR}/ext/alf.c -${GEM_LIBDIR}/ext/array.c -${GEM_LIBDIR}/ext/array_complex.c -${GEM_LIBDIR}/ext/blas.c -${GEM_LIBDIR}/ext/blas1.c -${GEM_LIBDIR}/ext/blas2.c -${GEM_LIBDIR}/ext/blas3.c -${GEM_LIBDIR}/ext/block.c -${GEM_LIBDIR}/ext/block_source.c -${GEM_LIBDIR}/ext/bspline.c -${GEM_LIBDIR}/ext/bundle.c -${GEM_LIBDIR}/ext/cdf.c -${GEM_LIBDIR}/ext/cheb.c -${GEM_LIBDIR}/ext/combination.c -${GEM_LIBDIR}/ext/common.c -${GEM_LIBDIR}/ext/complex.c -${GEM_LIBDIR}/ext/const.c -${GEM_LIBDIR}/ext/const_additional.c -${GEM_LIBDIR}/ext/cqp.c -${GEM_LIBDIR}/ext/deriv.c -${GEM_LIBDIR}/ext/dht.c -${GEM_LIBDIR}/ext/diff.c -${GEM_LIBDIR}/ext/dirac.c -${GEM_LIBDIR}/ext/eigen.c -${GEM_LIBDIR}/ext/error.c -${GEM_LIBDIR}/ext/extconf.rb -${GEM_LIBDIR}/ext/fcmp.c -${GEM_LIBDIR}/ext/fft.c -${GEM_LIBDIR}/ext/fit.c -${GEM_LIBDIR}/ext/fresnel.c -${GEM_LIBDIR}/ext/function.c -${GEM_LIBDIR}/ext/geometry.c -${GEM_LIBDIR}/ext/graph.c -${GEM_LIBDIR}/ext/gsl.c -${GEM_LIBDIR}/ext/gsl_narray.c -${GEM_LIBDIR}/ext/histogram.c -${GEM_LIBDIR}/ext/histogram2d.c -${GEM_LIBDIR}/ext/histogram3d.c -${GEM_LIBDIR}/ext/histogram3d_source.c -${GEM_LIBDIR}/ext/histogram_find.c -${GEM_LIBDIR}/ext/histogram_oper.c -${GEM_LIBDIR}/ext/ieee.c -${GEM_LIBDIR}/ext/integration.c -${GEM_LIBDIR}/ext/interp.c -${GEM_LIBDIR}/ext/jacobi.c -${GEM_LIBDIR}/ext/linalg.c -${GEM_LIBDIR}/ext/linalg_complex.c -${GEM_LIBDIR}/ext/math.c -${GEM_LIBDIR}/ext/matrix.c -${GEM_LIBDIR}/ext/matrix_complex.c -${GEM_LIBDIR}/ext/matrix_double.c -${GEM_LIBDIR}/ext/matrix_int.c -${GEM_LIBDIR}/ext/matrix_source.c -${GEM_LIBDIR}/ext/min.c -${GEM_LIBDIR}/ext/monte.c -${GEM_LIBDIR}/ext/multifit.c -${GEM_LIBDIR}/ext/multimin.c -${GEM_LIBDIR}/ext/multimin_fsdf.c -${GEM_LIBDIR}/ext/multiroots.c -${GEM_LIBDIR}/ext/multiset.c -${GEM_LIBDIR}/ext/ndlinear.c -${GEM_LIBDIR}/ext/nmf.c -${GEM_LIBDIR}/ext/nmf_wrap.c -${GEM_LIBDIR}/ext/ntuple.c -${GEM_LIBDIR}/ext/odeiv.c -${GEM_LIBDIR}/ext/ool.c -${GEM_LIBDIR}/ext/oper_complex_source.c -${GEM_LIBDIR}/ext/permutation.c -${GEM_LIBDIR}/ext/poly.c -${GEM_LIBDIR}/ext/poly2.c -${GEM_LIBDIR}/ext/poly_source.c -${GEM_LIBDIR}/ext/qrng.c -${GEM_LIBDIR}/ext/randist.c -${GEM_LIBDIR}/ext/rational.c -${GEM_LIBDIR}/ext/rng.c -${GEM_LIBDIR}/ext/root.c -${GEM_LIBDIR}/ext/sf.c -${GEM_LIBDIR}/ext/sf_airy.c -${GEM_LIBDIR}/ext/sf_bessel.c -${GEM_LIBDIR}/ext/sf_clausen.c -${GEM_LIBDIR}/ext/sf_coulomb.c -${GEM_LIBDIR}/ext/sf_coupling.c -${GEM_LIBDIR}/ext/sf_dawson.c -${GEM_LIBDIR}/ext/sf_debye.c -${GEM_LIBDIR}/ext/sf_dilog.c -${GEM_LIBDIR}/ext/sf_elementary.c -${GEM_LIBDIR}/ext/sf_ellint.c -${GEM_LIBDIR}/ext/sf_elljac.c -${GEM_LIBDIR}/ext/sf_erfc.c -${GEM_LIBDIR}/ext/sf_exp.c -${GEM_LIBDIR}/ext/sf_expint.c -${GEM_LIBDIR}/ext/sf_fermi_dirac.c -${GEM_LIBDIR}/ext/sf_gamma.c -${GEM_LIBDIR}/ext/sf_gegenbauer.c -${GEM_LIBDIR}/ext/sf_hyperg.c -${GEM_LIBDIR}/ext/sf_laguerre.c -${GEM_LIBDIR}/ext/sf_lambert.c -${GEM_LIBDIR}/ext/sf_legendre.c -${GEM_LIBDIR}/ext/sf_log.c -${GEM_LIBDIR}/ext/sf_mathieu.c -${GEM_LIBDIR}/ext/sf_power.c -${GEM_LIBDIR}/ext/sf_psi.c -${GEM_LIBDIR}/ext/sf_synchrotron.c -${GEM_LIBDIR}/ext/sf_transport.c -${GEM_LIBDIR}/ext/sf_trigonometric.c -${GEM_LIBDIR}/ext/sf_zeta.c -${GEM_LIBDIR}/ext/signal.c -${GEM_LIBDIR}/ext/siman.c -${GEM_LIBDIR}/ext/sort.c -${GEM_LIBDIR}/ext/spline.c -${GEM_LIBDIR}/ext/stats.c -${GEM_LIBDIR}/ext/sum.c -${GEM_LIBDIR}/ext/tamu_anova.c -${GEM_LIBDIR}/ext/tensor.c -${GEM_LIBDIR}/ext/tensor_source.c -${GEM_LIBDIR}/ext/vector.c -${GEM_LIBDIR}/ext/vector_complex.c -${GEM_LIBDIR}/ext/vector_double.c -${GEM_LIBDIR}/ext/vector_int.c -${GEM_LIBDIR}/ext/vector_source.c -${GEM_LIBDIR}/ext/wavelet.c -${GEM_LIBDIR}/include/rb_gsl.h -${GEM_LIBDIR}/include/rb_gsl_array.h -${GEM_LIBDIR}/include/rb_gsl_cheb.h -${GEM_LIBDIR}/include/rb_gsl_common.h -${GEM_LIBDIR}/include/rb_gsl_complex.h -${GEM_LIBDIR}/include/rb_gsl_config.h -${GEM_LIBDIR}/include/rb_gsl_const.h -${GEM_LIBDIR}/include/rb_gsl_dirac.h -${GEM_LIBDIR}/include/rb_gsl_eigen.h -${GEM_LIBDIR}/include/rb_gsl_fft.h -${GEM_LIBDIR}/include/rb_gsl_fit.h -${GEM_LIBDIR}/include/rb_gsl_function.h -${GEM_LIBDIR}/include/rb_gsl_graph.h -${GEM_LIBDIR}/include/rb_gsl_histogram.h -${GEM_LIBDIR}/include/rb_gsl_histogram3d.h -${GEM_LIBDIR}/include/rb_gsl_integration.h -${GEM_LIBDIR}/include/rb_gsl_interp.h -${GEM_LIBDIR}/include/rb_gsl_linalg.h -${GEM_LIBDIR}/include/rb_gsl_math.h -${GEM_LIBDIR}/include/rb_gsl_odeiv.h -${GEM_LIBDIR}/include/rb_gsl_poly.h -${GEM_LIBDIR}/include/rb_gsl_rational.h -${GEM_LIBDIR}/include/rb_gsl_rng.h -${GEM_LIBDIR}/include/rb_gsl_root.h -${GEM_LIBDIR}/include/rb_gsl_sf.h -${GEM_LIBDIR}/include/rb_gsl_statistics.h -${GEM_LIBDIR}/include/rb_gsl_tensor.h -${GEM_LIBDIR}/include/rb_gsl_with_narray.h -${GEM_LIBDIR}/include/templates_off.h -${GEM_LIBDIR}/include/templates_on.h +${GEM_LIBDIR}/ext/gsl/alf.c +${GEM_LIBDIR}/ext/gsl/array.c +${GEM_LIBDIR}/ext/gsl/array_complex.c +${GEM_LIBDIR}/ext/gsl/blas.c +${GEM_LIBDIR}/ext/gsl/blas1.c +${GEM_LIBDIR}/ext/gsl/blas2.c +${GEM_LIBDIR}/ext/gsl/blas3.c +${GEM_LIBDIR}/ext/gsl/block.c +${GEM_LIBDIR}/ext/gsl/block_source.c +${GEM_LIBDIR}/ext/gsl/bspline.c +${GEM_LIBDIR}/ext/gsl/bundle.c +${GEM_LIBDIR}/ext/gsl/cdf.c +${GEM_LIBDIR}/ext/gsl/cheb.c +${GEM_LIBDIR}/ext/gsl/combination.c +${GEM_LIBDIR}/ext/gsl/common.c +${GEM_LIBDIR}/ext/gsl/complex.c +${GEM_LIBDIR}/ext/gsl/const.c +${GEM_LIBDIR}/ext/gsl/const_additional.c +${GEM_LIBDIR}/ext/gsl/cqp.c +${GEM_LIBDIR}/ext/gsl/deriv.c +${GEM_LIBDIR}/ext/gsl/dht.c +${GEM_LIBDIR}/ext/gsl/diff.c +${GEM_LIBDIR}/ext/gsl/dirac.c +${GEM_LIBDIR}/ext/gsl/eigen.c +${GEM_LIBDIR}/ext/gsl/error.c +${GEM_LIBDIR}/ext/gsl/extconf.rb +${GEM_LIBDIR}/ext/gsl/fcmp.c +${GEM_LIBDIR}/ext/gsl/fft.c +${GEM_LIBDIR}/ext/gsl/fit.c +${GEM_LIBDIR}/ext/gsl/fresnel.c +${GEM_LIBDIR}/ext/gsl/function.c +${GEM_LIBDIR}/ext/gsl/geometry.c +${GEM_LIBDIR}/ext/gsl/graph.c +${GEM_LIBDIR}/ext/gsl/gsl.c +${GEM_LIBDIR}/ext/gsl/gsl_narray.c +${GEM_LIBDIR}/ext/gsl/histogram.c +${GEM_LIBDIR}/ext/gsl/histogram2d.c +${GEM_LIBDIR}/ext/gsl/histogram3d.c +${GEM_LIBDIR}/ext/gsl/histogram3d_source.c +${GEM_LIBDIR}/ext/gsl/histogram_find.c +${GEM_LIBDIR}/ext/gsl/histogram_oper.c +${GEM_LIBDIR}/ext/gsl/ieee.c +${GEM_LIBDIR}/ext/gsl/include/rb_gsl.h +${GEM_LIBDIR}/ext/gsl/include/rb_gsl_array.h +${GEM_LIBDIR}/ext/gsl/include/rb_gsl_cheb.h +${GEM_LIBDIR}/ext/gsl/include/rb_gsl_common.h +${GEM_LIBDIR}/ext/gsl/include/rb_gsl_complex.h +${GEM_LIBDIR}/ext/gsl/include/rb_gsl_const.h +${GEM_LIBDIR}/ext/gsl/include/rb_gsl_dirac.h +${GEM_LIBDIR}/ext/gsl/include/rb_gsl_eigen.h +${GEM_LIBDIR}/ext/gsl/include/rb_gsl_fft.h +${GEM_LIBDIR}/ext/gsl/include/rb_gsl_fit.h +${GEM_LIBDIR}/ext/gsl/include/rb_gsl_function.h +${GEM_LIBDIR}/ext/gsl/include/rb_gsl_graph.h +${GEM_LIBDIR}/ext/gsl/include/rb_gsl_histogram.h +${GEM_LIBDIR}/ext/gsl/include/rb_gsl_histogram3d.h +${GEM_LIBDIR}/ext/gsl/include/rb_gsl_integration.h +${GEM_LIBDIR}/ext/gsl/include/rb_gsl_interp.h +${GEM_LIBDIR}/ext/gsl/include/rb_gsl_linalg.h +${GEM_LIBDIR}/ext/gsl/include/rb_gsl_math.h +${GEM_LIBDIR}/ext/gsl/include/rb_gsl_odeiv.h +${GEM_LIBDIR}/ext/gsl/include/rb_gsl_poly.h +${GEM_LIBDIR}/ext/gsl/include/rb_gsl_rational.h +${GEM_LIBDIR}/ext/gsl/include/rb_gsl_rng.h +${GEM_LIBDIR}/ext/gsl/include/rb_gsl_root.h +${GEM_LIBDIR}/ext/gsl/include/rb_gsl_sf.h +${GEM_LIBDIR}/ext/gsl/include/rb_gsl_statistics.h +${GEM_LIBDIR}/ext/gsl/include/rb_gsl_tensor.h +${GEM_LIBDIR}/ext/gsl/include/rb_gsl_with_narray.h +${GEM_LIBDIR}/ext/gsl/include/templates_off.h +${GEM_LIBDIR}/ext/gsl/include/templates_on.h +${GEM_LIBDIR}/ext/gsl/integration.c +${GEM_LIBDIR}/ext/gsl/interp.c +${GEM_LIBDIR}/ext/gsl/jacobi.c +${GEM_LIBDIR}/ext/gsl/linalg.c +${GEM_LIBDIR}/ext/gsl/linalg_complex.c +${GEM_LIBDIR}/ext/gsl/math.c +${GEM_LIBDIR}/ext/gsl/matrix.c +${GEM_LIBDIR}/ext/gsl/matrix_complex.c +${GEM_LIBDIR}/ext/gsl/matrix_double.c +${GEM_LIBDIR}/ext/gsl/matrix_int.c +${GEM_LIBDIR}/ext/gsl/matrix_source.c +${GEM_LIBDIR}/ext/gsl/min.c +${GEM_LIBDIR}/ext/gsl/monte.c +${GEM_LIBDIR}/ext/gsl/multifit.c +${GEM_LIBDIR}/ext/gsl/multimin.c +${GEM_LIBDIR}/ext/gsl/multimin_fsdf.c +${GEM_LIBDIR}/ext/gsl/multiroots.c +${GEM_LIBDIR}/ext/gsl/multiset.c +${GEM_LIBDIR}/ext/gsl/ndlinear.c +${GEM_LIBDIR}/ext/gsl/nmf.c +${GEM_LIBDIR}/ext/gsl/nmf_wrap.c +${GEM_LIBDIR}/ext/gsl/ntuple.c +${GEM_LIBDIR}/ext/gsl/odeiv.c +${GEM_LIBDIR}/ext/gsl/ool.c +${GEM_LIBDIR}/ext/gsl/oper_complex_source.c +${GEM_LIBDIR}/ext/gsl/permutation.c +${GEM_LIBDIR}/ext/gsl/poly.c +${GEM_LIBDIR}/ext/gsl/poly2.c +${GEM_LIBDIR}/ext/gsl/poly_source.c +${GEM_LIBDIR}/ext/gsl/qrng.c +${GEM_LIBDIR}/ext/gsl/randist.c +${GEM_LIBDIR}/ext/gsl/rational.c +${GEM_LIBDIR}/ext/gsl/rng.c +${GEM_LIBDIR}/ext/gsl/root.c +${GEM_LIBDIR}/ext/gsl/sf.c +${GEM_LIBDIR}/ext/gsl/sf_airy.c +${GEM_LIBDIR}/ext/gsl/sf_bessel.c +${GEM_LIBDIR}/ext/gsl/sf_clausen.c +${GEM_LIBDIR}/ext/gsl/sf_coulomb.c +${GEM_LIBDIR}/ext/gsl/sf_coupling.c +${GEM_LIBDIR}/ext/gsl/sf_dawson.c +${GEM_LIBDIR}/ext/gsl/sf_debye.c +${GEM_LIBDIR}/ext/gsl/sf_dilog.c +${GEM_LIBDIR}/ext/gsl/sf_elementary.c +${GEM_LIBDIR}/ext/gsl/sf_ellint.c +${GEM_LIBDIR}/ext/gsl/sf_elljac.c +${GEM_LIBDIR}/ext/gsl/sf_erfc.c +${GEM_LIBDIR}/ext/gsl/sf_exp.c +${GEM_LIBDIR}/ext/gsl/sf_expint.c +${GEM_LIBDIR}/ext/gsl/sf_fermi_dirac.c +${GEM_LIBDIR}/ext/gsl/sf_gamma.c +${GEM_LIBDIR}/ext/gsl/sf_gegenbauer.c +${GEM_LIBDIR}/ext/gsl/sf_hyperg.c +${GEM_LIBDIR}/ext/gsl/sf_laguerre.c +${GEM_LIBDIR}/ext/gsl/sf_lambert.c +${GEM_LIBDIR}/ext/gsl/sf_legendre.c +${GEM_LIBDIR}/ext/gsl/sf_log.c +${GEM_LIBDIR}/ext/gsl/sf_mathieu.c +${GEM_LIBDIR}/ext/gsl/sf_power.c +${GEM_LIBDIR}/ext/gsl/sf_psi.c +${GEM_LIBDIR}/ext/gsl/sf_synchrotron.c +${GEM_LIBDIR}/ext/gsl/sf_transport.c +${GEM_LIBDIR}/ext/gsl/sf_trigonometric.c +${GEM_LIBDIR}/ext/gsl/sf_zeta.c +${GEM_LIBDIR}/ext/gsl/signal.c +${GEM_LIBDIR}/ext/gsl/siman.c +${GEM_LIBDIR}/ext/gsl/sort.c +${GEM_LIBDIR}/ext/gsl/spline.c +${GEM_LIBDIR}/ext/gsl/stats.c +${GEM_LIBDIR}/ext/gsl/sum.c +${GEM_LIBDIR}/ext/gsl/tamu_anova.c +${GEM_LIBDIR}/ext/gsl/tensor.c +${GEM_LIBDIR}/ext/gsl/tensor_source.c +${GEM_LIBDIR}/ext/gsl/vector.c +${GEM_LIBDIR}/ext/gsl/vector_complex.c +${GEM_LIBDIR}/ext/gsl/vector_double.c +${GEM_LIBDIR}/ext/gsl/vector_int.c +${GEM_LIBDIR}/ext/gsl/vector_source.c +${GEM_LIBDIR}/ext/gsl/wavelet.c ${GEM_LIBDIR}/lib/gsl.rb ${GEM_LIBDIR}/lib/gsl/gnuplot.rb +${GEM_LIBDIR}/lib/gsl/gsl_native.${RUBY_DLEXT} ${GEM_LIBDIR}/lib/gsl/oper.rb +${GEM_LIBDIR}/lib/gsl/version.rb ${GEM_LIBDIR}/lib/ool.rb ${GEM_LIBDIR}/lib/ool/conmin.rb -${GEM_LIBDIR}/lib/rb_gsl.${RUBY_DLEXT} ${GEM_LIBDIR}/lib/rbgsl.rb ${GEM_LIBDIR}/rdoc/alf.rdoc ${GEM_LIBDIR}/rdoc/blas.rdoc @@ -556,9 +556,7 @@ ${GEM_LIBDIR}/rdoc/qrng.rdoc ${GEM_LIBDIR}/rdoc/randist.rdoc ${GEM_LIBDIR}/rdoc/ref.rdoc ${GEM_LIBDIR}/rdoc/rng.rdoc -${GEM_LIBDIR}/rdoc/rngextra.rdoc ${GEM_LIBDIR}/rdoc/roots.rdoc -${GEM_LIBDIR}/rdoc/screenshot.rdoc ${GEM_LIBDIR}/rdoc/sf.rdoc ${GEM_LIBDIR}/rdoc/siman.rdoc ${GEM_LIBDIR}/rdoc/sort.rdoc @@ -571,93 +569,45 @@ ${GEM_LIBDIR}/rdoc/use.rdoc ${GEM_LIBDIR}/rdoc/vector.rdoc ${GEM_LIBDIR}/rdoc/vector_complex.rdoc ${GEM_LIBDIR}/rdoc/wavelet.rdoc -${GEM_LIBDIR}/setup.rb -${GEM_LIBDIR}/tests/blas/amax.rb -${GEM_LIBDIR}/tests/blas/asum.rb -${GEM_LIBDIR}/tests/blas/axpy.rb -${GEM_LIBDIR}/tests/blas/copy.rb -${GEM_LIBDIR}/tests/blas/dot.rb -${GEM_LIBDIR}/tests/bspline.rb -${GEM_LIBDIR}/tests/cdf.rb -${GEM_LIBDIR}/tests/cheb.rb -${GEM_LIBDIR}/tests/combination.rb -${GEM_LIBDIR}/tests/complex.rb -${GEM_LIBDIR}/tests/const.rb -${GEM_LIBDIR}/tests/deriv.rb -${GEM_LIBDIR}/tests/dht/dht1.rb -${GEM_LIBDIR}/tests/dht/dht2.rb -${GEM_LIBDIR}/tests/dht/dht3.rb -${GEM_LIBDIR}/tests/dht/dht4.rb -${GEM_LIBDIR}/tests/diff.rb -${GEM_LIBDIR}/tests/eigen/eigen.rb -${GEM_LIBDIR}/tests/eigen/gen.rb -${GEM_LIBDIR}/tests/eigen/genherm.rb -${GEM_LIBDIR}/tests/eigen/gensymm.rb -${GEM_LIBDIR}/tests/eigen/nonsymm.rb -${GEM_LIBDIR}/tests/eigen/nonsymmv.rb -${GEM_LIBDIR}/tests/eigen/symm-herm.rb -${GEM_LIBDIR}/tests/err.rb -${GEM_LIBDIR}/tests/fit.rb -${GEM_LIBDIR}/tests/gsl_test.rb -${GEM_LIBDIR}/tests/gsl_test2.rb -${GEM_LIBDIR}/tests/histo.rb -${GEM_LIBDIR}/tests/integration/integration1.rb -${GEM_LIBDIR}/tests/integration/integration2.rb -${GEM_LIBDIR}/tests/integration/integration3.rb -${GEM_LIBDIR}/tests/integration/integration4.rb -${GEM_LIBDIR}/tests/interp.rb -${GEM_LIBDIR}/tests/linalg/HH.rb -${GEM_LIBDIR}/tests/linalg/LU.rb -${GEM_LIBDIR}/tests/linalg/QR.rb -${GEM_LIBDIR}/tests/linalg/SV.rb -${GEM_LIBDIR}/tests/linalg/TDN.rb -${GEM_LIBDIR}/tests/linalg/TDS.rb -${GEM_LIBDIR}/tests/linalg/bidiag.rb -${GEM_LIBDIR}/tests/linalg/cholesky.rb -${GEM_LIBDIR}/tests/linalg/linalg.rb -${GEM_LIBDIR}/tests/matrix/matrix_complex_test.rb -${GEM_LIBDIR}/tests/matrix/matrix_nmf_test.rb -${GEM_LIBDIR}/tests/matrix/matrix_test.rb -${GEM_LIBDIR}/tests/min.rb -${GEM_LIBDIR}/tests/monte/miser.rb -${GEM_LIBDIR}/tests/monte/vegas.rb -${GEM_LIBDIR}/tests/multifit/test_2dgauss.rb -${GEM_LIBDIR}/tests/multifit/test_brown.rb -${GEM_LIBDIR}/tests/multifit/test_enso.rb -${GEM_LIBDIR}/tests/multifit/test_filip.rb -${GEM_LIBDIR}/tests/multifit/test_gauss.rb -${GEM_LIBDIR}/tests/multifit/test_longley.rb -${GEM_LIBDIR}/tests/multifit/test_multifit.rb -${GEM_LIBDIR}/tests/multimin.rb -${GEM_LIBDIR}/tests/multiroot.rb -${GEM_LIBDIR}/tests/multiset.rb -${GEM_LIBDIR}/tests/narray/blas_dnrm2.rb -${GEM_LIBDIR}/tests/odeiv.rb -${GEM_LIBDIR}/tests/poly/poly.rb -${GEM_LIBDIR}/tests/poly/special.rb -${GEM_LIBDIR}/tests/qrng.rb -${GEM_LIBDIR}/tests/quartic.rb -${GEM_LIBDIR}/tests/randist.rb -${GEM_LIBDIR}/tests/rng.rb -${GEM_LIBDIR}/tests/roots.rb -${GEM_LIBDIR}/tests/run-test.sh -${GEM_LIBDIR}/tests/sf/gsl_test_sf.rb -${GEM_LIBDIR}/tests/sf/test_airy.rb -${GEM_LIBDIR}/tests/sf/test_bessel.rb -${GEM_LIBDIR}/tests/sf/test_coulomb.rb -${GEM_LIBDIR}/tests/sf/test_dilog.rb -${GEM_LIBDIR}/tests/sf/test_gamma.rb -${GEM_LIBDIR}/tests/sf/test_hyperg.rb -${GEM_LIBDIR}/tests/sf/test_legendre.rb -${GEM_LIBDIR}/tests/sf/test_mathieu.rb -${GEM_LIBDIR}/tests/sf/test_mode.rb -${GEM_LIBDIR}/tests/sf/test_sf.rb -${GEM_LIBDIR}/tests/stats.rb -${GEM_LIBDIR}/tests/stats_mt.rb -${GEM_LIBDIR}/tests/sum.rb -${GEM_LIBDIR}/tests/sys.rb -${GEM_LIBDIR}/tests/tensor.rb -${GEM_LIBDIR}/tests/vector/vector_complex_test.rb -${GEM_LIBDIR}/tests/vector/vector_test.rb -${GEM_LIBDIR}/tests/wavelet.rb +${GEM_LIBDIR}/test/gsl/blas_test.rb +${GEM_LIBDIR}/test/gsl/bspline_test.rb +${GEM_LIBDIR}/test/gsl/cdf_test.rb +${GEM_LIBDIR}/test/gsl/cheb_test.rb +${GEM_LIBDIR}/test/gsl/combination_test.rb +${GEM_LIBDIR}/test/gsl/complex_test.rb +${GEM_LIBDIR}/test/gsl/const_test.rb +${GEM_LIBDIR}/test/gsl/deriv_test.rb +${GEM_LIBDIR}/test/gsl/dht_test.rb +${GEM_LIBDIR}/test/gsl/diff_test.rb +${GEM_LIBDIR}/test/gsl/eigen_test.rb +${GEM_LIBDIR}/test/gsl/err_test.rb +${GEM_LIBDIR}/test/gsl/fit_test.rb +${GEM_LIBDIR}/test/gsl/histo_test.rb +${GEM_LIBDIR}/test/gsl/integration_test.rb +${GEM_LIBDIR}/test/gsl/interp_test.rb +${GEM_LIBDIR}/test/gsl/linalg_test.rb +${GEM_LIBDIR}/test/gsl/matrix_nmf_test.rb +${GEM_LIBDIR}/test/gsl/matrix_test.rb +${GEM_LIBDIR}/test/gsl/min_test.rb +${GEM_LIBDIR}/test/gsl/monte_test.rb +${GEM_LIBDIR}/test/gsl/multifit_test.rb +${GEM_LIBDIR}/test/gsl/multimin_test.rb +${GEM_LIBDIR}/test/gsl/multiroot_test.rb +${GEM_LIBDIR}/test/gsl/multiset_test.rb +${GEM_LIBDIR}/test/gsl/odeiv_test.rb +${GEM_LIBDIR}/test/gsl/oper_test.rb +${GEM_LIBDIR}/test/gsl/poly_test.rb +${GEM_LIBDIR}/test/gsl/qrng_test.rb +${GEM_LIBDIR}/test/gsl/quartic_test.rb +${GEM_LIBDIR}/test/gsl/randist_test.rb +${GEM_LIBDIR}/test/gsl/rng_test.rb +${GEM_LIBDIR}/test/gsl/roots_test.rb +${GEM_LIBDIR}/test/gsl/sf_test.rb +${GEM_LIBDIR}/test/gsl/stats_test.rb +${GEM_LIBDIR}/test/gsl/sum_test.rb +${GEM_LIBDIR}/test/gsl/tensor_test.rb +${GEM_LIBDIR}/test/gsl/vector_test.rb +${GEM_LIBDIR}/test/gsl/wavelet_test.rb +${GEM_LIBDIR}/test/gsl_test.rb +${GEM_LIBDIR}/test/test_helper.rb ${GEM_HOME}/specifications/${GEM_NAME}.gemspec diff --git a/math/ruby-gsl/distinfo b/math/ruby-gsl/distinfo index cf2b26de4b6..ef14b7c2a80 100644 --- a/math/ruby-gsl/distinfo +++ b/math/ruby-gsl/distinfo @@ -1,13 +1,5 @@ -$NetBSD: distinfo,v 1.8 2014/03/26 13:25:26 taca Exp $ +$NetBSD: distinfo,v 1.9 2015/03/08 15:19:13 taca Exp $ -SHA1 (gsl-1.15.3.gem) = c3e3d8d47d4e456bcc40be9f43f7da2667622ed5 -RMD160 (gsl-1.15.3.gem) = 73d5d601c4ace8c5a0cabd4bab6045191d1a4077 -Size (gsl-1.15.3.gem) = 620032 bytes -SHA1 (patch-ext_fft.c) = cee5d2d4a9caac1125720ed257c73074d9151be6 -SHA1 (patch-ext_linalg.c) = 57f703d217c1eda3be5e958757a89b9af9804fbb -SHA1 (patch-ext_linalg__complex.c) = e375a361cf51afb3674288cebe911b58b9d43b6e -SHA1 (patch-ext_ool.c) = 0b4857278e2496c8f6938d355dd6d9acd24362b6 -SHA1 (patch-ext_vector__complex.c) = 9d9d3140ffb48095d79eccc96a667f216030de20 -SHA1 (patch-ext_vector__source.c) = 3db7be2d542348d407e4f821026cffcd439b0177 -SHA1 (patch-ext_wavelet.c) = f152a903a76a84c1ff86c6917d4c68ce50c4f81e -SHA1 (patch-include_rb__gsl__common.h) = 27b22b77056aead09da74cf284983afd64f89be7 +SHA1 (rb-gsl-1.16.0.4.gem) = d4dec715563926f50122b86b035b00bb063f3fad +RMD160 (rb-gsl-1.16.0.4.gem) = 68e296f56c7d3e4b01a960face4f63cf0b538ae0 +Size (rb-gsl-1.16.0.4.gem) = 588288 bytes diff --git a/math/ruby-gsl/patches/patch-ext_fft.c b/math/ruby-gsl/patches/patch-ext_fft.c deleted file mode 100644 index 1fe895eb53b..00000000000 --- a/math/ruby-gsl/patches/patch-ext_fft.c +++ /dev/null @@ -1,21 +0,0 @@ -$NetBSD: patch-ext_fft.c,v 1.1 2013/08/04 16:42:11 taca Exp $ - -Fix for gsl 1.6 and later; stop using deprecated API. - ---- ext/fft.c.orig 2013-08-04 16:38:23.000000000 +0000 -+++ ext/fft.c -@@ -907,10 +907,10 @@ void Init_gsl_fft(VALUE module) - - /*****/ - -- rb_define_const(mgsl_fft, "Forward", INT2FIX(forward)); -- rb_define_const(mgsl_fft, "FORWARD", INT2FIX(forward)); -- rb_define_const(mgsl_fft, "Backward", INT2FIX(backward)); -- rb_define_const(mgsl_fft, "BACKWARD", INT2FIX(backward)); -+ rb_define_const(mgsl_fft, "Forward", INT2FIX(gsl_fft_forward)); -+ rb_define_const(mgsl_fft, "FORWARD", INT2FIX(gsl_fft_forward)); -+ rb_define_const(mgsl_fft, "Backward", INT2FIX(gsl_fft_backward)); -+ rb_define_const(mgsl_fft, "BACKWARD", INT2FIX(gsl_fft_backward)); - - /* Transforms for complex vectors */ - rb_define_method(cgsl_vector_complex, "radix2_forward", diff --git a/math/ruby-gsl/patches/patch-ext_linalg.c b/math/ruby-gsl/patches/patch-ext_linalg.c deleted file mode 100644 index 4d57aaf7079..00000000000 --- a/math/ruby-gsl/patches/patch-ext_linalg.c +++ /dev/null @@ -1,89 +0,0 @@ -$NetBSD: patch-ext_linalg.c,v 1.1 2014/03/26 13:25:26 taca Exp $ - -Fix for Ruby 2.1. - ---- ext/linalg.c.orig 2014-03-25 15:47:30.000000000 +0000 -+++ ext/linalg.c -@@ -71,7 +71,11 @@ static VALUE rb_gsl_linalg_LU_decomposit - Data_Get_Struct(omatrix, gsl_matrix, mtmp); - if (flag == LINALG_DECOMP_BANG) { - m = mtmp; -+#if RUBY_API_VERSION_MAJOR >=2 && RUBY_API_VERSION_MINOR >= 1 -+ rb_obj_reveal(omatrix, cgsl_matrix_LU); -+#else - RBASIC(omatrix)->klass = cgsl_matrix_LU; -+#endif - objm = omatrix; - } else { - m = make_matrix_clone(mtmp); -@@ -692,7 +696,11 @@ static VALUE rb_gsl_linalg_QR_LQ_decompo - fdecomp = &gsl_linalg_QR_decomp; - m = mtmp; - mdecomp = omatrix; -+#if RUBY_API_VERSION_MAJOR >=2 && RUBY_API_VERSION_MINOR >= 1 -+ rb_obj_reveal(mdecomp, cgsl_matrix_QR); -+#else - RBASIC(mdecomp)->klass = cgsl_matrix_QR; -+#endif - break; - #ifdef GSL_1_6_LATER - case LINALG_LQ_DECOMP: -@@ -704,7 +712,11 @@ static VALUE rb_gsl_linalg_QR_LQ_decompo - fdecomp = &gsl_linalg_LQ_decomp; - m = mtmp; - mdecomp = omatrix; -+#if RUBY_API_VERSION_MAJOR >=2 && RUBY_API_VERSION_MINOR >= 1 -+ rb_obj_reveal(mdecomp, cgsl_matrix_LQ); -+#else - RBASIC(mdecomp)->klass = cgsl_matrix_LQ; -+#endif - break; - #endif - default: -@@ -731,7 +743,11 @@ static VALUE rb_gsl_linalg_QR_LQ_decompo - vtau = Data_Wrap_Struct(cgsl_vector_tau, 0, gsl_vector_free, tau); - return rb_ary_new3(2, mdecomp, vtau); - } else { -+#if RUBY_API_VERSION_MAJOR >=2 && RUBY_API_VERSION_MINOR >= 1 -+ rb_obj_reveal(argv[itmp], cgsl_vector_tau); -+#else - RBASIC(argv[itmp])->klass = cgsl_vector_tau; -+#endif - return mdecomp; - } - break; -@@ -740,7 +756,11 @@ static VALUE rb_gsl_linalg_QR_LQ_decompo - if (argc == itmp) { - return Data_Wrap_Struct(cgsl_vector_tau, 0, gsl_vector_free, tau); - } else { -+#if RUBY_API_VERSION_MAJOR >=2 && RUBY_API_VERSION_MINOR >= 1 -+ rb_obj_reveal(argv[itmp], cgsl_vector_tau); -+#else - RBASIC(argv[itmp])->klass = cgsl_vector_tau; -+#endif - return INT2FIX(status); - } - break; -@@ -1628,14 +1648,22 @@ static VALUE rb_gsl_linalg_QRLQPT_decomp - norm = gsl_vector_alloc(size0); - switch (flag) { - case LINALG_QRPT: -+#if RUBY_API_VERSION_MAJOR >=2 && RUBY_API_VERSION_MINOR >= 1 -+ rb_obj_reveal(vA, cgsl_matrix_QRPT); -+#else - RBASIC(vA)->klass = cgsl_matrix_QRPT; -+#endif - vtau = Data_Wrap_Struct(cgsl_vector_tau, 0, gsl_vector_free, tau); - vp = Data_Wrap_Struct(cgsl_permutation, 0, gsl_permutation_free, p); - gsl_linalg_QRPT_decomp(A, tau, p, &signum, norm); - break; - #ifdef GSL_1_6_LATER - case LINALG_PTLQ: -+#if RUBY_API_VERSION_MAJOR >=2 && RUBY_API_VERSION_MINOR >= 1 -+ rb_obj_reveal(vA, cgsl_matrix_PTLQ); -+#else - RBASIC(vA)->klass = cgsl_matrix_PTLQ; -+#endif - vtau = Data_Wrap_Struct(cgsl_vector_tau, 0, gsl_vector_free, tau); - vp = Data_Wrap_Struct(cgsl_permutation, 0, gsl_permutation_free, p); - gsl_linalg_PTLQ_decomp(A, tau, p, &signum, norm); diff --git a/math/ruby-gsl/patches/patch-ext_linalg__complex.c b/math/ruby-gsl/patches/patch-ext_linalg__complex.c deleted file mode 100644 index a08c101df46..00000000000 --- a/math/ruby-gsl/patches/patch-ext_linalg__complex.c +++ /dev/null @@ -1,32 +0,0 @@ -$NetBSD: patch-ext_linalg__complex.c,v 1.1 2014/03/26 13:25:26 taca Exp $ - -Fix for Ruby 2.1. - ---- ext/linalg_complex.c.orig 2014-03-25 15:47:30.000000000 +0000 -+++ ext/linalg_complex.c -@@ -51,8 +51,12 @@ VALUE rb_gsl_linalg_complex_LU_decomp(in - case 0: - p = gsl_permutation_alloc(size); - gsl_linalg_complex_LU_decomp(m, p, &signum); -+#if RUBY_API_VERSION_MAJOR >=2 && RUBY_API_VERSION_MINOR >= 1 -+ rb_obj_reveal((itmp == 1)? argv[0]: obj, cgsl_matrix_complex_LU); -+#else - if (itmp == 1) RBASIC(argv[0])->klass = cgsl_matrix_complex_LU; - else RBASIC(obj)->klass = cgsl_matrix_complex_LU; -+#endif - obj2 = Data_Wrap_Struct(cgsl_permutation, 0, gsl_permutation_free, p); - return rb_ary_new3(2, obj2, INT2FIX(signum)); - break; -@@ -60,8 +64,12 @@ VALUE rb_gsl_linalg_complex_LU_decomp(in - CHECK_PERMUTATION(argv[itmp]); - Data_Get_Struct(argv[itmp], gsl_permutation, p); - gsl_linalg_complex_LU_decomp(m, p, &signum); -+#if RUBY_API_VERSION_MAJOR >=2 && RUBY_API_VERSION_MINOR >= 1 -+ rb_obj_reveal((itmp == 1)? argv[0]: obj, cgsl_matrix_complex_LU); -+#else - if (itmp == 1) RBASIC(argv[0])->klass = cgsl_matrix_complex_LU; - else RBASIC(obj)->klass = cgsl_matrix_complex_LU; -+#endif - return INT2FIX(signum); - break; - default: diff --git a/math/ruby-gsl/patches/patch-ext_ool.c b/math/ruby-gsl/patches/patch-ext_ool.c deleted file mode 100644 index 71f7a176a52..00000000000 --- a/math/ruby-gsl/patches/patch-ext_ool.c +++ /dev/null @@ -1,18 +0,0 @@ -$NetBSD: patch-ext_ool.c,v 1.1 2014/03/26 13:25:26 taca Exp $ - -Fix for Ruby 2.1. - ---- ext/ool.c.orig 2014-03-25 15:47:30.000000000 +0000 -+++ ext/ool.c -@@ -770,7 +770,11 @@ static VALUE rb_ool_conmin_pgrad_paramet - VALUE ary; - ool_conmin_parameters_default(ool_conmin_minimizer_pgrad, (void*) &P); - ary = create_parameters_ary_pgrad(&P); -+#if RUBY_API_VERSION_MAJOR >=2 && RUBY_API_VERSION_MINOR >= 1 -+ rb_obj_reveal(ary, cool_conmin_pgrad_parameters); -+#else - RBASIC(ary)->klass = cool_conmin_pgrad_parameters; -+#endif - return ary; - } - diff --git a/math/ruby-gsl/patches/patch-ext_vector__complex.c b/math/ruby-gsl/patches/patch-ext_vector__complex.c deleted file mode 100644 index e8d8e210681..00000000000 --- a/math/ruby-gsl/patches/patch-ext_vector__complex.c +++ /dev/null @@ -1,29 +0,0 @@ -$NetBSD: patch-ext_vector__complex.c,v 1.1 2014/03/26 13:25:26 taca Exp $ - -Fix for Ruby 2.1. - ---- ext/vector_complex.c.orig 2014-03-25 15:47:30.000000000 +0000 -+++ ext/vector_complex.c -@@ -938,11 +938,19 @@ static VALUE rb_gsl_vector_complex_trans - - static VALUE rb_gsl_vector_complex_trans2(VALUE obj) - { -- if (CLASS_OF(obj) == cgsl_vector_complex) -+ if (CLASS_OF(obj) == cgsl_vector_complex) { -+#if RUBY_API_VERSION_MAJOR >=2 && RUBY_API_VERSION_MINOR >= 1 -+ rb_obj_reveal(obj, cgsl_vector_complex_col); -+#else - RBASIC(obj)->klass = cgsl_vector_complex_col; -- else if (CLASS_OF(obj) == cgsl_vector_complex_col) -+#endif -+ } else if (CLASS_OF(obj) == cgsl_vector_complex_col) { -+#if RUBY_API_VERSION_MAJOR >=2 && RUBY_API_VERSION_MINOR >= 1 -+ rb_obj_reveal(obj, cgsl_vector_complex); -+#else - RBASIC(obj)->klass = cgsl_vector_complex; -- else { -+#endif -+ } else { - rb_raise(rb_eRuntimeError, "method trans! for %s is forbidden", - rb_class2name(CLASS_OF(obj))); - } diff --git a/math/ruby-gsl/patches/patch-ext_vector__source.c b/math/ruby-gsl/patches/patch-ext_vector__source.c deleted file mode 100644 index 7cca42f4550..00000000000 --- a/math/ruby-gsl/patches/patch-ext_vector__source.c +++ /dev/null @@ -1,49 +0,0 @@ -$NetBSD: patch-ext_vector__source.c,v 1.1 2014/03/26 13:25:26 taca Exp $ - -Fix for Ruby 2.1. - ---- ext/vector_source.c.orig 2014-03-25 15:47:30.000000000 +0000 -+++ ext/vector_source.c -@@ -673,16 +673,36 @@ static VALUE FUNCTION(rb_gsl_vector,tran - static VALUE FUNCTION(rb_gsl_vector,trans_bang)(VALUE obj) - { - #ifdef BASE_DOUBLE -- if (CLASS_OF(obj) == cgsl_vector) RBASIC(obj)->klass = cgsl_vector_col; -- else if (CLASS_OF(obj) == cgsl_vector_col) RBASIC(obj)->klass = cgsl_vector; -- else { -+ if (CLASS_OF(obj) == cgsl_vector) { -+#if RUBY_API_VERSION_MAJOR >=2 && RUBY_API_VERSION_MINOR >= 1 -+ rb_obj_reveal(obj, cgsl_vector_col); -+#else -+ RBASIC(obj)->klass = cgsl_vector_col; -+#endif -+ } else if (CLASS_OF(obj) == cgsl_vector_col) { -+#if RUBY_API_VERSION_MAJOR >=2 && RUBY_API_VERSION_MINOR >= 1 -+ rb_obj_reveal(obj, cgsl_vector); -+#else -+ RBASIC(obj)->klass = cgsl_vector; -+#endif -+ } else { - rb_raise(rb_eRuntimeError, "method trans! for %s is not permitted.", - rb_class2name(CLASS_OF(obj))); - } - #elif defined(BASE_INT) -- if (CLASS_OF(obj) == cgsl_vector_int) RBASIC(obj)->klass = cgsl_vector_int_col; -- else if (CLASS_OF(obj) == cgsl_vector_int_col) RBASIC(obj)->klass = cgsl_vector_int; -- else { -+ if (CLASS_OF(obj) == cgsl_vector_int) { -+#if RUBY_API_VERSION_MAJOR >=2 && RUBY_API_VERSION_MINOR >= 1 -+ rb_obj_reveal(obj, cgsl_vector_int_col); -+#else -+ RBASIC(obj)->klass = cgsl_vector_int_col; -+#endif -+ } else if (CLASS_OF(obj) == cgsl_vector_int_col) { -+#if RUBY_API_VERSION_MAJOR >=2 && RUBY_API_VERSION_MINOR >= 1 -+ rb_obj_reveal(obj, cgsl_vector_int); -+#else -+ RBASIC(obj)->klass = cgsl_vector_int; -+#endif -+ } else { - rb_raise(rb_eRuntimeError, "method trans! for %s is not permitted.", - rb_class2name(CLASS_OF(obj))); - } diff --git a/math/ruby-gsl/patches/patch-ext_wavelet.c b/math/ruby-gsl/patches/patch-ext_wavelet.c deleted file mode 100644 index 9c85a5c5c1b..00000000000 --- a/math/ruby-gsl/patches/patch-ext_wavelet.c +++ /dev/null @@ -1,39 +0,0 @@ -$NetBSD: patch-ext_wavelet.c,v 1.1 2013/08/04 16:42:11 taca Exp $ - -Fix for gsl 1.6 and later; stop using deprecated API. - ---- ext/wavelet.c.orig 2013-08-04 16:38:23.000000000 +0000 -+++ ext/wavelet.c -@@ -152,10 +152,10 @@ static void rb_gsl_wavelet_define_const( - rb_define_const(klass, "BSPLINE", INT2FIX(GSL_WAVELET_BSPLINE)); - rb_define_const(klass, "BSPLINE_CENTERED", INT2FIX(GSL_WAVELET_BSPLINE_CENTERED)); - /*****/ -- rb_define_const(klass, "FORWARD", INT2FIX(forward)); -- rb_define_const(klass, "Forward", INT2FIX(forward)); -- rb_define_const(klass, "BACKWARD", INT2FIX(backward)); -- rb_define_const(klass, "Backward", INT2FIX(backward)); -+ rb_define_const(klass, "FORWARD", INT2FIX(gsl_wavelet_forward)); -+ rb_define_const(klass, "Forward", INT2FIX(gsl_wavelet_forward)); -+ rb_define_const(klass, "BACKWARD", INT2FIX(gsl_wavelet_backward)); -+ rb_define_const(klass, "Backward", INT2FIX(gsl_wavelet_backward)); - } - - static VALUE rb_gsl_wavelet_name(VALUE ww) -@@ -191,7 +191,7 @@ static VALUE rb_gsl_wavelet_transform0(i - { - gsl_wavelet *w = NULL; - gsl_vector *v = NULL, *vnew; -- gsl_wavelet_direction dir = forward; -+ gsl_wavelet_direction dir = gsl_wavelet_forward; - gsl_wavelet_workspace *work = NULL; - int itmp, flag = 0; - // local variable "status" declared and set, but never used -@@ -531,7 +531,7 @@ static VALUE rb_gsl_wavelet2d(int argc, - { - gsl_wavelet *w = NULL; - gsl_matrix *m = NULL, *mnew; -- gsl_wavelet_direction dir = forward; -+ gsl_wavelet_direction dir = gsl_wavelet_forward; - gsl_wavelet_workspace *work = NULL; - VALUE ary, ret; - int itmp, flag = 0; diff --git a/math/ruby-gsl/patches/patch-include_rb__gsl__common.h b/math/ruby-gsl/patches/patch-include_rb__gsl__common.h deleted file mode 100644 index 2757045d631..00000000000 --- a/math/ruby-gsl/patches/patch-include_rb__gsl__common.h +++ /dev/null @@ -1,18 +0,0 @@ -$NetBSD: patch-include_rb__gsl__common.h,v 1.1 2014/03/26 13:25:26 taca Exp $ - -Fix for Ruby 2.1. - ---- include/rb_gsl_common.h.orig 2014-03-25 15:47:30.000000000 +0000 -+++ include/rb_gsl_common.h -@@ -14,6 +14,11 @@ - - #include "rb_gsl_config.h" - #include "ruby.h" -+#ifdef HAVE_RUBY_IO_H -+#include "ruby/version.h" -+#else -+#include "version.h" -+#endif - #include <ctype.h> - #include <gsl/gsl_errno.h> - #include <gsl/gsl_version.h> |