[Bug 276117] devel/gobject-introspection: make graphics/cairo dependency optional

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 04 Jan 2024 17:34:29 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276117

            Bug ID: 276117
           Summary: devel/gobject-introspection: make graphics/cairo
                    dependency optional
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: desktop@FreeBSD.org
          Reporter: me@svmhdvn.name
                CC: desktop@FreeBSD.org
          Assignee: desktop@FreeBSD.org
                CC:
             Flags: maintainer-feedback?(desktop@FreeBSD.org)
             Flags: maintainer-feedback?(desktop@FreeBSD.org)
                CC: desktop@FreeBSD.org

From upstream's gobject-introspection project, it's clear that cairo support is
only required to enable some tests[0]. For people who just build this package
as part of other pulled-in dependencies, or build minimal package repositories
without graphics or X11 support, this unnecessary dependency on cairo brings in
a ton of X11 dependencies as well.

Can we make graphics/cairo an optional dependency through an OPTIONS define?
One that IMPLIES TESTS support as well? If help is needed on this, I can submit
a patch.

[0]
https://gitlab.gnome.org/GNOME/gobject-introspection/-/blob/main/meson.build?ref_type=heads#L201

-- 
You are receiving this mail because:
You are the assignee for the bug.