2010-06-02 20:13:39 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Libplist <Formula
|
|
|
|
url 'http://cloud.github.com/downloads/JonathanBeck/libplist/libplist-1.3.tar.bz2'
|
|
|
|
homepage 'http://github.com/JonathanBeck/libplist'
|
|
|
|
md5 '0f48f4da8ddba5d7e186307622bf2c62'
|
|
|
|
|
|
|
|
depends_on 'cmake'
|
|
|
|
depends_on 'glib'
|
|
|
|
depends_on 'libxml2'
|
|
|
|
|
|
|
|
def install
|
|
|
|
# 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'
|
2010-06-02 20:13:39 +00:00
|
|
|
system "cmake . #{std_cmake_parameters}"
|
|
|
|
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
|