sci-electronics/dsview: add 1.2.0

Signed-off-by: Huang Rui <vowstar@gmail.com>
This commit is contained in:
Huang Rui
2022-07-08 12:44:31 +08:00
parent 84515c3141
commit 1b98d3ce1b
2 changed files with 70 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST dsview-1.2.0.tar.gz 8471857 BLAKE2B 581050fc2f9e68b1f6e3a48ccd0d6672482e5358f27aacb07ded652a4a1aea0061e097dc313e12e83d7d428d3e7cb55f03955274f272c5059bf04a5e97a4bd55 SHA512 f1f22a7d08a83b123d2a777907299c9250a86976cd7edfc9b883b89d06f9664740182a5ae86ab1df9035a83e2ffbb1dad9f88b7fe6eeb2b0f815915b776119d7

View File

@@ -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
}