# -*- 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-append 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 33 34 35 set setup_py "setup.py" set extract_files "Modules/gdbmmodule.c" subport py24-gdbm { maintainers fourdigits.nl:roel openmaintainer use_bzip2 yes checksums sha1 cb1972a554a458f6a26d3e047b359251865d7c96 \ rmd160 0687989193dec2ac108142759281be7ddcf7f31e livecheck.regex Python (2.4.\[0-9\]+) } subport py25-gdbm { maintainers nomaintainer version 2.5.6 use_bzip2 yes checksums sha1 29f6dd41bf09c5e04311b367cbb7604fa016e699 \ rmd160 92f0a955971f187a7d50c6422168202ec551bf22 livecheck.regex Python (2.5.\[0-9\]+) } subport py26-gdbm { maintainers mcalhoun openmaintainer version 2.6.9 use_xz yes checksums md5 933a811f11e3db3d73ae492f6c3a7a76 \ rmd160 42edf7c9f2f64b77ab173de30ea453257c2c06b3 \ sha256 cae7bb995006ea5b703d9d28446f694894c441fe4bfb95d561c0ac908cd06e41 livecheck.regex Python (2.6.\[0-9\]+) } subport py27-gdbm { maintainers jwa openmaintainer version 2.7.10 use_xz yes checksums rmd160 eb003de9bb52fc2c6a2d2e3dcb816ba0c56751d0 \ sha256 1cd3730781b91caf0fa1c4d472dc29274186480161a150294c42ce9b5c5effc0 livecheck.regex Python (2.7.\[0-9\]+) } subport py31-gdbm { maintainers nomaintainer version 3.1.5 use_xz yes checksums md5 20dd2b7f801dc97db948dd168df4dd52 \ rmd160 021362658310f9ea5f6825bf0919f160304f4833 \ sha256 035c4370354d901924ce0fd8df65c5452839f590ec1b9c17fae2ada3e5f3b4d7 set setup_py "setup-py3k.py" set extract_files "Modules/_gdbmmodule.c" livecheck.regex Python (3.1.\[0-9\]+) } subport py32-gdbm { maintainers nomaintainer version 3.2.6 use_xz yes checksums md5 e0ba4360dfcb4aec735e666cc0ae7b0e \ rmd160 f3f5877cd3ac03151f161353e808a38204f1270d \ sha256 1d12b501819fd26afafbf8459be1aa279b56f032b4c15412de0a713ce0de7bdc set setup_py "setup-py3k.py" set extract_files "Modules/_gdbmmodule.c" livecheck.regex Python (3.2.\[0-9\]+) } subport py33-gdbm { maintainers jwa openmaintainer version 3.3.6 epoch 20141012 use_xz yes checksums rmd160 e45909eedf3648408ef8b34775ab24654181d9bd \ sha256 5226e4bf7a530c3ff2bcde0c94e0e09e59a8bcde0114fe0268bc925bdabb5d3f set setup_py "setup-py3k.py" set extract_files "Modules/_gdbmmodule.c" livecheck.regex Python (3.3.\[0-9\]+) } subport py34-gdbm { maintainers jwa openmaintainer version 3.4.3 epoch 20150225 use_xz yes checksums rmd160 fc0a8ce58c8b354f644db3527d838a77d2e27fba \ sha256 b5b3963533768d5fc325a4d7a6bd6f666726002d696f1d399ec06b043ea996b8 set setup_py "setup-py3k.py" set extract_files "Modules/_gdbmmodule.c" livecheck.regex Python (3.4.\[0-9\]+) } subport py35-gdbm { maintainers jwa openmaintainer version 3.5.0b3 epoch 20150706 use_xz yes checksums rmd160 0e801a937c0e99a2de358615abaec31cef7cc7ab \ sha256 28e2e71dabbe6043495181965b034e6d3a5a4798c113f1459e0994b0e99d4bfa set setup_py "setup-py3k.py" set extract_files "Modules/_gdbmmodule.c Modules/clinic/_gdbmmodule.c.h" livecheck.regex Python (3.5.0\[abrc\]+\[0-9\]+) } distname Python-${version} master_sites http://www.python.org/ftp/python/${version}/ if {${name} ne ${subport}} { depends_lib-append port:gdbm dist_subdir python${python.version} worksrcdir ${worksrcdir}/Modules foreach f $extract_files { lappend extract_files_full "${distname}/$f" } extract.post_args "| tar -xf - ${extract_files_full}" 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 https://www.python.org/downloads/