app-misc/lcd4linux: fix Python 3.7 usage

Missed by CI as the usage was via usex. We need to use python-utils-r1's helpers
instead (but note, a pkg-config hack would've been a bit more portable if
those didn't exist).

Closes: https://bugs.gentoo.org/793869
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2021-06-02 12:21:26 +00:00
parent 92186944f7
commit f2f53f7355
@@ -3,7 +3,7 @@
EAPI=7
PYTHON_COMPAT=( python3_{7,8,9} )
PYTHON_COMPAT=( python3_{8,9} )
inherit autotools flag-o-matic python-single-r1
@@ -142,7 +142,8 @@ src_prepare() {
rm ax_python_devel.m4
# Use correct python version.
append-libs "-lpython${EPYTHON#python}$(usex python_single_target_python3_7 'm' '')"
# (See: bug #793869)
append-libs $(python_get_LIBS)
fi
eautoreconf
@@ -193,6 +194,6 @@ src_install() {
pkg_postinst() {
if [[ ! -z ${REPLACING_VERSIONS} ]]; then
use python && einfo "Starting with that version, the python plugins uses now python3 instead if python2!"
use python && einfo "Starting with this version, the python plugins now uses python3 instead of python2!"
fi
}