homebrew-core/Formula/redland.rb

56 lines
2.5 KiB
Ruby

class Redland < Formula
desc "RDF Library"
homepage "https://librdf.org/"
url "https://download.librdf.org/source/redland-1.0.17.tar.gz"
sha256 "de1847f7b59021c16bdc72abb4d8e2d9187cd6124d69156f3326dd34ee043681"
license any_of: ["LGPL-2.1-or-later", "GPL-2.0-or-later", "Apache-2.0"]
revision 1
livecheck do
url :homepage
regex(/href=.*?redland[._-]v?(\d+(?:\.\d+)+)\.t/i)
end
bottle do
sha256 arm64_ventura: "16c721b39acf16e65892930227303d74673ce56ddaf252ca867da9391de7bad3"
sha256 arm64_monterey: "25dd020d5d83642dd83c56583dd742dc549fcc32efbec67958faeebed4e1a849"
sha256 arm64_big_sur: "f54c731eecd682be899b7b8b5ab3424db134a1a48fe7076f0113deedb9a7f057"
sha256 ventura: "2c9931ba94fa4e8c4cd3b1983fdf55afa01838c3e6556664126733a7743c1575"
sha256 monterey: "f0b6b4b55556c730bb0eb720bcca0d4efd9ede0b13e15f39758fe2a193ce4933"
sha256 big_sur: "60ddb8775dfdff43901aac1138929c688b07e744304e24e1cd3d6183000620bf"
sha256 catalina: "f30068d691ac2748619a288912235236e905f672b1f80a974e95425c5f102a10"
sha256 mojave: "711bdaeff62854f878f02e8fab9782337ee87ebf7398757d7780eb3c8971310b"
sha256 high_sierra: "407f9f1bd2a8682684660826fce445077c33fe3e7f1bfb05e7c0e265e2edacfe"
sha256 sierra: "0ed03c897836946cbadf2e390bd25c79eeb6ad34ea1144ef69d8bf1dfbfaf2eb"
sha256 el_capitan: "38eac3bae25aa65cbb7b688ecfaae91ab79c0c292e7505596ffc3b409bc8ca3b"
sha256 x86_64_linux: "5439aed60715d12f7bce18e9292ce3301fc93b89cdb2eae2bd072a0a59a5fc6b"
end
depends_on "pkg-config" => :build
depends_on "raptor"
depends_on "rasqal"
depends_on "sqlite"
depends_on "unixodbc"
resource "bindings" do
url "https://download.librdf.org/source/redland-bindings-1.0.17.1.tar.gz"
sha256 "ff72b587ab55f09daf81799cb3f9d263708fad5df7a5458f0c28566a2563b7f5"
end
# Fix -flat_namespace being used on Big Sur and later.
patch do
url "https://raw.githubusercontent.com/Homebrew/formula-patches/03cf8088210822aa2c1ab544ed58ea04c897d9c4/libtool/configure-pre-0.4.2.418-big_sur.diff"
sha256 "83af02f2aa2b746bb7225872cab29a253264be49db0ecebb12f841562d9a2923"
end
def install
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}",
"--with-bdb=no",
"--with-mysql=no",
"--with-sqlite=yes"
system "make", "install"
end
end