aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/vpnc.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2010-04-06 22:58:35 -0700
committerAdam Vandenberg2010-08-07 18:08:53 -0700
commitd0efd9ee94a55e243f3b10e903526274fc21d569 (patch)
treeb21984390a0292957a3819df57c62bac558d284d /Library/Formula/vpnc.rb
parentcdf768bc328f01e64e9f74551ff4b40d5cf0da70 (diff)
downloadhomebrew-d0efd9ee94a55e243f3b10e903526274fc21d569.tar.bz2
Update formulae for version 0.7
* Use new "url" features * Use keg_only DSL * Use "skip_clean :all" DSL * Whitespace and style cleanups * Make bash invocations less silly * Use new man2-man8 helpers * Remove "FileUtils." since it is included in Formula * Use real names for deps instead of aliases * ENV.x11 now updates path, so remove that from individual brews
Diffstat (limited to 'Library/Formula/vpnc.rb')
-rw-r--r--Library/Formula/vpnc.rb19
1 files changed, 7 insertions, 12 deletions
diff --git a/Library/Formula/vpnc.rb b/Library/Formula/vpnc.rb
index 109b9532c..6ed743960 100644
--- a/Library/Formula/vpnc.rb
+++ b/Library/Formula/vpnc.rb
@@ -8,19 +8,16 @@ class Vpnc <Formula
depends_on 'libgcrypt'
depends_on 'libgpg-error'
- def skip_clean? path
- path == etc or path == var
- end
+ skip_clean 'etc'
+ skip_clean 'var'
def options
- [
- ["--hybrid", "Use vpnc hybrid authentication."]
- ]
+ [["--hybrid", "Use vpnc hybrid authentication."]]
end
def install
fails_with_llvm
- ENV.no_optimization
+ ENV.no_optimization
ENV.deparallelize
inreplace ["vpnc-script.in", "vpnc-disconnect"] do |s|
@@ -48,11 +45,9 @@ class Vpnc <Formula
system "make install"
end
- def caveats
- <<-END_CAVEATS
- Formula contribute hybrid option for vpnc hybrid authentification.
- To install use:
+ def caveats; <<-EOS
+ To use vpnc hybrid authentification:
brew install vpnc --hybrid
- END_CAVEATS
+ EOS
end
end