Fix libhandy subproject support and restore
When preparing Epiphany 3.31.3 I noticed the libhandy subproject was installing into global directories:
Installing subprojects/libhandy/src/hdy-enums.h to /home/mcatanzaro/Projects/GNOME/install/_jhbuild/root-epiphany/home/mcatanzaro/Projects/GNOME/install/include/libhandy-0.0
Installing subprojects/libhandy/src/hdy-public-types.c to /home/mcatanzaro/Projects/GNOME/install/_jhbuild/root-epiphany/home/mcatanzaro/Projects/GNOME/install/subdir
Installing subprojects/libhandy/src/libhandy-0.0.so.0 to /home/mcatanzaro/Projects/GNOME/install/_jhbuild/root-epiphany/home/mcatanzaro/Projects/GNOME/install/lib
So this makes it impossible to install Epiphany alongside a system copy of libhandy. I've temporarily reverted all the commits using libhandy to make the release. We should fix up libhandy to ensure it installs into prefixed directories and restore. libdazzle has already figured out how to do this with its package_subdir
build option:
# Subproject
option('package_subdir', type: 'string',
description: 'Subdirectory to append to all installed files, for use as subproject'
)
I would look at how libdazzle uses package_subdir
throughout its meson.build files and modify libhandy accordingly, then un-revert the commits in Epiphany and update Epiphany to newer libhandy, of course testing to make sure all the libhandy stuff gets installed under Epiphany directories. Pro tip: uninstall libdazzle pkg-config to ensure Epiphany builds libdazzle as a meson subproject and compare.