1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00

- Update to 1.10.3

This commit is contained in:
Cheng-Lung Sung 2008-09-27 15:13:15 +00:00
parent 7a3799eaa3
commit 80bc67de7d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=220902
4 changed files with 15 additions and 130 deletions

View File

@ -6,10 +6,9 @@
#
PORTNAME= gsl
PORTVERSION= 1.9.2
PORTREVISION= 1
PORTVERSION= 1.10.3
CATEGORIES= math ruby
MASTER_SITES= ${MASTER_SITE_RUBYFORGE}
MASTER_SITES= RF
MASTER_SITE_SUBDIR= rb-${PORTNAME}
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
DISTNAME= rb-${PORTNAME}-${PORTVERSION}
@ -25,7 +24,7 @@ USE_RUBY_SETUP= yes
CONFIGURE_ARGS= -- --with-opt-dir="${LOCALBASE}"
EXAMPLES_EN= samples/*
EXAMPLES_EN= examples/*
DOCS= AUTHORS ChangeLog THANKS html rd
post-extract:

View File

@ -1,3 +1,3 @@
MD5 (ruby/rb-gsl-1.9.2.tar.gz) = 600e71dd5d641bd9793ecda1407bbfe6
SHA256 (ruby/rb-gsl-1.9.2.tar.gz) = ce5dff1288071c082612f499bc0fbff6b99d12ebb97252347362b8a4c7842b9b
SIZE (ruby/rb-gsl-1.9.2.tar.gz) = 671120
MD5 (ruby/rb-gsl-1.10.3.tar.gz) = fcfa01e856b3ef4af6989cc117675c09
SHA256 (ruby/rb-gsl-1.10.3.tar.gz) = 307170413a4b579566e82acc487e8cc5fa6e199f30fde51a0738130c52a812b3
SIZE (ruby/rb-gsl-1.10.3.tar.gz) = 722963

View File

@ -1,113 +0,0 @@
--- ext/extconf.rb.orig Sat Aug 11 00:46:52 2007
+++ ext/extconf.rb Mon Sep 24 19:29:49 2007
@@ -1,5 +1,35 @@
require 'mkmf'
+
+module GSL
+ class Version
+ def initialize(str)
+ @str = str
+ @ary = str.split(".").collect { |elm| elm.to_i }
+ end
+ def to_s; @str; end
+ def inspect; @str; end
+ def >=(ver)
+ ary2 = ver.split(".").collect { |elm| elm.to_i }
+ if @ary[0] > ary2[0]; return true; end
+ if @ary[0] < ary2[0]; return false; end
+ if @ary[1] > ary2[1]; return true; end
+ if @ary[1] < ary2[1]; return false; end
+ if @ary.size < ary2.size; return false; end
+ if @ary.size == 3 and ary2.size == 3
+ if @ary[2] < ary2[2]; return false; end
+ end
+ return true
+ end
+ def <(ver)
+ ary2 = ver.split(".").collect { |elm| elm.to_i }
+ if @ary[0] >= ary2[0]; return false; end
+ if @ary[0] >= ary2[0]; return false; end
+ return true
+ end
+ end
+end
+
if /mingw/ =~ RUBY_PLATFORM
GSL_CONFIG = "sh gsl-config"
else
@@ -36,9 +66,10 @@
print("checking gsl version... ")
IO.popen("#{GSL_CONFIG} --version") do |f|
- ver = f.gets.chomp
+ ver = GSL::Version.new(f.gets.chomp)
puts(ver)
configfile.printf("#ifndef GSL_VERSION\n#define GSL_VERSION \"#{ver}\"\n#endif\n")
+
if ver >= "0.9.4"
configfile.printf("#ifndef GSL_0_9_4_LATER\n#define GSL_0_9_4_LATER\n#endif\n")
else
@@ -77,7 +108,10 @@
if ver >= "1.8.90"
configfile.printf("#ifndef GSL_1_9_LATER\n#define GSL_1_9_LATER\n#endif\n")
end
-
+
+ if ver >= "1.9.90"
+ configfile.printf("#ifndef GSL_1_10_LATER\n#define GSL_1_10_LATER\n#endif\n")
+ end
if ver < "1.4"
configfile.printf("#ifndef GSL_CONST_OLD\n#define GSL_CONST_OLD\n#endif\n")
end
@@ -93,7 +127,7 @@
RB_GSL_CONFIG = File.open("../include/rb_gsl_config.h", "w")
RB_GSL_CONFIG.printf("#ifndef ___RB_GSL_CONFIG_H___\n")
RB_GSL_CONFIG.printf("#define ___RB_GSL_CONFIG_H___\n\n")
-
+
check_version(RB_GSL_CONFIG)
gsl_config()
@@ -135,26 +169,21 @@
RB_GSL_CONFIG.printf("#ifndef HAVE_EIGEN_FRANCIS\n#define HAVE_EIGEN_FRANCIS\n#endif\n")
end
- if have_library("gsl", "gsl_eigen_gen_alloc")
- RB_GSL_CONFIG.printf("#ifndef HAVE_EIGEN_GEN\n#define HAVE_EIGEN_GEN\n#endif\n")
- end
-
- if have_library("gsl", "gsl_stats_correlation")
- RB_GSL_CONFIG.printf("#ifndef HAVE_GSL_STATS_CORRELATION\n#define HAVE_GSL_STATS_CORRELATION\n#endif\n")
- end
-
begin
print("checking rb-gsl version...")
IO.popen("cat ../VERSION") do |f|
- ver = f.gets.chomp
+ ver = GSL::Version.new(f.gets.chomp)
puts(ver)
RB_GSL_CONFIG.printf("#ifndef RUBY_GSL_VERSION\n#define RUBY_GSL_VERSION \"#{ver}\"\n#endif\n")
end
end
+
+ RUBY_VERSION2 = GSL::Version.new(RUBY_VERSION)
- puts("checking ruby version... #{RUBY_VERSION}")
- if RUBY_VERSION >= "1.8"
+ puts("checking ruby version... #{RUBY_VERSION2}")
+ if RUBY_VERSION2 >= "1.8"
RB_GSL_CONFIG.printf("#ifndef RUBY_1_8_LATER\n#define RUBY_1_8_LATER\n#endif\n")
+
if find_executable("graph")
RB_GSL_CONFIG.printf("#ifndef HAVE_GNU_GRAPH\n#define HAVE_GNU_GRAPH\n#endif\n")
end
@@ -172,7 +201,7 @@
end
puts("no") if flag == 0
end
- if RUBY_VERSION >= "1.9"
+ if RUBY_VERSION2 >= "1.9"
RB_GSL_CONFIG.printf("#ifndef RUBY_1_9_LATER\n#define RUBY_1_9_LATER\n#endif\n")
end

View File

@ -26,6 +26,7 @@
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/complex/mul.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/complex/oscillator.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/complex/set.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/const/hoge.txt
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/const/physconst.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/const/travel.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/deriv/demo.rb
@ -34,7 +35,6 @@
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/dht.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/dirac.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/eigen/eigen.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/eigen/gensymm.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/eigen/herm.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/eigen/narray.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/eigen/nonsymm.rb
@ -42,7 +42,6 @@
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/eigen/qhoscillator.gp
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/eigen/qhoscillator.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/eigen/vander.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/eigen/workspace.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/fft/fft.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/fft/fft2.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/fft/forward.rb
@ -57,13 +56,13 @@
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/fit/expfit.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/fit/gaussfit.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/fit/gaussian_2peaks.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/fit/hi.dat
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/fit/hillfit.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/fit/lo.dat
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/fit/lognormal.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/fit/lorentzfit.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/fit/multifit.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/fit/ndlinear.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/fit/nonlinearfit.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/fit/plot.gp
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/fit/polyfit.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/fit/powerfit.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/fit/sigmoidfit.rb
@ -147,7 +146,6 @@
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/linalg/chol_narray.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/linalg/complex.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/linalg/invert_narray.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/linalg/linalg.replaced
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/math/const.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/math/elementary.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/math/functions.rb
@ -155,11 +153,9 @@
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/math/minmax.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/math/power.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/math/test.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/matrix/a.dat
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/matrix/a.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/matrix/add.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/matrix/b.dat
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/matrix/cat.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/matrix/colvectors.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/matrix/complex.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/matrix/det.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/matrix/diagonal.rb
@ -251,6 +247,7 @@
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/poly/cheb_II.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/poly/cubic.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/poly/demo.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/poly/eval.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/poly/fit.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/poly/hermite.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/poly/poly.rb
@ -381,11 +378,10 @@
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/AUTHORS
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/ChangeLog
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/THANKS
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/html/airy.html
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/html/bessel.html
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/html/blas.html
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/html/bspline.html
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/html/cheb.html
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/html/cholesky_complex.html
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/html/combi.html
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/html/complex.html
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/html/const.html
@ -413,6 +409,7 @@
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/html/multimin.html
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/html/multiroot.html
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/html/narray.html
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/html/ndlinear.html
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/html/nonlinearfit.html
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/html/ntuple.html
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/html/odeiv.html
@ -440,6 +437,7 @@
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/rd/blas.rd
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/rd/bspline.rd
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/rd/cheb.rd
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/rd/cholesky_complex.rd
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/rd/combi.rd
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/rd/complex.rd
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/rd/const.rd
@ -467,6 +465,7 @@
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/rd/multimin.rd
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/rd/multiroot.rd
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/rd/narray.rd
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/rd/ndlinear.rd
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/rd/nonlinearfit.rd
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/rd/ntuple.rd
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/rd/odeiv.rd