homebrew-core/Formula/libpst.rb

41 lines
1.1 KiB
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'
revision 1
2014-07-03 21:00:25 +00:00
bottle do
cellar :any
2014-10-20 17:16:49 +00:00
revision 2
sha1 "b90a60bae5163fa853ea1e1bfe8c4149d0287457" => :yosemite
sha1 "143ec60a13f3ccfbb46cb9039ac31505f5b904e5" => :mavericks
sha1 "7d0df0df98649f182c6b493eab1fc6ad77b7b1f7" => :mountain_lion
2014-07-03 21:00:25 +00:00
end
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'
depends_on "boost"
depends_on "boost-python" if build.with? "python"
2014-05-23 02:20:09 +00:00
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
2014-09-21 03:30:38 +00:00
system "make"
ENV.deparallelize
system "make", "install"
end
end