diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-03-24 06:46:57 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-03-24 06:46:57 +0000 |
commit | e8932755452c72a02ecae0b3f37395d1f607bbef (patch) | |
tree | 176877e3d181c45c4af1f0fc785749f36112a840 /app-emacs/flycheck/flycheck-32_p20230305-r1.ebuild | |
parent | dd52d0e37fe2f9a207f98abaf21108a6af8d5d3b (diff) |
gentoo auto-resync : 24:03:2023 - 06:46:57
Diffstat (limited to 'app-emacs/flycheck/flycheck-32_p20230305-r1.ebuild')
-rw-r--r-- | app-emacs/flycheck/flycheck-32_p20230305-r1.ebuild | 56 |
1 files changed, 56 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..48c9974331ef --- /dev/null +++ b/app-emacs/flycheck/flycheck-32_p20230305-r1.ebuild @@ -0,0 +1,56 @@ +# Copyright 2021-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +NEED_EMACS="24.3" + +inherit edo elisp + +COMMIT="5f2ef177cb21ae8b73714575802beef04abd0f5e" +DESCRIPTION="Modern on-the-fly syntax checking extension for GNU Emacs" +HOMEPAGE="https://www.flycheck.org/" +SRC_URI="https://github.com/flycheck/flycheck/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${PN}-${COMMIT}" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64" +IUSE="test" +# Tests fail for now, need more investigation +RESTRICT="!test? ( test ) test" + +RDEPEND=" + >=app-emacs/dash-2.12.1 + >=app-emacs/pkg-info-0.4 +" +BDEPEND=" + test? ( + app-emacs/buttercup + app-emacs/shut-up + ) +" + +SITEFILE="50${PN}-gentoo-r1.el" +DOCS=( README.md ) + +src_compile() { + elisp_src_compile + elisp-make-autoload-file +} + +src_test() { + # Flycheck will skip test cases which require a "checker" or emacs package that is not installed. + edo ${EMACS} \ + ${EMACSFLAGS} \ + -L . \ + --load "${S}"/test/flycheck-test.el \ + --load "${S}"/test/run.el \ + -f 'flycheck-run-tests-main' +} + +src_install() { + # Remove unneeded test related files. + rm flycheck-buttercup.el* flycheck-ert.el* || die + elisp_src_install +} |