diff options
-rw-r--r-- | math/ruby-gsl/DESCR | 31 | ||||
-rw-r--r-- | math/ruby-gsl/Makefile | 42 | ||||
-rw-r--r-- | math/ruby-gsl/PLIST | 46 | ||||
-rw-r--r-- | math/ruby-gsl/distinfo | 4 |
4 files changed, 123 insertions, 0 deletions
diff --git a/math/ruby-gsl/DESCR b/math/ruby-gsl/DESCR new file mode 100644 index 00000000000..456b4dc4a69 --- /dev/null +++ b/math/ruby-gsl/DESCR @@ -0,0 +1,31 @@ +This is a port of the GNU Scientific Library to the Ruby programming language. + +Things from GSL you can use in ruby-gsl: +- some error handling (ch. 3 in the GSL documentation) +- basic mathematical functions (ch. 4) +- complex numbers (ch. 5) +- functions for polynomial evaluation/roots (ch. 6) +- most "special functions" (ch. 7) +- vectors and matrices (ch. 8) +- permutations (ch. 9) +- combinations (ch. 10) +- BLAS support (ch. 12) +- linear algebra (ch. 13) +- eigensystems (ch. 14) +- numerical integration (ch. 16) +- random number generation (ch. 17) +- quasi-random sequences (ch. 18) +- most random number distributions (ch. 19) +- most statistical functions (ch. 20) +- histograms (ch. 21) +- Monte Carlo integration (ch. 23) +- Simulated Annealing (not reliable) (ch. 24) +- interpolation (ch. 26) +- numerical differentiation (ch. 27) +- Chebyshev approximation (ch. 28) +- series acceleration (ch. 29) +- Discrete Hankel Transforms (ch. 30) +- 1-dimensional root-finding (ch. 31) +- 1-dimensional minimization (ch. 32) +- some functions for least-squares fitting (ch. 35) +- physical constants (ch. 37) diff --git a/math/ruby-gsl/Makefile b/math/ruby-gsl/Makefile new file mode 100644 index 00000000000..de5942ef461 --- /dev/null +++ b/math/ruby-gsl/Makefile @@ -0,0 +1,42 @@ +# $NetBSD: Makefile,v 1.1.1.1 2003/09/15 00:18:31 dmcmahill Exp $ + +DISTNAME= ruby-gsl-0.1.9 +WRKSRC= ${WRKDIR}/${DISTNAME}/ext +CATEGORIES= math +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ruby-gsl/} + +MAINTAINER= dmcmahill@NetBSD.org +HOMEPAGE= http://ruby-gsl.sourceforge.net/ +COMMENT= Wrapper of the GNU Scientific Library (GSL) for Ruby + +DIST_SUBDIR= ruby +USE_RUBY_EXTCONF= yes +USE_BUILDLINK2= yes +INSTALL_TARGET= site-install + +DOCS= README + +post-patch: + ${MV} ${WRKSRC}/Const.c ${WRKSRC}/Const.c.bak + ${SED} -e 's;CONST_MKS_;CONST_MKSA_;g' -e 's;CONST_CGS_;CONST_CGSM_;g' \ + ${WRKSRC}/Const.c.bak > ${WRKSRC}/Const.c + +DOCS= \ + HOWTO \ + IMPLEMENTED \ + README \ + TODO \ + doc.rd + +post-install: + ${INSTALL_DATA_DIR} ${RUBY_DOCDIR}/gsl +.for f in ${DOCS} + ${INSTALL_DATA} ${WRKSRC}/../doc/${f} ${RUBY_DOCDIR}/gsl +.endfor + ${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR}/gsl + ${INSTALL_DATA} ${WRKSRC}/../samples/*.rb ${RUBY_EXAMPLESDIR}/gsl + +.include "../../lang/ruby-base/Makefile.common" +.include "../../lang/ruby-base/buildlink2.mk" +.include "../../math/gsl/buildlink2.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/math/ruby-gsl/PLIST b/math/ruby-gsl/PLIST new file mode 100644 index 00000000000..437cedb2502 --- /dev/null +++ b/math/ruby-gsl/PLIST @@ -0,0 +1,46 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2003/09/15 00:18:31 dmcmahill Exp $ +${RUBY_SITEARCHLIBDIR}/GSL.so +${RUBY_DOCDIR}/gsl/HOWTO +${RUBY_DOCDIR}/gsl/IMPLEMENTED +${RUBY_DOCDIR}/gsl/README +${RUBY_DOCDIR}/gsl/TODO +${RUBY_DOCDIR}/gsl/doc.rd +${RUBY_EXAMPLESDIR}/gsl/array.rb +${RUBY_EXAMPLESDIR}/gsl/blas.rb +${RUBY_EXAMPLESDIR}/gsl/cheb.rb +${RUBY_EXAMPLESDIR}/gsl/comb.rb +${RUBY_EXAMPLESDIR}/gsl/complex.rb +${RUBY_EXAMPLESDIR}/gsl/const.rb +${RUBY_EXAMPLESDIR}/gsl/diff.rb +${RUBY_EXAMPLESDIR}/gsl/eigen.rb +${RUBY_EXAMPLESDIR}/gsl/error.rb +${RUBY_EXAMPLESDIR}/gsl/fit.rb +${RUBY_EXAMPLESDIR}/gsl/func.rb +${RUBY_EXAMPLESDIR}/gsl/hist.rb +${RUBY_EXAMPLESDIR}/gsl/hist2d.rb +${RUBY_EXAMPLESDIR}/gsl/integration.rb +${RUBY_EXAMPLESDIR}/gsl/interp.rb +${RUBY_EXAMPLESDIR}/gsl/linalg.rb +${RUBY_EXAMPLESDIR}/gsl/linalg_complex.rb +${RUBY_EXAMPLESDIR}/gsl/matrix.rb +${RUBY_EXAMPLESDIR}/gsl/matrix_complex.rb +${RUBY_EXAMPLESDIR}/gsl/min.rb +${RUBY_EXAMPLESDIR}/gsl/monte.rb +${RUBY_EXAMPLESDIR}/gsl/multi.rb +${RUBY_EXAMPLESDIR}/gsl/perm.rb +${RUBY_EXAMPLESDIR}/gsl/poly.rb +${RUBY_EXAMPLESDIR}/gsl/qrng.rb +${RUBY_EXAMPLESDIR}/gsl/rnd.rb +${RUBY_EXAMPLESDIR}/gsl/rnd2.rb +${RUBY_EXAMPLESDIR}/gsl/rnd3.rb +${RUBY_EXAMPLESDIR}/gsl/rng.rb +${RUBY_EXAMPLESDIR}/gsl/shuffle.rb +${RUBY_EXAMPLESDIR}/gsl/siman.rb +${RUBY_EXAMPLESDIR}/gsl/solve.rb +${RUBY_EXAMPLESDIR}/gsl/special.rb +${RUBY_EXAMPLESDIR}/gsl/spline.rb +${RUBY_EXAMPLESDIR}/gsl/stats.rb +${RUBY_EXAMPLESDIR}/gsl/sum.rb +${RUBY_EXAMPLESDIR}/gsl/vector.rb +@dirrm ${RUBY_DOCDIR}/gsl +@dirrm ${RUBY_EXAMPLESDIR}/gsl diff --git a/math/ruby-gsl/distinfo b/math/ruby-gsl/distinfo new file mode 100644 index 00000000000..c8d0eca79f5 --- /dev/null +++ b/math/ruby-gsl/distinfo @@ -0,0 +1,4 @@ +$NetBSD: distinfo,v 1.1.1.1 2003/09/15 00:18:31 dmcmahill Exp $ + +SHA1 (ruby/ruby-gsl-0.1.9.tar.gz) = f72834aa70446712b0ae8571796ad1ae16443db0 +Size (ruby/ruby-gsl-0.1.9.tar.gz) = 142951 bytes |