package/kibi: new package
PATCH 1/1 package/kibi: new package
This commit adds "kibi" a configurable text editor with UTF-8 support, incremental search, syntax highlighting, line numbers and more, written in less than 1024 lines of Rust with minimal dependencies.
https://github.com/ilai-deutel/kibi
--- DEVELOPERS | 1 + package/Config.in | 1 + package/kibi/Config.in | 20 ++++++++++++++++++++ package/kibi/kibi.hash | 3 +++ package/kibi/kibi.mk | 21 +++++++++++++++++++++ 5 files changed, 46 insertions(+) create mode 100644 package/kibi/Config.in create mode 100644 package/kibi/kibi.hash create mode 100644 package/kibi/kibi.mk
DEVELOPERS +1 -0
@@ -88,6 +88,7 @@ F: package/cpp-httplib/ N: Alexander Shirokov <[email protected]> F: package/broot/ +F: package/kibi/ F: package/nnn/ N: Alessandro Partesotti <[email protected]>
package/Config.in +1 -0
@@ -2941,6 +2941,7 @@ menu "Text editors and viewers" source "package/bvi/Config.in" source "package/ed/Config.in" source "package/joe/Config.in" + source "package/kibi/Config.in" source "package/less/Config.in" source "package/mc/Config.in" source "package/mg/Config.in"
package/kibi/Config.in new file +20 -0
@@ -0,0 +1,20 @@ +config BR2_PACKAGE_KIBI + bool "kibi" + depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS + select BR2_PACKAGE_HOST_RUSTC + help + A configurable text editor with UTF-8 support, incremental + search, syntax highlighting, line numbers and more, written + in less than 1024 lines of Rust with minimal dependencies. + + https://github.com/ilai-deutel/kibi + +if BR2_PACKAGE_KIBI + +config BR2_PACKAGE_KIBI_SYNTAX_HIGHLIGHTING + bool "syntax highlighting" + default y + help + Install files to enable syntax highlighting. This option adds + 200 KB of data to /usr/share/ +endif
package/kibi/kibi.hash new file +3 -0
@@ -0,0 +1,3 @@ +# Locally generated +sha256 0a2cdd264fadf455ed919e5d4c12ab25614735dfe0b30895004ce4f3919d7eff kibi-0.3.1-cargo4.tar.gz +sha256 53cdcb17642e801f813712b4844293b037c23d4b482004b77c15ae2f36f551c3 LICENSE-MIT
package/kibi/kibi.mk new file +21 -0
@@ -0,0 +1,21 @@ +################################################################################ +# +# kibi +# +################################################################################ + +KIBI_VERSION = 0.3.1 +KIBI_SITE = $(call github,ilai-deutel,kibi,v$(KIBI_VERSION)) +KIBI_LICENSE = MIT +KIBI_LICENSE_FILES = LICENSE-MIT + +define KIBI_INSTALL_SYNTAX_HIGHLIGHTING_CMDS + $(INSTALL) -d -m 0755 $(TARGET_DIR)/usr/share/kibi/syntax.d + $(INSTALL) -m 0644 $(@D)/syntax.d/*.ini $(TARGET_DIR)/usr/share/kibi/syntax.d +endef + +ifeq ($(BR2_PACKAGE_KIBI_SYNTAX_HIGHLIGHTING),y) +KIBI_POST_INSTALL_TARGET_HOOKS += KIBI_INSTALL_SYNTAX_HIGHLIGHTING_CMDS +endif + +$(eval $(cargo-package))
Signature · 6 lines
2.52.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Thomas Petazzoni via buildroot
AppliedHello Alexander,
Quoted 7 lines · On Wed, 19 Nov 2025 12:20:33 +0100 Alexander Shirokov…
This commit adds "kibi" a configurable text editor with UTF-8 support, incremental search, syntax highlighting, line numbers and more, written in less than 1024 lines of Rust with minimal dependencies.
https://github.com/ilai-deutel/kibi
Signed-off-by Alexander Shirokov <[email protected]>
Thanks, applied with some changes.
Quoted 15 lines
package/kibi/Config.in new file +9
-0@@ -0,0 +1,20 @@ +config BR2_PACKAGE_KIBI + bool "kibi" + depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS + select BR2_PACKAGE_HOST_RUSTC + help + A configurable text editor with UTF-8 support, incremental + search, syntax highlighting, line numbers and more, written + in less than 1024 lines of Rust with minimal dependencies. +
package/kibi/Config.in line 19
Quoted 10 lines
package/kibi/Config.in new file +10
-0+ https://github.com/ilai-deutel/kibi + +if BR2_PACKAGE_KIBI + +config BR2_PACKAGE_KIBI_SYNTAX_HIGHLIGHTING + bool "syntax highlighting" + default y + help + Install files to enable syntax highlighting. This option adds + 200 KB of data to /usr/share/
Added an empty line here.
Quoted 16 lines
package/kibi/Config.in new file +1
-0+endifpackage/kibi/kibi.hash new file +3
-0@@ -0,0 +1,3 @@ +# Locally generated +sha256 0a2cdd264fadf455ed919e5d4c12ab25614735dfe0b30895004ce4f3919d7eff kibi-0.3.1-cargo4.tar.gz +sha256 53cdcb17642e801f813712b4844293b037c23d4b482004b77c15ae2f36f551c3 LICENSE-MITpackage/kibi/kibi.mk new file +0
-0
package/kibi/kibi.mk line 9
Quoted 9 lines
package/kibi/kibi.mk new file +9
-0@@ -0,0 +1,21 @@ +################################################################################ +# +# kibi +# +################################################################################ + +KIBI_VERSION = 0.3.1 +KIBI_SITE = $(call github,ilai-deutel,kibi,v$(KIBI_VERSION)) +KIBI_LICENSE = MIT
Changed to MIT or Apache-2.0
package/kibi/kibi.mk line 10
Quoted 1 line
package/kibi/kibi.mk new file +1
-0+KIBI_LICENSE_FILES = LICENSE-MIT
Added LICENSE-APACHE here.
package/kibi/kibi.mk line 12
Quoted 2 lines
package/kibi/kibi.mk new file +2
-0+ +define KIBI_INSTALL_SYNTAX_HIGHLIGHTING_CMDS
Remove the _CMDS suffix, to be consistent with what we do in most other packages.
package/kibi/kibi.mk line 13
Quoted 1 line
package/kibi/kibi.mk new file +1
-0+ $(INSTALL) -d -m 0755 $(TARGET_DIR)/usr/share/kibi/syntax.d
Changed to mkdir -p, also for consistency.
package/kibi/kibi.mk line 14
Quoted 1 line
package/kibi/kibi.mk new file +1
-0+ $(INSTALL) -m 0644 $(@D)/syntax.d/*.ini $(TARGET_DIR)/usr/share/kibi/syntax.d
Changed to cp -dpfr, also for consistency.
package/kibi/kibi.mk line 15
Quoted 1 line
package/kibi/kibi.mk new file +1
-0+endef
Also I moved this variable definition...
package/kibi/kibi.mk line 17
Quoted 2 lines
package/kibi/kibi.mk new file +2
-0+ +ifeq ($(BR2_PACKAGE_KIBI_SYNTAX_HIGHLIGHTING),y)
... inside this condition.
package/kibi/kibi.mk line 21
Quoted 4 lines
package/kibi/kibi.mk new file +4
-0+KIBI_POST_INSTALL_TARGET_HOOKS += KIBI_INSTALL_SYNTAX_HIGHLIGHTING_CMDS +endif + +$(eval $(cargo-package))
Applied to master with those changes. Thanks!
Thomas
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot