perl: Split off the manpages (7 MiB)
This commit is contained in:
parent
baba3cbb0a
commit
b9049bff6d
|
@ -14,7 +14,7 @@ stdenv.mkDerivation (args // {
|
||||||
configureFlags="--mandir=$man/share/man $configureFlags"
|
configureFlags="--mandir=$man/share/man $configureFlags"
|
||||||
'' +
|
'' +
|
||||||
optionalString (elem "bin" outputs) ''
|
optionalString (elem "bin" outputs) ''
|
||||||
configureFlags="--bindir=$bin/bin --mandir=$bin/share/man $configureFlags"
|
configureFlags="--bindir=$bin/bin --sbindir=$bin/sbin --mandir=$bin/share/man $configureFlags"
|
||||||
'' +
|
'' +
|
||||||
optionalString (elem "lib" outputs) ''
|
optionalString (elem "lib" outputs) ''
|
||||||
configureFlags="--libdir=$lib/lib $configureFlags"
|
configureFlags="--libdir=$lib/lib $configureFlags"
|
||||||
|
@ -52,10 +52,31 @@ stdenv.mkDerivation (args // {
|
||||||
propagatedNativeBuildInputs="$lib $propagatedNativeBuildsInputs"
|
propagatedNativeBuildInputs="$lib $propagatedNativeBuildsInputs"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for i in $bin $lib; do
|
for i in $bin $lib $man $static; do
|
||||||
prefix="$i" stripDirs "lib lib64 libexec bin sbin" "''${stripDebugFlags:--S}"
|
if [ -z "$dontStrip" ]; then
|
||||||
prefix="$i" patchELF
|
prefix="$i" stripDirs "lib lib64 libexec bin sbin" "''${stripDebugFlags:--S}"
|
||||||
patchShebangs "$i"
|
fi
|
||||||
|
if [ "$havePatchELF" = 1 -a -z "$dontPatchELF" ]; then
|
||||||
|
prefix="$i" patchELF
|
||||||
|
fi
|
||||||
|
if [ -z "$dontPatchShebangs" ]; then
|
||||||
|
patchShebangs "$i"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Cut&paste...
|
||||||
|
if [ -z "$dontGzipMan" ]; then
|
||||||
|
GLOBIGNORE=.:..:*.gz:*.bz2
|
||||||
|
for f in $i/share/man/*/* $i/share/man/*/*/*; do
|
||||||
|
if [ -f $f ]; then
|
||||||
|
if gzip -c $f > $f.gz; then
|
||||||
|
rm $f
|
||||||
|
else
|
||||||
|
rm $f.gz
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
unset GLOBIGNORE
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
runHook postFixupOutputs
|
runHook postFixupOutputs
|
||||||
|
|
|
@ -14,6 +14,10 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "03nh8bqnjsdd5izjv3n2yfcxw4ck0llwww36jpbjbjgixwpqpy4f";
|
sha256 = "03nh8bqnjsdd5izjv3n2yfcxw4ck0llwww36jpbjbjgixwpqpy4f";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
outputs = [ "out" "man" ];
|
||||||
|
|
||||||
|
setOutputConfigureFlags = false;
|
||||||
|
|
||||||
patches =
|
patches =
|
||||||
[ # Do not look in /usr etc. for dependencies.
|
[ # Do not look in /usr etc. for dependencies.
|
||||||
./no-sys-dirs.patch
|
./no-sys-dirs.patch
|
||||||
|
@ -44,7 +48,7 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
preConfigure =
|
preConfigure =
|
||||||
''
|
''
|
||||||
configureFlags="$configureFlags -Dprefix=$out -Dman1dir=$out/share/man/man1 -Dman3dir=$out/share/man/man3"
|
configureFlags="$configureFlags -Dprefix=$out -Dman1dir=$man/share/man/man1 -Dman3dir=$man/share/man/man3"
|
||||||
|
|
||||||
${stdenv.lib.optionalString stdenv.isArm ''
|
${stdenv.lib.optionalString stdenv.isArm ''
|
||||||
configureFlagsArray=(-Dldflags="-lm -lrt")
|
configureFlagsArray=(-Dldflags="-lm -lrt")
|
||||||
|
|
|
@ -2969,6 +2969,7 @@ let
|
||||||
perl514 = callPackage ../development/interpreters/perl/5.14 { };
|
perl514 = callPackage ../development/interpreters/perl/5.14 { };
|
||||||
|
|
||||||
perl516 = callPackage ../development/interpreters/perl/5.16 {
|
perl516 = callPackage ../development/interpreters/perl/5.16 {
|
||||||
|
stdenv = stdenvMulti;
|
||||||
fetchurl = fetchurlBoot;
|
fetchurl = fetchurlBoot;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue