1 | # $Id: $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name slepc |
---|
6 | version 2.3.3 |
---|
7 | categories math science |
---|
8 | maintainers cs.rice.edu:mmoll |
---|
9 | description Scalable Library for Eigenvalue Problem Computations |
---|
10 | long_description SLEPc is a software library for the solution of large \ |
---|
11 | scale sparse eigenvalue problems on parallel computers. It is an \ |
---|
12 | extension of PETSc and can be used for either standard or generalized \ |
---|
13 | eigenproblems, with real or complex arithmetic. It can also be used for \ |
---|
14 | computing a partial SVD of a large, sparse, rectangular matrix. |
---|
15 | platforms darwin |
---|
16 | homepage http://www.grycap.upv.es/slepc |
---|
17 | master_sites http://www.grycap.upv.es/slepc/download/distrib |
---|
18 | distname ${name}-${version} |
---|
19 | |
---|
20 | # fixed up patch from official site: |
---|
21 | # (1) removed one patch that was rejected by patch, |
---|
22 | # (2) official path assumed "patch -p1", whereas MacPorts assumes "patch -p0". |
---|
23 | patchfiles patch-slepc-2.3.3.diff |
---|
24 | |
---|
25 | checksums md5 5f9172c12f95ea0bebc73d45f4cdcaa0 \ |
---|
26 | sha1 17ffa8507ae81102178e5041e1f57c20cb9143c2 |
---|
27 | |
---|
28 | depends_lib-append port:petsc |
---|
29 | |
---|
30 | extract.suffix .tgz |
---|
31 | configure.env-append PETSC_DIR=${prefix}/lib/petsc PETSC_ARCH=darwin \ |
---|
32 | SLEPC_DIR=${worksrcpath} |
---|
33 | configure.cmd ${worksrcpath}/config/configure.py |
---|
34 | configure.args --prefix=${prefix}/lib/petsc |
---|
35 | build.env PETSC_DIR=${prefix}/lib/petsc PETSC_ARCH=darwin \ |
---|
36 | SLEPC_DIR=${worksrcpath} |
---|
37 | destroot.env PETSC_DIR=${prefix}/lib/petsc PETSC_ARCH=darwin \ |
---|
38 | SLEPC_DIR=${worksrcpath} |
---|
39 | destroot.destdir SLEPC_INSTALL_DIR=${destroot}${prefix}/lib/petsc |
---|
40 | |
---|
41 | variant arpack description {compile with ARPACK support} { |
---|
42 | depends_lib-append port:arpack |
---|
43 | configure.args-append --with-arpack |
---|
44 | } |
---|
45 | |
---|
46 | post-activate { |
---|
47 | ui_msg "********************************************************" |
---|
48 | ui_msg "* Add the following lines to your .bash_profile if you *" |
---|
49 | ui_msg "* plan to use the PETSC/SLEPC makefile rules in *" |
---|
50 | ui_msg "* $prefix/lib/petsc/bmake: *" |
---|
51 | ui_msg "* *" |
---|
52 | ui_msg "* export PETSC_DIR=${prefix}/lib/petsc *" |
---|
53 | ui_msg "* export PETSC_ARCH=darwin *" |
---|
54 | ui_msg "* export SLEPC_DIR=${prefix}/lib/petsc *" |
---|
55 | ui_msg "* *" |
---|
56 | ui_msg "********************************************************" |
---|
57 | } |
---|