Description: Change the generation of the part-of-speech lexicon to use nstore instead of store.
 This should make the package architecture-independent and reproducible.
Forwarded: no
Author: Chris Butler <chrisb@debian.org>, Reiner Herrmann <reiner@reiner-h.de>
Last-Update: 2015-05-28
Reviewed-By: Axel Beckert <abe@debian.org>

--- a/Makefile.PL
+++ b/Makefile.PL
@@ -33,8 +33,9 @@
         
 
 sub install {
-        use Storable;
+        use Storable qw/nstore/;
         use File::Spec;
+        $Storable::canonical = 1;
         my $lex_dir = 'Tagger';
         my $word_path = File::Spec->catfile( $lex_dir, 'pos_words.hash' );
         my $tag_path = File::Spec->catfile( $lex_dir, 'pos_tags.hash' );
@@ -44,8 +44,8 @@
                 _load_tags( File::Spec->catfile( $lex_dir, 'tags.yml' ) );
                 _load_words( File::Spec->catfile( $lex_dir, 'words.yml' ) );
                 _load_words( File::Spec->catfile( $lex_dir, 'unknown.yml' ) );
-                store \%_LEXICON, $word_path;
-                store \%_HMM, $tag_path;
+                nstore \%_LEXICON, $word_path;
+                nstore \%_HMM, $tag_path;
         }
 
         if( -f $word_path and -f $tag_path ){
