2010-06-02 20:13:39 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Libplist < Formula
|
2011-06-26 02:15:04 +00:00
|
|
|
url 'http://cgit.sukimashita.com/libplist.git/snapshot/libplist-1.6.tar.bz2'
|
2011-05-10 22:14:45 +00:00
|
|
|
homepage 'http://cgit.sukimashita.com/libplist.git/'
|
2011-06-26 02:15:04 +00:00
|
|
|
md5 '78fe4b8fb50e0bad267ffc6e77081cbe'
|
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'
|
|
|
|
|
|
|
|
def install
|
2011-09-12 20:23:34 +00:00
|
|
|
ENV.deparallelize # make fails on an 8-core Mac Pro
|
|
|
|
|
2010-06-02 20:13:39 +00:00
|
|
|
# Disable Python bindings.
|
2010-04-07 05:58:35 +00:00
|
|
|
inreplace "CMakeLists.txt", 'OPTION(ENABLE_PYTHON "Enable Python bindings (needs Swig)" ON)',
|
|
|
|
'# Disabled Python Bindings'
|
2011-02-16 10:57:34 +00:00
|
|
|
system "cmake . #{std_cmake_parameters} -DCMAKE_INSTALL_NAME_DIR=#{lib}"
|
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
|