Bug 258028

Summary: devel/libgdata does not build WITHOUT_GIR
Product: Ports & Packages Reporter: Mikhail T. <freebsd-2024>
Component: Individual Port(s)Assignee: Koop Mast <kwm>
Status: New ---    
Severity: Affects Only Me Flags: bugzilla: maintainer-feedback? (kwm)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Possible patch none

Description Mikhail T. 2021-08-24 17:23:41 UTC
I have WITHOUT_GIR defined (as "true") in my /etc/make.conf. All Gnome-ports seem to build fine -- whether they honor the flag or not -- except libgdata:

...
Couldn't find include 'Json-1.0.gir' (search path: '['/opt/share/gir-1.0', '/opt/share', '/opt/share/gir-1.0', '/usr/local/share/gir-1.0', '/usr/share/gir-1.0', '/opt/share/gir-1.0', '/usr/share/gir-1.0']')
FAILED: gdata/GData-0.0.gir
...

It looks like the upstream's meson-project supports the "introspection" option, which can be set to false. The port should do that, when WITHOUT_GIR is defined.
Comment 1 Mikhail T. 2021-08-24 17:47:17 UTC
Created attachment 227408 [details]
Possible patch

This gives an idea, how the problem -- with both GIR and VAPI being disabled -- may be addressed.

Only tested in the negative case, however (with WITHOUT_GIR and WITHOUT_VAPI declared in /etc/make.conf).