35 lines
1.1 KiB
Ruby
35 lines
1.1 KiB
Ruby
class GupnpTools < Formula
|
|
desc "Free replacements of Intel's UPnP tools"
|
|
homepage "https://wiki.gnome.org/GUPnP/"
|
|
url "https://download.gnome.org/sources/gupnp-tools/0.10/gupnp-tools-0.10.0.tar.xz"
|
|
sha256 "41da7ff5ba8e2425adcb64ca5e04c81f57ca20ec6fdb84923939fdad42c6a18d"
|
|
|
|
bottle do
|
|
sha256 "5c2de534f3dea6ecc14e664d4fe77d3a73fb7cf6e67e3b134cd5d670e58de2b1" => :mojave
|
|
sha256 "c71313ec263860c6bc883b790870ff45d36fe33fc007f78819fd445e0e96f8a8" => :high_sierra
|
|
sha256 "3d3fba98c7c2be6b5cc884b6ae1d82b1f527cc4dae4c2abe117ebfb0fe2535e5" => :sierra
|
|
end
|
|
|
|
depends_on "meson" => :build
|
|
depends_on "ninja" => :build
|
|
depends_on "pkg-config" => :build
|
|
depends_on "gettext"
|
|
depends_on "gtk+3"
|
|
depends_on "gtksourceview4"
|
|
depends_on "gupnp"
|
|
depends_on "gupnp-av"
|
|
depends_on "libsoup"
|
|
|
|
def install
|
|
mkdir "build" do
|
|
system "meson", "--prefix=#{prefix}", ".."
|
|
system "ninja", "-v"
|
|
system "ninja", "install", "-v"
|
|
end
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/gupnp-universal-cp", "-h"
|
|
system "#{bin}/gupnp-av-cp", "-h"
|
|
end
|
|
end
|