blob: 50ee43e4f243cd037ad75a59e81cb222d00941b0 (
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
|
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit elisp
DESCRIPTION="In-buffer completion front-end"
HOMEPAGE="https://company-mode.github.io/
https://github.com/company-mode/company-mode/"
if [[ "${PV}" == *9999* ]] ; then
inherit git-r3
EGIT_REPO_URI="https://github.com/${PN}/${PN}.git"
else
SRC_URI="https://github.com/${PN}/${PN}/archive/refs/tags/${PV}.tar.gz
-> ${P}.tar.gz"
KEYWORDS="amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc x86 ~x64-macos"
fi
LICENSE="GPL-3+"
SLOT="0"
PATCHES=( "${FILESDIR}/${PN}-company-icons-root.patch" )
SITEFILE="50${PN}-gentoo.el"
DOCS=( CONTRIBUTING.md README.md NEWS.md )
src_prepare() {
elisp_src_prepare
sed "s|@SITEETC@|${SITEETC}/${PN}|" -i company.el || die
}
src_compile() {
elisp_src_compile
emake -C doc company.info
}
src_test() {
emake test-batch
}
src_install() {
elisp_src_install
insinto "${SITEETC}/${PN}"
doins -r icons
doinfo doc/company.info
}
|