diff options
author | Rick Farina <zerochaos@gentoo.org> | 2023-08-20 16:08:09 -0400 |
---|---|---|
committer | Rick Farina <zerochaos@gentoo.org> | 2023-08-20 16:08:47 -0400 |
commit | bb7cfd5667374eda61fdca708d2af12cff4774ef (patch) | |
tree | 1c4a9aa3b5401ae38dc0971c79889a0cb279796e /net-wireless | |
parent | gnome-extra/gnome-commander: Stabilize 1.16.1 amd64, #911334 (diff) | |
download | gentoo-bb7cfd5667374eda61fdca708d2af12cff4774ef.tar.gz gentoo-bb7cfd5667374eda61fdca708d2af12cff4774ef.tar.bz2 gentoo-bb7cfd5667374eda61fdca708d2af12cff4774ef.zip |
net-wireless/nanovna-saver: add 0.6.2
Sync live
Uses QtPy6 now
Signed-off-by: Rick Farina <zerochaos@gentoo.org>
Diffstat (limited to 'net-wireless')
-rw-r--r-- | net-wireless/nanovna-saver/Manifest | 1 | ||||
-rw-r--r-- | net-wireless/nanovna-saver/nanovna-saver-0.6.2.ebuild | 48 | ||||
-rw-r--r-- | net-wireless/nanovna-saver/nanovna-saver-9999.ebuild | 15 |
3 files changed, 53 insertions, 11 deletions
diff --git a/net-wireless/nanovna-saver/Manifest b/net-wireless/nanovna-saver/Manifest index 61f1b5450a1c..48237f742dc9 100644 --- a/net-wireless/nanovna-saver/Manifest +++ b/net-wireless/nanovna-saver/Manifest @@ -1 +1,2 @@ DIST nanovna-saver-0.5.4.tar.gz 494010 BLAKE2B 71e4292e33dbb5b055e7ddd3a29222a67e05b1af431eaee64b613e50648b0b91ad5446cc2d3af868ae624826caf871bff9062275239298c29de261d741bad1f4 SHA512 6600b3c83fc1dcaf81a85b1d14087d2067327098c486011c8bfbaba83e06ca1081c6f7045730a58f097bab332072139707ea23c037924624d2f8100a7b61acb7 +DIST nanovna-saver-0.6.2.tar.gz 579583 BLAKE2B aa10f8272a63e42f35f5c395203bc1101f2a166bc29274cf28385fa7aab33d89953fdcf4595fadeed25abb2b6c02948307a1576738bd421cd648f7ef2a953bc9 SHA512 d5c548ffda24d8ca69a30cdda4afc1473afa5f5c3fecf2cee17e65e16fd46bee0dc274d5d597c5bb354c7251870e1f3ba0bd61a43f0af424db5403c5694713b5 diff --git a/net-wireless/nanovna-saver/nanovna-saver-0.6.2.ebuild b/net-wireless/nanovna-saver/nanovna-saver-0.6.2.ebuild new file mode 100644 index 000000000000..f9bae222d086 --- /dev/null +++ b/net-wireless/nanovna-saver/nanovna-saver-0.6.2.ebuild @@ -0,0 +1,48 @@ +# Copyright 2019-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9..11} ) +inherit distutils-r1 xdg-utils + +DESCRIPTION="tool for reading, displaying and saving data from the NanoVNA" +HOMEPAGE="https://github.com/mihtjel/nanovna-saver" +SRC_URI="" + +LICENSE="GPL-3+" +SLOT="0" +if [ "${PV}" = "9999" ]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/mihtjel/nanovna-saver.git" +else + SRC_URI="https://github.com/mihtjel/nanovna-saver/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" + export SETUPTOOLS_SCM_PRETEND_VERSION="${PV}" +fi +IUSE="" + +DEPEND="" +RDEPEND="${DEPEND} + dev-python/cython[${PYTHON_USEDEP}] + dev-python/pyserial[${PYTHON_USEDEP}] + dev-python/PyQt6[${PYTHON_USEDEP},gui,widgets] + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/scipy[${PYTHON_USEDEP}]" +BDEPEND="dev-python/setuptools-scm[${PYTHON_USEDEP}]" + +distutils_enable_tests pytest + +python_install() { + distutils-r1_python_install +} + +pkg_postinst() { + xdg_desktop_database_update + xdg_icon_cache_update +} + +pkg_postrm() { + xdg_desktop_database_update + xdg_icon_cache_update +} diff --git a/net-wireless/nanovna-saver/nanovna-saver-9999.ebuild b/net-wireless/nanovna-saver/nanovna-saver-9999.ebuild index b34fe28b25d0..f9bae222d086 100644 --- a/net-wireless/nanovna-saver/nanovna-saver-9999.ebuild +++ b/net-wireless/nanovna-saver/nanovna-saver-9999.ebuild @@ -17,7 +17,8 @@ if [ "${PV}" = "9999" ]; then EGIT_REPO_URI="https://github.com/mihtjel/nanovna-saver.git" else SRC_URI="https://github.com/mihtjel/nanovna-saver/archive/v${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64 ~x86" + KEYWORDS="~amd64" + export SETUPTOOLS_SCM_PRETEND_VERSION="${PV}" fi IUSE="" @@ -25,21 +26,13 @@ DEPEND="" RDEPEND="${DEPEND} dev-python/cython[${PYTHON_USEDEP}] dev-python/pyserial[${PYTHON_USEDEP}] - dev-python/PyQt5[${PYTHON_USEDEP},gui,widgets] + dev-python/PyQt6[${PYTHON_USEDEP},gui,widgets] dev-python/numpy[${PYTHON_USEDEP}] dev-python/scipy[${PYTHON_USEDEP}]" -BDEPEND="" +BDEPEND="dev-python/setuptools-scm[${PYTHON_USEDEP}]" distutils_enable_tests pytest -src_prepare() { - sed -i -e "s/48.png/48/" \ - -e "s/TerminalOptions=/#TerminalOptions=/" \ - -e "s/Path=/#Path=/" NanoVNASaver.desktop || die - sed -i "/nanovnasaver/d" setup.py || die - eapply_user -} - python_install() { distutils-r1_python_install } |