2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-01 05:17:33 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Xar < Formula
|
2010-04-07 05:58:35 +00:00
|
|
|
homepage 'http://code.google.com/p/xar/'
|
2012-03-10 22:51:28 +00:00
|
|
|
url 'http://xar.googlecode.com/files/xar-1.5.2.tar.gz'
|
2010-04-07 05:58:35 +00:00
|
|
|
md5 '8eabb055d3387b8edc30ecfb08d2e80d'
|
2009-09-01 05:17:33 +00:00
|
|
|
|
2012-02-10 03:23:44 +00:00
|
|
|
# Known issue upstream:
|
|
|
|
# http://code.google.com/p/xar/issues/detail?id=51
|
2009-09-01 05:17:33 +00:00
|
|
|
def patches
|
2009-09-16 16:08:32 +00:00
|
|
|
DATA
|
2009-09-01 05:17:33 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
2012-03-10 22:51:28 +00:00
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--mandir=#{man}"
|
2009-09-01 05:17:33 +00:00
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
2009-09-15 18:05:24 +00:00
|
|
|
|
|
|
|
|
|
|
|
__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);
|