Skip to content

Commit

Permalink
qt5-build.eclass: Disable RDEPEND on qtchooser for >=Qt-5.15.1
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
  • Loading branch information
a17r committed Jul 2, 2020
1 parent 3ea9744 commit a7cb868
Showing 1 changed file with 21 additions and 20 deletions.
41 changes: 21 additions & 20 deletions eclass/qt5-build.eclass
Expand Up @@ -112,10 +112,9 @@ BDEPEND="
if [[ ${PN} != qttest ]]; then
DEPEND+=" test? ( ~dev-qt/qttest-${PV} )"
fi
RDEPEND="
dev-qt/qtchooser
"

if ver_test ${PV} -lt 5.15.1; then
RDEPEND="dev-qt/qtchooser"
fi

###### Phase functions ######

Expand Down Expand Up @@ -258,22 +257,24 @@ qt5-build_src_install() {
"${D}${QT5_HEADERDIR}"/QtCore/qconfig.h \
|| die "sed failed (qconfig.h)"

# install qtchooser configuration file
cat > "${T}/qt5-${CHOST}.conf" <<-_EOF_ || die
${QT5_BINDIR}
${QT5_LIBDIR}
_EOF_

(
insinto /etc/xdg/qtchooser
doins "${T}/qt5-${CHOST}.conf"
)

# convenience symlinks
dosym qt5-"${CHOST}".conf /etc/xdg/qtchooser/5.conf
dosym qt5-"${CHOST}".conf /etc/xdg/qtchooser/qt5.conf
# TODO bug 522646: write an eselect module to manage default.conf
dosym qt5.conf /etc/xdg/qtchooser/default.conf
if ver_test ${PV} -lt 5.15.1; then
# install qtchooser configuration file
cat > "${T}/qt5-${CHOST}.conf" <<-_EOF_ || die
${QT5_BINDIR}
${QT5_LIBDIR}
_EOF_

(
insinto /etc/xdg/qtchooser
doins "${T}/qt5-${CHOST}.conf"
)

# convenience symlinks
dosym qt5-"${CHOST}".conf /etc/xdg/qtchooser/5.conf
dosym qt5-"${CHOST}".conf /etc/xdg/qtchooser/qt5.conf
# TODO bug 522646: write an eselect module to manage default.conf
dosym qt5.conf /etc/xdg/qtchooser/default.conf
fi
fi

qt5_install_module_config
Expand Down

0 comments on commit a7cb868

Please sign in to comment.