summaryrefslogtreecommitdiffstats
path: root/FUNCTIONS
diff options
context:
space:
mode:
authorEric Sandall2018-03-06 18:28:21 -0800
committerEric Sandall2018-03-06 18:28:21 -0800
commit50697b746611e5707e830c2a80d6b5a3b30c5931 (patch)
tree874ae057d0b098ed11a7dc831281a09359261cd7 /FUNCTIONS
parent386c8849283ee4e6344d3c94850ab37d501b1bb1 (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-xFUNCTIONS12
1 files changed, 12 insertions, 0 deletions
diff --git a/FUNCTIONS b/FUNCTIONS
index b9cd91f707..978b8f7409 100755
--- a/FUNCTIONS
+++ b/FUNCTIONS
@@ -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