[sqlite3] Update to 3.42.0 (#31703)

* [sqlite3] Update to 3.42.0

* version

* Add cmake wrapper

* Test cmake wrapper

* version

* Add libsqlite3 to library names

* version

* WIP

* version

* restore original

* Remove cmake wrapper

* version

* Remove wrapper

* Remove all unused features

* version

* Remove unused features

* version

* only remove 1 variable

* version

* .

* version

* make json1 default feature

* version
This commit is contained in:
Thomas1664 2023-06-14 07:53:09 +02:00 committed by GitHub
parent 95b51560e7
commit 079419e66b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 17 additions and 9 deletions

View File

@ -2,9 +2,9 @@ string(REGEX REPLACE "^([0-9]+)[.]([0-9]+)[.]([0-9]+)[.]([0-9]+)" "\\1,0\\2,0\\3
string(REGEX REPLACE "^([0-9]+),0*([0-9][0-9]),0*([0-9][0-9]),0*([0-9][0-9])," "\\1\\2\\3\\4" SQLITE_VERSION "${SQLITE_VERSION}")
vcpkg_download_distfile(ARCHIVE
URLS "https://sqlite.org/2022/sqlite-amalgamation-${SQLITE_VERSION}.zip"
URLS "https://sqlite.org/2023/sqlite-amalgamation-${SQLITE_VERSION}.zip"
FILENAME "sqlite-amalgamation-${SQLITE_VERSION}.zip"
SHA512 863afdabbdbe27baaccc13477e08437ce3b4d7e6f0c51a294d1d71252476af474b6c275729ebe1bc801f004da7ca6775591a30fed1930c3a1920d8118864f1d2
SHA512 76416dc40dd15611f59d7209087a08c6cf1b7584dee34da4ce11b75acd7f608d794747a7ed87c3ffe16b237699279c2da8f85b009a379e108d39f33bd727e1e1
)
vcpkg_extract_source_archive(
@ -40,7 +40,8 @@ vcpkg_check_features(OUT_FEATURE_OPTIONS Unused
session SQLITE_ENABLE_PREUPDATE_HOOK
omit-load-extension SQLITE_OMIT_LOAD_EXTENSION
geopoly SQLITE_ENABLE_GEOPOLY
json1 SQLITE_ENABLE_JSON1
INVERTED_FEATURES
json1 SQLITE_OMIT_JSON
)
if(VCPKG_TARGET_IS_WINDOWS)
@ -73,7 +74,6 @@ vcpkg_cmake_configure(
)
vcpkg_cmake_install()
vcpkg_copy_pdbs()
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-${PORT} CONFIG_PATH share/unofficial-${PORT})
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
@ -89,6 +89,7 @@ configure_file(
)
vcpkg_fixup_pkgconfig()
vcpkg_copy_pdbs()
file(WRITE "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" "SQLite is in the Public Domain.\nhttp://www.sqlite.org/copyright.html\n")
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")

View File

@ -22,7 +22,7 @@
#cmakedefine SQLITE_ENABLE_PREUPDATE_HOOK
#cmakedefine SQLITE_OMIT_LOAD_EXTENSION
#cmakedefine SQLITE_ENABLE_GEOPOLY
#cmakedefine SQLITE_ENABLE_JSON1
#cmakedefine SQLITE_OMIT_JSON
#cmakedefine SQLITE_OS_WIN @SQLITE_OS_WIN@
#cmakedefine SQLITE_OS_WINRT @SQLITE_OS_WINRT@
#define SQLITE_ENABLE_COLUMN_METADATA 1

View File

@ -1,7 +1,6 @@
{
"name": "sqlite3",
"version": "3.40.1",
"port-version": 3,
"version": "3.42.0",
"description": "SQLite is a software library that implements a self-contained, serverless, zero-configuration, transactional SQL database engine.",
"homepage": "https://sqlite.org/",
"license": "blessing",
@ -15,6 +14,9 @@
"host": true
}
],
"default-features": [
"json1"
],
"features": {
"dbstat": {
"description": "Enable the DBSTAT virtual table"

View File

@ -7729,8 +7729,8 @@
"port-version": 0
},
"sqlite3": {
"baseline": "3.40.1",
"port-version": 3
"baseline": "3.42.0",
"port-version": 0
},
"sqlitecpp": {
"baseline": "3.3.0",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "a1b6deae3ce2f17e1384f02e7da3e7fae3a0865d",
"version": "3.42.0",
"port-version": 0
},
{
"git-tree": "846077eab115952eeb4dda0eaae97a3eb776fa9f",
"version": "3.40.1",