Contents of /trunk/core/sqlite/sqlite-3.23.1-r1.smage2
Parent Directory | Revision Log
Revision 30826 -
(show annotations)
(download)
Mon Apr 23 11:50:42 2018 UTC (6 years, 5 months ago) by niro
File size: 1462 byte(s)
Mon Apr 23 11:50:42 2018 UTC (6 years, 5 months ago) by niro
File size: 1462 byte(s)
auto added: ver bump to 3.23.1-r1
1 | # $Id$ |
2 | |
3 | PNAME="sqlite" |
4 | PVER="3.23.1" |
5 | PBUILD="r1" |
6 | |
7 | PCAT="dev-db" |
8 | |
9 | DESCRIPTION="SQLite is a small C library that implements a self-contained, embeddable, zero-configuration SQL database engine." |
10 | HOMEPAGE="http://www.sqlite.org/" |
11 | |
12 | DEPEND=">= sys-libs/ncurses-6.0 |
13 | >= sys-libs/readline-7.0" |
14 | |
15 | # helper function |
16 | sqlite_upstream_pver() |
17 | { |
18 | local pver="$1" |
19 | local count=0 |
20 | local i |
21 | |
22 | for i in $(echo ${pver//./\ }) |
23 | do |
24 | if [[ ${i} -lt 10 ]] && [[ ${count} -gt 0 ]] |
25 | then |
26 | echo -n "0${i}" |
27 | else |
28 | echo -n "${i}" |
29 | fi |
30 | (( count++)) |
31 | done |
32 | |
33 | # fill up missing zeros if needed |
34 | if [[ ${count} -lt 4 ]] |
35 | then |
36 | for (( i=4-count; i>0; i--)) |
37 | do |
38 | echo -n "00" |
39 | done |
40 | fi |
41 | |
42 | # crlf |
43 | echo |
44 | } |
45 | |
46 | SRCFILE="${PNAME}-autoconf-$(sqlite_upstream_pver ${PVER}).tar.gz" # a special srcfile is needed to build without tcl |
47 | SRCDIR="${BUILDDIR}/${PNAME}-autoconf-$(sqlite_upstream_pver ${PVER})" |
48 | |
49 | sminclude multilib mbuild |
50 | |
51 | SRC_URI=( |
52 | http://www.sqlite.org/2018/${SRCFILE} |
53 | mirror://${PNAME}/${SRCFILE} |
54 | ) |
55 | |
56 | UP2DATE="updatecmd http://www.sqlite.org | grep 'Latest Release' | sed -n 's/.*Version \(.*\)\ (.*/\1/;$ p'" |
57 | |
58 | src_compile() |
59 | { |
60 | # required flags by firefox |
61 | export CFLAGS+=" -DSQLITE_ENABLE_DBSTAT_VTAB=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_ENABLE_UNLOCK_NOTIFY -DSQLITE_SECURE_DELETE" |
62 | |
63 | mconfigure \ |
64 | --enable-load-extension \ |
65 | --enable-readline \ |
66 | --enable-cross-thread-connections \ |
67 | --enable-threadsafe \ |
68 | --disable-tcl \ |
69 | --disable-debug \ |
70 | || die |
71 | |
72 | mmake || die |
73 | } |