From owner-svn-ports-head@freebsd.org Wed Jul 22 19:07:55 2020 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A0DC235CF76; Wed, 22 Jul 2020 19:07:55 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BBlNC3YFgz4c8L; Wed, 22 Jul 2020 19:07:55 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 5D3A8C50E; Wed, 22 Jul 2020 19:07:55 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 06MJ7taI089440; Wed, 22 Jul 2020 19:07:55 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 06MJ7sat089434; Wed, 22 Jul 2020 19:07:54 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <202007221907.06MJ7sat089434@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: yuri set sender to yuri@FreeBSD.org using -f From: Yuri Victorovich Date: Wed, 22 Jul 2020 19:07:54 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r542888 - in head/x11-toolkits: . color-widgets-qt5 color-widgets-qt5/files X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: in head/x11-toolkits: . color-widgets-qt5 color-widgets-qt5/files X-SVN-Commit-Revision: 542888 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jul 2020 19:07:55 -0000 Author: yuri Date: Wed Jul 22 19:07:53 2020 New Revision: 542888 URL: https://svnweb.freebsd.org/changeset/ports/542888 Log: New port: x11-toolkits/color-widgets-qt5: Qt (C++) widgets to manage color inputs Added: head/x11-toolkits/color-widgets-qt5/ head/x11-toolkits/color-widgets-qt5/Makefile (contents, props changed) head/x11-toolkits/color-widgets-qt5/distinfo (contents, props changed) head/x11-toolkits/color-widgets-qt5/files/ head/x11-toolkits/color-widgets-qt5/files/patch-src_QtColorWidgets_gradient__editor.cpp (contents, props changed) head/x11-toolkits/color-widgets-qt5/pkg-descr (contents, props changed) head/x11-toolkits/color-widgets-qt5/pkg-plist (contents, props changed) Modified: head/x11-toolkits/Makefile Modified: head/x11-toolkits/Makefile ============================================================================== --- head/x11-toolkits/Makefile Wed Jul 22 18:47:41 2020 (r542887) +++ head/x11-toolkits/Makefile Wed Jul 22 19:07:53 2020 (r542888) @@ -9,6 +9,7 @@ SUBDIR += blt SUBDIR += bwidget SUBDIR += c++-gtk-utils + SUBDIR += color-widgets-qt5 SUBDIR += ctk SUBDIR += fltk SUBDIR += fox14 Added: head/x11-toolkits/color-widgets-qt5/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11-toolkits/color-widgets-qt5/Makefile Wed Jul 22 19:07:53 2020 (r542888) @@ -0,0 +1,26 @@ +# $FreeBSD$ + +PORTNAME= color-widgets +DISTVERSION= 2.2.0 +CATEGORIES= x11-toolkits +PKGNAMESUFFIX= ${SUFFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Qt (C++) widgets to manage color inputs + +LICENSE= LGPL3 +LICENSE_FILE= ${WRKSRC}/COPYING + +USES= cmake compiler:c++11-lang pkgconfig qt:5 +USE_QT= core gui widgets buildtools_build qmake_build +USE_LDCONFIG= yes + +SUFFIX= -qt5 + +USE_GITLAB= yes +GL_SITE= https://gitlab.com/ +GL_ACCOUNT= mattia.basaglia +GL_PROJECT= Qt-Color-Widgets +GL_COMMIT= f2eca13bbc836cec09daae02579f10d5e85e71e8 + +.include Added: head/x11-toolkits/color-widgets-qt5/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11-toolkits/color-widgets-qt5/distinfo Wed Jul 22 19:07:53 2020 (r542888) @@ -0,0 +1,3 @@ +TIMESTAMP = 1595442377 +SHA256 (mattia.basaglia-Qt-Color-Widgets-f2eca13bbc836cec09daae02579f10d5e85e71e8_GL0.tar.gz) = 05e44a567393081781111a9bf64f1867ac12118baa53302fb1d199d8e312ee46 +SIZE (mattia.basaglia-Qt-Color-Widgets-f2eca13bbc836cec09daae02579f10d5e85e71e8_GL0.tar.gz) = 174238 Added: head/x11-toolkits/color-widgets-qt5/files/patch-src_QtColorWidgets_gradient__editor.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11-toolkits/color-widgets-qt5/files/patch-src_QtColorWidgets_gradient__editor.cpp Wed Jul 22 19:07:53 2020 (r542888) @@ -0,0 +1,14 @@ +--- src/QtColorWidgets/gradient_editor.cpp.orig 2020-05-31 15:42:28 UTC ++++ src/QtColorWidgets/gradient_editor.cpp +@@ -221,7 +221,10 @@ void GradientEditor::mouseDoubleClickEvent(QMouseEvent + qreal highlighted_pos = p->paint_pos(p->stops[p->highlighted], this); + qreal mouse_pos = orientation() == Qt::Vertical ? ev->pos().y() : ev->pos().x(); + qreal tolerance = 4; +- if ( std::abs(mouse_pos - highlighted_pos) <= tolerance ) ++ auto xfabs = [](qreal r) { // see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=248190 ++ return r>=0 ? r : -r; ++ }; ++ if ( xfabs(mouse_pos - highlighted_pos) <= tolerance ) + { + p->dialog_selected = p->highlighted; + p->color_dialog.setColor(p->stops[p->highlighted].second); Added: head/x11-toolkits/color-widgets-qt5/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11-toolkits/color-widgets-qt5/pkg-descr Wed Jul 22 19:07:53 2020 (r542888) @@ -0,0 +1,4 @@ +Qt-Color-Widgets is a color dialog that is more user-friendly than the default +QColorDialog and several other color-related widgets. + +WWW: https://gitlab.com/mattia.basaglia/Qt-Color-Widgets Added: head/x11-toolkits/color-widgets-qt5/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11-toolkits/color-widgets-qt5/pkg-plist Wed Jul 22 19:07:53 2020 (r542888) @@ -0,0 +1,49 @@ +include/QtColorWidgets/AbstractWidgetList +include/QtColorWidgets/BoundColorSelector +include/QtColorWidgets/ColorDelegate +include/QtColorWidgets/ColorDialog +include/QtColorWidgets/ColorListWidget +include/QtColorWidgets/ColorPreview +include/QtColorWidgets/ColorSelector +include/QtColorWidgets/ColorWheel +include/QtColorWidgets/GradientEditor +include/QtColorWidgets/GradientListModel +include/QtColorWidgets/GradientSlider +include/QtColorWidgets/HarmonyColorWheel +include/QtColorWidgets/HueSlider +include/QtColorWidgets/QtColorWidgets_version.h +include/QtColorWidgets/abstract_widget_list.hpp +include/QtColorWidgets/bound_color_selector.hpp +include/QtColorWidgets/color_2d_slider.hpp +include/QtColorWidgets/color_delegate.hpp +include/QtColorWidgets/color_dialog.hpp +include/QtColorWidgets/color_line_edit.hpp +include/QtColorWidgets/color_list_widget.hpp +include/QtColorWidgets/color_names.hpp +include/QtColorWidgets/color_palette.hpp +include/QtColorWidgets/color_palette_model.hpp +include/QtColorWidgets/color_palette_widget.hpp +include/QtColorWidgets/color_preview.hpp +include/QtColorWidgets/color_selector.hpp +include/QtColorWidgets/color_utils.hpp +include/QtColorWidgets/color_wheel.hpp +include/QtColorWidgets/color_wheel_private.hpp +include/QtColorWidgets/colorwidgets_global.hpp +include/QtColorWidgets/gradient_delegate.hpp +include/QtColorWidgets/gradient_editor.hpp +include/QtColorWidgets/gradient_helper.hpp +include/QtColorWidgets/gradient_list_model.hpp +include/QtColorWidgets/gradient_slider.hpp +include/QtColorWidgets/harmony_color_wheel.hpp +include/QtColorWidgets/hue_slider.hpp +include/QtColorWidgets/swatch.hpp +lib/cmake/QtColorWidgets-Qt52/QtColorWidgets-Qt52-%%CMAKE_BUILD_TYPE%%.cmake +lib/cmake/QtColorWidgets-Qt52/QtColorWidgets-Qt52.cmake +lib/cmake/QtColorWidgets-Qt52/qtcolorwidgets-qt52-config-version.cmake +lib/cmake/QtColorWidgets-Qt52/qtcolorwidgets-qt52-config.cmake +lib/cmake/QtColorWidgets-Qt52/qtcolorwidgets-qt52-targets-%%CMAKE_BUILD_TYPE%%.cmake +lib/cmake/QtColorWidgets-Qt52/qtcolorwidgets-qt52-targets.cmake +lib/libQtColorWidgets-Qt52.so +lib/libQtColorWidgets-Qt52.so.2 +lib/libQtColorWidgets-Qt52.so.2.2.0 +libdata/pkgconfig/QtColorWidgets-Qt52.pc