58 lines
2.1 KiB
Ruby
58 lines
2.1 KiB
Ruby
class XmlToolingC < Formula
|
|
desc "Provides a higher level interface to XML processing"
|
|
homepage "https://wiki.shibboleth.net/confluence/display/OpenSAML/XMLTooling-C"
|
|
url "https://shibboleth.net/downloads/c++-opensaml/3.0.0/xmltooling-3.0.2.tar.bz2"
|
|
sha256 "5709cf30c9d7cfc786599ac2433653fac8cc64d425781068af86019c8ce8d689"
|
|
revision 4
|
|
|
|
bottle do
|
|
sha256 "c71643dd020081cd500bb47c4011b20874dd7868f6180bc496fbf30a81bb67d7" => :mojave
|
|
sha256 "09fbdd6a424ef05937bc50d00a2f8a7f63e72f76168f8ecf78c5bdd3a0f39c16" => :high_sierra
|
|
sha256 "86b7c8b265263d2cb02195d83ebdcb5f8d00686eebce7208dbdedbe9f508cc8a" => :sierra
|
|
end
|
|
|
|
depends_on "pkg-config" => :build
|
|
depends_on "boost"
|
|
depends_on "log4shib"
|
|
depends_on "openssl"
|
|
depends_on "xerces-c"
|
|
depends_on "xml-security-c"
|
|
|
|
resource "curl" do
|
|
url "https://curl.haxx.se/download/curl-7.62.0.tar.bz2"
|
|
mirror "https://curl.askapache.com/download/curl-7.62.0.tar.bz2"
|
|
sha256 "7802c54076500be500b171fde786258579d60547a3a35b8c5a23d8c88e8f9620"
|
|
end
|
|
|
|
needs :cxx11
|
|
|
|
def install
|
|
ENV.O2 # Os breaks the build
|
|
ENV.cxx11
|
|
|
|
ENV.prepend_path "PKG_CONFIG_PATH", "#{Formula["openssl"].opt_lib}/pkgconfig"
|
|
|
|
resource("curl").stage do
|
|
system "./configure", "--disable-debug",
|
|
"--disable-dependency-tracking",
|
|
"--disable-silent-rules",
|
|
"--prefix=#{libexec}/curl",
|
|
"--with-ssl=#{Formula["openssl"].opt_prefix}",
|
|
"--with-ca-bundle=#{etc}/openssl/cert.pem",
|
|
"--with-ca-path=#{etc}/openssl/certs",
|
|
"--without-libssh2",
|
|
"--without-libmetalink",
|
|
"--without-gssapi",
|
|
"--without-librtmp",
|
|
"--disable-ares"
|
|
system "make", "install"
|
|
end
|
|
|
|
ENV.prepend_path "PKG_CONFIG_PATH", libexec/"curl/lib/pkgconfig"
|
|
|
|
system "./configure", "--disable-debug",
|
|
"--disable-dependency-tracking",
|
|
"--prefix=#{prefix}"
|
|
system "make", "install"
|
|
end
|
|
end
|