summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Junghans <ottxor@gentoo.org>2013-06-26 23:53:35 +0000
committerChristoph Junghans <ottxor@gentoo.org>2013-06-26 23:53:35 +0000
commit28a8f04a7537e56ad5115a6e98d716ec08d48777 (patch)
tree47bfa4fd4200b68ddc4af6cac4089f0a0ba55d23 /sci-physics
parentinitial import from sci overlay (diff)
downloadhistorical-28a8f04a7537e56ad5115a6e98d716ec08d48777.tar.gz
historical-28a8f04a7537e56ad5115a6e98d716ec08d48777.tar.bz2
historical-28a8f04a7537e56ad5115a6e98d716ec08d48777.zip
initial import from sci overlay
Package-Manager: portage-2.2.0_alpha185/cvs/Linux x86_64 Manifest-Sign-Key: 0xC2000586
Diffstat (limited to 'sci-physics')
-rw-r--r--sci-physics/lammps/Manifest17
-rw-r--r--sci-physics/lammps/lammps-20130526.ebuild105
-rw-r--r--sci-physics/lammps/metadata.xml31
3 files changed, 152 insertions, 1 deletions
diff --git a/sci-physics/lammps/Manifest b/sci-physics/lammps/Manifest
index e5654b327355..2563014e80fe 100644
--- a/sci-physics/lammps/Manifest
+++ b/sci-physics/lammps/Manifest
@@ -1,3 +1,18 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
DIST lammps-26May13.tar.gz 46937785 SHA256 c3568846ac818857e9cb131f16a7298becd4bc26237a8c4423fb403fbf54d6c0 SHA512 71424d8a422424105a95c63bcdbdafca68f97beb0f7e4a4d8ac4df927191ea3003a73c94c19047953d278151bc6d59120cae49fa11b81e2ab23c719dbc26ca01 WHIRLPOOL b150311fef0d55ea4c046d9138512344ba4add646a712cf86ec1569302e7d96d1d166f67b2b6f452d4a0573b501bd3f25d1f4fb175d2daa261530a843da19d05
-EBUILD lammps-20130526.ebuild 2127 SHA256 a6f9624626076abdd9c061c6c384e41795276bdc8a7048b4b15a838d156bfcd8 SHA512 46896acbe8dffc9121fa1a6a7cb0591c52ade4ec592424d3bec7345976248e4d5c05131702270564ed80860aec9ddc31d7d5abdc0f690b40d9a46bfe18f2d6a4 WHIRLPOOL fcc046c23c12baf05b4bfd115e783f5adfbe9a4e787cad2ea7f49fe659ce139ade4e580def5591669bf4e89dca627393a84851780edd1b6067fa65723dd3e817
+EBUILD lammps-20130526.ebuild 2230 SHA256 5fa656c70b0d18abd757feb9c3450e1a5cefab474c0691299ed25588a153654b SHA512 3107ff08a2bcdf737ba92b6484e45902181a7555e729cc19edbc9d23e91b3f395fc238a7ed58e75246038cb0f8c883e76369795c3c1abb437eeb84c86bad0f7b WHIRLPOOL 0827ec81aef1ddd2e4cedf606876482e0c09f590e4595a53d4ad13d2aaf5c075da7731dcb04b7c42caaccf26a059165c76678f56ba383cd659f459245ff5cdd2
+MISC ChangeLog 371 SHA256 2263b6d524300dfd338029557618a699ad7abddf62d04da5f70e27668ea0f9c3 SHA512 95080cfc081841d1d0b93a9238beb1fa1605cdd5d806b83acdbc30132b29a9eaf944bf63691bcb11ed0085061147adc6826c71677755b523da96cd1c7b95b020 WHIRLPOOL f9512e88f4a9249dffc1a845a7da4a1de6c3d51940272a443be2ed0703126653c9d01b1d2fb7358175037073e178e761b2d3b7035b1cd4b79b21bb9828a8320c
MISC metadata.xml 1270 SHA256 47201b2a97ef17ce0e1a926841741e3d8e6f31b603bb5d6d4a435cf219ffbd25 SHA512 67ecfc6aa96c02dba47387c7d6952528b2d661dcee62e02c91d4675ec27da609697111a9847d516e4f11ec8ca6e621bec2120f7491b2f3adde8d6d3e7ec0ef03 WHIRLPOOL 8f544729cf6b75cb27d581ba50ed0207b6ca3ed272f4a234345543c68deb6334378be250266a04043dafb4f3ed2959697d2b6d9789b42e697fab7092eccb6c2f
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.20 (GNU/Linux)
+
+iQEcBAEBCAAGBQJRy37yAAoJEOeBhlrCAAWGqnUH/3kB61Y7CJIu4MbSDvlYp2jK
+T/rxPZJQUrnZIbBJU2fIGrTzYz6YzJOfMakam+liP82WJj0koUySmM2VdeNgkOuO
+SKYFisN7lsvZbSZxM5jclHl+zQ18E/ScEzF+O7dwDHTzzrIr2AtF032odgvkWkgF
+EqD+AbnRC4n7LrK/psLpWdNdN+7jI/wvUZQ1BVZv9FhEN+/0B7TdoMXlHEYFrbJu
+OR04nj2ZbJKRTcUNQLuFyGpdGPGV6/mLg8dvZDf/XNMC3WFs1UwLVPkzrwJA0Cnq
+6mxCH2HGfjsdzovjaFR9TVPqRm9mRKWetYAG/ua11f72aqCPmCtAg8syHinhR88=
+=o4wb
+-----END PGP SIGNATURE-----
diff --git a/sci-physics/lammps/lammps-20130526.ebuild b/sci-physics/lammps/lammps-20130526.ebuild
new file mode 100644
index 000000000000..4793d83055a1
--- /dev/null
+++ b/sci-physics/lammps/lammps-20130526.ebuild
@@ -0,0 +1,105 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-physics/lammps/lammps-20130526.ebuild,v 1.1 2013/06/26 23:53:11 ottxor Exp $
+
+EAPI=5
+
+FORTRAN_NEEDED="package-meam"
+
+inherit eutils fortran-2
+
+convert_month() {
+ case $1 in
+ 01) echo Jan
+ ;;
+ 02) echo Feb
+ ;;
+ 03) echo Mar
+ ;;
+ 04) echo Apr
+ ;;
+ 05) echo May
+ ;;
+ 06) echo Jun
+ ;;
+ 07) echo Jul
+ ;;
+ 08) echo Aug
+ ;;
+ 09) echo Sep
+ ;;
+ 10) echo Oct
+ ;;
+ 11) echo Nov
+ ;;
+ 12) echo Dec
+ ;;
+ *) echo unknown
+ ;;
+ esac
+}
+
+MY_P=${PN}-$((${PV:6:2}))$(convert_month ${PV:4:2})${PV:2:2}
+
+DESCRIPTION="Large-scale Atomic/Molecular Massively Parallel Simulator"
+HOMEPAGE="http://lammps.sandia.gov/"
+SRC_URI="http://lammps.sandia.gov/tars/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="doc examples gzip lammps-memalign mpi package-dipole package-meam package-rigid"
+
+DEPEND="mpi? ( virtual/mpi )"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+lmp_emake() {
+ local LAMMPS_INCLUDEFLAGS="$(usex gzip '-DLAMMPS_GZIP' '')"
+ LAMMPS_INCLUDEFLAGS+="$(usex lammps-memalign ' -DLAMMPS_MEMALIGN' '')"
+
+ # Note: 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)") \
+ 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') \
+ "$@"
+}
+
+src_compile() {
+ # Compile stubs for serial version.
+ use mpi || lmp_emake -C src stubs
+
+ # Build optional packages.
+ if use package-meam; then
+ lmp_emake -C src yes-meam
+ lmp_emake -j1 -C lib/meam -f Makefile.gfortran
+ fi
+ use package-dipole && emake -C src yes-dipole
+ use package-rigid && emake -C src yes-rigid
+
+ # Compile.
+ lmp_emake -C src serial
+}
+
+src_install() {
+ newbin "src/lmp_serial" "lmp"
+ if use examples; then
+ insinto "/usr/share/doc/${PF}"
+ doins -r examples
+ fi
+ dodoc README
+ if use doc; then
+ dodoc doc/Manual.pdf
+ dohtml -r doc/*
+ fi
+}
diff --git a/sci-physics/lammps/metadata.xml b/sci-physics/lammps/metadata.xml
new file mode 100644
index 000000000000..1acfbc73e30b
--- /dev/null
+++ b/sci-physics/lammps/metadata.xml
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <longdescription lang="en">
+ LAMMPS is a classical molecular dynamics code, and an acronym for
+ Large-scale Atomic/Molecular Massively Parallel Simulator.
+
+ LAMMPS has potentials for soft materials (biomolecules, polymers) and
+ solid-state materials (metals, semiconductors) and coarse-grained or
+ mesoscopic systems. It can be used to model atoms or, more generically,
+ as a parallel particle simulator at the atomic, meso, or continuum
+ scale.
+
+ LAMMPS runs on single processors or in parallel using message-passing
+ techniques and a spatial-decomposition of the simulation domain. The
+ code is designed to be easy to modify or extend with new functionality.
+ </longdescription>
+ <use>
+ <flag name="lammps-memalign">Enables the use of the posix_memalign()
+ call instead of malloc() when large chunks or memory are allocated
+ by LAMMPS</flag>
+ <flag name="package-meam">modified EAM potential</flag>
+ <flag name="package-dipole">point dipole particles</flag>
+ <flag name="package-rigid">rigid bodies</flag>
+ </use>
+ <herd>sci-physics</herd>
+ <maintainer>
+ <email>nicolasbock@gmail.com</email>
+ </maintainer>
+</pkgmetadata>
+