Ticket #19218: sqlite3.diff

File sqlite3.diff, 1.9 KB (added by tenomoto (Takeshi Enomoto), 15 years ago)
  • Portfile

    old new  
    11# $Id: Portfile 44405 2008-12-28 00:40:47Z blb@macports.org $
    22
    33PortSystem 1.0
    4 PortGroup python25 1.0
     4PortGroup python26 1.0
    55
    6 name                    py25-hashlib
    7 version                 2.5.4
    8 categories              python
     6name                    py26-sqlite3
     7version                 2.6.1
     8categories              python databases
    99platforms               darwin
    1010maintainers             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
     11description             Python bindings to sqlite3
     12long_description        ${description}
    1413
    15 homepage                http://www.python.org/doc/current/lib/module-hashlib.html
     14homepage                http://www.python.org/doc/current/lib/module-sqlite3.html
    1615master_sites    http://www.python.org/ftp/python/${version}/
    1716distname                Python-${version}
    18 dist_subdir             python25
    19 checksums               sha1 0f2e819d6381f72f26c734e00a6780b3933ea404
     17dist_subdir             python26
     18checksums               sha1 419f0cb29e9713ea861dde8c43d107c51329e57b
    2019use_bzip2               yes
    2120
    22 depends_lib-append      port:openssl
    23 
    2421worksrcdir              ${worksrcdir}/Modules
    2522
    26 extract.post_args       "| tar -xf - ${distname}/Modules/_hashopenssl.c"
     23extract.post_args       "| tar -xf - ${distname}/Modules/_sqlite"
    2724post-extract {
    28         file copy ${filespath}/setup.py ${worksrcpath}
     25        file copy       ${filespath}/setup.py ${worksrcpath}
    2926}
    3027
    31 configure {
     28set libdir ${prefix}/lib/
     29set incdir ${prefix}/include/
     30depends_lib-append      port:sqlite3
     31
     32configure       {
    3233        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
    3436}
    3537
    3638livecheck.check regex
    3739livecheck.url   http://www.python.org/download/releases/
    38 livecheck.regex Python (2.5\[0-9\.\]+)
     40livecheck.regex Python (2.6\[0-9\.\]+)