class SLang < Formula homepage "http://www.jedsoft.org/slang/" url "http://www.jedsoft.org/releases/slang/slang-2.3.0.tar.bz2" mirror "http://pkgs.fedoraproject.org/repo/pkgs/slang/slang-2.3.0.tar.bz2/3bcc790460d52db1316c20395b7ac2f1/slang-2.3.0.tar.bz2" sha1 "6e26e90307d4569e5feef195648c0858ba27f7ac" bottle do sha1 "5ee9afbf50de909d6e0a74d00b5e32162dc890e3" => :yosemite sha1 "48400ef87e23ca59bb65dc0ee59487e573bf2df2" => :mavericks sha1 "f27927f44ec63a865773b2fa9e0f7830b1089ecf" => :mountain_lion end depends_on "libpng" depends_on "pcre" => :optional depends_on "oniguruma" => :optional def install png = Formula["libpng"] system "./configure", "--prefix=#{prefix}", "--with-pnglib=#{png.lib}", "--with-pnginc=#{png.include}" ENV.j1 system "make" system "make", "install" end test do assert_equal "Hello World!", shell_output("#{bin}/slsh -e 'message(\"Hello World!\");'").strip end end