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
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=fc5be254502ef92e9f1acc28c7040f9c795e7b43 commit fc5be254502ef92e9f1acc28c7040f9c795e7b43 Author: Gleb Popov <arrowd@FreeBSD.org> AuthorDate: 2024-01-08 18:24:15 +0000 Commit: Gleb Popov <arrowd@FreeBSD.org> CommitDate: 2024-01-08 18:24:15 +0000 devel/gobject-introspection: Move cairo dependency under TEST option. PR: 276117 Reported by: Siva Mahadevan <me@svmhdvn.name> devel/gobject-introspection/Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
Thank you for the suggestion!