blob: af4d6aa0610f8ab5824e195609a86f26b64b4cec (
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
|
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=9
NEED_EMACS="28.1"
inherit elisp optfeature
DESCRIPTION="A project interaction library for Emacs"
HOMEPAGE="https://github.com/bbatsov/projectile/"
if [[ "${PV}" == *9999* ]] ; then
inherit git-r3
EGIT_REPO_URI="https://github.com/bbatsov/${PN}"
else
SRC_URI="https://github.com/bbatsov/${PN}/archive/v${PV}.tar.gz
-> ${P}.gh.tar.gz"
KEYWORDS="amd64 ~arm ~arm64 ~x86"
fi
LICENSE="GPL-3+"
SLOT="0"
DOCS=( README.md )
SITEFILE="50projectile-gentoo.el"
RDEPEND="
>=app-emacs/compat-30.0
"
BDEPEND="
${RDEPEND}
"
ELISP_REMOVE="
test/projectile-async-test.el
test/projectile-consult-test.el
"
elisp-enable-tests buttercup ./test/
src_test() {
mkdir -p "${HOME}/.emacs.d" || die # For "projectile--directory-p" test.
elisp-test
}
pkg_postinst() {
# Descriptions for this packages' purpose were taken from Projectile's
# home page https://docs.projectile.mx/projectile/usage.html
optfeature_header "Install the following packages for improved performance:"
optfeature "super-fast alternative to find" sys-apps/fd
optfeature "powerful alternative to grep" sys-apps/ripgrep
}
|