summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiziano Müller <dev-zero@gentoo.org>2008-02-23 15:44:37 +0000
committerTiziano Müller <dev-zero@gentoo.org>2008-02-23 15:44:37 +0000
commit1680d4698e579ae256ec949ae08797e09f4b1936 (patch)
tree6d30154ebed5cf751358499262dd4179225962f8 /dev-python/pyqwt
parentMove x11-proto/* out of RDEPEND, bug 204781. mips ->~mips to fix deps. (diff)
downloadhistorical-1680d4698e579ae256ec949ae08797e09f4b1936.tar.gz
historical-1680d4698e579ae256ec949ae08797e09f4b1936.tar.bz2
historical-1680d4698e579ae256ec949ae08797e09f4b1936.zip
Fixed a couple of serious QA issues.
Package-Manager: portage-2.1.4.4
Diffstat (limited to 'dev-python/pyqwt')
-rw-r--r--dev-python/pyqwt/ChangeLog6
-rw-r--r--dev-python/pyqwt/Manifest6
-rw-r--r--dev-python/pyqwt/pyqwt-4.2-r1.ebuild37
-rw-r--r--dev-python/pyqwt/pyqwt-5.0.1.ebuild62
4 files changed, 70 insertions, 41 deletions
diff --git a/dev-python/pyqwt/ChangeLog b/dev-python/pyqwt/ChangeLog
index 538172516112..0de3dbe87620 100644
--- a/dev-python/pyqwt/ChangeLog
+++ b/dev-python/pyqwt/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-python/pyqwt
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pyqwt/ChangeLog,v 1.9 2008/02/23 13:31:42 dev-zero Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pyqwt/ChangeLog,v 1.10 2008/02/23 15:44:37 dev-zero Exp $
+
+ 23 Feb 2008; Tiziano Müller <dev-zero@gentoo.org> pyqwt-4.2-r1.ebuild,
+ pyqwt-5.0.1.ebuild:
+ Fixed a couple of serious QA issues.
23 Feb 2008; Tiziano Müller <dev-zero@gentoo.org> -pyqwt-4.2.ebuild:
Dropped old revision.
diff --git a/dev-python/pyqwt/Manifest b/dev-python/pyqwt/Manifest
index baea34053207..90a3d92cacab 100644
--- a/dev-python/pyqwt/Manifest
+++ b/dev-python/pyqwt/Manifest
@@ -1,6 +1,6 @@
DIST PyQwt-4.2.tar.gz 1416358 RMD160 e9f6ce51b6cbcbadb526f0fcac5035510882fd54 SHA1 ac5e0e6719ae77e73154f06dac3b0ae6728cec7b SHA256 6db14a2a89cbbbef515a4964e824b0f52f10427cef56cd6f3a7b3f1ef0a444d0
DIST PyQwt-5.0.1.tar.gz 2180960 RMD160 c8d8859f26c4fca94c8f43a237bb525469bc408a SHA1 6bcb9a2c4b3db905f3f233cc21d07bfae4f8e073 SHA256 13a00e30940e4384c18b6fd785377e2ed415b9a7b452211c840e6aa80236614b
-EBUILD pyqwt-4.2-r1.ebuild 1451 RMD160 f53da8929e105df29ae93961e082dc09b7dd68dc SHA1 8244ade40b71616fa44f30a4aa2d4e63bf2bf365 SHA256 fdb7d5c7251a13e645117f9a00f491023bfdb67de9e1050eb1a8a3d5d643900e
-EBUILD pyqwt-5.0.1.ebuild 1477 RMD160 0266a49dbfa375525c5185461b02f94026db228d SHA1 8bf8743d1a917a2571c81b0e25dbbdb7f3ef9dc8 SHA256 24d346b40af198228b250962ea70b2f40bacd7d860bb71a1ed89d6e410b02f39
-MISC ChangeLog 1293 RMD160 3aa6bdf101cd5f1fe05eabf964a12fc61caeecac SHA1 ce37c32f3e0b402e371225e75c46dfa802c99931 SHA256 be41c7cbb53ac7fe7aaeea8f5675ebdc3b356239b76c42ca939c833af64777fe
+EBUILD pyqwt-4.2-r1.ebuild 1571 RMD160 6b86ee5c43c76ec9edbc63448a036f3ba52ed0d8 SHA1 343bac5b4cef8686434a65a9b781d7fdcb80adb6 SHA256 7e70f32215fc5c63f6a06f1bc050a893616e94e7335fca7b9f2362a6c2d9ba82
+EBUILD pyqwt-5.0.1.ebuild 1749 RMD160 eb67de7ca264b52caaeaa18cf221d8266847fd73 SHA1 59b2ff6f894d60ff9608cf1561da16e609e70acc SHA256 e84aac52a9e667e842e2a684180c784e2b826198620f32a54bdfecb040e36a3d
+MISC ChangeLog 1430 RMD160 bae660abd634b034f96b2e1de86aa737782ba998 SHA1 a3e54f4ab4081ea5b88fbefcaf3f8239aa717b25 SHA256 af6cfca18b93f00a2ae02e800336f08ae58ac2561a6086777abba985a60d6702
MISC metadata.xml 175 RMD160 74ecde8b999da503a2733b49ed618d5d50d26476 SHA1 ec86e15b85c2bc4429ad67bb52238b44f2b16cbd SHA256 26b18db06b1665422af8905fb70f8f48920a048578172d62b9689e273ee39a2d
diff --git a/dev-python/pyqwt/pyqwt-4.2-r1.ebuild b/dev-python/pyqwt/pyqwt-4.2-r1.ebuild
index 6e5b04bd61ac..6bbdf0d65a1b 100644
--- a/dev-python/pyqwt/pyqwt-4.2-r1.ebuild
+++ b/dev-python/pyqwt/pyqwt-4.2-r1.ebuild
@@ -1,11 +1,13 @@
-# Copyright 1999-2007 Gentoo Foundation
+# 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.2 2007/07/11 06:19:47 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pyqwt/pyqwt-4.2-r1.ebuild,v 1.3 2008/02/23 15:44:37 dev-zero Exp $
-inherit distutils eutils
+NEED_PYTHON="2.3"
-MY_P=PyQwt-${PV}
-S=${WORKDIR}/${MY_P}
+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"
@@ -16,31 +18,36 @@ LICENSE="GPL-2"
KEYWORDS="~amd64 ~ia64 ~x86"
IUSE="debug"
-DEPEND=">=dev-lang/python-2.3.2
- ~x11-libs/qwt-4.2.0
+
+RDEPEND="~x11-libs/qwt-4.2.0
>=dev-python/PyQt-3.14
- >=dev-python/sip-4.2
>=dev-python/numarray-1.1.1
>=dev-python/numeric-23.7"
+DEPEND="${RDEPEND}
+ >=dev-python/sip-4.2"
src_compile() {
- cd ${S}/sip
+ 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
+ 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 configure.py ${myconf}
+
+ python_version
+ "${python}" configure.py ${myconf} || die "python configure.py failed"
emake || die "emake failed"
}
src_install() {
- cd ${S}
+ cd "${S}"
sed -i s/2,4,9/2,5,9/ setup.py
- python setup.py install --prefix=/usr --root=${D} || die "install failed"
+
+ 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}
+ use doc && mv "${D}/usr/share/doc/${MY_P}"/* "${D}/usr/share/doc/${PF}"
+ rm -rf "${D}/usr/share/doc/${MY_P}"
}
diff --git a/dev-python/pyqwt/pyqwt-5.0.1.ebuild b/dev-python/pyqwt/pyqwt-5.0.1.ebuild
index 4f3d5c47a9b3..41b93196a882 100644
--- a/dev-python/pyqwt/pyqwt-5.0.1.ebuild
+++ b/dev-python/pyqwt/pyqwt-5.0.1.ebuild
@@ -1,48 +1,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.4 2008/01/14 19:19:27 angelos Exp $
+# $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 $
-inherit eutils
+EAPI="1"
+inherit eutils python toolchain-funcs
-MY_P=PyQwt-${PV}
-S=${WORKDIR}/${MY_P}
+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"
-DEPEND="virtual/python
- =x11-libs/qwt-5*
+RDEPEND="virtual/python
+ x11-libs/qwt:5
>=dev-python/PyQt4-4.2
- >=dev-python/sip-4.1.1
>=dev-python/numpy-1.0.1"
+DEPEND="${DEPEND}
+ >=dev-python/sip-4.1.1"
+
+src_unpack() {
+ unpack ${A}
-src_compile() {
- cd ${S}/sip/qwt5qt4
# PyQwt CVS does not need the next 2 sed statements anymore
- sed -i "s|%Import QtSvg/QtSvgmod.sip||" QwtModule.sip
- sed -i "s|%Include qwt_plot_svgitem.sip||" QwtModule.sip
+ 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 -l qwt --disable-numarray --disable-numeric"
+
+ local myconf="-I/usr/include/qwt5 -lqwt --disable-numarray --disable-numeric"
use debug && myconf="${myconf} --debug"
- has distcc ${FEATURES} || myconf="${myconf} -j 1"
- python configure.py ${myconf}
- emake || die "emake failed"
+ 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"
- make DESTDIR="${D}" install || die "make install failed"
+ 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
+
+ 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
}