# $Id$ PortSystem 1.0 #PortGroup python30 1.0 # begin group code (remove this when the python30 group code becomes available) set python.bin ${prefix}/bin/python3.0 categories python depends_lib port:python30 use_configure no build.cmd ${python.bin} setup.py build.target build destroot.cmd ${python.bin} setup.py destroot.destdir --prefix=${prefix}/Library/Frameworks/Python.framework/Versions/3.0 --root=${destroot} # end group code name py30-gdbm version 3.0b3 categories python databases platforms darwin maintainers mww 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/3.0/ distname Python-${version} dist_subdir python30 checksums md5 91d44362c73dcc423ec51973ed4082fe use_bzip2 yes depends_lib-append port:gdbm worksrcdir ${worksrcdir}/Modules extract.post_args "| tar -xf - ${distname}/Modules/_gdbmmodule.c" post-extract { file copy ${filespath}/setup.py ${worksrcpath} } patch { reinplace "s|__VERSION__|${version}|g" ${worksrcpath}/setup.py reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/setup.py } livecheck.check regex livecheck.url http://www.python.org/download/releases/3.0/ livecheck.regex /3.0/Python-(\[0-9a-z.\]+)\\.tgz