app-editors/cursor: add 2.20.2, drop 2.1.42,2.1.46

This commit is contained in:
Zakkaus authored and jinqiang zhang committed 2025-12-17 07:38:59 +08:00
1 parent 333e84bd4f
commit 105ea0bd7e
4 files changed
+2 -270

No files matched your search

-2
View File
@@ -1,3 +1 @@
DIST antigravity-1.11.17-6639170008514560.tar.gz 220270537 BLAKE2B ae36bd135c6a125c6169ecc9c894a4c9a9d4c5335bb4879e92355e62edcd7e88e5bf03b63374d7c22371c0cc24640fa37aa3656c4703fa2bb4b19baa7bdec2f9 SHA512 ae15036ce056015f92a0b3defc7cb954f2d0a63509fc5a6ba1d506a9cf6f1a8b87e12ed0f8388c4447327058437a5341dba0e30a6b21e30adb346269afb0f846
DIST antigravity-1.11.5-5234145629700096.tar.gz 220341557 BLAKE2B 03e4e294db4ed4bf257071ca67c7e2e00f5ccc89ce5c4a8c64a9fbdd4b15c85b6145d333deb997305c0bf1de7bf2322cba73587fc5fe7f22e38b2b6f4b829bcc SHA512 50c83374ed6280bf9647c889bf671a466d32ecdd4d3948d9106f8e03aa939bcfb69790dd5f502e3600f9bd2ffbb4eb49f8e4c84b34d193d68db7bf59ffbed9d8
DIST antigravity-1.11.9-4787439284912128.tar.gz 220341699 BLAKE2B 4da3e28e44d10f6c58486e772570245a623e1056b52dbe9fe5b409128eeec9ebb31357933642e89e3aa04743fadc57d291561f528e4b3951b8c03527dbe239d0 SHA512 21050aaf9ece4fa916c4a3fe6031c1c9e5cfb46c93c8b29ea9089bd5fc3257a11745e4c6947d1c4e2f4f6bd5c1c23d4a671ade85a0028f2251bb0211701d586d
+2 -4
View File
@@ -1,4 +1,2 @@
DIST cursor-2.1.42-amd64.deb 140091464 BLAKE2B 72113ece6aaaa8bc4bbf8a0b214cf320f369127d85cad12eeafd10a49a878a22c9c89e1755d532e133af0993f8a013eedd84d0e52da896ba6f962b58182210b5 SHA512 86bf0cbd1bee82313b6338201718b5071288c17f33a56a9c5efbfd87c484b0880af9e7cc05c3e366d5201a242557579752a9ba60fcc5fda87ebb0af5b7621d9a
DIST cursor-2.1.42-arm64.deb 132151956 BLAKE2B a8be3e7df487f483f96af9ba2f9aafc3f7bda2d2b56d90e7e33ec1ea40c254ca45e988c1c707ed13de494236d53174a7d79d43a6f3cd7b8c274007fb1e832b57 SHA512 835c7e157631853f3df8315e1b4a375dab594fb5147d5a3223ea711c9992bc37e01f4859a0bc3da97dfa826d5b301372f8e24d391752149edf3fb21b1c0e5d34
DIST cursor-2.1.46-amd64.deb 140096648 BLAKE2B 6001bf8ce310bf1caa9ba0ee7135ba1bd976eaa2e20a014fa6a6e7adb776b4f82e78ddf1229e7239bec9cd9193975f0f9585ba9fcb99c88b4121768757c2902d SHA512 ee88f3f7608fe5a86799a57d9cd22709782aed2a92930bb71e89903d8768af4b7ed31e5319f0598362623a4b434931248bdb41e4a552db131491c32c13443c9e
DIST cursor-2.1.46-arm64.deb 132139948 BLAKE2B 0b215f0c9b327e69f766f595eec502194126ba3195261e29313f07aae542f55eaa3ece42a10533f805a29659e7e87cf705444181d1448b103d066cf7198b9816 SHA512 10d2f7b96b9a7843dde4a34281d1ffa17a3ec76957694a5bea7192d392becec2ef447e6030c09cf83eba742aeba6f64be25141a3f4cc82566b1e41a3953acea3
DIST cursor-2.2.20-amd64.deb 141134364 BLAKE2B 2074925d33cdf537ac2bf9646a29ff30dd9789d4bc1a45370197d7fff9f5e01b11aa579a846e1049b1084b4e2d12c765c1c896e6919912bccba62d50e98f464c SHA512 6f7a5a733b83a560843dddbd755e0d601e4ae9ce454a6f3d9b75ed70b64856c4b94a7dd6629f13e2b73eb708c8a59f53409b7f082ebc91592847e4d00ced1aa4
DIST cursor-2.2.20-arm64.deb 132945552 BLAKE2B aaaddd963b8a7047205a171f85f01935bb1e6398d42b6a5f1bef99c38b56d8abccfe294240ba5105da4d01ccadcec06a8263f468649604d9c41eeaff5327cd23 SHA512 46021e92afbddc736433634228c81c114f85275fdb53f0c161028cffd69d5859ebb0a0343d5cf0cb415b22fb34e72204c3b1fe73aee2acb03d4fed8f6a31a878
-132
View File
@@ -1,132 +0,0 @@
# Copyright 1999-2025 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="2e353c5f5b30150ff7b874dee5a87660693d9de6"
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"
}
-132
View File
@@ -1,132 +0,0 @@
# Copyright 1999-2025 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="ab326d0767c02fb9847b342c43ea58275c4b1685"
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"
}