blob: 60f01ceebe95e0aca75059cd47d884d8ddfe20c3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
require 'formula'
class Xar < Formula
homepage 'http://code.google.com/p/xar/'
url 'https://xar.googlecode.com/files/xar-1.5.2.tar.gz'
sha1 'eb411a92167387aa5d06a81970f7e929ec3087c9'
# Known issue upstream:
# http://code.google.com/p/xar/issues/detail?id=51
patch :DATA
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--mandir=#{man}"
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);
|