homebrew-core/Formula/s-lang.rb

26 lines
790 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class SLang < Formula
2010-12-17 16:43:33 +00:00
homepage 'http://www.jedsoft.org/slang/'
url 'ftp://space.mit.edu/pub/davis/slang/v2.2/slang-2.2.4.tar.bz2'
mirror 'http://pkgs.fedoraproject.org/repo/pkgs/slang/slang-2.2.4.tar.bz2/7fcfd447e378f07dd0c0bae671fe6487/slang-2.2.4.tar.bz2'
sha1 '34e68a993888d0ae2ebc7bc31b40bc894813a7e2'
depends_on :libpng
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
system "./configure", "--prefix=#{prefix}",
2013-07-23 03:34:09 +00:00
"--with-pnglib=#{png_prefix}/lib",
"--with-pnginc=#{png_prefix}/include"
2010-12-17 16:43:33 +00:00
ENV.j1
system "make"
system "make install"
end
end