Ticket #19218: sqlite3.diff
File sqlite3.diff, 1.9 KB (added by tenomoto (Takeshi Enomoto), 16 years ago) |
---|
-
Portfile
old new 1 1 # $Id: Portfile 44405 2008-12-28 00:40:47Z blb@macports.org $ 2 2 3 3 PortSystem 1.0 4 PortGroup python2 51.04 PortGroup python26 1.0 5 5 6 name py2 5-hashlib7 version 2. 5.48 categories python 6 name py26-sqlite3 7 version 2.6.1 8 categories python databases 9 9 platforms darwin 10 10 maintainers mww 11 description Python secure hash and message digest module 12 long_description Python secure hash and message digest module MD5, SHA1, \ 13 SHA224, SHA256, SHA384, SHA512 11 description Python bindings to sqlite3 12 long_description ${description} 14 13 15 homepage http://www.python.org/doc/current/lib/module- hashlib.html14 homepage http://www.python.org/doc/current/lib/module-sqlite3.html 16 15 master_sites http://www.python.org/ftp/python/${version}/ 17 16 distname Python-${version} 18 dist_subdir python2 519 checksums sha1 0f2e819d6381f72f26c734e00a6780b3933ea40417 dist_subdir python26 18 checksums sha1 419f0cb29e9713ea861dde8c43d107c51329e57b 20 19 use_bzip2 yes 21 20 22 depends_lib-append port:openssl23 24 21 worksrcdir ${worksrcdir}/Modules 25 22 26 extract.post_args "| tar -xf - ${distname}/Modules/_ hashopenssl.c"23 extract.post_args "| tar -xf - ${distname}/Modules/_sqlite" 27 24 post-extract { 28 file copy 25 file copy ${filespath}/setup.py ${worksrcpath} 29 26 } 30 27 31 configure { 28 set libdir ${prefix}/lib/ 29 set incdir ${prefix}/include/ 30 depends_lib-append port:sqlite3 31 32 configure { 32 33 reinplace "s|__VERSION__|${version}|g" ${worksrcpath}/setup.py 33 reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/setup.py 34 reinplace "s|__LIBDIR__|${libdir}|g" ${worksrcpath}/setup.py 35 reinplace "s|__INCDIR__|${incdir}|g" ${worksrcpath}/setup.py 34 36 } 35 37 36 38 livecheck.check regex 37 39 livecheck.url http://www.python.org/download/releases/ 38 livecheck.regex Python (2. 5\[0-9\.\]+)40 livecheck.regex Python (2.6\[0-9\.\]+)