homebrew-virt-manager/osinfo-db-tools.rb

31 lines
748 B
Ruby
Raw Normal View History

2018-08-06 00:50:16 +00:00
class OsinfoDbTools < Formula
desc "Tools for managing the libosinfo database files"
homepage "https://libosinfo.org"
2019-08-04 14:49:32 +00:00
url "https://releases.pagure.org/libosinfo/osinfo-db-tools-1.6.0.tar.gz"
sha256 "d0d5b1196d73a7abed051be48d0e5b4aa196aac4cdbf8ddf52f57c0c492b2574"
2018-08-06 00:50:16 +00:00
depends_on "pkg-config" => :build
depends_on "gettext"
depends_on "glib"
2019-02-09 01:30:18 +00:00
depends_on "json-glib"
depends_on "libarchive" # need >= 3.0.0
2019-08-04 14:49:32 +00:00
depends_on "libsoup"
2018-08-06 00:50:16 +00:00
def install
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