# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
categories-append databases
description Python 3 bindings for Oracle Berkeley DB
long_description This port provides a nearly complete wrapping \
of the Oracle/Sleepycat C API for the Database \
Environment, Database, Cursor, Log Cursor, \
Sequence and Transaction objects. Each of \
these is exposed as a Python type in the \
homepage https://pypi.python.org/pypi/${real_name}
master_sites pypi:b/${real_name}
distname ${real_name}-${version}
checksums rmd160 9dd60a1d68d497e6b0cb604857f316a62042a247 \
sha256 319a599236b0843a36c17749c0041c18a07ef28dbe9539064fd7c0fff972567c
# replication requires Berkeley DB >= 5.1
# use with Oracle Berkeley DB >= 6.0 has licensing issues
# http://www.jcea.es/programacion/pybsddb.htm
if {${name} ne ${subport}} {
depends_lib port:py${python.version}-setuptools \
build.env-append BERKELEYDB_INCDIR=${prefix}/include/db${db_version} \
BERKELEYDB_LIBDIR=${prefix}/lib/db${db_version}
destroot.env-append BERKELEYDB_INCDIR=${prefix}/include/db${db_version} \
BERKELEYDB_LIBDIR=${prefix}/lib/db${db_version}
livecheck.url ${homepage}
livecheck.regex bsddb3 (\\d+(\\.\\d+)+)