Skip to content

Commit

Permalink
berkeleygw: Fix distfiles location, fix permissions problem.
Browse files Browse the repository at this point in the history
  • Loading branch information
dstrubbe committed Feb 7, 2017
1 parent f0ba3bf commit 8795c50
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions science/berkeleygw/Portfile
Expand Up @@ -10,19 +10,21 @@ categories science
platforms darwin
license BSD
maintainers dstrubbe
revision 1

description GW/Bethe-Salpeter equation
long_description BerkeleyGW is a set of computer codes that calculate the quasiparticle properties \
and the optical responses of a large variety of materials from bulk periodic crystals \
to nanostructures such as slabs, wires and molecules, using many-body perturbation theory \
(the GW approximation and Bethe-Salpeter equation).
homepage http://www.berkeleygw.org
master_sites ${homepage}/releases

checksums rmd160 26933a24c10ba03457c667bc5f2d3ca21df2a436 \
sha256 1305dc8587af666fe437bc2561a9106b2b0bcdbe91980b8f1ae7bbd491ce1e25

distfiles BGW-${version}.tar.gz
master_sites https://berkeley.box.com/shared/static
distfiles 829s6ha4popx1g4cslpklzh5znf2v6la.gz
#old name: BGW-${version}.tar.gz; master_sites ${homepage}/releases
# needed for case-sensitive filesystems
worksrcdir BerkeleyGW-${version}

Expand All @@ -47,6 +49,7 @@ if {![variant_isset fftw2]} {
# _spg_get_international in libsymspg.a(spglib.o)
# _spg_get_schoenflies in libsymspg.a(spglib.o)
compilers.choose fc cc cxx cpp
# can we re-enable OpenMPI?
mpi.setup require_fortran -dragonegg -openmpi -openmpi_devel -gfortran -clang -llvm
# FIXME: +gfortran just needs smarter setting of cpp to the one from gcc;
#clang and llvm only useful with +g95 currently (which is useless)
Expand Down Expand Up @@ -83,6 +86,17 @@ build.target all-flavors
use_parallel_build yes

destroot.post_args INSTDIR=${destroot}${prefix}
post-extract {
# note: this needs to be fixed upstream
system "chmod -R a+rX ${worksrcpath}"
# Otherwise would have this:

#ls -lt /opt/local/share/berkeleyGW/
#total 744
#drwx------ 5 root admin 170 Jan 30 11:12 examples
#drwx------ 40 root admin 1360 Jan 30 11:12 testsuite
#-rwxr-xr-x 1 root admin 379415 Jan 30 11:12 manual.html
}

test.run yes

Expand Down

0 comments on commit 8795c50

Please sign in to comment.