40 lines
1.3 KiB
Ruby
40 lines
1.3 KiB
Ruby
class Opensc < Formula
|
|
desc "Tools and libraries for smart cards"
|
|
homepage "https://github.com/OpenSC/OpenSC/wiki"
|
|
url "https://github.com/OpenSC/OpenSC/releases/download/0.16.0/opensc-0.16.0.tar.gz"
|
|
sha256 "3ac8c29542bb48179e7086d35a1b8907a4e86aca3de3323c2f48bd74eaaf5729"
|
|
head "https://github.com/OpenSC/OpenSC.git"
|
|
|
|
bottle do
|
|
sha256 "bf69be51f29b45bd0c5f862560748d30f7d8661002b171a03e78823c73c5eeae" => :el_capitan
|
|
sha256 "1c76d44ec875c6d622a0f6d4ae1f873adb75a789afbe0f2ce3a96231dd3dafd6" => :yosemite
|
|
sha256 "8ef4c4c62042d5db9c6454a1fb050e79ce8ff0081be44483ce2b8b909d701af3" => :mavericks
|
|
end
|
|
|
|
option "without-man-pages", "Skip building manual pages"
|
|
|
|
depends_on "autoconf" => :build
|
|
depends_on "automake" => :build
|
|
depends_on "libtool" => :build
|
|
depends_on "pkg-config" => :build
|
|
depends_on "docbook-xsl" => :build if build.with? "man-pages"
|
|
depends_on "openssl"
|
|
|
|
def install
|
|
args = %W[
|
|
--disable-dependency-tracking
|
|
--prefix=#{prefix}
|
|
--enable-sm
|
|
--enable-openssl
|
|
--enable-pcsc
|
|
]
|
|
|
|
if build.with? "man-pages"
|
|
args << "--with-xsl-stylesheetsdir=#{Formula["docbook-xsl"].opt_prefix}/docbook-xsl"
|
|
end
|
|
|
|
system "./bootstrap"
|
|
system "./configure", *args
|
|
system "make", "install"
|
|
end
|
|
end
|