~ubuntu-branches/ubuntu/wily/libtypes-xsd-perl/wily-proposed

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Jonas Smedegaard
  • Date: 2015-02-24 23:11:53 UTC
  • Revision ID: package-import@ubuntu.com-20150224231153-4g3oa7p78kmce31x
Tags: 0.005-1
Initial packaging release.
Closes: bug#779141.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
# -*- mode: makefile; coding: utf-8 -*-
 
3
# Copyright 2015, Jonas Smedegaard <dr@jones.dk>
 
4
# Description: Main Debian packaging script for Types::XSD
 
5
#
 
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)
 
9
# any later version.
 
10
#
 
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.
 
15
#
 
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/>.
 
18
 
 
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
 
23
 
 
24
pkg = $(DEB_SOURCE_PACKAGE)
 
25
 
 
26
DEB_UPSTREAM_PACKAGE = Types-XSD
 
27
DEB_UPSTREAM_URL = http://www.cpan.org/authors/id/T/TO/TOBYINK
 
28
 
 
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))
 
33
 
 
34
# Needed by upstream testsuite
 
35
deps-test = perl (>= 5.13.4) | libtest-simple-perl (>= 0.96)
 
36
 
 
37
CDBS_BUILD_DEPENDS +=, $(deps), $(deps-test)
 
38
CDBS_DEPENDS_$(pkg) = $(deps)