dev-util/qwen-code - 0.14.3 (Miezhiko)

Search

Install

Install this version:

emerge -a =dev-util/qwen-code-0.14.3

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-util/qwen-code-0.14.3

Or alternatively:

emerge --autounmask-write -a =dev-util/qwen-code-0.14.3

Package Information

Description:
Qwen Code is a powerful command-line AI workflow tool adapted from Gemini CLI
Homepage:
https://github.com/QwenLM/qwen-code
License:
Apache-2.0

Ebuild Details

Version EAPI Keywords Slot
0.14.3 8 -* ~amd64 ~arm64 0
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DESCRIPTION="Qwen Code is a powerful command-line AI workflow tool adapted from Gemini CLI"
HOMEPAGE="https://github.com/QwenLM/qwen-code"
SRC_URI="https://github.com/QwenLM/qwen-code/releases/download/v${PV}/cli.js -> ${P}.js"
S="${WORKDIR}"

LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="-* ~amd64 ~arm64"

RDEPEND="
	net-libs/nodejs
"

src_install() {
	# nodejs defaults to disabling deprecation warnings when running code
	# from any path containing a node_modules directory. Since we're installing
	# outside of the realm of npm, explicitly pass an option to disable
	# deprecation warnings so it behaves the same as it does if installed via
	# npm. It's proprietary; not like Gentoo users can fix the warnings anyway.
	sed -i 's/env node/env -S node --no-deprecation/' "${DISTDIR}/${P}.js" || die

	newbin "${DISTDIR}/${P}.js" qwen
}

pkg_postinst() {
    elog "qwen-code requires a specific version of web-tree-sitter's WASM file."
    elog "Run the following commands to set it up:"
    elog ""
    elog "  npm install -g web-tree-sitter@0.24.7"
    elog "  mkdir -p /usr/bin/vendor/tree-sitter"
    elog "  ln -s /usr/lib64/node_modules/web-tree-sitter/tree-sitter.wasm \\"
    elog "        /usr/bin/vendor/tree-sitter/tree-sitter.wasm"
}

Dependencies

RDEPEND

	net-libs/nodejs

Manifest for 0.14.3

Type File Size Source URLs
DIST qwen-code-0.14.3.js 23735399 bytes https://github.com/QwenLM/qwen-code/releases/download/v0.14.3/cli.js