app-emacs/prop-menu: Fix tests

Closes: https://bugs.gentoo.org/796968
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Matt Smith <matt@offtopica.uk>
This commit is contained in:
Matt Smith
2021-06-20 17:54:38 +01:00
parent 04f2daa7cb
commit 3937855cf1

View File

@@ -16,3 +16,19 @@ KEYWORDS="~amd64"
S="${WORKDIR}/prop-menu-el-${PV}"
SITEFILE="50${PN}-gentoo.el"
src_prepare() {
default
rm Makefile || die
}
src_test() {
${EMACS} ${EMACSFLAGS} ${BYTECOMPFLAGS} \
-l ert -l prop-menu-tests.el \
-f ert-run-tests-batch-and-exit || die "tests failed"
}
src_install() {
elisp-install ${PN} prop-menu.{el,elc}
elisp-site-file-install "${FILESDIR}"/${SITEFILE}
}