categories python databases
description Python bindings to the db4 and db3 library
long_description ${description}
homepage http://www.python.org/doc/current/lib/module-dbm.html
master_sites http://www.python.org/ftp/python/${version}/
distname Python-${version}
checksums sha1 4755d212f50af704c20224a6966e23acc5aea60f
worksrcdir ${worksrcdir}/Modules
extract.post_args "| tar -xf - ${distname}/Modules/bsddbmodule.c \
${distname}/Modules/_bsddb.c"
file copy ${filespath}/setup.py ${worksrcpath}
set libdir ${prefix}/lib/db46
set incdir ${prefix}/include/db46
depends_lib-append port:db46
reinplace "s|__VERSION__|${version}|g" ${worksrcpath}/setup.py
reinplace "s|__LIBDIR__|${libdir}|g" ${worksrcpath}/setup.py
reinplace "s|__INCDIR__|${incdir}|g" ${worksrcpath}/setup.py
livecheck.url http://www.python.org/download/releases/
livecheck.regex Python (2.4.\[0-9\]+)