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

29 lines
747 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"
url "https://releases.pagure.org/libosinfo/osinfo-db-tools-1.2.0.tar.gz"
sha256 "3b50829e5b58db15fe9fc8caf005aa18300262fea4562da0c2dfbe56355ff81f"
depends_on "intltool" => :build
depends_on "gettext" => :build
depends_on "pkg-config" => :build
depends_on "libarchive" => :build
depends_on "glib" => :build
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