python3_11 no longer resolves for packages depending on dev-python/requests, which dropped it. Raise the PYTHON_COMPAT floor to python3_12 across every package in the overlay that still allowed python3_11, keeping the python3_14 profile default (ceiling raised to python3_14 where it was lower). python3_15 is only kept where it was already declared and verified on 3.15 (mwparserfromhell: builds and tests pass); it is not added elsewhere, since python3.15 is not installed here and could not be build-tested. Bug: https://github.com/gentoo-zh/overlay/issues/11037
59 lines
1.5 KiB
Bash
59 lines
1.5 KiB
Bash
# Copyright 2025-2026 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
DISTUTILS_EXT=1
|
|
DISTUTILS_USE_PEP517=sip
|
|
PYTHON_COMPAT=( python3_{12..14} )
|
|
inherit distutils-r1 flag-o-matic multiprocessing pypi qmake-utils
|
|
|
|
QT_PV=$(ver_cut 1-2):6
|
|
|
|
DESCRIPTION="Python bindings for QtChart"
|
|
HOMEPAGE="https://www.riverbankcomputing.com/software/pyqtchart/"
|
|
|
|
LICENSE="GPL-3"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64"
|
|
IUSE="debug"
|
|
|
|
RDEPEND="
|
|
>=dev-python/pyqt6-${QT_PV%:*}[gui,opengl,widgets,${PYTHON_USEDEP}]
|
|
>=dev-qt/qtbase-${QT_PV}[gui,opengl,widgets]
|
|
>=dev-qt/qtcharts-${QT_PV}
|
|
"
|
|
DEPEND="${RDEPEND}"
|
|
BDEPEND="
|
|
>=dev-python/pyqt-builder-1.19[${PYTHON_USEDEP}]
|
|
>=dev-python/sip-6.15[${PYTHON_USEDEP}]
|
|
>=dev-qt/qtbase-${QT_PV}
|
|
"
|
|
|
|
src_prepare() {
|
|
default
|
|
|
|
# hack: PyQt-builder runs qmake without our arguments and calls g++
|
|
# or clang++ depending on what qtbase was built with, not used for
|
|
# building but fails with -native-symlinks
|
|
mkdir "${T}"/cxx || die
|
|
local cxx
|
|
! cxx=$(type -P "${CHOST}"-g++) || ln -s -- "${cxx}" "${T}"/cxx/g++ || die
|
|
! cxx=$(type -P "${CHOST}"-clang++) || ln -s -- "${cxx}" "${T}"/cxx/clang++ || die
|
|
PATH=${T}/cxx:${PATH}
|
|
}
|
|
|
|
python_configure_all() {
|
|
append-cxxflags -std=c++17 # for old gcc / clang that use <17 (bug #892331)
|
|
append-cxxflags ${CPPFLAGS} # respect CPPFLAGS notably for DISTUTILS_EXT=1
|
|
|
|
DISTUTILS_ARGS=(
|
|
--jobs="$(makeopts_jobs)"
|
|
--qmake="$(qt6_get_bindir)"/qmake
|
|
--qmake-setting="$(qt6_get_qmake_args)"
|
|
--verbose
|
|
|
|
$(usev debug '--debug --qml-debug --tracing')
|
|
)
|
|
}
|