joplin-cli 2.2.2
Closes #83099. Co-authored-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Signed-off-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>master
parent
e8025bf5ed
commit
e806a794a5
|
@ -0,0 +1,43 @@
|
|||
require "language/node"
|
||||
|
||||
class JoplinCli < Formula
|
||||
desc "Note taking and to-do application with synchronization capabilities"
|
||||
homepage "https://joplinapp.org/"
|
||||
url "https://registry.npmjs.org/joplin/-/joplin-2.2.2.tgz"
|
||||
sha256 "15b932b51632dbcf8dfa0c39541af49b7e072b1a7c204e304d0fbdea6f1d787a"
|
||||
license "MIT"
|
||||
|
||||
depends_on "pkg-config" => :build
|
||||
depends_on "node"
|
||||
depends_on "sqlite"
|
||||
depends_on "vips"
|
||||
|
||||
on_macos do
|
||||
depends_on "terminal-notifier"
|
||||
end
|
||||
|
||||
def install
|
||||
system "npm", "install", *Language::Node.std_npm_install_args(libexec)
|
||||
bin.install_symlink Dir["#{libexec}/bin/*"]
|
||||
|
||||
node_notifier_vendor_dir = libexec/"lib/node_modules/joplin/node_modules/node-notifier/vendor"
|
||||
node_notifier_vendor_dir.rmtree # remove vendored pre-built binaries
|
||||
|
||||
on_macos do
|
||||
terminal_notifier_dir = node_notifier_vendor_dir/"mac.noindex"
|
||||
terminal_notifier_dir.mkpath
|
||||
|
||||
# replace vendored terminal-notifier with our own
|
||||
terminal_notifier_app = Formula["terminal-notifier"].opt_prefix/"terminal-notifier.app"
|
||||
ln_sf terminal_notifier_app.relative_path_from(terminal_notifier_dir), terminal_notifier_dir
|
||||
end
|
||||
end
|
||||
|
||||
# All joplin commands rely on the system keychain and so they cannot run
|
||||
# unattended. The version command was specially modified in order to allow it
|
||||
# to be run in homebrew tests. Hence we test with `joplin version` here. This
|
||||
# does assert that joplin runs successfully on the environment.
|
||||
test do
|
||||
assert_match "joplin #{version}", shell_output("#{bin}/joplin version")
|
||||
end
|
||||
end
|
|
@ -9,6 +9,7 @@
|
|||
"gatsby-cli",
|
||||
"gitversion",
|
||||
"infer",
|
||||
"joplin-cli",
|
||||
"llvm",
|
||||
"llvm@11",
|
||||
"llvm@7",
|
||||
|
|
Loading…
Reference in New Issue