homebrew-core/Formula/libpst.rb

49 lines
1.2 KiB
Ruby
Raw Normal View History

class Libpst < Formula
desc "Utilities for the PST file format"
homepage "http://www.five-ten-sg.com/libpst/"
url "http://www.five-ten-sg.com/libpst/packages/libpst-0.6.63.tar.gz"
sha256 "5f522606fb7b97d6e31bc2490dcce77b89ec77e12ade4af4551290f953483062"
2014-07-03 21:00:25 +00:00
bottle do
cellar :any
2015-03-03 19:53:07 +00:00
sha1 "9c4d9e444577b05d8fd6fe9759840f29776639de" => :yosemite
sha1 "0b7150bc158799b80cdaf6b5cfdfae740214ee96" => :mavericks
sha1 "f604465213aae3bc5711fa8633cf25e910dd4799" => :mountain_lion
2014-07-03 21:00:25 +00:00
end
option "with-pst2dii", "Build pst2dii using gd"
deprecated_option "pst2dii" => "with-pst2dii"
depends_on :python => :optional
depends_on "pkg-config" => :build
depends_on "gd" if build.with? "pst2dii"
depends_on "boost"
depends_on "gettext"
depends_on "libgsf"
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}
]
args << "--disable-dii" if build.with? "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"
system "make", "install"
end
test do
system bin/"lspst", "-V"
end
end