1 |
commit: 3937855cf1fad9045782b3e8d3f1fcf8ec948508 |
2 |
Author: Matt Smith <matt <AT> offtopica <DOT> uk> |
3 |
AuthorDate: Sun Jun 20 16:54:38 2021 +0000 |
4 |
Commit: Matt Smith <matt <AT> offtopica <DOT> uk> |
5 |
CommitDate: Sun Jun 20 16:54:38 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=3937855c |
7 |
|
8 |
app-emacs/prop-menu: Fix tests |
9 |
|
10 |
Closes: https://bugs.gentoo.org/796968 |
11 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
12 |
Signed-off-by: Matt Smith <matt <AT> offtopica.uk> |
13 |
|
14 |
app-emacs/prop-menu/prop-menu-0.1.2.ebuild | 16 ++++++++++++++++ |
15 |
1 file changed, 16 insertions(+) |
16 |
|
17 |
diff --git a/app-emacs/prop-menu/prop-menu-0.1.2.ebuild b/app-emacs/prop-menu/prop-menu-0.1.2.ebuild |
18 |
index 005e99afa..d1e7ebca2 100644 |
19 |
--- a/app-emacs/prop-menu/prop-menu-0.1.2.ebuild |
20 |
+++ b/app-emacs/prop-menu/prop-menu-0.1.2.ebuild |
21 |
@@ -16,3 +16,19 @@ KEYWORDS="~amd64" |
22 |
S="${WORKDIR}/prop-menu-el-${PV}" |
23 |
|
24 |
SITEFILE="50${PN}-gentoo.el" |
25 |
+ |
26 |
+src_prepare() { |
27 |
+ default |
28 |
+ rm Makefile || die |
29 |
+} |
30 |
+ |
31 |
+src_test() { |
32 |
+ ${EMACS} ${EMACSFLAGS} ${BYTECOMPFLAGS} \ |
33 |
+ -l ert -l prop-menu-tests.el \ |
34 |
+ -f ert-run-tests-batch-and-exit || die "tests failed" |
35 |
+} |
36 |
+ |
37 |
+src_install() { |
38 |
+ elisp-install ${PN} prop-menu.{el,elc} |
39 |
+ elisp-site-file-install "${FILESDIR}"/${SITEFILE} |
40 |
+} |