blob: aa608c9b7eaa5556e3c209173b1a8a9d80c407f5 (
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
|
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit elisp
DESCRIPTION="sci-mathematics/pari emacs mode"
HOMEPAGE="http://iml.univ-mrs.fr/~ramare/ServeurPerso/GP-PARI/"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
SRC_URI="http://iml.univ-mrs.fr/~ramare/ServeurPerso/GP-PARI/latest-pari-distrib/${P}.tar.gz"
RDEPEND="sci-mathematics/pari"
DEPEND="${RDEPEND}"
S="${WORKDIR}"
SITEFILE="64${PN}-gentoo.el"
DOCS="README CHANGES"
src_prepare() {
eapply "${FILESDIR}"/${P}-makefile.patch
eapply_user
if [ -f /usr/share/doc/pari-*/pari.cfg ]; then
cp /usr/share/doc/pari-*/pari.cfg .
elif [ -f /usr/share/doc/pari-*/pari.cfg.bz2 ]; then
cp /usr/share/doc/pari-*/pari.cfg.bz2 .
bunzip2 pari.cfg.bz2
else die "pari.cfg not found"
fi
}
src_compile() {
make pari-conf.el
make elc
}
|