blob: 037e25bc3a5a90f0977c75b201ea9af8ac991d46 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# Copyright 2022-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit elisp
DESCRIPTION="Behaviour-driven Elisp testing"
HOMEPAGE="https://github.com/jorgenschaefer/emacs-buttercup"
if [[ "${PV}" == *9999* ]] ; then
inherit git-r3
EGIT_REPO_URI="https://github.com/jorgenschaefer/emacs-${PN}.git"
else
SRC_URI="https://github.com/jorgenschaefer/emacs-${PN}/archive/v${PV}.tar.gz
-> ${P}.tar.gz"
S="${WORKDIR}/emacs-${P}"
KEYWORDS="~alpha amd64 ~arm arm64 ppc ~ppc64 ~riscv sparc x86"
fi
LICENSE="GPL-3+"
SLOT="0"
DOCS=( docs/{running,writing}-tests.md )
SITEFILE="50${PN}-gentoo.el"
src_test() {
${EMACS} ${EMACSFLAGS} -L . -l buttercup \
-f buttercup-run-discover || die "tests failed"
}
src_install() {
elisp_src_install
dobin "bin/${PN}"
}
|