summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-11-08 18:31:18 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-11-08 18:31:18 +0000
commitcc4fe2c1dbc216f120bb6b09fd3f1c51dba3b265 (patch)
tree7a57180e6c8051ddcbb70ef617e2c6110a1c2a72 /dev-python
parentremoved old (diff)
downloadgentoo-2-cc4fe2c1dbc216f120bb6b09fd3f1c51dba3b265.tar.gz
gentoo-2-cc4fe2c1dbc216f120bb6b09fd3f1c51dba3b265.tar.bz2
gentoo-2-cc4fe2c1dbc216f120bb6b09fd3f1c51dba3b265.zip
Fix dependencies. Set SUPPORT_PYTHON_ABIS.
(Portage version: 2.2.0_alpha4_p14/cvs/Linux x86_64)
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/gnuplot-py/ChangeLog6
-rw-r--r--dev-python/gnuplot-py/gnuplot-py-1.8.ebuild24
2 files changed, 23 insertions, 7 deletions
diff --git a/dev-python/gnuplot-py/ChangeLog b/dev-python/gnuplot-py/ChangeLog
index d727a194406f..b7311c482af5 100644
--- a/dev-python/gnuplot-py/ChangeLog
+++ b/dev-python/gnuplot-py/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-python/gnuplot-py
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/gnuplot-py/ChangeLog,v 1.41 2010/09/29 21:39:26 arfrever Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/gnuplot-py/ChangeLog,v 1.42 2010/11/08 18:31:18 arfrever Exp $
+
+ 08 Nov 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+ gnuplot-py-1.8.ebuild:
+ Fix dependencies. Set SUPPORT_PYTHON_ABIS.
29 Sep 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
-gnuplot-py-1.7-r2.ebuild, -files/gnuplot-py-1.7-numpy.patch:
diff --git a/dev-python/gnuplot-py/gnuplot-py-1.8.ebuild b/dev-python/gnuplot-py/gnuplot-py-1.8.ebuild
index bdadb357aed8..aa4b1c3edfeb 100644
--- a/dev-python/gnuplot-py/gnuplot-py-1.8.ebuild
+++ b/dev-python/gnuplot-py/gnuplot-py-1.8.ebuild
@@ -1,8 +1,12 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/gnuplot-py/gnuplot-py-1.8.ebuild,v 1.10 2010/04/30 17:21:04 grobian Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/gnuplot-py/gnuplot-py-1.8.ebuild,v 1.11 2010/11/08 18:31:18 arfrever Exp $
EAPI="3"
+PYTHON_DEPEND="2"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="3.*"
+
inherit distutils eutils
DESCRIPTION="A python wrapper for Gnuplot"
@@ -18,18 +22,26 @@ DEPEND="dev-python/numpy"
RDEPEND="${DEPEND}
sci-visualization/gnuplot"
+DOCS="ANNOUNCE.txt CREDITS.txt FAQ.txt NEWS.txt TODO.txt"
PYTHON_MODNAME="Gnuplot"
src_prepare() {
- epatch "${FILESDIR}"/${PN}-1.7-mousesupport.patch
+ distutils_src_prepare
+ epatch "${FILESDIR}/${PN}-1.7-mousesupport.patch"
+ python_convert_shebangs 2 demo.py test.py
}
src_install() {
distutils_src_install
- dodoc ANNOUNCE.txt CREDITS.txt NEWS.txt TODO.txt FAQ.txt
- dodir /usr/share/doc/${PF}/examples
- mv "${ED}"/usr/$(get_libdir)/python*/site-packages/Gnuplot/{test,demo}.py \
- "${ED}"/usr/share/doc/${PF}/examples || die
+
+ delete_examples() {
+ rm -f "${ED}$(python_get_sitedir)/Gnuplot/"{demo,test}.py
+ }
+ python_execute_function -q delete_examples
+
+ insinto /usr/share/doc/${PF}/examples
+ doins demo.py test.py
+
if use doc; then
insinto /usr/share/doc/${PF}/html
doins -r doc/Gnuplot/* || die "doc install failed"