perl: Port multiple-output changes from 5.16 to 5.20 and 5.22

This commit is contained in:
Tuomas Tynkkynen 2015-08-23 11:14:59 +03:00 committed by Vladimír Čunát
parent 0da9c49303
commit 837c104512
2 changed files with 22 additions and 0 deletions

View File

@ -92,6 +92,17 @@ stdenv.mkDerivation rec {
substituteInPlace dist/PathTools/Cwd.pm --replace "'/bin/pwd'" "'$(type -tP pwd)'"
'';
postInstall =
''
# Remove dependency between "out" and "man" outputs.
rm $out/lib/perl5/*/*/.packlist
# Remove dependencies on glibc.dev and coreutils.
substituteInPlace $out/lib/perl5/*/*/Config_heavy.pl \
--replace ${stdenv.glibc.dev or "/blabla"} /no-such-path \
--replace $man /no-such-path
''; # */
setupHook = ./setup-hook.sh;
passthru.libPrefix = "lib/perl5/site_perl";

View File

@ -101,6 +101,17 @@ stdenv.mkDerivation rec {
unset LD_LIBRARY_PATH
'';
postInstall =
''
# Remove dependency between "out" and "man" outputs.
rm $out/lib/perl5/*/*/.packlist
# Remove dependencies on glibc.dev and coreutils.
substituteInPlace $out/lib/perl5/*/*/Config_heavy.pl \
--replace ${stdenv.glibc.dev or "/blabla"} /no-such-path \
--replace $man /no-such-path
''; # */
meta = {
homepage = https://www.perl.org/;
description = "The standard implementation of the Perl 5 programmming language";