From 3bc5078ea7f7df13a8246afa54fbe1d394c43b9e Mon Sep 17 00:00:00 2001 From: Tom Schoonjans Date: Mon, 8 May 2017 05:18:52 +0100 Subject: [PATCH] libosinfo: fix test and url (#13346) --- Formula/libosinfo.rb | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Formula/libosinfo.rb b/Formula/libosinfo.rb index 172c8bd99f..97bec2f536 100644 --- a/Formula/libosinfo.rb +++ b/Formula/libosinfo.rb @@ -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