Ticket #24799: Portfile-sqlite3.diff

File Portfile-sqlite3.diff, 4.5 KB (added by franck@…, 15 years ago)

Portfile patch for sqlite3

  • Portfile

    old new  
    1 # $Id: Portfile 65684 2010-03-30 08:01:25Z mww@macports.org $
     1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
     2# $Id$
    23
    3 PortSystem 1.0
     4PortSystem          1.0
    45
    5 name                    sqlite3
    6 version                 3.6.23.1
    7 categories              databases
    8 platforms               darwin
    9 maintainers             mww openmaintainer
    10 description             an embedded SQL database engine
    11 long_description        SQLite3 is an SQL database engine in a C library. \
    12                                 Programs that link the SQLite3 library can have SQL \
    13                                 database access without running a separate RDBMS \
    14                                 process. The distribution comes with a standalone \
    15                                 command-line access program (sqlite3) that can be used \
    16                                 to administer an SQLite3 database and which serves as \
    17                                 an example of how to use the SQLite3 library.
    18 
    19 homepage                http://www.sqlite.org/
    20 master_sites    ${homepage}
    21 distname                sqlite-${version}
     6name                sqlite3
     7version             3.6.23.1
     8categories          databases
     9platforms           darwin
     10maintainers         mww ouarz.net:franck.cassedanne openmaintainer
     11license             public domain
     12description         an embedded SQL database engine
     13
     14long_description    SQLite3 is an SQL database engine in a C library. \
     15                    Programs that link the SQLite3 library can have SQL \
     16                    database access without running a separate RDBMS \
     17                    process. The distribution comes with a standalone \
     18                    command-line access program (sqlite3) that can be used \
     19                    to administer an SQLite3 database and which serves as \
     20                    an example of how to use the SQLite3 library.
     21
     22homepage            http://www.sqlite.org/
     23master_sites        ${homepage}
     24distname            sqlite-${version}
    2225checksums           md5     d99f1b31da0eb33271464bee15cec701 \
    2326                    sha1    718615fc37a5ef57fb4e7d06fc56ee7bda391d6f \
    2427                    rmd160  03847176d21391cc44d2275fc685d556c56ab9d8
    2528
    26 depends_lib             port:readline \
    27                                 port:ncurses
     29depends_lib         port:readline \
     30                    port:ncurses
    2831
    2932# '-lm' makes freebsd happy & darwin not angry (and makes variants unnecessary)
    3033# '-lncurses' is needed to build universal on Tiger; see #15661
    31 configure.args  --enable-threadsafe --disable-tcl \
    32                         --enable-load-extension \
    33                         --with-readline-inc="-I${prefix}/include" \
    34                         --with-readline-lib="-L${prefix}/lib -lreadline -lm -lncurses"
     34configure.args      --enable-threadsafe --disable-tcl \
     35                    --enable-load-extension \
     36                    --with-readline-inc="-I${prefix}/include" \
     37                    --with-readline-lib="-L${prefix}/lib -lreadline -lm -lncurses"
    3538# search in worksrcpath for sqlite3.h first -- dont pick up an installed one!
    36 configure.cppflags      "-DSQLITE_ENABLE_COLUMN_METADATA=1 -I${worksrcpath} -I${prefix}/include"
     39configure.cppflags  "-DSQLITE_ENABLE_COLUMN_METADATA=1 -I${worksrcpath} -I${prefix}/include"
    3740
    38 use_parallel_build      no
    39 build.type              gnu
     41use_parallel_build  no
     42build.type          gnu
    4043
    41 test.run                yes
    42 test.target             test
     44test.run            yes
     45test.target         test
    4346
    44 livecheck.type  regex
    45 livecheck.url   http://www.sqlite.org/download.html
    46 livecheck.regex sqlite-(\[0-9\\.\]+\[0-9\])\\.
     47livecheck.type      regex
     48livecheck.url       http://www.sqlite.org/download.html
     49livecheck.regex     sqlite-(\[0-9\\.\]+\[0-9\])\\.
    4750
    4851post-destroot {
    49         xinstall -m 644 ${worksrcpath}/${name}.1 ${destroot}${prefix}/share/man/man1
     52    xinstall -m 644 ${worksrcpath}/${name}.1 ${destroot}${prefix}/share/man/man1
    5053}
    5154
    5255platform darwin 8 {
    53     configure.cppflags-append -DSQLITE_ENABLE_LOCKING_STYLE=0
     56    configure.cppflags-append   -DSQLITE_ENABLE_LOCKING_STYLE=0
    5457}
     58
     59variant fts3 description {Add the FTS3 extension for full text search} {
     60    configure.cppflags-append   -DSQLITE_ENABLE_FTS3 -SQLITE_ENABLE_FTS3_PARENTHESIS
     61}
     62
     63variant rtree description {Add the R*Tree extension for spatial data structure} {
     64    configure.cppflags-append   -DSQLITE_ENABLE_RTREE=1
     65}
     66
     67variant soundex description {Enables the soundex() function} {
     68    configure.cppflags-append   -DSQLITE_SOUNDEX=1
     69}
     70
     71variant icu description {Add the International Components for Unicode (ICU) extension} {
     72    depends_lib-append          port:icu
     73    configure.ldflags-append    [exec ${prefix}/bin/icu-config --ldflags]
     74    configure.cppflags-append   -DSQLITE_ENABLE_ICU
     75}
     76 No newline at end of file