2010-06-02 20:13:39 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Libplist < Formula
|
2011-05-10 22:14:45 +00:00
|
|
|
homepage 'http://cgit.sukimashita.com/libplist.git/'
|
2012-02-21 04:21:42 +00:00
|
|
|
url 'http://cgit.sukimashita.com/libplist.git/snapshot/libplist-1.8.tar.bz2'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 'dea18ac31cc497dba959bdb459a2a49fb41664c3'
|
2010-06-02 20:13:39 +00:00
|
|
|
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'cmake' => :build
|
2010-06-02 20:13:39 +00:00
|
|
|
depends_on 'libxml2'
|
|
|
|
|
2012-02-24 01:09:37 +00:00
|
|
|
# Fix 3 Clang compile errors. Similar fixes are upstream. Reverify in 1.9
|
|
|
|
# 2nd patch disables SWIG and Cython python bindings
|
2011-12-02 03:51:55 +00:00
|
|
|
def patches
|
|
|
|
DATA
|
|
|
|
end
|
|
|
|
|
2010-06-02 20:13:39 +00:00
|
|
|
def install
|
2011-09-12 20:23:34 +00:00
|
|
|
ENV.deparallelize # make fails on an 8-core Mac Pro
|
2012-05-22 21:37:04 +00:00
|
|
|
system "cmake", ".", "-DCMAKE_INSTALL_NAME_DIR=#{lib}", *std_cmake_args
|
2010-06-02 20:13:39 +00:00
|
|
|
system "make install"
|
2010-06-10 17:32:35 +00:00
|
|
|
|
|
|
|
# Remove 'plutil', which duplicates the system-provided one. Leave the versioned one, though.
|
|
|
|
rm (bin+'plutil')
|
2010-06-02 20:13:39 +00:00
|
|
|
end
|
|
|
|
end
|
2011-12-02 03:51:55 +00:00
|
|
|
|
|
|
|
__END__
|
|
|
|
--- a/libcnary/node.c 2011-06-24 18:00:48.000000000 -0700
|
|
|
|
+++ b/libcnary/node.c 2012-01-26 13:59:51.000000000 -0800
|
|
|
|
@@ -104,7 +104,7 @@
|
|
|
|
|
|
|
|
int node_insert(node_t* parent, unsigned int index, node_t* child)
|
|
|
|
{
|
|
|
|
- if (!parent || !child) return;
|
|
|
|
+ if (!parent || !child) return 0;
|
|
|
|
child->isLeaf = TRUE;
|
|
|
|
child->isRoot = FALSE;
|
|
|
|
child->parent = parent;
|
|
|
|
--- a/src/base64.c 2011-06-24 18:00:48.000000000 -0700
|
|
|
|
+++ b/src/base64.c 2012-01-26 14:01:21.000000000 -0800
|
|
|
|
@@ -104,9 +104,9 @@
|
|
|
|
|
|
|
|
unsigned char *base64decode(const char *buf, size_t *size)
|
|
|
|
{
|
|
|
|
- if (!buf) return;
|
|
|
|
+ if (!buf) return NULL;
|
|
|
|
size_t len = strlen(buf);
|
|
|
|
- if (len <= 0) return;
|
|
|
|
+ if (len <= 0) return NULL;
|
|
|
|
unsigned char *outbuf = (unsigned char*)malloc((len/4)*3+3);
|
|
|
|
|
|
|
|
unsigned char *line;
|
2012-02-24 01:09:37 +00:00
|
|
|
|
|
|
|
--- a/CMakeLists.txt 2012-02-23 17:03:29.000000000 -0800
|
|
|
|
+++ b/CMakeLists.txt 2012-02-23 17:03:51.000000000 -0800
|
|
|
|
@@ -17,8 +17,8 @@
|
|
|
|
|
|
|
|
FIND_PACKAGE( LibXml2 REQUIRED )
|
|
|
|
|
|
|
|
-OPTION(ENABLE_SWIG "Enable SWIG Python bindings (needs Swig)" ON)
|
|
|
|
-OPTION(ENABLE_CYTHON "Enable Cython Python bindings (needs Cython)" ON)
|
|
|
|
+OPTION(ENABLE_SWIG "Enable SWIG Python bindings (needs Swig)" OFF)
|
|
|
|
+OPTION(ENABLE_CYTHON "Enable Cython Python bindings (needs Cython)" OFF)
|
|
|
|
|
|
|
|
IF(ENABLE_SWIG)
|
|
|
|
FIND_PACKAGE( SWIG )
|