* [gentoo-commits] repo/gentoo:master commit in: sci-visualization/veusz/files/, sci-visualization/veusz/
@ 2018-08-08 13:31 Andrey Grozin
0 siblings, 0 replies; 3+ messages in thread
From: Andrey Grozin @ 2018-08-08 13:31 UTC (permalink / raw
To: gentoo-commits
commit: 23338ceb286e450b51cec8bdcf754d4c7dfca084
Author: Andrey Grozin <grozin <AT> gentoo <DOT> org>
AuthorDate: Wed Aug 8 13:29:48 2018 +0000
Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org>
CommitDate: Wed Aug 8 13:30:39 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=23338ceb
sci-visualization/veusz: bump to 3.0.1
An upstream patch to improve smoothness of Bezier splines added
Suggested-by: Sergey Torokhov <torokhov_s_a <AT> mail.ru>
Package-Manager: Portage-2.3.41, Repoman-2.3.9
sci-visualization/veusz/Manifest | 1 +
sci-visualization/veusz/files/fix_spline.patch | 16 +++++
sci-visualization/veusz/veusz-3.0.1.ebuild | 81 ++++++++++++++++++++++++++
3 files changed, 98 insertions(+)
diff --git a/sci-visualization/veusz/Manifest b/sci-visualization/veusz/Manifest
index a66887c1668..255f56aa435 100644
--- a/sci-visualization/veusz/Manifest
+++ b/sci-visualization/veusz/Manifest
@@ -1 +1,2 @@
+DIST veusz-3.0.1.tar.gz 2554401 BLAKE2B 6e5649eef94ce0bd7fcdfa8325b35de144aaecd792f32c149f5a6f16c7c35f10d29bebeb37531d726e1b87f6d46855d7cdb2af402ec8fd0a2c1af91844d12c03 SHA512 99766c0fee70c12bba7b2ee8434224649763323aa9278d2116159f18257e1e1c5a491d591efb779c1bbb9dba1fb524ad8185fa2e91429ba1cc594fd632cb6238
DIST veusz-3.0.tar.gz 2550683 BLAKE2B 72f0da8d9b993d8a3252fbb93314a53832fbf319287946e9ebc9317ebdab3f10ef2071012b88a1ff3d31d4732f367ded0b217dfa9766f5a09abe90e96b769e45 SHA512 a740d5677e8f23245e54573de0faaa66b659b54e289b256dc344f5aa0cc2a05db26efce57ff31b19c1235e04a9aa22cfa12125a784d27b0e3725277cbfae1b06
diff --git a/sci-visualization/veusz/files/fix_spline.patch b/sci-visualization/veusz/files/fix_spline.patch
new file mode 100644
index 00000000000..a7d6bd85c48
--- /dev/null
+++ b/sci-visualization/veusz/files/fix_spline.patch
@@ -0,0 +1,16 @@
+# Upstream patch that fixes spline interpolation:
+# https://github.com/veusz/veusz/commit/b4223800744034880fd1ca1165853636b31e576c
+diff -Naur old/veusz/helpers/src/qtloops/beziers.cpp new/veusz/helpers/src/qtloops/beziers.cpp
+--- old/veusz/helpers/src/qtloops/beziers.cpp 2017-09-23 11:10:46.000000000 +0300
++++ new/veusz/helpers/src/qtloops/beziers.cpp 2018-08-04 21:27:01.000000000 +0300
+@@ -1013,8 +1013,8 @@
+ return 0;
+ }
+
+- // factor of 0.1 introduced by JSS to stop more hooks
+- double const allowed = L2(b - a)*0.1 + tolerance;
++ // factor of 0.2 introduced by JSS to stop more hooks
++ double const allowed = L2(b - a)*0.2 + tolerance;
+ return dist / allowed;
+ /** \todo
+ * effic: Hooks are very rare. We could start by comparing
diff --git a/sci-visualization/veusz/veusz-3.0.1.ebuild b/sci-visualization/veusz/veusz-3.0.1.ebuild
new file mode 100644
index 00000000000..018f5fd55b2
--- /dev/null
+++ b/sci-visualization/veusz/veusz-3.0.1.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
+
+inherit eutils distutils-r1 virtualx xdg-utils gnome2-utils
+
+DESCRIPTION="Qt scientific plotting package with good Postscript output"
+HOMEPAGE="https://veusz.github.io/"
+SRC_URI="https://github.com/${PN}/${PN}/releases/download/${P}/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="dbus doc emf fits hdf5 minuit"
+
+CDEPEND="dev-python/PyQt5[widgets,svg,printsupport,${PYTHON_USEDEP}]
+ dev-python/numpy[${PYTHON_USEDEP}]"
+RDEPEND="${CDEPEND}
+ dbus? ( dev-python/dbus-python[${PYTHON_USEDEP}] )
+ emf? ( dev-python/pyemf[$(python_gen_usedep 'python2*')] )
+ fits? ( dev-python/astropy[${PYTHON_USEDEP}] )
+ hdf5? ( dev-python/h5py[${PYTHON_USEDEP}] )
+ minuit? ( || ( dev-python/iminuit[${PYTHON_USEDEP}] dev-python/pyminuit[${PYTHON_USEDEP}] ) )"
+DEPEND="${CDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ dev-python/sip[${PYTHON_USEDEP}]
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
+
+PATCHES=("${FILESDIR}/fix_spline.patch")
+
+python_test() {
+ distutils_install_for_testing
+ cd tests || die
+ VIRTUALX_COMMAND="${EPYTHON}" \
+ VEUSZ_RESOURCE_DIR="${S}" \
+ virtualmake runselftest.py
+}
+
+python_install() {
+ distutils-r1_python_install
+ # symlink the license, bug #341653
+ rm "${D}/$(python_get_sitedir)"/${PN}/{COPYING,AUTHORS,ChangeLog} || die
+ mkdir -p "${D}/$(python_get_sitedir)" || die
+ cat >> "${D}/$(python_get_sitedir)"/${PN}/COPYING <<- EOF
+ Please visit
+
+ https://www.gnu.org/licenses/gpl-2.0.html
+
+ for the full license text.
+ EOF
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+
+ if use doc; then
+ dodoc Documents/manual/pdf/${PN}.pdf
+ docinto html
+ dodoc -r Documents/manual/html
+ fi
+
+ doicon icons/veusz.png
+ domenu "${FILESDIR}"/veusz.desktop
+ insinto /usr/share/mime/packages
+ doins "${FILESDIR}"/veusz.xml
+}
+
+pkg_postinst() {
+ xdg_desktop_database_update
+ xdg_mimeinfo_database_update
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ xdg_desktop_database_update
+ xdg_mimeinfo_database_update
+ gnome2_icon_cache_update
+}
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-visualization/veusz/files/, sci-visualization/veusz/
@ 2025-05-05 13:49 Andrey Grozin
0 siblings, 0 replies; 3+ messages in thread
From: Andrey Grozin @ 2025-05-05 13:49 UTC (permalink / raw
To: gentoo-commits
commit: 8f5609281f94b1007b25e087689ae05c5e16b6e4
Author: Andrey Grozin <grozin <AT> gentoo <DOT> org>
AuthorDate: Mon May 5 13:48:50 2025 +0000
Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org>
CommitDate: Mon May 5 13:49:26 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f560928
sci-visualization/veusz: Use tomllib, not tomli
Closes: https://bugs.gentoo.org/955201
Signed-off-by: Andrey Grozin <grozin <AT> gentoo.org>
sci-visualization/veusz/files/tomli.patch | 17 +++++++
sci-visualization/veusz/veusz-3.6.2-r3.ebuild | 73 +++++++++++++++++++++++++++
2 files changed, 90 insertions(+)
diff --git a/sci-visualization/veusz/files/tomli.patch b/sci-visualization/veusz/files/tomli.patch
new file mode 100644
index 000000000000..bada3abcfdc5
--- /dev/null
+++ b/sci-visualization/veusz/files/tomli.patch
@@ -0,0 +1,17 @@
+diff '--color=auto' -r -U2 veusz-3.6.2.orig/pyqt_setuptools.py veusz-3.6.2/pyqt_setuptools.py
+--- veusz-3.6.2.orig/pyqt_setuptools.py 2023-02-25 16:47:30.000000000 +0700
++++ veusz-3.6.2/pyqt_setuptools.py 2025-05-05 20:37:20.190868091 +0700
+@@ -9,5 +9,5 @@
+ import shutil
+ import subprocess
+-import tomli
++import tomllib
+
+ from sysconfig import get_path
+@@ -231,5 +231,5 @@
+ pyqt5_toml = os.path.join(pyqt5_include_dir, 'QtCore', 'QtCore.toml')
+ with open(pyqt5_toml, 'rb') as fin:
+- pyqt5_cfg = tomli.load(fin)
++ pyqt5_cfg = tomllib.load(fin)
+ abi_version = pyqt5_cfg.get('sip-abi-version')
+
diff --git a/sci-visualization/veusz/veusz-3.6.2-r3.ebuild b/sci-visualization/veusz/veusz-3.6.2-r3.ebuild
new file mode 100644
index 000000000000..327a180dff1d
--- /dev/null
+++ b/sci-visualization/veusz/veusz-3.6.2-r3.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{11..13} )
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=setuptools
+inherit desktop distutils-r1 qmake-utils virtualx xdg
+
+DESCRIPTION="Qt scientific plotting package with good Postscript output"
+HOMEPAGE="https://veusz.github.io/"
+SRC_URI="https://github.com/${PN}/${PN}/releases/download/${P}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="dbus hdf5"
+
+COMMON_DEPEND="
+ dev-python/numpy[${PYTHON_USEDEP}]
+ dev-python/pyqt5[gui,printsupport,svg,widgets,${PYTHON_USEDEP}]
+"
+RDEPEND="${COMMON_DEPEND}
+ dbus? ( dev-python/dbus-python[${PYTHON_USEDEP}] )
+ hdf5? ( dev-python/h5py[${PYTHON_USEDEP}] )
+"
+BDEPEND="${COMMON_DEPEND}
+ dev-python/sip:5[${PYTHON_USEDEP}]
+"
+
+PATCHES=( "${FILESDIR}"/tomli.patch )
+
+distutils_enable_sphinx Documents/manual-source \
+ dev-python/alabaster
+
+src_prepare() {
+ distutils-r1_src_prepare
+ xdg_environment_reset
+}
+
+python_compile() {
+ distutils-r1_python_compile build_ext --qmake-exe=$(qt5_get_bindir)/qmake
+}
+
+python_test() {
+ VIRTUALX_COMMAND="${EPYTHON}" \
+ VEUSZ_RESOURCE_DIR="${S}" \
+ virtx tests/runselftest.py
+}
+
+python_install() {
+ distutils-r1_python_install
+ # symlink the license, bug #341653
+ rm "${D}/$(python_get_sitedir)"/${PN}/{COPYING,AUTHORS,ChangeLog} || die
+ mkdir -p "${D}/$(python_get_sitedir)" || die
+ cat >> "${D}/$(python_get_sitedir)"/${PN}/COPYING <<- EOF
+ Please visit
+
+ https://www.gnu.org/licenses/gpl-2.0.html
+
+ for the full license text.
+ EOF
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+
+ doicon icons/veusz.png
+ domenu "${FILESDIR}"/veusz.desktop
+ insinto /usr/share/mime/packages
+ doins "${FILESDIR}"/veusz.xml
+}
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-visualization/veusz/files/, sci-visualization/veusz/
@ 2025-06-03 10:35 Andrey Grozin
0 siblings, 0 replies; 3+ messages in thread
From: Andrey Grozin @ 2025-06-03 10:35 UTC (permalink / raw
To: gentoo-commits
commit: fa45ca5214105f96b6f02a8e81bd071265d130b3
Author: Andrey Grozin <grozin <AT> gentoo <DOT> org>
AuthorDate: Tue Jun 3 10:35:26 2025 +0000
Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org>
CommitDate: Tue Jun 3 10:35:26 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fa45ca52
sci-visualization/veusz: bump to 4.0, now Qt6 based
Signed-off-by: Andrey Grozin <grozin <AT> gentoo.org>
sci-visualization/veusz/Manifest | 1 +
sci-visualization/veusz/files/tomli-4.0.patch | 21 ++++++++
sci-visualization/veusz/veusz-4.0.ebuild | 72 +++++++++++++++++++++++++++
3 files changed, 94 insertions(+)
diff --git a/sci-visualization/veusz/Manifest b/sci-visualization/veusz/Manifest
index 1c3973558f27..e4fcb1238972 100644
--- a/sci-visualization/veusz/Manifest
+++ b/sci-visualization/veusz/Manifest
@@ -1 +1,2 @@
DIST veusz-3.6.2.tar.gz 3330225 BLAKE2B dacadb7f4a4059cab02c07d2af4e53ba3b5714593233ff2995083237416e26425723950603dc542ac58cc355aaf6106c3fd4065efddb9cc7884757e440d3efa2 SHA512 5580171c0259415cf3de11322133fde02e244b65ffede1e83b5e6d17c8a037624860550495dc0b53c7b5e2f65b3ae6b95daa0e95f7164358e1201ffedeb13f51
+DIST veusz-4.0.tar.gz 3429227 BLAKE2B 213216354f9053df4015e95d098af667c9da6bcc3d384b5fe9e4325d4cc4f9b7520271e80ce092f6768fbf25b120f644164aafc3aa1eb1dc3685dd1e94d6582b SHA512 39d336ed59c4a68ae9ebbaaff37fd61788932a62debd076567acc854b69847bfa0d1e5801029ed785d00becbf3c7451e3ce80966c68d9f24f101a7ddb69b8059
diff --git a/sci-visualization/veusz/files/tomli-4.0.patch b/sci-visualization/veusz/files/tomli-4.0.patch
new file mode 100644
index 000000000000..0ad38c07c0b5
--- /dev/null
+++ b/sci-visualization/veusz/files/tomli-4.0.patch
@@ -0,0 +1,21 @@
+diff '--color=auto' -r -U3 veusz-4.0.orig/pyqt_setuptools.py veusz-4.0/pyqt_setuptools.py
+--- veusz-4.0.orig/pyqt_setuptools.py 2025-06-01 17:38:04.000000000 +0700
++++ veusz-4.0/pyqt_setuptools.py 2025-06-03 17:20:55.266874108 +0700
+@@ -8,7 +8,7 @@
+ import os
+ import shutil
+ import subprocess
+-import tomli
++import tomllib
+
+ from sysconfig import get_path
+ from setuptools.command.build_ext import build_ext
+@@ -244,7 +244,7 @@
+ pyqt6_toml = os.path.join(pyqt6_include_dir, 'QtCore', 'QtCore.toml')
+
+ with open(pyqt6_toml, 'rb') as fin:
+- pyqt6_cfg = tomli.load(fin)
++ pyqt6_cfg = tomllib.load(fin)
+ abi_version = pyqt6_cfg.get('sip-abi-version')
+
+ modulename = os.path.splitext(os.path.basename(source))[0]
diff --git a/sci-visualization/veusz/veusz-4.0.ebuild b/sci-visualization/veusz/veusz-4.0.ebuild
new file mode 100644
index 000000000000..312c961a9c8c
--- /dev/null
+++ b/sci-visualization/veusz/veusz-4.0.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{11..13} )
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=setuptools
+inherit desktop distutils-r1 qmake-utils virtualx xdg
+
+DESCRIPTION="Qt scientific plotting package with good Postscript output"
+HOMEPAGE="https://veusz.github.io/"
+SRC_URI="https://github.com/${PN}/${PN}/releases/download/${P}-fix/${P}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="dbus hdf5"
+
+COMMON_DEPEND="
+ dev-python/numpy[${PYTHON_USEDEP}]
+ dev-python/pyqt6[gui,printsupport,svg,widgets,${PYTHON_USEDEP}]
+"
+RDEPEND="${COMMON_DEPEND}
+ dbus? ( dev-python/dbus-python[${PYTHON_USEDEP}] )
+ hdf5? ( dev-python/h5py[${PYTHON_USEDEP}] )
+"
+BDEPEND="${COMMON_DEPEND}
+ dev-python/sip:5[${PYTHON_USEDEP}]
+"
+
+PATCHES=( "${FILESDIR}"/tomli-4.0.patch )
+
+distutils_enable_sphinx Documents/manual-source \
+ dev-python/alabaster
+
+src_prepare() {
+ distutils-r1_src_prepare
+ xdg_environment_reset
+}
+
+python_compile() {
+ distutils-r1_python_compile build_ext --qmake-exe=$(qt6_get_bindir)/qmake
+}
+
+python_test() {
+ VIRTUALX_COMMAND="${EPYTHON}" \
+ VEUSZ_RESOURCE_DIR="${S}" \
+ virtx tests/runselftest.py
+}
+
+python_install() {
+ distutils-r1_python_install
+ # symlink the license, bug #341653
+ rm "${D}/$(python_get_sitedir)"/${PN}/{COPYING,AUTHORS,ChangeLog} || die
+ mkdir -p "${D}/$(python_get_sitedir)" || die
+ cat >> "${D}/$(python_get_sitedir)"/${PN}/COPYING <<- EOF
+ Please visit
+
+ https://www.gnu.org/licenses/gpl-2.0.html
+
+ for the full license text.
+ EOF
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+
+ doicon icons/veusz.png
+ domenu "${FILESDIR}"/veusz.desktop
+ insinto /usr/share/mime/packages
+ doins "${FILESDIR}"/veusz.xml
+}
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-06-03 10:35 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-05 13:49 [gentoo-commits] repo/gentoo:master commit in: sci-visualization/veusz/files/, sci-visualization/veusz/ Andrey Grozin
-- strict thread matches above, loose matches on Subject: below --
2025-06-03 10:35 Andrey Grozin
2018-08-08 13:31 Andrey Grozin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox