* Added Acrobat Reader. Thanks to patchelf this is entirely pure.

svn path=/nixpkgs/trunk/; revision=1507
This commit is contained in:
Eelco Dolstra 2004-09-25 20:27:40 +00:00
parent a7f41fb270
commit f8718c601f
3 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,21 @@
. $stdenv/setup
echo "unpacking $src..."
tar xvfz $src
mkdir $out
echo "unpacking reader..."
tar xvf ./COMMON.TAR -C $out
tar xvf ./LINUXRDR.TAR -C $out
glibc=$(cat $NIX_GCC/nix-support/orig-glibc)
patchelf --interpreter $glibc/lib/ld-linux.so.* $out/Reader/intellinux/bin/acroread
sed "s^REPLACE_ME^$out/Reader^" $out/bin/acroread.sh > $out/bin/acroread.sh.tmp
echo "#! /bin/sh" > $out/bin/acroread.sh
echo "LD_LIBRARY_PATH=$libXt/lib:$libXp/lib:$libXext/lib:$libX11/lib" >> $out/bin/acroread.sh
cat $out/bin/acroread.sh.tmp >> $out/bin/acroread.sh
chmod 755 $out/bin/acroread.sh
mv $out/bin/acroread.sh $out/bin/acroread

View File

@ -0,0 +1,12 @@
{stdenv, fetchurl, patchelf, libXt, libXp, libXext, libX11}:
stdenv.mkDerivation {
name = "acrobat-reader-5.0.9";
builder = ./builder.sh;
src = fetchurl {
url = http://ardownload.adobe.com/pub/adobe/acrobatreader/unix/5.x/linux-509.tar.gz;
md5 = "53b7ca0fc83ab81214ba82050ce89c64";
};
buildInputs = [patchelf];
inherit libXt libXp libXext libX11;
}

View File

@ -839,6 +839,11 @@ rec {
inherit fetchurl stdenv wxGTK chmlib;
};
acroread = (import ../applications/misc/acrobat-reader) {
inherit fetchurl stdenv patchelf;
inherit (xlibs) libXt libXp libXext libX11;
};
nxml = (import ../applications/editors/emacs/modes/nxml) {
inherit fetchurl stdenv;
};