blob: 41b93196a88292e3029aaa02392ed30e461f490f (
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
|
# 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-5.0.1.ebuild,v 1.5 2008/02/23 15:44:37 dev-zero Exp $
EAPI="1"
inherit eutils python toolchain-funcs
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="5"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~ia64 ~x86"
IUSE="debug doc examples"
RDEPEND="virtual/python
x11-libs/qwt:5
>=dev-python/PyQt4-4.2
>=dev-python/numpy-1.0.1"
DEPEND="${DEPEND}
>=dev-python/sip-4.1.1"
src_unpack() {
unpack ${A}
# PyQwt CVS does not need the next 2 sed statements anymore
sed -i \
-e "s|%Import QtSvg/QtSvgmod.sip||" \
-e "s|%Include qwt_plot_svgitem.sip||" \
"${S}/sip/qwt5qt4/QwtModule.sip" || die "sed failed"
# Avoid pre-stripped files
sed -i \
-e 's|ModuleMakefile(|ModuleMakefile(strip=0,|' \
"${S}/configure/configure.py" || die "sed failed"
}
src_compile() {
cd "${S}/configure"
local myconf="-I/usr/include/qwt5 -lqwt --disable-numarray --disable-numeric"
use debug && myconf="${myconf} --debug"
has distcc ${FEATURES} || myconf="${myconf} -j1"
python_version
"${python}" configure.py ${myconf} || die "python configure.py failed"
emake CXX="$(tc-getCXX)" LINK="$(tc-getCXX)" || die "emake failed"
}
src_install() {
cd "${S}/configure"
emake DESTDIR="${D}" install || die "make install failed"
cd "${S}"
dodoc ANNOUNCEMENT-${PV} CHANGES-${PV} COPYING* README
use doc && dohtml Doc/html/pyqwt/*
if use examples ; then
dodir /usr/share/doc/${PF}/examples
cp -r qt4examples/ "${D}/usr/share/doc/${PF}/examples"
fi
}
|