diff options
author | Sam James <sam@gentoo.org> | 2023-06-12 00:03:32 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-06-12 20:10:44 +0100 |
commit | 4229c3100df6d51f102c2e70d3f3cfbca6cd23a6 (patch) | |
tree | bc28c44ffef1cc1406bf210467376f0211e02c26 /dev-libs/serdisplib | |
parent | dev-db/sqlite: microoptimize (diff) | |
download | gentoo-4229c3100df6d51f102c2e70d3f3cfbca6cd23a6.tar.gz gentoo-4229c3100df6d51f102c2e70d3f3cfbca6cd23a6.tar.bz2 gentoo-4229c3100df6d51f102c2e70d3f3cfbca6cd23a6.zip |
dev-libs/serdisplib: microoptimize
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-libs/serdisplib')
-rw-r--r-- | dev-libs/serdisplib/serdisplib-2.02-r2.ebuild | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/dev-libs/serdisplib/serdisplib-2.02-r2.ebuild b/dev-libs/serdisplib/serdisplib-2.02-r2.ebuild index 63f9e8620b12..ba4565132b83 100644 --- a/dev-libs/serdisplib/serdisplib-2.02-r2.ebuild +++ b/dev-libs/serdisplib/serdisplib-2.02-r2.ebuild @@ -21,12 +21,14 @@ IUSE_LCD_DEVICES=( rs232 sed133x sed153x sed156x ssdoled stv8105 t6963 vssdcp ) +printf -v mangled_lcd_devices 'lcd_devices_%s ' ${IUSE_LCD_DEVICES[@]} + # Add supported drivers from 'IUSE_LCD_DEVICES' to 'IUSE' and 'REQUIRED_USE'. # Also enable 'lcd_devices_directgfx' as default. -IUSE+=" $(printf 'lcd_devices_%s ' ${IUSE_LCD_DEVICES[@]}) " +IUSE+=" ${mangled_lcd_devices}" IUSE="${IUSE/lcd_devices_directgfx/+lcd_devices_directgfx}" REQUIRED_USE+=" - || ( $(printf 'lcd_devices_%s ' ${IUSE_LCD_DEVICES[@]}) ) + || ( ${mangled_lcd_devices} ) lcd_devices_framebuffer? ( threads ) " |