sci-electronics/dsview: new package

DSView is an GUI programe for supporting various instruments.
The patches under ${FILESDIR} pushed to upstream:
https://github.com/DreamSourceLab/DSView/pull/335

Package-Manager: Portage-3.0.3, Repoman-3.0.0
Signed-off-by: Huang Rui <vowstar@gmail.com>
This commit is contained in:
Huang Rui
2020-08-18 18:04:53 +08:00
parent c2a149d451
commit 3e2cceff95
6 changed files with 175 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
--- a/DSView/pv/view/viewport.cpp
+++ b/DSView/pv/view/viewport.cpp
@@ -37,7 +37,7 @@
#include <QMouseEvent>
#include <QStyleOption>
-
+#include <QPainterPath>
#include <math.h>

View File

@@ -0,0 +1,26 @@
diff --git a/DSView/CMakeLists.txt b/DSView/CMakeLists.txt
index 29f848d..554952f 100755
--- a/DSView/CMakeLists.txt
+++ b/DSView/CMakeLists.txt
@@ -420,15 +420,17 @@ set_target_properties(${PROJECT_NAME} PROPERTIES INSTALL_RPATH "${CMAKE_INSTALL_
#-------------------------------------------------------------------------------
# Install the executable.
-install(TARGETS ${PROJECT_NAME} DESTINATION bin/)
+install(TARGETS ${PROJECT_NAME} DESTINATION bin)
install(DIRECTORY res DESTINATION share/${PROJECT_NAME})
install(FILES icons/logo.svg DESTINATION share/${PROJECT_NAME} RENAME logo.svg)
+install(FILES icons/logo.svg DESTINATION share/icons/hicolor/scalable/apps RENAME dsview.svg)
+install(FILES icons/logo.svg DESTINATION share/pixmaps RENAME dsview.svg)
install(FILES ../NEWS25 DESTINATION share/${PROJECT_NAME} RENAME NEWS25)
install(FILES ../NEWS31 DESTINATION share/${PROJECT_NAME} RENAME NEWS31)
install(FILES ../ug25.pdf DESTINATION share/${PROJECT_NAME} RENAME ug25.pdf)
install(FILES ../ug31.pdf DESTINATION share/${PROJECT_NAME} RENAME ug31.pdf)
-install(FILES DreamSourceLab.rules DESTINATION /etc/udev/rules.d/)
-install(FILES DSView.desktop DESTINATION /usr/share/applications/)
+install(FILES DreamSourceLab.rules DESTINATION /lib/udev/rules.d RENAME 60-dreamsourcelab.rules)
+install(FILES DSView.desktop DESTINATION /usr/share/applications RENAME dsview.desktop)
#===============================================================================
#= Packaging (handled by CPack)

View File

@@ -0,0 +1,20 @@
diff --git a/DSView/DSView.desktop b/DSView/DSView.desktop
index fba3202..e114324 100755
--- a/DSView/DSView.desktop
+++ b/DSView/DSView.desktop
@@ -1,9 +1,10 @@
[Desktop Entry]
-Version=0.96
-Exec=/usr/local/bin/DSView
+Type=Application
+Encoding=UTF-8
Name=DSView
Comment=GUI Program for DreamSourceLab USB-based Instruments
-Icon=/usr/local/share/DSView/logo.png
-Type=Application
+TryExec=DSView
+Exec=DSView
+Icon=dsview
Terminal=false
-Categories=Development
+Categories=Development;Electronics;Qt;