summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 29e60027547c964898165a0be54dc882836d03d1 (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
# 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=perl-pdl
_pkgname=PDL
pkgver=2.019
pkgrel=1
pkgdesc='The Perl Data Language, a perl extension designed for scientific and bulk numeric data processing and display'
arch=('i686' 'x86_64')
url='http://search.cpan.org/dist/PDL'
license=('PerlArtistic' 'GPL')
depends=(
	'perl>=5.10'
	'perl-inline>=0.43'
	'gsl'
)
makedepends=(
	'perl>=5.11.3' # To provide ExtUtils::MakeMaker 6.56
	'fftw2'
	'hdf4'
	'perl-opengl'
	'plplot'
	'perl-extutils-f77'
	'proj'
        'perl-extutils-parsexs>=3.01'
        'perl-convert-uu'
        'perl-inline-c>=0.62'
        'perl-module-compile>=0.23'
)
checkdepends=(
	'perl-test-warn'
        'perl-perlio-layers'
        'perl-file-map'
)
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: for PDL::Graphics::TriD support'
	'plplot: for PDL::Graphics::PLplot support'
	'proj: for PDL::GIS::Proj and PDL::Transform::Proj4 support'
)
source=(https://cpan.metacpan.org/authors/id/C/CH/CHM/${_pkgname}-${pkgver}.tar.gz perldl.conf Makefile.patch)
changelog='ChangeLog'
options=(!emptydirs)
md5sums=('fa6f4915cff135fdeae8200aee2f34e9'
         'ac56f2a88b89d359a0dc80063d31cf59'
         'e2b2dff48643a5051a8f7d1ee9dc4ea9')

build() {
	cd "${_pkgname}-${pkgver}"
	F77LIBS='-lgfortran -lm' PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor PDLCONF=${srcdir}/perldl.conf
        patch < "${srcdir}/Makefile.patch"
        make
}

check() {
	cd "${_pkgname}-${pkgver}"
	make test
}

package() {
	cd "${_pkgname}-${pkgver}"
	make install DESTDIR="${pkgdir}"
        make doc_install DESTDIR="${pkgdir}"
	find "${pkgdir}" -name .packlist -o -name perllocal.pod -delete
}