blob: de99abd6fbb36ed82d30b695bffa4a99afacf7fd (
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
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/PyMca/PyMca-4.4.1_p1.ebuild,v 1.3 2010/12/26 17:40:29 jlec Exp $
EAPI=3
PYTHON_DEPEND="2"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="3.*"
inherit distutils eutils
MY_PV="${PV/_}"
DESCRIPTION="X-ray Fluorescence Toolkit"
HOMEPAGE="http://pymca.sourceforge.net/"
SRC_URI="mirror://sourceforge/project/pymca/pymca/${PN}${PV/_p1}/pymca${MY_PV}-src.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="X hdf5 matplotlib"
DEPEND="
dev-python/numpy
dev-python/sip
virtual/opengl
dev-python/pyopengl
X? (
dev-python/PyQt4
dev-python/pyqwt
)
hdf5? ( dev-python/h5py )
matplotlib? ( dev-python/matplotlib )"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${PN}${MY_PV}"
src_prepare() {
epatch \
"${FILESDIR}"/${PV}-gentoo.patch \
"${FILESDIR}"/${PV}-impl-dec.patch
export SPECFILE_USE_GNU_SOURCE=1
distutils_src_prepare
}
|