# -*- 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 python databases
description Python bindings to the GNU dbm library
long_description ${description}
homepage http://www.python.org/doc/current/lib/module-gdbm.html
master_sites http://www.python.org/ftp/python/${version}/
distname Python-${version}
checksums sha1 cb1972a554a458f6a26d3e047b359251865d7c96
depends_lib-append port:gdbm
worksrcdir ${worksrcdir}/Modules
extract.post_args "| tar -xf - ${distname}/Modules/gdbmmodule.c"
file copy ${filespath}/setup.py ${worksrcpath}
reinplace "s|__VERSION__|${version}|g" ${worksrcpath}/setup.py
reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/setup.py
livecheck.url http://www.python.org/download/releases/
livecheck.regex Python (2.4.\[0-9\]+)