opensc 0.15.0

Closes Homebrew/homebrew#40737.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Tomasz Pajor 2015-06-15 13:07:31 +02:00 committed by Mike McQuaid
parent ed47847cbb
commit c858ca370a

View file

@ -1,11 +1,9 @@
require "formula"
class Opensc < Formula
desc "Tools and libraries for smart cards"
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
url "https://downloads.sourceforge.net/project/opensc/OpenSC/opensc-0.15.0/opensc-0.15.0.tar.gz"
sha256 "399b2107a69e3f67e4e76dc2dbd951dbced8e534b1e0f919e176aea9b85970d7"
head "https://github.com/OpenSC/OpenSC.git"
bottle do
sha1 "82b08c2bd2b58b7080797a441f8c641cbb101064" => :mavericks
@ -13,16 +11,19 @@ class Opensc < Formula
sha1 "26bc12047a4ca119fd37ff76ea4055226d88dc34" => :lion
end
head do
url "https://github.com/OpenSC/OpenSC.git"
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
stable do
patch :p1 do
url "https://github.com/carlhoerberg/OpenSC/commit/e5ae77cae32fdcc7a23d6bd0013c2fd115a43591.diff"
sha256 "18bd9b6220bfc03768c6a7f5324e7f3981eff0bc8b8f7eb0f5159508b43d6863"
end
end
option "with-man-pages", "Build manual pages"
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
depends_on "pkg-config" => :build
depends_on "docbook-xsl" if build.with? "man-pages"
depends_on "openssl"
@ -33,7 +34,7 @@ class Opensc < Formula
args << "--with-xsl-stylesheetsdir=#{Formula["docbook-xsl"].opt_prefix}/docbook-xsl"
end
system "./bootstrap" if build.head?
system "./bootstrap"
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--enable-sm",