homebrew-core/Formula/xar.rb
Adam Vandenberg 7bd947eb0b Update formulae for version 0.7
* Use new "url" features
* Use keg_only DSL
* Use "skip_clean :all" DSL
* Whitespace and style cleanups
* Make bash invocations less silly
* Use new man2-man8 helpers
* Remove "FileUtils." since it is included in Formula
* Use real names for deps instead of aliases
* ENV.x11 now updates path, so remove that from individual brews
2010-08-07 18:08:53 -07:00

33 lines
738 B
Ruby

require 'formula'
class Xar <Formula
url 'http://xar.googlecode.com/files/xar-1.5.2.tar.gz'
homepage 'http://code.google.com/p/xar/'
md5 '8eabb055d3387b8edc30ecfb08d2e80d'
def patches
DATA
end
def install
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
system "make"
system "make install"
end
end
__END__
diff -Naur old/lib/archive.c new/lib/archive.c
--- old/lib/archive.c
+++ new/lib/archive.c
@@ -79,6 +79,10 @@
#define LONG_MIN INT32_MIN
#endif
+#if LIBXML_VERSION < 20618
+#define xmlDictCleanup() /* function doesn't exist in older API */
+#endif
+
static int32_t xar_unserialize(xar_t x);
void xar_serialize(xar_t x, const char *file);