From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C2B6115800F for ; Wed, 18 Jan 2023 22:58:57 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EEA99E07FE; Wed, 18 Jan 2023 22:58:56 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D67CBE07FE for ; Wed, 18 Jan 2023 22:58:56 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0D8C7335D72 for ; Wed, 18 Jan 2023 22:58:56 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B1AF7771 for ; Wed, 18 Jan 2023 22:58:53 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1674082686.c728871c7314838f496f516e46a2d7a528572927.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/photoqt/, media-gfx/photoqt/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-gfx/photoqt/files/photoqt-2.9.1-libraw-0.21.patch media-gfx/photoqt/photoqt-2.9.1-r2.ebuild X-VCS-Directories: media-gfx/photoqt/files/ media-gfx/photoqt/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: c728871c7314838f496f516e46a2d7a528572927 X-VCS-Branch: master Date: Wed, 18 Jan 2023 22:58:53 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 869d2a23-53f6-488e-bc22-ca171356e347 X-Archives-Hash: 396f3bf150f7926b260f894d62ce89b4 commit: c728871c7314838f496f516e46a2d7a528572927 Author: Sam James gentoo org> AuthorDate: Wed Jan 18 22:58:06 2023 +0000 Commit: Sam James gentoo org> CommitDate: Wed Jan 18 22:58:06 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c728871c media-gfx/photoqt: fix build w/ libraw 0.21 Closes: https://bugs.gentoo.org/891325 Signed-off-by: Sam James gentoo.org> .../photoqt/files/photoqt-2.9.1-libraw-0.21.patch | 22 +++++++ media-gfx/photoqt/photoqt-2.9.1-r2.ebuild | 77 ++++++++++++++++++++++ 2 files changed, 99 insertions(+) diff --git a/media-gfx/photoqt/files/photoqt-2.9.1-libraw-0.21.patch b/media-gfx/photoqt/files/photoqt-2.9.1-libraw-0.21.patch new file mode 100644 index 000000000000..683a72e65d71 --- /dev/null +++ b/media-gfx/photoqt/files/photoqt-2.9.1-libraw-0.21.patch @@ -0,0 +1,22 @@ +https://bugs.gentoo.org/891325 +https://gitlab.com/lspies/photoqt/-/commit/a8908dbfac01886204a5d911106208bd0f15b467 + +From a8908dbfac01886204a5d911106208bd0f15b467 Mon Sep 17 00:00:00 2001 +From: Lukas Spies +Date: Thu, 22 Dec 2022 03:07:40 -0600 +Subject: [PATCH] [PQLoadImageRAW] make raw loader work when libraw is compiled + without rawspeed support. Not aware of macro to chewck at compile time, thsu + disabled for now + +--- a/cplusplus/imageprovider/loader/loadimage_raw.cpp ++++ b/cplusplus/imageprovider/loader/loadimage_raw.cpp +@@ -57,7 +57,6 @@ QImage PQLoadImageRAW::load(QString filename, QSize maxSize, QSize &origSize, bo + // Since we don't care about manipulating RAW images but only want to display + // them, we can optimise for speed + raw.imgdata.params.user_qual = 2; +- raw.imgdata.params.use_rawspeed = 1; + raw.imgdata.params.use_camera_wb = 1; + + // Open the RAW image +-- +GitLab diff --git a/media-gfx/photoqt/photoqt-2.9.1-r2.ebuild b/media-gfx/photoqt/photoqt-2.9.1-r2.ebuild new file mode 100644 index 000000000000..cdd579030848 --- /dev/null +++ b/media-gfx/photoqt/photoqt-2.9.1-r2.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +ECM_KDEINSTALLDIRS=false +inherit ecm optfeature + +DESCRIPTION="Simple but powerful Qt-based image viewer" +HOMEPAGE="https://photoqt.org/" +SRC_URI="https://photoqt.org/pkgs/${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="devil exif freeimage graphicsmagick imagemagick mpv pdf raw" + +COMMON_DEPEND=" + app-arch/libarchive:= + app-arch/unrar + dev-libs/pugixml + dev-qt/qtdbus:5 + dev-qt/qtdeclarative:5 + dev-qt/qtgui:5[jpeg] + dev-qt/qtimageformats:5 + dev-qt/qtmultimedia:5[qml] + dev-qt/qtnetwork:5 + dev-qt/qtprintsupport:5 + dev-qt/qtsql:5 + dev-qt/qtsvg:5 + dev-qt/qtwidgets:5 + dev-qt/qtxml:5 + devil? ( media-libs/devil ) + exif? ( media-gfx/exiv2:= ) + freeimage? ( media-libs/freeimage ) + imagemagick? ( + !graphicsmagick? ( media-gfx/imagemagick:=[cxx] ) + graphicsmagick? ( media-gfx/graphicsmagick:=[cxx] ) + ) + mpv? ( media-video/mpv:=[libmpv] ) + pdf? ( app-text/poppler[qt5] ) + raw? ( media-libs/libraw:= ) +" +DEPEND="${COMMON_DEPEND} + dev-qt/qtconcurrent:5 +" +RDEPEND="${COMMON_DEPEND} + dev-qt/qtgraphicaleffects:5 + dev-qt/qtquickcontrols:5 + dev-qt/qtquickcontrols2:5 +" +BDEPEND="dev-qt/linguist-tools:5" + +PATCHES=( + "${FILESDIR}"/${P}-libmpv-api2.patch + "${FILESDIR}"/${P}-libraw-0.21.patch +) + +src_configure() { + local mycmakeargs=( + -DCHROMECAST=OFF # TODO needs python + -DDEVIL=$(usex devil) + -DEXIV2=$(usex exif) + -DFREEIMAGE=$(usex freeimage) + -DGRAPHICSMAGICK=$(usex graphicsmagick $(usex imagemagick)) + -DIMAGEMAGICK=$(usex imagemagick $(usex !graphicsmagick)) + -DVIDEO_MPV=$(usex mpv) + -DPOPPLER=$(usex pdf) + -DRAW=$(usex raw) + ) + ecm_src_configure +} + +pkg_postinst() { + optfeature "additional image formats like AVIF, EPS, HEIF/HEIC, PSD, etc." kde-frameworks/kimageformats + ecm_pkg_postinst +}