app-editors/qhexedit2: backport fix 952787

Bug: https://bugs.gentoo.org/952787
Closes: https://github.com/gentoo/gentoo/pull/41336
Signed-off-by: Huang Rui <vowstar@gmail.com>
Signed-off-by: Yixun Lan <dlan@gentoo.org>
This commit is contained in:
Huang Rui
2025-03-28 14:05:54 +08:00
committed by Yixun Lan
parent 4ad254426f
commit 37be7e4305

View File

@@ -1,9 +1,9 @@
# 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 python-r1 qmake-utils
EGIT_COMMIT="541139125be034b90b6811a84faa1413e357fd94"
@@ -69,7 +69,13 @@ src_compile() {
export PATH="$(qt5_get_bindir):${PATH}"
python_build() {
pushd "${S}" || die
sip-build || die
# sip-build is not able to handle CFLAGS and CXXFLAGS
# so we need to pass them as QMAKE_CFLAGS and QMAKE_CXXFLAGS
# https://bugs.gentoo.org/952787
sip-build \
--qmake-setting "QMAKE_CFLAGS += ${CFLAGS}" \
--qmake-setting "QMAKE_CXXFLAGS += ${CXXFLAGS}" \
|| die
popd || die
}
python_foreach_impl run_in_build_dir python_build