blob: e0fd894066251b52b1b6f4dedf5e400870565b43 (
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
|
# CPAN Name : PDL
# Maintainer : 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=[% pkgname %]
_pkgname=PDL
pkgver=[% pkgver %]
pkgrel=[% pkgrel %]
pkgdesc='The Perl Data Language, a perl extension designed for scientific and bulk numeric data processing and display'
arch=('i686' 'x86_64')
url='[% url %]'
license=('PerlArtistic' 'GPL')
depends=(
'perl>=5.8.9'
'perl-inline>=0.43'
'gsl'
)
makedepends=(
'perl>=5.11.3' # To provide ExtUtils::MakeMaker 6.56
'fftw2'
'hdf4'
'perl-opengl>=0.6703'
'plplot'
'perl-extutils-f77'
'proj'
)
checkdepends=(
'perl-test-warn'
)
optdepends=(
'fftw2: for PDL::FFTW support'
'hdf4: for HDF files support'
'perl-astro-fits-header: improved FITS files support'
# 'perl-convert-uu: for the case when something wrong with Unicode support' # It is necessary on *BSD systems
# 'perl-extutils-f77: for PDL::Slatec and PDL::Minuit support' # It is not necessary at runtime
'perl-opengl>=0.6703: for PDL::Graphics::TriD support'
'plplot: for PDL::Graphics::PLplot support'
'proj: for PDL::GIS::Proj and PDL::Transform::Proj4 support'
)
source=([% source %] perldl.conf Makefile.patch)
changelog='ChangeLog'
options=(!emptydirs)
md5sums=('[% md5sums %]'
'ac56f2a88b89d359a0dc80063d31cf59'
'e2b2dff48643a5051a8f7d1ee9dc4ea9')
build() {
cd [% distdir %]
F77LIBS='-lgfortran -lm' PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor PDLCONF=${srcdir}/perldl.conf
patch < "${srcdir}/Makefile.patch"
make
}
check() {
cd [% distdir %]
make test
}
package() {
cd [% distdir %]
make install DESTDIR="${pkgdir}"
make doc_install DESTDIR="${pkgdir}"
find "${pkgdir}" -name .packlist -o -name perllocal.pod -delete
}
|