This file is indexed.

/usr/share/perl5/Devel/DictionariesCommon.pm is in dictionaries-common-dev 1.27.2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
#!/usr/bin/perl

package Devel::DictionariesCommon;

use strict;
use warnings;
use base qw(Exporter);
use Debian::Debhelper::Dh_Lib;
use Debian::DictionariesCommon q(:all);

# List all exported symbols here.
our @EXPORT_OK = qw(dico_warning
		    dico_error
		    dico_create_debconf_files
		    dico_install_autocompat
		    dico_installcleandebconf
		    dico_populate_substvars
		    dico_process_aspell_simple
		    dico_process_autocompat
		    dico_process_infofile
		    );
# Import :all to get everything.
our %EXPORT_TAGS = (all => [@EXPORT_OK]);

my $infodir             = "/var/lib/dictionaries-common";
my $cachedir            = "/var/cache/dictionaries-common";

# ------------------------------------------------------------------
sub dico_error {
# ------------------------------------------------------------------
# Wrapper to debhelper error function
#
#  dico_error("text")
# ------------------------------------------------------------------
  my $msg = shift;
  my $see = shift;
  error(die "$msg\nPlease see $see.");
}

# ------------------------------------------------------------------
sub dico_warning {
# ------------------------------------------------------------------
# Wrapper to debhelper warning function
#
#  dico_warning("text")
# ------------------------------------------------------------------
  my $msg = shift;
  my $see = shift;
  warning("$msg\nPlease see $see.");
}

# ------------------------------------------------------------------
sub dico_create_debconf_files {
# ------------------------------------------------------------------
# Create .config and .template debconf files
#
#  dico_create_debconf_files($class,$package,$dicts)
# ------------------------------------------------------------------
  my $class   = shift;
  my $package = shift;
  my $dicts   = shift;
  my $program = "installdeb-$class";

  return if $dh{NOSCRIPTS};

  my $dictdir = "/usr/share/dictionaries-common/debconf";

  my $orig_config_file;
  my $orig_templates_file;
  my $orig_templates_txt;

  # Check and trigger an error if debian/[package].{config,templates} exist
  # -----------------------------------------------------------------------

  if (pkgfile ($package, "config")) {
    dico_error("debian/[package.]config file exists.  You should probably move
it to debian/[package.]config.in", "${program}(1)");
  }
  if (pkgfile ($package, "templates")) {
    dico_error("debian/[package.]templates file exists.  You should probably move
it to debian/[package.]templates.in", "${program}(1)");
  }

  # We are okay.  Generate the config file
  # -----------------------------------------------------------------------

  open (CONFIG, "> debian/$package.config");

  # Get the dictionaries-common Policy compliant config code
  my $config_dc = `cat $dictdir/config-$class`;

  # Check if there is a debian/[package.]config.in file
  if ($orig_config_file = pkgfile ($package, "config.in")) {
    my $isshell;
    # Read it and check if it is a Bourne shell or a Perl script
    open (INCONFIG, "< $orig_config_file");
    if ((my $shell_line = <INCONFIG>) =~ m{^\#!\s*(/bin/sh|/usr/bin/perl)}){
      $isshell = ($1 eq "/bin/sh");
    } else {
      dico_error("The $orig_config_file file must be either a shell or Perl script.",
	     "${program}(1)");
    }
    close INCONFIG;

    # Okay, look now for a the valid #DEBHELPER# string
    my $config_in;
    unless (($config_in = `cat $orig_config_file`) =~ /\n\#DEBHELPER\#\s*\n/) {
      dico_error("No valid #DEBHELPER# string in $orig_config_file. Aborting.",
	     "${program}(1)");
    }

    # The valid #DEBHELPER# string was found, so replace it by the
    # Policy specified code, taking care if it is a Bourne shell or
    # Perl script.
    if ($isshell) {
      $config_dc = qq(tmp=`tempfile`
cat > \$tmp <<EOF
$config_dc
EOF
perl \$tmp
rm -f \$tmp
);
    }
    $config_in =~ s/\#DEBHELPER\#/$config_dc/;
    # Save the whole thing in the config file
    print CONFIG $config_in;
  } else {
    # Put the Policy compliant code in creating a Perl script
    print CONFIG "#!/usr/bin/perl -w\n$config_dc";
  }
  close CONFIG;

  # Generate the templates file
  # -----------------------------------------------------------------------

  my @tmp_languages  = ();
  my @tmp_elanguages = ();
  my @tmp_defaults   = ();
  my $has_elanguages;

  foreach (sort keys %{$dicts}){
    my $lang  = $dicts->{$_};
    unless ( defined $lang->{'debconf-display'} &&  lc($lang->{'debconf-display'}) eq "no" ) {
      push (@tmp_languages,$_);
      if ( defined $lang->{'elanguage'} ){
	push (@tmp_elanguages,$lang->{'elanguage'});
	$has_elanguages++;
      } else {
	push (@tmp_elanguages,$_);
      }
    }
    if ( defined $lang->{'debconf-default'}
	 &&  lc($lang->{'debconf-default'}) eq "yes"){
      push (@tmp_defaults,$_);
    }
  }

  my $languages     = join (', ', @tmp_languages);
  my $elanguages    = join (', ', @tmp_elanguages);
  my $templates_txt = `cat $dictdir/templates-$class`;

  $templates_txt =~ s/\#LANGUAGES\#/$languages/;
  $templates_txt =~ s/\#PACKAGE\#/$package/g;

  # Do we have local templates to be added to the dict-common stuff?
  if ($orig_templates_file = pkgfile ($package, "po-master.templates")) {
    $orig_templates_txt = `cat $orig_templates_file`;
  } elsif ($orig_templates_file = pkgfile ($package, "templates.in")) {
    warning("$orig_templates_file use is deprecated.\n" .
      "      Please base your template localization in po-debconf\n");
    $orig_templates_txt = `cat $orig_templates_file`;
  }

  if ($orig_templates_txt){
    $orig_templates_txt =~ s/^[\s\n]+//;
    $orig_templates_txt =~ s/[\s\n]+$//;
    $templates_txt .= "\n$orig_templates_txt\n";
  }

  # Add elanguages stuff
  if ( $dh{WRITE_ELANGUAGES} or $has_elanguages ){
    # po-debconf will only process "^__" if "debian/po" dir is present
    my $translate_default_elanguage = ( -d "debian/po" ) ? "__" : "";
    $templates_txt .="
Template: $package/elanguages
Type: text
$translate_default_elanguage" . "Default: $elanguages
Description:
";
  }

  # Add template for defaults if present
  if ( scalar(@tmp_defaults) > 0 ){
    my $the_defaults = join (', ', @tmp_defaults);
    $templates_txt .= "
Template: $package/defaults
Type: text
Default: $the_defaults
Description:
";
  }

  open (TEMPLATES, "> debian/$package.templates");
  print TEMPLATES $templates_txt;
  close TEMPLATES;
}

# ------------------------------------------------------------------
sub dico_install_autocompat {
# ------------------------------------------------------------------
# Install debhelper snippets for autocompat
#
#  dico_install_autocompat($autocompat_info,$options)
#
# Needs: $options->{'class'} and $options->{'package'}
# ------------------------------------------------------------------
  my $autocompat_info = shift;
  my $options         = shift;
  my $class           = $options->{'class'}
    or error("No 'class' passed in options file");
  my $package = $options->{'package'}
    or error("No 'package' passed in options file");
  my %hash_extension  = ("ispell" => "hash", "aspell" => "rws");

  # Return if no auto-compat info is available
  unless ( defined $autocompat_info->{'auto-compat'}
	   && %{$autocompat_info->{'auto-compat'}} ){
    warning("No auto-compat info seems available for \"$package\"");
    return;
  }

  my $auto_compats  = join(" ", map { $_ . ".compat" } sort keys %{$autocompat_info->{'auto-compat'}});
  my $auto_hashes   = join(" ", map { $_ . ".$hash_extension{$class}" } sort keys %{$autocompat_info->{'auto-hash'}});
  my $varlibrmfiles = join(" ", map { $_ . ".remove" } sort keys %{$autocompat_info->{'auto-compat'}});
  my $varlibrm      = "$auto_compats $varlibrmfiles $auto_hashes";

  # Install extra auto-scripts for auto-compat handling
  autoscript ($package, "preinst", "preinst-compatfile-$class",
	      "s/#COMPAT#/$auto_compats/");
  autoscript ($package, "postinst", "postinst-compatfile-$class",
	      "s/#COMPAT#/$auto_compats/");
  autoscript ($package, "postrm", "postrm-varlibrm-$class",
	      "s/#VARLIBRM#/$varlibrm/;s/#VARLIBRMFILES#/$varlibrmfiles/");
}

# ------------------------------------------------------------------
sub dico_installcleandebconf {
# ------------------------------------------------------------------
# Call dh_installdebconf and do the clean up
#
#  dico_installcleandebconf($class)
# -----------------------------------------------------------------------
  my $package = shift;
  error("dico_installcleandebconf: No package name provided") unless $package;
  doit ("dh_installdebconf", "-p$package");
  doit ("rm", "-f", "debian/$package.config", "debian/$package.templates");
}

# ------------------------------------------------------------------
sub dico_populate_substvars {
# ------------------------------------------------------------------
# Populate $class:Depends substvars
#
#  dico_populate_substvars($options)
#
# $options->{'class'}
# $options->{'package'}
# $options->{'lib_dir'}
  # ------------------------------------------------------------------
  my $options = shift;
  my $class   = $options->{'class'}
    or error("No 'class' passed in options file");
  my $package = $options->{'package'}
    or error("No 'package' passed in options file");

  if ( "$class" eq "aspell" ){
    # aspell >= 0.60.3-3, satisfied in squeeze. No need to version.
    addsubstvar ($package, "$class:Depends", "$class");
    addsubstvar ($package, "$class:Depends", "dictionaries-common", ">= 1.23~");
  } elsif ( "$class" eq "ispell" ){
    # ispell minimal version is ancient. No need to version
    addsubstvar ($package, "$class:Depends", "$class");
    addsubstvar ($package, "$class:Depends", "dictionaries-common", ">= 1.23~");
  } elsif ( "$class" eq "hunspell" ){
    addsubstvar ($package, "$class:Depends", "dictionaries-common", ">= 1.0");
  } elsif ( "$class" eq "wordlist" ){
    addsubstvar ($package, "$class:Depends", "dictionaries-common", ">= 1.0");
  } else {
    error("dico_populate_substvars: Wrong class \"$class\".");
  }
}

# ------------------------------------------------------------------
sub dico_process_aspell_simple {
# ------------------------------------------------------------------
# Postprocess aspell official dictionary after installation and return
# info found
#
# Should only be used if $dh{ASPELL_SIMPLE} is enabled, after make
# install from aspell dict has been run.  This will get $lang info
# from Makefile.pre. Other info will be extracted from installed .rws
# and .dat. Will install .cwl files after it and try guessing correct
# values for auto-compat and auto-hash
#
# \%autocompat = dico_process_aspell_simple($options)
#
# $options->{'program'}
# $options->{'class'}
# $options->{'lib_dir'}
# $options->{'usr_lib_dir'}
# $options->{'usr_share_dir'}
# -----------------------------------------------------------------------

  my $options            = shift;
  my %dico_aspell_simple = ();

  my $program            = $options->{'program'}
    or error("dico_process_aspell_simple: No 'program' passed in options hash");
  my $class              = $options->{'class'}
    or error("dico_process_aspell_simple: No 'class' passed in options hash");
  my $lib_dir            = $options->{'lib_dir'};
  my $usr_lib_dir        = $options->{'usr_lib_dir'};
  # my $var_lib_dir        = $options->{'var_lib_dir'};
  my $usr_share_dir      = $options->{'usr_share_dir'};

  # aspell-simple is only for aspell with enabled $dh{ASPELL_SIMPLE}
  return unless ( $class eq "aspell" );
  return unless ( defined $dh{ASPELL_SIMPLE} );

  # Parse Makefile.pre to extract .dat and .compat file names after lang info
  if ( -f "Makefile.pre" ){
    open (my $MAKEFILEPRE, "<Makefile.pre");
    while (<$MAKEFILEPRE>){
      chomp;
      if ( s/^lang\s+=\s+// ){
	s/\s+$//;
	my $dat = "$_.dat";
	if ( $_ && -e "$dat" ){
	  $dico_aspell_simple{'lang'}= $_;
	  $dico_aspell_simple{'auto-compat'}{$_}++;
	} else {
	  error("Malformed aspell dict: \$lang.dat file \"$dat\" not found.");
	}
	last;
      }
    }
    close $MAKEFILEPRE;
    error("No \$lang found in Makefile.pre.")
      unless ( defined $dico_aspell_simple{'lang'} );
  } else {
    error("\"Makefile.pre\" not found. --aspell-simple works only with pristine aspell dicts created with proc utility. See dh_aspell-simple(1) for more info.");
  }

  # Parse rws files. Should be a matching .cwl file for each one.
  my @rwsfiles = map {basename $_} glob("$usr_lib_dir/*.rws");
  doit ("install", "-d", $usr_share_dir) if (scalar @rwsfiles );
  foreach my $rws ( @rwsfiles ){
    my $base = $rws;
    $base =~ s/\.rws$//;
    my $cwl = "$base.cwl";
    if ( -e "$cwl" ){
      doit ("install","-m644","$cwl","$usr_share_dir");
      doit ("gzip", "-9nf", "$usr_share_dir/$cwl");
      $dico_aspell_simple{'auto-hash'}{$base}++;
    } else {
      warning("$program: No \"$cwl\" found for matching \"$rws\".");
    }
    verbose_print("Erasing $usr_lib_dir/$rws");
    doit ("rm", "-f", "$usr_lib_dir/$rws") unless ( -l "$usr_lib_dir/$rws" );
  }

  # Check if we need a contents file. Other sanity checks.
  if ( scalar keys %{$dico_aspell_simple{'auto-hash'}} == 0 ){
    error("No installed .rws hashes found for this aspell dictionary.");
  } else {
    my $tmp_dat = $dico_aspell_simple{'lang'};
    if ( scalar keys %{$dico_aspell_simple{'auto-hash'}} == 1 ){
      my $tmp_hash = (keys %{$dico_aspell_simple{'auto-hash'}})[0];
      if ( "$tmp_hash" ne "$tmp_dat" ){
	error("$program: Not matching \"$tmp_dat.dat\" and \"$tmp_hash.rws\".");
      }
    } else {
      $dico_aspell_simple{'auto-contents'}{$tmp_dat}++;
    }
  }

  # If valid auto-compat info is derived, return a hash with it.
  if ( defined $dico_aspell_simple{'auto-compat'} ){
    return \%dico_aspell_simple;
  }
}

# ------------------------------------------------------------------
sub dico_process_autocompat {
# ------------------------------------------------------------------
# Parse and return autocompat info from info file
#
#  \%autocompat = dico_process_autocompat($dicts,$options)
#
# Needs: $options->{'class'}
# ------------------------------------------------------------------
  my $dicts           = shift;
  my $options         = shift;
  my $class           = $options->{'class'}
    or error("No 'class' passed in options file");
  my %hash_extension  = ("ispell" => "hash", "aspell" => "rws");
  my %autocompat_info = ();

  # autocompat is only for ispell and aspell autobuildhash
  return unless ( $class eq "aspell" or $class eq "ispell" );

  # Get list of basenames for compat and contents files
  foreach my $language ( keys %{$dicts} ){
    my $entry  = $dicts->{$language};
    if ( defined $entry->{'auto-compat'} ) {
      my $compat = $entry->{'auto-compat'};
      foreach ( split(" ", $compat) ){
	s/\.compat$//;
	$autocompat_info{'auto-compat'}{$_}++;
      }
    }
    if ( defined $entry->{'auto-contents'} ) {
      my $contents = $entry->{'auto-contents'};
      foreach ( split(" ", $contents) ){
	s/\.contents$//;
	$autocompat_info{'auto-contents'}{$_}++;
      }
    }
    # Hashes list should be created automatically. This is here to
    # add an extra hash name to the clean list on package
    # removal. If you think about this, you may prefer to
    # unconditionally remove old file from maintainer scripts.
    if ( defined $entry->{'auto-extra-hash'} ) {
      my $extra_hashes = $entry->{'auto-extra-hash'};
      foreach ( split(" ", $extra_hashes) ){
	s/\.$hash_extension{$class}$//;
	$autocompat_info{'auto-hash'}{$_}++;
	$autocompat_info{'auto-extra-hashes'}{$_}++;
      }
    }

    # Get automatic list of basenames for different hashes
    foreach my $base_name ( sort keys %{$autocompat_info{'auto-compat'}} ){
      my $contents_file;
      if ( $class eq "aspell" ) {
	# Check if there is an associated contents file.
	my $tmp_contents_file = "debian/$base_name.contents";
	if ( -e $tmp_contents_file ) {
	  verbose_print("Found contents file \"$tmp_contents_file\".");
	  # and if it has been declared.
	  if ( defined $autocompat_info{'auto-contents'}{$base_name} ){
	    verbose_print("Contents file \"$tmp_contents_file\" is properly declared.");
	    $contents_file = $tmp_contents_file;
	  } else {
	    warning("\"$tmp_contents_file\" found, but no associated 'auto-compat' entry in info file.\n"
		    . "Ignoring \"$tmp_contents_file\"...");
	  }
	} elsif ( defined $autocompat_info{'auto-contents'}{$base_name} ){
	  error("No matching \"$tmp_contents_file\" for 'auto-compat' entry \"$base_name\". Aborting ...");
	}
      }
      # Parse aspell contents file if enabled and present.
      if ( $contents_file ){
	open (my $CONTENTS, "< $contents_file")
	  or error("Could not open contents file \"$contents_file\". Aborting ...");
	while (<$CONTENTS>){
	  next if m /^\s*\#/;
	  next if m/^\s*$/;
	  chomp;
	  s/\.rws$//;
	  # Add contents info to list of hashes to be removed.
	  $autocompat_info{'auto-hash'}{$_}++;
	}
	close $CONTENTS;
      } else {
	# Add base name to list of hashes to be removed.
	$autocompat_info{'auto-hash'}{$base_name}++;
      }
    }
  }

  # If valid auto-compat info is found, return a hash with it.
  if ( defined $autocompat_info{'auto-compat'} ){
    return \%autocompat_info;
  }
}

# ------------------------------------------------------------------
sub dico_process_infofile {
# ------------------------------------------------------------------
# Parse, install and return info about info file
#
# \%infofile = dico_process_infofile($options)
#
# $options->{'class'}
# $options->{'package'}
# $options->{'lib_dir'}
# ------------------------------------------------------------------
  my $options = shift;
  # my $program = $options->{'program'};
  my $class   = $options->{'class'}
    or error("No 'class' passed in options file");
  my $package = $options->{'package'}
    or error("No 'package' passed in options file");
  my $lib_dir = $options->{'lib_dir'}
    or error("No 'lib_dir' passed in options file");
  my $infofile;

  # Process the debian/info-$class file
  unless ( $infofile = pkgfile ($package, "info-$class") ) {
    # If not found, just return. Calling program must interpret this.
    dico_warning("No debian/[package.]info-$class file found for package \"$package\".",
            "the dictionaries-common Policy");
    return;
  }


  # Parse the debian/info-$class file
  my $dicts = parseinfo ($infofile);

  # If we get here, the parseinfo call was successful. Install the
  # file in the dictionaries-common lib dir.
  doit ("install", "-d", $lib_dir);
  doit ("install", "-m644", $infofile, "$lib_dir/$package");

  return $dicts;
}

# ------------------------------------------------------------------
# ------------------------------------------------------------------
# Ensure we evaluate to true.
1;

__END__

#Local Variables:
#perl-indent-level: 2
#End:

=head1 NAME

Devel::DictionariesCommon.pm - dictionaries-common library for its debhelper-like scripts

=head1 SYNOPSIS

    use Devel::DictionariesCommon q(:all)

=head1 DESCRIPTION

Common functions for use from the dictionaries-common debhelper-like installdeb-* scripts.

=head1 CALLING FUNCTIONS

=over

=item C<dico_warning>

Wrapper to debhelper warning function

  dico_warning("warning message")

=item C<dico_error>

Wrapper to debhelper error function

  dico_error("error message")

=item C<dico_create_debconf_files>

Create .config and .template debconf files

  dico_create_debconf_files($class,$package,$dicts)

=item C<dico_install_autocompat>

Install debhelper snippets for auto-compat

  dico_install_autocompat($autocompat_info,$options)

Needs:

  $options->{'class'}
  $options->{'package'}

=item C<dico_installcleandebconf>

Call dh_installdebconf and do the clean up

  dico_installcleandebconf($class)

=item C<dico_populate_substvars>

Populate $class:Depends substvars

 dico_populate_substvars($options)

Needs:

  $options->{'class'}
  $options->{'package'}

=item C<dico_process_aspell_simple>

Postprocess aspell official dictionary after installation and return
info found

  \%autocompat = dico_process_aspell_simple($options)

Needs:

  $options->{'program'}
  $options->{'lib_dir'}
  $options->{'usr_lib_dir'}
  $options->{'usr_share_dir'}

Should only be used if $dh{ASPELL_SIMPLE} is enabled, after make
install from aspell dict has been run.  This will get $lang info
from Makefile.pre. Other info will be extracted from installed .rws
and .dat. Will install .cwl files after it and try guessing correct
values for auto-compat and auto-hash

=item C<dico_process_autocompat>

Parse and return autocompat info from info file

  \%autocompat = dico_process_autocompat($dicts,$options)

Needs:

  $options->{'class'}

=item C<dico_process_infofile>

Parse, install and return info about info file

  \%infofile = dico_process_infofile($options)

Needs:

  $options->{'class'}
  $options->{'package'}
  $options->{'lib_dir'}

=back

=head1 SEE ALSO

Debian dictionaries-common policy.

=head1 AUTHORS

 Rafael Laboissiere
 Agustin Martin

=cut