0d74894c8e
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
21 lines
713 B
Ruby
21 lines
713 B
Ruby
require 'formula'
|
|
|
|
class Libplist < Formula
|
|
url 'http://cgit.sukimashita.com/libplist.git/snapshot/libplist-1.6.tar.bz2'
|
|
homepage 'http://cgit.sukimashita.com/libplist.git/'
|
|
md5 '78fe4b8fb50e0bad267ffc6e77081cbe'
|
|
|
|
depends_on 'cmake' => :build
|
|
depends_on 'libxml2'
|
|
|
|
def install
|
|
# Disable Python bindings.
|
|
inreplace "CMakeLists.txt", 'OPTION(ENABLE_PYTHON "Enable Python bindings (needs Swig)" ON)',
|
|
'# Disabled Python Bindings'
|
|
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
|