Skip to content

Commit

Permalink
Merge pull request #1561 from jschueller/arpack
Browse files Browse the repository at this point in the history
Add arpack
  • Loading branch information
jakirkham authored Sep 26, 2016
2 parents be386d2 + 6847e8b commit e77b02e
Show file tree
Hide file tree
Showing 3 changed files with 106 additions and 0 deletions.
25 changes: 25 additions & 0 deletions recipes/arpack/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/sh

if test `uname` = "Darwin"
then
SO_EXT='.dylib'
else
SO_EXT='.so'
fi


mkdir -p build && cd build

for shared_libs in OFF ON
do
cmake \
-DCMAKE_PREFIX_PATH=${PREFIX} \
-DCMAKE_INSTALL_PREFIX=${PREFIX} \
-DBUILD_SHARED_LIBS=${shared_libs} \
-DCMAKE_BUILD_WITH_INSTALL_RPATH=ON \
..

make -j${CPU_COUNT}
done
cp lib/libarpack${SO_EXT} libarpack.a ${PREFIX}/lib
DYLD_FALLBACK_LIBRARY_PATH=${PREFIX}/lib make check -j${CPU_COUNT}
46 changes: 46 additions & 0 deletions recipes/arpack/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{% set version = "3.4.0" %}
{% set variant = "openblas" %}

package:
name: arpack
version: {{ version }}

source:
fn: arpack-{{ version }}.tar.gz
url: https://github.com/opencollab/arpack-ng/archive/{{ version }}.tar.gz
sha256: 69e9fa08bacb2475e636da05a6c222b17c67f1ebeab3793762062248dd9d842f

build:
number: 200
features:
- blas_{{ variant }}
skip: true # [win]

requirements:
build:
- toolchain
- gcc
- cmake
- blas 1.1 {{ variant }}
- openblas 0.2.18|0.2.18.*

run:
- libgfortran
- blas 1.1 {{ variant }}
- openblas 0.2.18|0.2.18.*

test:
commands:
- test -f ${PREFIX}/lib/libarpack.a # [unix]
- test -f ${PREFIX}/lib/libarpack.so # [linux]
- test -f ${PREFIX}/lib/libarpack.dylib # [osx]

about:
home: https://github.com/opencollab/arpack-ng
license: BSD 3-Clause
license_file: COPYING
summary: Fortran77 subroutines designed to solve large scale eigenvalue problems

extra:
recipe-maintainers:
- jschueller
35 changes: 35 additions & 0 deletions recipes/arpackpp/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{% set version = "2.3.0" %}

package:
name: arpackpp
version: {{ version }}

source:
fn: arpackpp-{{ version }}.tar.gz
url: https://github.com/m-reuter/arpackpp/archive/{{ version }}.tar.gz
sha256: 288fb4cd2dd08e02ed29db579bc1278023a06415dd2f63b1fdc323c7993fcb1a

build:
number: 0
skip: true # [win]
script:
- install -d ${PREFIX}/include/arpack++
- install include/*.h ${PREFIX}/include/arpack++

requirements:
run:
- arpack

test:
commands:
- test -f ${PREFIX}/include/arpack++/arpackf.h

about:
home: http://reuter.mit.edu/software/arpackpatch/
license: BSD 3-Clause
license_file: LICENSE
summary: an object-oriented version of the ARPACK package

extra:
recipe-maintainers:
- jschueller

0 comments on commit e77b02e

Please sign in to comment.