aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorSudish Joseph2011-07-16 22:04:40 -0400
committerJack Nagel2011-08-27 23:12:12 -0500
commit8f589fa35d217963cfedd54b2c5027300a32d0db (patch)
tree01b0611f7b6197fe4b120f2732646daba0b608d0 /Library/Formula
parentfeb2c33eebe0c08c75717ec43d20b98e42e3af2d (diff)
downloadhomebrew-8f589fa35d217963cfedd54b2c5027300a32d0db.tar.bz2
New formula: libxmlsec1
http://www.aleksey.com/xmlsec/ Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/libxmlsec1.rb22
1 files changed, 22 insertions, 0 deletions
diff --git a/Library/Formula/libxmlsec1.rb b/Library/Formula/libxmlsec1.rb
new file mode 100644
index 000000000..f8222b099
--- /dev/null
+++ b/Library/Formula/libxmlsec1.rb
@@ -0,0 +1,22 @@
+require 'formula'
+
+class Libxmlsec1 < Formula
+ url 'http://www.aleksey.com/xmlsec/download/xmlsec1-1.2.18.tar.gz'
+ homepage 'http://www.aleksey.com/xmlsec/'
+ md5 '8694b4609aab647186607f79e1da7f1a'
+
+ # use the keg-only libxml2 as Snow Leopard and Lion's versions are too old
+ depends_on 'libxml2'
+
+ # use gnutls as an additional crypto engine, alongside system openssl
+ depends_on 'gnutls' => :optional
+
+ def install
+ libxml2 = Formula.factory('libxml2')
+
+ system "./configure", "--disable-debug", "--disable-dependency-tracking",
+ "--prefix=#{prefix}",
+ "--with-libxml=#{libxml2.prefix}"
+ system "make install"
+ end
+end