aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorBirger J. Nordølum2013-02-08 18:19:57 +0100
committerJack Nagel2013-02-08 17:27:04 -0600
commit0fefa35c62398a4a5015d943c3fb1503987b9a2b (patch)
treeb00a04de2fa9a471f804a4c739d366cc76a2541b /Library/Formula
parentc44c37a6a0f865ead84e678f3a20d19158afb0fc (diff)
downloadhomebrew-0fefa35c62398a4a5015d943c3fb1503987b9a2b.tar.bz2
cyassl 2.5.0
Patch to correct upstream mistake. Old patch removed for command instead. Enabled more config options as defaults, no higher than 3.1 MB in total size. And removed some that were broken. Closes #17695. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/cyassl.rb52
1 files changed, 20 insertions, 32 deletions
diff --git a/Library/Formula/cyassl.rb b/Library/Formula/cyassl.rb
index 2b8c91578..59947104f 100644
--- a/Library/Formula/cyassl.rb
+++ b/Library/Formula/cyassl.rb
@@ -2,54 +2,53 @@ require 'formula'
class Cyassl < Formula
homepage 'http://yassl.com/yaSSL/Products-cyassl.html'
- url 'https://github.com/cyassl/cyassl/archive/v2.4.6.tar.gz'
- sha256 '0a51ac204edd38ab01b226e7248d7e01753a750276dc5e75159f5b0090be3eeb'
+ url 'https://github.com/cyassl/cyassl/archive/v2.5.0.tar.gz'
+ sha256 '5fc17c8114582907979a3848291ebb595b0a21db491408968cfa4f91074a3a9d'
- # Enable when the next release it shipped. Breaks with inline patch.
head 'https://github.com/cyassl/cyassl.git'
- depends_on :automake
- depends_on :libtool
-
- option 'enable-dtsl', 'Enable DTLS support.'
- option 'enable-sniffer', 'Enable sniffer support.'
+ depends_on 'autoconf' => :build
+ depends_on 'automake' => :build
+ depends_on 'libtool' => :build
def patches
- # The patch contain two bits. One that needs to be added as we use autogen.sh,
- # and this is broken for CyaSSL. They depend on a .git folder present.
- # The second part can be removed with the next release. Fixed upstream.
- DATA
+ # Missing commit from the 2.5.0 tag. Remove with next release.
+ "https://github.com/cyassl/cyassl/commit/543d81ba97430844c04c82ea274a99122c9cd1b9.patch"
end
fails_with :clang do
- build 421
+ build 425
end
def install
- args = %W[--prefix=#{prefix}
+ args = %W[--infodir=#{info}
+ --mandir=#{man}
+ --prefix=#{prefix}
+ --enable-aesccm
--enable-aesgcm
+ --enable-camellia
--enable-certgen
--enable-crl
--enable-crl-monitor
+ --enable-dtls
--enable-fortress
--enable-hc128
--enable-keygen
--enable-ocsp
--enable-opensslExtra
+ --enable-psk
+ --enable-rabbit
--enable-ripemd
--enable-sha512
- --disable-debug
+ --enable-sniffer
--disable-ecc
--disable-noFilesystem
--disable-noInline
--disable-ntru
- --disable-small
+ --disable-webServer
--with-libz
]
- args << '--enable-dtsl' if build.include? 'enable-dtsl'
- args << '--enable-sniffer' if build.include? 'enable-sniffer'
-
if MacOS.prefer_64_bit?
args << '--enable-fastmath' << '--enable-fasthugemath' << '--enable-bump'
else
@@ -61,22 +60,11 @@ class Cyassl < Formula
# Also, only applies if fastmath is enabled.
ENV.append_to_cflags '-mdynamic-no-pic' if MacOS.prefer_64_bit?
- # They don't provide a public release, so that we use a tag from their repo instead.
- system "./autogen.sh"
+ # No public release available, Git tag is therefore used.
+ system "autoreconf --verbose --install --force"
system "./configure", *args
system "make"
system "make install"
end
end
-
-__END__
-diff --git a/autogen.sh b/autogen.sh
-index f16dbd7..ed78895 100755
---- a/autogen.sh
-+++ b/autogen.sh
-@@ -10,4 +10,3 @@ else
- fi
-
- autoreconf --install --force --verbose
--ln -s -f ../../pre-commit.sh .git/hooks/pre-commit