diff options
author | 2023-03-23 22:44:58 -0400 | |
---|---|---|
committer | 2023-03-24 05:48:15 +0000 | |
commit | d171a0e48bd2caf5737aeeed4ac32a6e434e20ce (patch) | |
tree | 0b84f1c42005a186d0ea3a99ac6dfdca4e971444 /app-emacs/flycheck | |
parent | app-misc/ca-certificates: add 20230311.3.89 (diff) | |
download | gentoo-d171a0e48bd2caf5737aeeed4ac32a6e434e20ce.tar.gz gentoo-d171a0e48bd2caf5737aeeed4ac32a6e434e20ce.tar.bz2 gentoo-d171a0e48bd2caf5737aeeed4ac32a6e434e20ce.zip |
app-emacs/flycheck: enabled tests
Signed-off-by: John Turner <jturner.usa@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/30325
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-emacs/flycheck')
-rw-r--r-- | app-emacs/flycheck/flycheck-32_p20230305-r1.ebuild | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/app-emacs/flycheck/flycheck-32_p20230305-r1.ebuild b/app-emacs/flycheck/flycheck-32_p20230305-r1.ebuild new file mode 100644 index 000000000000..bf2097a746a0 --- /dev/null +++ b/app-emacs/flycheck/flycheck-32_p20230305-r1.ebuild @@ -0,0 +1,49 @@ +# Copyright 2021-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +NEED_EMACS="24.3" + +inherit elisp + +DESCRIPTION="Modern on-the-fly syntax checking extension for GNU Emacs" +HOMEPAGE="https://www.flycheck.org/" +COMMIT="5f2ef177cb21ae8b73714575802beef04abd0f5e" +SRC_URI="https://github.com/flycheck/flycheck/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${PN}-${COMMIT}" + +IUSE="test" +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=">=app-emacs/dash-2.12.1 + >=app-emacs/pkg-info-0.4 + test? ( app-emacs/shut-up + app-emacs/buttercup )" + +SITEFILE="50${PN}-gentoo-r1.el" +DOCS=( README.md ) +RESTRICT="!test? ( test )" + +# Flycheck will skip test cases which require a "checker" or emacs package that is not installed. +src_test() { + ${EMACS} \ + ${EMACSFLAGS} \ + -L . \ + --load "${S}"/test/flycheck-test.el \ + --load "${S}"/test/run.el \ + -f 'flycheck-run-tests-main' +} + +src_compile() { + elisp_src_compile + elisp-make-autoload-file +} + +# Remove unneeded test related files. +src_install() { + rm flycheck-buttercup.el* flycheck-ert.el* || die + elisp_src_install +} |