Skip to content

Commit 699fd85

Browse files
author
Andrey Grozin
committed
sci-visualization/veusz: bump to 3.2
Closes: https://bugs.gentoo.org/show_bug.cgi?id=712920 Package-Manager: Portage-2.3.94, Repoman-2.3.21 Signed-off-by: Andrey Grozin <[email protected]>
1 parent ff0d0d5 commit 699fd85

File tree

2 files changed

+71
-0
lines changed

2 files changed

+71
-0
lines changed

sci-visualization/veusz/Manifest

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
DIST veusz-3.1.tar.gz 2524607 BLAKE2B ca5c5a75e02c9461e1d81dc4d2cc09865ebd4424f072616bf0a231a1f592a5c1c5aad93f713ed9ec1d9e2ad39b877a36c236b615d904295608d7990eaf59d5fb SHA512 9b940d1cc224f4729f788abe1e29352d35e69d2f78bae7f072a783d339198a8171b0f0b0a5f5af82ef0f0693550a42409956a9cc3888aa46d110d777e81941a4
2+
DIST veusz-3.2.tar.gz 2528125 BLAKE2B 614488779d1c0e5d800f2b1c86b82615676b08af46831abd6c55653471b045f0c9d28a8cb7489cbb2391fd5f21ab2d40aa6bff4fc195426f3b07b91f6d4ee8d7 SHA512 01e1a030246a3d6811493968f2f30084b2c465195af166b7bdc4009de4c488350a4fba300acee1959310b318e8dc519f090bfca528491811ca52640c33d048bc
+70
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# Copyright 1999-2020 Gentoo Authors
2+
# Distributed under the terms of the GNU General Public License v2
3+
4+
EAPI=7
5+
6+
PYTHON_COMPAT=( python3_{6,7,8} )
7+
8+
inherit desktop distutils-r1 virtualx xdg
9+
10+
DESCRIPTION="Qt scientific plotting package with good Postscript output"
11+
HOMEPAGE="https://veusz.github.io/"
12+
SRC_URI="https://github.com/${PN}/${PN}/releases/download/${P}/${P}.tar.gz"
13+
14+
SLOT="0"
15+
LICENSE="GPL-2"
16+
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
17+
IUSE="dbus doc hdf5 minuit"
18+
RESTRICT="!test? ( test )"
19+
20+
CDEPEND="dev-python/PyQt5[widgets,svg,printsupport,${PYTHON_USEDEP}]
21+
dev-python/numpy[${PYTHON_USEDEP}]"
22+
RDEPEND="${CDEPEND}
23+
dbus? ( dev-python/dbus-python[${PYTHON_USEDEP}] )
24+
hdf5? ( dev-python/h5py[${PYTHON_USEDEP}] )
25+
minuit? ( dev-python/iminuit[${PYTHON_USEDEP}] )"
26+
DEPEND="${CDEPEND}
27+
dev-python/setuptools[${PYTHON_USEDEP}]
28+
dev-python/sip[${PYTHON_USEDEP}]
29+
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
30+
31+
src_prepare() {
32+
distutils-r1_src_prepare
33+
xdg_environment_reset
34+
}
35+
36+
python_test() {
37+
distutils_install_for_testing
38+
VIRTUALX_COMMAND="${EPYTHON}" \
39+
VEUSZ_RESOURCE_DIR="${S}" \
40+
virtx tests/runselftest.py
41+
}
42+
43+
python_install() {
44+
distutils-r1_python_install
45+
# symlink the license, bug #341653
46+
rm "${D}/$(python_get_sitedir)"/${PN}/{COPYING,AUTHORS,ChangeLog} || die
47+
mkdir -p "${D}/$(python_get_sitedir)" || die
48+
cat >> "${D}/$(python_get_sitedir)"/${PN}/COPYING <<- EOF
49+
Please visit
50+
51+
https://www.gnu.org/licenses/gpl-2.0.html
52+
53+
for the full license text.
54+
EOF
55+
}
56+
57+
python_install_all() {
58+
distutils-r1_python_install_all
59+
60+
if use doc; then
61+
dodoc Documents/manual/pdf/${PN}.pdf
62+
docinto html
63+
dodoc -r Documents/manual/html
64+
fi
65+
66+
doicon icons/veusz.png
67+
domenu "${FILESDIR}"/veusz.desktop
68+
insinto /usr/share/mime/packages
69+
doins "${FILESDIR}"/veusz.xml
70+
}

0 commit comments

Comments
 (0)