File: dh_swi_prolog

package info (click to toggle)
swi-prolog 9.0.4%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 82,408 kB
  • sloc: ansic: 387,503; perl: 359,326; cpp: 6,613; lisp: 6,247; java: 5,540; sh: 3,147; javascript: 2,668; python: 1,900; ruby: 1,594; yacc: 845; makefile: 428; xml: 317; sed: 12; sql: 6
file content (44 lines) | stat: -rwxr-xr-x 947 bytes parent folder | download | duplicates (6)
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
#! /usr/bin/perl

=head1 NAME

dh_swi_prolog - calculates SWI Prolog packages dependencies

=cut

use strict;
use Debian::Debhelper::Dh_Lib;

=head1 SYNOPSYS

B<dh_swi_prolog> [S<I<debhelper options>>]

=head1 DESCRIPTION

dh_swi_prolog is a helper program that adds swi-prolog:Depends substitution
variable that contains current SWI Prolog VM virtual package name. This
variable should be used by packages that contain compiled SWI prolog
code to specify dependency on the VM. The virtual package name will change
if there are noncompatible changes in the VM, so binary packages will need
to be rebuilt with a new version of swi-prolog. The variable is there to
detect such breackage.

=cut

init();

my $swi_prolog_vm = "swi-prolog-vm-3";

foreach my $package (@{$dh{DOPACKAGES}}) {
	addsubstvar($package, "swi-prolog:Depends", $swi_prolog_vm);
}

=head1 SEE ALSO

L<debhelper(7)>

=head1 AUTHORS

Eugeniy Meshcheryakov <eugen@debian.org>

=cut