arpack-ng stable port information

Info2: <<
Package: arpack-ng%type_pkg[-atlas]
Version: 3.1.0
Revision: 5
Type: -atlas (boolean), gcc(4.7)

Maintainer: Alexander Hansen
Description: Solve large scale eigenvalue problems
DescDetail: <<
ARPACK is a collection of Fortran77 subroutines designed to solve large scale
eigenvalue problems. It began at Rice university:
http://www.caam.rice.edu/software/ARPACK

The arpack-ng project is a joint project between Debian, Octave and Scilab in
order to provide a common and maintained version of arpack.

Because no single release has been published by Rice university for the last
decade and since many software packages (Octave, Scilab, R, Matlab...) have
forked it and implemented their own modifications, arpack-ng aims to tackle
this issue by providing a common repository and maintained version.
<<
DescUsage: <<
This package contains static libraries, an unversioned dylib, Fortran
examples, and documentation.
<<

BuildDependsOnly: true
Homepage: http://forge.scilab.org/index.php/p/arpack-ng/
License: BSD

Source: http://forge.scilab.org/upload/%{Ni}/files/%{Ni}_%v.tar.gz
Source-MD5: 942a866c306ab6986f3f4fe59ac4b13e

SourceDirectory: %{Ni}_%v

BuildDepends: <<
(%type_raw[-atlas] != .) atlas,
fink (>=0.30.0),
gcc%type_pkg[gcc]-compiler,
openmpi-dev
<<
Depends: %N-shlibs (= %v-%r )
Conflicts: %{Ni}, %{Ni}-atlas, arpack, arpack-atlas
Replaces: %{Ni}, %{Ni}-atlas, arpack, arpack-atlas

SetLDFLAGS: -Wl,-dead_strip_dylibs -L%p/lib/openmpi

ConfigureParams: <<
(%type_raw[-atlas] = .) --with-blas='-Wl,-framework,Accelerate' \
(%type_raw[-atlas] = .) --with-lapack='-Wl,-framework,Accelerate' \
--enable-mpi --disable-static
<<
CompileScript: <<
#!/bin/sh -ev
export F77=%p/bin/gfortran-fsf-%type_raw[gcc]
export MPIF77=%p/bin/mpif77
if [ "%type_raw[-atlas]" != "-atlas" ] ;
then
export FFLAGS='-ff2c'
fi
%{default_script}
<<

InstallScript: <<
make install DESTDIR=%d
# manually install headers
mkdir -p %i/include/arpack
cp SRC/*.h %i/include/arpack
# manually fix .pc file
perl -pi -e 's|/usr|%p|' %i/lib/pkgconfig/arpack.pc
<<

DocFiles: CHANGES DOCUMENTS EXAMPLES PARPACK_CHANGES PARPACK/EXAMPLES README TODO COPYING
DescPackaging: <<
Needs a gfortran; we're going with gcc47.

Needs -ff2c when using Accelerate.framework, but not when using
ATLAS.

3.0.1-1 misbuilt: it's best _not_ to specify --with-blas and --with-lapack
when using atlas.

3.1.0: Doesn't actually understand how _not_ to build with MPI, and it
seems like a real pain to make it do so, so we'll go ahead and do that.
<<

Splitoff: <<
Package: %N-shlibs
Files: lib/lib*arpack.2.dylib
Shlibs: <<
%p/lib/libarpack.2.dylib 3.0.0 %n (>=3.0.1-1)
%p/lib/libparpack.2.dylib 3.0.0 %n (>=3.1.0-1)
<<
Depends: <<
(%type_raw[-atlas] != .) atlas-shlibs,
gcc%type_pkg[gcc]-shlibs
<<
Conflicts: %{Ni}-shlibs, %{Ni}-atlas-shlibs
Replaces: %{Ni}-shlibs, %{Ni}-atlas-shlibs
DescDetail: <<
This package contains the shared libraries.
<<
DocFiles: COPYING
<<
<<