Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Adding podspec for sqlite3 library #660

Merged
merged 1 commit into from

2 participants

@grosshei

This podspec retrieves the amalgamation distribution of sqlite3.

  • CocoaPod libraries that specify a spec.library = 'sqlite3' will continue to link to the bundled iOS version, instead of this one. I haven't yet found a way around this, aside from using a modified podspec. Any insight into a better way to override another podspec's library requirement would appreciated.

  • I wrote the this podspec so it should be trivial to add additional podspecs to other versions by simply copying the file, and changing the version number.

@fabiopelosin

Nice! Would you like push access?

Any insight into a better way to override another podspec's library requirement would appreciated.

To my knowledge there is no easy way to achieve this.

@fabiopelosin fabiopelosin merged commit e0e8897 into CocoaPods:master

1 check passed

Details default The Travis build passed
@grosshei
@fabiopelosin

Granted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 14 additions and 0 deletions.
  1. +14 −0 sqlite3/3.7.14.1/sqlite3.podspec
View
14 sqlite3/3.7.14.1/sqlite3.podspec
@@ -0,0 +1,14 @@
+Pod::Spec.new do |s|
+ s.name = "sqlite3"
+ s.version = "3.7.14.1"
+ s.summary = "SQLite is an embedded SQL database engine."
+ s.homepage = "http://www.sqlite.org"
+ s.license = "Public Domain"
+ s.author = {"D. Richard Hipp" => "drh@hwaci.com"}
+
+ sqlite_version_format = "%.1d%.2d%.2d%.2d" % s.version.to_s.split('.').push(0)
+
+ s.source = {:http => "http://www.sqlite.org/sqlite-amalgamation-#{sqlite_version_format}.zip"}
+ s.source_files = "sqlite-amalgamation-#{sqlite_version_format}/sqlite3*.{h,c}"
+
+end
Something went wrong with that request. Please try again.