homebrew-core/Formula/s-lang.rb
2019-09-13 01:10:22 -04:00

29 lines
1.2 KiB
Ruby

class SLang < Formula
desc "Library for creating multi-platform software"
homepage "https://www.jedsoft.org/slang/"
url "https://www.jedsoft.org/releases/slang/slang-2.3.2.tar.bz2"
mirror "https://src.fedoraproject.org/repo/pkgs/slang/slang-2.3.2.tar.bz2/sha512/35cdfe8af66dac62ee89cca60fa87ddbd02cae63b30d5c0e3786e77b1893c45697ace4ac7e82d9832b8a9ac342560bc35997674846c5022341481013e76f74b5/slang-2.3.2.tar.bz2"
sha256 "fc9e3b0fc4f67c3c1f6d43c90c16a5c42d117b8e28457c5b46831b8b5d3ae31a"
bottle do
sha256 "05a3437702d5793c9bcac94151e8614878ca36cb1074ab330708021e59845346" => :mojave
sha256 "52884a38833f21110f2ed22960f8f96ed5e3878fda45def8b67450e643ccfc97" => :high_sierra
sha256 "e317f0ed56871fe293943faedfa44e6c744afb5a0187b7c81e201ce6921b0634" => :sierra
end
depends_on "libpng"
def install
png = Formula["libpng"]
system "./configure", "--prefix=#{prefix}",
"--with-pnglib=#{png.lib}",
"--with-pnginc=#{png.include}"
ENV.deparallelize
system "make"
system "make", "install"
end
test do
assert_equal "Hello World!", shell_output("#{bin}/slsh -e 'message(\"Hello World!\");'").strip
end
end