[116399] trunk/dports/math/slepc/Portfile
sean at macports.org
sean at macports.org
Thu Jan 23 12:16:13 PST 2014
Revision: 116399
https://trac.macports.org/changeset/116399
Author: sean at macports.org
Date: 2014-01-23 12:16:13 -0800 (Thu, 23 Jan 2014)
Log Message:
-----------
slepc: update to 3.4.3 and use mpi portgroup
Modified Paths:
--------------
trunk/dports/math/slepc/Portfile
Modified: trunk/dports/math/slepc/Portfile
===================================================================
--- trunk/dports/math/slepc/Portfile 2014-01-23 20:16:10 UTC (rev 116398)
+++ trunk/dports/math/slepc/Portfile 2014-01-23 20:16:13 UTC (rev 116399)
@@ -2,11 +2,14 @@
# $Id$
PortSystem 1.0
+PortGroup bitbucket 1.0
PortGroup conflicts_build 1.0
-PortGroup active_variants 1.1
+PortGroup mpi 1.0
-name slepc
-version 3.3-p4
+mpi.setup
+mpi.enforce_variant petsc
+
+bitbucket.setup slepc slepc 3.4.3 v
categories math science
maintainers sean
license LGPL
@@ -23,50 +26,36 @@
\texport SLEPC_DIR=${prefix}/lib/petsc"
platforms darwin
-homepage http://www.grycap.upv.es/slepc
-master_sites http://www.grycap.upv.es/slepc/download/distrib
-distname ${name}-${version}
universal_variant no
-checksums md5 d034e8b894bda374ec330a750428ac3f \
- sha1 49620a9aa6bb502bd773dadee11aa7f98a784ba6 \
- rmd160 0426a86aab0e765618ade3ac8c17548661cbe1f7
+checksums rmd160 4f9b2d4137977d87ea7c72fd42acf1005decd07a \
+ sha256 85859234a56997ba840d1b57c2fbe44420c4c38faf5553d009f347410d3e239f
depends_lib-append port:petsc
+conflicts_build slepc
+use_parallel_build no
configure.args --prefix=${prefix}/lib/petsc
build.env-append PETSC_DIR=${prefix}/lib/petsc PETSC_ARCH=arch-installed-petsc SLEPC_DIR=${worksrcpath}
destroot.env-append PETSC_DIR=${prefix}/lib/petsc PETSC_ARCH=arch-installed-petsc SLEPC_DIR=${worksrcpath}
destroot.cmd-append SLEPC_DESTDIR=${destroot}${prefix}/lib/petsc
-conflicts_build slepc
-
variant arpack description {compile with ARPACK support} {
- require_active_variants arpack openmpi
+ mpi.enforce_variant arpack
+ mpi.enforce_fortran
+
pre-fetch {
if {![file exists ${prefix}/lib/libparpack.a]} {
- return -code error "Please install the openmpi or mpich2 variant of arpack first."
+ return -code error "Please install a mpi variant of arpack first."
}
}
- # This is a rather fragile way to figure out where the fortran library can be
- # found that is needed to link against libparpack.a:
- set fortrandirs {g95 gcc42 gcc43 gcc44 gcc45 gcc46 gcc47 gcc48}
- set fortrandir ""
- foreach dir ${fortrandirs} {
- if {[file exists ${prefix}/lib/${dir}]} {
- set fortrandir ${prefix}/lib/${dir}
- }
- }
- if {${fortrandir} == ""} {
- ui_error "Install a fortran compiler by installing one of these ports:"
- ui_error "gcc42, gcc43, gcc44, gcc45, gcc46, gcc47, gcc48, or g95."
- return -code error "No fortran compiler installed"
- }
+
depends_lib-append port:arpack
- configure.args-append --with-arpack-dir=${fortrandir} \
- --with-arpack-flags=-lparpack,-larpack,-lgfortran
+ configure.args-append --with-arpack-dir=${prefix} \
+ --with-arpack-flags=-lparpack,-larpack
}
-livecheck.type regex
-livecheck.url http://www.grycap.upv.es/slepc/download/download.htm
-livecheck.regex slepc-(\[0-9.\]+(-p\[0-9\]+))\\.tar.gz
+# fix install name
+post-destroot {
+ system "install_name_tool -id ${prefix}/lib/petsc/lib/libslepc.dylib ${destroot}${prefix}/lib/petsc/lib/libslepc.dylib"
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140123/d4d9e620/attachment.html>
More information about the macports-changes
mailing list