blob: 43be98f85c79da6704ac6d48b05e4fea5d17a88c (
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-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit optfeature elisp
DESCRIPTION="Run an inferior Julia REPL in a terminal inside Emacs"
HOMEPAGE="https://github.com/tpapp/julia-repl/"
if [[ "${PV}" == *9999* ]] ; then
inherit git-r3
EGIT_REPO_URI="https://github.com/tpapp/${PN}"
else
SRC_URI="https://github.com/tpapp/${PN}/archive/refs/tags/${PV}.tar.gz
-> ${P}.gh.tar.gz"
KEYWORDS="~amd64 ~x86"
fi
LICENSE="MIT"
SLOT="0"
BDEPEND="
app-emacs/s
"
RDEPEND="
${BDEPEND}
app-emacs/julia-mode
"
PATCHES=( "${FILESDIR}/${PN}-force-compile.patch" )
DOCS=( CHANGELOG.md README.md )
SITEFILE="50${PN}-gentoo.el"
src_test() {
${EMACS} ${EMACSFLAGS} ${BYTECOMPFLAGS} \
-l ert -l ./${PN}-tests.el \
-f ert-run-tests-batch-and-exit || die "tests failed"
}
src_install() {
rm -f ./${PN}-tests.el* || die
elisp_src_install
}
pkg_postinst() {
elisp_pkg_postinst
optfeature "running Julia inside VTerm" app-emacs/vterm
}
|