aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2012-08-25 09:43:05 -0700
committerAdam Vandenberg2012-08-25 09:43:50 -0700
commit49daecd69f35428e8ccedd6b16d776c585fe3407 (patch)
treecb4815562565262e9685c6e5ee4d9b4f46c1d0a8 /Library/Formula
parent68f59ddd3de58bde089699013e1f172d7c34f4f4 (diff)
downloadhomebrew-49daecd69f35428e8ccedd6b16d776c585fe3407.tar.bz2
vimpc: use new dsl
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/vimpc.rb6
-rw-r--r--Library/Formula/vpnc.rb8
2 files changed, 6 insertions, 8 deletions
diff --git a/Library/Formula/vimpc.rb b/Library/Formula/vimpc.rb
index 0676d618a..c1ee83d4e 100644
--- a/Library/Formula/vimpc.rb
+++ b/Library/Formula/vimpc.rb
@@ -3,11 +3,11 @@ require 'formula'
class Vimpc < Formula
homepage 'http://sourceforge.net/projects/vimpc/'
url 'http://downloads.sourceforge.net/project/vimpc/Release%200.05/vimpc-0.05.tar.gz'
- md5 'f96cdc10827ddfbb53318e9ab4bab93b'
+ sha1 '7853b901eb3ef3748204e52ac6de973c43fa6ea3'
head 'https://github.com/richo/vimpc.git'
- if ARGV.build_head?
+ if build.head?
depends_on :automake
depends_on :libtool
end
@@ -17,7 +17,7 @@ class Vimpc < Formula
depends_on 'libmpdclient'
def install
- if ARGV.build_head?
+ if build.head?
ENV['ACLOCAL_FLAGS'] = "-I #{HOMEBREW_PREFIX}/share/aclocal"
system "./autogen.sh"
end
diff --git a/Library/Formula/vpnc.rb b/Library/Formula/vpnc.rb
index fe4e96828..380ed1959 100644
--- a/Library/Formula/vpnc.rb
+++ b/Library/Formula/vpnc.rb
@@ -1,8 +1,8 @@
require 'formula'
class Vpnc < Formula
- url 'http://www.unix-ag.uni-kl.de/~massar/vpnc/vpnc-0.5.3.tar.gz'
homepage 'http://www.unix-ag.uni-kl.de/~massar/vpnc/'
+ url 'http://www.unix-ag.uni-kl.de/~massar/vpnc/vpnc-0.5.3.tar.gz'
sha256 '46cea3bd02f207c62c7c6f2f22133382602baeda1dc320747809e94881414884'
depends_on 'libgcrypt'
@@ -12,9 +12,7 @@ class Vpnc < Formula
build 2334
end
- def options
- [["--hybrid", "Use vpnc hybrid authentication."]]
- end
+ option "hybrid", "Use vpnc hybrid authentication"
# Patch from user @Imagesafari to enable compilation on Lion
def patches
@@ -37,7 +35,7 @@ class Vpnc < Formula
s.change_make_var! "PREFIX", prefix
s.change_make_var! "ETCDIR", (etc + 'vpnc')
- s.gsub! /^#OPENSSL/, "OPENSSL" if ARGV.include? "--hybrid"
+ s.gsub! /^#OPENSSL/, "OPENSSL" if build.include? "hybrid"
end
inreplace "config.c" do |s|