From 65149f7aa3d692fbd5827c5047c1df6edc13b580 Mon Sep 17 00:00:00 2001 From: datbtw Date: Tue, 8 Sep 2026 09:55:09 +0700 Subject: [PATCH] feat(data): add Gentoo Linux installation instructions This PR adds Gentoo Linux installation instructions to the interactive installer via the official GURU overlay (`app-i18n/fcitx5-lotus`). --- src/data/installer.ts | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/src/data/installer.ts b/src/data/installer.ts index b94ca34..288d5c9 100644 --- a/src/data/installer.ts +++ b/src/data/installer.ts @@ -6,6 +6,7 @@ export const distros = [ { name: 'openSUSE', icon: 'simple-icons:opensuse' }, { name: 'NixOS', icon: 'simple-icons:nixos' }, { name: 'Void Linux', icon: 'simple-icons:voidlinux' }, + { name: 'Gentoo', icon: 'simple-icons:gentoo' }, ]; export type StepBlock = @@ -162,6 +163,46 @@ export const logic = { Source: 'sudo xbps-install -S fcitx5 fcitx5-configtool fcitx5-gtk fcitx5-qt acl acl-progs cmake extra-cmake-modules libfcitx5-devel libinput-devel eudev-libudev-devel gcc go gettext-devel pkg-config hicolor-icon-theme libX11-devel python3-QtPy python3-PyQt5 python3-pyqt6 python3-pyqt6-gui python3-pyqt6-widgets librsvg\n\ngit clone https://github.com/LotusInputMethod/fcitx5-lotus.git\ncd fcitx5-lotus\ngit submodule update --init --recursive\nmkdir build && cd build\ncmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=/usr/lib -DINSTALL_RUNIT=ON -DRUNIT_SV_DIR=/etc/sv ..\nmake\nsudo make install', }, + Gentoo: { + 'Package Manager': [ + { + type: 'text', + content: + 'Gói fcitx5-lotus hiện có sẵn trên overlay chính thức GURU của Gentoo.', + }, + { + type: 'text', + content: '1. Kích hoạt và đồng bộ overlay GURU:', + }, + { + type: 'code', + content: + 'sudo eselect repository enable guru\nsudo emaint sync -r guru', + }, + { + type: 'text', + content: + '2. Mở khóa testing keyword (~amd64) nếu đang chạy profile stable:', + }, + { + type: 'code', + content: + 'echo "app-i18n/fcitx5-lotus ~amd64" | sudo tee -a /etc/portage/package.accept_keywords/fcitx5-lotus\necho "acct-user/uinput-proxy ~amd64" | sudo tee -a /etc/portage/package.accept_keywords/fcitx5-lotus', + }, + { + type: 'text', + content: '3. Cài đặt gói:', + }, + { + type: 'code', + content: 'sudo emerge --ask app-i18n/fcitx5-lotus', + }, + ], + Binary: + 'Gentoo là bản phân phối source-based, khuyến khích cài đặt qua Package Manager (GURU overlay).', + Source: + 'git clone https://github.com/LotusInputMethod/fcitx5-lotus.git\ncd fcitx5-lotus\ngit submodule update --init --recursive\nmkdir build && cd build\ncmake -DCMAKE_INSTALL_PREFIX=/usr ..\nmake\nsudo make install', + }, }, autostart: { GNOME: 'GNOME Tweaks → Startup Applications → Add → Fcitx 5',