joplin: fix native sqlite3 dep for node 10
Closes #27036. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
parent
0c9d95d579
commit
37e646d1dc
1 changed files with 4 additions and 0 deletions
|
@ -5,6 +5,7 @@ class Joplin < Formula
|
||||||
homepage "https://joplin.cozic.net/"
|
homepage "https://joplin.cozic.net/"
|
||||||
url "https://registry.npmjs.org/joplin/-/joplin-1.0.106.tgz"
|
url "https://registry.npmjs.org/joplin/-/joplin-1.0.106.tgz"
|
||||||
sha256 "c1f1b19f0d078cd232bce5f62e8ec4f1a69bfcddf1cb90701c7cd7a4ecc59613"
|
sha256 "c1f1b19f0d078cd232bce5f62e8ec4f1a69bfcddf1cb90701c7cd7a4ecc59613"
|
||||||
|
revision 1
|
||||||
|
|
||||||
bottle do
|
bottle do
|
||||||
sha256 "e6a2d46d4a252486272556c71f3b39250406556924eeddbea732aa794a27b700" => :high_sierra
|
sha256 "e6a2d46d4a252486272556c71f3b39250406556924eeddbea732aa794a27b700" => :high_sierra
|
||||||
|
@ -16,6 +17,9 @@ class Joplin < Formula
|
||||||
depends_on "python@2" => :build
|
depends_on "python@2" => :build
|
||||||
|
|
||||||
def install
|
def install
|
||||||
|
# upgrade the sqlite3 dependency to a version with node 10 support
|
||||||
|
inreplace "package.json", "\"sqlite3\": \"^3.1.8\",", "\"sqlite3\": \"^4.0.0\","
|
||||||
|
|
||||||
system "npm", "install", *Language::Node.std_npm_install_args(libexec)
|
system "npm", "install", *Language::Node.std_npm_install_args(libexec)
|
||||||
bin.install_symlink Dir["#{libexec}/bin/*"]
|
bin.install_symlink Dir["#{libexec}/bin/*"]
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue