sci-chemistry/vmd: enable py3.13

Thanks-to: he.ousia
Thanks-to: nanikata15
Closes: https://bugs.gentoo.org/952657
Closes: https://bugs.gentoo.org/947213
Signed-off-by: Pacho Ramos <pacho@gentoo.org>
This commit is contained in:
Pacho Ramos
2025-04-08 18:20:18 +02:00
parent 7aff8f5c50
commit c734eaf8a6
2 changed files with 16 additions and 2 deletions

View File

@@ -0,0 +1,11 @@
--- a/src/SelectionBuilder.C 2022-04-27 15:21:15.000000000 +0900
+++ b/src/SelectionBuilder.C 2025-03-20 15:02:33.086330280 +0900
@@ -182,7 +182,7 @@
int line = self->macrobrowser->value();
if (!line) {
- self->macrooutput->value(NULL);
+ self->macrooutput->value("");
return;
}
const char *name = self->macrobrowser->text(line);

View File

@@ -1,8 +1,8 @@
# Copyright 1999-2024 Gentoo Authors
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{10..12} )
PYTHON_COMPAT=( python3_{10..13} )
inherit cuda desktop prefix python-single-r1 toolchain-funcs xdg
@@ -120,6 +120,9 @@ src_prepare() {
# https://www.ks.uiuc.edu/Research/vmd/mailing_list/vmd-l/32122.html
eapply "${WORKDIR}"/${PN}-patches/${PN}-1.9.4-tmpdir.patch
# https://bugs.gentoo.org/947213
eapply "${FILESDIR}"/${P}-fltk-null.patch
# PREFIX
sed \
-e "s:/usr/include/:${EPREFIX}/usr/include:g" \