2018-08-06 00:50:40 +00:00
|
|
|
class OsinfoDb < Formula
|
|
|
|
desc "Libosinfo database files"
|
|
|
|
homepage "https://libosinfo.org/"
|
2019-08-04 14:49:51 +00:00
|
|
|
url "https://releases.pagure.org/libosinfo/osinfo-db-20190726.tar.xz"
|
|
|
|
sha256 "39c70aebeab302cabbffef56f7db60accda22b0a27ce8d17324311311ec28d4d"
|
2018-08-06 00:50:40 +00:00
|
|
|
|
|
|
|
depends_on "osinfo-db-tools" => :build
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "osinfo-db-import", "--local", cached_download
|
|
|
|
|
|
|
|
# Copy the archive into the prefix to avoid empty installation error
|
|
|
|
cp_r "./", prefix
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2019-01-26 21:58:02 +00:00
|
|
|
system "osinfo-db-validate", "--local"
|
2018-08-06 00:50:40 +00:00
|
|
|
end
|
|
|
|
end
|