Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 934776 - media-gfx/photoqt-4.5 version bump (Qt5 -> Qt6)
Summary: media-gfx/photoqt-4.5 version bump (Qt5 -> Qt6)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL: https://gitlab.com/lspies/photoqt/-/t...
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2024-06-23 16:02 UTC by Frank Krömmelbein
Modified: 2025-01-12 20:17 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
photoqt-4.5.ebuild (photoqt-4.5.ebuild,1.79 KB, text/plain)
2024-06-23 16:03 UTC, Frank Krömmelbein
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Krömmelbein 2024-06-23 16:02:30 UTC
Starting from version 4.0 photoqt is based on Qt6.
I did a quick and dirty hack on the current version 3.2 ebuild which works for me.
The Qt6 entries certainly still need some adjustments.

A testrun for the useflags with tatt passed:
FEATURES=' test' USE='' succeeded for =media-gfx/photoqt-4.5
USE='chromecast -devil exif -freeimage -graphicsmagick imagemagick -mpv -pdf -raw' succeeded for =media-gfx/photoqt-4.5
USE='chromecast -devil -exif -freeimage -graphicsmagick -imagemagick mpv -pdf -raw' succeeded for =media-gfx/photoqt-4.5
USE='-chromecast devil -exif freeimage -graphicsmagick imagemagick mpv -pdf -raw' succeeded for =media-gfx/photoqt-4.5
USE='chromecast -devil -exif -freeimage -graphicsmagick -imagemagick -mpv pdf -raw' succeeded for =media-gfx/photoqt-4.5
USE='-chromecast devil exif -freeimage graphicsmagick -imagemagick -mpv pdf -raw' succeeded for =media-gfx/photoqt-4.5
USE='-chromecast -devil exif -freeimage -graphicsmagick -imagemagick mpv pdf -raw' succeeded for =media-gfx/photoqt-4.5
USE='-chromecast devil -exif -freeimage -graphicsmagick -imagemagick -mpv -pdf raw' succeeded for =media-gfx/photoqt-4.5
USE='-chromecast devil -exif freeimage -graphicsmagick imagemagick -mpv -pdf raw' succeeded for =media-gfx/photoqt-4.5
USE='chromecast devil -exif -freeimage graphicsmagick imagemagick mpv -pdf raw' : blocked packages (probably) for =media-gfx/photoqt-4.5
USE='-chromecast devil exif freeimage graphicsmagick imagemagick mpv -pdf raw' : blocked packages (probably) for =media-gfx/photoqt-4.5
USE='chromecast devil -exif -freeimage -graphicsmagick imagemagick -mpv pdf raw' succeeded for =media-gfx/photoqt-4.5
USE='-chromecast devil -exif freeimage graphicsmagick imagemagick -mpv pdf raw' : blocked packages (probably) for =media-gfx/photoqt-4.5


--- photoqt-3.2.ebuild  2023-06-17 09:18:52.000000000 +0200
+++ photoqt-4.5.ebuild  2024-06-23 17:29:13.750968818 +0200
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -12,24 +12,20 @@
 
 LICENSE="GPL-2+"
 SLOT="0"
-KEYWORDS="amd64 x86"
-IUSE="devil exif freeimage graphicsmagick imagemagick mpv pdf raw"
+KEYWORDS="~amd64 ~x86"
+IUSE="chromecast 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
+       dev-qt/qtbase:6[concurrent,dbus,gui,network,sql,widgets,xml]
+       dev-qt/qtdeclarative:6[network,sql,svg,widgets]
+       dev-qt/qtimageformats:6
+       dev-qt/qtlocation:6
+       dev-qt/qtmultimedia:6[qml]
+       dev-qt/qtpositioning:6[qml]
+       dev-qt/qtsvg:6
        devil? ( media-libs/devil )
        exif? ( media-gfx/exiv2:=[bmff] )
        freeimage? ( media-libs/freeimage )
@@ -38,24 +34,24 @@
                graphicsmagick? ( media-gfx/graphicsmagick:=[cxx] )
        )
        mpv? ( media-video/mpv:=[libmpv] )
-       pdf? ( app-text/poppler[qt5] )
+       pdf? ( app-text/poppler[qt6] )
        raw? ( media-libs/libraw:= )
 "
-DEPEND="${COMMON_DEPEND}
-       dev-qt/qtconcurrent:5
-"
+#      dev-qt/qtprintsupport:5
+
 RDEPEND="${COMMON_DEPEND}
-       dev-qt/qtgraphicaleffects:5
-       dev-qt/qtquickcontrols:5
-       dev-qt/qtquickcontrols2:5
+       chromecast? ( dev-python/pychromecast )
 "
-BDEPEND="dev-qt/linguist-tools:5"
+#      dev-qt/qtgraphicaleffects:5
+#      dev-qt/qtquickcontrols:5
+#      dev-qt/qtquickcontrols2:5
 
-PATCHES=( "${FILESDIR}/${P}-exiv2-0.28.patch" ) # upstream git master, bug #906491
+BDEPEND="dev-qt/qttools:6[qdbus,linguist]
+"
 
 src_configure() {
        local mycmakeargs=(
-               -DCHROMECAST=OFF # TODO needs python
+               -DCHROMECAST=$(usex chromecast)
                -DDEVIL=$(usex devil)
                -DEXIV2=$(usex exif)
                -DEXIV2_ENABLE_BMFF=$(usex exif)



Reproducible: Always
Comment 1 Frank Krömmelbein 2024-06-23 16:03:18 UTC
Created attachment 896296 [details]
photoqt-4.5.ebuild
Comment 2 Larry the Git Cow gentoo-dev 2025-01-07 22:34:19 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb8ae2842677139e40f7aae643f408bd60e67972

commit eb8ae2842677139e40f7aae643f408bd60e67972
Author:     Nicolas PARLANT <nicolas.parlant@parhuet.fr>
AuthorDate: 2025-01-05 23:56:08 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2025-01-07 22:33:58 +0000

    media-gfx/photoqt: add 4.7
    
    qt5 -> qt6
    
    useflags :
    * add barcode with zxing-cpp
    * add chromecast with pychromecast (python-single-r1)
    * add geolocation with qtlocation/qtpositioning (RDEPEND)
    * add lcms
    * add vips
    
    imagemagick/graphicsmagick :
    * set includedir for graphicsmagick because cmake fails to do it
    
    deps :
    * unrar deleted as photoqt can read rar with libarchive.
    * add virtual/pkgconfig in BDEPEND
    
    QA :
    * SRC_URI : fix redirect
    
    Closes: https://bugs.gentoo.org/934776
    Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr>
    Closes: https://github.com/gentoo/gentoo/pull/40000
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 media-gfx/photoqt/Manifest           |   1 +
 media-gfx/photoqt/metadata.xml       |   3 +
 media-gfx/photoqt/photoqt-4.7.ebuild | 103 +++++++++++++++++++++++++++++++++++
 3 files changed, 107 insertions(+)