From 9c37fb969b2f6c5a998bdfed3de9efdb83aacfc6 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Tue, 22 Apr 2014 17:24:14 -0500 Subject: opensc: drop comment that originated with totally different code --- Library/Formula/opensc.rb | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/opensc.rb b/Library/Formula/opensc.rb index e2771e9d1..aa414013a 100644 --- a/Library/Formula/opensc.rb +++ b/Library/Formula/opensc.rb @@ -18,22 +18,10 @@ class Opensc < Formula depends_on 'docbook-xsl' if build.with? "man-pages" def install - extra_args = [] + args = [] if build.with? "man-pages" - # If OpenSC's configure script detects docbook it will build manual - # pages. This extends the spirit of that logic to support homebrew - # installed docbook. - docbook_xsl = Formula["docbook-xsl"] - # OpenSC looks in a set of common paths for docbook's xsl files, - # but not in /usr/local, and certainly not in homebrew's - # cellar. This specifies the correct homebrew path. - - # Avoid using information from the docbook formula here, as it - # will always refer to the latest version which is not - # necessarily the installed version. - extra_args << "--with-xsl-stylesheetsdir=" + - "#{docbook_xsl.opt_prefix}/docbook-xsl/" + args << "--with-xsl-stylesheetsdir=#{Formula["docbook-xsl"].opt_prefix}/docbook-xsl" end system "./bootstrap" if build.head? @@ -42,7 +30,7 @@ class Opensc < Formula "--enable-sm", "--enable-openssl", "--enable-pcsc", - *extra_args + *args system "make install" end -- cgit v1.2.3