blob: 3f8c2b9168202b79ce90b5560d5751c287c8054a (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=9
NEED_EMACS="28.1"
inherit elisp
DESCRIPTION="Modern on-the-fly syntax checking extension for GNU Emacs"
HOMEPAGE="https://www.flycheck.org/
https://github.com/flycheck/flycheck/"
if [[ "${PV}" == *9999* ]] ; then
inherit git-r3
EGIT_REPO_URI="https://github.com/${PN}/${PN}"
else
SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz
-> ${P}.gh.tar.gz"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~sparc ~x86 ~x64-macos"
fi
LICENSE="GPL-3+"
SLOT="0"
IUSE="test"
RESTRICT="!test? ( test )"
BDEPEND="
test? (
app-emacs/buttercup
app-emacs/shut-up
)
"
ELISP_REMOVE="
test/specs/test-checker-api.el
test/specs/test-checker-extensions.el
test/specs/test-configuration.el
test/specs/test-customization.el
test/specs/test-documentation.el
test/specs/test-error-display.el
test/specs/test-gpg.el
test/specs/test-melpa-package.el
test/specs/test-related-locations.el
test/specs/test-util.el
"
SITEFILE="50${PN}-gentoo-r1.el"
DOCS=( CHANGELOG.md README.md )
elisp-enable-tests buttercup ./test/specs/ -l ./flycheck.el -L . -L ./test/specs/
src_prepare() {
rm -f -r ./test/specs/languages || die
elisp_src_prepare
}
src_compile() {
elisp-compile "${PN}.el"
elisp-make-autoload-file
}
src_install() {
elisp-install "${PN}" "${PN}.el"{,c} "${PN}-autoloads.el"
elisp-site-file-install "${FILESDIR}/${SITEFILE}"
einstalldocs
}
|