2
# -*- mode: makefile; coding: utf-8 -*-
3
# Copyright 2015, Jonas Smedegaard <dr@jones.dk>
4
# Description: Main Debian packaging script for Types::XSD
6
# This program is free software; you can redistribute it and/or modify
7
# it under the terms of the GNU General Public License as published by
8
# the Free Software Foundation; either version 3, or (at your option)
11
# This program is distributed in the hope that it will be useful, but
12
# WITHOUT ANY WARRANTY; without even the implied warranty of
13
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
# General Public License for more details.
16
# You should have received a copy of the GNU General Public License
17
# along with this program. If not, see <http://www.gnu.org/licenses/>.
19
include /usr/share/cdbs/1/rules/upstream-tarball.mk
20
include /usr/share/cdbs/1/rules/utils.mk
21
include /usr/share/cdbs/1/class/perl-makemaker.mk
22
include /usr/share/cdbs/1/rules/debhelper.mk
24
pkg = $(DEB_SOURCE_PACKAGE)
26
DEB_UPSTREAM_PACKAGE = Types-XSD
27
DEB_UPSTREAM_URL = http://www.cpan.org/authors/id/T/TO/TOBYINK
29
# Needed by upstream build and (always) at runtime
30
perl-deps = datetime-incomplete datetimex-auto type-tiny types-xsd-lite
31
perl-deps += xml-regexp
32
deps = $(patsubst %,$(comma) lib%-perl,$(perl-deps))
34
# Needed by upstream testsuite
35
deps-test = perl (>= 5.13.4) | libtest-simple-perl (>= 0.96)
37
CDBS_BUILD_DEPENDS +=, $(deps), $(deps-test)
38
CDBS_DEPENDS_$(pkg) = $(deps)