blob: cebbef884527a17b077e937af297be07cac77252 (
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
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/pyqwt/pyqwt-5.2.0.ebuild,v 1.6 2010/06/02 15:47:32 arfrever Exp $
EAPI="2"
PYTHON_DEPEND="2"
SUPPORT_PYTHON_ABIS="1"
PYTHON_EXPORT_PHASE_FUNCTIONS="1"
inherit flag-o-matic python
MY_P="PyQwt-${PV}"
DESCRIPTION="Python bindings for the Qwt library"
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
HOMEPAGE="http://pyqwt.sourceforge.net/"
SLOT="5"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~ia64 ~x86"
IUSE="doc examples svg"
RDEPEND=">=x11-libs/qwt-5.1[svg?]
>=dev-python/PyQt4-4.6.1
dev-python/numpy"
DEPEND="${DEPEND}
dev-python/sip"
RESTRICT_PYTHON_ABIS="3.*"
S="${WORKDIR}/${MY_P}/configure"
pkg_setup() {
append-flags -fPIC
}
src_configure() {
configuration() {
# '-j' option can be buggy.
"$(PYTHON)" configure.py \
--disable-numarray \
--disable-numeric \
-I/usr/include/qwt5 \
-lqwt || return 1
# Avoid stripping of the libraries.
sed -i -e "/strip/d" {iqt5qt4,qwt5qt4}/Makefile || die "sed failed"
}
python_execute_function -s configuration
}
src_install() {
python_src_install
cd ..
dodoc ANNOUNCEMENT-${PV} README
if use doc; then
insinto /usr/share/doc/${PF}
doins -r sphinx/build/* || die
fi
if use examples; then
insinto /usr/share/doc/${PF}/examples
doins qt4examples/* || die
fi
}
pkg_postinst() {
python_mod_optimize PyQt4
}
pkg_postrm() {
python_mod_cleanup PyQt4
}
|