support/dependencies/dependencies.sh: check for JSON:PP Perl module
authorAdrian Perez de Castro <aperez@igalia.com>
Sun, 15 Sep 2019 22:57:43 +0000 (01:57 +0300)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Tue, 17 Sep 2019 20:36:42 +0000 (22:36 +0200)
The JSON::PP Perl module is used at build time by the webkitgtk and
wpewebkit packages.

Signed-off-by: Adrian Perez de Castro <aperez@igalia.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
support/dependencies/dependencies.sh

index 3a170cbda6db09c258f09a821079b488d2e6c917..3f189854356e6c997c6debb62de030de4ddfa131 100755 (executable)
@@ -270,6 +270,10 @@ if grep -q ^BR2_PACKAGE_WHOIS=y $BR2_CONFIG ; then
     required_perl_modules="$required_perl_modules autodie"
 fi
 
+if grep -q -E '^BR2_PACKAGE_(WEBKITGTK|WPEWEBKIT)=y' $BR2_CONFIG ; then
+    required_perl_modules="${required_perl_modules} JSON::PP"
+fi
+
 # This variable will keep the modules that are missing in your system.
 missing_perl_modules=""