svn commit: r540027 - in head/graphics: . ksnip ksnip/files
Adriaan de Groot
adridg at FreeBSD.org
Wed Jun 24 11:17:48 UTC 2020
Author: adridg
Date: Wed Jun 24 11:17:44 2020
New Revision: 540027
URL: https://svnweb.freebsd.org/changeset/ports/540027
Log:
New port graphics/ksnip
This is a multi-platform screenshotting tool, integrating well with
KDE Plasma, GNOME Shell, etc. under both X11 and Wayland. It supports
extensive screenshot annotations and multiple captures (useful for
looking at UI changes in something you're working on).
There's a bunch of patches, but they're all trivial and have been
reported upstream.
Added:
head/graphics/ksnip/
head/graphics/ksnip/Makefile (contents, props changed)
head/graphics/ksnip/distinfo (contents, props changed)
head/graphics/ksnip/files/
head/graphics/ksnip/files/patch-CMakeLists.txt (contents, props changed)
head/graphics/ksnip/files/patch-src_CMakeLists.txt (contents, props changed)
head/graphics/ksnip/files/patch-src_backend_config_KsnipConfigProvider.cpp (contents, props changed)
head/graphics/ksnip/files/patch-src_backend_config_KsnipConfigProvider.h (contents, props changed)
head/graphics/ksnip/files/patch-src_backend_imageGrabber_ImageGrabberFactory.cpp (contents, props changed)
head/graphics/ksnip/files/patch-src_backend_imageGrabber_ImageGrabberFactory.h (contents, props changed)
head/graphics/ksnip/files/patch-src_common_helper_FileUrlHelper.cpp (contents, props changed)
head/graphics/ksnip/files/patch-src_gui_globalHotKeys_KeyHandlerFactory.cpp (contents, props changed)
head/graphics/ksnip/files/patch-src_gui_globalHotKeys_KeyHandlerFactory.h (contents, props changed)
head/graphics/ksnip/pkg-descr (contents, props changed)
head/graphics/ksnip/pkg-plist (contents, props changed)
Modified:
head/graphics/Makefile
Modified: head/graphics/Makefile
==============================================================================
--- head/graphics/Makefile Wed Jun 24 11:05:16 2020 (r540026)
+++ head/graphics/Makefile Wed Jun 24 11:17:44 2020 (r540027)
@@ -401,6 +401,7 @@
SUBDIR += kphotoalbum
SUBDIR += kqtquickcharts
SUBDIR += krita
+ SUBDIR += ksnip
SUBDIR += kudu
SUBDIR += kxstitch
SUBDIR += l2p
Added: head/graphics/ksnip/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/graphics/ksnip/Makefile Wed Jun 24 11:17:44 2020 (r540027)
@@ -0,0 +1,26 @@
+# $FreeBSD$
+
+PORTNAME= ksnip
+DISTVERSIONPREFIX= v
+DISTVERSION= 1.7.0
+CATEGORIES= graphics kde
+
+MAINTAINER= kde at FreeBSD.org
+COMMENT= Screenshot and annotation tool
+
+LICENSE= LGPL3+
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+LIB_DEPENDS= libkColorPicker.so:graphics/kcolorpicker \
+ libkImageAnnotator.so:graphics/kimageannotator
+
+USES= cmake compiler:c++11-lang kde:5 qt:5
+USE_GITHUB= yes
+GH_ACCOUNT= ksnip
+USE_KDE= ecm_build
+USE_QT= concurrent core dbus gui network printsupport svg testlib \
+ widgets x11extras xml \
+ buildtools_build linguisttools_build qmake_build
+USE_XORG= xcb
+
+.include <bsd.port.mk>
Added: head/graphics/ksnip/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/graphics/ksnip/distinfo Wed Jun 24 11:17:44 2020 (r540027)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1592991920
+SHA256 (ksnip-ksnip-v1.7.0_GH0.tar.gz) = ab9d2e58eb7680b151375fa7ce408eaed3f3e9538a9e8bf95716c31238752526
+SIZE (ksnip-ksnip-v1.7.0_GH0.tar.gz) = 335727
Added: head/graphics/ksnip/files/patch-CMakeLists.txt
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/graphics/ksnip/files/patch-CMakeLists.txt Wed Jun 24 11:17:44 2020 (r540027)
@@ -0,0 +1,19 @@
+--- CMakeLists.txt.orig 2020-06-24 10:34:13 UTC
++++ CMakeLists.txt
+@@ -32,7 +32,7 @@ set(CMAKE_CXX_EXTENSIONS OFF)
+
+ set(QT_MIN_VERSION "5.9.4")
+
+-find_package(Qt5 ${QT_MIN_VERSION} REQUIRED Widgets Network Xml PrintSupport DBus Svg)
++find_package(Qt5 ${QT_MIN_VERSION} REQUIRED Concurrent Widgets Network Xml PrintSupport DBus Svg)
+
+ if (WIN32)
+ find_package(Qt5 ${QT_MIN_VERSION} REQUIRED WinExtras)
+@@ -49,6 +49,7 @@ endif ()
+
+ set(KIMAGEANNOTATOR_MIN_VERSION "0.2.2")
+ find_package(kImageAnnotator ${KIMAGEANNOTATOR_MIN_VERSION} REQUIRED)
++find_package(kColorPicker REQUIRED)
+
+ set(BASEPATH "${CMAKE_SOURCE_DIR}")
+ include_directories("${BASEPATH}")
Added: head/graphics/ksnip/files/patch-src_CMakeLists.txt
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/graphics/ksnip/files/patch-src_CMakeLists.txt Wed Jun 24 11:17:44 2020 (r540027)
@@ -0,0 +1,22 @@
+--- src/CMakeLists.txt.orig 2020-06-24 10:42:56 UTC
++++ src/CMakeLists.txt
+@@ -157,8 +157,8 @@ target_link_libraries(ksnip
+ Qt5::Xml
+ Qt5::PrintSupport
+ Qt5::DBus
+- kImageAnnotator
+- kColorPicker
++ kImageAnnotator::kImageAnnotator
++ kColorPicker::kColorPicker
+ Qt5::Svg
+ )
+
+@@ -168,7 +168,7 @@ elseif (UNIX)
+ target_link_libraries(ksnip
+ Qt5::X11Extras
+ XCB::XFIXES
+- X11
++ X11::X11
+ )
+ elseif(WIN32)
+ target_link_libraries(ksnip
Added: head/graphics/ksnip/files/patch-src_backend_config_KsnipConfigProvider.cpp
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/graphics/ksnip/files/patch-src_backend_config_KsnipConfigProvider.cpp Wed Jun 24 11:17:44 2020 (r540027)
@@ -0,0 +1,11 @@
+--- src/backend/config/KsnipConfigProvider.cpp.orig 2020-06-24 10:56:34 UTC
++++ src/backend/config/KsnipConfigProvider.cpp
+@@ -26,7 +26,7 @@ KsnipConfig* KsnipConfigProvider::instance()
+ return &instance;
+ #endif
+
+-#if defined(__linux__)
++#if defined(__linux__) || defined(__FreeBSD__)
+ if (PlatformChecker::instance()->isWayland()) {
+ static KsnipWaylandConfig instance;
+ return &instance;
Added: head/graphics/ksnip/files/patch-src_backend_config_KsnipConfigProvider.h
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/graphics/ksnip/files/patch-src_backend_config_KsnipConfigProvider.h Wed Jun 24 11:17:44 2020 (r540027)
@@ -0,0 +1,11 @@
+--- src/backend/config/KsnipConfigProvider.h.orig 2020-06-24 10:56:19 UTC
++++ src/backend/config/KsnipConfigProvider.h
+@@ -26,7 +26,7 @@
+ #include "KsnipMacConfig.h"
+ #endif
+
+-#if defined(__linux__)
++#if defined(__linux__) || defined(__FreeBSD__)
+ #include "KsnipWaylandConfig.h"
+ #include "src/common/platform/PlatformChecker.h"
+ #endif
Added: head/graphics/ksnip/files/patch-src_backend_imageGrabber_ImageGrabberFactory.cpp
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/graphics/ksnip/files/patch-src_backend_imageGrabber_ImageGrabberFactory.cpp Wed Jun 24 11:17:44 2020 (r540027)
@@ -0,0 +1,11 @@
+--- src/backend/imageGrabber/ImageGrabberFactory.cpp.orig 2020-06-24 10:56:45 UTC
++++ src/backend/imageGrabber/ImageGrabberFactory.cpp
+@@ -25,7 +25,7 @@ AbstractImageGrabber* ImageGrabberFactory::createImage
+ return new MacImageGrabber();
+ #endif
+
+-#if defined(__linux__)
++#if defined(__linux__) || defined(__FreeBSD__)
+ if (PlatformChecker::instance()->isX11()) {
+ return new X11ImageGrabber();
+ } else if (PlatformChecker::instance()->isWayland() && PlatformChecker::instance()->isKde()) {
Added: head/graphics/ksnip/files/patch-src_backend_imageGrabber_ImageGrabberFactory.h
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/graphics/ksnip/files/patch-src_backend_imageGrabber_ImageGrabberFactory.h Wed Jun 24 11:17:44 2020 (r540027)
@@ -0,0 +1,11 @@
+--- src/backend/imageGrabber/ImageGrabberFactory.h.orig 2020-06-24 10:32:45 UTC
++++ src/backend/imageGrabber/ImageGrabberFactory.h
+@@ -24,7 +24,7 @@
+ #include "MacImageGrabber.h"
+ #endif
+
+-#if defined(__linux__)
++#if defined(__linux__) || defined(__FreeBSD__)
+ #include "X11ImageGrabber.h"
+ #include "KdeWaylandImageGrabber.h"
+ #include "GnomeWaylandImageGrabber.h"
Added: head/graphics/ksnip/files/patch-src_common_helper_FileUrlHelper.cpp
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/graphics/ksnip/files/patch-src_common_helper_FileUrlHelper.cpp Wed Jun 24 11:17:44 2020 (r540027)
@@ -0,0 +1,11 @@
+--- src/common/helper/FileUrlHelper.cpp.orig 2020-06-24 10:57:05 UTC
++++ src/common/helper/FileUrlHelper.cpp
+@@ -26,7 +26,7 @@ QString FileUrlHelper::parse(const QString &text)
+ return url.remove(QStringLiteral("file://"));
+ #endif
+
+-#if defined(__linux__)
++#if defined(__linux__) || defined(__FreeBSD__)
+ return url.remove(QStringLiteral("file://"));
+ #endif
+
Added: head/graphics/ksnip/files/patch-src_gui_globalHotKeys_KeyHandlerFactory.cpp
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/graphics/ksnip/files/patch-src_gui_globalHotKeys_KeyHandlerFactory.cpp Wed Jun 24 11:17:44 2020 (r540027)
@@ -0,0 +1,18 @@
+--- src/gui/globalHotKeys/KeyHandlerFactory.cpp.orig 2020-06-24 10:56:55 UTC
++++ src/gui/globalHotKeys/KeyHandlerFactory.cpp
+@@ -25,7 +25,7 @@ AbstractKeyHandler* KeyHandlerFactory::create()
+ return new DummyKeyHandler;
+ #endif
+
+-#if defined(__linux__)
++#if defined(__linux__) || defined(__FreeBSD__)
+ if(PlatformChecker::instance()->isWayland()) {
+ return new DummyKeyHandler;
+ } else {
+@@ -36,4 +36,4 @@ AbstractKeyHandler* KeyHandlerFactory::create()
+ #if defined(_WIN32)
+ return new WinKeyHandler;
+ #endif
+-}
+\ No newline at end of file
++}
Added: head/graphics/ksnip/files/patch-src_gui_globalHotKeys_KeyHandlerFactory.h
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/graphics/ksnip/files/patch-src_gui_globalHotKeys_KeyHandlerFactory.h Wed Jun 24 11:17:44 2020 (r540027)
@@ -0,0 +1,11 @@
+--- src/gui/globalHotKeys/KeyHandlerFactory.h.orig 2020-06-24 10:31:35 UTC
++++ src/gui/globalHotKeys/KeyHandlerFactory.h
+@@ -24,7 +24,7 @@
+ #include "DummyKeyHandler.h"
+ #endif
+
+-#if defined(__linux__)
++#if defined(__linux__) || defined(__FreeBSD__)
+ #include "X11KeyHandler.h"
+ #include "DummyKeyHandler.h"
+ #include "src/common/platform/PlatformChecker.h"
Added: head/graphics/ksnip/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/graphics/ksnip/pkg-descr Wed Jun 24 11:17:44 2020 (r540027)
@@ -0,0 +1,4 @@
+Ksnip is a Qt based cross-platform screenshot tool that provides
+many annotation features for your screenshots.
+
+WWW: https://github.com/ksnip/ksnip
Added: head/graphics/ksnip/pkg-plist
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/graphics/ksnip/pkg-plist Wed Jun 24 11:17:44 2020 (r540027)
@@ -0,0 +1,28 @@
+bin/ksnip
+share/applications/ksnip.desktop
+%%DATADIR%%/translations/ksnip_bn_BD.qm
+%%DATADIR%%/translations/ksnip_cs.qm
+%%DATADIR%%/translations/ksnip_da.qm
+%%DATADIR%%/translations/ksnip_de.qm
+%%DATADIR%%/translations/ksnip_el.qm
+%%DATADIR%%/translations/ksnip_es.qm
+%%DATADIR%%/translations/ksnip_eu.qm
+%%DATADIR%%/translations/ksnip_fa.qm
+%%DATADIR%%/translations/ksnip_fr.qm
+%%DATADIR%%/translations/ksnip_fr_CA.qm
+%%DATADIR%%/translations/ksnip_gl.qm
+%%DATADIR%%/translations/ksnip_hu.qm
+%%DATADIR%%/translations/ksnip_id.qm
+%%DATADIR%%/translations/ksnip_it.qm
+%%DATADIR%%/translations/ksnip_ja.qm
+%%DATADIR%%/translations/ksnip_nl.qm
+%%DATADIR%%/translations/ksnip_no.qm
+%%DATADIR%%/translations/ksnip_pl.qm
+%%DATADIR%%/translations/ksnip_pt.qm
+%%DATADIR%%/translations/ksnip_ru.qm
+%%DATADIR%%/translations/ksnip_sv.qm
+%%DATADIR%%/translations/ksnip_tr.qm
+%%DATADIR%%/translations/ksnip_uk.qm
+%%DATADIR%%/translations/ksnip_zh_Hans.qm
+share/metainfo/ksnip.appdata.xml
+share/pixmaps/ksnip.svg
More information about the svn-ports-head
mailing list