Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

glycin 1.1.1 (new formula) #192825

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions Formula/g/glycin.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
class Glycin < Formula
desc "Sandboxed and extendable image loading"
homepage "https://gitlab.gnome.org/sophie-h/glycin"
url "https://download.gnome.org/sources/glycin/1.1/glycin-1.1.1.tar.xz"
sha256 "560ee42167c1ed22826618e61d83e49140db5bf47a65a9ba8ece2cd73d2a4aa8"
license any_of: ["LGPL-2.1-or-later", "MPL-2.0"]
head "https://gitlab.gnome.org/sophie-h/glycin.git", branch: "main"

# We use a common regex because glycin doesn't use GNOME's
# "even-numbered minor is stable" version scheme.
livecheck do
url :stable
regex(/glycin[._-]v?(\d+(?:\.\d+)+)\.t/i)
end

depends_on "gettext" => :build # for msgfmt
depends_on "gobject-introspection" => :build
depends_on "gperf" => :build
depends_on "meson" => :build
depends_on "ninja" => :build
depends_on "pkg-config" => [:build, :test]
depends_on "rust" => :build
depends_on "vala" => :build # for vapigen
depends_on "cairo"
depends_on "fontconfig"
depends_on "glib"
depends_on "gtk4"
depends_on "jpeg-xl"
depends_on "libheif"
depends_on "librsvg"
depends_on "libseccomp"
depends_on :linux
p-linnane marked this conversation as resolved.
Show resolved Hide resolved
depends_on "little-cms2"

def install
system "meson", "setup", "build", *std_meson_args
system "meson", "compile", "-C", "build", "--verbose"
system "meson", "install", "-C", "build"
end

test do

Check failure on line 41 in Formula/g/glycin.rb

View workflow job for this annotation

GitHub Actions / Linux

`brew test --verbose glycin` failed on Linux!

/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/test.rb:52:in `<main>'
(testpath/"glycin-test.c").write <<~C
#include "glycin-1/glycin.h"
int main() {
GlyLoader *loader = gly_loader_new("#{test_fixtures("test.png")}");
return loader == 0;
}
C
ENV.append_to_cflags shell_output("pkg-config --cflags glycin-1 gtk4 cairo").strip
ENV.append "LDFLAGS", shell_output("pkg-config --libs-only-L glycin-1").strip
ENV.append "LDLIBS", shell_output("pkg-config --libs-only-l glycin-1").strip
system "make", "glycin-test"
system "./glycin-test"
end
end
1 change: 1 addition & 0 deletions audit_exceptions/gnome_devel_allowlist.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"glycin": "1.1",
"gtk-vnc": "1.3",
"libadwaita": "1.5",
"libart": "2.3",
Expand Down
Loading