homebrew-core/Formula/opensc.rb

38 lines
992 B
Ruby
Raw Normal View History

require 'formula'
class Opensc < Formula
homepage 'https://github.com/OpenSC/OpenSC/wiki'
url 'https://downloads.sourceforge.net/project/opensc/OpenSC/opensc-0.13.0/opensc-0.13.0.tar.gz'
sha1 '9285ccbed7b49f63e488c8fb1b3e102994a28218'
2013-09-22 01:47:35 +00:00
head do
url 'https://github.com/OpenSC/OpenSC.git'
2013-11-13 17:01:29 +00:00
depends_on :autoconf
depends_on :automake
depends_on :libtool
end
option 'with-man-pages', 'Build manual pages'
depends_on 'docbook-xsl' if build.with? "man-pages"
def install
args = []
if build.with? "man-pages"
args << "--with-xsl-stylesheetsdir=#{Formula["docbook-xsl"].opt_prefix}/docbook-xsl"
end
system "./bootstrap" if build.head?
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--enable-sm",
"--enable-openssl",
"--enable-pcsc",
*args
system "make install"
end
end