Gentoo Archives: gentoo-commits

From: Andrey Grozin <grozin@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-visualization/veusz/
Date: Fri, 04 Mar 2016 13:33:22
Message-Id: 1457097762.96db43ecef4f9bb1402635098a5606786afa52b4.grozin@gentoo
1 commit: 96db43ecef4f9bb1402635098a5606786afa52b4
2 Author: Andrey Grozin <grozin <AT> gentoo <DOT> org>
3 AuthorDate: Fri Mar 4 13:12:51 2016 +0000
4 Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org>
5 CommitDate: Fri Mar 4 13:22:42 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=96db43ec
7
8 sci-visualization/veusz: added python3_5, dropped python3_3
9
10 Because dev-python/astropy-1.1.1 dropped python3_3
11
12 Package-Manager: portage-2.2.27
13
14 sci-visualization/veusz/veusz-1.23.2-r1.ebuild | 78 ++++++++++++++++++++++++++
15 1 file changed, 78 insertions(+)
16
17 diff --git a/sci-visualization/veusz/veusz-1.23.2-r1.ebuild b/sci-visualization/veusz/veusz-1.23.2-r1.ebuild
18 new file mode 100644
19 index 0000000..5fa0e11
20 --- /dev/null
21 +++ b/sci-visualization/veusz/veusz-1.23.2-r1.ebuild
22 @@ -0,0 +1,78 @@
23 +# Copyright 1999-2016 Gentoo Foundation
24 +# Distributed under the terms of the GNU General Public License v2
25 +# $Id$
26 +
27 +EAPI=5
28 +
29 +PYTHON_COMPAT=( python2_7 python3_{4,5} )
30 +
31 +inherit eutils fdo-mime distutils-r1 virtualx
32 +
33 +DESCRIPTION="Qt scientific plotting package with good Postscript output"
34 +HOMEPAGE="http://home.gna.org/veusz/"
35 +SRC_URI="http://download.gna.org/${PN}/${P}.tar.gz"
36 +
37 +SLOT="0"
38 +LICENSE="GPL-2"
39 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
40 +IUSE="dbus doc emf fits hdf5 minuit vo"
41 +
42 +CDEPEND="
43 + dev-python/numpy[${PYTHON_USEDEP}]
44 + >=dev-python/PyQt4-4.11.4[X,svg,${PYTHON_USEDEP}]
45 +"
46 +RDEPEND="${CDEPEND}
47 + dbus? ( dev-python/dbus-python[${PYTHON_USEDEP}] )
48 + emf? ( dev-python/pyemf[$(python_gen_usedep 'python2*')] )
49 + fits? ( dev-python/astropy[${PYTHON_USEDEP}] )
50 + hdf5? ( dev-python/h5py[${PYTHON_USEDEP}] )
51 + minuit? ( dev-python/pyminuit[${PYTHON_USEDEP}] )
52 + vo? (
53 + dev-python/astropy[${PYTHON_USEDEP}]
54 + dev-python/sampy[$(python_gen_usedep 'python2*')]
55 + )"
56 +DEPEND="${CDEPEND}
57 + dev-python/setuptools[${PYTHON_USEDEP}]
58 + dev-python/sip[${PYTHON_USEDEP}]
59 + "
60 +
61 +python_test() {
62 + distutils_install_for_testing
63 + cd tests || die
64 + VIRTUALX_COMMAND="${EPYTHON}" \
65 + VEUSZ_RESOURCE_DIR="${S}" \
66 + virtualmake runselftest.py
67 +}
68 +
69 +python_install() {
70 + distutils-r1_python_install
71 + # symlink the license, bug #341653
72 + rm "${D}/$(python_get_sitedir)"/${PN}/{COPYING,AUTHORS,ChangeLog} || die
73 + mkdir -p "${D}/$(python_get_sitedir)" || die
74 + cat >> "${D}/$(python_get_sitedir)"/${PN}/COPYING <<- EOF
75 + Please visit
76 +
77 + https://www.gnu.org/licenses/gpl-2.0.html
78 +
79 + for the full license text.
80 + EOF
81 +}
82 +
83 +python_install_all() {
84 + distutils-r1_python_install_all
85 + use doc && dodoc Documents/manual.pdf && \
86 + dohtml -r Documents/{manimages,manual.html}
87 +
88 + doicon icons/veusz.png
89 + domenu "${FILESDIR}"/veusz.desktop
90 + insinto /usr/share/mime/packages
91 + doins "${FILESDIR}"/veusz.xml
92 +}
93 +
94 +pkg_postinst() {
95 + fdo-mime_desktop_database_update
96 +}
97 +
98 +pkg_postrm() {
99 + fdo-mime_desktop_database_update
100 +}