File: rules

package info (click to toggle)
libcatmandu-perl 1.0304-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,756 kB
  • ctags: 695
  • sloc: perl: 13,756; makefile: 34
file content (63 lines) | stat: -rwxr-xr-x 2,542 bytes parent folder | download
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
#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-
# Copyright 2013, Vasudev Kamath <kamathvasudev@gmail.com>
# Copyright 2013-2016, Jonas Smedegaard <dr@jones.dk>
# Description: Main Debian packaging script for Catmandu
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

include /usr/share/cdbs/1/rules/utils.mk
include /usr/share/cdbs/1/class/perl-build.mk
include /usr/share/cdbs/1/rules/debhelper.mk

pkg = $(DEB_SOURCE_PACKAGE)

# Needed by upstream build and (always/seldom) at runtime
perl-deps = any-uri-escape cgi-expand clone config-onion data-uuid
perl-deps += hash-merge-simple io-handle-util www
perl-deps += lwp-useragent-determined module-info moox-aliases
perl-deps += moox-role-logger parser-mgc path-tiny ref-util sub-exporter
perl-deps += text-hogan try-tiny-byclass
perl-deps += uri asa
deps = $(patsubst %,$(comma) lib%-perl, $(perl-deps))
deps +=, libapp-cmd-perl (>= 0.330)
deps +=, libcpanel-json-xs-perl (>= 3.0213)
deps +=, libdata-compare-perl (>= 0.22)
deps +=, libfile-find-rule-perl (>= 0.33)
deps +=, liblist-moreutils-perl (>= 0.33)
deps +=, libmoo-perl (>= 1.004006)
deps +=, libtext-csv-perl (>= 1.21)
deps +=, libthrowable-perl (>= 0.200004)
deps +=, liburi-template-perl (>= 0.22)
deps +=, libyaml-libyaml-perl (>= 0.41)
deps +=, libnamespace-clean-perl (>= 0.24)
deps-suggest = liblog-any-adapter-log4perl-perl, liblog-log4perl-perl

# Needed by upstream testsuite
deps-test = libtest-lwp-useragent-perl, libtest-pod-perl
deps-test +=, liblog-any-perl (>= 1.03)
deps-test +=, libtest-deep-perl (>= 0.112)
deps-test +=, libtest-exception-perl (>= 0.43)
deps-test +=, perl (>= 5.19.5) | libtest-simple-perl (>= 0.99)

# Needed (always) at runtime
depends = liblog-any-perl

CDBS_BUILD_DEPENDS +=, $(deps), $(deps-suggest), $(deps-test)
CDBS_DEPENDS_$(pkg) = $(deps), $(depends)
CDBS_SUGGESTS_$(pkg) = $(deps-suggest)

# drop empty man pages
binary-fixup/$(pkg)::
	find debian/$(pkg)/usr/share/man/man3 -type f -size 20c -delete