commit:     e5f352b3839564c7b2e6e45cf4a13d41f7ef5870
Author:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
AuthorDate: Tue Aug 26 14:59:43 2025 +0000
Commit:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Wed Aug 27 05:33:52 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e5f352b3

sci-misc/vitables: add 3.1.0, drop 3.0.2_p4-r1

Drastically updated version on account of it includes loads of patches
we were importing from Debian (?) and also actually works with numpy
2.x. In fact, its ::gentoo deps already require `>=numpy-2` therefore it
has so far been impossible to install it in working at all. As such, I
give no credence to the idea of keeping the old version around "in case
people encounter issues with the new release". Not this time, buddy!

In the process, it turns out a particular test is broken. It tries to
test locale support, which would be nice and all except there are some
raw *.ts files floating around in the repo root and no way to actually
compile or install them. To boot, the testcase string wants to hardcode
the es_ES locale. There is no upstream CI or anything.

Signed-off-by: Eli Schwartz <eschwartz <AT> gentoo.org>

 sci-misc/vitables/Manifest                    |  3 +-
 sci-misc/vitables/vitables-3.0.2_p4-r1.ebuild | 56 ---------------------------
 sci-misc/vitables/vitables-3.1.0.ebuild       | 45 +++++++++++++++++++++
 3 files changed, 46 insertions(+), 58 deletions(-)

diff --git a/sci-misc/vitables/Manifest b/sci-misc/vitables/Manifest
index 93ed8b3c6c20..a882cb82fd8c 100644
--- a/sci-misc/vitables/Manifest
+++ b/sci-misc/vitables/Manifest
@@ -1,2 +1 @@
-DIST vitables_3.0.2-4.debian.tar.xz 8436 BLAKE2B 
ec6dcc597244174aeac0270c3d713825ebac716aae07dca1e9e0faf8afd067cb9d506d2164d9866eb4df6f105be01f8a4915ba79482858c839dbcda2b4c365b8
 SHA512 
e15b3a1d44bfb265a848d882e3f2659f65e8de8057bdfac1f4c605553e9c43670ec1e7cad729ae6ee43d4a21f326a94a71a402b35bab52751148763bfa7de079
-DIST vitables_3.0.2.orig.tar.gz 2094762 BLAKE2B 
2a12e170867ff518f8348c42d1b7be5be2e7b39d74e2a4d353973f03b5ca5dc6f952f639682b2f63a2be8e58771233d754f06f9bd048d58ec964930bc4e27839
 SHA512 
a2c697b36f900d3b46fa61601d6ec029ac66e1e0a3a1b3fd16cc60b5da57fcea04f0031c01a063583d9159338338a0ccab4dd7052e594b7c4d049a489d90778a
+DIST vitables-3.1.0.gh.tar.gz 2131194 BLAKE2B 
7e3d0492195841c9cca653472e5b4c8e81176216b1dd7d087d7e411402edd6a7f9b600293a9a5a6e222a2169e8f87381803fff6395d0117fb786f82e7fa6977a
 SHA512 
5bf4933d4732f43ae26084a92dc9404cab4e59e809cc297851ea1ded0e1983b665d5e177eb276376f7129daa2d855c0e7100130dde39eb4f876d5c866c3c0ce0

diff --git a/sci-misc/vitables/vitables-3.0.2_p4-r1.ebuild 
b/sci-misc/vitables/vitables-3.0.2_p4-r1.ebuild
deleted file mode 100644
index 28f5e6d44f46..000000000000
--- a/sci-misc/vitables/vitables-3.0.2_p4-r1.ebuild
+++ /dev/null
@@ -1,56 +0,0 @@
-# Copyright 1999-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_SINGLE_IMPL=1
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{10..11} )
-
-inherit distutils-r1 virtualx
-
-DESCRIPTION="A graphical tool for browsing / editing files in both PyTables 
and HDF5 formats"
-HOMEPAGE="https://vitables.org/";
-SRC_URI="mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_$(ver_cut 
1-3).orig.tar.gz
-       mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_$(ver_cut 
1-3)-$(ver_cut 5).debian.tar.xz"
-S="${WORKDIR}/ViTables-$(ver_cut 1-3)"
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-
-RDEPEND="
-       $(python_gen_cond_dep '
-               dev-python/numpy[${PYTHON_USEDEP}]
-               dev-python/numexpr[${PYTHON_USEDEP}]
-               dev-python/qtpy[gui,${PYTHON_USEDEP}]
-               dev-python/tables[${PYTHON_USEDEP}]
-       ')"
-DEPEND="${RDEPEND}"
-
-distutils_enable_tests pytest
-
-python_prepare_all() {
-       PATCHES=(
-               
../debian/patches/0001-vtsite.py-use-debian-doc-and-icons-paths.patch
-               
../debian/patches/0002-setup.py-no-icons-htmldocs-or-license.patch
-               
../debian/patches/0004-tests-conftest.py-prepare-the-testfile-if-necessary.patch
-               
../debian/patches/0005-Update-collection-path-for-Python-3.8.patch
-               ../debian/patches/0006-Fix-version-information-display.patch
-               ../debian/patches/0007-tests-migrate-from-nose-to-pytest.patch
-       )
-
-       distutils-r1_python_prepare_all
-       sed -e '/QtTest/d' -i tests/test_samples.py || die
-}
-
-python_test() {
-       virtx epytest
-}
-
-python_install_all() {
-       insinto /usr/share/${PN}
-       doins -r vitables/icons
-       dodoc -r doc/*
-       distutils-r1_python_install_all
-}

diff --git a/sci-misc/vitables/vitables-3.1.0.ebuild 
b/sci-misc/vitables/vitables-3.1.0.ebuild
new file mode 100644
index 000000000000..cd6a460b1543
--- /dev/null
+++ b/sci-misc/vitables/vitables-3.1.0.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_SINGLE_IMPL=1
+DISTUTILS_USE_PEP517=hatchling
+PYTHON_COMPAT=( python3_11 )
+
+inherit distutils-r1 virtualx
+
+DESCRIPTION="A graphical tool for browsing / editing files in both PyTables 
and HDF5 formats"
+HOMEPAGE="https://vitables.org/";
+SRC_URI="https://github.com/uvemas/ViTables/archive/refs/tags/v${PV}.tar.gz -> 
${P}.gh.tar.gz"
+S="${WORKDIR}/ViTables-${PV}"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+       $(python_gen_cond_dep '
+               dev-python/numpy[${PYTHON_USEDEP}]
+               dev-python/qtpy[gui,${PYTHON_USEDEP}]
+               dev-python/tables[${PYTHON_USEDEP}]
+       ')"
+DEPEND="${RDEPEND}"
+
+distutils_enable_tests pytest
+
+EPYTEST_DESELECT=(
+       # upstream doesn't run testsuite
+       tests/test_start.py::TestStart::test_l10n
+)
+
+python_test() {
+       virtx epytest
+}
+
+python_install_all() {
+       insinto /usr/share/${PN}
+       doins -r vitables/icons
+       dodoc -r doc/*
+       distutils-r1_python_install_all
+}

Reply via email to