aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/xml2.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/Library/Formula/xml2.rb b/Library/Formula/xml2.rb
new file mode 100644
index 000000000..215b894cc
--- /dev/null
+++ b/Library/Formula/xml2.rb
@@ -0,0 +1,18 @@
+require 'formula'
+
+class Xml2 < Formula
+ homepage 'http://ofb.net/~egnor/xml2/'
+ url 'http://download.ofb.net/gale/xml2-0.5.tar.gz'
+ sha1 'e954311383d053747ae0c224b12dfddb8a1c0e74'
+
+ depends_on 'pkg-config' => :build
+
+ def install
+ system "./configure", "--prefix=#{prefix}"
+ system "make", "install"
+ end
+
+ test do
+ system "echo '<test/>' | \"#{bin}/xml2\""
+ end
+end