# $Id: Portfile 80390 2011-07-11 12:57:16Z jmr@macports.org $

PortSystem		1.0
PortGroup		ruby 1.0

ruby.setup		bdb 0.6.5 extconf.rb {README.en bdb.html bdb.rd docs examples}
maintainers		nomaintainer
description		Ruby interface to the embedded Berkeley DB
long_description	Ruby BDB is an interface for using Berkeley DB \
					versions 2 and above. Developers may choose to store \
					data in any of several different storage structures \
					to satisfy the requirements of a particular \
					application. The library includes support for \
					B+tree, Hashes, and Fixed and Variable-Length \
					Records.
categories-append	databases
license         {Ruby GPL-2}
homepage		http://moulon.inra.fr/ruby/${ruby.module}.html
master_sites	ftp://moulon.inra.fr/pub/ruby/
checksums		md5 a6b1b04eede935f1de5327e365e350fa \
				sha1 9a9151801d2a02feb0bba866762634bec860e724
platforms		darwin

depends_lib-append		port:db46

configure.args-append	--with-db-lib=${prefix}/lib/db46 \
						--with-db-include=${prefix}/include/db46

pre-configure {
	# The trailing space is not a typo
	reinplace "s|extconf.rb |-rvendor-specific & |" ${worksrcpath}/extconf.rb
}

test.run			yes
#test.target			test

livecheck.type  regex
livecheck.url   http://raa.ruby-lang.org/project/bdb
livecheck.regex {bdb / ([0-9.]+)}
