As of now, dev-lua/lgi depends on x11-libs/gtk+[introspection]. This results, for example, in x11-wm/awesome-3.5 pulling in GTK3, which is kind of weird, because I've managed to run it after # USE="introspection" emerge --oneshot --nodeps lgi pango awesome (USE="-introspection" is set globally) I'd suggest the following: * dev-lua/lgi depends on dev-libs/gobject-introspection (it seems to be enough, according to README); * packages, depending on lgi, should require specific package (like pango and possibly cairo for x11-wm/awesome) to be built with USE="introspection".
I've taken liberty to CC people who discussed lgi ebuild request (https://bugs.gentoo.org/show_bug.cgi?id=422023) Sorry if that disturbed you, but I would like to hear your suggestions.
According to https://awesome.naquadah.org/wiki/Awesome_3.4_to_3.5#New_runtime-only_dependency, here's how to test whether everything required is present: $ lua -e 'lgi = require("lgi") print(lgi.cairo, lgi.Pango, lgi.PangoCairo)' table: 0xe74160 table: 0xf40830 table: 0xf168e0
Agree, it doesn't make sense to put whole GTK+ as a dependency - lgi doesn't need that.
CCing awesome maintainers @awesome guys: What do you think about changing '>=x11-libs/pango-1.19.3' dependency to '>=x11-libs/pango-1.19.3[introspection]'? Correct me, if i am wrong, but after that we can easily change lgi dependency to be more accurate then they are now.
I fixed the deps, enjoy.