diff options
| author | Jack Nagel | 2014-03-05 20:12:51 -0600 |
|---|---|---|
| committer | Jack Nagel | 2014-03-05 20:45:44 -0600 |
| commit | 7c6cc92c76a4dba0100394c601b6717060d337c2 (patch) | |
| tree | b72c7d762151fd6d96d1c1cd36c60ec77d42d308 /Library/Formula/s-lang.rb | |
| parent | ad7ff7992c6ca693914aedca7a7cec63476a42e1 (diff) | |
| download | homebrew-7c6cc92c76a4dba0100394c601b6717060d337c2.tar.bz2 | |
Remove special X11 proxy deps
Diffstat (limited to 'Library/Formula/s-lang.rb')
| -rw-r--r-- | Library/Formula/s-lang.rb | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/Library/Formula/s-lang.rb b/Library/Formula/s-lang.rb index 66c254f96..7b3355cd6 100644 --- a/Library/Formula/s-lang.rb +++ b/Library/Formula/s-lang.rb @@ -10,14 +10,11 @@ class SLang < Formula depends_on 'pcre' => :optional depends_on 'oniguruma' => :optional - def png_prefix - MacOS.version >= :mountain_lion ? HOMEBREW_PREFIX/"opt/libpng" : MacOS::X11.prefix - end - def install + png = Formula["libpng"] system "./configure", "--prefix=#{prefix}", - "--with-pnglib=#{png_prefix}/lib", - "--with-pnginc=#{png_prefix}/include" + "--with-pnglib=#{png.lib}", + "--with-pnginc=#{png.include}" ENV.j1 system "make" system "make install" |
