Reason, unknown. Should work with -X for Wayland builds
Reading ebuild currently in tree, this does not appear to be the case. Older ebuilds like 2.4 ebuilds had USE=+X because it some point in time, there was no wayland support so when upstream released it, we had to default X to on to avoid people breaking their config by mistake. Anyway, if you still think X is forced on, please expand your description of the problem.
$ grep -B4 'webkit-gtk' profiles/base/package.use.force # Gilles Dartiguelongue <eva@gentoo.org> (25 May 2015) # webkit fails to build with USE=wayland, bug #549228 # https://bugs.webkit.org/show_bug.cgi?id=142879 # https://bugs.webkit.org/show_bug.cgi?id=136831 >=net-libs/webkit-gtk-2.8 X
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=66b2cb76931c2bd4c084dd1f3adfb4319729abff commit 66b2cb76931c2bd4c084dd1f3adfb4319729abff Author: Mart Raudsepp <leio@gentoo.org> AuthorDate: 2018-01-25 14:05:53 +0000 Commit: Mart Raudsepp <leio@gentoo.org> CommitDate: 2018-01-25 14:38:02 +0000 profiles/base/p.use.force: Remove USE=X forcing from net-libs/webkit-gtk It should work fine with pure wayland these days, should someone want that. Closes: https://bugs.gentoo.org/643724 profiles/base/package.use.force | 6 ------ 1 file changed, 6 deletions(-) Additionally, it has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e839f061037f360a5a35e2ef7d307adc0678e185 commit e839f061037f360a5a35e2ef7d307adc0678e185 Author: Mart Raudsepp <leio@gentoo.org> AuthorDate: 2018-01-25 14:03:38 +0000 Commit: Mart Raudsepp <leio@gentoo.org> CommitDate: 2018-01-25 14:37:52 +0000 net-libs/webkit-gtk: default enable USE=X in preparation of use.force removal Bug: https://bugs.gentoo.org/643724 Package-Manager: Portage-2.3.19, Repoman-2.3.6 net-libs/webkit-gtk/webkit-gtk-2.18.5.ebuild | 2 +- net-libs/webkit-gtk/webkit-gtk-2.18.6.ebuild | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)}