summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author0x501D <mail@void.so>2021-08-15 11:11:27 +0300
committer0x501D <mail@void.so>2021-08-15 11:11:27 +0300
commit706c95ef76ddeccc2aacb430a66b8fc3a6f29a01 (patch)
treec5b5be2dfb65b548f80a53281695fa6f17491f2c
parentbf494c39a2617307853cca75ec328c7a47c4627c (diff)
build: rename misleading flag
-rw-r--r--CMakeLists.txt6
-rw-r--r--pkg/linux/gentoo/metadata.xml3
-rw-r--r--pkg/linux/gentoo/nemu-9999.ebuild6
-rw-r--r--src/nm_main.c2
4 files changed, 10 insertions, 7 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 296dcbd..9a13902 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -69,7 +69,7 @@ option(NM_WITH_DBUS "Build with D-Bus support" OFF)
option(NM_WITH_QEMU "Build with embedded QEMU" OFF)
option(NM_WITH_NCURSES "Build with embedded statically linked ncurses" OFF)
option(NM_WITH_REMOTE "Build with remote control" OFF)
-option(NM_USE_UTF "Unicode support" OFF)
+option(NM_WITH_UNICODE_GLYPHS "Build with unicode glyphs" OFF)
include_directories(src)
aux_source_directory(src SRC_LIST)
@@ -172,8 +172,8 @@ if(NM_WITH_SPICE)
add_definitions(-DNM_WITH_SPICE)
endif()
-if (NM_USE_UTF)
- add_definitions(-DNM_USE_UTF)
+if (NM_WITH_UNICODE_GLYPHS)
+ add_definitions(-DNM_WITH_UNICODE_GLYPHS)
endif()
if(NM_WITH_OVF_SUPPORT)
diff --git a/pkg/linux/gentoo/metadata.xml b/pkg/linux/gentoo/metadata.xml
index 7a80a1c..cbf5eb6 100644
--- a/pkg/linux/gentoo/metadata.xml
+++ b/pkg/linux/gentoo/metadata.xml
@@ -8,6 +8,9 @@
<use>
<flag name="vnc-client">Adds support for external VNC client</flag>
<flag name="savevm">Adds support for QEMU savevm snapshots (experimental, QEMU must be patched)</flag>
+ <flag name="glyphs">Adds support for unicode glyphs</flag>
+ <flag name="remote-api">Adds API for remote control</flag>
+ <flag name="spice">Adds SPICE protocol support</flag>
<flag name="ovf">Adds support for OVA/OVF import</flag>
</use>
</pkgmetadata>
diff --git a/pkg/linux/gentoo/nemu-9999.ebuild b/pkg/linux/gentoo/nemu-9999.ebuild
index e3bc371..8d93979 100644
--- a/pkg/linux/gentoo/nemu-9999.ebuild
+++ b/pkg/linux/gentoo/nemu-9999.ebuild
@@ -13,7 +13,7 @@ SRC_URI=""
LICENSE="BSD-2"
SLOT="0"
-IUSE="+vnc-client +ovf +spice dbus svg utf remote-api"
+IUSE="+vnc-client +ovf +spice dbus svg glyphs remote-api"
RDEPEND="
dev-libs/json-c
@@ -21,7 +21,7 @@ RDEPEND="
dev-db/sqlite:3=
dev-libs/libusb:1=
|| ( sys-fs/eudev sys-fs/udev sys-apps/systemd )
- >=app-emulation/qemu-2.12.0[vnc,virtfs,spice?]
+ >=app-emulation/qemu-6.0.0-r2[vnc,virtfs,spice?]
ovf? (
dev-libs/libxml2
app-arch/libarchive
@@ -40,7 +40,7 @@ src_configure() {
-DNM_WITH_REMOTE=$(usex remote-api)
-DNM_WITH_SPICE=$(usex spice)
-DNM_WITH_DBUS=$(usex dbus)
- -DNM_USE_UTF=$(usex utf)
+ -DNM_WITH_UNICODE_GLYPHS=$(usex glyphs)
-DCMAKE_INSTALL_PREFIX=/usr
)
cmake-utils_src_configure
diff --git a/src/nm_main.c b/src/nm_main.c
index c03ada0..f61f8c9 100644
--- a/src/nm_main.c
+++ b/src/nm_main.c
@@ -237,7 +237,7 @@ static void nm_print_feset(void)
nm_vect_t feset = NM_INIT_VECT;
nm_str_t msg = NM_INIT_STR;
-#ifdef NM_USE_UTF
+#ifdef NM_WITH_UNICODE_GLYPHS
#define NM_FESET_YES "\u2611"
#define NM_FESET_NO "\u2610"
#else