blob: 1586b42fb39ad810acde87e7225763828d10a2cb (
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
|
# Maintainer: Elias Elwyn <a@jthv.ai>
# Contributor: Michał Wojdyła < micwoj9292 at gmail dot com >
# Contributor: Ordoban <dirk.langer@vvovgonik.de>
# Contributor: Anton Leontiev <bunder /at/ t-25.ru>
# Contributor: Thomas Dziedzic < gostrc at gmail >
# Contributor: carltonf <xiong[c05]@gmail.com>
# Contributor: Colin Pitrat <colin.pitrat@gmail.com>
pkgname=perl-pdl
_dist=PDL
pkgver=2.099
pkgrel=1
pkgdesc='The Perl Data Language'
license=('GPL-1.0-or-later OR Artistic-1.0-Perl')
url="https://metacpan.org/release/$_dist"
source=("$pkgname-$pkgver.tar.gz::https://cpan.metacpan.org/authors/id/E/ET/ETJ/$_dist-$pkgver.tar.gz"
perldl.conf)
sha256sums=('67cdfc04c4dab77a799f3b867ea3228e7eddb2f4419810a7c16ad66408365800'
'SKIP')
arch=(i686 x86_64)
depends=(
perl glibc
perl-file-which
perl-pod-parser
#--- PDL::IO::Dumper
sharutils # replaces Convert::UU
#--- PDL::IO::FastRaw, PDL::IO::FlexRaw
perl-file-map
# NOTE: the following dependencies are optional, you may comment any
# section - BEFORE RUNNING MAKEPKG - that you'd like to do without.
# They must be included here as they affect which modules are built.
# The related modules will not be very useful without these dependencies.
#
# See https://metacpan.org/release/ETJ/PDL-2.095/source/DEPENDENCIES
# for more information
#-- Uncategorised
perl-term-readkey
#--- Inline::Pdlpp
perl-inline
perl-inline-c
#--- pdl2, perldl
# perl-devel-repl # pdl2 shell alternative backend
perl-term-readline-gnu # XS performance for perldl
perl-sys-sigaction
#--- PDL::Graphics::PGPLOT
pgplot
perl-pgplot
#--- PDL::IO::FITS
perl-astro-fits-header
#--- PDL::IO::Pic
netpbm
ffmpeg
)
makedepends=(
perl-devel-checklib
perl-extutils-depends
)
checkdepends=(
perl-test-deep
perl-test-exception
perl-test-warn
)
options=('!emptydirs')
build() {
cd "$srcdir/$_dist-$pkgver"
unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
/usr/bin/perl Makefile.PL PDLCONF="$srcdir/perldl.conf"
make
}
check() {
cd "$srcdir/$_dist-$pkgver"
unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
export PERL_MM_USE_DEFAULT=1
make test
}
package() {
# Fixes first builds: "No such file or directory at blib/lib/PDL/Doc.pm line 741"
mkdir --parents "$pkgdir/usr/lib/perl5/$(perl -e '$^V =~ /v(\d+\.\d+)\.\d+/; print $1')/vendor_perl/$_dist"
cd "$srcdir/$_dist-$pkgver"
unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
make install INSTALLDIRS=vendor DESTDIR="$pkgdir"
}
|