blob: 1c26d976ef68e03d306d9b48281357ad36e8d34d (
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
|
# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
MY_PV=$(ver_rs 1-3 '_')
MY_PN=FeynCalc
DESCRIPTION="FeynCalc is a Mathematica package for computing Feynman diagrams."
HOMEPAGE="https://feyncalc.github.io/"
SLOT="0"
SRC_URI="https://github.com/FeynCalc/feyncalc/archive/hotfix-stable.tar.gz -> ${MY_PN}-${PV}.tar.gz"
S="${WORKDIR}/feyncalc-hotfix-stable"
LICENSE="GPL-3+"
IUSE="+FCtraditionalFormOutput"
REQUIRED_USE=""
PROPERTIES+=" live"
RDEPEND="
sci-mathematics/mathematica
"
DEPEND="${RDEPEND}"
src_configure() {
mv "${MY_PN}/DocOutput" "${MY_PN}/Documentation" || die
if use FCtraditionalFormOutput; then
echo '$FCTraditionalFormOutput=True;' > "${MY_PN}/FCConfig.m" || die
fi
}
src_install() {
MMADIR=/usr/share/Mathematica/Applications
dodir "${MMADIR}/${MY_PN}"
insinto "${MMADIR}/"
doins -r "${S}/${MY_PN}"
# copy permissions
for f in $(find "${MY_PN}/*" ! -type l); do
fperms --reference="${S}/$f" "${MMADIR}/$f"
done
# documentation are notebook(.nb) files
dodoc -r ${MY_PN}/Documentation/English/*
docompress -x /usr/share/doc/${PF}/
}
|