homebrew-core/Formula/libpst.rb
ilovezfs fe484ee0f3 libpst 0.6.69
Closes #7513.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
2016-12-03 04:05:35 -08:00

49 lines
1.4 KiB
Ruby

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.69.tar.gz"
sha256 "66952669983026cae67ce066d1434aa1c86edbe2cffa2841989bc4374540bfbc"
bottle do
cellar :any
sha256 "b18ba28a201905f6039e2ac7b275ba8975626fb14060c7e62a43cd4d8c48c930" => :sierra
sha256 "85e5b6e462c43360ba320bfd0ff8f1df5651071d084204f83c28390a42ee3e8e" => :el_capitan
sha256 "8c8a952ce7f839a074bd7948ba90b14598d3e3979e821d9122fb612ddd059d04" => :yosemite
sha256 "2fcd9b451d14f8cec5960acc2ac1fa22f9b6f7ce943ab694ece78f52f5a29161" => :mavericks
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"
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
system "make"
system "make", "install"
end
test do
system bin/"lspst", "-V"
end
end