summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Bock <nicolasbock@gentoo.org>2015-10-28 13:21:31 -0600
committerNicolas Bock <nicolasbock@gentoo.org>2015-10-28 13:24:57 -0600
commit773a7b8c58d010078f1ac85a9b9921a373d2c7e5 (patch)
treec27ce84262dd06605dbe9be0e41ce501aa5aa3ea /sci-physics/lammps
parentvirtual/perl-Unicode-Collate: Version bump, needed for biber (diff)
downloadgentoo-773a7b8c58d010078f1ac85a9b9921a373d2c7e5.tar.gz
gentoo-773a7b8c58d010078f1ac85a9b9921a373d2c7e5.tar.bz2
gentoo-773a7b8c58d010078f1ac85a9b9921a373d2c7e5.zip
sci-physics/lammps: Ebuild cleanup
Package-Manager: portage-2.2.20.1
Diffstat (limited to 'sci-physics/lammps')
-rw-r--r--sci-physics/lammps/lammps-20151026.ebuild68
1 files changed, 20 insertions, 48 deletions
diff --git a/sci-physics/lammps/lammps-20151026.ebuild b/sci-physics/lammps/lammps-20151026.ebuild
index 2c757128a641..55f834d0c882 100644
--- a/sci-physics/lammps/lammps-20151026.ebuild
+++ b/sci-physics/lammps/lammps-20151026.ebuild
@@ -47,64 +47,36 @@ lmp_emake() {
# The lammps makefile uses CC to indicate the C++ compiler.
emake \
- ARCHIVE=$(tc-getAR) \
- CC=$(usex mpi "mpic++" "$(tc-getCXX)") \
- F90=$(usex mpi "mpif90" "$(tc-getFC)") \
- LINK=$(usex mpi "mpic++" "$(tc-getCXX)") \
+ ARCHIVE="$(tc-getAR)" \
+ CC="$(usex mpi "mpic++" "$(tc-getCXX)")" \
+ F90="$(usex mpi "mpif90" "$(tc-getFC)")" \
+ LINK="$(usex mpi "mpic++" "$(tc-getCXX)")" \
CCFLAGS="${CXXFLAGS}" \
F90FLAGS="${FCFLAGS}" \
LINKFLAGS="${LDFLAGS}" \
LMP_INC="${LAMMPS_INCLUDEFLAGS}" \
- MPI_INC=$(usex mpi "" "-I../STUBS") \
- MPI_PATH=$(usex mpi "" "-L../STUBS") \
- MPI_LIB=$(usex mpi "" "-lmpi_stubs") \
+ MPI_INC="$(usex mpi "" "-I../STUBS")" \
+ MPI_PATH="$(usex mpi "" "-L../STUBS")" \
+ MPI_LIB="$(usex mpi "" "-lmpi_stubs")" \
user-atc_SYSLIB="$(usex mpi "$($(tc-getPKG_CONFIG) --libs blas) $($(tc-getPKG_CONFIG) --libs lapack)" '')"\
"$@"
}
lmp_activate_packages() {
# Build packages
- lmp_emake -C src yes-asphere
- lmp_emake -C src yes-body
- lmp_emake -C src yes-class2
- lmp_emake -C src yes-colloid
- lmp_emake -C src yes-coreshell
- lmp_emake -C src yes-dipole
- lmp_emake -C src yes-fld
- #lmp_emake -C src yes-gpu
- lmp_emake -C src yes-granular
- # Need OpenKIM external dependency.
- #lmp_emake -C src yes-kim
- # Need Kokkos external dependency.
- #lmp_emake -C src yes-kokkos
- lmp_emake -C src yes-kspace
- lmp_emake -C src yes-manybody
- lmp_emake -C src yes-mc
- lmp_emake -C src yes-meam
- lmp_emake -C src yes-misc
- lmp_emake -C src yes-molecule
- #lmp_emake -C src yes-mpiio
- lmp_emake -C src yes-opt
- lmp_emake -C src yes-peri
- lmp_emake -C src yes-poems
- lmp_emake -C src yes-qeq
- lmp_emake -C src yes-reax
- lmp_emake -C src yes-replica
- lmp_emake -C src yes-rigid
- lmp_emake -C src yes-shock
- lmp_emake -C src yes-snap
- lmp_emake -C src yes-srd
- lmp_emake -C src yes-voronoi
- lmp_emake -C src yes-xtc
-
- if use mpi; then
- lmp_emake -C src yes-user-atc
- fi
- lmp_emake -C src yes-user-eff
- lmp_emake -C src yes-user-fep
- use mpi && lmp_emake -C src yes-user-lb
- lmp_emake -C src yes-user-phonon
- lmp_emake -C src yes-user-sph
+ local packages=( yes-asphere yes-body yes-class2 yes-colloid \
+ yes-coreshell yes-dipole yes-fld yes-granular yes-kspace \
+ yes-manybody yes-mc yes-meam yes-misc \
+ $(usex mpi "yes-user-atc" "") \
+ yes-molecule yes-opt yes-peri yes-poems yes-qeq yes-reax \
+ yes-replica yes-rigid yes-shock yes-snap yes-srd \
+ yes-user-eff yes-user-fep \
+ $(usex mpi "yes-user-lb" "") \
+ yes-user-phonon yes-user-sph yes-voronoi yes-xtc )
+
+ for p in ${packages[@]}; do
+ lmp_emake -C src ${p}
+ done
}
lmp_build_packages() {