spice-protocol 0.12.14 (new formula)
Closes #35758. Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
parent
fb7bc4d09d
commit
16f7ae9f14
1 changed files with 25 additions and 0 deletions
25
Formula/spice-protocol.rb
Normal file
25
Formula/spice-protocol.rb
Normal file
|
@ -0,0 +1,25 @@
|
|||
class SpiceProtocol < Formula
|
||||
desc "Headers for SPICE protocol"
|
||||
homepage "https://www.spice-space.org/"
|
||||
url "https://www.spice-space.org/download/releases/spice-protocol-0.12.14.tar.bz2"
|
||||
sha256 "20350bc4309039fdf0d29ee4fd0033cde27bccf33501e13b3c1befafde9d0c9c"
|
||||
|
||||
def install
|
||||
system "./configure", "--disable-silent-rules",
|
||||
"--prefix=#{prefix}"
|
||||
system "make", "install"
|
||||
end
|
||||
|
||||
test do
|
||||
(testpath/"test.cpp").write <<~EOS
|
||||
#include <spice/protocol.h>
|
||||
int main() {
|
||||
return (SPICE_LINK_ERR_OK == 0) ? 0 : 1;
|
||||
}
|
||||
EOS
|
||||
system ENV.cc, "test.cpp",
|
||||
"-I#{include}/spice-1",
|
||||
"-o", "test"
|
||||
system "./test"
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue