changeset 1055:7a71eb84714d

graphics/gdk-pixbuf: add shared-mime-info dependency
author David Demelier <markand@malikania.fr>
date Mon, 02 Sep 2019 21:07:00 +0200
parents 787039ee3948
children 738844ea7821
files graphics/gdk-pixbuf/gdk-pixbuf.sh graphics/gdk-pixbuf/patch-meson.patch
diffstat 2 files changed, 14 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/graphics/gdk-pixbuf/gdk-pixbuf.sh	Mon Sep 02 21:05:00 2019 +0200
+++ b/graphics/gdk-pixbuf/gdk-pixbuf.sh	Mon Sep 02 21:07:00 2019 +0200
@@ -21,7 +21,7 @@
 PKGLICENSE="LGPLv21"
 PKGSUMMARY="image loading library"
 PKGDOWNLOAD="http://ftp.gnome.org/pub/gnome/sources/gdk-pixbuf/2.38/$PKGNAME-$PKGVERSION.tar.xz"
-PKGDEPENDS="meson:build"
+PKGDEPENDS="meson:build shared-mime-info"
 PKGOPTIONS="JASPER JPEG PNG TIFF X"
 
 : ${CC:=clang}
@@ -29,7 +29,7 @@
 : ${CXX:=clang++}
 : ${CXXFLAGS:=-O2}
 : ${LDFLAGS:=}
-: ${JASPER:=no}
+: ${JASPER:=no}         # TODO: set to yes once available
 : ${JPEG:=yes}
 : ${PNG:=yes}
 : ${TIFF:=yes}
@@ -77,6 +77,7 @@
 	cd $PKGNAME-$PKGVERSION
 
 	# TODO: enable documentation once docbook-xml is there.
+	patch -p0 < ../patch-meson.patch
 	CC="$CC" \
 	CFLAGS="$CFLAGS" \
 	CXX="$CXX" \
@@ -89,6 +90,7 @@
 		-D libdir=lib \
 		-D docs=false \
 		-D man=false \
+		-D installed_tests=false \
 		$with_jasper \
 		$with_jpeg \
 		$with_png \
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/gdk-pixbuf/patch-meson.patch	Mon Sep 02 21:07:00 2019 +0200
@@ -0,0 +1,10 @@
+--- meson.build.orig	2019-09-02 11:12:29.370833192 +0200
++++ meson.build	2019-09-02 11:12:51.282833865 +0200
+@@ -398,7 +398,6 @@
+ subdir('po')
+ 
+ if not meson.is_cross_build()
+-  subdir('tests')
+   subdir('thumbnailer')
+ endif
+