1 # Copyright © 2020-2021 Nick Bowler
2 # License GPLv3+: GNU General Public License version 3 or any later version.
3 # This is free software: you are free to change and redistribute it.
4 # There is NO WARRANTY, to the extent permitted by law.
8 inherit meson toolchain-funcs gnome2-utils multilib-minimal
10 MY_PN=webp-pixbuf-loader
13 DESCRIPTION="WebP loader for GdkPixbuf"
14 HOMEPAGE="https://github.com/aruiz/webp-pixbuf-loader/"
15 SRC_URI="https://github.com/aruiz/webp-pixbuf-loader/archive/$PV.tar.gz -> $MY_P.tar.gz"
19 KEYWORDS="~amd64 ~x86"
21 RDEPEND="media-libs/libwebp:=[$MULTILIB_USEDEP]
22 x11-libs/gdk-pixbuf[$MULTILIB_USEDEP]"
27 multilib_src_configure () {
31 multilib_src_compile () {
35 multilib_src_install () {
36 local pkgconf=`tc-getPKG_CONFIG`
37 local moduledir=`$pkgconf --variable=gdk_pixbuf_moduledir gdk-pixbuf-2.0`
40 doexe libpixbufloader-webp.so
42 if multilib_is_native_abi; then
43 insinto /usr/share/thumbnailers
44 doins webp-pixbuf.thumbnailer
49 gnome2_gdk_pixbuf_savelist
53 gnome2_gdk_pixbuf_update
57 gnome2_gdk_pixbuf_update