aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/gnupg2.rb
diff options
context:
space:
mode:
authorJack Nagel2011-12-17 23:56:25 -0600
committerJack Nagel2011-12-17 23:58:34 -0600
commit006b1afe818a3b2fb3c4fe94f7d05ecf41a4c749 (patch)
treeff060777cd9963e0c7d10196565d13743daf9cb8 /Library/Formula/gnupg2.rb
parent31d1ba0967ba0f442e8221de192362844e38f256 (diff)
downloadhomebrew-006b1afe818a3b2fb3c4fe94f7d05ecf41a4c749.tar.bz2
gnupg2: add patch to fix libcurl detection
Also move the patch comments into DATA for context. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula/gnupg2.rb')
-rw-r--r--Library/Formula/gnupg2.rb23
1 files changed, 20 insertions, 3 deletions
diff --git a/Library/Formula/gnupg2.rb b/Library/Formula/gnupg2.rb
index c38533a44..7d91d2105 100644
--- a/Library/Formula/gnupg2.rb
+++ b/Library/Formula/gnupg2.rb
@@ -16,9 +16,6 @@ class Gnupg2 < Formula
depends_on 'libusb-compat' => :optional
def patches
- # fix runtime data location
- # change package name to 'gnupg2' to avoid conflicts
- # fix tests for external gpg-agent
DATA
end
@@ -43,6 +40,24 @@ class Gnupg2 < Formula
end
__END__
+# fix configure's failure to detect libcurl
+# http://git.gnupg.org/cgi-bin/gitweb.cgi?p=gnupg.git;a=commit;h=57ef0d6
+diff --git a/configure b/configure
+index 3df3900..35c474f 100755
+--- a/configure
++++ b/configure
+@@ -9384,7 +9384,7 @@ else
+
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h. */
+-include <curl/curl.h>
++#include <curl/curl.h>
+ int
+ main ()
+ {
+
+# fix runtime data location
+# http://git.gnupg.org/cgi-bin/gitweb.cgi?p=gnupg.git;a=commitdiff;h=c3f08dc
diff --git a/common/homedir.c b/common/homedir.c
index 5f2e31e..d797b68 100644
--- a/common/homedir.c
@@ -57,6 +72,7 @@ index 5f2e31e..d797b68 100644
}
+# rename package to avoid conflicts with our gnupg 1.x formula
diff --git a/configure b/configure
index 3df3900..b102aec 100755
--- a/configure
@@ -73,6 +89,7 @@ index 3df3900..b102aec 100755
PACKAGE_STRING='gnupg 2.0.18'
PACKAGE_BUGREPORT='http://bugs.gnupg.org'
+# fix tests to work with our "gpg-agent is a separate package" scheme
diff --git a/tests/openpgp/Makefile.in b/tests/openpgp/Makefile.in
index ab2f10f..1d3cace 100644
--- a/tests/openpgp/Makefile.in