2013-01-15 11:08:03 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Opensc < Formula
|
|
|
|
homepage 'https://github.com/OpenSC/OpenSC/wiki'
|
2014-07-10 00:12:40 +00:00
|
|
|
url 'https://downloads.sourceforge.net/project/opensc/OpenSC/opensc-0.14.0/opensc-0.14.0.tar.gz'
|
|
|
|
sha1 '4a898e351b0a6d2a5d81576daa7ebed45baf9138'
|
2013-01-15 11:08:03 +00:00
|
|
|
|
2014-07-10 00:34:56 +00:00
|
|
|
bottle do
|
|
|
|
sha1 "58e3ad4248bc4a10258560a6dd186ec1c86467a4" => :mavericks
|
|
|
|
sha1 "d7b65a4e3c7997340dc102ff3196b594731b2977" => :mountain_lion
|
|
|
|
sha1 "cf7e11fe49ca6910d9374211f6421980f7e0f94f" => :lion
|
|
|
|
end
|
|
|
|
|
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
|
2013-01-15 11:08:03 +00:00
|
|
|
depends_on :automake
|
|
|
|
depends_on :libtool
|
|
|
|
end
|
|
|
|
|
|
|
|
option 'with-man-pages', 'Build manual pages'
|
|
|
|
|
2014-04-12 15:47:39 +00:00
|
|
|
depends_on 'docbook-xsl' if build.with? "man-pages"
|
2013-01-15 11:08:03 +00:00
|
|
|
|
|
|
|
def install
|
2014-04-22 22:24:14 +00:00
|
|
|
args = []
|
2013-01-15 11:08:03 +00:00
|
|
|
|
2014-04-12 15:47:39 +00:00
|
|
|
if build.with? "man-pages"
|
2014-04-22 22:24:14 +00:00
|
|
|
args << "--with-xsl-stylesheetsdir=#{Formula["docbook-xsl"].opt_prefix}/docbook-xsl"
|
2013-01-15 11:08:03 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
system "./bootstrap" if build.head?
|
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
2013-03-22 22:19:06 +00:00
|
|
|
"--enable-sm",
|
|
|
|
"--enable-openssl",
|
|
|
|
"--enable-pcsc",
|
2014-04-22 22:24:14 +00:00
|
|
|
*args
|
2013-01-15 11:08:03 +00:00
|
|
|
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|