You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
872 B
49 lines
872 B
# Copyright 1999-2023 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
COMMIT=16ffeba5ef96c4c8e0cd39860b5402e25e304601
|
|
|
|
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
|
|
}
|