blob: 3e060a91da7ccd1dddc0fe35203739c12588dc92 (
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
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils python versionator
MY_PV=$(replace_all_version_separators -)
DESCRIPTION="Data visualization and analysis; data mining through visual programming or Python scripting"
HOMEPAGE="http://www.ailab.si/orange/"
SRC_URI="http://www.ailab.si/orange/download/orange-source-snapshot-${MY_PV}.zip"
LICENSE=""
SLOT="0"
KEYWORDS="~amd64"
IUSE=""
RDEPEND="
dev-python/numarray
dev-python/numpy
dev-python/numeric
dev-python/matplotlib
dev-python/imaging
>=dev-python/pyqwt-5.1"
DEPEND="${RDEPEND}"
src_compile() {
pushd source 2>/dev/null || die
sed -i \
-e "/^COMPILER/s:g++:$(tc-getCXX):" \
-e "/^CCOMPILER/s:gcc:$(tc-getCC):" \
-e "/^LINKER/s:gcc:$(tc-getCC):" \
makefile.defs \
|| die
emake \
CXXFLAGS="${CXXFLAGS}" \
|| die
popd 2>/dev/null || die
}
src_install() {
python_version
ORANGE_DIR=/usr/$(get_libdir)/python${PYVER}/site-packages/orange
dodir ${ORANGE_DIR} || die
cp -r *.py *.so *.a OrangeCanvas OrangeWidgets "${D}"${ORANGE_DIR}/ || die
dodir /usr/share/doc/${PF}
cp -r doc/* "${D}"usr/share/doc/${PF}/ || die
make_wrapper \
orange-canvas \
"python ${ORANGE_DIR}/OrangeCanvas/orngCanvas.pyw" \
|| die
# Make the orange-canvas wrapper run
echo ${ORANGE_DIR} > "${D}"${ORANGE_DIR}/orange.pth || die
}
|