homebrew-core/Formula/joplin.rb

27 lines
906 B
Ruby
Raw Normal View History

require "language/node"
class Joplin < Formula
desc "Note taking and to-do application with synchronisation capabilities"
homepage "http://joplin.cozic.net/"
url "https://registry.npmjs.org/joplin/-/joplin-0.10.79.tgz"
sha256 "c646a680daf72a453d1e2b57dc0ae9fcfb22f2c61b04323e4f4463a6476f0b0b"
2017-12-01 18:35:01 +00:00
bottle do
2017-12-07 19:12:22 +00:00
sha256 "b84032e4271bd89a61ecd09fbf21a9a3146b4393da624436c7df22edfd34e349" => :high_sierra
sha256 "45f1c9106438cad753496518bf7d5c86180cb78af7eff69528dc89b591d3bc17" => :sierra
sha256 "973ebae6edf16579a7915f51b42896c493a0d18ea1fe44b120b256699299a066" => :el_capitan
2017-12-01 18:35:01 +00:00
end
depends_on "node"
def install
system "npm", "install", *Language::Node.std_npm_install_args(libexec)
bin.install_symlink Dir["#{libexec}/bin/*"]
end
test do
system bin/"joplin", "config", "editor", "subl"
assert_match "editor = subl", shell_output("#{bin}/joplin config")
end
end