mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 17:09:10 -07:00
app-editors/cursor: add 2.3.35
Signed-off-by: David Seifert <soap@gentoo.org>
This commit is contained in:
@@ -1,2 +1,4 @@
|
||||
DIST cursor-2.3.34-amd64.deb 145179472 BLAKE2B 8dc17da354806fe23b66d3c5c30a8af6480cc76cc5333018129df8f894c7d7fc1bf9e34b5770d14dd17a6a4ab39070c860836c422eb7d0f908de668d2ab89f24 SHA512 deec916e163ef74130fedbc2bdc128cdf4cf10e833bb75f024fca7495ebcf05b8ae81197c161b5fe6d70cb307680bef0fbfbbc744b21f77c58124aa3a084a745
|
||||
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
|
||||
|
||||
133
app-editors/cursor/cursor-2.3.35.ebuild
Normal file
133
app-editors/cursor/cursor-2.3.35.ebuild
Normal file
@@ -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="cf8353edc265f5e46b798bfb276861d0bf3bf129"
|
||||
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"
|
||||
}
|
||||
Reference in New Issue
Block a user