<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[118091] trunk/dports/science/abinit/Portfile</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="https://trac.macports.org/changeset/118091">118091</a></dd>
<dt>Author</dt> <dd>macsforever2000@macports.org</dd>
<dt>Date</dt> <dd>2014-03-21 12:53:05 -0700 (Fri, 21 Mar 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>abinit: Correctly spell Portfile this time.</pre>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkdportsscienceabinitPortfile">trunk/dports/science/abinit/Portfile</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkdportsscienceabinitPortfile"></a>
<div class="addfile"><h4>Added: trunk/dports/science/abinit/Portfile (0 => 118091)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/science/abinit/Portfile                                (rev 0)
+++ trunk/dports/science/abinit/Portfile        2014-03-21 19:53:05 UTC (rev 118091)
</span><span class="lines">@@ -0,0 +1,265 @@
</span><ins>+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem          1.0
+PortGroup           active_variants 1.1
+
+name                abinit
+version             7.4.3
+categories          science
+platforms           darwin
+license             GPL-3
+maintainers         gmail.com:cram5431 \
+                    openmaintainer
+
+description         Full-featured atomic-scale first-principles simulation software
+
+long_description    ABINIT is a package whose main program allows one to find the total energy, \
+                    charge density and electronic structure of systems made of electrons and nuclei \
+                    (molecules and periodic solids) within Density Functional Theory (DFT), \
+                    using pseudopotentials and a planewave or wavelet basis. \
+                    ABINIT also includes options to optimize the geometry according to the DFT forces \
+                    and stresses, or to perform molecular dynamics simulations using these forces, \
+                    or to generate dynamical matrices, Born effective charges, and dielectric tensors, \
+                    based on Density-Functional Perturbation Theory, and many more properties. \
+                    Excited states can be computed within the Many-Body Perturbation Theory \
+                    (the GW approximation and the Bethe-Salpeter equation), and \
+                    Time-Dependent Density Functional Theory (for molecules). \
+                    In addition to the main ABINIT code, different utility programs are provided. \
+                    ABINIT is a project that favours development and collaboration.
+
+homepage            http://www.abinit.org
+master_sites        http://ftp.abinit.org/
+
+checksums           rmd160  6e3629a94721440f8afacbcaf2b046b5c6e9b23d \
+                    sha256  3593dc96c124c0e1ad29a5ec13e9e8f8dc391b328cf06ed461e34f5a9298b246
+
+depends_lib         port:atlas
+
+configure.args      --with-linalg-flavor=&quot;atlas&quot; --enable-gw-dpc
+configure.optflags  -O3
+
+build.cmd           make
+build.target        multi multi_nprocs=4
+use_parallel_build  no
+
+default_variants +etsf_io +libxc +wannier90
+if { ![variant_isset gcc46] &amp;&amp; ![variant_isset gcc47] &amp;&amp; ![variant_isset gcc48] } {
+    if { ![variant_isset openmpi] } {
+        default_variants    +mpich
+    } elseif { ![variant_isset mpich] } {
+        default_variants    +openmpi
+    } else {
+        default_variants    +gcc48
+    }
+}
+
+pre-fetch {
+    set fortran unknown
+    set fortrans { gcc42 gcc43 gcc44 gcc45 gcc46 gcc47 gcc48 gcc49 g95 }
+
+    foreach fc_name ${fortrans} {
+        if { [variant_isset ${fc_name}] } {
+            set fortran ${fc_name}
+        } elseif { [variant_isset openmpi] } {
+            if { [_portnameactive openmpi-default] } {
+                if { [active_variants openmpi-default ${fc_name}] } { set fortran ${fc_name} }
+            } elseif { [_portnameactive openmpi-devel-default] } {
+                if { [active_variants openmpi-devel-default ${fc_name}] } { set fortran ${fc_name} }
+            }
+        } elseif { [variant_isset mpich] } {
+            if { [_portnameactive mpich-default] } {
+                if { [active_variants mpich-default ${fc_name}] } { set fortran ${fc_name} }
+            } elseif { [_portnameactive mpich-devel-default] } {
+                if { [active_variants mpich-devel-default ${fc_name}] } { set fortran ${fc_name} }
+            }
+        }
+    }
+
+    if { ${fortran} eq &quot;unknown&quot; } {
+        if { [variant_isset openmpi] } {
+            ui_error &quot;Variant +openmpi requires openmpi to have been built with Fortran support.&quot;
+            return -code error &quot;Variant +openmpi requires openmpi to have been built with Fortran support.&quot;
+        } elseif { [variant_isset mpich] } {
+            ui_error &quot;Variant +mpich requires mpich-default/mpich-devel-default to have been built with Fortran support.&quot;
+            return -code error &quot;Variant +mpich requires mpich-default/mpich-devel-default to have been built with Fortran support.&quot;
+        } else {
+            ui_error &quot;Internal error: cannot determine Fortran compiler.&quot;
+            return -code error &quot;Internal error: cannot determine Fortran compiler.&quot;
+        }
+    }
+
+    if { [variant_isset libxc] } {
+        if { ![active_variants libxc ${fortran}] } {
+            ui_error &quot;libxc must have been built with +${fortran}.&quot;
+            return -code error &quot;libxc must have been built with +${fortran}.&quot;
+        }
+    }
+
+    if { [variant_isset netcdf] } {
+        if {![active_variants netcdf-fortran ${fortran}] } {
+            ui_error &quot;netcdf-fortran must have been built with +${fortran}.&quot;
+            return -code error &quot;netcdf-fortran must have been built with +${fortran}.&quot;
+        }
+    }
+
+    if { [variant_isset etsf_io] } {
+        if {![active_variants etsf_io ${fortran}] } {
+            ui_error &quot;etsf_io must have been built with +${fortran}.&quot;
+            return -code error &quot;etsf_io must have been built with +${fortran}.&quot;
+        }
+    }
+
+#   No need to check compiler for wannier90
+#   No need to check compiler for fftw-3
+}
+
+pre-configure {
+    if { [variant_isset etsf_io] } {
+            configure.args-append  --with-trio-flavor=&quot;netcdf+etsf_io&quot;
+        } elseif { [variant_isset netcdf] } {
+            configure.args-append  --with-trio-flavor=&quot;netcdf&quot;
+        } else {
+            configure.args-append  --with-trio-flavor=&quot;none&quot;
+    }
+
+    set dft-flavor &quot;none&quot;
+    if { [variant_isset libxc] } {
+        if { ${dft-flavor} eq &quot;none&quot; } {
+            set dft-flavor &quot;libxc&quot;
+        } else {
+            set dft-flavor ${dft-flavor}&quot;+libxc&quot;
+        }
+    }
+    if { [variant_isset wannier90] } {
+        if { ${dft-flavor} eq &quot;none&quot; } {
+            set dft-flavor &quot;wannier90&quot;
+        } else {
+            set dft-flavor ${dft-flavor}&quot;+wannier90&quot;
+        }
+    }
+    if { [variant_isset bigdft] } {
+        if { ${dft-flavor} eq &quot;none&quot; } {
+            set dft-flavor &quot;bigdft&quot;
+        } else {
+            set dft-flavor ${dft-flavor}&quot;+bigdft&quot;
+        }
+    }
+    if { [variant_isset atompaw] } {
+        if { ${dft-flavor} eq &quot;none&quot; } {
+            set dft-flavor &quot;atompaw&quot;
+        } else {
+            set dft-flavor ${dft-flavor}&quot;+atompaw&quot;
+        }
+    }
+    configure.args-append  --with-dft-flavor=&quot;${dft-flavor}&quot;
+}
+
+destroot {
+    xinstall -W ${worksrcpath}/src/98_main \
+     abinit aim anaddb band2eps bsepostproc conducti cut3d \
+     fftprof ioprof kss2wfk lapackprof lwf macroave mrgddb \
+     mrggkk mrgscr optic ujdet vdw_kernelgen \
+     ${destroot}${prefix}/bin
+    if { [variant_isset atompaw] } {
+        xinstall -W ${worksrcpath}/fallbacks/exports/bin \
+         atompaw-abinit ${destroot}${prefix}/bin
+    }
+}
+
+#universal variant not allowed for libxc/etsf_io
+universal_variant   no
+
+test.run            yes
+test.target         check-full
+
+
+variant gcc46 conflicts gcc47 gcc48 openmpi mpich description {Build with GCC 4.6} {
+    configure.compiler  macports-gcc-4.6
+    configure.args-append  FCCPP=&quot;${configure.cpp} -ansi&quot;
+}
+
+variant gcc47 conflicts gcc46 gcc48 openmpi mpich description {Build with GCC 4.7} {
+    configure.compiler  macports-gcc-4.7
+    configure.args-append  FCCPP=&quot;${configure.cpp} -ansi&quot;
+}
+
+variant gcc48 conflicts gcc46 gcc47 openmpi mpich description {Build with GCC 4.8} {
+    configure.compiler  macports-gcc-4.8
+    configure.args-append  FCCPP=&quot;${configure.cpp} -ansi&quot;
+}
+
+variant openmpi conflicts gcc46 gcc47 gcc48 mpich description {Build parallel version with OpenMPI} {
+    depends_lib-append     path:bin/mpif90-openmpi-mp:openmpi-default
+    configure.fc           mpif90-openmpi-mp
+    configure.cc           mpicc-openmpi-mp
+    configure.cxx          mpicxx-openmpi-mp
+    configure.args-append  FCCPP=&quot;${configure.cc} -E -ansi&quot;
+    configure.args-append  --enable-mpi=&quot;yes&quot; --enable-mpi-io=&quot;yes&quot; --with-mpi-level=&quot;1&quot;
+    configure.args-append  MPI_RUNNER=${prefix}/bin/mpiexec-openmpi-mp
+    test.env-append        MPIEXEC=${prefix}/bin/mpiexec-openmpi-mp
+}
+
+variant mpich conflicts gcc46 gcc47 gcc48 openmpi description {Build parallel version with MPICH} {
+    depends_lib-append     path:bin/mpif90-mpich-mp:mpich-default
+    configure.fc           mpif90-mpich-mp
+    configure.cc           mpicc-mpich-mp
+    configure.cxx          mpicxx-mpich-mp
+    configure.args-append  FCCPP=&quot;${configure.cc} -E -ansi&quot;
+    configure.args-append  --enable-mpi=&quot;yes&quot; --enable-mpi-io=&quot;yes&quot;
+    configure.args-append  MPI_RUNNER=${prefix}/bin/mpiexec-mpich-mp
+    test.env-append        MPIEXEC=${prefix}/bin/mpiexec-mpich-mp
+}
+
+variant fftw3 description {Build with support for fftw-3 FFT library} {
+    depends_lib-append      port:fftw-3
+    if { [variant_isset threads] } {
+        configure.args-append   --with-fft-flavor=&quot;fftw3-threads&quot;
+        configure.args-append   --with-fft-libs=&quot;-lfftw3_threads -lfftw3&quot;
+    } else {
+        configure.args-append   --with-fft-flavor=&quot;fftw3&quot;
+        configure.args-append   --with-fft-libs=&quot;-lfftw3&quot;
+    }
+}
+
+variant threads description {Build with support for multi-thread support (openMP)} {
+    configure.args-append   --enable-openmp
+    configure.fcflags-append -fopenmp
+    configure.args-append   --with-linalg-libs=&quot;-L&quot;${prefix}&quot;/lib -ltatlas&quot;
+    configure.args-append   --with-linalg-incs=&quot;-I&quot;${prefix}&quot;/include&quot;
+}
+
+variant netcdf description {Build with support for NetCDF transferable I/O} {
+    depends_lib-append      port:netcdf-fortran
+    configure.args-append   --with-netcdf-incs=&quot;-I&quot;${prefix}&quot;/include&quot;
+    configure.args-append   --with-netcdf-libs=&quot;-L&quot;${prefix}&quot;/lib -lnetcdf -lnetcdff&quot;
+}
+
+variant etsf_io description {Build with support for ETSF_IO transferable I/O} {
+    depends_lib-append      port:etsf_io
+    configure.args-append   --with-etsf-io-incs=&quot;-I&quot;${prefix}&quot;/include/gcc&quot;
+    configure.args-append   --with-netcdf-incs=&quot;-I&quot;${prefix}&quot;/include&quot;
+    configure.args-append   --with-netcdf-libs=&quot;-L&quot;${prefix}&quot;/lib -lnetcdf -lnetcdff&quot;
+}
+
+variant libxc description {Build with support for libXC exchange-correlation library} {
+    depends_lib-append      port:libxc
+    configure.args-append   --with-libxc-incs=&quot;-I&quot;${prefix}&quot;/include&quot;
+}
+
+variant wannier90 description {Build with support for Wannier90} {
+    depends_lib-append      port:wannier90
+}
+
+variant bigdft description {Build with support for the wavelet BigDFT library} {
+#   Patch bigdft-abi-1.0.4 (missing config.Sub and config.guess)
+    patchfiles-append       patch-bigdft-config.diff
+}
+
+variant atompaw description {Build including AtomPAW atomic dataset generator} {
+}

+livecheck.type      regex
+livecheck.url       ${homepage}/downloads/source-packages/abinit-1/releases/index.html
+livecheck.regex     ABINIT (\[0-9.\]+)
+
</ins><span class="cx">Property changes on: trunk/dports/science/abinit/Portfile
</span><span class="cx">___________________________________________________________________
</span></span></pre></div>
<a id="svnkeywords"></a>
<div class="addfile"><h4>Added: svn:keywords</h4></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4>Added: svn:eol-style</h4></div>
</div>

</body>
</html>