blob: 6e71ffa05784a990c656ca79a47e6aec759d1938 (
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
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
PYTHON_COMPAT=( python2_7 )
inherit eutils python-single-r1
DESCRIPTION="Qt front-end for Computer Algebra System mainly maxima"
HOMEPAGE="http://kayali.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
DEPEND="${PYTHON_DEPS}"
RDEPEND="${DEPEND}
sci-mathematics/maxima
>=dev-python/PyQt4-4.1[${PYTHON_USEDEP}]
media-gfx/imagemagick
>=dev-python/reportlab-2.0[${PYTHON_USEDEP}]
>=sci-visualization/gnuplot-4.0"
# is a GUI, testing done simply by launching application
# and follow one of the demo
RESTRICT="test"
S=${WORKDIR}/${PN}
pkg_setup() {
python-single-r1_pkg_setup
}
src_compile() {
einfo "Nothing to compile"
}
src_install() {
local INSTALL_DIR="${EPREFIX}"/usr/share/${PN}
cat >> "${T}"/kayali <<- EOF
#!${EPREFIX}/bin/sh
cd ${INSTALL_DIR}
exec ${EPYTHON} -OOt kayali.py $@
EOF
dobin "${T}"/kayali
insinto ${INSTALL_DIR}
doins *.py *.txt *.in* maximab.bat maxima.g
doins -r engines icons pdf qt4gui *uic
python_optimize ${INSTALL_DIR}
make_desktop_entry kayali kayali kayali.svg
use doc && dohtml html/*
dodoc README
}
|