Contents of /trunk/core/sqlite/sqlite-3.42.0-r1.smage2
Parent Directory | Revision Log
Revision 33413 -
(show annotations)
(download)
Sat Jul 15 20:18:49 2023 UTC (9 months, 3 weeks ago) by niro
File size: 2002 byte(s)
Sat Jul 15 20:18:49 2023 UTC (9 months, 3 weeks ago) by niro
File size: 2002 byte(s)
-ver bump to 3.42.0-r1
1 | # $Id$ |
2 | |
3 | PNAME="sqlite" |
4 | PVER="3.42.0" |
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.4 |
13 | >= sys-libs/readline-8.2" |
14 | |
15 | SDEPEND=">= sys-libs/zlib-1.2.13" |
16 | |
17 | # helper function |
18 | sqlite_upstream_pver() |
19 | { |
20 | local pver="$1" |
21 | local count=0 |
22 | local i |
23 | |
24 | for i in $(echo ${pver//./\ }) |
25 | do |
26 | if [[ ${i} -lt 10 ]] && [[ ${count} -gt 0 ]] |
27 | then |
28 | echo -n "0${i}" |
29 | else |
30 | echo -n "${i}" |
31 | fi |
32 | (( count++)) |
33 | done |
34 | |
35 | # fill up missing zeros if needed |
36 | if [[ ${count} -lt 4 ]] |
37 | then |
38 | for (( i=4-count; i>0; i--)) |
39 | do |
40 | echo -n "00" |
41 | done |
42 | fi |
43 | |
44 | # crlf |
45 | echo |
46 | } |
47 | |
48 | SRCFILE="${PNAME}-autoconf-$(sqlite_upstream_pver ${PVER}).tar.gz" # a special srcfile is needed to build without tcl |
49 | SRCDIR="${BUILDDIR}/${PNAME}-autoconf-$(sqlite_upstream_pver ${PVER})" |
50 | |
51 | sminclude multilib mbuild |
52 | |
53 | SRC_URI=( |
54 | http://www.sqlite.org/2023/${SRCFILE} |
55 | mirror://${PNAME}/${SRCFILE} |
56 | ) |
57 | |
58 | #UP2DATE="updatecmd http://www.sqlite.org | grep 'Latest Release' | sed -n 's/.*Version \(.*\)\ (.*/\1/;$ p'" |
59 | UP2DATE="updatecmd http://www.sqlite.org | grep 'Version' | sed -n 's/.*Version \(.*\)\ (.*/\1/;$ p'" |
60 | |
61 | src_compile() |
62 | { |
63 | # required flags by firefox |
64 | export CPPFLAGS+=" -DSQLITE_ENABLE_DBSTAT_VTAB=1 \ |
65 | -DSQLITE_ENABLE_COLUMN_METADATA=1 \ |
66 | -DSQLITE_ENABLE_UNLOCK_NOTIFY \ |
67 | -DSQLITE_SECURE_DELETE \ |
68 | -DSQLITE_ENABLE_FTS3_TOKENIZER=1 \ |
69 | -DSQLITE_ENABLE_FTS3_PARENTHESIS \ |
70 | -DSQLITE_ENABLE_STMTVTAB \ |
71 | -DSQLITE_MAX_VARIABLE_NUMBER=250000 \ |
72 | -DSQLITE_MAX_EXPR_DEPTH=10000 \ |
73 | -DSQLITE_ENABLE_MATH_FUNCTIONS" |
74 | |
75 | mconfigure \ |
76 | --enable-load-extension \ |
77 | --enable-readline \ |
78 | --enable-cross-thread-connections \ |
79 | --enable-threadsafe \ |
80 | --disable-tcl \ |
81 | --disable-debug \ |
82 | --enable-fts3 \ |
83 | --enable-fts4 \ |
84 | --enable-fts5 \ |
85 | --enable-rtree \ |
86 | --disable-tcl \ |
87 | || die |
88 | |
89 | # apply as-needed |
90 | sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool || die |
91 | |
92 | mmake || die |
93 | } |