aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHuang Rui <vowstar@gmail.com>2022-09-06 11:14:12 +0800
committerHuang Rui <vowstar@gmail.com>2022-09-06 11:14:12 +0800
commitc9e0f9d6ee5ead615a9fa0a8f8dfb265b094c752 (patch)
treef51f4c908e4cf9358741611980d0e78260aecf91 /sci-electronics
parentsci-electronics/verilator: drop 4.224 (diff)
downloadguru-c9e0f9d6ee5ead615a9fa0a8f8dfb265b094c752.tar.gz
guru-c9e0f9d6ee5ead615a9fa0a8f8dfb265b094c752.tar.bz2
guru-c9e0f9d6ee5ead615a9fa0a8f8dfb265b094c752.zip
sci-electronics/dsview: add 1.2.1
Signed-off-by: Huang Rui <vowstar@gmail.com>
Diffstat (limited to 'sci-electronics')
-rw-r--r--sci-electronics/dsview/Manifest1
-rw-r--r--sci-electronics/dsview/dsview-1.2.1.ebuild69
2 files changed, 70 insertions, 0 deletions
diff --git a/sci-electronics/dsview/Manifest b/sci-electronics/dsview/Manifest
index 9ae6656af..81f7b61bc 100644
--- a/sci-electronics/dsview/Manifest
+++ b/sci-electronics/dsview/Manifest
@@ -1 +1,2 @@
DIST dsview-1.2.0.tar.gz 8471857 BLAKE2B 581050fc2f9e68b1f6e3a48ccd0d6672482e5358f27aacb07ded652a4a1aea0061e097dc313e12e83d7d428d3e7cb55f03955274f272c5059bf04a5e97a4bd55 SHA512 f1f22a7d08a83b123d2a777907299c9250a86976cd7edfc9b883b89d06f9664740182a5ae86ab1df9035a83e2ffbb1dad9f88b7fe6eeb2b0f815915b776119d7
+DIST dsview-1.2.1.tar.gz 8357048 BLAKE2B d1269aa6b55d69e6ce2b75ede916daac063200ac3f7be33d51f5363457c699956c9666b12a0a3557ccd8541ded78d3f2ffcb94ea8c71137452624988f711e339 SHA512 305e4223d10e45488cec96427fc43ee327d416bedb9dee603cb8acf8a6aca1b11f358e2ca53b825dc1c7c022da0495f83b497a9a70a3748c7540f5987cb2f993
diff --git a/sci-electronics/dsview/dsview-1.2.1.ebuild b/sci-electronics/dsview/dsview-1.2.1.ebuild
new file mode 100644
index 000000000..b1b34addc
--- /dev/null
+++ b/sci-electronics/dsview/dsview-1.2.1.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+GITHUB_PN="DSView"
+PYTHON_COMPAT=( python3_{8..11} )
+
+inherit cmake python-r1 udev xdg
+
+DESCRIPTION="An open source multi-function instrument"
+HOMEPAGE="
+ https://www.dreamsourcelab.com
+ https://github.com/DreamSourceLab/DSView
+"
+
+if [[ ${PV} == "9999" ]] ; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/DreamSourceLab/${GITHUB_PN}.git"
+else
+ SRC_URI="https://github.com/DreamSourceLab/${GITHUB_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+ S="${WORKDIR}/${GITHUB_PN}-${PV}"
+fi
+
+LICENSE="GPL-3"
+SLOT="0"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+ dev-cpp/glibmm:2
+ dev-libs/boost
+ dev-libs/glib
+ dev-libs/libzip
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtwidgets:5
+ dev-qt/qtsvg:5
+ dev-qt/qtconcurrent:5
+ sci-libs/fftw:3.0
+ virtual/libusb:1
+"
+
+DEPEND="
+ ${RDEPEND}
+"
+
+BDEPEND="
+ virtual/pkgconfig
+"
+
+src_configure() {
+ local mycmakeargs=(
+ -DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr"
+ )
+
+ cmake_src_configure
+}
+
+pkg_postinst() {
+ udev_reload
+ xdg_pkg_postinst
+}
+
+pkg_postrm() {
+ udev_reload
+ xdg_pkg_postrm
+}