7c648d9732
When interpolating in strings passed to Formula#system, it should be done in such a way that if any interpolated variables contain spaces, they are either (a) passed as part of a list or (b) protected by quotes if they are part of a long string (which is subject to shell expansion). Otherwise, they will be split on the space when expanded by the shell and passed as multiple arguments to whatever process is being executed. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
66 lines
2 KiB
Ruby
66 lines
2 KiB
Ruby
require 'formula'
|
|
|
|
class Libplist < Formula
|
|
homepage 'http://cgit.sukimashita.com/libplist.git/'
|
|
url 'http://cgit.sukimashita.com/libplist.git/snapshot/libplist-1.8.tar.bz2'
|
|
md5 '2a9e0258847d50f9760dc3ece25f4dc6'
|
|
|
|
depends_on 'cmake' => :build
|
|
depends_on 'libxml2'
|
|
|
|
# Fix 3 Clang compile errors. Similar fixes are upstream. Reverify in 1.9
|
|
# 2nd patch disables SWIG and Cython python bindings
|
|
def patches
|
|
DATA
|
|
end
|
|
|
|
def install
|
|
ENV.deparallelize # make fails on an 8-core Mac Pro
|
|
system "cmake #{std_cmake_parameters} -DCMAKE_INSTALL_NAME_DIR='#{lib}' ."
|
|
system "make install"
|
|
|
|
# Remove 'plutil', which duplicates the system-provided one. Leave the versioned one, though.
|
|
rm (bin+'plutil')
|
|
end
|
|
end
|
|
|
|
__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;
|
|
|
|
--- 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 )
|