app-editors/antigravity: add 1.11.3.6583016683339776
Signed-off-by: Zakk <admin@zakk.au>
This commit is contained in:
1 parent
2b0b720acc
commit
aa60f81062
4 files changed
+153
No files matched your search
@@ -0,0 +1 @@
|
||||
DIST antigravity-1.11.3-6583016683339776.tar.gz 220410392 BLAKE2B e1c0e31c6e47a43015274145465d9893230cc22175a384fb4353d592d913557bbbca6edcd29835c5472f5679457cc661701c7241363fa96c55e8fa3487212f95 SHA512 cf5d1600973cc72492d9bc23fd8c2da3d565b8def215a7d97bbfffc0141276043e33f954a6478f0dae713b3f1d37c74205508ecfc954a2bb47665d4da8f85750
|
||||
@@ -0,0 +1,124 @@
|
||||
# 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 shell-completion
|
||||
|
||||
MY_PV="${PV%.*}-${PV##*.}"
|
||||
DESCRIPTION="Google Antigravity - AI-powered code editor"
|
||||
HOMEPAGE="https://antigravity.google/"
|
||||
SRC_URI="https://edgedl.me.gvt1.com/edgedl/release2/j0qc3/antigravity/stable/${MY_PV}/linux-x64/Antigravity.tar.gz -> ${PN}-${MY_PV}.tar.gz"
|
||||
S="${WORKDIR}/Antigravity"
|
||||
|
||||
LICENSE="Google-TOS"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="-* ~amd64"
|
||||
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/fontconfig
|
||||
media-libs/libglvnd
|
||||
media-libs/mesa
|
||||
net-misc/curl
|
||||
net-print/cups
|
||||
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/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 )
|
||||
"
|
||||
|
||||
QA_PREBUILT="*"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
pushd locales > /dev/null || die
|
||||
chromium_remove_language_paks
|
||||
popd > /dev/null || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Disable update server
|
||||
sed -e "/updateUrl/d" -i resources/app/product.json || die
|
||||
|
||||
if ! use kerberos; then
|
||||
rm -r resources/app/node_modules/kerberos || die
|
||||
fi
|
||||
|
||||
dodir /opt/antigravity
|
||||
cp -ar . "${D}/opt/antigravity/" || die
|
||||
|
||||
fperms 4711 /opt/antigravity/chrome-sandbox
|
||||
pax-mark m "${ED}/opt/antigravity/antigravity"
|
||||
dosym ../../opt/antigravity/antigravity /opt/bin/antigravity
|
||||
|
||||
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
|
||||
|
||||
# Desktop file
|
||||
make_desktop_entry \
|
||||
"antigravity ${EXEC_EXTRA_FLAGS[*]}" \
|
||||
"Antigravity" \
|
||||
"antigravity" \
|
||||
"Development;IDE;TextEditor" \
|
||||
"GenericName=Text Editor\nStartupNotify=true\nStartupWMClass=antigravity"
|
||||
|
||||
# Install icon
|
||||
if [[ -f resources/app/resources/linux/code.png ]]; then
|
||||
local size
|
||||
for size in 16 24 32 48 64 128 256 512; do
|
||||
newicon -s "${size}" resources/app/resources/linux/code.png antigravity.png
|
||||
done
|
||||
fi
|
||||
|
||||
# Shell completions
|
||||
if [[ -f resources/completions/bash/antigravity ]]; then
|
||||
newbashcomp resources/completions/bash/antigravity antigravity
|
||||
fi
|
||||
if [[ -f resources/completions/zsh/_antigravity ]]; then
|
||||
newzshcomp resources/completions/zsh/_antigravity _antigravity
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_pkg_postinst
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>admin@zakk.au</email>
|
||||
<name>Zakkaus</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="egl">Use EGL for OpenGL rendering</flag>
|
||||
<flag name="kerberos">Enable Kerberos authentication support</flag>
|
||||
<flag name="wayland">Enable Wayland support with Ozone platform</flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<doc>https://antigravity.google/docs/</doc>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
@@ -0,0 +1,12 @@
|
||||
Google Terms of Service
|
||||
|
||||
These Terms of Service govern your use of Google products and services.
|
||||
For Google Antigravity specifically, see the Additional Terms at:
|
||||
https://policies.google.com/terms
|
||||
|
||||
Additional Terms:
|
||||
- Google Terms of Service: https://policies.google.com/terms
|
||||
- Google Privacy Policy: https://policies.google.com/privacy
|
||||
- Generative AI Additional Terms: https://policies.google.com/terms/generative-ai
|
||||
|
||||
This is proprietary software with specific usage terms.
|
||||
Reference in new issue
Block a user