app-editors/kiro: new package, add 1.0.182
Signed-off-by: Zakk <zakk@gentoozh.org>
This commit is contained in:
1 parent
f4bd2cf66c
commit
f83fe8daa4
6 files changed
+200
No files matched your search
@@ -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"
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
DIST kiro-1.0.182-amd64.tar.gz 220372721 BLAKE2B 894861d1adadef73b8eb6b73b63c7a56fc0b5595fe5eca965ddf01b1f8e37d206267a2ee1787cc45c27c666d8b1c1b8410afb7d9ed53c3d325f9acba96a8efdc SHA512 7bd51535e9d1c3759573a9d4d730673668418cb719ba3e13c1a97d9646736d27745bc498231e2206e9ce53bf88e2c708fbf411d7a61597ec9cc5a4c7e8dc5fca
|
||||
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
|
||||
<mime-type type="application/x-kiro-workspace">
|
||||
<comment>Kiro Workspace</comment>
|
||||
<glob pattern="*.code-workspace"/>
|
||||
</mime-type>
|
||||
</mime-info>
|
||||
@@ -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
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>zakk@gentoozh.org</email>
|
||||
<name>Zakk</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="kerberos">Keep the bundled Kerberos authentication module</flag>
|
||||
<flag name="webkit">Keep the bundled Microsoft authentication extension, which needs WebKitGTK</flag>
|
||||
</use>
|
||||
<longdescription lang="en">
|
||||
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.
|
||||
</longdescription>
|
||||
<upstream>
|
||||
<doc>https://kiro.dev/docs/</doc>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
@@ -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.
|
||||
Reference in new issue
Block a user