libgpg-error 1.15

Closes Homebrew/homebrew#32267.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
chdiza 2014-09-12 15:57:18 -04:00 committed by Jack Nagel
parent d75713ef1e
commit 2e096ee98a

View file

@ -2,9 +2,9 @@ require 'formula'
class LibgpgError < Formula
homepage 'http://www.gnupg.org/'
url 'ftp://ftp.gnupg.org/gcrypt/libgpg-error/libgpg-error-1.13.tar.bz2'
mirror 'http://ftp.heanet.ie/mirrors/ftp.gnupg.org/gcrypt/libgpg-error/libgpg-error-1.13.tar.bz2'
sha1 '50fbff11446a7b0decbf65a6e6b0eda17b5139fb'
url 'ftp://ftp.gnupg.org/gcrypt/libgpg-error/libgpg-error-1.15.tar.bz2'
mirror 'http://ftp.heanet.ie/mirrors/ftp.gnupg.org/gcrypt/libgpg-error/libgpg-error-1.15.tar.bz2'
sha1 'f41791121c66043fa18834597e0155ebcbff8ada'
bottle do
cellar :any
@ -13,6 +13,12 @@ class LibgpgError < Formula
sha1 "0ddec43a1845015a046f8ed4f924272eafc1cca7" => :lion
end
# Version 1.15 broke building on OS X. This has been reported:
# http://lists.gnupg.org/pipermail/gnupg-devel/2014-September/028748.html
# and the fix in the below patch is already committed into their
# repo for next release.
patch :DATA
option :universal
def install
@ -22,3 +28,20 @@ class LibgpgError < Formula
system "make install"
end
end
__END__
--- a/src/gpgrt-int.h
+++ b/src/gpgrt-int.h
@@ -105,9 +105,9 @@ void _gpgrt_clearerr_unlocked (gpgrt_stream_t stream);
int _gpgrt_fflush (gpgrt_stream_t stream);
int _gpgrt_fseek (gpgrt_stream_t stream, long int offset, int whence);
-int _gpgrt_fseeko (gpgrt_stream_t stream, off_t offset, int whence);
+int _gpgrt_fseeko (gpgrt_stream_t stream, gpgrt_off_t offset, int whence);
long int _gpgrt_ftell (gpgrt_stream_t stream);
-off_t _gpgrt_ftello (gpgrt_stream_t stream);
+gpgrt_off_t _gpgrt_ftello (gpgrt_stream_t stream);
void _gpgrt_rewind (gpgrt_stream_t stream);
int _gpgrt_fgetc (gpgrt_stream_t stream);