r58818 - in /trunk/liblingua-en-tagger-perl/debian: changelog patches/series patches/use-nstore-for-datafiles

chrisb at users.alioth.debian.org chrisb at users.alioth.debian.org
Thu Jun 3 22:25:58 UTC 2010


Author: chrisb
Date: Thu Jun  3 22:25:42 2010
New Revision: 58818

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=58818
Log:
Added patch use-nstore-for-datafiles which makes the installed lexicon
files architecture-independent by using nstore.

Added:
    trunk/liblingua-en-tagger-perl/debian/patches/use-nstore-for-datafiles
Modified:
    trunk/liblingua-en-tagger-perl/debian/changelog
    trunk/liblingua-en-tagger-perl/debian/patches/series

Modified: trunk/liblingua-en-tagger-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/liblingua-en-tagger-perl/debian/changelog?rev=58818&op=diff
==============================================================================
--- trunk/liblingua-en-tagger-perl/debian/changelog (original)
+++ trunk/liblingua-en-tagger-perl/debian/changelog Thu Jun  3 22:25:42 2010
@@ -1,5 +1,6 @@
 liblingua-en-tagger-perl (0.16-1) UNRELEASED; urgency=low
 
+  [ gregor herrmann ]
   TODO:
   I _guess_ this package should be arch:any (cf.
   libdbix-class-schema-loader-perl's d/changelog)
@@ -11,6 +12,10 @@
     source.
   * Adjust short description.
 
+  [ Chris Butler ]
+  * Added patch use-nstore-for-datafiles which makes the installed lexicon
+    files architecture-independent by using nstore.
+
  -- gregor herrmann <gregoa at debian.org>  Thu, 03 Jun 2010 14:46:37 +0200
 
 liblingua-en-tagger-perl (0.15-1) unstable; urgency=low

Modified: trunk/liblingua-en-tagger-perl/debian/patches/series
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/liblingua-en-tagger-perl/debian/patches/series?rev=58818&op=diff
==============================================================================
--- trunk/liblingua-en-tagger-perl/debian/patches/series (original)
+++ trunk/liblingua-en-tagger-perl/debian/patches/series Thu Jun  3 22:25:42 2010
@@ -1,2 +1,3 @@
+use-nstore-for-datafiles
 fix-pod-errors
 add-pod-test

Added: trunk/liblingua-en-tagger-perl/debian/patches/use-nstore-for-datafiles
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/liblingua-en-tagger-perl/debian/patches/use-nstore-for-datafiles?rev=58818&op=file
==============================================================================
--- trunk/liblingua-en-tagger-perl/debian/patches/use-nstore-for-datafiles (added)
+++ trunk/liblingua-en-tagger-perl/debian/patches/use-nstore-for-datafiles Thu Jun  3 22:25:42 2010
@@ -1,0 +1,28 @@
+Description: Change the generation of the part-of-speech lexicon to use nstore instead of store.
+ This should make the package architecture-independent.
+Forwarded: no
+Author: Chris Butler <chrisb at debian.org>
+Last-Update: 2010-06-03
+
+--- a/Makefile.PL
++++ b/Makefile.PL
+@@ -29,7 +29,7 @@
+         
+ 
+ sub install {
+-        use Storable;
++        use Storable qw/nstore/;
+         use File::Spec;
+         my $lex_dir = 'Tagger';
+         my $word_path = File::Spec->catfile( $lex_dir, 'pos_words.hash' );
+@@ -40,8 +40,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 ){




More information about the Pkg-perl-cvs-commits mailing list