commit:     0daeb20c4f7a0246624d0fc3d394021c3fcecb4c
Author:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
AuthorDate: Sat Oct  3 18:15:44 2020 +0000
Commit:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Sat Oct  3 18:15:44 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0daeb20c

app-misc/lcd4linux: fix newer python versions

Package-Manager: Portage-3.0.8, Repoman-3.0.1
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>

 app-misc/lcd4linux/lcd4linux-0.11.0_pre20170527-r5.ebuild | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/app-misc/lcd4linux/lcd4linux-0.11.0_pre20170527-r5.ebuild 
b/app-misc/lcd4linux/lcd4linux-0.11.0_pre20170527-r5.ebuild
index cfb01cb2821..4415c3b2ae7 100644
--- a/app-misc/lcd4linux/lcd4linux-0.11.0_pre20170527-r5.ebuild
+++ b/app-misc/lcd4linux/lcd4linux-0.11.0_pre20170527-r5.ebuild
@@ -24,7 +24,7 @@ REQUIRED_USE="
 # Some drivers were removed from this list:
 # - lcdlinux: It's an ancient driver, which needs app-misc/lcd-linux, that 
made it never to the portage tree.
 # - lcdlinux: Besides, app-misc/lcd-linux won't compile on a modern linux 
kernel.
-# - st2205: It's needs dev-libs/libst2205,  which made it never to the portage 
tree and is quite outdated.
+# - st2205: It's needs dev-libs/libst2205, which made it never to the portage 
tree and is quite outdated.
 IUSE_LCD_DEVICES=(
        ASTUSB BeckmannEgle BWCT CrystalFontz Curses Cwlinux D4D DPF 
EA232graphic EFN FutabaVFD
        FW8888 G15 GLCD2USB HD44780 HD44780-I2C IRLCD LCD2USB LCDTerm LEDMatrix 
LPH7508 LUIse LW_ABP M50530
@@ -142,7 +142,11 @@ src_prepare() {
                rm ax_python_devel.m4
 
                # Use correct python version.
-               append-libs "-lpython${EPYTHON#python}m"
+               if use python_single_target_python3_6 || use 
python_single_target_python3_7; then
+                       append-libs "-lpython${EPYTHON#python}m"
+               else
+                       append-libs "-lpython${EPYTHON#python}"
+               fi
        fi
 
        eautoreconf

Reply via email to