summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Szuba <marecki@gentoo.org>2022-05-30 12:53:46 +0100
committerMarek Szuba <marecki@gentoo.org>2022-05-30 13:10:37 +0100
commit8543660a5b6626a9d3bf4d425ffbe4918b6517f9 (patch)
tree692660cedf4b5b7aabd3a1495dd2ff6996e5814e /sci-electronics
parentdev-python/pyopencl: add 2022.1.5 (diff)
downloadgentoo-8543660a5b6626a9d3bf4d425ffbe4918b6517f9.tar.gz
gentoo-8543660a5b6626a9d3bf4d425ffbe4918b6517f9.tar.bz2
gentoo-8543660a5b6626a9d3bf4d425ffbe4918b6517f9.zip
sci-electronics/NanoVNA-QT: initial import, version 20200507
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'sci-electronics')
-rw-r--r--sci-electronics/NanoVNA-QT/Manifest1
-rw-r--r--sci-electronics/NanoVNA-QT/NanoVNA-QT-20200507.ebuild74
-rw-r--r--sci-electronics/NanoVNA-QT/files/NanoVNA-QT-20200507-missing_headers.patch20
-rw-r--r--sci-electronics/NanoVNA-QT/metadata.xml11
4 files changed, 106 insertions, 0 deletions
diff --git a/sci-electronics/NanoVNA-QT/Manifest b/sci-electronics/NanoVNA-QT/Manifest
new file mode 100644
index 000000000000..c2ba29ffc267
--- /dev/null
+++ b/sci-electronics/NanoVNA-QT/Manifest
@@ -0,0 +1 @@
+DIST NanoVNA-QT-20200507.tar.gz 876476 BLAKE2B bda4424b0dfb8b977a3e4227393d477f7c6d6518b34887fb4104deb805768f1466d3a01f4b5949c80c0177151b6660158296a1eff24f6f6614ee53e185e2df38 SHA512 7b465c06cdff8cdc9c13ab4e6d6c4502849a2ef42e81de3f3d47bcf49008761307ea57e6572d316a96993aa547ce7f8185bab742d11139e313c33161d2324a21
diff --git a/sci-electronics/NanoVNA-QT/NanoVNA-QT-20200507.ebuild b/sci-electronics/NanoVNA-QT/NanoVNA-QT-20200507.ebuild
new file mode 100644
index 000000000000..30d703f63aa8
--- /dev/null
+++ b/sci-electronics/NanoVNA-QT/NanoVNA-QT-20200507.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools qmake-utils
+
+DESCRIPTION="Library and GUI software for NanoVNA V2"
+HOMEPAGE="https://github.com/nanovna-v2/NanoVNA-QT"
+SRC_URI="https://github.com/nanovna-v2/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="dev-cpp/eigen:3=
+ dev-qt/qtcharts:5=
+ dev-qt/qtcore:5=
+ dev-qt/qtgui:5=
+ dev-qt/qtsvg:5=
+ dev-qt/qtwidgets:5=
+ sci-libs/fftw:3.0="
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-20200507-missing_headers.patch
+)
+
+DOCS=( README.md ug1101.pdf )
+
+src_prepare() {
+ default
+ eautoreconf
+ sed -i -e "s|/usr/lib|/usr/$(get_libdir)|" libxavna/xavna_mock_ui/xavna_mock_ui.pro || die
+}
+
+src_configure() {
+ default
+
+ pushd libxavna/xavna_mock_ui > /dev/null || die
+ eqmake5
+ popd > /dev/null || die
+
+ pushd vna_qt > /dev/null || die
+ eqmake5
+ popd > /dev/null || die
+}
+
+src_compile() {
+ default
+
+ pushd libxavna/xavna_mock_ui > /dev/null || die
+ emake
+ popd > /dev/null || die
+
+ pushd vna_qt > /dev/null || die
+ emake
+ popd > /dev/null || die
+}
+
+src_install() {
+ default
+
+ pushd libxavna/xavna_mock_ui > /dev/null || die
+ emake INSTALL_ROOT="${D}" install
+ popd > /dev/null || die
+
+ pushd vna_qt > /dev/null || die
+ dobin vna_qt
+ popd > /dev/null || die
+
+ find "${ED}" -name '*.la' -delete || die
+}
diff --git a/sci-electronics/NanoVNA-QT/files/NanoVNA-QT-20200507-missing_headers.patch b/sci-electronics/NanoVNA-QT/files/NanoVNA-QT-20200507-missing_headers.patch
new file mode 100644
index 000000000000..cebe3c5239fa
--- /dev/null
+++ b/sci-electronics/NanoVNA-QT/files/NanoVNA-QT-20200507-missing_headers.patch
@@ -0,0 +1,20 @@
+--- a/libxavna/xavna_mock_ui/xavna_mock_ui.H
++++ b/libxavna/xavna_mock_ui/xavna_mock_ui.H
+@@ -2,6 +2,7 @@
+ #define XAVNA_MOCK_UI_H
+
+ #include <functional>
++#include <string>
+ using namespace std;
+ typedef function<void(string dut_name, double cableLen1, double cableLen2)> xavna_ui_changed_cb;
+
+--- a/vna_qt/polarview.C
++++ b/vna_qt/polarview.C
+@@ -3,6 +3,7 @@
+ #include <cmath>
+ #include <QPaintEvent>
+ #include <QPainter>
++#include <QPainterPath>
+ PolarView::PolarView(QWidget *parent) : QWidget(parent)
+ {
+
diff --git a/sci-electronics/NanoVNA-QT/metadata.xml b/sci-electronics/NanoVNA-QT/metadata.xml
new file mode 100644
index 000000000000..84af1563757c
--- /dev/null
+++ b/sci-electronics/NanoVNA-QT/metadata.xml
@@ -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>marecki@gentoo.org</email>
+ <name>Marek Szuba</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">nanovna-v2/NanoVNA-QT</remote-id>
+ </upstream>
+</pkgmetadata>