diff options
Diffstat (limited to 'sci-electronics')
-rw-r--r-- | sci-electronics/minipro/Manifest | 2 | ||||
-rw-r--r-- | sci-electronics/minipro/files/minipro-0.5-makefile.patch | 12 | ||||
-rw-r--r-- | sci-electronics/minipro/metadata.xml | 7 | ||||
-rw-r--r-- | sci-electronics/minipro/minipro-0.5.ebuild (renamed from sci-electronics/minipro/minipro-0.4.ebuild) | 19 | ||||
-rw-r--r-- | sci-electronics/mpremote/Manifest | 2 | ||||
-rw-r--r-- | sci-electronics/mpremote/files/mpremote-1.22.0-requirements_txt.patch | 12 | ||||
-rw-r--r-- | sci-electronics/mpremote/metadata.xml | 20 | ||||
-rw-r--r-- | sci-electronics/mpremote/mpremote-0.4.0.ebuild | 28 | ||||
-rw-r--r-- | sci-electronics/mpremote/mpremote-1.22.0.ebuild | 29 |
9 files changed, 122 insertions, 9 deletions
diff --git a/sci-electronics/minipro/Manifest b/sci-electronics/minipro/Manifest index 38ce85995..d37c88485 100644 --- a/sci-electronics/minipro/Manifest +++ b/sci-electronics/minipro/Manifest @@ -1 +1 @@ -DIST minipro-0.4.tar.gz 363052 BLAKE2B e6b07c05c1c2841fa862132d598781f3675df61cb41ac447e8dfb9677913126429f4f547afc757f2d32360ddbfc89850f3b234c13b381920d5f726f5fe163dd7 SHA512 cdbcb1a02b475874a32497b9a683a0b4734a16cc75d2b0336a5c5cd26a30b63ca4c115b3cfbe6448a8bb3be95aeb902c79ac256c45789d45abf9e01cda355eda +DIST minipro-0.5.tar.gz 388754 BLAKE2B c22110c269405e7b8ff81fd7c649c2b652bc39da84d92cf9a151da71a1c6d4a202baa6ae13a1fb789a04c8e57f3cc9a60403bcef82896320d95e2507c5960f01 SHA512 e2341213bc43ef53b106211d07a488a142083fe4b6dd6ced0f02595164ce2e0e47f6bdc0a6f6c63f19b9b9438c8f5ad173485953d8a29cb39f89272f8e70dc7c diff --git a/sci-electronics/minipro/files/minipro-0.5-makefile.patch b/sci-electronics/minipro/files/minipro-0.5-makefile.patch new file mode 100644 index 000000000..221643895 --- /dev/null +++ b/sci-electronics/minipro/files/minipro-0.5-makefile.patch @@ -0,0 +1,12 @@ +can't seem to override PREFIX at build time, so patch it +--- minipro-0.5/Makefile 2020-11-04 21:35:31.000000000 -0800 ++++ minipro-0.5/Makefile 2022-07-22 11:42:54.866390621 -0700 +@@ -9,7 +9,7 @@ + + # Normally minipro is installed to /usr/local. If you want to put it + # somewhere else, define that location here. +-PREFIX ?= /usr/local ++PREFIX ?= /usr + MANDIR ?= $(PREFIX)/share/man + + # Some older releases of MacOS need some extra library flags. diff --git a/sci-electronics/minipro/metadata.xml b/sci-electronics/minipro/metadata.xml index 430c9ea1b..438079e92 100644 --- a/sci-electronics/minipro/metadata.xml +++ b/sci-electronics/minipro/metadata.xml @@ -5,6 +5,13 @@ <email>sci-electronics@gentoo.org</email> <name>Gentoo Electronics Project</name> </maintainer> + <maintainer type="person"> + <email>scott@alfter.us</email> + <name>Scott Alfter</name> + </maintainer> + <longdescription lang="en"> + an open-source program for controlling the MiniPRO TL866xx series of chip programmers + </longdescription> <upstream> <remote-id type="github">vdudouyt/minipro</remote-id> </upstream> diff --git a/sci-electronics/minipro/minipro-0.4.ebuild b/sci-electronics/minipro/minipro-0.5.ebuild index ab75d6774..60854d55c 100644 --- a/sci-electronics/minipro/minipro-0.4.ebuild +++ b/sci-electronics/minipro/minipro-0.5.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 -inherit bash-completion-r1 udev +inherit udev DESCRIPTION="A free and open TL866XX programmer" HOMEPAGE="https://gitlab.com/DavidGriffith/minipro" @@ -16,9 +16,12 @@ KEYWORDS="~amd64" RDEPEND="virtual/libusb:1" DEPEND="${RDEPEND}" -src_install() { - dobin minipro miniprohex - doman man/minipro.1 - udev_dorules udev/*.rules - dobashcomp bash_completion.d/minipro +PATCHES=( "${FILESDIR}/${P}-makefile.patch" ) + +pkg_postinst() { + udev_reload +} + +pkg_postrm() { + udev_reload } diff --git a/sci-electronics/mpremote/Manifest b/sci-electronics/mpremote/Manifest new file mode 100644 index 000000000..1e55b52d3 --- /dev/null +++ b/sci-electronics/mpremote/Manifest @@ -0,0 +1,2 @@ +DIST mpremote-0.4.0.tar.gz 27266 BLAKE2B b31b6184d0f4fc5c525ea7d5d8d2722404e9ce82ce143ea9a14b8bdef28af3260514dd25ec756a0ac2507d5b206fa9d07ce67bd2228b1568d9495c9082bdace8 SHA512 580f0286d8973a93105a04c681428f798e0d72b4b75debbc43f8e49ea7a81da849987aeab795baff66c9cf40607fde27fb54b7b32ab311ae5e9fb3b8f8f976fc +DIST mpremote-1.22.0.tar.gz 24042 BLAKE2B 8bd6df4b9a46c10a93d42974a569adb42577d2783cb78b5b76ac6a6750f8219611ca49106ed91cb7f69910e3dfb28bb07a4522dbd721af0baac94d3e793c0576 SHA512 a3135e3be347370c967b7dc936f112e1ed5898288fa2dda4c485d216ebf432cb9706e539299d6769c1982ac02e456e9594ed2a7a86cbac2a1c7d08f2ff8a980b diff --git a/sci-electronics/mpremote/files/mpremote-1.22.0-requirements_txt.patch b/sci-electronics/mpremote/files/mpremote-1.22.0-requirements_txt.patch new file mode 100644 index 000000000..4d06c25aa --- /dev/null +++ b/sci-electronics/mpremote/files/mpremote-1.22.0-requirements_txt.patch @@ -0,0 +1,12 @@ +--- a/pyproject.toml 2020-02-01 19:00:00.000000000 -0500 ++++ b/pyproject.toml 2024-01-22 03:59:19.414593373 -0500 +@@ -33,9 +33,6 @@ + [project.scripts] + mpremote = "mpremote.main:main" + +-[tool.hatch.metadata.hooks.requirements_txt] +-files = ["requirements.txt"] +- + # This will be PEP-440 normalised into either: + # mpremote-X.Y.Z (on vX.Y.Z release tag) + # mpremote-X.Y.Zrc0 (on vX.Y.Z-preview tag, i.e. first commit in the cycle) diff --git a/sci-electronics/mpremote/metadata.xml b/sci-electronics/mpremote/metadata.xml new file mode 100644 index 000000000..820065154 --- /dev/null +++ b/sci-electronics/mpremote/metadata.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>sci-electronics@gentoo.org</email> + <name>Gentoo Electronics Project</name> + </maintainer> + <maintainer type="person"> + <email>gentoo@chymera.eu</email> + <name>Horea Christian</name> + </maintainer> + <longdescription lang="en"> + This CLI tool provides an integrated set of utilities to remotely interact with + and automate a MicroPython device over a serial connection. + </longdescription> + <upstream> + <remote-id type="github">micropython/micropython</remote-id> + <remote-id type="pypi">mpremote</remote-id> + </upstream> +</pkgmetadata> diff --git a/sci-electronics/mpremote/mpremote-0.4.0.ebuild b/sci-electronics/mpremote/mpremote-0.4.0.ebuild new file mode 100644 index 000000000..80056b01e --- /dev/null +++ b/sci-electronics/mpremote/mpremote-0.4.0.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..11} ) +# Next release will move to hatchling: +# https://github.com/micropython/micropython/pull/10645 +#DISTUTILS_USE_PEP517=hatchling +DISTUTILS_USE_PEP517=setuptools + +inherit distutils-r1 pypi + +DESCRIPTION="MicroPython remote control" +HOMEPAGE="https://github.com/micropython/micropython/tree/master/tools/mpremote" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + dev-python/pyserial[${PYTHON_USEDEP}] + dev-python/importlib-metadata[${PYTHON_USEDEP}] +" + +# The package might not have a test suite: +# https://github.com/orgs/micropython/discussions/11308 +#distutils_enable_tests pytest diff --git a/sci-electronics/mpremote/mpremote-1.22.0.ebuild b/sci-electronics/mpremote/mpremote-1.22.0.ebuild new file mode 100644 index 000000000..741478265 --- /dev/null +++ b/sci-electronics/mpremote/mpremote-1.22.0.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..12} ) +DISTUTILS_USE_PEP517=hatchling + +inherit distutils-r1 pypi + +DESCRIPTION="MicroPython remote control" +HOMEPAGE="https://github.com/micropython/micropython/tree/master/tools/mpremote" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + dev-python/pyserial[${PYTHON_USEDEP}] + dev-python/importlib-metadata[${PYTHON_USEDEP}] +" + +PATCHES=( + "${FILESDIR}/${P}-requirements_txt.patch" +) + +# The package might not have a test suite: +# https://github.com/orgs/micropython/discussions/11308 +#distutils_enable_tests pytest |