mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
dev-embedded/arduino-ide: add 2.3.7, definitely different from arduino
- This is definitely a new package, different from package in ::gentoo `dev-embedded/arduino::gentoo` - Arduino IDE 2.x is a completely new application based on Eclipse Theia, and can coexist with the classic Arduino IDE 1.x. Signed-off-by: Huang Rui <vowstar@gmail.com>
This commit is contained in:
1
dev-embedded/arduino-ide/Manifest
Normal file
1
dev-embedded/arduino-ide/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST arduino-ide_2.3.7_Linux_64bit.zip 201090886 BLAKE2B b1f4b82d7a321b14d7a8bcb1ba7a331a624a8b641bb7907168c5dc1cce8ef3a0353b3b374ec97c2478528c2f0a8033a9aed94ce1fa40784b7da121d496c588ad SHA512 05a712d8cf0b1a2f2bbe22e987f0d657eae21e6d168a385e27e078ae0a1e47c06c29cb1456cb626af4188c5414e62c7920b03cef88b11d9fd50a8d38629a80f3
|
||||
97
dev-embedded/arduino-ide/arduino-ide-2.3.7.ebuild
Normal file
97
dev-embedded/arduino-ide/arduino-ide-2.3.7.ebuild
Normal file
@@ -0,0 +1,97 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit desktop xdg
|
||||
|
||||
DESCRIPTION="Arduino IDE 2.x - A modern open-source IDE for Arduino development"
|
||||
HOMEPAGE="https://www.arduino.cc/en/software https://github.com/arduino/arduino-ide"
|
||||
|
||||
SRC_URI="https://github.com/arduino/arduino-ide/releases/download/${PV}/arduino-ide_${PV}_Linux_64bit.zip"
|
||||
S="${WORKDIR}"
|
||||
|
||||
LICENSE="AGPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="-* ~amd64"
|
||||
IUSE="egl wayland"
|
||||
RESTRICT="mirror strip bindist"
|
||||
|
||||
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
|
||||
virtual/zlib
|
||||
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/libXrandr
|
||||
x11-libs/libXScrnSaver
|
||||
x11-libs/pango
|
||||
x11-misc/xdg-utils
|
||||
"
|
||||
|
||||
BDEPEND="app-arch/unzip"
|
||||
|
||||
QA_PREBUILT="*"
|
||||
|
||||
src_install() {
|
||||
# Install application files
|
||||
mkdir -p "${ED}/opt/${PN}" || die
|
||||
cp -r "${S}/arduino-ide_${PV}_Linux_64bit/"* "${ED}/opt/${PN}" || die
|
||||
|
||||
# Fix chrome-sandbox permissions
|
||||
fperms 4755 /opt/${PN}/chrome-sandbox
|
||||
|
||||
# Create symlink for the main executable
|
||||
dosym ../../opt/${PN}/arduino-ide /usr/bin/arduino-ide
|
||||
|
||||
# Build exec flags based on USE flags
|
||||
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
|
||||
|
||||
# Install desktop file with proper exec flags
|
||||
sed "s|@exec_extra_flags@|${EXEC_EXTRA_FLAGS[*]}|g" \
|
||||
"${FILESDIR}/${PN}.desktop" \
|
||||
> "${T}/${PN}.desktop" || die
|
||||
domenu "${T}/${PN}.desktop"
|
||||
|
||||
# Install icon
|
||||
newicon "${ED}/opt/${PN}/resources/app/resources/icons/512x512.png" "${PN}.png"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_pkg_postinst
|
||||
elog "Arduino IDE 2.x has been installed to /opt/${PN}"
|
||||
elog "You can start it by running 'arduino-ide' from the command line"
|
||||
elog "or by selecting it from your application menu."
|
||||
elog ""
|
||||
elog "Note: Arduino IDE 2.x is a completely new application based on"
|
||||
elog "Eclipse Theia, and can coexist with the classic Arduino IDE 1.x."
|
||||
}
|
||||
12
dev-embedded/arduino-ide/files/arduino-ide.desktop
Normal file
12
dev-embedded/arduino-ide/files/arduino-ide.desktop
Normal file
@@ -0,0 +1,12 @@
|
||||
[Desktop Entry]
|
||||
Name=Arduino IDE
|
||||
Comment=Arduino IDE 2.x - Open-source electronics prototyping platform
|
||||
GenericName=Arduino IDE
|
||||
Exec=/usr/bin/arduino-ide @exec_extra_flags@ %U
|
||||
Icon=arduino-ide
|
||||
Type=Application
|
||||
StartupNotify=true
|
||||
StartupWMClass=Arduino IDE
|
||||
Categories=Development;IDE;Electronics;
|
||||
MimeType=text/x-arduino;
|
||||
Keywords=arduino;electronics;microcontroller;embedded;
|
||||
22
dev-embedded/arduino-ide/metadata.xml
Normal file
22
dev-embedded/arduino-ide/metadata.xml
Normal file
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>vowstar@gmail.com</email>
|
||||
<name>Huang Rui</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">arduino/arduino-ide</remote-id>
|
||||
</upstream>
|
||||
<longdescription lang="en">
|
||||
Arduino IDE 2.x is a modern, open-source IDE for Arduino development.
|
||||
Based on the Eclipse Theia framework, it provides features like
|
||||
autocompletion, code navigation, live debugger, and a unified interface
|
||||
for managing libraries and boards.
|
||||
</longdescription>
|
||||
<longdescription lang="zh">
|
||||
Arduino IDE 2.x 是用于 Arduino 开发的现代开源集成开发环境。
|
||||
基于 Eclipse Theia 框架构建,提供自动补全、代码导航、实时调试器
|
||||
以及统一的库和开发板管理界面等功能。
|
||||
</longdescription>
|
||||
</pkgmetadata>
|
||||
Reference in New Issue
Block a user