# $Id$ PortSystem 1.0 PortGroup python25 1.0 name py25-sqlite3 version 2.5.2 categories python databases platforms darwin maintainers mww description Python bindings to sqlite3 long_description ${description} homepage http://www.python.org/doc/current/lib/module-sqlite3.html master_sites http://www.python.org/ftp/python/${version}/ distname Python-${version} dist_subdir python25 checksums sha1 4755d212f50af704c20224a6966e23acc5aea60f use_bzip2 yes worksrcdir ${worksrcdir}/Modules extract.post_args "| tar -xf - ${distname}/Modules/_sqlite" post-extract { file copy ${filespath}/setup.py ${worksrcpath} } set libdir ${prefix}/lib/ set incdir ${prefix}/include/ depends_lib-append port:sqlite3 configure { 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.check regex livecheck.url http://www.python.org/download/releases/ livecheck.regex Python (2.5\[0-9\.\]+)