commit:     3937855cf1fad9045782b3e8d3f1fcf8ec948508
Author:     Matt Smith <matt <AT> offtopica <DOT> uk>
AuthorDate: Sun Jun 20 16:54:38 2021 +0000
Commit:     Matt Smith <matt <AT> offtopica <DOT> uk>
CommitDate: Sun Jun 20 16:54:38 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=3937855c

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 <AT> offtopica.uk>

 app-emacs/prop-menu/prop-menu-0.1.2.ebuild | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/app-emacs/prop-menu/prop-menu-0.1.2.ebuild 
b/app-emacs/prop-menu/prop-menu-0.1.2.ebuild
index 005e99afa..d1e7ebca2 100644
--- a/app-emacs/prop-menu/prop-menu-0.1.2.ebuild
+++ b/app-emacs/prop-menu/prop-menu-0.1.2.ebuild
@@ -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}
+}

Reply via email to