commit de28905644016669877bf871848e975fd9d0c444 Author: Anton Leontiev Date: Fri Aug 23 16:58:29 2013 +0400 Initial commit diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..9dc42675f762 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,33 @@ +pkgbase = perl-pdl-git + pkgdesc = The Perl Data Language, a perl extension designed for scientific and bulk numeric data processing and display + pkgver = 20130413.3530 + pkgrel = 1 + url = http://search.cpan.org/dist/PDL + arch = i686 + arch = x86_64 + license = PerlArtistic + license = GPL + makedepends = fftw2 + makedepends = hdf4 + makedepends = perl-opengl>=0.63 + makedepends = plplot + makedepends = perl-extutils-f77 + makedepends = proj + depends = perl>=5.8.9 + depends = perl-inline>=0.43 + depends = gsl + optdepends = fftw2: for PDL::FFTW support + optdepends = hdf4: for HDF files support + optdepends = perl-astro-fits-header: improved FITS files support + optdepends = perl-opengl>=0.63: for PDL::Graphics::TriD support + optdepends = plplot: for PDL::Graphics::PLplot support + optdepends = proj: for PDL::GIS::Proj and PDL::Transform::Proj4 support + provides = perl-pdl + conflicts = perl-pdl + source = perl-pdl::git+git://pdl.git.sourceforge.net/gitroot/pdl/pdl + source = perldl.conf + md5sums = SKIP + md5sums = 9caa2b89a7f7aabfd7dcfb2c1ef79bc9 + +pkgname = perl-pdl-git + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..e6b6b4b8077d --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +*.tar.gz +*.tar.bz2 +*.tar.xz +*.tar.lz +src/ +pkg/ \ No newline at end of file diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..aae06a3d7567 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,60 @@ +# Maintainer: Anton Leontiev +_pkgname=perl-pdl +pkgname=$_pkgname-git +pkgver=20130413.3530 +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.8.9' # To provide ExtUtils::MakeMaker 3.61 + 'perl-inline>=0.43' + 'gsl' +) +makedepends=( + 'fftw2' + 'hdf4' + 'perl-opengl>=0.63' + 'plplot' + 'perl-extutils-f77' + 'proj' +) +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.63: for PDL::Graphics::TriD support' + 'plplot: for PDL::Graphics::PLplot support' + 'proj: for PDL::GIS::Proj and PDL::Transform::Proj4 support' +) + +provides=("$_pkgname") +conflicts=("$_pkgname") +source=("$_pkgname::git+git://pdl.git.sourceforge.net/gitroot/pdl/pdl" 'perldl.conf') +md5sums=('SKIP' '9caa2b89a7f7aabfd7dcfb2c1ef79bc9') + +pkgver() { + cd "$_pkgname" + echo "$(git log -1 --format="%cd" --date=short | sed 's|-||g').$(git rev-list --count master)" +} + +build() { + cd "$_pkgname" + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor PDLCONF=$srcdir/perldl.conf + make +} + +check() { + cd "$_pkgname" + make test +} + +package() { + cd "$_pkgname" + make install DESTDIR="$pkgdir" + find "$pkgdir" -name .packlist -o -name perllocal.pod -delete +} diff --git a/perldl.conf b/perldl.conf new file mode 100644 index 000000000000..a0e615ab34aa --- /dev/null +++ b/perldl.conf @@ -0,0 +1,8 @@ +#!/usr/bin/perl +# -*-perl-*- + +%PDL_CONFIG = ( + # Fix building on x86_64 with GCC 4.8 + # For more info see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=701335 + OPTIMIZE => "$Config{optimize} -fno-aggressive-loop-optimizations" +);