class Lasso < Formula desc "Library for Liberty Alliance and SAML protocols" homepage "http://lasso.entrouvert.org/" url "https://dev.entrouvert.org/releases/lasso/lasso-2.6.0.tar.gz" sha256 "146bff7a25166467d960003346cbc3291f3f29067e305cb82ebb12354c7d0acf" bottle do sha256 "8b6d5f0e436583e3293a3d2f857ffd9f3cb2950c689aa9db2792810fc4a1a8a9" => :mojave sha256 "bf7e791e207eb49a71fd8369bb1f7ce5433ddf9e83a4cc92b180c23333543e71" => :high_sierra sha256 "9a3af6f2270df07b19b6a3ad94c2fdc9278ed24ec9453ad8351d54d7030df144" => :sierra end depends_on "pkg-config" => :build depends_on "glib" depends_on "libxmlsec1" depends_on "openssl" def install system "./configure", "--disable-dependency-tracking", "--disable-silent-rules", "--disable-java", "--disable-perl", "--disable-php5", "--disable-python", "--prefix=#{prefix}", "--with-pkg-config=#{ENV["PKG_CONFIG_PATH"]}" system "make", "install" end test do (testpath/"test.c").write <<~EOS #include int main() { return lasso_init(); } EOS system ENV.cc, "test.c", "-I#{Formula["glib"].include}/glib-2.0", "-I#{Formula["glib"].lib}/glib-2.0/include", "-I#{MacOS.sdk_path}/usr/include/libxml2", "-I#{Formula["libxmlsec1"].include}/xmlsec1", "-L#{lib}", "-llasso", "-o", "test" system "./test" end end