elog "$(cat "${FILESDIR}/pkg-message")" FILESDIR can't be used in pkg_*(). It breaks on binary packages, and Portage will start rejecting it for source builds soonish too. Please take a look at how readme-gentoo* eclass is handling it.
Created attachment 468350 [details, diff] Fix, using readme.gentoo-r1.eclass I suggest using readme.gentoo-r1.eclass, see attached patch.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=169215c01481634acc6d4d8757ca46b5386851ee commit 169215c01481634acc6d4d8757ca46b5386851ee Author: Mikle Kolyada <zlogene@gentoo.org> AuthorDate: 2018-04-21 14:35:58 +0000 Commit: Mikle Kolyada <zlogene@gentoo.org> CommitDate: 2018-04-21 14:39:02 +0000 sys-freebsd/virtio-kmod: remove last rited package Closes: https://bugs.gentoo.org/586344 Closes: https://bugs.gentoo.org/612848 Closes: https://bugs.gentoo.org/494002 sys-freebsd/virtio-kmod/Manifest | 1 - sys-freebsd/virtio-kmod/files/pkg-message | 22 ------- sys-freebsd/virtio-kmod/metadata.xml | 4 -- .../virtio-kmod/virtio-kmod-0.228301-r1.ebuild | 70 ---------------------- 4 files changed, 97 deletions(-)