summaryrefslogtreecommitdiff
path: root/dev-db/sqlite/sqlite-9999.ebuild
diff options
context:
space:
mode:
authorJakov Smolić <jsmolic@gentoo.org>2025-02-22 00:08:41 +0100
committerJakov Smolić <jsmolic@gentoo.org>2025-02-22 14:16:29 +0100
commit117a1a9fa7d196acd8658b59f92bcfff962210de (patch)
tree7698d7d3912e0f5d63c2ec846c7083f463b954cd /dev-db/sqlite/sqlite-9999.ebuild
parent6c9b2c55d5ed7f4d6e165ed19e18be0d3bba5e81 (diff)
downloadgentoo-117a1a9fa7d196acd8658b59f92bcfff962210de.tar.gz
gentoo-117a1a9fa7d196acd8658b59f92bcfff962210de.tar.bz2
gentoo-117a1a9fa7d196acd8658b59f92bcfff962210de.zip
dev-db/sqlite: Sync live ebuild
Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>
Diffstat (limited to 'dev-db/sqlite/sqlite-9999.ebuild')
-rw-r--r--dev-db/sqlite/sqlite-9999.ebuild28
1 files changed, 16 insertions, 12 deletions
diff --git a/dev-db/sqlite/sqlite-9999.ebuild b/dev-db/sqlite/sqlite-9999.ebuild
index e0fe683ea625..2b47259e17d4 100644
--- a/dev-db/sqlite/sqlite-9999.ebuild
+++ b/dev-db/sqlite/sqlite-9999.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-inherit autotools flag-o-matic multilib-minimal toolchain-funcs
+inherit flag-o-matic multilib-minimal toolchain-funcs
DESCRIPTION="SQL database engine"
HOMEPAGE="https://sqlite.org/"
@@ -19,8 +19,8 @@ else
#printf -v DOC_PV "%u%02u%02u00" $(ver_rs 1-3 " ")
SRC_URI="
- https://sqlite.org/2024/${PN}-src-${SRC_PV}.zip
- doc? ( https://sqlite.org/2024/${PN}-doc-${DOC_PV}.zip )
+ https://sqlite.org/2025/${PN}-src-${SRC_PV}.zip
+ doc? ( https://sqlite.org/2025/${PN}-doc-${DOC_PV}.zip )
"
S="${WORKDIR}/${PN}-src-${SRC_PV}"
@@ -43,7 +43,6 @@ DEPEND="
${RDEPEND}
test? ( >=dev-lang/tcl-8.6:0[${MULTILIB_USEDEP}] )
"
-BDEPEND=">=dev-lang/tcl-8.6:0"
if [[ ${PV} == 9999 ]]; then
BDEPEND+=" dev-vcs/fossil"
else
@@ -142,7 +141,6 @@ src_unpack() {
src_prepare() {
default
- eautoreconf
multilib_copy_sources
}
@@ -196,7 +194,8 @@ multilib_src_configure() {
# https://sqlite.org/compile.html#enable_fts5
# https://sqlite.org/fts3.html
# https://sqlite.org/fts5.html
- append-cppflags -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS4
+ append-cppflags -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS
+ options+=( --enable-fts4 )
options+=( --enable-fts5 )
# Support hidden columns.
@@ -205,7 +204,7 @@ multilib_src_configure() {
# Support memsys5 memory allocator.
# https://sqlite.org/compile.html#enable_memsys5
# https://sqlite.org/malloc.html#memsys5
- append-cppflags -DSQLITE_ENABLE_MEMSYS5
+ options+=( --enable-memsys5 )
# Support sqlite3_normalized_sql() function.
# https://sqlite.org/c3ref/expanded_sql.html
@@ -231,12 +230,12 @@ multilib_src_configure() {
# https://sqlite.org/compile.html#enable_geopoly
# https://sqlite.org/rtree.html
# https://sqlite.org/geopoly.html
- append-cppflags -DSQLITE_ENABLE_RTREE -DSQLITE_ENABLE_GEOPOLY
+ options+=( --enable-rtree --enable-geopoly )
# Support Session extension.
# https://sqlite.org/compile.html#enable_session
# https://sqlite.org/sessionintro.html
- append-cppflags -DSQLITE_ENABLE_SESSION
+ options+=( --enable-session )
# Support scan status functions.
# https://sqlite.org/compile.html#enable_stmt_scanstatus
@@ -280,8 +279,7 @@ multilib_src_configure() {
if use icu; then
# Support ICU extension.
# https://sqlite.org/compile.html#enable_icu
- append-cppflags -DSQLITE_ENABLE_ICU
- sed -e "s/^TLIBS = @LIBS@/& -licui18n -licuuc/" -i Makefile.in || die "sed failed"
+ options+=( --with-icu-config )
fi
options+=(
@@ -320,7 +318,13 @@ multilib_src_configure() {
fi
fi
- econf "${options[@]}"
+ # set SONAME for the library
+ options+=( --soname=legacy )
+
+ # https://sqlite.org/forum/forumpost/4f4d06a9f6683bb9
+ tc-export_build_env BUILD_CC
+
+ CC_FOR_BUILD=${BUILD_CC} econf "${options[@]}"
}
multilib_src_compile() {