]> jfr.im git - irc/hexchat/hexchat.git/commitdiff
build: Add option to specify path to perl binary
authorRainer Müller <redacted>
Fri, 23 Mar 2018 00:36:35 +0000 (01:36 +0100)
committerTingPing <redacted>
Fri, 23 Mar 2018 09:14:45 +0000 (09:14 +0000)
data/misc/meson.build
meson_options.txt
plugins/meson.build
plugins/perl/meson.build

index 6cbd9f91836c2075c877ec945bccf04b2afdd4c1..02d6bf25fcf9218a9dea5eed41b0c786896d5ed7 100644 (file)
@@ -90,7 +90,7 @@ if get_option('with-plugin')
     ]
   endif
 
-  if get_option('with-perl')
+  if get_option('with-perl') != 'false'
     plugin_metainfo += [
       ['Perl', 'Provides a scripting interface in Perl', 'GPL-2.0+']
     ]
index eee217918e53a7f4aa186ea6d3618221d2255e62..23f4fd104f9605ed4606de164db85d794bfbccf5 100644 (file)
@@ -42,8 +42,8 @@ option('with-fishlim', type: 'boolean',
 option('with-lua', type: 'string', value: 'luajit',
   description: 'Lua scripting plugin, value is pkg-config name to use or "false"'
 )
-option('with-perl', type: 'boolean',
-  description: 'Perl scripting plugin'
+option('with-perl', type: 'string', value: 'perl',
+  description: 'Perl scripting plugin, value is path to perl executable or "false"'
 )
 option('with-python', type: 'string', value: 'python3',
   description: 'Python scripting plugin. value is pkg-config name to use or "false"'
index 9e7fae93b773ddf2fb8ad1898b4638448924ea96..6d41182b490fa675276e95b70bbc3376c408039b 100644 (file)
@@ -26,7 +26,7 @@ if get_option('with-lua') != 'false'
   subdir('lua')
 endif
 
-if get_option('with-perl')
+if get_option('with-perl') != 'false'
   subdir('perl')
 endif
 
index 180797ee764eb205f836ca36936ab96814128919..3779a35cdfc3ea2530ee2f42edbc423e905bf2a5 100644 (file)
@@ -25,7 +25,7 @@ if get_option('with-perl-legacy-api')
   perl_cflags += '-DOLD_PERL'
 endif
 
-perl = find_program('perl')
+perl = find_program(get_option('with-perl'))
 
 ret = run_command([perl, '-MExtUtils::Embed', '-e', 'ccopts'])
 if ret.returncode() != 0