Many thanks again.
OK I went into the ebuild directory for libinput.
I then edited the ebuild file and added the code you gave at the end of the
file:
src_install() {
meson_src_install
if use doc ; then
docinto html
dodoc -r "${BUILD_DIR}"/Documentation/.
fi
}
pkg_postinst() {
udevadm hwdb --update --root="${ROOT%/}"
}
--- a/dev-libs/libinput/libinput-1.13.2.ebuild
+++ b/dev-libs/libinput/libinput-1.13.2.ebuild
@@ -60,7 +60,7 @@ src_configure() {
$(meson_use doc documentation)
$(meson_use input_devices_wacom libwacom)
-Dtests=false # tests are restricted
- -Dudev-dir="$(get_udevdir)"
+ -Dudev-dir="${EPREFIX}$(get_udevdir)"
)
meson_src_configure
}
I then ran
ebuild libinput-1.13.2.ebuild digest
and got an error message:
mikef@fart:~/gentoo/usr/portage/dev-libs/libinput$ ebuild
libinput-1.13.2.ebuild digest
* ERROR: dev-libs/libinput-1.13.2::gentoo failed (depend phase):
* External commands disallowed while sourcing ebuild: ---
a/dev-libs/libinput/libinput-1.13.2.ebuild
*
* Call stack:
* ebuild.sh, line 623: Called source
'/home/mikef/gentoo/usr/portage/dev-libs/libinput/libinput-1.13.2.ebuild'
* libinput-1.13.2.ebuild, line 80: Called command_not_found_handle
'---' 'a/dev-libs/libinput/libinput-1.13.2.ebuild'
* ebuild.sh, line 88: Called die
* The specific snippet of code:
* die "External commands disallowed while sourcing ebuild:
${*}"
*
* If you need support, post the output of `emerge --info
'=dev-libs/libinput-1.13.2::gentoo'`,
* the complete build log and the output of `emerge -pqv
'=dev-libs/libinput-1.13.2::gentoo'`.
* The ebuild environment file is located at
'/home/mikef/gentoo/var/tmp/portage/dev-libs/libinput-1.13.2/temp/environment'.
* Working directory:
'/home/mikef/gentoo/var/tmp/portage/dev-libs/libinput-1.13.2/homedir'
* S:
'/home/mikef/gentoo/var/tmp/portage/dev-libs/libinput-1.13.2/work/libinput-1.13.2'
mikef@fart:~/gentoo/usr/portage/dev-libs/libinput$
Was I meant to add it to the existing code as I just did?
Comments appreciated.
Regards
MF