xterm: install xterm and uxterm desktop files
PATCH 1/2 xterm: install xterm and uxterm desktop files
From: Dmitry Baryshkov <[email protected]>
Modify recipe to install application desktop files for xterm.
Signed-off-by Dmitry Baryshkov <[email protected]>
Signed-off-by Khem Raj <[email protected]>
(cherry picked from commit 593f21eda5b119f6408975c6b15e94fb168cc9dc)
--- meta-oe/recipes-graphics/xorg-app/xterm_353.bb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
meta-oe/recipes-graphics/xorg-app/xterm_353.bb +8 -1
@@ -1,6 +1,6 @@ require recipes-graphics/xorg-app/xorg-app-common.inc SUMMARY = "xterm is the standard terminal emulator for the X Window System" -DEPENDS = "libxaw xorgproto libxext libxau libxinerama libxpm ncurses" +DEPENDS = "libxaw xorgproto libxext libxau libxinerama libxpm ncurses desktop-file-utils-native" LIC_FILES_CHKSUM = "file://xterm.h;beginline=3;endline=31;md5=996b1ce0584c0747b17b57654cc81e8e"
@@ -13,6 +13,9 @@ SRC_URI[sha256sum] = "e521d3ee9def61f5d5c911afc74dd5c3a56ce147c7071c74023ea24cac PACKAGECONFIG ?= "" PACKAGECONFIG[xft] = "--enable-freetype,--disable-freetype,libxft fontconfig freetype-native" +# Let xterm install .desktop files +inherit mime-xdg + EXTRA_OECONF = " --x-includes=${STAGING_INCDIR} \ --x-libraries=${STAGING_LIBDIR} \ FREETYPE_CONFIG=${STAGING_BINDIR_CROSS}/freetype-config \
@@ -30,6 +33,10 @@ do_configure() { oe_runconf } +do_install_append() { + oe_runmake install-desktop DESTDIR="${D}" DESKTOP_FLAGS="--dir=${D}${DESKTOPDIR}" +} + # busybox can supply resize too inherit update-alternatives
Signature · 1 line
2.29.2
PATCH 2/2 xterm: provide virtual/x-terminal-emulator
From: Dmitry Baryshkov <[email protected]>
Signed-off-by Dmitry Baryshkov <[email protected]>
Signed-off-by Khem Raj <[email protected]>
(cherry picked from commit 8826791d795e65851ad20bbc0f34e74b2bf72e07)
--- meta-oe/recipes-graphics/xorg-app/xterm_353.bb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
meta-oe/recipes-graphics/xorg-app/xterm_353.bb +6 -1
@@ -37,7 +37,12 @@ do_install_append() { oe_runmake install-desktop DESTDIR="${D}" DESKTOP_FLAGS="--dir=${D}${DESKTOPDIR}" } +RPROVIDES_${PN} = "virtual/x-terminal-emulator" + # busybox can supply resize too inherit update-alternatives -ALTERNATIVE_${PN} = "resize" +ALTERNATIVE_${PN} = "resize x-terminal-emulator" +ALTERNATIVE_TARGET[x-terminal-emulator] = "${bindir}/xterm" +# rxvt-unicode defaults to priority 10. Let's be one point lower to let it override xterm. +ALTERNATIVE_PRIORITY[x-terminal-emulator] = "9"
Signature · 1 line
2.29.2