Gentoo Archives: gentoo-commits

From: Alexey Shvetsov <alexxy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-embedded/platformio/
Date: Wed, 14 Sep 2022 20:21:04
Message-Id: 1663186839.d133328a074da76a1f0172968f5fb360453bf725.alexxy@gentoo
1 commit: d133328a074da76a1f0172968f5fb360453bf725
2 Author: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
3 AuthorDate: Wed Sep 14 20:13:52 2022 +0000
4 Commit: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 14 20:20:39 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d133328a
7
8 dev-embedded/platformio: Add udev_reload
9
10 Closes: https://bugs.gentoo.org/842096
11 Signed-off-by: Alexey Shvetsov (Alexey Shvetsov) <alexxy <AT> gentoo.org>
12
13 dev-embedded/platformio/Manifest | 1 -
14 dev-embedded/platformio/platformio-5.2.5-r2.ebuild | 87 ----------------------
15 ...mio-6.0.2.ebuild => platformio-6.0.2-r1.ebuild} | 8 ++
16 3 files changed, 8 insertions(+), 88 deletions(-)
17
18 diff --git a/dev-embedded/platformio/Manifest b/dev-embedded/platformio/Manifest
19 index 51724e0adc5b..9756ab40a050 100644
20 --- a/dev-embedded/platformio/Manifest
21 +++ b/dev-embedded/platformio/Manifest
22 @@ -1,2 +1 @@
23 -DIST platformio-5.2.5.tar.gz 254813 BLAKE2B 96911a64f8e73567820ef2c7b2297ed9e32c36c65c49572af6037c2666da4072bdf920dc31e8de7e07296eb7f1b407c47191d68a80ed212a9c351dfca604b408 SHA512 cf939254c231bb2cb97ac509175b7235a6a2ba447e55a2d9a59a9fe610656743c190f00cb7bfa1fc2e6b64487be7f02a193e2f270236bbb9200537f19175dc22
24 DIST platformio-6.0.2.tar.gz 285452 BLAKE2B c70523837b5118fcc1209a36a425fb6ab0aac73e56732916ff3d39fe87d50a47bf7d31d77324f491093ed366b1b3e4f88274e973bc896b164f5a07687a53bd12 SHA512 a2e48ad9ca22024a06509a9e36e5a7586088d0e8abd67d309d1988a8a112a41e301f077f1b466b5db390dc4048add570acd5bb762bbf22db69715dead0d8fc89
25
26 diff --git a/dev-embedded/platformio/platformio-5.2.5-r2.ebuild b/dev-embedded/platformio/platformio-5.2.5-r2.ebuild
27 deleted file mode 100644
28 index 9c0cbfa5bbd5..000000000000
29 --- a/dev-embedded/platformio/platformio-5.2.5-r2.ebuild
30 +++ /dev/null
31 @@ -1,87 +0,0 @@
32 -# Copyright 1999-2022 Gentoo Authors
33 -# Distributed under the terms of the GNU General Public License v2
34 -
35 -EAPI=8
36 -
37 -PYTHON_COMPAT=( python3_{8,9,10} )
38 -DISTUTILS_SINGLE_IMPL=1
39 -
40 -inherit distutils-r1 udev
41 -
42 -DESCRIPTION="An open source ecosystem for IoT development"
43 -HOMEPAGE="https://platformio.org/"
44 -SRC_URI="https://github.com/platformio/platformio-core/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
45 -S="${WORKDIR}"/${PN}-core-${PV}
46 -
47 -LICENSE="BSD"
48 -SLOT="0"
49 -KEYWORDS="~amd64 ~x86"
50 -
51 -RDEPEND="
52 - $(python_gen_cond_dep '
53 - <dev-python/aiofiles-0.9[${PYTHON_USEDEP}]
54 - dev-python/ajsonrpc[${PYTHON_USEDEP}]
55 - <dev-python/bottle-0.13[${PYTHON_USEDEP}]
56 - >=dev-python/click-8[${PYTHON_USEDEP}]
57 - <dev-python/click-9[${PYTHON_USEDEP}]
58 - dev-python/colorama[${PYTHON_USEDEP}]
59 - >=dev-python/pyserial-3[${PYTHON_USEDEP}]
60 - <dev-python/pyserial-4[${PYTHON_USEDEP}]
61 - >=dev-python/requests-2.4[${PYTHON_USEDEP}]
62 - <dev-python/requests-3[${PYTHON_USEDEP}]
63 - >=dev-python/semantic_version-2.9[${PYTHON_USEDEP}]
64 - <dev-python/semantic_version-3[${PYTHON_USEDEP}]
65 - >=dev-python/tabulate-0.8.3[${PYTHON_USEDEP}]
66 - <dev-python/tabulate-1[${PYTHON_USEDEP}]
67 - dev-python/twisted[${PYTHON_USEDEP}]
68 - >=dev-python/pyelftools-0.25[${PYTHON_USEDEP}]
69 - <dev-python/pyelftools-1[${PYTHON_USEDEP}]
70 - >=dev-python/marshmallow-2.20.5[${PYTHON_USEDEP}]
71 - =dev-python/starlette-0.18*[${PYTHON_USEDEP}]
72 - =dev-python/uvicorn-0.17*[${PYTHON_USEDEP}]
73 - dev-python/wsproto[${PYTHON_USEDEP}]
74 - >=dev-python/zeroconf-0.37[${PYTHON_USEDEP}]
75 - ')
76 - virtual/udev"
77 -DEPEND="virtual/udev"
78 -BDEPEND="test? ( $(python_gen_cond_dep 'dev-python/jsondiff[${PYTHON_USEDEP}]') )"
79 -
80 -# This list could be refined a bit to have individual tests which need network
81 -# (within EPYTEST_DESELECT) but so many need it that it doesn't seem worth it right now.
82 -EPYTEST_IGNORE=(
83 - # Requires network access
84 - tests/test_builder.py
85 - tests/package/test_manager.py
86 - tests/package/test_manifest.py
87 - tests/commands/test_platform.py
88 - tests/commands/test_test.py
89 - tests/commands/test_ci.py
90 - tests/commands/test_init.py
91 - tests/commands/test_lib.py
92 - tests/commands/test_lib_complex.py
93 - tests/commands/test_boards.py
94 - tests/commands/test_check.py
95 - tests/test_ino2cpp.py
96 - tests/test_maintenance.py
97 - tests/test_misc.py
98 -)
99 -
100 -distutils_enable_tests pytest
101 -
102 -PATCHES=(
103 - "${FILESDIR}"/${PN}-5.2.5-fix-semantic-version-dep.patch
104 -)
105 -
106 -src_prepare() {
107 - # Allow newer versions of zeroconf, Bug #831181.
108 - # Also wsproto.
109 - sed -e '/zeroconf/s/==[0-9.*]*//' \
110 - -e '/wsproto/s/==[0-9.*]*//' \
111 - -i setup.py || die
112 - default
113 -}
114 -
115 -src_install() {
116 - distutils-r1_src_install
117 - udev_dorules scripts/99-platformio-udev.rules
118 -}
119
120 diff --git a/dev-embedded/platformio/platformio-6.0.2.ebuild b/dev-embedded/platformio/platformio-6.0.2-r1.ebuild
121 similarity index 98%
122 rename from dev-embedded/platformio/platformio-6.0.2.ebuild
123 rename to dev-embedded/platformio/platformio-6.0.2-r1.ebuild
124 index bf24334631e4..827140a1feaa 100644
125 --- a/dev-embedded/platformio/platformio-6.0.2.ebuild
126 +++ b/dev-embedded/platformio/platformio-6.0.2-r1.ebuild
127 @@ -106,3 +106,11 @@ src_install() {
128 distutils-r1_src_install
129 udev_dorules scripts/99-platformio-udev.rules
130 }
131 +
132 +pkg_postinst() {
133 + udev_reload
134 +}
135 +
136 +pkg_postrm() {
137 + udev_reload
138 +}