2011-07-07 13:17:27 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Libpst < Formula
|
|
|
|
homepage 'http://www.five-ten-sg.com/libpst/'
|
2012-09-05 05:52:14 +00:00
|
|
|
url 'http://www.five-ten-sg.com/libpst/packages/libpst-0.6.55.tar.gz'
|
|
|
|
sha1 'c81df95509494c99222b0b603f7500dd9caceff1'
|
|
|
|
|
|
|
|
option 'pst2dii', 'Build pst2dii using gd'
|
2011-07-07 13:17:27 +00:00
|
|
|
|
|
|
|
depends_on 'boost'
|
2013-01-21 09:33:56 +00:00
|
|
|
depends_on :python => :optional
|
2013-06-03 22:27:25 +00:00
|
|
|
depends_on 'gd' if build.include? 'pst2dii'
|
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}
|
|
|
|
]
|
2013-06-03 22:27:25 +00:00
|
|
|
args << '--disable-dii' unless build.include? 'pst2dii'
|
2013-01-21 09:33:56 +00:00
|
|
|
if build.with? 'python'
|
|
|
|
# ENV['PYTHON_EXTRA_LDFLAGS'] = '-u _PyMac_Error'
|
2012-09-05 05:52:14 +00:00
|
|
|
args << '--enable-python' << '--with-boost-python=mt'
|
|
|
|
else
|
|
|
|
args << '--disable-python'
|
|
|
|
end
|
|
|
|
system "./configure", *args
|
2011-07-07 13:17:27 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|