<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -2,55 +2,17 @@ require 'formula'
 
 class Xmlstarlet &lt;Formula
   url 'http://downloads.sourceforge.net/project/xmlstar/xmlstarlet/1.0.1/xmlstarlet-1.0.1.tar.gz'
-  homepage 'http://xmlstar.sourceforge.net/'
   md5 '8deb71834bcdfb4443c258a1f0042fce'
-
-  def patches
-    DATA
-  end
+  homepage 'http://xmlstar.sourceforge.net/'
 
   def install
-    ENV.x11
+    # thanks, xmlstarlet but OS X doesn't have the static versions
+    inreplace 'configure', '${LIBXML_PREFIX}/lib/libxml2.a', '-lxml2'
+    inreplace 'configure', '${LIBXSLT_PREFIX}/lib/libxslt.a', '-lxslt'
+    inreplace 'configure', '${LIBXSLT_PREFIX}/lib/libexslt.a', '-lexslt'
+
     system &quot;./configure&quot;, &quot;--prefix=#{prefix}&quot;, &quot;--disable-debug&quot;, &quot;--disable-dependency-tracking&quot;
     system &quot;make&quot;
     system &quot;make install&quot;
   end
 end
-
-__END__
-diff -u a/configure b/configure
---- a/configure	2009-10-14 14:31:08.000000000 -0700
-+++ b/configure	2009-10-14 14:30:14.000000000 -0700
-@@ -2096,6 +2096,11 @@
- WIN32_EXTRA_LIBADD=
- WIN32_EXTRA_LDFLAGS=
- 
-+if test &quot;x$LIBXML_LIBS&quot; = &quot;x&quot;
-+then
-+	LIBXML_LIBS=&quot;${LIBXML_PREFIX}/lib/libxml2.a -lz -lm -lpthread -ldl&quot;
-+fi
-+
- case &quot;${host}&quot; in
-   *sun* )
-       LIBXML_LIBS=&quot;${LIBXML_LIBS} -lsocket -lnsl&quot;
-@@ -2109,7 +2114,7 @@
-           LIBXML_LIBS=&quot;${LIBXML_LIBS} -liconv&quot;
-       fi
-       ;;
--  *mac* )
-+  *mac* | *darwin* )
-       if test &quot;x$LIBICONV_LIBS&quot; = &quot;x&quot;
-       then
-           LIBXML_LIBS=&quot;${LIBXML_LIBS} ${LIBICONV_LIBS} -liconv&quot;
-@@ -2157,11 +2162,6 @@
- 	LIBXML_CFLAGS=&quot;-I${LIBXML_PREFIX}/include/libxml2&quot;
- fi
- 
--if test &quot;x$LIBXML_LIBS&quot; = &quot;x&quot;
--then
--	LIBXML_LIBS=&quot;${LIBXML_PREFIX}/lib/libxml2.a -lz -lm -lpthread -ldl&quot;
--fi
--
- if test &quot;x$LIBXSLT_CFLAGS&quot; = &quot;x&quot;
- then
- 	LIBXSLT_CFLAGS=&quot;-I${LIBXSLT_PREFIX}/include/libxslt -I${LIBXSLT_PREFIX}/include/libexslt&quot;</diff>
      <filename>Library/Formula/xmlstarlet.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>d0ec1e60be13fd31b1b84818e06dc22b5c5961e9</id>
    </parent>
  </parents>
  <author>
    <name>Max Howell</name>
    <email>max@methylblue.com</email>
  </author>
  <url>http://github.com/aanand/homebrew/commit/0d076d2ca6535568bf979979c7e6a4bc7fc1b1dc</url>
  <id>0d076d2ca6535568bf979979c7e6a4bc7fc1b1dc</id>
  <committed-date>2009-10-18T20:02:48-07:00</committed-date>
  <authored-date>2009-10-18T18:35:50-07:00</authored-date>
  <message>Force xmlstarlet to link to the xml2 dylibs

Static linking makes no sense for us anyway. And OS X doesn't even provide those libs as static variants so we have no choice.</message>
  <tree>3284d8ff0de3b83c1037ab7dd19fc6ec0a0f1836</tree>
  <committer>
    <name>Max Howell</name>
    <email>max@methylblue.com</email>
  </committer>
</commit>
