2013-01-15 11:08:03 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Opensc < Formula
|
|
|
|
homepage 'https://github.com/OpenSC/OpenSC/wiki'
|
2014-02-27 14:19:55 +00:00
|
|
|
url 'https://downloads.sourceforge.net/project/opensc/OpenSC/opensc-0.13.0/opensc-0.13.0.tar.gz'
|
2013-01-15 11:08:03 +00:00
|
|
|
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
|
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
|