PortSystem		1.0
PortGroup		ruby 1.0

ruby.setup		bdb 0.6.6 extconf.rb {README.en 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		https://github.com/knu/ruby-bdb
master_sites	https://idaemons.org/distfiles/ruby/
use_bzip2       yes
checksums		rmd160 e2ecaee2c5b149e55cf0322951fadba6b131e7dd \
                sha256 8a4767568f06a1f85e1573f7e405a4db02cc32c2c11ac1cb7c11d069fae3afb8

depends_lib-append		port:db48

patchfiles		conversion.patch \
                patch-bdbxml1-bdbxml.cc \
                patch-bdbxml2-bdbxml.cc \
                patch-docs_hashlike.rd \
                patch-extconf.rb \
                patch-src-bdb.c \
                patch-src-common.c \
                patch-src-cursor.c \
                patch-src-env.c \
                patch-src-extconf.rb \
                patch-src-features.rb \
                patch-src-lock.c \
                patch-src-log.c \
                patch-src-recnum.c \
                patch-src-sequence.c \
                patch-src-transaction.c

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

test.run			yes

livecheck.type  regex
livecheck.url   ${homepage}/tags
livecheck.regex {tag/v([0-9.]+)}
