commit: 0760a41b41c5f1e778a836dc1a250c6eb3c3c74f Author: David Seifert <soap <AT> gentoo <DOT> org> AuthorDate: Sat Jan 17 22:37:13 2026 +0000 Commit: David Seifert <soap <AT> gentoo <DOT> org> CommitDate: Sat Jan 17 22:37:13 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0760a41b
app-editors/cursor: add 2.3.41 Signed-off-by: David Seifert <soap <AT> gentoo.org> app-editors/cursor/Manifest | 2 + app-editors/cursor/cursor-2.3.41.ebuild | 133 ++++++++++++++++++++++++++++++++ 2 files changed, 135 insertions(+) diff --git a/app-editors/cursor/Manifest b/app-editors/cursor/Manifest index 804dedb5b042..6cc20280b67b 100644 --- a/app-editors/cursor/Manifest +++ b/app-editors/cursor/Manifest @@ -2,3 +2,5 @@ DIST cursor-2.3.34-amd64.deb 145179472 BLAKE2B 8dc17da354806fe23b66d3c5c30a8af64 DIST cursor-2.3.34-arm64.deb 137175016 BLAKE2B 3759bfee341053d2819cd8439803f15d58880fffea37f6df50d4bf0df868687de66f1f49cb646219e22848a0a814ebbebe2a9e9c49c4014bf4c23754c72820c0 SHA512 4162263d301986117d1e9f41e0442d5ead529d7ebc6245e61b711c6932bc78cfe82d5df82408be8ce84faf7aead0e8e526dce88b2e5d3ac22079ded5b14498fa DIST cursor-2.3.35-amd64.deb 145174388 BLAKE2B cb9c9edb29834ef73325d08803c345eae4818e7dd3c2cbf95c79ac3075e42434536ef5d6864f6bcb927626d9340871d5e2184933e9591ef556f50774c88aca1e SHA512 02018130c73058835a6eb93037e8e7b7f01445c61272d268435649d19d47ffe1e654b24834121a0040633deb9e880ffb4306da2a2f412b97a23038077fe24a95 DIST cursor-2.3.35-arm64.deb 137173536 BLAKE2B c7cbbff74baaf65c1fe2b68c0316a323882fcbba91411a59095c0af12556e9d6565811ce4d11b14d47300db234e9ca5543b92f7954bd7e17d42f437d9d467949 SHA512 d6d427d50a4d62e862533136660f4172889ea71d3ca75dff8fe1b435238f3ea16ce93297a56f7c40b36b37a3355e05801b159bdc0c7bcf561690660aa639dce9 +DIST cursor-2.3.41-amd64.deb 145132372 BLAKE2B 9f349dc63d3037e52714d2a92949de1e674b355eaca68ea8c0b41871d36c7c0f8d73d5d102e7f9bb7961eb71e785162ed038d89594e146a83b448fd3e9549cea SHA512 aa1dd877d0d429c0a190cdc430c7581e035e340fa1c4ef61eff612d720eab04d41140b32aa74172ee711697abcc028a912b193ba52000a5cb43a23bb35b6ad02 +DIST cursor-2.3.41-arm64.deb 137173292 BLAKE2B 4a49ba4d52e6d614ed6911bccb3849d2f78955b0404ff1cab362d6cfbea1f2ea716d1d786ce5738d7e70e76c9e16b680128a689e4ddb3ed6122ff4811cc94cd5 SHA512 4cdc1ef5d775c14a11562b23e8e9f9d93163abb85905426711e746a5156fde30ea0bbf65168cbefd3ea18be92bbb364695490d83e43f5619f9799ef08ed09661 diff --git a/app-editors/cursor/cursor-2.3.41.ebuild b/app-editors/cursor/cursor-2.3.41.ebuild new file mode 100644 index 000000000000..d13703b6e4c9 --- /dev/null +++ b/app-editors/cursor/cursor-2.3.41.ebuild @@ -0,0 +1,133 @@ +# 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 pax-utils unpacker xdg optfeature shell-completion + +# curl -sL "https://www.cursor.com/api/download?platform=linux-x64&releaseTrack=latest" | jq -r '.commitSha' +BUILD_ID="2ca326e0d1ce10956aea33d54c0e2d8c13c58a32" +DESCRIPTION="Cursor App - AI-first coding environment" +HOMEPAGE="https://www.cursor.com/" +SRC_URI=" + amd64? ( + https://downloads.cursor.com/production/${BUILD_ID}/linux/x64/deb/amd64/deb/cursor_${PV}_amd64.deb + -> ${P}-amd64.deb + ) + arm64? ( + https://downloads.cursor.com/production/${BUILD_ID}/linux/arm64/deb/arm64/deb/cursor_${PV}_arm64.deb + -> ${P}-arm64.deb + ) +" +S="${WORKDIR}" + +LICENSE="cursor" +SLOT="0" +KEYWORDS="-* ~amd64 ~arm64" +IUSE="egl kerberos wayland" +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 + media-libs/alsa-lib + media-libs/libglvnd + media-libs/mesa + net-misc/curl + sys-apps/dbus + sys-process/lsof + x11-libs/cairo + x11-libs/gtk+:3 + x11-libs/libdrm + x11-libs/libX11 + x11-libs/libxcb + x11-libs/libXcomposite + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libxkbcommon + x11-libs/libxkbfile + x11-libs/libXrandr + x11-libs/libXScrnSaver + x11-libs/pango + x11-misc/xdg-utils + kerberos? ( app-crypt/mit-krb5 ) +" + +QA_PREBUILT="*" + +CURSOR_HOME="usr/share/cursor" + +src_prepare() { + default + + pushd "${CURSOR_HOME}/locales" >/dev/null || die + chromium_remove_language_paks + popd >/dev/null || die +} + +src_install() { + # disable update server + sed -e "/updateUrl/d" -i "${CURSOR_HOME}/resources/app/product.json" || die + + if ! use kerberos; then + rm -r "${CURSOR_HOME}/resources/app/node_modules/kerberos" || die + fi + + dodir /opt/cursor + cp -ar "${CURSOR_HOME}/." "${D}/opt/cursor/" || die + + fperms 4711 /opt/cursor/chrome-sandbox + pax-mark m /opt/cursor/cursor + dosym ../cursor/cursor /opt/bin/cursor + + local EXEC_EXTRA_FLAGS=() + if use wayland; then + EXEC_EXTRA_FLAGS+=( "--ozone-platform-hint=auto" "--enable-wayland-ime" "--wayland-text-input-version=3" ) + fi + if use egl; then + EXEC_EXTRA_FLAGS+=( "--use-gl=egl" ) + fi + + sed -e "s|^Exec=/.*/cursor|Exec=cursor ${EXEC_EXTRA_FLAGS[*]}|" \ + -e "s|^Icon=.*|Icon=cursor|" \ + usr/share/applications/cursor.desktop >"${T}/cursor.desktop" || die + domenu "${T}/cursor.desktop" + + sed -e "s|^Exec=/.*/cursor|Exec=cursor ${EXEC_EXTRA_FLAGS[*]}|" \ + -e "s|^Icon=.*|Icon=cursor|" \ + usr/share/applications/cursor-url-handler.desktop >"${T}/cursor-url-handler.desktop" || die + domenu "${T}/cursor-url-handler.desktop" + + # Install icon to hicolor theme at multiple sizes for better theme compatibility + local size + for size in 16 24 32 48 64 128 256 512 1024; do + newicon -s "${size}" usr/share/pixmaps/co.anysphere.cursor.png cursor.png + done + + insinto /usr/share/mime/packages + doins usr/share/mime/packages/cursor-workspace.xml + + newbashcomp usr/share/bash-completion/completions/cursor cursor + newzshcomp usr/share/zsh/vendor-completions/_cursor _cursor +} + +pkg_postinst() { + xdg_pkg_postinst + + optfeature "desktop notifications" x11-libs/libnotify + optfeature "keyring support inside cursor" "virtual/secret-service" +}
