mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-20 20:43:09 -04:00
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:
10
sci-electronics/dsview/files/dsview-1.01-viewport.patch
Normal file
10
sci-electronics/dsview/files/dsview-1.01-viewport.patch
Normal 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>
|
||||
26
sci-electronics/dsview/files/dsview-1.12-cmake.patch
Normal file
26
sci-electronics/dsview/files/dsview-1.12-cmake.patch
Normal 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)
|
||||
|
||||
20
sci-electronics/dsview/files/dsview-1.12-desktop.patch
Normal file
20
sci-electronics/dsview/files/dsview-1.12-desktop.patch
Normal 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;
|
||||
Reference in New Issue
Block a user