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
# 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.
# 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}
# 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.
# 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
}
src_install() {
meson_install
}
+
+pkg_postinst() {
+ xdg_icon_cache_update
+}