summaryrefslogtreecommitdiff
path: root/app-emacs/lsp-ui/lsp-ui-9999.ebuild
blob: b5063bcf5c99a3578a16f8fcb0b75e6d13a1d706 (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
# Copyright 2021-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

NEED_EMACS="26.1"

inherit elisp

if [[ ${PV} = "9999" ]]; then
	inherit git-r3
	EGIT_REPO_URI="https://github.com/emacs-lsp/lsp-ui"
	EGIT_BRANCH="master"
	EGIT_CHECKOUT_DIR="${WORKDIR}/${P}"
	S="${EGIT_CHECKOUT_DIR}"
else
	SRC_URI="https://github.com/emacs-lsp/lsp-ui/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
	KEYWORDS="~amd64"
fi

DESCRIPTION="lsp-mode UI integrations"
HOMEPAGE="https://emacs-lsp.github.io/lsp-ui/"

LICENSE="GPL-3+"
SLOT="0"

DEPEND=">=app-emacs/lsp-mode-6
	>=app-emacs/dash-2.18.0
	>=app-emacs/markdown-mode-2.3"
RDEPEND="${DEPEND}"

SITEFILE="50lsp-ui-gentoo.el"
RESTRICT="test" # test requires ert-runner which is not packaged

src_install() {
	elisp-make-autoload-file "${S}"/${PN}-autoload.el "${S}"/
	elisp_src_install
}