Skip to content

Commit

Permalink
joplin: revision for node, compatibility with node 12
Browse files Browse the repository at this point in the history
Closes Homebrew#39188.

Signed-off-by: Chongyu Zhu <[email protected]>

Co-Authored-By: Christian Moritz <[email protected]>
  • Loading branch information
2 people authored and lembacon committed Apr 30, 2019
1 parent ce655ae commit 3e4075e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Formula/joplin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ class Joplin < Formula
homepage "https://joplin.cozic.net/"
url "https://registry.npmjs.org/joplin/-/joplin-1.0.124.tgz"
sha256 "6da64d5ff859d2e6648ebcdc4e99486461db4eba13d4827f0261ac4d5be8de35"
revision 1

bottle do
sha256 "3799db4cb2158b10df411b3fda68d8d15da46cabdd83c9b6b06cf7572eb5f1e4" => :mojave
Expand All @@ -16,6 +17,13 @@ class Joplin < Formula
depends_on "node"

def install
inreplace "package.json" do |s|
s.gsub! "\"sharp\": \"^0.20.8\",", "\"sharp\": \"^0.22.1\","
s.gsub! "\"sqlite3\": \"^4.0.1\",", "\"sqlite3\": \"github:mapbox/node-sqlite3\#723de4ca\","
end
inreplace "lib/shim-init-node.js",
".resize(Resource.IMAGE_MAX_DIMENSION, Resource.IMAGE_MAX_DIMENSION)\n .max()\n .withoutEnlargement()",
".resize(Resource.IMAGE_MAX_DIMENSION, Resource.IMAGE_MAX_DIMENSION, {fit: 'inside', withoutEnlargement: true})"
system "npm", "install", *Language::Node.std_npm_install_args(libexec)
bin.install_symlink Dir["#{libexec}/bin/*"]
end
Expand Down

0 comments on commit 3e4075e

Please sign in to comment.