diff mbox series

[04/29,v2] package/liberation: ensure at least one typeface is installed

Message ID e5e3726c8667b4f1dd72f72a7071389ddfe76df5.1744229017.git.yann.morin.1998@free.fr
State New
Headers show
Series package: improve for better pulseview integration (branch yem/sdcc-fx2lafw) | expand

Commit Message

Yann E. MORIN April 9, 2025, 8:03 p.m. UTC
It is curently possible to enable liberation, but disable all the
typefaces it would install, which does not make much sense.

Ensure that, when liberation is enabled, at least one typeface is
installed.

Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
---
 package/liberation/Config.in | 6 ++++++
 1 file changed, 6 insertions(+)
diff mbox series

Patch

diff --git a/package/liberation/Config.in b/package/liberation/Config.in
index 8d6b3e78d9..18ad7044a5 100644
--- a/package/liberation/Config.in
+++ b/package/liberation/Config.in
@@ -1,5 +1,6 @@ 
 config BR2_PACKAGE_LIBERATION
 	bool "Liberation (Free fonts)"
+	select BR2_PACKAGE_LIBERATION_MONO if !BR2_PACKAGE_LIBERATION_HAS_FONT
 	help
 	  The Liberation Fonts are intended to be replacements for the
 	  three most commonly used fonts on Microsoft systems:
@@ -9,6 +10,9 @@  config BR2_PACKAGE_LIBERATION
 
 if BR2_PACKAGE_LIBERATION
 
+config BR2_PACKAGE_LIBERATION_HAS_FONT
+	bool
+
 config BR2_PACKAGE_LIBERATION_MONO
 	bool "mono fonts"
 	default y
@@ -16,9 +20,11 @@  config BR2_PACKAGE_LIBERATION_MONO
 config BR2_PACKAGE_LIBERATION_SANS
 	bool "sans fonts"
 	default y
+	select BR2_PACKAGE_LIBERATION_HAS_FONT
 
 config BR2_PACKAGE_LIBERATION_SERIF
 	bool "serif fonts"
 	default y
+	select BR2_PACKAGE_LIBERATION_HAS_FONT
 
 endif