Fixed the comments tool

svn path=/nixpkgs/trunk/; revision=27469
This commit is contained in:
Sander van der Burg 2011-06-15 12:04:31 +00:00
parent d03599f8ce
commit 22b9fd78a4

View file

@ -15,21 +15,23 @@ stdenv.mkDerivation {
buildInputs = [ perl ];
buildPhase = ''
cd comments
tar xfvz comments.tar.gz
cd comments
sed -i -e "s|/usr/local/bin|$out/bin|g" -e "s|/usr/local/man|$out/share/man|g" Makefile
make
'';
installPhase = ''
cd ../..
ensureDir $out/bin
cp ninka.pl $out/bin
cp -av {extComments,splitter,filter,senttok,matcher} $out/bin
cd comments
tar xfvz comments.tar.gz
cd comments
sed -i -e "s|/usr/local/bin|$out/bin|" -e "s|/usr/local/man|$out/share/man|" Makefile
cd comments/comments
ensureDir $out/{bin,share/man/man1}
make install
# Dirty
#patchelf --set-interpreter ${stdenv.glibc}/lib/ld-linux-x86-64.so.2 $out/bin/comments
#patchelf --set-rpath ${stdenv.glibc}/lib:${stdenv.gcc}/lib $out/bin/comments
make install
'';
meta = {