tegh: use npm path nudge

This commit is contained in:
Dominyk Tiller 2015-06-09 15:57:16 +01:00
parent b46aad6dd4
commit 108701b653

View file

@ -1,18 +1,22 @@
require 'formula'
class Tegh < Formula
desc "Command-line client for Prontserve"
homepage 'https://github.com/D1plo1d/tegh'
head 'https://github.com/D1plo1d/tegh.git', :branch => 'develop'
url 'https://s3.amazonaws.com/tegh_binaries/0.3.1/tegh-0.3.1-brew.tar.gz'
sha1 '7061165db148a27d229563e340d6c691b4fd92a8'
homepage "https://github.com/D1plo1d/tegh"
url "https://s3.amazonaws.com/tegh_binaries/0.3.1/tegh-0.3.1-brew.tar.gz"
sha256 "1aa9bdcc9579e8d56ab6a7b50704a1f32a6e5b8950ee2042f463b0a3b31daf4e"
depends_on 'node'
head "https://github.com/D1plo1d/tegh.git", :branch => "develop"
depends_on "node"
def install
if build.head?
ENV.prepend_path "PATH", "#{Formula["node"].opt_libexec}/npm/bin"
ENV["HOME"] = buildpath/".brew_home"
system "npm", "install"
end
rm "bin/tegh.bat"
system "npm", "install" if build.head?
libexec.install Dir['*']
libexec.install Dir["*"]
bin.install_symlink Dir["#{libexec}/bin/*"]
end
end