class SLang < Formula desc "Library for creating multi-platform software" homepage "http://www.jedsoft.org/slang/" url "http://www.jedsoft.org/releases/slang/slang-2.3.1a.tar.bz2" mirror "http://pkgs.fedoraproject.org/repo/pkgs/slang/slang-2.3.1a.tar.bz2/sha512/e7236a189081ebcbaf4e7f0506671226a4d46aede8826e1a558f1a2f57bcbe3ad58eadeabe2df99cd3d8bacb4c93749996bcbce4f51d338fc9396e0f945933e7/slang-2.3.1a.tar.bz2" sha256 "54f0c3007fde918039c058965dffdfd6c5aec0bad0f4227192cc486021f08c36" bottle do sha256 "aa8fa7cfaaa44eac118cd9f365ecc81a9a16c41637add489d10416f4a4169d9e" => :sierra sha256 "c3dfe3de137e3ab1d26da0b20bd7e9fffae181f3ba9fbf159cf04b8e92707b38" => :el_capitan sha256 "d96458487649104eeaf01ff36dbd9fd4142130bfbc71f47490e69f532fbf3ffa" => :yosemite 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.deparallelize system "make" system "make", "install" end test do assert_equal "Hello World!", shell_output("#{bin}/slsh -e 'message(\"Hello World!\");'").strip end end