aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/openconnect.rb
diff options
context:
space:
mode:
authorJay Soffian2014-03-16 12:59:56 -0400
committerAdam Vandenberg2014-03-16 11:43:04 -0700
commit7c08a032a65f11398849090ee78c3c866770da8e (patch)
treef03b55101787ecb20fc977d847f234de575142cf /Library/Formula/openconnect.rb
parent67c1c5335112f794350cccffffccbe94df4a507c (diff)
downloadhomebrew-7c08a032a65f11398849090ee78c3c866770da8e.tar.bz2
openconnect: simplify HEAD build.
Upstream accepted a couple patches that make it easier to build openconnect under OS X. Let's take advantage of them. Closes #27607. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/openconnect.rb')
-rw-r--r--Library/Formula/openconnect.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/Library/Formula/openconnect.rb b/Library/Formula/openconnect.rb
index 4716e369a..69c078894 100644
--- a/Library/Formula/openconnect.rb
+++ b/Library/Formula/openconnect.rb
@@ -32,10 +32,9 @@ class Openconnect < Formula
chmod 0755, "#{etc}/vpnc-script"
if build.head?
- ln_s cached_download/".git", ".git"
- cp "autogen.sh", "autogen_modified.sh"
- inreplace "autogen_modified.sh", /libtoolize/, "glibtoolize"
- system "./autogen_modified.sh"
+ ENV["GIT_DIR"] = cached_download/".git"
+ ENV["LIBTOOLIZE"] = "glibtoolize"
+ system "./autogen.sh"
end
args = %W[