diff options
| author | Jack Nagel | 2013-11-11 09:52:46 -0600 |
|---|---|---|
| committer | Jack Nagel | 2013-11-11 10:11:38 -0600 |
| commit | 0f60949cbdbd67a78b0a9fb3394db803b585ec06 (patch) | |
| tree | 5ecc161be66f19171871003ece24a38c2535af42 /Library/Formula/ghostscript.rb | |
| parent | 4a667bed391b1713433d1aa2175372e2ab465a9d (diff) | |
| download | homebrew-0f60949cbdbd67a78b0a9fb3394db803b585ec06.tar.bz2 | |
ghostscript: ensure changes to config.mak are written to disk
This fixes the build under superenv. I can actually reproduce the error
under stdenv as well, so there must be several factors that contribute
to it.
Diffstat (limited to 'Library/Formula/ghostscript.rb')
| -rw-r--r-- | Library/Formula/ghostscript.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Library/Formula/ghostscript.rb b/Library/Formula/ghostscript.rb index cbef86c7c..7cdaf19a2 100644 --- a/Library/Formula/ghostscript.rb +++ b/Library/Formula/ghostscript.rb @@ -18,9 +18,6 @@ class Ghostscript < Formula option 'with-djvu', 'Build drivers for DjVU file format' - # TODO - figure out why this is needed - env :std if build.with? 'djvu' - depends_on 'pkg-config' => :build depends_on 'jpeg' depends_on 'libtiff' @@ -63,7 +60,7 @@ class Ghostscript < Formula (buildpath+'base').install 'gdevdjvu.c' (buildpath+'lib').install 'ps2utf8.ps' ENV['EXTRA_INIT_FILES'] = 'ps2utf8.ps' - (buildpath/'base/contrib.mak').open('a').write(File.read('gsdjvu.mak')) + (buildpath/'base/contrib.mak').open('a') { |f| f.write(File.read('gsdjvu.mak')) } end if build.with? 'djvu' cd src_dir do |
