diff options
| author | Jack Nagel | 2013-06-26 19:06:02 -0500 | 
|---|---|---|
| committer | Jack Nagel | 2013-06-26 19:06:02 -0500 | 
| commit | 75a999d39cc95d73a4a1c0ffa1cdc9d21fb9a2c5 (patch) | |
| tree | b64e897072dbdf07ced6d6e7bc2dbcbf66298df0 /Library/Formula/poppler.rb | |
| parent | 1fc5a1918a9dad37b938df46cd0a67853970f25c (diff) | |
| download | homebrew-75a999d39cc95d73a4a1c0ffa1cdc9d21fb9a2c5.tar.bz2 | |
poppler: use optional dep for glib
Diffstat (limited to 'Library/Formula/poppler.rb')
| -rw-r--r-- | Library/Formula/poppler.rb | 12 | 
1 files changed, 6 insertions, 6 deletions
diff --git a/Library/Formula/poppler.rb b/Library/Formula/poppler.rb index 0baecfd01..d0a94774b 100644 --- a/Library/Formula/poppler.rb +++ b/Library/Formula/poppler.rb @@ -18,12 +18,12 @@ class Poppler < Formula    depends_on :fontconfig    depends_on 'openjpeg' -  depends_on 'qt' if build.include? 'with-qt4' -  depends_on 'glib' if build.include? 'with-glib' -  depends_on 'cairo' if build.include? 'with-glib' # Needs a newer Cairo build than OS X 10.6.7 provides +  depends_on 'qt' if build.with? 'qt4' +  depends_on 'glib' => :optional +  depends_on 'cairo' if build.with? 'glib' # Needs a newer Cairo build than OS X 10.6.7 provides    def install -    if build.include? 'with-qt4' +    if build.with? 'qt4'        ENV['POPPLER_QT4_CFLAGS'] = `#{HOMEBREW_PREFIX}/bin/pkg-config QtCore QtGui --libs`.chomp        ENV.append 'LDFLAGS', "-Wl,-F#{HOMEBREW_PREFIX}/lib"      end @@ -35,8 +35,8 @@ class Poppler < Formula      # Also, explicitly disable Glib as Poppler will find it and set up to      # build, but Superenv will have stripped the Glib utilities out of the      # PATH. -    args << ( build.include?('with-qt4') ? '--enable-poppler-qt4' : '--disable-poppler-qt4' ) -    args << ( build.include?('with-glib') ? '--enable-poppler-glib' : '--disable-poppler-glib' ) +    args << ( build.with?('qt4') ? '--enable-poppler-qt4' : '--disable-poppler-qt4' ) +    args << ( build.with?('glib') ? '--enable-poppler-glib' : '--disable-poppler-glib' )      system "./configure", *args      system "make install"  | 
