From 994e4b9783213cf25d1d9c9679600d48bb9d4522 Mon Sep 17 00:00:00 2001 From: Jeffrey Wildman Date: Sun, 5 Aug 2018 20:50:16 -0400 Subject: [PATCH] osinfo-db-tools: 1.2.0 --- osinfo-db-tools.rb | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 osinfo-db-tools.rb diff --git a/osinfo-db-tools.rb b/osinfo-db-tools.rb new file mode 100644 index 0000000..acb6b15 --- /dev/null +++ b/osinfo-db-tools.rb @@ -0,0 +1,28 @@ +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