aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/opensc.rb
diff options
context:
space:
mode:
authorJack Nagel2014-04-22 17:24:14 -0500
committerJack Nagel2014-04-22 17:24:46 -0500
commit9c37fb969b2f6c5a998bdfed3de9efdb83aacfc6 (patch)
tree2859bf787101d372617aea0045a818fd2aa13353 /Library/Formula/opensc.rb
parent0bae93f3644924500e398042eebbf2101b86d37f (diff)
downloadhomebrew-9c37fb969b2f6c5a998bdfed3de9efdb83aacfc6.tar.bz2
opensc: drop comment that originated with totally different code
Diffstat (limited to 'Library/Formula/opensc.rb')
-rw-r--r--Library/Formula/opensc.rb18
1 files changed, 3 insertions, 15 deletions
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