libosinfo: fix test and url (#13346)
This commit is contained in:
parent
9caeedd8af
commit
3bc5078ea7
1 changed files with 10 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
|||
class Libosinfo < Formula
|
||||
desc "The Operating System information database"
|
||||
homepage "https://libosinfo.org/"
|
||||
url "https://fedorahosted.org/releases/l/i/libosinfo/libosinfo-1.0.0.tar.gz"
|
||||
url "https://releases.pagure.org/libosinfo/libosinfo-1.0.0.tar.gz"
|
||||
sha256 "f7b425ecde5197d200820eb44401c5033771a5d114bd6390230de768aad0396b"
|
||||
|
||||
bottle do
|
||||
|
@ -36,7 +36,11 @@ class Libosinfo < Formula
|
|||
]
|
||||
|
||||
args << "--disable-introspection" if build.without? "gobject-introspection"
|
||||
args << "--enable-vala" if build.with? "vala"
|
||||
if build.with? "vala"
|
||||
args << "--enable-vala"
|
||||
else
|
||||
args << "--disable-vala"
|
||||
end
|
||||
|
||||
system "./configure", *args
|
||||
|
||||
|
@ -78,7 +82,10 @@ class Libosinfo < Formula
|
|||
for name in hvnames:
|
||||
print (" HV short id " + name)
|
||||
EOS
|
||||
|
||||
ENV.append_path "GI_TYPELIB_PATH", lib+"girepository-1.0"
|
||||
ENV.append_path "GI_TYPELIB_PATH", Formula["gobject-introspection"].opt_lib+"girepository-1.0"
|
||||
ENV.append_path "PYTHONPATH", lib+"python2.7/site-packages"
|
||||
ENV.append_path "PYTHONPATH", Formula["pygobject3"].opt_lib+"python2.7/site-packages"
|
||||
system "python", "test.py"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue