2018-08-06 00:50:16 +00:00
|
|
|
class OsinfoDbTools < Formula
|
|
|
|
desc "Tools for managing the libosinfo database files"
|
|
|
|
homepage "https://libosinfo.org"
|
2019-06-22 01:02:37 +00:00
|
|
|
url "https://releases.pagure.org/libosinfo/osinfo-db-tools-1.5.0.tar.gz"
|
|
|
|
sha256 "f43160f3f3251849f8b8b37c84ad8640f2a51937d8ea38626f14aa2a159730de"
|
2018-08-06 00:50:16 +00:00
|
|
|
|
|
|
|
depends_on "pkg-config" => :build
|
2019-01-06 20:48:28 +00:00
|
|
|
|
|
|
|
depends_on "gettext"
|
|
|
|
depends_on "glib"
|
2019-02-09 01:30:18 +00:00
|
|
|
depends_on "json-glib"
|
2019-01-06 20:48:28 +00:00
|
|
|
depends_on "libarchive" # need >= 3.0.0
|
2018-08-06 00:50:16 +00:00
|
|
|
|
|
|
|
def install
|
2019-06-22 01:02:37 +00:00
|
|
|
# sh lives at /bin/sh on macOS, not /usr/bin/sh
|
|
|
|
inreplace "build-aux/install-sh", "#!/usr/bin/sh", "#!/bin/sh"
|
|
|
|
|
2018-08-06 00:50:16 +00:00
|
|
|
args = %W[
|
|
|
|
--disable-dependency-tracking
|
|
|
|
--disable-silent-rules
|
|
|
|
--prefix=#{prefix}
|
|
|
|
--localstatedir=#{var}
|
|
|
|
--sysconfdir=#{etc}
|
|
|
|
]
|
|
|
|
system "./configure", *args
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/osinfo-db-path"
|
|
|
|
end
|
|
|
|
end
|