1SUMMARY="Image viewer for KDE" 2DESCRIPTION="Gwenview is able to load and save to a variety of image formats \ 3supported by KDE applications, such as PNG, JPEG, and even the Gimp's XCF! \ 4Gwenview also sports a beautiful thumbnail toolbar when viewing images in \ 5fullscreen. Gwenview's simple interface doesn't get in the way and lets you \ 6view your images quickly and easily. 7Features 8Supports simple image manipulations: rotate, mirror, flip, and resize 9Supports basic file management actions such as copy, move, delete, and others 10Functions both as a standalone application and an embedded viewer in the \ 11Konqueror web browser 12Can be extended using KIPI plugins." 13HOMEPAGE="https://www.kde.org/applications/graphics/gwenview/" 14COPYRIGHT="2010-2024 KDE Organisation" 15LICENSE="GNU LGPL v2" 16REVISION="1" 17SOURCE_URI="https://download.kde.org/stable/release-service/$portVersion/src/gwenview-$portVersion.tar.xz" 18CHECKSUM_SHA256="a4fcd1c053b750d26ea8a9183208ecb5ed1d9b281625de3393e14f8bdc169038" 19PATCHES="gwenview-$portVersion.patchset" 20ADDITIONAL_FILES="gwenview.rdef.in" 21 22ARCHITECTURES="all !x86_gcc2" 23SECONDARY_ARCHITECTURES="x86" 24 25PROVIDES=" 26 gwenview$secondaryArchSuffix = $portVersion 27 app:Gwenview$secondaryArchSuffix = $portVersion 28 " 29REQUIRES=" 30 dbus$secondaryArchSuffix 31 haiku$secondaryArchSuffix 32 lib:libexiv2$secondaryArchSuffix 33 lib:libexpat$secondaryArchSuffix 34 lib:libiconv$secondaryArchSuffix 35 lib:libintl$secondaryArchSuffix 36 lib:libjpeg$secondaryArchSuffix 37 lib:libKF5Activities$secondaryArchSuffix 38 lib:libKF5Archive$secondaryArchSuffix 39 lib:libKF5Auth$secondaryArchSuffix 40 lib:libKF5Bookmarks$secondaryArchSuffix 41 lib:libKF5Codecs$secondaryArchSuffix 42 lib:libKF5Completion$secondaryArchSuffix 43 lib:libKF5ConfigCore$secondaryArchSuffix 44 lib:libKF5ConfigGui$secondaryArchSuffix 45 lib:libKF5ConfigWidgets$secondaryArchSuffix 46 lib:libKF5CoreAddons$secondaryArchSuffix 47 lib:libKF5DocTools$secondaryArchSuffix 48 lib:libKF5GuiAddons$secondaryArchSuffix 49 lib:libKF5I18n$secondaryArchSuffix 50 lib:libKF5IconThemes$secondaryArchSuffix 51 lib:libKF5ItemModels$secondaryArchSuffix 52 lib:libKF5ItemViews$secondaryArchSuffix 53 lib:libKF5JobWidgets$secondaryArchSuffix 54 lib:libKF5KIOCore$secondaryArchSuffix 55 lib:libKF5KIOFileWidgets$secondaryArchSuffix 56 lib:libKF5KIOWidgets$secondaryArchSuffix 57 lib:libKF5Notifications$secondaryArchSuffix 58 lib:libKF5Parts$secondaryArchSuffix 59 lib:libKF5Purpose$secondaryArchSuffix 60 lib:libKF5Service$secondaryArchSuffix 61 lib:libKF5Solid$secondaryArchSuffix 62 lib:libKF5SonnetUi$secondaryArchSuffix 63 lib:libKF5TextWidgets$secondaryArchSuffix 64 lib:libKF5UnitConversion$secondaryArchSuffix 65 lib:libKF5WidgetsAddons$secondaryArchSuffix 66 lib:libKF5WindowSystem$secondaryArchSuffix 67 lib:libKF5XmlGui$secondaryArchSuffix 68 lib:liblcms2$secondaryArchSuffix 69 lib:libphonon4qt5$secondaryArchSuffix 70 lib:libpng16$secondaryArchSuffix 71 lib:libQt5Core$secondaryArchSuffix 72 lib:libQt5DBus$secondaryArchSuffix 73 lib:libQt5Gui$secondaryArchSuffix 74 lib:libQt5Network$secondaryArchSuffix 75 lib:libQt5PrintSupport$secondaryArchSuffix 76 lib:libQt5Widgets$secondaryArchSuffix 77 lib:libQt5Xml$secondaryArchSuffix 78 lib:libtiff$secondaryArchSuffix 79 lib:libz$secondaryArchSuffix 80 " 81 82BUILD_REQUIRES=" 83 haiku${secondaryArchSuffix}_devel 84 extra_cmake_modules$secondaryArchSuffix 85 devel:libexiv2$secondaryArchSuffix 86 devel:libexpat$secondaryArchSuffix 87 devel:libiconv$secondaryArchSuffix 88 devel:libintl$secondaryArchSuffix 89 devel:libjpeg$secondaryArchSuffix 90 devel:libKF5Activities$secondaryArchSuffix 91 devel:libKF5Archive$secondaryArchSuffix 92 devel:libKF5Auth$secondaryArchSuffix 93 devel:libKF5Bookmarks$secondaryArchSuffix 94 devel:libKF5Codecs$secondaryArchSuffix 95 devel:libKF5Completion$secondaryArchSuffix 96 devel:libKF5ConfigCore$secondaryArchSuffix 97 devel:libKF5ConfigGui$secondaryArchSuffix 98 devel:libKF5ConfigWidgets$secondaryArchSuffix 99 devel:libKF5CoreAddons$secondaryArchSuffix 100 devel:libKF5DocTools$secondaryArchSuffix 101 devel:libKF5GuiAddons$secondaryArchSuffix 102 devel:libKF5I18n$secondaryArchSuffix 103 devel:libKF5IconThemes$secondaryArchSuffix 104 devel:libKF5ItemModels$secondaryArchSuffix 105 devel:libKF5ItemViews$secondaryArchSuffix 106 devel:libKF5JobWidgets$secondaryArchSuffix 107 devel:libKF5KIOCore$secondaryArchSuffix 108 devel:libKF5KIOFileWidgets$secondaryArchSuffix 109 devel:libKF5KIOWidgets$secondaryArchSuffix 110 devel:libKF5Notifications$secondaryArchSuffix 111 devel:libKF5Parts$secondaryArchSuffix 112 devel:libKF5Purpose$secondaryArchSuffix 113 devel:libKF5Service$secondaryArchSuffix 114 devel:libKF5Solid$secondaryArchSuffix 115 devel:libKF5SonnetUi$secondaryArchSuffix 116 devel:libKF5TextWidgets$secondaryArchSuffix 117 devel:libKF5UnitConversion$secondaryArchSuffix 118 devel:libKF5WidgetsAddons$secondaryArchSuffix 119 devel:libKF5WindowSystem$secondaryArchSuffix 120 devel:libKF5XmlGui$secondaryArchSuffix 121 devel:liblcms2$secondaryArchSuffix 122 devel:libphonon4qt5$secondaryArchSuffix 123 devel:libpng16$secondaryArchSuffix 124 devel:libQt5Core$secondaryArchSuffix 125 devel:libtiff$secondaryArchSuffix 126 devel:libz$secondaryArchSuffix 127 " 128BUILD_PREREQUIRES=" 129 cmd:cmake 130 cmd:g++$secondaryArchSuffix 131 cmd:lrelease$secondaryArchSuffix >= 5 132 cmd:make 133 cmd:python3 134 " 135 136BUILD() 137{ 138 sed -e '/add_subdirectory(doc)/ s/^#*/#/' -i CMakeLists.txt 139 sed -e '/ kdoctools_install(po)/ s/^#*/#/' -i CMakeLists.txt 140 141 mkdir -p build 142 cd build 143 144 cmake .. \ 145 -DCMAKE_BUILD_TYPE=Release \ 146 -DCMAKE_INSTALL_PREFIX=$appsDir/Gwenview \ 147 -DINCLUDE_INSTALL_DIR=$includeDir \ 148 -DCMAKE_INSTALL_DATAROOTDIR=$dataDir \ 149 -DSHARE_INSTALL_PREFIX=$dataDir \ 150 -DECM_DIR=/system/data/cmake/Modules/ECM/cmake \ 151 -DGWENVIEW_NO_WAYLAND_GESTURES=ON 152 153 make $jobArgs 154} 155 156INSTALL() 157{ 158 cd build 159 make install 160 mv $appsDir/Gwenview/bin/gwenview $appsDir/Gwenview/Gwenview 161 rm -rf $appsDir/Gwenview/bin 162 163 local APP_SIGNATURE="application/x-vnd.qt5-gwenview" 164 local MAJOR="`echo "$portVersion" | cut -d. -f1`" 165 local MIDDLE="`echo "$portVersion" | cut -d. -f2`" 166 local MINOR="`echo "$portVersion" | cut -d. -f3`" 167 local LONG_INFO="$SUMMARY" 168 sed \ 169 -e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \ 170 -e "s|@MAJOR@|$MAJOR|" \ 171 -e "s|@MIDDLE@|$MIDDLE|" \ 172 -e "s|@MINOR@|$MINOR|" \ 173 -e "s|@LONG_INFO@|$LONG_INFO|" \ 174 $portDir/additional-files/gwenview.rdef.in > gwenview.rdef 175 176 addResourcesToBinaries gwenview.rdef $appsDir/Gwenview/Gwenview 177 addAppDeskbarSymlink $appsDir/Gwenview/Gwenview 178} 179 180TEST() 181{ 182 make test 183} 184