From: Jiří Netolický Date: Sat, 12 Aug 2023 11:38:23 +0000 (+0200) Subject: Nová verze swayimg s podporou OpenEXR. X-Git-Url: https://cgit.netolish.cz/?a=commitdiff_plain;h=983c2b36c608ca306baedde0d813584e697ae89f;p=gentoo-repo.git Nová verze swayimg s podporou OpenEXR. --- diff --git a/gui-apps/swayimg/Manifest b/gui-apps/swayimg/Manifest index ed379d1..75ac231 100644 --- a/gui-apps/swayimg/Manifest +++ b/gui-apps/swayimg/Manifest @@ -1,2 +1,2 @@ DIST swayimg-1.11.tar.gz 390650 BLAKE2B 5ab45417f214d63ac36f6f28d89848a0f0d55e8fe3051f003838206c80501d67be7ba3d9cdeb0e23c8a305778586665d2800c72ff857adf5acb550cccd0a014c SHA512 6a9722b101c4e4cc2bee5c18f9ca46d2602460521dfd0fe05da1c0d631d4dbaae492c6d27cb38d759d4f4ef10159897f952bb23499ac26123f2b5d646152bbf8 -DIST v1.9.tar.gz 387087 BLAKE2B 16de84a27b8dd3bb6003cb5280d5719482b28c5706da96290643d4019394a0c96043e3390829b982d64d35aa288df84d1f3dc4bc1f962346e6d2f07f554caea5 SHA512 5eccb69f53accb0229be6260563e18e3534bcc9d711cdde8325c8100fa765f698b15c51356136a802cfc7d384a433beb8cff98d625b035bd4a5d9de076ff01bc +DIST swayimg-1.12.tar.gz 395978 BLAKE2B 5e610e9556dfa4bbfd4324d993015aa95d836ab629ee54a541f7be5406cdee19c8230955423cbf9822760854b3017794b3e16dde339dd0b5675d747a45c5bc12 SHA512 47cdf60449da0787179a4299edc48b0dde4227cd462832b2bbbcb0e2ce95f2e784e6bc8cb424a6154539e8d61a36ed274fb86505ba8b8fb2aaa37eb75d1a15af diff --git a/gui-apps/swayimg/metadata.xml b/gui-apps/swayimg/metadata.xml index 9f95204..a18b3d3 100644 --- a/gui-apps/swayimg/metadata.xml +++ b/gui-apps/swayimg/metadata.xml @@ -7,6 +7,7 @@ Build with support jpegxl + Build with support OpenEXR artemsen/swayimg diff --git a/gui-apps/swayimg/swayimg-1.9.ebuild b/gui-apps/swayimg/swayimg-1.12.ebuild similarity index 88% rename from gui-apps/swayimg/swayimg-1.9.ebuild rename to gui-apps/swayimg/swayimg-1.12.ebuild index af0b640..4624479 100644 --- a/gui-apps/swayimg/swayimg-1.9.ebuild +++ b/gui-apps/swayimg/swayimg-1.12.ebuild @@ -16,7 +16,7 @@ EAPI=8 # inherit lists eclasses to inherit functions from. For example, an ebuild # that needs the eautoreconf function from autotools.eclass won't work # without the following line: -inherit meson +inherit meson xdg-utils # # Eclasses tend to list descriptions of how to use their functions properly. # Take a look at the eclass/ directory for more examples. @@ -29,7 +29,7 @@ HOMEPAGE="https://github.com/artemsen/swayimg" # Point to any required sources; these will be automatically downloaded by # Portage. -SRC_URI="https://github.com/artemsen/swayimg/archive/refs/tags/v${PV}.tar.gz" +SRC_URI="https://github.com/artemsen/swayimg/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" # Source directory; the dir where the sources can be found (automatically # unpacked) inside ${WORKDIR}. The default value for S is ${WORKDIR}/${P} @@ -76,7 +76,7 @@ KEYWORDS="~amd64" # Comprehensive list of any and all USE flags leveraged in the ebuild, # with some exceptions, e.g., ARCH specific flags like "amd64" or "ppc". # Not needed if the ebuild doesn't use any USE flags. -IUSE="wayland gif heif jpeg png svg tiff webp" +IUSE="wayland gif heif jpeg jpegxl openexr png svg tiff webp" # A space delimited list of portage features to restrict. man 5 ebuild # for details. Usually not needed. @@ -90,18 +90,35 @@ IUSE="wayland gif heif jpeg png svg tiff webp" # had installed on your system when you tested the package. Then # other users hopefully won't be caught without the right version of # a dependency. -#RDEPEND="" +RDEPEND=" + heif? ( media-libs/libheif:= ) + jpeg? ( media-libs/libjpeg-turbo:= ) + jpegxl? ( media-libs/libjxl:= ) + png? ( media-libs/libpng:= ) + svg? ( gnome-base/librsvg:= ) + tiff? ( media-libs/tiff:= ) + webp? ( media-libs/libwebp:= ) + openexr? ( media-libs/openexr:= ) +" # Build-time dependencies that need to be binary compatible with the system # being built (CHOST). These include libraries that we link against. # The below is valid if the same run-time depends are required to compile. -#DEPEND="${RDEPEND}" +DEPEND="${RDEPEND}" # Build-time dependencies that are executed during the emerge process, and # only need to be present in the native build system (CBUILD). Example: #BDEPEND="virtual/pkgconfig" src_configure() { + local emesonargs=( + $(meson_feature heif) + $(meson_feature jpeg) + $(meson_feature png) + $(meson_feature svg) + $(meson_feature tiff) + $(meson_feature webp) + ) meson_src_configure } @@ -112,3 +129,7 @@ src_compile() { src_install() { meson_install } + +pkg_postinst() { + xdg_icon_cache_update +}