From 7ec61219db821cf9fff8c133efe7c4d2bc69cbd1 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 22 Apr 2009 23:04:18 +0000 Subject: [PATCH] * lib/site_perl -> lib/perl5/site_perl. svn path=/nixpkgs/branches/stdenv-updates/; revision=15258 --- .../version-management/git-and-tools/git/default.nix | 4 ++-- .../version-management/git-and-tools/git/git-git.nix | 4 ++-- pkgs/development/perl-modules/generic/builder.sh | 2 +- pkgs/development/tools/misc/icon-naming-utils/default.nix | 5 ++++- pkgs/tools/text/namazu/default.nix | 3 ++- pkgs/tools/typesetting/docbook2x/default.nix | 4 ++-- 6 files changed, 13 insertions(+), 9 deletions(-) diff --git a/pkgs/applications/version-management/git-and-tools/git/default.nix b/pkgs/applications/version-management/git-and-tools/git/default.nix index 1916e58cacd0..d752dd36557e 100644 --- a/pkgs/applications/version-management/git-and-tools/git/default.nix +++ b/pkgs/applications/version-management/git-and-tools/git/default.nix @@ -47,9 +47,9 @@ stdenv.mkDerivation rec { + (if svnSupport then ''# wrap git-svn - gitperllib=$out/lib/site_perl + gitperllib=$out/lib/perl5/site_perl for i in ${builtins.toString perlLibs}; do - gitperllib=$gitperllib:$i/lib/site_perl + gitperllib=$gitperllib:$i/lib/perl5/site_perl done wrapProgram "$out/libexec/git-core/git-svn" \ --set GITPERLLIB "$gitperllib" \ diff --git a/pkgs/applications/version-management/git-and-tools/git/git-git.nix b/pkgs/applications/version-management/git-and-tools/git/git-git.nix index a711f399a82f..03567b8a37d8 100644 --- a/pkgs/applications/version-management/git-and-tools/git/git-git.nix +++ b/pkgs/applications/version-management/git-and-tools/git/git-git.nix @@ -54,9 +54,9 @@ stdenv.mkDerivation rec { + (if svnSupport then ''# wrap git-svn - gitperllib=$out/lib/site_perl + gitperllib=$out/lib/perl5/site_perl for i in ${builtins.toString perlLibs}; do - gitperllib=$gitperllib:$i/lib/site_perl + gitperllib=$gitperllib:$i/lib/perl5/site_perl done #cp git-svn "$out/bin" wrapArgs="$wrapArgs --set GITPERLLIB $gitperllib" diff --git a/pkgs/development/perl-modules/generic/builder.sh b/pkgs/development/perl-modules/generic/builder.sh index b22085f3cbb5..4285623d1c89 100644 --- a/pkgs/development/perl-modules/generic/builder.sh +++ b/pkgs/development/perl-modules/generic/builder.sh @@ -1,6 +1,6 @@ source $stdenv/setup -PERL5LIB="$PERL5LIB${PERL5LIB:+:}$out/lib/site_perl" +PERL5LIB="$PERL5LIB${PERL5LIB:+:}$out/lib/perl5/site_perl" perlFlags= for i in $(IFS=:; echo $PERL5LIB); do diff --git a/pkgs/development/tools/misc/icon-naming-utils/default.nix b/pkgs/development/tools/misc/icon-naming-utils/default.nix index fb8a863968a6..9d8b85f80bfd 100644 --- a/pkgs/development/tools/misc/icon-naming-utils/default.nix +++ b/pkgs/development/tools/misc/icon-naming-utils/default.nix @@ -2,15 +2,18 @@ stdenv.mkDerivation { name = "icon-naming-utils-0.8.7"; + src = fetchurl { url = http://tango.freedesktop.org/releases/icon-naming-utils-0.8.7.tar.gz; sha256 = "1lj0lffdg7fjfinhrn0vsq1kj010dxlxlix4jfc969j6l3k9rd0w"; }; + buildInputs = [perl perlXMLSimple]; + postInstall = " # Add XML::Simple to the runtime search path. substituteInPlace $out/libexec/icon-name-mapping \\ - --replace '/bin/perl' '/bin/perl -I${perlXMLSimple}/lib/site_perl'; + --replace '/bin/perl' '/bin/perl -I${perlXMLSimple}/lib/perl5/site_perl'; ensureDir $out/lib ln -s $out/share/pkgconfig $out/lib/pkgconfig # WTF? "; diff --git a/pkgs/tools/text/namazu/default.nix b/pkgs/tools/text/namazu/default.nix index a57b5cc594a8..9eab819612fa 100644 --- a/pkgs/tools/text/namazu/default.nix +++ b/pkgs/tools/text/namazu/default.nix @@ -11,10 +11,11 @@ stdenv.mkDerivation rec { buildInputs = [ perl ]; # First install the `File::MMagic' Perl module. + # !!! this shouldn't refer to Perl 5.10.0! preConfigure = '' ( cd File-MMagic && \ perl Makefile.PL \ - LIB="$out/lib/site_perl/5.10.0" \ + LIB="$out/lib/perl5/site_perl/5.10.0" \ INSTALLSITEMAN3DIR="$out/man" && \ make && make install ) export PERL5LIB="$out/lib/site_perl/5.10.0:$PERL5LIB" diff --git a/pkgs/tools/typesetting/docbook2x/default.nix b/pkgs/tools/typesetting/docbook2x/default.nix index 30276fcb6f66..cebf71ca2009 100644 --- a/pkgs/tools/typesetting/docbook2x/default.nix +++ b/pkgs/tools/typesetting/docbook2x/default.nix @@ -32,9 +32,9 @@ stdenv.mkDerivation rec { # XXX: We work around the fact that `wrapProgram' doesn't support # spaces below by inserting escaped backslashes. wrapProgram $out/bin/$i --prefix PERL5LIB : \ - "${perlXMLSAX}/lib/site_perl:${perlXMLParser}/lib/site_perl" \ + "${perlXMLSAX}/lib/perl5/site_perl:${perlXMLParser}/lib/perl5/site_perl" \ --prefix PERL5LIB : \ - "${perlXMLNamespaceSupport}/lib/site_perl" \ + "${perlXMLNamespaceSupport}/lib/perl5/site_perl" \ --prefix XML_CATALOG_FILES "\ " \ "$out/share/docbook2X/dtd/catalog.xml\ $out/share/docbook2X/xslt/catalog.xml" done