source: trunk/dports/databases/tcl-sqlite3/Portfile @ 42746

Last change on this file since 42746 was 42746, checked in by mww@…, 9 years ago

version 3.6.6.2

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1# $Id: Portfile 42746 2008-11-30 15:01:19Z mww@macports.org $
2
3PortSystem 1.0
4
5name                    tcl-sqlite3
6version                 3.6.6.2
7categories              databases
8platforms               darwin
9maintainers             mww
10description             Tcl bindings for SQLite3
11long_description        ${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
19homepage                http://www.sqlite.org/
20master_sites    ${homepage}
21distname                sqlite-${version}
22dist_subdir             sqlite3/${version}
23checksums               sha1 4cd87fa954da5b11d7ee230e1003a23a68f68397
24
25depends_lib             port:readline \
26                                port:sqlite3 \
27                                port:tcl
28
29post-patch {
30        reinplace "s|tclsh8.4|tclsh|g" ${worksrcpath}/configure
31}
32
33# '-lm' makes freebsd happy & darwin not angry (and makes variants unnecessary)
34configure.args  --enable-threadsafe --with-tcl=${prefix}/lib \
35                        --with-readline-inc="-I${prefix}/include" \
36                        --with-readline-lib="-L${prefix}/lib -lreadline -lm"
37
38configure.awk           "${prefix}/bin/gawk"
39
40use_parallel_build      yes
41build.type              gnu
42
43livecheck.check regex
44livecheck.url   http://www.sqlite.org/download.html
45livecheck.regex sqlite-(\[0-9\\.\]+\[0-9\])\\.
46
47post-destroot {
48        # Make sure the correct version is used, not sure why this is
49        # necessary.
50        reinplace "s|3.6|${version}|g" ${destroot}${prefix}/lib/tcl8.5/sqlite3/pkgIndex.tcl
51        # Delete all normal SQLite 3 files, they are installed by the sqlite3
52        # port.
53        file delete -force ${destroot}${prefix}/bin
54        file delete -force ${destroot}${prefix}/include
55        file delete -force ${destroot}${prefix}/share
56        file delete -force ${destroot}${prefix}/lib/pkgconfig
57        foreach file [glob ${destroot}${prefix}/lib/libsqlite*] {
58                file delete $file
59        }
60}
Note: See TracBrowser for help on using the repository browser.