diff options
| author | Viorel Munteanu <ceamac@gentoo.org> | 2025-09-29 16:36:26 +0300 |
|---|---|---|
| committer | Viorel Munteanu <ceamac@gentoo.org> | 2025-09-29 16:36:26 +0300 |
| commit | 491bf9500aa0e6e10eea83ad6963f7b7cb8cade6 (patch) | |
| tree | e5107dc2cdbfe177778a9018f130ae0e1301d905 /dev-embedded/arduino-builder/arduino-builder-1.5.4-r2.ebuild | |
| parent | 25e867e78ee747861a40065382bc8fda4013bb8f (diff) | |
| download | gentoo-491bf9500aa0e6e10eea83ad6963f7b7cb8cade6.tar.gz gentoo-491bf9500aa0e6e10eea83ad6963f7b7cb8cade6.tar.bz2 gentoo-491bf9500aa0e6e10eea83ad6963f7b7cb8cade6.zip | |
dev-embedded/arduino-builder: update EAPI 7 -> 8
Closes: https://bugs.gentoo.org/695236
Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
Diffstat (limited to 'dev-embedded/arduino-builder/arduino-builder-1.5.4-r2.ebuild')
| -rw-r--r-- | dev-embedded/arduino-builder/arduino-builder-1.5.4-r2.ebuild | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/dev-embedded/arduino-builder/arduino-builder-1.5.4-r2.ebuild b/dev-embedded/arduino-builder/arduino-builder-1.5.4-r2.ebuild new file mode 100644 index 000000000000..93acf810e65b --- /dev/null +++ b/dev-embedded/arduino-builder/arduino-builder-1.5.4-r2.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit go-module + +DESCRIPTION="A command line tool for compiling Arduino sketches" +HOMEPAGE="https://github.com/arduino/arduino-builder" +SRC_URI="https://github.com/arduino/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" +SRC_URI+=" https://dev.gentoo.org/~williamh/dist/${P}-deps.tar.xz" + +LICENSE="GPL-2+" +LICENSE+=" Apache-2.0 BSD BSD-2 GPL-3 LGPL-2.1 MIT MPL-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND="sys-devel/crossdev + dev-embedded/avrdude + dev-embedded/arduino-ctags" + +src_compile() { + GOBIN="${S}"/bin go install . || die +} + +src_install() { + dobin bin/arduino-builder + # In addition to the binary, we also want to install these two files below. They are needed by + # the dev-embedded/arduino which copies those files in its "hardware" folder. + insinto "/usr/share/${PN}" + doins hardware/platform.keys.rewrite.txt + doins "${FILESDIR}/platform.txt" +} + +pkg_postinst() { + [ ! -x /usr/bin/avr-gcc ] && ewarn "Missing avr-gcc; you need to crossdev -s4 avr" +} |
