summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Bock <nicolasbock@gentoo.org>2014-03-15 20:17:24 +0000
committerNicolas Bock <nicolasbock@gentoo.org>2014-03-15 20:17:24 +0000
commitbe56e60b13c63383a598adc51c357e3c3f2e1c2d (patch)
tree5eb7edd0b965bf5dade87558931aa77b0e422124 /sci-physics
parentadd multilib support (diff)
downloadhistorical-be56e60b13c63383a598adc51c357e3c3f2e1c2d.tar.gz
historical-be56e60b13c63383a598adc51c357e3c3f2e1c2d.tar.bz2
historical-be56e60b13c63383a598adc51c357e3c3f2e1c2d.zip
sci-physics/lammps-20140314: Version bump.
Package-Manager: portage-2.2.8-r1/cvs/Linux x86_64 Manifest-Sign-Key: 0xAC91CA52
Diffstat (limited to 'sci-physics')
-rw-r--r--sci-physics/lammps/ChangeLog7
-rw-r--r--sci-physics/lammps/Manifest10
-rw-r--r--sci-physics/lammps/lammps-20140314.ebuild168
3 files changed, 180 insertions, 5 deletions
diff --git a/sci-physics/lammps/ChangeLog b/sci-physics/lammps/ChangeLog
index 16eee32aa4e2..152492ea4355 100644
--- a/sci-physics/lammps/ChangeLog
+++ b/sci-physics/lammps/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sci-physics/lammps
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-physics/lammps/ChangeLog,v 1.27 2014/03/12 23:29:30 nicolasbock Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-physics/lammps/ChangeLog,v 1.28 2014/03/15 20:17:20 nicolasbock Exp $
+
+*lammps-20140314 (15 Mar 2014)
+
+ 15 Mar 2014; Nicolas Bock <nicolasbock@gentoo.org> +lammps-20140314.ebuild:
+ sci-physics/lammps-20140314: Version bump.
*lammps-20140312 (12 Mar 2014)
diff --git a/sci-physics/lammps/Manifest b/sci-physics/lammps/Manifest
index c5e1082b006c..058bd32a801a 100644
--- a/sci-physics/lammps/Manifest
+++ b/sci-physics/lammps/Manifest
@@ -5,6 +5,7 @@ DIST lammps-10Mar14.tar.gz 58558593 SHA256 019374cd421451e1e8bb03da4626f0d7c8789
DIST lammps-12Feb14.tar.gz 58143004 SHA256 31f3dcc33524d56405c06306c4ef02fc4d41d72dc0b7ac3cd9ef033f42e08c3d SHA512 525b592e3b4779fffa7a96a92d6972b1bfed8b3727746b6065c9743628421aaf4fa8ba6e72d891c2c6f016f776b9155bdff9b8dfeb8ed4dec164b334253255a2 WHIRLPOOL e15a2b56ee2918a478c979239565ad01346b60d026f2a5a6051b339f08e9328c0940767843b7fd08aaa225d097fe254d0cebbd07902671404874b9d63c91916f
DIST lammps-12Mar14.tar.gz 58562523 SHA256 7575cdf8d2edf0429804d2d1d523c24921fe4e9eb4276bcfc5bb3f3cc480ba41 SHA512 a91e9ce5f0de0c16383b4f4d53c1ada2dca1018458c0e67a91a70df8a50cb14a52dc1e222d97af8119ad0d7c75bb01052d10be00b330ba310f45d76a5706ce49 WHIRLPOOL fb755fe7cf756c54a8843eefc5fc6420006ef6903dc049d88ca145432e8bb3eb4ac8b83360d8d138d02c2fbd967c889d7d7aaf79ee78cce736e54fcb5276155f
DIST lammps-14Feb14.tar.gz 58547063 SHA256 188aa10c8984457e5559c30396ef56a0af51c69242b6b1ac10afa29b11ace4d9 SHA512 9fea6054e507eebc3eb41e7a6685d91bd58afd4b4c4eac692bf21bfadf48d34dfe6143d1775be89badfcb3ef5ec5a81e15c06797ac055cdf149f8139c868a0f7 WHIRLPOOL 7460b93649e9c3a6e0648e6368291205e97796b536a7b51ef59766d9db65ef7b8c2a43f24194980762c9c5b2b896d75b13c14e1350ea344fc46075269c87b098
+DIST lammps-14Mar14.tar.gz 58562398 SHA256 679378e2cb2b44a93be671ee7c0f14f297c593511da72e70933e1349131abd26 SHA512 0289dc16795b89c2167eb5a9be0243b56a33ee1976dae6ce57a486ffe574cd12a6904bd36e76983e45126a3356b8d09407f44afc1c1ef0f28af76500901f3e7a WHIRLPOOL 54a6d99806fc5472cd13e26a506f2595cb45187d5481c99208747f8357461f2e9dfb3654804d3f71f8a3d1a37eb8d82688bd970a61e27ad951eab1360239f75b
DIST lammps-1Feb14.tar.gz 57811478 SHA256 2d01ca4f2c52c18a9a95866f558b3f3857b22662415cb44fa16a5be4dd5bfe44 SHA512 aa84766d19d7f9f753792d6c3a9ba9b37faa671b4ae06ae89be6d3485a064326c79dc351cb784e6a03f5e4e046885a791274a64899ef117dd395e583eac13f3c WHIRLPOOL 4921525762c5842fe7bb96420db26553bf2ea3d91bfda52d2a9fad57f205487fe772c878d83e5b4ae146507e3a90509a4ff0b5628ebfda9a5dde82b8b3a95b3b
DIST lammps-26Feb14.tar.gz 58551714 SHA256 3dd65b7396d7e30570c6070518cb78d235273acda180f65a939aa6c95c7c1412 SHA512 d8ea6ae308691cd5452265db213146fcac39a0c4139f248575e5eea394ea0c2079936a46636fcea38dcb7d68c9457f58c477fa2ee04264df628ec94a1c3c8182 WHIRLPOOL 68b40a8ddc15bac55b6295d07ef91b63755ec75707aa77d6a8654ff0ab42ad3c862884861cddc8b1cece9fe54aa153b71e9e474368455921e8c39b2d5129f94d
DIST lammps-4Mar14.tar.gz 58554657 SHA256 963a486c9d0dc798d4986bd8d603d27f27042d5080320b584006c767cf3d787e SHA512 c2c2e2fe60d44ee8676753dac60166a935c3f40a3f89dc322b058090d9193c33e1682296d78add5dfc5f5b3d0796155a025c6855818ca4735960fbf2c8922ca2 WHIRLPOOL 2970c824008baa745d79b4e2f6c8d6d2ca96dbbde2be7df577cd97eef86276cd2573ab91345c64fde84aed5a6e1dc9abc6bbe7a869d5a54197c9e3fe53d19775
@@ -17,12 +18,13 @@ EBUILD lammps-20140226.ebuild 4202 SHA256 ba599d5ddd8bce50b1582096bf2241590ec173
EBUILD lammps-20140304.ebuild 4202 SHA256 369265a9f276092833b8b11f7d3e938307dd54468cabdbfc210108945d600991 SHA512 e86a550a9829dd017204afc056d15b1501ebdd59ed85e7f3aeaef26462c047518a72cf7c55a66076c8338ebe21758811a90bad232b267a7dc4a95e3ec5e8b534 WHIRLPOOL b4b3a3dbc984a0c0a6bc416cce2c1f2e11f22d8accc5007db957edc020011d57aaf457c0f91fb261560360bdbf10fa286785389c6fca3eb53b7b696875334db4
EBUILD lammps-20140310.ebuild 4230 SHA256 ac5aa1bf973aa3ca068fd27a387e80e01758b1cd1fbce1fba730ba2694ba987d SHA512 8d907a4200f0d5989497ef329365868f4999207089f6f61122f80f1643174a26d069b2b80c140bda0c816cd490bb0dc3fd3dffbb4c7338d9fd68b1319273acbd WHIRLPOOL 55ea36b4d956bc2030fb8d4a8cc992549f02410bfaf2780f32849f9f3690e691aaa3f8c4772464e0219f6f30f5c7a9f3d64855eefd4357b02d09ee4ebe568561
EBUILD lammps-20140312.ebuild 4149 SHA256 ab5c63974c020f573b3f6d51b237acb1b69732ab178c8d183e48a6189035c7f9 SHA512 10d815fdcae8363e45bf53359c397e161e9dd07c2ab02b596c9c6e0fe09a1743a301f99a5055bd8b9893a2c6e3ea7c129532ebe2669229b8da6900186eb233c9 WHIRLPOOL 6a919eecd4c77c5cc1564799a2871e932ca2b252f831b2726c529a29ad78c6bfe8d0cc87baabbbbaae470ef137a6771e34185a4608066b1b60c52f452076381d
-MISC ChangeLog 5196 SHA256 b1e15c75d6080be3453cb12f9e21ede930e401106f3414de6bbe15f95a8d3d54 SHA512 56cddb5002b644b43447bef364f9261a427d0eb7eb8a2baf1c8dab7e102c9143a65bacbb30b6f862ec06cd32423925a549ada37c28dfc5586febb17a1fa59f12 WHIRLPOOL cf1166f81fd2a58ba1658b2ab0d17c544ff5e3ec282aec3ed55115779f39dbf1fd6e88bc268b0fbbce3b3cf4bd471f1309ab79adf95e0fe94837cd987ee281ef
+EBUILD lammps-20140314.ebuild 4149 SHA256 30faf6303d7b93971e8e3125efecd5a3d40cd947a88eeab55aedd4b646d4352f SHA512 4f9753d133a7a55ea20f39d9827b1678189bb359af7db23d3ee8b3196b278d107f9288ec49afa04f9b4e72dc1c9f158f6241ee15468e8b9d082bbe3e26cb4a88 WHIRLPOOL 74bbbc1b7adbc9ba39cd57560dd3d81d1a1b84baf70d6021d6be20c58a9456d009f5c0dd12764d8fd32e2c591bfea820d48acd1feb694bf2abb49c38e2b1c735
+MISC ChangeLog 5352 SHA256 0a676b694da32d1ab87034d129b20ec995b6638a714c2c6d3251ce59b00f9fa6 SHA512 9b7aed10fca53e2735cc3b79a1a4175b4dcf6c3a4a6bd24af43e02c3dabcbcf919bd7dc95cc0b51cba282428d57ec4c5c5be2ff3de15c3282a68203a67d456e8 WHIRLPOOL 70a916ec63f750a31fe481ad63596dabe7192f3d0c87488ca970f48934261f762cae19179b1e119d7b5f7582dd3dfc6c0f118bccee99800aee824d51424879f5
MISC metadata.xml 1584 SHA256 4d06db7368b155db1484a6c0792a366b37541260e700248ccf542e5fe28ffbc7 SHA512 b0bbd1fdd37e35ccc0cd4d34bb9afa09910b56a14daa078148aefcce4dc13408c1a5d5a40b865a37bc917764f5b91e266256b9ca83e0f8009859d955b68fe6a8 WHIRLPOOL ff65f1a03910b4fa5758d5537d898c733971e5f339dcd8150bc1596dfcf490b4de2be7f520405a47274e1e9827eddc3d8a1324f2f169d575d1e4584dc01e9787
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
-iEYEAREIAAYFAlMg7d4ACgkQf15tZKyRylLjuQCeKnrNNkpHEeCD8naYSnzktlQn
-YV0AniQgVq6ONLzrYkSohxUce9dfGkWu
-=yTn0
+iEYEAREIAAYFAlMktVMACgkQf15tZKyRylJUxwCfVVcppFGEB/G4kPhOIu/ZvJiw
+oIMAnRzFx1wRVjYk4jMLtSKQLVLMiiQr
+=cylR
-----END PGP SIGNATURE-----
diff --git a/sci-physics/lammps/lammps-20140314.ebuild b/sci-physics/lammps/lammps-20140314.ebuild
new file mode 100644
index 000000000000..fe128929141c
--- /dev/null
+++ b/sci-physics/lammps/lammps-20140314.ebuild
@@ -0,0 +1,168 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-physics/lammps/lammps-20140314.ebuild,v 1.1 2014/03/15 20:17:20 nicolasbock Exp $
+
+EAPI=5
+
+inherit eutils fortran-2 multilib
+
+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}-$((10#${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 static-libs"
+
+DEPEND="
+ mpi? ( virtual/mpi )
+ sci-libs/voro++
+ "
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+lmp_emake() {
+ local LAMMPS_INCLUDEFLAGS
+ LAMMPS_INCLUDEFLAGS="$(usex gzip '-DLAMMPS_GZIP' '')"
+ LAMMPS_INCLUDEFLAGS+="$(usex lammps-memalign ' -DLAMMPS_MEMALIGN' '')"
+
+ # 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_prepare() {
+ # Fix inconsistent use of SHFLAGS.
+ sed -i -e 's:$(CCFLAGS):$(CCFLAGS) -fPIC:' src/STUBS/Makefile || die
+ sed -i -e 's:$(F90FLAGS):$(F90FLAGS) -fPIC:' lib/meam/Makefile.gfortran || die
+ sed -i -e 's:$(F90FLAGS):$(F90FLAGS) -fPIC:' lib/reax/Makefile.gfortran || die
+ sed -i \
+ -e 's:voronoi_SYSINC\s\+=.*$:voronoi_SYSINC = -I/usr/include/voro++:' \
+ -e 's:voronoi_SYSPATH\s\+=.*$:voronoi_SYSPATH =:' \
+ src/VORONOI/Makefile.lammps || die
+
+ # Fix missing .so name.
+ sed -i \
+ -e 's:SHLIBFLAGS\s\+=\s\+:SHLIBFLAGS = -Wl,-soname,liblammps.so.0 :' \
+ src/MAKE/Makefile.serial || die
+
+ # Fix makefile in tools.
+ sed -i \
+ -e 's:g++:$(CXX) $(CXXFLAGS):' \
+ -e 's:gcc:$(CC) $(CCFLAGS):' \
+ -e 's:ifort:$(FC) $(FCFLAGS):' \
+ tools/Makefile || die
+}
+
+src_compile() {
+ # Compile stubs for serial version.
+ use mpi || lmp_emake -C src stubs
+
+ # Build packages
+ emake -C src yes-dipole
+ emake -C src yes-kspace
+ emake -C src yes-mc
+ lmp_emake -C src yes-meam
+ lmp_emake -j1 -C lib/meam -f Makefile.gfortran
+ emake -C src yes-reax
+ emake -C src yes-replica
+ lmp_emake -j1 -C lib/reax -f Makefile.gfortran
+ emake -C src yes-rigid
+ emake -C src yes-shock
+ emake -C src yes-xtc
+ emake -C src yes-voronoi
+
+ if use static-libs; then
+ # Build static library.
+ lmp_emake -C src makelib
+ lmp_emake -C src -f Makefile.lib serial
+ fi
+
+ # Build shared library.
+ lmp_emake -C src makeshlib
+ lmp_emake -C src -f Makefile.shlib serial
+
+ # Compile main executable.
+ lmp_emake -C src serial
+
+ # Compile tools.
+ emake -C tools binary2txt chain micelle2d data2xmovie
+}
+
+src_install() {
+ use static-libs && newlib.a src/liblammps_serial.a liblammps.a
+ newlib.so src/liblammps_serial.so liblammps.so.0.0.0
+ dosym liblammps.so.0.0.0 /usr/$(get_libdir)/liblammps.so
+ dosym liblammps.so.0.0.0 /usr/$(get_libdir)/liblammps.so.0
+ newbin src/lmp_serial lmp
+ dobin tools/binary2txt
+ # Don't forget to add header files of optional packages as they are added
+ # to this ebuild. There may also be .mod files from Fortran based
+ # packages.
+ insinto "/usr/include/${PN}"
+ doins -r src/*.h lib/meam/*.mod
+
+ local LAMMPS_POTENTIALS="usr/share/${PN}/potentials"
+ insinto "/${LAMMPS_POTENTIALS}"
+ doins potentials/*
+ echo "LAMMPS_POTENTIALS=${EROOT}${LAMMPS_POTENTIALS}" > 99lammps
+ doenvd 99lammps
+
+ if use examples; then
+ local LAMMPS_EXAMPLES="/usr/share/${PN}/examples"
+ insinto "${LAMMPS_EXAMPLES}"
+ doins -r examples/*
+ fi
+
+ dodoc README
+ if use doc; then
+ dodoc doc/Manual.pdf
+ dohtml -r doc/*
+ fi
+}