From 30282dd16b3e6d8cd5404d01e1b9c0dadc2d1a74 Mon Sep 17 00:00:00 2001 From: Jonas Schlabertz Date: Wed, 14 Aug 2024 16:50:04 +0200 Subject: [PATCH 1/3] Add subspec for math functions. --- README.markdown | 1 + sqlite3.podspec | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/README.markdown b/README.markdown index f75d3b0..a6c0112 100644 --- a/README.markdown +++ b/README.markdown @@ -36,6 +36,7 @@ To use SQLite in your project, add `pod 'sqlite3'` to your Podfile. However, as - [STAT4 Enhanced ANALYZE and query planner](https://sqlite.org/compile.html#enable_stat4): `pod 'sqlite3/stat4'` - [Unlock-Notify API](https://www.sqlite.org/unlock_notify.html): `pod 'sqlite3/unlock_notify'` - [DBSTAT](https://www.sqlite.org/dbstat.html): `pod 'sqlite3/dbstatvtab'` +- [Math](https://www.sqlite.org/lang_mathfunc.html): `pod 'sqlite3/math'` ## License diff --git a/sqlite3.podspec b/sqlite3.podspec index daeba1b..743e25f 100644 --- a/sqlite3.podspec +++ b/sqlite3.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'sqlite3' - s.version = '3.46.1' + s.version = '3.46.2' s.license = { :type => 'Public Domain', :text => <<-LICENSE All of the code and documentation in SQLite has been dedicated to the public domain by the authors. All code authors, and representatives of the companies they work for, have signed affidavits dedicating their contributions to the public domain and originals of those signed affidavits are stored in a firesafe at the main offices of Hwaci. @@ -17,6 +17,7 @@ LICENSE s.source = { :http => "https://www.sqlite.org/#{Time.now.year}/#{archive_name}.zip" } s.prepare_command = <<-CMD cd #{archive_name} +pwd ./configure make sqlite3.c sqlite3.h sqlite3ext.h CMD @@ -162,4 +163,10 @@ CMD ss.dependency 'sqlite3/common' ss.source_files = "#{archive_name}/ext/misc/spellfix.c" end + + # Math extension + s.subspec 'math' do |ss| + ss.dependency 'sqlite3/common' + ss.pod_target_xcconfig = { 'OTHER_CFLAGS' => '$(inherited) -DSQLITE_ENABLE_MATH_FUNCTIONS=1' } + end end From 9ca035eca260f4bb9572f5e3ff4377442db79bac Mon Sep 17 00:00:00 2001 From: Jonas Schlabertz Date: Wed, 14 Aug 2024 17:12:10 +0200 Subject: [PATCH 2/3] Removes debug command. --- sqlite3.podspec | 1 - 1 file changed, 1 deletion(-) diff --git a/sqlite3.podspec b/sqlite3.podspec index 743e25f..8697b88 100644 --- a/sqlite3.podspec +++ b/sqlite3.podspec @@ -17,7 +17,6 @@ LICENSE s.source = { :http => "https://www.sqlite.org/#{Time.now.year}/#{archive_name}.zip" } s.prepare_command = <<-CMD cd #{archive_name} -pwd ./configure make sqlite3.c sqlite3.h sqlite3ext.h CMD From 6b125d2856338475bc1f081b3b5db42cf5593351 Mon Sep 17 00:00:00 2001 From: Jonas Schlabertz Date: Wed, 14 Aug 2024 23:31:33 +0200 Subject: [PATCH 3/3] Fixes versioning. --- sqlite3.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sqlite3.podspec b/sqlite3.podspec index 8697b88..d84161d 100644 --- a/sqlite3.podspec +++ b/sqlite3.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'sqlite3' - s.version = '3.46.2' + s.version = '3.46.1+1' s.license = { :type => 'Public Domain', :text => <<-LICENSE All of the code and documentation in SQLite has been dedicated to the public domain by the authors. All code authors, and representatives of the companies they work for, have signed affidavits dedicating their contributions to the public domain and originals of those signed affidavits are stored in a firesafe at the main offices of Hwaci.