2011-07-07 13:17:27 +00:00
|
|
|
class Libpst < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Utilities for the PST file format"
|
2015-03-03 19:20:02 +00:00
|
|
|
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"
|
2012-09-05 05:52:14 +00:00
|
|
|
|
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
|
|
|
|
|
2015-03-03 19:20:02 +00:00
|
|
|
option "with-pst2dii", "Build pst2dii using gd"
|
|
|
|
|
|
|
|
deprecated_option "pst2dii" => "with-pst2dii"
|
2011-07-07 13:17:27 +00:00
|
|
|
|
2013-01-21 09:33:56 +00:00
|
|
|
depends_on :python => :optional
|
2015-03-03 19:20:02 +00:00
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
depends_on "gd" if build.with? "pst2dii"
|
2014-08-30 21:14:07 +00:00
|
|
|
depends_on "boost"
|
2015-03-03 19:20:02 +00:00
|
|
|
depends_on "gettext"
|
|
|
|
depends_on "libgsf"
|
2014-08-30 21:14:07 +00:00
|
|
|
depends_on "boost-python" if build.with? "python"
|
2014-05-23 02:20:09 +00:00
|
|
|
|
2011-07-07 13:17:27 +00:00
|
|
|
def install
|
2012-09-05 05:52:14 +00:00
|
|
|
args = %W[
|
|
|
|
--disable-dependency-tracking
|
|
|
|
--prefix=#{prefix}
|
|
|
|
]
|
2015-03-03 19:20:02 +00:00
|
|
|
|
|
|
|
args << "--disable-dii" if build.with? "pst2dii"
|
|
|
|
|
|
|
|
if build.with? "python"
|
|
|
|
args << "--enable-python" << "--with-boost-python=mt"
|
2012-09-05 05:52:14 +00:00
|
|
|
else
|
2015-03-03 19:20:02 +00:00
|
|
|
args << "--disable-python"
|
2012-09-05 05:52:14 +00:00
|
|
|
end
|
2015-03-03 19:20:02 +00:00
|
|
|
|
2012-09-05 05:52:14 +00:00
|
|
|
system "./configure", *args
|
2014-09-21 03:30:38 +00:00
|
|
|
system "make"
|
|
|
|
system "make", "install"
|
2011-07-07 13:17:27 +00:00
|
|
|
end
|
2015-03-03 19:20:02 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
system bin/"lspst", "-V"
|
|
|
|
end
|
2011-07-07 13:17:27 +00:00
|
|
|
end
|