gjs 1.58.0

Closes #44005.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
Tom Schoonjans 2019-09-07 22:15:48 +01:00 committed by FX Coudert
parent 96b3100449
commit fe2ffea252

View file

@ -1,9 +1,8 @@
class Gjs < Formula
desc "JavaScript Bindings for GNOME"
homepage "https://gitlab.gnome.org/GNOME/gjs/wikis/Home"
url "https://download.gnome.org/sources/gjs/1.56/gjs-1.56.2.tar.xz"
sha256 "4c89818c3d0e2186fcc4cb5228e9bf2a1866dd7d6646a18f1b37219b6710a3ac"
revision 1
url "https://download.gnome.org/sources/gjs/1.58/gjs-1.58.0.tar.xz"
sha256 "1ed16a09c5970064df8b6f59564d0748f81e62eb56257c8911c01ff1ece57ef3"
bottle do
sha256 "503b0c377f9d50f293154e7b8d7539153ace5c16d2bd1bdc963ababaa49b2057" => :mojave
@ -67,10 +66,15 @@ class Gjs < Formula
"--disable-silent-rules",
"--without-dbus-tests",
"--disable-profiler",
"--disable-schemas-compile",
"--prefix=#{prefix}"
system "make", "install"
end
def post_install
system "#{Formula["glib"].opt_bin}/glib-compile-schemas", "#{HOMEBREW_PREFIX}/share/glib-2.0/schemas"
end
test do
(testpath/"test.js").write <<~EOS
#!/usr/bin/env gjs