aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2013-01-26 17:34:03 -0600
committerJack Nagel2013-01-26 17:34:03 -0600
commitefb2af9ac79d4c08070b3c0b7517609581b71fc9 (patch)
treefbe6c2a6014ea1dbdde28a9e4842fcda2ec6c251
parent74a4c8e97de05ed405c5f5fd6f840bdf332e2ccd (diff)
downloadhomebrew-efb2af9ac79d4c08070b3c0b7517609581b71fc9.tar.bz2
libxmlsec1: use new optional deps
-rw-r--r--Library/Formula/libxmlsec1.rb10
1 files changed, 3 insertions, 7 deletions
diff --git a/Library/Formula/libxmlsec1.rb b/Library/Formula/libxmlsec1.rb
index 6284df446..88943131b 100644
--- a/Library/Formula/libxmlsec1.rb
+++ b/Library/Formula/libxmlsec1.rb
@@ -5,22 +5,18 @@ class Libxmlsec1 < Formula
url 'http://www.aleksey.com/xmlsec/download/xmlsec1-1.2.18.tar.gz'
sha1 '740c3c791be838bf638651a3fe0e80c624c2ae0e'
- option 'without-gnutls', 'Disable GnuTLS'
-
depends_on 'pkg-config' => :build
depends_on 'libxml2' # Version on 10.6/10.7 is too old
- depends_on 'gnutls' => :recommended unless build.include? 'without-gnutls'
- depends_on 'libgcrypt' unless build.include? 'without-gnutls'
+ depends_on 'gnutls' => :recommended
+ depends_on 'libgcrypt' unless build.without? 'gnutls'
# Add HOMEBREW_PREFIX/lib to dl load path
def patches; DATA; end
def install
- libxml2 = Formula.factory('libxml2')
-
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
- "--with-libxml=#{libxml2.prefix}",
+ "--with-libxml=#{Formula.factory("libxml2").opt_prefix}",
"--disable-crypto-dl",
"--disable-apps-crypto-dl"
system "make install"