File: pgxs_loop.pm

package info (click to toggle)
postgresql-common 282
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,528 kB
  • sloc: perl: 4,170; sh: 1,572; makefile: 327; sql: 13; ansic: 10
file content (33 lines) | stat: -rw-r--r-- 980 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
# A debhelper build system class for building PostgreSQL extension modules using PGXS
#
# For packages not supporting building in subdirectories, the pgxs_loop variant builds
# for each PostgreSQL major version in turn in the top-level directory.
#
# Copyright: © 2020 Christoph Berg
# License: GPL-2+

package Debian::Debhelper::Buildsystem::pgxs_loop;

use strict;
use warnings;
use parent qw(Debian::Debhelper::Buildsystem::pgxs);
use Cwd;
use Debian::Debhelper::Dh_Lib;
use Debian::Debhelper::pgxs;

sub DESCRIPTION {
    "PGXS (PostgreSQL extensions), building for each PostgreSQL version in top level directory"
}

sub build {
    my $this=shift;
    verbose_print("Postponing build to install stage; if this package supports out-of-tree builds, replace --buildsystem=pgxs_loop by --buildsystem=pgxs to build in the build stage");
}

sub install {
    my $this=shift;
    my $pattern = package_pattern();
    $this->doit_in_sourcedir(qw(pg_buildext loop), $pattern);
}

1;