diff options
| author | Dominyk Tiller | 2014-10-16 19:55:40 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2014-10-16 20:29:10 +0100 |
| commit | e8c58837edcbaec0901a27cb69c882753dd95783 (patch) | |
| tree | c69a68dd96957c806e36d9e0beba8d91fa9cfb2e /Library/Formula | |
| parent | 7e88c71e095480ffa8664123fc61aa67d8c3830b (diff) | |
| download | homebrew-e8c58837edcbaec0901a27cb69c882753dd95783.tar.bz2 | |
opensc: added openssl deep
Even when not deliberately, actively configured with openssl enabled,
it picks up and leans on the system openssl anyway. This pokes it onto
our OpenSSL instead. All other changes are style tweaks, and an added
simple test.
```
/usr/local/bin/cardos-tool:
/usr/local/Cellar/opensc/0.14.0/lib/libopensc.3.dylib (compatibility
version 4.0.0, current version 4.0.0)
/usr/lib/libcrypto.0.9.8.dylib (compatibility version 0.9.8, current
version 0.9.8)
/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version
1.2.5)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 1213.0.0)
```
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/opensc.rb | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/Library/Formula/opensc.rb b/Library/Formula/opensc.rb index 3571f931f..743131765 100644 --- a/Library/Formula/opensc.rb +++ b/Library/Formula/opensc.rb @@ -1,9 +1,10 @@ -require 'formula' +require "formula" class Opensc < Formula - homepage 'https://github.com/OpenSC/OpenSC/wiki' - url 'https://downloads.sourceforge.net/project/opensc/OpenSC/opensc-0.14.0/opensc-0.14.0.tar.gz' - sha1 '4a898e351b0a6d2a5d81576daa7ebed45baf9138' + homepage "https://github.com/OpenSC/OpenSC/wiki" + url "https://downloads.sourceforge.net/project/opensc/OpenSC/opensc-0.14.0/opensc-0.14.0.tar.gz" + sha1 "4a898e351b0a6d2a5d81576daa7ebed45baf9138" + revision 1 bottle do sha1 "58e3ad4248bc4a10258560a6dd186ec1c86467a4" => :mavericks @@ -12,16 +13,17 @@ class Opensc < Formula end head do - url 'https://github.com/OpenSC/OpenSC.git' + url "https://github.com/OpenSC/OpenSC.git" depends_on :autoconf depends_on :automake depends_on :libtool end - option 'with-man-pages', 'Build manual pages' + option "with-man-pages", "Build manual pages" - depends_on 'docbook-xsl' if build.with? "man-pages" + depends_on "docbook-xsl" if build.with? "man-pages" + depends_on "openssl" def install args = [] @@ -38,6 +40,10 @@ class Opensc < Formula "--enable-pcsc", *args - system "make install" + system "make", "install" + end + + test do + system "#{bin}/opensc-tool", "-i" end end |
