52 lines
1.8 KiB
Ruby
52 lines
1.8 KiB
Ruby
class Libgda < Formula
|
|
desc "Provides unified data access to the GNOME project"
|
|
homepage "https://www.gnome-db.org/"
|
|
url "https://download.gnome.org/sources/libgda/5.2/libgda-5.2.10.tar.xz"
|
|
sha256 "6f6cdf7b8053f553b907e0c88a6064eb48cf2751852eb24323dcf027792334c8"
|
|
license "GPL-2.0-or-later"
|
|
|
|
livecheck do
|
|
url :stable
|
|
end
|
|
|
|
bottle do
|
|
sha256 "1fd18afa48f013fcee08cadebf89c4bbb3e37444b591b16cd61e5848b93d6395" => :big_sur
|
|
sha256 "83d65ccf6e92620dd833dd23d1a02880f020ab24a0a6ed2ab5cb1a5149a32c5b" => :catalina
|
|
sha256 "e48a5aea9d860765e58bcd756c8e81956974d4284189604755a63232fc13a806" => :mojave
|
|
sha256 "8c9a8133c1fd1c554f995c089b12cbe049d2a8a01ac31cb5e68c089857a200a1" => :high_sierra
|
|
end
|
|
|
|
depends_on "gobject-introspection" => :build
|
|
depends_on "intltool" => :build
|
|
depends_on "itstool" => :build
|
|
depends_on "pkg-config" => :build
|
|
depends_on "gettext"
|
|
depends_on "glib"
|
|
depends_on "libgcrypt"
|
|
depends_on "libgee"
|
|
depends_on "openssl@1.1"
|
|
depends_on "readline"
|
|
|
|
def install
|
|
# this build uses the sqlite source code that comes with libgda,
|
|
# as opposed to using the system or brewed sqlite3, which is not supported on macOS,
|
|
# as mentioned in https://github.com/GNOME/libgda/blob/95eeca4b0470f347c645a27f714c62aa6e59f820/libgda/sqlite/README#L31
|
|
|
|
system "./configure", "--disable-debug",
|
|
"--disable-dependency-tracking",
|
|
"--disable-silent-rules",
|
|
"--prefix=#{prefix}",
|
|
"--disable-binreloc",
|
|
"--disable-gtk-doc",
|
|
"--without-java",
|
|
"--enable-introspection",
|
|
"--enable-system-sqlite=no"
|
|
system "make"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/gda-sql", "-v"
|
|
end
|
|
end
|