diff --git a/.github/workflows/overlay.toml b/.github/workflows/overlay.toml index cc17d08a0d..119e6f3ec2 100644 --- a/.github/workflows/overlay.toml +++ b/.github/workflows/overlay.toml @@ -156,6 +156,12 @@ use_latest_release = true prefix = "v" github_account = "peeweep" +["app-editors/kiro"] +source = "regex" +url = "https://kiro.dev/downloads/" +regex = 'signed/([\d.]+)/tar' +github_account = "zakkaus" + ["app-editors/void-editor"] source = "github" github = "voideditor/binaries" diff --git a/app-editors/kiro/Manifest b/app-editors/kiro/Manifest new file mode 100644 index 0000000000..017f54b49a --- /dev/null +++ b/app-editors/kiro/Manifest @@ -0,0 +1 @@ +DIST kiro-1.0.182-amd64.tar.gz 220372721 BLAKE2B 894861d1adadef73b8eb6b73b63c7a56fc0b5595fe5eca965ddf01b1f8e37d206267a2ee1787cc45c27c666d8b1c1b8410afb7d9ed53c3d325f9acba96a8efdc SHA512 7bd51535e9d1c3759573a9d4d730673668418cb719ba3e13c1a97d9646736d27745bc498231e2206e9ce53bf88e2c708fbf411d7a61597ec9cc5a4c7e8dc5fca diff --git a/app-editors/kiro/files/kiro-workspace.xml b/app-editors/kiro/files/kiro-workspace.xml new file mode 100644 index 0000000000..0551eef0f4 --- /dev/null +++ b/app-editors/kiro/files/kiro-workspace.xml @@ -0,0 +1,7 @@ + + + + Kiro Workspace + + + diff --git a/app-editors/kiro/kiro-1.0.182.ebuild b/app-editors/kiro/kiro-1.0.182.ebuild new file mode 100644 index 0000000000..00117271b2 --- /dev/null +++ b/app-editors/kiro/kiro-1.0.182.ebuild @@ -0,0 +1,153 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CHROMIUM_LANGS="af am ar bg bn ca cs da de el en-GB es es-419 et fa fi fil fr gu he + hi hr hu id it ja kn ko lt lv ml mr ms nb nl pl pt-BR pt-PT ro ru sk sl sr + sv sw ta te th tr uk ur vi zh-CN zh-TW" + +inherit chromium-2 desktop optfeature pax-utils shell-completion xdg + +DESCRIPTION="Amazon's agent-first AI IDE with spec-driven development" +HOMEPAGE="https://kiro.dev/" +SRC_URI=" + amd64? ( + https://prod.download.desktop.kiro.dev/releases/stable/linux-x64/signed/${PV}/tar/kiro-ide-${PV}-stable-linux-x64.tar.gz + -> ${P}-amd64.tar.gz + ) +" +S="${WORKDIR}" + +LICENSE="Kiro" +SLOT="0" +KEYWORDS="-* ~amd64" +IUSE="egl kerberos wayland webkit" +RESTRICT="bindist mirror strip" + +RDEPEND=" + || ( + sys-apps/systemd + sys-apps/systemd-utils + ) + >=app-accessibility/at-spi2-core-2.46.0:2 + app-crypt/libsecret[crypt] + app-misc/ca-certificates + dev-libs/expat + dev-libs/glib:2 + dev-libs/nspr + dev-libs/nss + dev-libs/openssl:0/3 + media-libs/alsa-lib + media-libs/libglvnd + media-libs/mesa + net-misc/curl + net-print/cups + sys-apps/dbus + sys-libs/glibc + sys-libs/libcap + sys-process/lsof + virtual/zlib:= + x11-libs/cairo + x11-libs/gtk+:3 + x11-libs/libdrm + x11-libs/libX11 + x11-libs/libxcb + x11-libs/libXcomposite + x11-libs/libXcursor + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXi + x11-libs/libxkbcommon + x11-libs/libxkbfile + x11-libs/libXrandr + x11-libs/libXScrnSaver + x11-libs/pango + x11-misc/xdg-utils + kerberos? ( app-crypt/mit-krb5 ) + webkit? ( + net-libs/libsoup:3.0 + net-libs/webkit-gtk:4.1 + sys-apps/util-linux + ) +" + +QA_PREBUILT="*" + +src_unpack() { + default + mv Kiro "${PN}" || die +} + +pkg_setup() { + [[ -e /usr/src/linux ]] || return + chromium_suid_sandbox_check_kernel_config +} + +src_prepare() { + default + + pushd "${PN}/locales" > /dev/null || die + chromium_remove_language_paks + popd > /dev/null || die +} + +src_install() { + cd "${PN}" || die + + # Updates are managed by Portage. + sed -e "/updateUrl/d" -i resources/app/product.json || die + + if ! use kerberos; then + rm -r resources/app/node_modules/kerberos || die + fi + + if ! use webkit; then + rm -r resources/app/extensions/microsoft-authentication || die + fi + + pax-mark m kiro + mkdir -p "${ED}/opt/${PN}" || die + cp -r . "${ED}/opt/${PN}" || die + fperms 4711 /opt/${PN}/chrome-sandbox + + dosym -r "/opt/${PN}/bin/kiro" "/usr/bin/kiro" + + local exec_extra_flags=() + if use wayland; then + exec_extra_flags+=( + "--ozone-platform-hint=auto" + "--enable-wayland-ime" + "--wayland-text-input-version=3" + ) + fi + use egl && exec_extra_flags+=( "--use-gl=egl" ) + + make_desktop_entry --eapi9 kiro -a "${exec_extra_flags[*]} %F" \ + -n "Kiro" -i kiro -c "TextEditor;Development;IDE" \ + -e "GenericName=Text Editor" -e "StartupNotify=false" \ + -e "StartupWMClass=Kiro" \ + -e "MimeType=application/x-kiro-workspace" + make_desktop_entry --eapi9 kiro \ + -a "${exec_extra_flags[*]} --open-url %U" -d kiro-url-handler \ + -n "Kiro - URL Handler" -i kiro \ + -c "Utility;TextEditor;Development;IDE" -e "NoDisplay=true" \ + -e "StartupNotify=true" -e "MimeType=x-scheme-handler/kiro" + + newicon resources/app/resources/linux/code.png kiro.png + + insinto /usr/share/mime/packages + doins "${FILESDIR}/kiro-workspace.xml" + + newbashcomp resources/completions/bash/kiro kiro + dozshcomp resources/completions/zsh/_kiro + + dodoc resources/app/LICENSE.txt resources/app/ThirdPartyNotices.txt LICENSES.chromium.html +} + +pkg_postinst() { + xdg_pkg_postinst + optfeature "desktop notifications" x11-libs/libnotify + optfeature "keyring service" virtual/secret-service +} diff --git a/app-editors/kiro/metadata.xml b/app-editors/kiro/metadata.xml new file mode 100644 index 0000000000..c134ab7ff6 --- /dev/null +++ b/app-editors/kiro/metadata.xml @@ -0,0 +1,19 @@ + + + + + zakk@gentoozh.org + Zakk + + + Keep the bundled Kerberos authentication module + Keep the bundled Microsoft authentication extension, which needs WebKitGTK + + + Kiro is Amazon's agent-first AI IDE built on Code - OSS, with spec-driven + development that turns prompts into structured specs, tasks, and code. + + + https://kiro.dev/docs/ + + diff --git a/licenses/Kiro b/licenses/Kiro new file mode 100644 index 0000000000..83054b09f3 --- /dev/null +++ b/licenses/Kiro @@ -0,0 +1,14 @@ +Kiro Terms + +Kiro and Kiro CLI are proprietary software distributed by Amazon Web Services. +By downloading and using Kiro you agree to the following terms: + +- AWS Customer Agreement: https://aws.amazon.com/agreement/ +- AWS Intellectual Property License: https://aws.amazon.com/legal/aws-ip-license-terms/ +- AWS Service Terms: https://aws.amazon.com/service-terms/ +- AWS Privacy Notice: https://aws.amazon.com/privacy/ + +See also https://kiro.dev/ for product-specific terms. + +This is proprietary software with specific usage terms; redistribution is not +permitted.