joplin: fix native sqlite3 dep for node 10

Closes #27036.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
Christian Moritz 2018-04-24 23:42:40 +02:00 committed by ilovezfs
parent 0c9d95d579
commit 37e646d1dc

View file

@ -5,6 +5,7 @@ class Joplin < Formula
homepage "https://joplin.cozic.net/"
url "https://registry.npmjs.org/joplin/-/joplin-1.0.106.tgz"
sha256 "c1f1b19f0d078cd232bce5f62e8ec4f1a69bfcddf1cb90701c7cd7a4ecc59613"
revision 1
bottle do
sha256 "e6a2d46d4a252486272556c71f3b39250406556924eeddbea732aa794a27b700" => :high_sierra
@ -16,6 +17,9 @@ class Joplin < Formula
depends_on "python@2" => :build
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)
bin.install_symlink Dir["#{libexec}/bin/*"]
end