summary refs log tree commit diff
path: root/pkgs/development/web/wml
diff options
context:
space:
mode:
authorLuca Bruno <lucabru@src.gnome.org>2014-12-18 00:42:38 +0100
committerLuca Bruno <lucabru@src.gnome.org>2014-12-18 00:43:13 +0100
commit31e1e8325bc00fc6d3fd0c3eb9a087c8209a2ad9 (patch)
treebd290283c85df074e2c9e6829735d77e3b61dd9e /pkgs/development/web/wml
parentb11927ff684168e95147a42895def8c9eb486be5 (diff)
downloadnixlib-31e1e8325bc00fc6d3fd0c3eb9a087c8209a2ad9.tar
nixlib-31e1e8325bc00fc6d3fd0c3eb9a087c8209a2ad9.tar.gz
nixlib-31e1e8325bc00fc6d3fd0c3eb9a087c8209a2ad9.tar.bz2
nixlib-31e1e8325bc00fc6d3fd0c3eb9a087c8209a2ad9.tar.lz
nixlib-31e1e8325bc00fc6d3fd0c3eb9a087c8209a2ad9.tar.xz
nixlib-31e1e8325bc00fc6d3fd0c3eb9a087c8209a2ad9.tar.zst
nixlib-31e1e8325bc00fc6d3fd0c3eb9a087c8209a2ad9.zip
Fix wml build, don't know why it worked before
Diffstat (limited to 'pkgs/development/web/wml')
-rw-r--r--pkgs/development/web/wml/default.nix14
1 files changed, 12 insertions, 2 deletions
diff --git a/pkgs/development/web/wml/default.nix b/pkgs/development/web/wml/default.nix
index 0834ce8bd278..d3c67ec14d35 100644
--- a/pkgs/development/web/wml/default.nix
+++ b/pkgs/development/web/wml/default.nix
@@ -8,12 +8,22 @@ perlPackages.buildPerlPackage rec {
     sha256 = "0jjxpq91x7y2mgixz7ghqp01m24qa37wl3zz515rrzv7x8cyy4cf";
   };
 
-  preConfigure = "touch Makefile.PL";
+  # Getting lots of Non-ASCII character errors from pod2man.
+  # Inserting =encoding utf8 before the first =head occurrence.
+  # Wasn't able to fix mp4h.
+  preConfigure = ''
+    touch Makefile.PL
+    for i in wml_backend/p6_asubst/asubst.src wml_aux/freetable/freetable.src wml_docs/*.pod wml_include/des/*.src wml_include/fmt/*.src; do
+      sed -i '0,/^=head/{s/^=head/=encoding utf8\n=head/}' $i
+    done
+    sed -i 's/ doc / /g' wml_backend/p2_mp4h/Makefile.in
+    sed -i '/p2_mp4h\/doc/d' Makefile.in
+  '';
   
   buildInputs = [ perlPackages.perl ncurses lynx makeWrapper ];
 
   patches = [ ./redhat-with-thr.patch ./dynaloader.patch ./no_bitvector.patch ];
-
+  
   preFixup = ''
     substituteInPlace $out/bin/wml \
       --replace "File::PathConvert::realpath" "Cwd::realpath" \