/[gentoo-x86]/dev-python/pyqtgraph/pyqtgraph-0.9.9.ebuild
Gentoo

Contents of /dev-python/pyqtgraph/pyqtgraph-0.9.9.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Wed Dec 24 04:21:09 2014 UTC (5 years, 6 months ago) by radhermit
Branch: MAIN
CVS Tags: HEAD
Version bump.

(Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 EAPI=5
6 PYTHON_COMPAT=( python{2_7,3_3,3_4} )
7 inherit distutils-r1
8
9 DESCRIPTION="a pure-python scientific graphics and GUI library built on PyQt4/PySide and numpy"
10 HOMEPAGE="http://www.pyqtgraph.org/ https://github.com/pyqtgraph/pyqtgraph"
11 SRC_URI="http://www.pyqtgraph.org/downloads/${P}.tar.gz"
12
13 LICENSE="MIT"
14 SLOT="0"
15 KEYWORDS="~amd64 ~x86"
16 IUSE="doc opengl"
17
18 RDEPEND="
19 dev-python/numpy[${PYTHON_USEDEP}]
20 sci-libs/scipy[${PYTHON_USEDEP}]
21 || (
22 dev-python/PyQt4[${PYTHON_USEDEP}]
23 dev-python/pyside[${PYTHON_USEDEP}]
24 )
25 opengl? ( dev-python/pyopengl[${PYTHON_USEDEP}] )
26 "
27 DEPEND="${RDEPEND}
28 doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
29 "
30
31 python_prepare_all() {
32 distutils-r1_python_prepare_all
33
34 # fix distutils warning
35 sed -i 's/install_requires/requires/' setup.py || die
36
37 if ! use opengl; then
38 rm -r pyqtgraph/opengl || die
39 fi
40 }
41
42 python_compile_all() {
43 use doc && emake -C doc html
44 }
45
46 python_install_all() {
47 use doc && local HTML_DOCS=( doc/build/html/. )
48 distutils-r1_python_install_all
49 }

  ViewVC Help
Powered by ViewVC 1.1.20