瀏覽代碼

matchbox-terminal: add x-terminal-emulator RPROVIDES and alternative

Add a RPROVIDES for virtual-x-terminal-emulator, so that:
- Packages can RDEPEND on virtual-x-terminal-emulator and know that they
  have installed a terminal
- The x-terminal-emulator binary will (via alternatives) run a terminal

We don't bother with PROVIDES because nobody needs to DEPEND on a terminal,
the entire point of this is that the actual binary is interchangable.

(From OE-Core rev: e1261ed6c3af803371f7a53eff18015828947d30)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Ross Burton 6 月之前
父節點
當前提交
8a78ab6253
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      meta/recipes-sato/matchbox-terminal/matchbox-terminal_0.2.bb

+ 6 - 1
meta/recipes-sato/matchbox-terminal/matchbox-terminal_0.2.bb

@@ -16,6 +16,11 @@ PV = "0.2+git"
 
 S = "${WORKDIR}/git"
 
-inherit autotools pkgconfig features_check
+inherit autotools pkgconfig features_check update-alternatives
 
 ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}"
+
+RPROVIDES:${PN} = "virtual-x-terminal-emulator"
+ALTERNATIVE:${PN} = "x-terminal-emulator"
+ALTERNATIVE_TARGET[x-terminal-emulator] = "${bindir}/matchbox-terminal"
+ALTERNATIVE_PRIORITY[x-terminal-emulator] = "20"