Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions sql/sqlite/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,15 @@ OPTS+=" --disable-static \
--enable-fts5 \
--enable-rtree \
--enable-geopoly \
--enable-threadsafe \
--enable-readline"
--enable-threadsafe"

default_config &&

# fix the tcl related directrory name
sedit 's|/zipfs:|usr|' Makefile &&
# fix the tcl related directory name
if in_depends sqlite tcl
then
sedit 's|/zipfs:|usr|' Makefile
fi &&

default_make &&

Expand Down
3 changes: 3 additions & 0 deletions sql/sqlite/CONFIGURE
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
if module_installed python || module_installed python2; then
mquery REBUILD_PYTHON "Rebuild Python afterwards to add sqlite support?" n "" ""
fi
5 changes: 3 additions & 2 deletions sql/sqlite/DEPENDS
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
depends zlib
depends tcl
depends readline

optional_depends readline "--enable-readline" "--disable-readline" "for readline command-line editing" n
optional_depends tcl "--enable-tcl" "--disable-tcl" "for sqlite3_analyzer and tests" n
13 changes: 8 additions & 5 deletions sql/sqlite/POST_INSTALL
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
if module_installed python; then
lin -c python
fi
if [[ ${REBUILD_PYTHON:-n} == y ]]
then
if module_installed python; then
lin -c python
fi

if module_installed python2; then
lin -c python2
if module_installed python2; then
lin -c python2
fi
fi