From 8543660a5b6626a9d3bf4d425ffbe4918b6517f9 Mon Sep 17 00:00:00 2001 From: Marek Szuba Date: Mon, 30 May 2022 12:53:46 +0100 Subject: sci-electronics/NanoVNA-QT: initial import, version 20200507 Signed-off-by: Marek Szuba --- sci-electronics/NanoVNA-QT/Manifest | 1 + .../NanoVNA-QT/NanoVNA-QT-20200507.ebuild | 74 ++++++++++++++++++++++ .../NanoVNA-QT-20200507-missing_headers.patch | 20 ++++++ sci-electronics/NanoVNA-QT/metadata.xml | 11 ++++ 4 files changed, 106 insertions(+) create mode 100644 sci-electronics/NanoVNA-QT/Manifest create mode 100644 sci-electronics/NanoVNA-QT/NanoVNA-QT-20200507.ebuild create mode 100644 sci-electronics/NanoVNA-QT/files/NanoVNA-QT-20200507-missing_headers.patch create mode 100644 sci-electronics/NanoVNA-QT/metadata.xml 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 ++#include + using namespace std; + typedef function xavna_ui_changed_cb; + +--- a/vna_qt/polarview.C ++++ b/vna_qt/polarview.C +@@ -3,6 +3,7 @@ + #include + #include + #include ++#include + 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 @@ + + + + + marecki@gentoo.org + Marek Szuba + + + nanovna-v2/NanoVNA-QT + + -- cgit v1.2.3-65-gdbad