mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-07-22 15:09:04 +02:00
38 lines
823 B
Bash
38 lines
823 B
Bash
# Copyright 2022-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit elisp edo
|
|
|
|
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 ~loong ppc ~ppc64 ~riscv sparc x86"
|
|
fi
|
|
|
|
LICENSE="GPL-3+"
|
|
SLOT="0"
|
|
|
|
DOCS=( docs/{running,writing}-tests.md )
|
|
SITEFILE="50${PN}-gentoo.el"
|
|
|
|
src_test() {
|
|
edo ${EMACS} ${EMACSFLAGS} -L . -l buttercup -f buttercup-run-discover
|
|
}
|
|
|
|
src_install() {
|
|
elisp_src_install
|
|
|
|
exeinto /usr/bin
|
|
doexe "bin/${PN}"
|
|
}
|