This commit is contained in:
Mario Fetka
2024-12-17 04:55:54 +01:00
parent 903e5c5366
commit db7b30cd48
25 changed files with 416 additions and 27 deletions

View File

@@ -6,6 +6,6 @@ DIST TeensyduinoInstall-157.linux32 91777396 BLAKE2B 277cf1f2957a30989f64d631a3f
DIST TeensyduinoInstall-157.linux64 91777396 BLAKE2B 277cf1f2957a30989f64d631a3fd3f89385b427b46eb3b251cea1843b586f713a588fec5f4bd37a482be93263df74d1d75e1089016abcac5fa17d84a0eaa2956 SHA512 a605174233ec4bede26113e2c54a4ad7a56592825785ef37beca6942c1357dd2d8c69e1f746f02035d120e695605a600f0c56e050cfcd8e78b9c78eea2a63a6b
DIST arduino-1.8.19-linux32.tar.xz 130946688 BLAKE2B 99fa0bef52224b2a358b6c3390981b13fcbfc1b0e64b5e5ad9bc7ffe498e3f11f5efbfe319e4d682e95f4e1735ffd8487b40b0f42dc84b77b010ef885897005f SHA512 b18d0fe8dbc3aaddb58706e1d2e87047d746357418bf3ea308ee388be0d83867bd08d54a1e7a96a239cb95e0b5733d7d68f23cf6585bb2aa7eeec55bf02544d1
DIST arduino-1.8.19-linux64.tar.xz 128583740 BLAKE2B 7e38710540e17dd407289654bb459ef5788e36d25cc6e71086e01cc0318aa75e6d8a15a171926274b60b3b181f7c685c22cd8d0ba2f49b2d4019fafaa777c4e2 SHA512 9328abf8778200019ed40d4fc0e6afb03a4cee8baaffbcea7dd3626477e14243f779eaa946c809fb153a542bf2ed60cf11a5f135c91ecccb1243c1387be95328
EBUILD arduino-bin-1.8.19-r1.ebuild 1514 BLAKE2B 7a9143717fad185eebd037d325e1eb7769121b621d9b26cb38f7c04112578961907dfce75890153ae4a91e769e46f7896f84e9651d9156ada7bd91a5ed56a3f8 SHA512 d849f41aa839e3b90b60ab54aca05d2e496c617f5aef9db32de812aeeb7212afc937a09d2e3a1d466bd63412e0fa5f1b9bc29e68fea7d89af1346e445ce04546
EBUILD arduino-bin-1.8.19-r1.ebuild 1560 BLAKE2B 209190985e27814e3f1481574ad55c5c6197dee9beee0b3211b9828d1364647f4f9fd4ca8d8bd5b4e86d2115497ed71b4360bd5f4a24a3af1ecd711f009c3e72 SHA512 dd5548bd12c8360fa27f39d7210a84993243ee73b028ac656ac684ee7da7253ba75862bcae5804fe2f6ff614e347299cb1d7dd1175127c389cea637b3f5ca7fa
MISC ChangeLog 261 BLAKE2B 3bd3a4abc94a7b3821033dff21f799b24125cd4c15aa5553f506fc16f6d0573ca32579f2b76d43b059552981d5078bd590d1acbd1cc84b19476b4d373ac9e3b1 SHA512 7b2fce01087e449eff734453aa339d4532f73206b112ada464310334ce5be1d2f38bc9778c7f68a068eae7e6fc7a6e1cf5a0be0caef5648f43615464dc695b0a
MISC metadata.xml 408 BLAKE2B 66a3e2838d5c5f95c7463733cd13b1230ef3ca005ec0c5dac797561be30f950da98dfa41eeb4d43cf97500c9a2e0d04c57b0b084d60107072a988dd7c4d16ded SHA512 9cac3e4a07c425e87274de776e03d243e462341168235cd3991ef4706aa1a902cf6591ae8e965b9c4ed370fc2ebef3ca805a9c761d05c4b994ae8667198b267c

View File

@@ -23,8 +23,8 @@ SLOT="0"
KEYWORDS="-* ~amd64 ~x86"
IUSE=""
DEPEND=""
RDEPEND=""
DEPEND="sys-libs/ncurses-compat"
RDEPEND="sys-libs/ncurses-compat"
S="${WORKDIR}/${MY_P}"

View File

@@ -0,0 +1,3 @@
DIST platformio-6.1.16.gh.tar.gz 301208 BLAKE2B c659ee48f509001b18b03bd0846ad2415f78a366aa96fbee6e5aa8ece8ff0c9f6ec4b214957978e4b5ee947c5bcbc702634cc0de7f4d1e712de26117edfda3e6 SHA512 02db74d4cf5aaa08fd7fcdf39649d99583831c2ecfdd941662b8bddbe583156828bd2984a3ad07d438924b875a268a6c1c61f2d6b8fd47e277447f3d5a0d3474
EBUILD platformio-6.1.16.ebuild 3296 BLAKE2B 3c87726718fac5a0b3727d9c47977e2666bc243c00def8f72917701740b5fb72aeff75a5eb199ef5f062d2fd437cc3fae6b09e6f1fa13817dbfe5325fcf6d76f SHA512 a7b20744aeba3a40a24a83216a673c23a903fdee3313c29807d0cede535cf001dabc8fe128ebcf376685a2926fe580f7125566b6351aea493bffd19d169d973b
MISC metadata.xml 340 BLAKE2B 992fa2488c72523eb663bd6bb85608c3ad39e57781bbf08801ac3d34551fdcebd5b80d50bb4353ceefd5bb2228a56101f8ad2cd155d39cd4ff071d8f664a9f60 SHA512 1a596e7fbfb70e5814dc811ff96f3597f744d3e049ed8cd047238557fbeb1c370f22656990d6e30f42cf9193b899686e85c0edd3d1115af93eb4b7866066dc8c

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>alexxy@gentoo.org</email>
<name>Alexey Shvetsov</name>
</maintainer>
<upstream>
<remote-id type="github">platformio/platformio-core</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -0,0 +1,117 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_SINGLE_IMPL=1
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..13} )
inherit distutils-r1 udev
DESCRIPTION="An open source ecosystem for IoT development"
HOMEPAGE="https://platformio.org/"
SRC_URI="https://github.com/platformio/platformio-core/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
S="${WORKDIR}"/${PN}-core-${PV}
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND="
$(python_gen_cond_dep '
>=dev-python/aiofiles-22.1[${PYTHON_USEDEP}]
dev-python/ajsonrpc[${PYTHON_USEDEP}]
<dev-python/bottle-0.14[${PYTHON_USEDEP}]
=dev-python/click-8*[${PYTHON_USEDEP}]
dev-python/colorama[${PYTHON_USEDEP}]
>=dev-python/pyserial-3[${PYTHON_USEDEP}]
<dev-python/pyserial-4[${PYTHON_USEDEP}]
>=dev-python/zeroconf-0.37[${PYTHON_USEDEP}]
=dev-python/requests-2*[${PYTHON_USEDEP}]
>=dev-python/semantic-version-2.10[${PYTHON_USEDEP}]
<dev-python/semantic-version-3[${PYTHON_USEDEP}]
=dev-python/tabulate-0.9*[${PYTHON_USEDEP}]
dev-python/twisted[${PYTHON_USEDEP}]
>=dev-python/pyelftools-0.30[${PYTHON_USEDEP}]
<dev-python/pyelftools-1[${PYTHON_USEDEP}]
=dev-python/marshmallow-3*[${PYTHON_USEDEP}]
>=dev-python/starlette-0.21[${PYTHON_USEDEP}]
>=dev-python/uvicorn-0.19[${PYTHON_USEDEP}]
dev-python/wsproto[${PYTHON_USEDEP}]
')
virtual/udev"
DEPEND="virtual/udev"
BDEPEND="test? ( $(python_gen_cond_dep 'dev-python/jsondiff[${PYTHON_USEDEP}]') )"
# This list could be refined a bit to have individual tests which need network
# (within EPYTEST_DESELECT) but so many need it that it doesn't seem worth it right now.
EPYTEST_IGNORE=(
# Requires network access
tests/test_builder.py
tests/package/test_manager.py
tests/package/test_manifest.py
tests/commands/test_platform.py
tests/commands/test_test.py
tests/commands/test_ci.py
tests/commands/test_init.py
tests/commands/test_lib.py
tests/commands/test_lib_complex.py
tests/commands/test_boards.py
tests/commands/test_check.py
tests/commands/test_run.py
tests/commands/pkg/test_exec.py
tests/commands/pkg/test_list.py
tests/commands/pkg/test_outdated.py
tests/commands/pkg/test_search.py
tests/commands/pkg/test_show.py
tests/commands/pkg/test_install.py
tests/commands/pkg/test_uninstall.py
tests/commands/pkg/test_update.py
tests/misc/ino2cpp/test_ino2cpp.py
tests/test_maintenance.py
tests/test_misc.py
)
EPYTEST_DESELECT=(
# Requires network access
tests/misc/test_maintenance.py::test_check_pio_upgrade
tests/misc/test_misc.py::test_ping_internet_ips
tests/misc/test_misc.py::test_api_cache
)
distutils_enable_tests pytest
python_prepare_all() {
# Allow newer versions of:
# - zeroconf, bug #831181.
# - wsproto
# - semantic_version, bug #853247
# - starlette & uvicorn, bug #888427
sed \
-e '/zeroconf/s/<[0-9.*]*//' \
-e '/wsproto/s/==.*/"/' \
-e '/semantic_version/s/==[0-9.*]*//' \
-e '/starlette/s/==.*/"/' \
-e '/uvicorn/s/==.*/"/' \
-i setup.py || die
distutils-r1_python_prepare_all
}
python_test() {
epytest -k "not skip_ci"
}
src_install() {
distutils-r1_src_install
udev_dorules platformio/assets/system/99-platformio-udev.rules
}
pkg_postinst() {
udev_reload
}
pkg_postrm() {
udev_reload
}