2009-04-02 16:30:34 +02:00
|
|
|
/* Pthread man pages from LinuxThreads.
|
|
|
|
|
|
|
|
Some of these pages are superseded by those in the `man-pages'
|
|
|
|
package, but not all. Like other distros (e.g., Debian's
|
|
|
|
`glibc-doc' package) we take man pages from LinuxThreads so that
|
|
|
|
we can cover pretty much all of pthreads. */
|
|
|
|
|
|
|
|
{ fetchurl, stdenv, perl }:
|
|
|
|
|
2011-03-24 12:45:58 +01:00
|
|
|
let version = "2.5";
|
2009-04-02 16:30:34 +02:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "pthread-man-pages-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnu/glibc/glibc-linuxthreads-${version}.tar.bz2";
|
2011-03-24 12:45:58 +01:00
|
|
|
sha256 = "0b5xg7ba64d1gbqw4k1qk96qgy7h2y4qksr0qx8v7a14c6xaw9zf";
|
2009-04-02 16:30:34 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ perl ];
|
|
|
|
|
|
|
|
unpackPhase = ''
|
|
|
|
echo "unpacking to \`${name}'"
|
|
|
|
mkdir "${name}"
|
|
|
|
cd "${name}"
|
|
|
|
tar xjvf "$src"
|
|
|
|
'';
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
ensureDir "$out/share/man/man3"
|
|
|
|
|
|
|
|
sed -i "linuxthreads/man/Makefile" \
|
|
|
|
-e "s|MANDIR *=.*$|MANDIR = $out/share/man/man3| ;
|
|
|
|
s|3thr|3|g"
|
|
|
|
'';
|
|
|
|
|
|
|
|
preConfigure = "cd linuxthreads/man";
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
chmod a-x $out/share/man/man3/*.3
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "POSIX threads (pthreads) manual pages from LinuxThreads";
|
|
|
|
homepage = http://www.gnu.org/software/libc/;
|
|
|
|
};
|
|
|
|
}
|