aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2014-05-13 19:10:11 -0500
committerJack Nagel2014-05-13 19:10:43 -0500
commit75ffbeecb2da12a1f9c5bff02a9213aaf223795a (patch)
tree3c99086bea7abdc9a88e016f2e5bc811cde1f654 /Library/Formula
parent9bb35dbc56f9737e518792efa948a4c701d4019e (diff)
downloadhomebrew-75ffbeecb2da12a1f9c5bff02a9213aaf223795a.tar.bz2
gnupg: use ENV.append
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/gnupg.rb9
1 files changed, 2 insertions, 7 deletions
diff --git a/Library/Formula/gnupg.rb b/Library/Formula/gnupg.rb
index 52aad8035..62653f0a8 100644
--- a/Library/Formula/gnupg.rb
+++ b/Library/Formula/gnupg.rb
@@ -14,19 +14,14 @@ class Gnupg < Formula
option '8192', 'Build with support for private keys of up to 8192 bits'
- def cflags
- cflags = ENV.cflags.to_s
- cflags += ' -std=gnu89 -fheinous-gnu-extensions' if ENV.compiler == :clang
- cflags
- end
-
def install
inreplace 'g10/keygen.c', 'max=4096', 'max=8192' if build.include? '8192'
+ ENV.append "CFLAGS", "-std=gnu89 -fheinous-gnu-extensions" if ENV.compiler == :clang
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--disable-asm"
- system "make", "CFLAGS=#{cflags}"
+ system "make"
system "make check"
# we need to create these directories because the install target has the