summaryrefslogtreecommitdiff
blob: e03ba27d45764ba6e4c37fe7f143fa390f91484a (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
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

COMMIT=382db93374380e5db56f02934ee32bbe39159019

inherit elisp

DESCRIPTION="Collection of extensions for Proof General's Coq mode"
HOMEPAGE="https://github.com/cpitclaudel/company-coq/"
SRC_URI="https://github.com/cpitclaudel/${PN}/archive/${COMMIT}.tar.gz
		-> ${P}.tar.gz"
S="${WORKDIR}"/${PN}-${COMMIT}

LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64 ~x86"

BDEPEND="
	app-emacs/company-math
	app-emacs/company-mode
	app-emacs/dash
	app-emacs/yasnippet
"
RDEPEND="
	${BDEPEND}
	app-emacs/proofgeneral
"

PATCHES=( "${FILESDIR}"/${PN}-refman-path.patch )
SITEFILE="50${PN}-gentoo.el"

src_prepare(){
	default

	sed -i "s|@SITEETC@|${EPREFIX}${SITEETC}|" ./company-coq.el || die
}

src_install() {
	elisp_src_install
	einstalldocs

	insinto "${SITEETC}"
	doins -r ./refman
}