homebrew-core/Formula/libpst.rb

34 lines
805 B
Ruby
Raw Normal View History

require 'formula'
class Libpst < Formula
homepage 'http://www.five-ten-sg.com/libpst/'
url 'http://www.five-ten-sg.com/libpst/packages/libpst-0.6.55.tar.gz'
sha1 'c81df95509494c99222b0b603f7500dd9caceff1'
option 'pst2dii', 'Build pst2dii using gd'
depends_on :python => :optional
2013-06-03 22:27:25 +00:00
depends_on 'gd' if build.include? 'pst2dii'
2014-05-23 02:20:09 +00:00
if build.with? "python"
depends_on "boost" => "with-python"
else
depends_on "boost"
end
def install
args = %W[
--disable-dependency-tracking
--prefix=#{prefix}
]
2013-06-03 22:27:25 +00:00
args << '--disable-dii' unless build.include? 'pst2dii'
if build.with? 'python'
args << '--enable-python' << '--with-boost-python=mt'
else
args << '--disable-python'
end
system "./configure", *args
system "make install"
end
end