[74610] trunk/dports/math/slepc/Portfile

mmoll at macports.org mmoll at macports.org
Thu Dec 23 09:58:35 PST 2010


Revision: 74610
          http://trac.macports.org/changeset/74610
Author:   mmoll at macports.org
Date:     2010-12-23 09:58:30 -0800 (Thu, 23 Dec 2010)
Log Message:
-----------
science/slepc: use notes instead of ui_msg, clean up configure code, doc fix

Modified Paths:
--------------
    trunk/dports/math/slepc/Portfile

Modified: trunk/dports/math/slepc/Portfile
===================================================================
--- trunk/dports/math/slepc/Portfile	2010-12-23 17:56:37 UTC (rev 74609)
+++ trunk/dports/math/slepc/Portfile	2010-12-23 17:58:30 UTC (rev 74610)
@@ -4,6 +4,7 @@
 
 name            slepc
 version         3.1-p5
+revision        1
 license         LGPL
 categories      math science
 maintainers     mmoll
@@ -13,6 +14,11 @@
     extension of PETSc and can be used for either standard or generalized \
     eigenproblems, with real or complex arithmetic. It can also be used for \
     computing a partial SVD of a large, sparse, rectangular matrix.
+notes           "Add the following lines to your .bash_profile if you plan to\
+                use the PETSC/SLEPC makefile rules in $prefix/lib/petsc/conf:\n\
+                \texport PETSC_DIR=${prefix}/lib/petsc\n\
+                \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
@@ -26,8 +32,6 @@
 depends_lib-append  port:petsc
 
 extract.suffix  .tgz
-configure.env-append  PETSC_DIR=${prefix}/lib/petsc SLEPC_DIR=${worksrcpath}
-configure.cmd         ${worksrcpath}/config/configure.py
 configure.args        --prefix=${prefix}/lib/petsc
 build.env-append      PETSC_DIR=${prefix}/lib/petsc PETSC_ARCH=installed-petsc SLEPC_DIR=${worksrcpath}
 destroot.env-append   PETSC_DIR=${prefix}/lib/petsc PETSC_ARCH=installed-petsc SLEPC_DIR=${worksrcpath}
@@ -53,7 +57,7 @@
                 if {[file exists ${prefix}/lib/g95]} {
                     set fortrandir ${prefix}/lib/gcc95
                 } else {
-                    return -code error "Please install a fortran compiler by installing one of the following ports: gcc42, gcc43, or g95."
+                    return -code error "Please install a fortran compiler by installing one of the following ports: gcc42, gcc43, gcc44, or g95."
                 }
             }
         }
@@ -63,18 +67,6 @@
                 --with-arpack-flags=-lparpack,-larpack,-lgfortran,-lmpi_f77
 }
 
-post-activate {
-    ui_msg "********************************************************"
-    ui_msg "* Add the following lines to your .bash_profile if you *"
-    ui_msg "* plan to use the PETSC/SLEPC makefile rules in        *"
-    ui_msg "* $prefix/lib/petsc/conf:                              *"
-    ui_msg "*                                                      *"
-    ui_msg "*   export PETSC_DIR=${prefix}/lib/petsc               *"
-    ui_msg "*   export SLEPC_DIR=${prefix}/lib/petsc               *"
-    ui_msg "*                                                      *"
-    ui_msg "********************************************************"
-}
-
 livecheck.type  regex
 livecheck.url   http://www.grycap.upv.es/slepc/download/download.htm
 livecheck.regex slepc-(\[0-9.\]+(-p\[0-9\]+))\\.tgz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20101223/29d68f41/attachment-0001.html>


More information about the macports-changes mailing list