aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/libpst.rb
diff options
context:
space:
mode:
authornibbles 2bits2012-09-04 22:52:14 -0700
committerJack Nagel2012-09-05 09:37:53 -0500
commit5425c95d9444a90c8c765ee62990ab2217964206 (patch)
tree0f9cee035a92a6a95097186d13651a7e93c1411e /Library/Formula/libpst.rb
parent63338b44bb057f877f378812e9a1ce6254d1b7fb (diff)
downloadhomebrew-5425c95d9444a90c8c765ee62990ab2217964206.tar.bz2
libpst 0.6.55
- 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 #14721. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula/libpst.rb')
-rw-r--r--Library/Formula/libpst.rb22
1 files changed, 18 insertions, 4 deletions
diff --git a/Library/Formula/libpst.rb b/Library/Formula/libpst.rb
index aa71e6e61..d143d97a5 100644
--- a/Library/Formula/libpst.rb
+++ b/Library/Formula/libpst.rb
@@ -2,14 +2,28 @@ 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.54.tar.gz'
- sha1 'a4713b87e330556acb0786b4efa975a3c739cd84'
+ 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
- system "./configure", "--prefix=#{prefix}",
- "--disable-python"
+ 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