blob: cc4e66167b04ddc343dfce1db4bb5a4e6f1d512a (
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
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/pyqwt/pyqwt-4.2-r1.ebuild,v 1.6 2008/10/27 10:50:09 hawking Exp $
NEED_PYTHON="2.3"
inherit distutils eutils python
MY_P="PyQwt-${PV}"
S="${WORKDIR}/${MY_P}"
DESCRIPTION="Python bindings for the Qwt library"
SRC_URI="mirror://sourceforge/pyqwt/${MY_P}.tar.gz"
HOMEPAGE="http://pyqwt.sourceforge.net/"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~ia64 ~x86"
IUSE="debug"
RDEPEND="~x11-libs/qwt-4.2.0
>=dev-python/PyQt-3.14
>=dev-python/numarray-1.1.1
>=dev-python/numeric-23.7"
DEPEND="${RDEPEND}
>=dev-python/sip-4.2"
src_compile() {
cd "${S}/sip"
sed -i s/"[[:space:]]*const QLabel \*titleLabel() const\;"// qwtplot.sip
sed -i s/"[[:space:]]*const QwtPlotCanvas \*canvas() const\;"// qwtplot.sip
cd "${S}/configure"
local myconf="-d /usr/$(get_libdir)/python${PYVER}/site-packages -l /usr/$(get_libdir) \
-i /usr/include/qwt -v /usr/share/sip -x /usr/share/sip"
use debug && myconf="${myconf} -u"
has distcc ${FEATURES} || myconf="${myconf} -c"
python_version
"${python}" configure.py ${myconf} || die "python configure.py failed"
emake || die "emake failed"
}
src_install() {
python_need_rebuild
sed -i s/2,4,9/2,5,9/ setup.py
python_version
"${python}" setup.py install --prefix=/usr --root="${D}" || die "install failed"
dodoc ANNOUNCEMENT-4.2.TXT AUTHORS COPYING* README THANKS
use doc && mv "${D}/usr/share/doc/${MY_P}"/* "${D}/usr/share/doc/${PF}"
rm -rf "${D}/usr/share/doc/${MY_P}"
}
|