PortSystem		1.0
PortGroup		ruby 1.0

ruby.setup		bioruby 0.6.2 install.rb {README doc sample test etc}
revision		2
maintainers		nomaintainer
description		Integrated environment for bioinformatics.
long_description	BioRuby project aims to implement an integrated environment \
                    for Bioinformatics with Ruby language. Design philosophy of \
                    the BioRuby library is KISS (keep it simple and stupid) to \
                    maximize the usability and the efficiency for biologists as a \
                    daily tool.
categories-append   science
license				GPL-2+
checksums		    md5 68c7ae5aa8562bfe1021d9a5201a9581
homepage            http://bioruby.org
master_sites        http://bioruby.org/archive/
platforms		    any
supported_archs     noarch
depends_lib-append	port:rb-bdb \
                    port:rb-http-access2
variant mysql       {
                        depends_lib-append port:rb-dbd-mysql
                    }
variant postgres    {
                        depends_lib-append port:rb-dbd-pg
                    }
post-destroot {
	# /usr/bin/env ruby -> ruby1.8
	reinplace -locale C "s%#!.*ruby%#!${ruby.bin}%" \
		${destroot}${ruby.bindir}/br_biofetch.rb \
		${destroot}${ruby.bindir}/br_bioflat.rb \
		${destroot}${ruby.bindir}/br_biogetseq.rb \
		${destroot}${ruby.bindir}/br_pmfetch.rb
}
