summaryrefslogtreecommitdiff
path: root/perl-devel-cover/PKGBUILD
blob: b6224ab7844456b2064671c55674ff30cb4c5ee6 (plain)
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
# Maintainer: Erich Eckner <arch at eckner dot net>
# Contributor: John D Jones III <jnbek1972 -_AT_- g m a i l -_Dot_- com>
# Generator  : CPANPLUS::Dist::Arch 1.27

pkgname='perl-devel-cover'
pkgver=1.29
pkgrel=1
pkgdesc='Code coverage metrics for Perl'
arch=('i686' 'x86_64')
license=('PerlArtistic' 'GPL')
options=('!emptydirs')
provides=(
  'perl-devel-cover-annotation-git=1.29'
  'perl-devel-cover-annotation-random=1.29'
  'perl-devel-cover-annotation-svk=1.29'
  'perl-devel-cover-branch=1.29'
  'perl-devel-cover-collection=1.29'
  'perl-devel-cover-collection-template-provider=1.29'
  'perl-devel-cover-condition=1.29'
  'perl-devel-cover-condition_and_2=1.29'
  'perl-devel-cover-condition_and_3=1.29'
  'perl-devel-cover-condition_or_2=1.29'
  'perl-devel-cover-condition_or_3=1.29'
  'perl-devel-cover-condition_xor_4=1.29'
  'perl-devel-cover-criterion=1.29'
  'perl-devel-cover-db=1.29'
  'perl-devel-cover-db-criterion=1.29'
  'perl-devel-cover-db-digests=1.29'
  'perl-devel-cover-db-file=1.29'
  'perl-devel-cover-db-io=1.29'
  'perl-devel-cover-db-io-base=1.29'
  'perl-devel-cover-db-io-json=1.29'
  'perl-devel-cover-db-io-sereal=1.29'
  'perl-devel-cover-db-io-storable=1.29'
  'perl-devel-cover-db-run=1.29'
  'perl-devel-cover-db-structure=1.29'
  'perl-devel-cover-html_common=1.29'
  'perl-devel-cover-op=1.29'
  'perl-devel-cover-pod=1.29'
  'perl-devel-cover-report-compilation=1.29'
  'perl-devel-cover-report-html=1.29'
  'perl-devel-cover-report-html_basic=1.29'
  'perl-devel-cover-report-html_basic-template-provider=1.29'
  'perl-devel-cover-report-html_minimal=1.29'
  'perl-devel-cover-report-html_subtle=1.29'
  'perl-devel-cover-report-html_subtle-template-provider=1.29'
  'perl-devel-cover-report-json=1.29'
  'perl-devel-cover-report-sort=1.29'
  'perl-devel-cover-report-text=1.29'
  'perl-devel-cover-report-text2=1.29'
  'perl-devel-cover-report-vim=1.29'
  'perl-devel-cover-report-vim-template-provider=1.29'
  'perl-devel-cover-statement=1.29'
  'perl-devel-cover-subroutine=1.29'
  'perl-devel-cover-test=1.29'
  'perl-devel-cover-time=1.29'
  'perl-devel-cover-truth_table=1.29'
  'perl-devel-cover-truth_table-row=1.29'
  'perl-devel-cover-util=1.29'
  'perl-devel-cover-web=1.29')
optdepends=(
  'perl>=5.8.2'
  'perl-browser-open'
  'perl-capture-tiny'
  'perl-class-xsaccessor'
  'perl-html-parser'
  'perl-json-maybexs>=1.003003'
  'perl-moo'
  'perl-namespace-clean'
  'perl-parallel-iterator'
  'perl-perl-tidy>=20060719'
  'perl-pod-coverage>=0.06'
  'perl-ppi-html>=1.07'
  'perl-sereal-decoder'
  'perl-sereal-encoder'
  'perl-template-toolkit>=2.00'
  'perl-test-differences')
depends=(
  'perl>=5.6.1'
  'perl-b-debug'
  'perl-digest-md5'
  'perl-html-parser>=3.69'
  'perl-storable')
makedepends=(
  'perl-extutils-makemaker'
  'perl-test-simple')
checkdepends=('perl-html-parser' 'perl-dbm-deep' 'perl-moo' 'perl-moose' 'perl-pod-coverage' 'perl-readonly')
url='https://metacpan.org/pod/Devel::Cover'
_perlName='Devel-Cover'
source=("https://cpan.metacpan.org/authors/id/P/PJ/PJCJ/${_perlName}-${pkgver}.tar.gz")
sha512sums=('dd2b75a411f67eb054fa16ef0f9d327fe9d41368ef6f0436bfbf13303bf3bc9eb28f6caea101b3b226f7a9d483f2db419a60a39ea8df1733e1e49eb9d39b2c7b')
_distdir="${_perlName}-${pkgver}"

build() {
  ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""                 \
      PERL_AUTOINSTALL=--skipdeps                            \
      PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'"     \
      PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
      MODULEBUILDRC=/dev/null

    cd "$srcdir/$_distdir"
    /usr/bin/perl Makefile.PL
    make
  )
}

check() {
  cd "$srcdir/$_distdir"
  ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
    make test
  )
}

package() {
  cd "$srcdir/$_distdir"
  make install

  find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
}

# Local Variables:
# mode: shell-script
# sh-basic-offset: 2
# End:
# vim:set ts=2 sw=2 et: