*/*: qmake-utils.eclass consumers: Make use of qt6_get_libexecdir

Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Part-of: https://github.com/gentoo/gentoo/pull/45527
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Andreas Sturmlechner
2026-01-26 18:24:33 +01:00
committed by Sam James
parent 70a4eda488
commit 16b3ee2a97
10 changed files with 21 additions and 21 deletions

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2025 Gentoo Authors
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -87,7 +87,7 @@ src_configure() {
if use qt6 ; then
export PATH="$(qt6_get_bindir):${PATH}"
export QTLIB="$(qt6_get_libdir):${QTLIB}"
export MOC="$(qt6_get_libdir)/qt6/libexec/moc"
export MOC="$(qt6_get_libexecdir)/moc"
myeconfargs+=(
$(use_enable wayland kf6-wayland)

View File

@@ -1,4 +1,4 @@
# Copyright 2024-2025 Gentoo Authors
# Copyright 2024-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -36,7 +36,7 @@ src_configure() {
-DKDSingleApplication_TESTS=$(usex test)
)
use doc && mycmakeargs+=(
-DQHELPGEN_EXECUTABLE="$(qt6_get_bindir)/../libexec/qhelpgenerator"
-DQHELPGEN_EXECUTABLE="$(qt6_get_libexecdir)/qhelpgenerator"
)
cmake_src_configure
}

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2025 Gentoo Authors
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -62,7 +62,7 @@ src_configure() {
$(usex pdf "CONFIG+=pdf PKGCONFIG+=poppler-qt6" "") \
engauge.pro
pushd help >/dev/null || die
$(qt6_get_libdir)/qt6/libexec/qhelpgenerator engauge.qhp || die
$(qt6_get_libexecdir)/qhelpgenerator engauge.qhp || die
popd >/dev/null || die
}

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2025 Gentoo Authors
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -62,7 +62,7 @@ src_configure() {
$(usex pdf "CONFIG+=pdf PKGCONFIG+=poppler-qt6" "") \
engauge.pro
pushd help >/dev/null || die
$(qt6_get_libdir)/qt6/libexec/qhelpgenerator engauge.qhp || die
$(qt6_get_libexecdir)/qhelpgenerator engauge.qhp || die
popd >/dev/null || die
}

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2024 Gentoo Authors
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -44,7 +44,7 @@ src_prepare() {
sed -e "s|share/doc/\$\${PROJECT_NAME}|share/doc/${PF}|" \
-i doc/doc.pri || die
sed -e "/QHG_LOCATION/s|qhelpgenerator|$(qt6_get_libdir)/qt6/libexec/&|" \
sed -e "/QHG_LOCATION/s|qhelpgenerator|$(qt6_get_libexecdir)/&|" \
-i doc/doxy.conf || die
if ! use doc; then
sed -e "/include( doc\/doc.pri )/d" -i ${PN}.pro || die

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2025 Gentoo Authors
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -58,7 +58,7 @@ PATCHES=(
src_prepare() {
default
sed -e "/QHG_LOCATION/s|qhelpgenerator|$(qt6_get_libdir)/qt6/libexec/&|" \
sed -e "/QHG_LOCATION/s|qhelpgenerator|$(qt6_get_libexecdir)/&|" \
-i {lib/plugins/,lib/SignOn/,}doc/doxy.conf || die
# install docs to correct location

View File

@@ -1,4 +1,4 @@
# Copyright 2001-2025 Gentoo Authors
# Copyright 2001-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -58,7 +58,7 @@ PATCHES=(
src_prepare() {
cmake_src_prepare
sed -e "/QHG_LOCATION/s:\".*\":""$(qt6_get_bindir)/../libexec/qhelpgenerator"":" -i Doxyfile || die
sed -e "/QHG_LOCATION/s:\".*\":""$(qt6_get_libexecdir)/qhelpgenerator"":" -i Doxyfile || die
}
src_configure() {

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2025 Gentoo Authors
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -181,11 +181,11 @@ src_configure() {
# Tell autoconf where to find qt binaries, fix bug #837752
if use gui ; then
export MOC="$(qt6_get_bindir)/../libexec/moc" \
UIC="$(qt6_get_bindir)/../libexec/uic" \
RCC="$(qt6_get_bindir)/../libexec/rcc" \
export MOC="$(qt6_get_libexecdir)/moc" \
UIC="$(qt6_get_libexecdir)/uic" \
RCC="$(qt6_get_libexecdir)/rcc" \
LRELEASE="$(qt6_get_bindir)/lrelease" \
QHELPGENERATOR="$(qt6_get_bindir)/../libexec/qhelpgenerator"
QHELPGENERATOR="$(qt6_get_libexecdir)/qhelpgenerator"
fi
econf "${myeconfargs[@]}"

View File

@@ -20,7 +20,7 @@ src_prepare() {
default
sed -i -e 's/make/$(MAKE)/' Makefile || die
sed -i -e "s|rcc -binary|$(qt6_get_bindir)/../libexec/&|" themes/Makefile || die
sed -i -e "s|rcc -binary|$(qt6_get_libexecdir)/&|" themes/Makefile || die
}
src_install() {

View File

@@ -21,7 +21,7 @@ src_prepare() {
default
# bug 544108
sed -i -e "s|rcc -binary|$(qt6_get_bindir)/../libexec/&|" themes/Makefile || die
sed -i -e "s|rcc -binary|$(qt6_get_libexecdir)/&|" themes/Makefile || die
# bug 544160
sed -i -e 's/make/$(MAKE)/' Makefile || die