forked from jeffreywildman/homebrew-virt-manager
-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathosinfo-db-tools.rb
More file actions
33 lines (27 loc) · 819 Bytes
/
osinfo-db-tools.rb
File metadata and controls
33 lines (27 loc) · 819 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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.9.0.tar.xz"
sha256 "255f1c878bacec70c3020ff5a9cb0f6bd861ca0009f24608df5ef6f62d5243c0"
depends_on "pkg-config" => :build
depends_on "meson" => :build
depends_on "ninja" => :build
depends_on "gettext"
depends_on "glib"
depends_on "json-glib"
depends_on "libarchive" # need >= 3.0.0
depends_on "libsoup"
def install
args = %W[
--prefix=#{prefix}
--localstatedir=#{var}
--sysconfdir=#{etc}
]
system "meson", "setup", "builddir", *args
system "ninja", "-C", "builddir"
system "ninja", "-C", "builddir", "install"
end
test do
system "#{bin}/osinfo-db-path"
end
end