aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/syncthing.rb
diff options
context:
space:
mode:
authorJack Nagel2014-12-16 20:47:40 -0500
committerJack Nagel2014-12-16 20:47:40 -0500
commit92761c0eca11374a8c00af895e114b65c7cc0ad2 (patch)
tree0c6d674c5b3d8a719b77d7fe3156632d95e06b2c /Library/Formula/syncthing.rb
parentd9ab8ee8e1570f4bbea0b113b283f9f1d659248f (diff)
downloadhomebrew-92761c0eca11374a8c00af895e114b65c7cc0ad2.tar.bz2
syncthing: set GIT_DIR instead of symlinking
Diffstat (limited to 'Library/Formula/syncthing.rb')
-rw-r--r--Library/Formula/syncthing.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Formula/syncthing.rb b/Library/Formula/syncthing.rb
index fd952ed40..aeb783813 100644
--- a/Library/Formula/syncthing.rb
+++ b/Library/Formula/syncthing.rb
@@ -17,11 +17,12 @@ class Syncthing < Formula
ENV["GOPATH"] = cached_download/".gopath"
ENV.append_path "PATH", "#{ENV["GOPATH"]}/bin"
+ # FIXME do this without mutating the cache!
hack_dir = cached_download/".gopath/src/github.com/syncthing"
rm_rf hack_dir
mkdir_p hack_dir
ln_s cached_download, "#{hack_dir}/syncthing"
- ln_s cached_download/".git", ".git"
+ ENV["GIT_DIR"] = cached_download/".git"
system "./build.sh", "noupgrade"
bin.install "syncthing"