# $Id: Portfile 106571 2013-05-31 04:35:28Z kimuraw@macports.org $

PortSystem		1.0
PortGroup		ruby 1.0
PortGroup		github 1.0

version			1.15.3
github.setup	david-macmahon rb-gsl ${version} rb-gsl-
set docs {AUTHORS COPYING ChangeLog README THANKS examples}
ruby.setup		{gsl rb-gsl} ${version} setup.rb $docs
maintainers		nomaintainer
description		Ruby interface to the GSL
long_description	RubyGSL is a ruby interface to the \
  GSL (GNU Scientific Library), for numerical computing with Ruby.
categories-append   math
license				GPL-2+
checksums		    md5 10bcc76deeb99189687cc19a01269e72 \
                    sha1 41bf2bab41f9890d9e48fca100673f4ffae4860f \
                    rmd160 e064b6efd26246fefe98092ca655033789a44644
platforms		    darwin
depends_lib-append     port:gsl
patchfiles			patch-ext-extconf.rb.diff

variant narray description {Build with NArray} {
  depends_lib-append port:rb-narray
  configure.args-append \
    -- --with-narray-include=${ruby.archlib}
}
