Commit d9b1d9dd authored by Jérome Perrin's avatar Jérome Perrin

component/obs: use variable for perl version

parent 2907e9f6
......@@ -44,23 +44,23 @@ configure-options +=
make-options +=
DESTDIR=${buildout:destdir}
environment +=
PERL5LIB=${perl:location}/lib/5.38.0/
PERL5LIB=${perl:location}/lib/${perl:version}/
[intltool]
environment +=
PERL5LIB=${perl:location}/lib/5.38.0/
PERL5LIB=${perl:location}/lib/${perl:version}/
[autoconf]
environment +=
PERL5LIB=${perl:location}/lib/5.38.0/
PERL5LIB=${perl:location}/lib/${perl:version}/
[automake]
environment +=
PERL5LIB=${perl:location}/lib/5.38.0/
PERL5LIB=${perl:location}/lib/${perl:version}/
[firewalld]
environment +=
PERL5LIB=${perl:location}/lib/5.38.0/
PERL5LIB=${perl:location}/lib/${perl:version}/
[dbus]
......@@ -97,7 +97,7 @@ make-options +=
INSTALL_PREFIX=${buildout:destdir}
DESTDIR=${buildout:destdir}
environment +=
PERL5LIB=${perl:location}/lib/5.38.0/
PERL5LIB=${perl:location}/lib/${perl:version}/
[gobject-introspection]
pre-configure +=
......@@ -105,7 +105,7 @@ pre-configure +=
configure-options +=
--enable-shared
environment +=
PERL5LIB=${perl:location}/lib/5.38.0/
PERL5LIB=${perl:location}/lib/${perl:version}/
post-install =
sed -i 's#!${python:location}/bin/python${python:version}#!/opt/slapos/parts/python${python:version}/bin/python${python:version}#' ${python:location}/bin/python${python:version}-config
......@@ -121,14 +121,14 @@ environment +=
[perl-CPAN-package]
perl-PERL5LIB=${perl:location}/lib/5.38.0/
perl-PERL5LIB=${perl:location}/lib/${perl:version}/
pre-configure =
sed -i "s#'/opt/slapos/parts/perl#'${perl:location}#" ${perl:location}/lib/5.38.0/*-linux-thread-multi/Config.pm
sed -i "s#'/opt/slapos/parts/site_perl#'${buildout:destdir}/parts/site_perl#" ${perl:location}/lib/5.38.0/*-linux-thread-multi/Config.pm
sed -i "s#'/opt/slapos/parts/perl#'${perl:location}#" ${perl:location}/lib/${perl:version}/*-linux-thread-multi/Config.pm
sed -i "s#'/opt/slapos/parts/site_perl#'${buildout:destdir}/parts/site_perl#" ${perl:location}/lib/${perl:version}/*-linux-thread-multi/Config.pm
post-install =
sed -i "s#'${perl:location}#'/opt/slapos/parts/perl#" ${perl:location}/lib/5.38.0/*-linux-thread-multi/Config.pm
sed -i "s#'${buildout:destdir}/parts/site_perl#'/opt/slapos/parts/site_perl#" ${perl:location}/lib/5.38.0/*-linux-thread-multi/Config.pm
sed -i "s#'${perl:location}#'/opt/slapos/parts/perl#" ${perl:location}/lib/${perl:version}/*-linux-thread-multi/Config.pm
sed -i "s#'${buildout:destdir}/parts/site_perl#'/opt/slapos/parts/site_perl#" ${perl:location}/lib/${perl:version}/*-linux-thread-multi/Config.pm
[perl]
configure-command =
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment