From f99e31cf873b15d1dda464cbc93ab7a47f7db4c7 Mon Sep 17 00:00:00 2001 From: Dominyk Tiller Date: Sat, 13 Aug 2016 16:05:43 +0100 Subject: [PATCH] diff-so-fancy: migrate to npm installation Closes #3855. Signed-off-by: Dominyk Tiller --- Formula/diff-so-fancy.rb | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Formula/diff-so-fancy.rb b/Formula/diff-so-fancy.rb index 6e1b29eb9e..3658ba85da 100644 --- a/Formula/diff-so-fancy.rb +++ b/Formula/diff-so-fancy.rb @@ -1,14 +1,16 @@ +require "language/node" + class DiffSoFancy < Formula desc "Good-lookin' diffs with diff-highlight and more" homepage "https://github.com/so-fancy/diff-so-fancy" - url "https://github.com/so-fancy/diff-so-fancy/archive/v0.11.1.tar.gz" - sha256 "6a9212d3d21af50987604c5930fd9ae899bf59bbcc873185525c81e860a455de" + url "https://registry.npmjs.org/diff-so-fancy/-/diff-so-fancy-0.11.1.tgz" + sha256 "c2824f4661d706ef9af7317fc253c123bc8f5d88f83732d880c4504309ae7a0f" - bottle :unneeded + depends_on "node" => :build def install - prefix.install Dir["third_party", "diff-so-fancy"] - bin.install_symlink prefix/"diff-so-fancy" + system "npm", "install", *Language::Node.std_npm_install_args(libexec) + bin.install_symlink Dir[libexec/"bin/*"] end test do