blob: 0e19badf174ee0aba802fdb9b4dfd0f938346674 (
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="5"
inherit eutils texlive-common
DESCRIPTION="Field-theory motivated computer algebra system"
HOMEPAGE="http://cadabra.phi-sci.com"
SRC_URI="http://cadabra.phi-sci.com/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc examples X test"
CDEPEND="
sci-libs/modglue
sci-mathematics/lie
dev-libs/gmp[cxx]
dev-libs/libpcre
X? (
x11-libs/gtk+:2
dev-cpp/gtkmm:2.4
dev-cpp/pangomm:1.4
app-text/dvipng )"
DEPEND="${CDEPEND}
doc? (
app-doc/doxygen
dev-texlive/texlive-latexextra
app-text/texlive-core
)
test? ( sys-process/time )"
RDEPEND="${CDEPEND}
virtual/latex-base
dev-texlive/texlive-latexrecommended"
src_prepare(){
# fixing the flag mess
epatch "${FILESDIR}/${P}-FLAGS.patch"
}
src_configure(){
econf $(use_enable X gui) \
--disable-runtime-dependency-check
}
src_compile() {
default
if use doc; then
cd "${S}/doc" || die
default
cd doxygen/latex || die
emake pdf
fi
}
src_install() {
# cadabra strip binaries unless you are on OS X.
# So faking it to avoid outright stripping.
emake DESTDIR="${D}" DEVDESTDIR="${D}" MACTEST=1 install
dodoc AUTHORS ChangeLog INSTALL
if use doc; then
cd "${S}/doc/doxygen" || die
dohtml html/*
dodoc latex/*.pdf
fi
if use examples; then
dodoc -r "${S}/examples/"
fi
rm -rf "${D}/usr/share/TeXmacs" || die
}
pkg_postinst() {
etexmf-update
elog "This version of the cadabra ebuild is still under development."
elog "Help us improve the ebuild in:"
elog "http://bugs.gentoo.org/show_bug.cgi?id= 194393"
}
pkg_postrm() {
etexmf-update
}
|