maintainer-feedback requested: [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
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-desktop (Team)
<desktop@FreeBSD.org> for maintainer-feedback:
Bug 276117: devel/gobject-introspection: make graphics/cairo dependency
optional
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276117



--- Description ---
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?re
f_type=heads#L201