joplin 1.0.125

Closes #39650.

Signed-off-by: Chongyu Zhu <i@lembacon.com>
This commit is contained in:
Christian Moritz 2019-05-10 16:36:55 +02:00 committed by Chongyu Zhu
parent 85c34d342e
commit b04b6a7870
No known key found for this signature in database
GPG key ID: 1A43E3C9100B38F5

View file

@ -3,9 +3,8 @@ require "language/node"
class Joplin < Formula
desc "Note taking and to-do application with synchronisation capabilities"
homepage "https://joplin.cozic.net/"
url "https://registry.npmjs.org/joplin/-/joplin-1.0.124.tgz"
sha256 "6da64d5ff859d2e6648ebcdc4e99486461db4eba13d4827f0261ac4d5be8de35"
revision 1
url "https://registry.npmjs.org/joplin/-/joplin-1.0.125.tgz"
sha256 "c41cb46e37549958a941c2e8af7d60ed667479adbbdfc8880e5158631b9c5ebc"
bottle do
sha256 "7a0359eadd073092d70762acfff84f57f31eacea52224375ef027b142623d79a" => :mojave
@ -17,13 +16,15 @@ class Joplin < Formula
depends_on "node"
def install
# node 12 compatibility fixes, can be removed for the next version
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\","
s.gsub! "\"sqlite3\": \"^4.0.1\",", "\"sqlite3\": \"^4.0.7\","
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