diff options
author | Eric Sandall | 2018-03-06 18:28:21 -0800 |
---|---|---|
committer | Eric Sandall | 2018-03-06 18:28:21 -0800 |
commit | 50697b746611e5707e830c2a80d6b5a3b30c5931 (patch) | |
tree | 874ae057d0b098ed11a7dc831281a09359261cd7 /FUNCTIONS | |
parent | 386c8849283ee4e6344d3c94850ab37d501b1bb1 (diff) |
Add default_install_perl to work with make or Build.PL scripts
Override default_install in perl-cpan to use default_install_perl
Fixes perl-error and module-build, for example.
Diffstat (limited to 'FUNCTIONS')
-rwxr-xr-x | FUNCTIONS | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -495,6 +495,18 @@ function default_build_perl() { fi } +#------------------------------------------------------------------------- +## Default install for Perl spell. +#------------------------------------------------------------------------- +function default_install_perl() { + if [ -f Build.PL ]; then + perl Build install + else + make install + fi +} + + #--- ## disable_pic ## A function to smartly disable -DPIC and -fPIC flags |