# -*- 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 # $Id$ PortSystem 1.0 PortGroup python 1.0 name py-gdbm version 2.4.6 categories python databases license PSF platforms darwin maintainers nomaintainer description Python bindings to the GNU dbm library long_description ${description} homepage http://docs.python.org/library/gdbm.html python.versions 24 25 26 27 31 32 set setup_py "setup.py" set cfile "gdbmmodule.c" subport py24-gdbm { use_bzip2 yes checksums sha1 cb1972a554a458f6a26d3e047b359251865d7c96 \ rmd160 0687989193dec2ac108142759281be7ddcf7f31e livecheck.regex Python (2.4.\[0-9\]+) } subport py25-gdbm { version 2.5.6 use_bzip2 yes checksums sha1 29f6dd41bf09c5e04311b367cbb7604fa016e699 \ rmd160 92f0a955971f187a7d50c6422168202ec551bf22 livecheck.regex Python (2.5.\[0-9\]+) } subport py26-gdbm { version 2.6.7 use_bzip2 yes checksums sha1 5d35eb746e85fb3deaff8518448137c9b9fb6daa \ rmd160 513e84a7cb76ca876e3803bb03ed558bd0378063 livecheck.regex Python (2.6.\[0-9\]+) } subport py27-gdbm { version 2.7.2 # consider changing to xz with next release (in sync with python27) use_bzip2 yes checksums sha1 417bdeea77abfaf1b9257fc6b4a04aaa209f4547 \ rmd160 c3bf4f09b7c429a4d9f4cc251c795304cd5232c5 livecheck.regex Python (2.7.\[0-9\]+) } subport py31-gdbm { version 3.1.4 use_xz yes checksums sha1 e5767a4fc92433816451de75c8721f2e1a81f6ea \ rmd160 beb24a2a1227aa2bc036263b4c808daa72fa3e02 set setup_py "setup-py3k.py" set cfile "_gdbmmodule.c" livecheck.regex Python (3.1.\[0-9\]+) } subport py32-gdbm { version 3.2.2 # consider changing to xz with next release (in sync with python32) use_bzip2 yes checksums sha1 3be9287068c9b4c3e5f46f03ccb0f365b56ed56d \ rmd160 029d7ae5fbfaad6fc9ab3fea4ddd53943159976e set setup_py "setup-py3k.py" set cfile "_gdbmmodule.c" livecheck.regex Python (3.2.\[0-9\]+) } distname Python-${version} master_sites http://www.python.org/ftp/python/${version}/ if {$subport != $name} { depends_lib-append port:gdbm dist_subdir python${python.version} worksrcdir ${worksrcdir}/Modules extract.post_args "| tar -xf - ${distname}/Modules/${cfile}" post-extract { file copy ${filespath}/${setup_py} ${worksrcpath}/setup.py } patch { reinplace "s|__VERSION__|${version}|g" ${worksrcpath}/setup.py reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/setup.py } } livecheck.type regex livecheck.url http://www.python.org/download/releases/