Skip to content

Commit f317222

Browse files
authored
Merge pull request #21 from datbtw/datbtw-patch-1
feat(data): add Gentoo Linux installation instructions
2 parents ef5dbea + 65149f7 commit f317222

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

src/data/installer.ts

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export const distros = [
66
{ name: 'openSUSE', icon: 'simple-icons:opensuse' },
77
{ name: 'NixOS', icon: 'simple-icons:nixos' },
88
{ name: 'Void Linux', icon: 'simple-icons:voidlinux' },
9+
{ name: 'Gentoo', icon: 'simple-icons:gentoo' },
910
];
1011

1112
export type StepBlock =
@@ -162,6 +163,46 @@ export const logic = {
162163
Source:
163164
'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',
164165
},
166+
Gentoo: {
167+
'Package Manager': [
168+
{
169+
type: 'text',
170+
content:
171+
'Gói fcitx5-lotus hiện có sẵn trên overlay chính thức GURU của Gentoo.',
172+
},
173+
{
174+
type: 'text',
175+
content: '1. Kích hoạt và đồng bộ overlay GURU:',
176+
},
177+
{
178+
type: 'code',
179+
content:
180+
'sudo eselect repository enable guru\nsudo emaint sync -r guru',
181+
},
182+
{
183+
type: 'text',
184+
content:
185+
'2. Mở khóa testing keyword (~amd64) nếu đang chạy profile stable:',
186+
},
187+
{
188+
type: 'code',
189+
content:
190+
'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',
191+
},
192+
{
193+
type: 'text',
194+
content: '3. Cài đặt gói:',
195+
},
196+
{
197+
type: 'code',
198+
content: 'sudo emerge --ask app-i18n/fcitx5-lotus',
199+
},
200+
],
201+
Binary:
202+
'Gentoo là bản phân phối source-based, khuyến khích cài đặt qua Package Manager (GURU overlay).',
203+
Source:
204+
'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',
205+
},
165206
},
166207
autostart: {
167208
GNOME: 'GNOME Tweaks → Startup Applications → Add → Fcitx 5',

0 commit comments

Comments
 (0)