mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-05 06:27:37 +00:00
graphics/gdk-pixbuf2: add trigger to run gdk-pixbuf-query-loaders
gdk-pixbuf2 uses a cache of its loadable modules, which is updated by ${RREFIX}/bin/gdk-pixbuf-query-loaders and stored in ${PREFIX}/lib/gdk-pixbuf-2.0/${GTK2_VERSION}/loaders. Remove the pre-existing @exec and @postexec commands in the ports providing such modules, and add a trigger in graphics/gdk-pixbuf2 to do this automatically. Reviewed by: bapt Differential Revision: https://reviews.freebsd.org/D34679
This commit is contained in:
parent
f5269b1820
commit
bd08b1edde
@ -1927,7 +1927,7 @@ _FORCE_POST_PATTERNS= rmdir kldxref mkfontscale mkfontdir fc-cache \
|
||||
load-octave-pkg \
|
||||
ocamlfind \
|
||||
update-desktop-database update-mime-database \
|
||||
gdk-pixbuf-query-loaders catalog.ports \
|
||||
catalog.ports \
|
||||
ccache-update-links
|
||||
|
||||
.if defined(USE_LOCAL_MK)
|
||||
|
@ -17,11 +17,13 @@ LICENSE_FILE= ${WRKSRC}/COPYING
|
||||
BUILD_DEPENDS= docbook-xsl>0:textproc/docbook-xsl
|
||||
|
||||
USES= cpe gettext gnome localbase:ldflags meson pkgconfig \
|
||||
python:3.4+,build shared-mime-info tar:xz
|
||||
python:3.4+,build shared-mime-info tar:xz trigger
|
||||
CPE_VENDOR= gnome
|
||||
USE_GNOME= glib20 introspection:build libxslt:build
|
||||
USE_LDCONFIG= yes
|
||||
MESON_ARGS= -Dman=true
|
||||
TRIGGERS= gdk-pixbuf-query-loaders
|
||||
SUB_LIST= GTK2_VERSION=${GTK2_VERSION}
|
||||
|
||||
BINARY_ALIAS= python3=${PYTHON_VERSION}
|
||||
|
||||
|
17
graphics/gdk-pixbuf2/files/gdk-pixbuf-query-loaders.ucl.in
Normal file
17
graphics/gdk-pixbuf2/files/gdk-pixbuf-query-loaders.ucl.in
Normal file
@ -0,0 +1,17 @@
|
||||
path: "%%PREFIX%%/lib/gdk-pixbuf-2.0/%%GTK2_VERSION%%/loaders"
|
||||
cleanup: {
|
||||
type: lua
|
||||
sandbox: false
|
||||
script: <<EOS
|
||||
print("Removing gdk-pixbuf cache directory")
|
||||
os.remove("%%PREFIX%%/lib/gdk-pixbuf-2.0/%%GTK2_VERSION%%/loaders")
|
||||
EOS
|
||||
}
|
||||
trigger: {
|
||||
type: lua
|
||||
sandbox: false
|
||||
script: <<EOS
|
||||
print("Generating gdk-pixbuf modules cache")
|
||||
pkg.exec({"%%PREFIX%%/bin/gdk-pixbuf-query-loaders"})
|
||||
EOS
|
||||
}
|
@ -152,5 +152,3 @@ share/locale/zh_CN/LC_MESSAGES/gdk-pixbuf.mo
|
||||
share/locale/zh_HK/LC_MESSAGES/gdk-pixbuf.mo
|
||||
share/locale/zh_TW/LC_MESSAGES/gdk-pixbuf.mo
|
||||
share/thumbnailers/gdk-pixbuf-thumbnailer.thumbnailer
|
||||
@postexec %D/bin/gdk-pixbuf-query-loaders > /dev/null 2>&1 && %D/bin/gdk-pixbuf-query-loaders > %D/lib/gdk-pixbuf-2.0/%%GTK2_VERSION%%/loaders.cache 2>/dev/null || /usr/bin/true
|
||||
@postunexec rm %D/lib/gdk-pixbuf-2.0/%%GTK2_VERSION%%/loaders.cache 2>&1 >/dev/null || true
|
||||
|
@ -9,5 +9,3 @@ lib/libavif.so
|
||||
lib/libavif.so.13
|
||||
lib/libavif.so.13.0.0
|
||||
libdata/pkgconfig/libavif.pc
|
||||
%%PIXBUF%%@postexec %D/bin/gdk-pixbuf-query-loaders > /dev/null 2>&1 && %D/bin/gdk-pixbuf-query-loaders > %D/lib/gdk-pixbuf-2.0/%%GTK2_VERSION%%/loaders.cache 2>/dev/null || /usr/bin/true
|
||||
%%PIXBUF%%@postunexec %D/bin/gdk-pixbuf-query-loaders > /dev/null 2>&1 && %D/bin/gdk-pixbuf-query-loaders > %D/lib/gdk-pixbuf-2.0/%%GTK2_VERSION%%/loaders.cache 2>/dev/null || /usr/bin/true
|
||||
|
@ -33,5 +33,3 @@ libdata/pkgconfig/libjxl_threads.pc
|
||||
%%MANPAGES%%share/man/man1/djxl.1.gz
|
||||
share/mime/packages/image-jxl.xml
|
||||
%%PIXBUF%%share/thumbnailers/jxl.thumbnailer
|
||||
%%PIXBUF%%@postexec %D/bin/gdk-pixbuf-query-loaders > /dev/null 2>&1 && %D/bin/gdk-pixbuf-query-loaders > %D/lib/gdk-pixbuf-2.0/%%GTK2_VERSION%%/loaders.cache 2>/dev/null || /usr/bin/true
|
||||
%%PIXBUF%%@postunexec %D/bin/gdk-pixbuf-query-loaders > /dev/null 2>&1 && %D/bin/gdk-pixbuf-query-loaders > %D/lib/gdk-pixbuf-2.0/%%GTK2_VERSION%%/loaders.cache 2>/dev/null || /usr/bin/true
|
||||
|
@ -131,5 +131,3 @@ man/man1/rsvg-convert.1.gz
|
||||
share/gir-1.0/Rsvg-2.0.gir
|
||||
share/thumbnailers/librsvg.thumbnailer
|
||||
share/vala/vapi/librsvg-2.0.vapi
|
||||
@postexec %D/bin/gdk-pixbuf-query-loaders > /dev/null 2>&1 && %D/bin/gdk-pixbuf-query-loaders > %D/lib/gdk-pixbuf-2.0/%%GTK2_VERSION%%/loaders.cache 2>/dev/null || /usr/bin/true
|
||||
@postunexec %D/bin/gdk-pixbuf-query-loaders > /dev/null 2>&1 && %D/bin/gdk-pixbuf-query-loaders > %D/lib/gdk-pixbuf-2.0/%%GTK2_VERSION%%/loaders.cache 2>/dev/null || /usr/bin/true
|
||||
|
@ -35,5 +35,3 @@ man/man1/rsvg-convert.1.gz
|
||||
share/gir-1.0/Rsvg-2.0.gir
|
||||
share/thumbnailers/librsvg.thumbnailer
|
||||
%%VAPI%%share/vala/vapi/librsvg-2.0.vapi
|
||||
@postexec %D/bin/gdk-pixbuf-query-loaders > /dev/null 2>&1 && %D/bin/gdk-pixbuf-query-loaders > %D/lib/gdk-pixbuf-2.0/%%GTK2_VERSION%%/loaders.cache 2>/dev/null || /usr/bin/true
|
||||
@postunexec %D/bin/gdk-pixbuf-query-loaders > /dev/null 2>&1 && %D/bin/gdk-pixbuf-query-loaders > %D/lib/gdk-pixbuf-2.0/%%GTK2_VERSION%%/loaders.cache 2>/dev/null || /usr/bin/true
|
||||
|
@ -1,4 +1,2 @@
|
||||
lib/gdk-pixbuf-2.0/%%GTK2_VERSION%%/loaders/libpixbufloader-webp.so
|
||||
share/thumbnailers/webp-pixbuf.thumbnailer
|
||||
@postexec %D/bin/gdk-pixbuf-query-loaders > /dev/null 2>&1 && %D/bin/gdk-pixbuf-query-loaders > %D/lib/gdk-pixbuf-2.0/%%GTK2_VERSION%%/loaders.cache 2>/dev/null || /usr/bin/true
|
||||
@postunexec %D/bin/gdk-pixbuf-query-loaders > /dev/null 2>&1 && %D/bin/gdk-pixbuf-query-loaders > %D/lib/gdk-pixbuf-2.0/%%GTK2_VERSION%%/loaders.cache 2>/dev/null || /usr/bin/true
|
||||
|
Loading…
Reference in New Issue
Block a user