42 lines
2.3 KiB
Ruby
42 lines
2.3 KiB
Ruby
class Raptor < Formula
|
|
desc "RDF parser toolkit"
|
|
homepage "https://librdf.org/raptor/"
|
|
url "https://download.librdf.org/source/raptor2-2.0.15.tar.gz"
|
|
sha256 "ada7f0ba54787b33485d090d3d2680533520cd4426d2f7fb4782dd4a6a1480ed"
|
|
|
|
livecheck do
|
|
url :homepage
|
|
regex(/href=.*?raptor2[._-]v?(\d+(?:\.\d+)+)\.t/i)
|
|
end
|
|
|
|
bottle do
|
|
sha256 cellar: :any, arm64_ventura: "8e4bd73d90346e77337b54434918cf9b5433eedb0039ba7191369dd0be3443ed"
|
|
sha256 cellar: :any, arm64_monterey: "f0e12bdfcf37c08179e284793f5481f8c62748a8ad9663bd78c2c1e03f79c4dd"
|
|
sha256 cellar: :any, arm64_big_sur: "2970bdade24bb5ec9afe4b79e89234016147cb506f6b450bcfd66c50fce1cede"
|
|
sha256 cellar: :any, ventura: "1b380e6eedbb6c4e3f9b1f957a169575a6cad819a10735ab6fd216b61b3619cb"
|
|
sha256 cellar: :any, monterey: "07ee4cd681d7d955c39f1193e8c2d67b9679ea8a9a891b0e71aee8b61429edda"
|
|
sha256 cellar: :any, big_sur: "5b58712f0ba9fc647c6b241f80ce3697e25c851f80b26cb8f89f28809905126f"
|
|
sha256 cellar: :any, catalina: "d0be0655a9546fe278830f8b60a19f66dcc10a77445e2bf2cf76ad61a0a802e2"
|
|
sha256 cellar: :any, mojave: "cbfcd2b8ce9fa8701a15eba572e766e3a9b3b19eba8438d41618e6ee3ab4501d"
|
|
sha256 cellar: :any, high_sierra: "194f9a66e1aeccb23185abd6f1f1408422594dfd54cad5460c5a5ac3f5e0c48c"
|
|
sha256 cellar: :any, sierra: "dba42ee8efa54c0b5722f0e12a7a585c2a9fe07a22aea6aec9124aaf09860f1d"
|
|
sha256 cellar: :any, el_capitan: "cc2feb9cd1d6f9eb0f511853f19c43bc96d143de6a73edfd3cdb854647d1d14a"
|
|
sha256 cellar: :any_skip_relocation, x86_64_linux: "8e12ca0982ee8eebad9a39d5f77ef329dd9e56fdbfa9e3d083648bfecba8d6d7"
|
|
end
|
|
|
|
uses_from_macos "libxml2"
|
|
|
|
# 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}"
|
|
system "make", "install"
|
|
end
|
|
end
|