homebrew-core/Formula/libplist.rb
Alexis Hildebrandt 40054a3f83 Update Formula: libplist
Correct install name of dynamic libraries
using CMAKE_INSTALL_NAME_DIR cmake variable

Signed-off-by: David Höppner <0xffea@gmail.com>
2011-02-16 13:01:24 +01:00

22 lines
737 B
Ruby

require 'formula'
class Libplist <Formula
url 'http://cloud.github.com/downloads/JonathanBeck/libplist/libplist-1.3.tar.bz2'
homepage 'https://github.com/JonathanBeck/libplist'
md5 '0f48f4da8ddba5d7e186307622bf2c62'
depends_on 'cmake' => :build
depends_on 'glib'
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