blob: 1c07bce7854db5de974168770f61f117e1d4e092 (
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
|
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
COMMIT=16ffeba5ef96c4c8e0cd39860b5402e25e304601
NEED_EMACS=25.1
inherit elisp
DESCRIPTION="In-buffer completion front-end"
HOMEPAGE="https://company-mode.github.io/"
SRC_URI="https://github.com/${PN}/${PN}/archive/${COMMIT}.tar.gz
-> ${P}.tar.gz"
S="${WORKDIR}"/${PN}-${COMMIT}
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="amd64 x86 ~x64-macos"
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
}
|