Debian Codegraph @

debhelper/Debian/Debhelper/Buildsystem/pgxs_loop.pm

raw
1 # A debhelper build system class for building PostgreSQL extension modules using PGXS
2 #
3 # For packages not supporting building in subdirectories, the pgxs_loop variant builds
4 # for each PostgreSQL major version in turn in the top-level directory.
5 #
6 # Copyright: © 2020 Christoph Berg
7 # License: GPL-2+
8
9 package Debian::Debhelper::Buildsystem::pgxs_loop;
10
11 use strict;
12 use warnings;
13 use parent qw(Debian::Debhelper::Buildsystem::pgxs);
14 use Cwd;
15 use Debian::Debhelper::Dh_Lib;
16 use Debian::Debhelper::pgxs;
17
18 sub DESCRIPTION {
19 "PGXS (PostgreSQL extensions), building for each PostgreSQL version in top level directory"
20 }
21
22 sub build {
23 my $this=shift;
24 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");
25 }
26
27 sub install {
28 my $this=shift;
29 my $pattern = package_pattern();
30 $this->doit_in_sourcedir(qw(pg_buildext loop), $pattern);
31 }
32
33 1;