# Copyright 2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 NEED_EMACS="24.3" inherit elisp DESCRIPTION="Behaviour-driven Elisp testing" HOMEPAGE="https://github.com/jorgenschaefer/emacs-buttercup" SRC_URI="https://github.com/jorgenschaefer/emacs-buttercup/archive/v${PV}.tar.gz -> ${P}.tar.gz" S="${WORKDIR}"/emacs-buttercup-${PV} LICENSE="GPL-3+" SLOT="0" KEYWORDS="~amd64" # https://github.com/jorgenschaefer/emacs-buttercup/pull/210 PATCHES=( "${FILESDIR}"/${PN}-1.24-properties-equal.patch ) DOCS=( docs/{running,writing}-tests.md ) SITEFILE="50${PN}-gentoo.el" src_compile() { elisp_src_compile elisp-make-autoload-file } src_test() { ${EMACS} ${EMACSFLAGS} -L . -l buttercup \ -f buttercup-run-discover || die "tests failed" } src_install() { elisp_src_install dobin bin/${PN} }