public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Nicolas Bock" <nicolasbock@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: sci-physics/lammps/
Date: Wed,  3 Jul 2013 16:41:11 +0000 (UTC)	[thread overview]
Message-ID: <1372865150.9c9f63650c60fe29306477afb94ac5b66b808e90.nicolasbock@gentoo> (raw)

commit:     9c9f63650c60fe29306477afb94ac5b66b808e90
Author:     Nicolas Bock <nicolasbock <AT> gmail <DOT> com>
AuthorDate: Wed Jul  3 15:25:50 2013 +0000
Commit:     Nicolas Bock <nicolasbock <AT> gmail <DOT> com>
CommitDate: Wed Jul  3 15:25:50 2013 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=9c9f6365

Version bump to 1-Jul-2013.

Package-Manager: portage-2.2.0_alpha186

---
 sci-physics/lammps/ChangeLog              |   9 +++
 sci-physics/lammps/lammps-20130701.ebuild | 105 ++++++++++++++++++++++++++++++
 sci-physics/lammps/metadata.xml           |  31 +++++++++
 3 files changed, 145 insertions(+)

diff --git a/sci-physics/lammps/ChangeLog b/sci-physics/lammps/ChangeLog
new file mode 100644
index 0000000..2f4ea9e
--- /dev/null
+++ b/sci-physics/lammps/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for sci-physics/lammps
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*lammps-20130701 (03 Jul 2013)
+
+  03 Jul 2013; Nicolas Bock <nicolasbock@gmail.com> +lammps-20130701.ebuild,
+  +metadata.xml:
+  Version bump to 1-Jul-2013.

diff --git a/sci-physics/lammps/lammps-20130701.ebuild b/sci-physics/lammps/lammps-20130701.ebuild
new file mode 100644
index 0000000..4793d83
--- /dev/null
+++ b/sci-physics/lammps/lammps-20130701.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 0000000..1acfbc7
--- /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>
+


             reply	other threads:[~2013-07-03 16:41 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-03 16:41 Nicolas Bock [this message]
  -- strict thread matches above, loose matches on Subject: below --
2014-02-06 19:56 [gentoo-commits] proj/sci:master commit in: sci-physics/lammps/ Nicolas Bock
2014-02-05  4:38 Nicolas Bock
2014-02-05  4:36 Nicolas Bock
2014-02-01 23:05 Nicolas Bock
2013-12-29  0:31 Justin Lecher
2013-12-22  0:13 Christoph Junghans
2013-12-13 19:12 Nicolas Bock
2013-12-04 19:04 Nicolas Bock
2013-11-22 19:33 Nicolas Bock
2013-11-11 21:48 Nicolas Bock
2013-10-16  4:49 Nicolas Bock
2013-09-27 15:17 Nicolas Bock
2013-09-18 13:51 Nicolas Bock
2013-09-02 18:17 Nicolas Bock
2013-08-13 22:20 Nicolas Bock
2013-07-16 21:04 Nicolas Bock
2013-07-09 20:55 Nicolas Bock
2013-07-09 20:55 Nicolas Bock
2013-06-27  0:01 Christoph Junghans
2013-06-26 18:33 Nicolas Bock
2013-06-26 16:31 Nicolas Bock
2013-06-26  5:04 Christoph Junghans
2013-05-28 20:06 Nicolas Bock
2013-05-28 19:53 Nicolas Bock
2013-05-28 19:46 Nicolas Bock
2013-05-16 21:22 Nicolas Bock
2013-05-16 21:22 Nicolas Bock
2013-05-10 22:05 Nicolas Bock
2013-05-10 21:54 Nicolas Bock
2013-05-10 18:31 Nicolas Bock
2013-05-10 17:46 Nicolas Bock
2013-05-10 17:34 Nicolas Bock
2013-05-10 16:06 Nicolas Bock

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1372865150.9c9f63650c60fe29306477afb94ac5b66b808e90.nicolasbock@gentoo \
    --to=nicolasbock@gmail.com \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox