ed08bebb43
- Upgrade to 0.6.55 - Add an option to build the python bindings - Add a configure flag to help it find `libboost_python-mt` - Add a `--disable-dependency-tracking` - Add a env var to fix the LINKFORSHARED built into HB Python. - Add an option to build `pst2dii` using `gd` Closes Homebrew/homebrew#14721. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
29 lines
801 B
Ruby
29 lines
801 B
Ruby
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'
|
|
|
|
option 'pst2dii', 'Build pst2dii using gd'
|
|
option 'python', 'Build the libpst python interface'
|
|
|
|
depends_on 'boost'
|
|
depends_on 'gd' if build.include? 'pst2dii'
|
|
|
|
def install
|
|
args = %W[
|
|
--disable-dependency-tracking
|
|
--prefix=#{prefix}
|
|
]
|
|
args << '--disable-dii' unless build.include? 'pst2dii'
|
|
if build.include? 'python'
|
|
ENV['PYTHON_EXTRA_LDFLAGS'] = '-u _PyMac_Error'
|
|
args << '--enable-python' << '--with-boost-python=mt'
|
|
else
|
|
args << '--disable-python'
|
|
end
|
|
system "./configure", *args
|
|
system "make install"
|
|
end
|
|
end
|