summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Bock <nicolasbock@gentoo.org>2014-07-03 14:42:45 +0000
committerNicolas Bock <nicolasbock@gentoo.org>2014-07-03 14:42:45 +0000
commitd88e544603778e2a1d7b757c9e85407504b8280a (patch)
treee5d6aaf8eac60222d4db762267ed8da3b67cbee2 /sci-physics
parentQA: move test? conditional from RDEPEND to DEPEND in convertible-1.1.0.0-r1 (diff)
downloadhistorical-d88e544603778e2a1d7b757c9e85407504b8280a.tar.gz
historical-d88e544603778e2a1d7b757c9e85407504b8280a.tar.bz2
historical-d88e544603778e2a1d7b757c9e85407504b8280a.zip
sci-physics/lammps: Version bump to 2014-06-28.
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/Manifest12
-rw-r--r--sci-physics/lammps/lammps-20140628.ebuild188
3 files changed, 201 insertions, 6 deletions
diff --git a/sci-physics/lammps/ChangeLog b/sci-physics/lammps/ChangeLog
index 7d512e73ed6c..da4a3fde3fe4 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.31 2014/06/19 03:34:19 nicolasbock Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-physics/lammps/ChangeLog,v 1.32 2014/07/03 14:42:40 nicolasbock Exp $
+
+*lammps-20140628 (03 Jul 2014)
+
+ 03 Jul 2014; Nicolas Bock <nicolasbock@gentoo.org> +lammps-20140628.ebuild:
+ sci-physics/lammps: Version bump to 2014-06-28.
*lammps-20140614 (19 Jun 2014)
diff --git a/sci-physics/lammps/Manifest b/sci-physics/lammps/Manifest
index 26e04fc191f8..4a1da1f8c1d6 100644
--- a/sci-physics/lammps/Manifest
+++ b/sci-physics/lammps/Manifest
@@ -10,6 +10,7 @@ DIST lammps-14Mar14.tar.gz 58562398 SHA256 679378e2cb2b44a93be671ee7c0f14f297c59
DIST lammps-1Feb14.tar.gz 57811478 SHA256 2d01ca4f2c52c18a9a95866f558b3f3857b22662415cb44fa16a5be4dd5bfe44 SHA512 aa84766d19d7f9f753792d6c3a9ba9b37faa671b4ae06ae89be6d3485a064326c79dc351cb784e6a03f5e4e046885a791274a64899ef117dd395e583eac13f3c WHIRLPOOL 4921525762c5842fe7bb96420db26553bf2ea3d91bfda52d2a9fad57f205487fe772c878d83e5b4ae146507e3a90509a4ff0b5628ebfda9a5dde82b8b3a95b3b
DIST lammps-20Mar14.tar.gz 58582788 SHA256 cb2fce0cfb0066833bfe2ff5d9a3b55e83bf171b794abadd8eb755f14d05e302 SHA512 bbb5d92bfd8357137f8b85a4fe459c1fe0c8fbd84d3d4267b2109e56673c651e37b92b672762a91c9b535115810fbd542a9d8c4288e45328e23e4b5001258549 WHIRLPOOL b9600147aac14d8b0ad5437f70da042acc0895e116cbd819bc3031c26b7a8f2de34298d6ef8b49a169c475799537c3e7604f9b9788bb2f65f271dc46c56a7c7b
DIST lammps-26Feb14.tar.gz 58551714 SHA256 3dd65b7396d7e30570c6070518cb78d235273acda180f65a939aa6c95c7c1412 SHA512 d8ea6ae308691cd5452265db213146fcac39a0c4139f248575e5eea394ea0c2079936a46636fcea38dcb7d68c9457f58c477fa2ee04264df628ec94a1c3c8182 WHIRLPOOL 68b40a8ddc15bac55b6295d07ef91b63755ec75707aa77d6a8654ff0ab42ad3c862884861cddc8b1cece9fe54aa153b71e9e474368455921e8c39b2d5129f94d
+DIST lammps-28Jun14.tar.gz 64598325 SHA256 3dc8f415f076c5b1563e25c06ddf360a7234c0b3428c561764a13618f80fb233 SHA512 568a00249dd88d0ad94714d2b388855376d020a34b546f9f54142b761e95515c1fce44bbbc9db2538a5a9b8335b8ac9e2905b875e954da18831087a3021df0e2 WHIRLPOOL 9d283de197c6e7216c60ed3f34bcd0a55baab925ab4d025717f1bee8a7e8b668c67bf008a9a9a807361c8f5ade36e362afdf7ac9ef6c3ed6d856389591483354
DIST lammps-4Mar14.tar.gz 58554657 SHA256 963a486c9d0dc798d4986bd8d603d27f27042d5080320b584006c767cf3d787e SHA512 c2c2e2fe60d44ee8676753dac60166a935c3f40a3f89dc322b058090d9193c33e1682296d78add5dfc5f5b3d0796155a025c6855818ca4735960fbf2c8922ca2 WHIRLPOOL 2970c824008baa745d79b4e2f6c8d6d2ca96dbbde2be7df577cd97eef86276cd2573ab91345c64fde84aed5a6e1dc9abc6bbe7a869d5a54197c9e3fe53d19775
EBUILD lammps-20140201.ebuild 2467 SHA256 dabebb7bbd33a22023f218fea5331d68b2eba0666712dd080b13bfa630c4529c SHA512 944ce71a43d978909c5c0b129072cf7532cb10db4c5e6ac24cfbf85afcecac4ca9bbfafe4e147fc429c94aeecd7b4765a821c1a538267b75a045ffa1f41ebd39 WHIRLPOOL 113ebc1905299fdae5b6b5f4f57fd862e920ead05afd4f5850e341b6266f9a1a14a79d7f627d6915454b748960718ee08bfb84eea0ee1f03ec21fc28f8e73bd3
EBUILD lammps-20140212.ebuild 3576 SHA256 c456eafcf1392e2c8cffe982cbb9f4d64e574bda3e1a9e91a8fbaf47124813a7 SHA512 c6ad5e506320af87cd8f270d494271936e3e7582ec5b7c6162cb8da15e2409747357959c9187fa047b806c8600b117cfafb1a25eca4fde845075b53bb81fc5c3 WHIRLPOOL bd8fb9a8ab1b624ae2645441a84af622371609fc5210678f06f711db510b1f5ad87959f5fa3235789399294fa3301882a7a5da273c8b13e64f72fa24c61d9ed9
@@ -23,12 +24,13 @@ EBUILD lammps-20140312.ebuild 4149 SHA256 ab5c63974c020f573b3f6d51b237acb1b69732
EBUILD lammps-20140314.ebuild 4149 SHA256 96eb57bbe13d1d51222fa1edd9827c79c00e7d2a7f16b3fdf0b0774e9b2c1024 SHA512 627984a4b1c63039c3da6e5eeb7bec67eee548562f661f30ae0114a02bc0cf9f5722478dbfdb630375c1873432d30df6fcab75668b410a27d9f7535a244559ed WHIRLPOOL c9e89e0af049334ddd082bae001102a11bc5f5a468d15762270b03977254450ac3ee52fa5f225fbd5d07aedb0ef7bf4143c1d2680be586038549fe410fb88e67
EBUILD lammps-20140320.ebuild 4625 SHA256 48c1ad720a757c0a705a2d5bd4606f5435a0d3e14e6bc4a7360f075369cde980 SHA512 c122dcc05362eba440e532c3d55435cc4493af6669638ed897171f6a3df60eda9ba49a6251f2b9959f0fe32361eeeddf90f1b4c589ec7f07529c3609883325af WHIRLPOOL f652faa83734b0f65dad4f836efbe3378db8fb837e3a0fc109e410fbce2864f1ac1c907f69d8a9ed0a70fca5198ddf5dcbb9e1b2035f1cb327fbea6251bbafc1
EBUILD lammps-20140614.ebuild 4687 SHA256 0aa9352004a2628c6d9fe1f5389750e4f0e825a608382846196bbf54aeceeff9 SHA512 79e1c338af61634db76905c93e6d477c9388d2944a3c1a62a9285ef8225e506a356bbc2e38305adcd849c70a5b46ccd947755d2213fd52de5af579e2134461b7 WHIRLPOOL 9b5f94236f7f3296a70bedd2a2de84131f841609ec346069c35a2cce4ce7f43d1ec44b20fc8f740a0e04497fd82c6b96ed5d6fb5cab1b6493af0ff195eb5e8a7
-MISC ChangeLog 5771 SHA256 27f32ec00af78eaa11e28892f48e67c734bd7dcb3363f2ba6ebba5799e16f88d SHA512 99e7ac6f8e388cd3f66a43cd09a3ae1883ba9a451baa8eeddab489c3b2a2ef1205015b58fe2dc2f2788898cf0d7b6bcba25d74d84e57856ca51c0130d3db7860 WHIRLPOOL ba42687878dad5b4b3dfcc2300a28b588716bbd319607466d293f4945f79bfbc1128503a0e512437a06e345f49b18dc60fd1fd93f424fb4a7698de05877a2db8
+EBUILD lammps-20140628.ebuild 4687 SHA256 3155ae3ca01dda584e43d4d1dc9f685cee0f60abd0153aaaa9e3329a888b2d8d SHA512 4dddfeae6156c1cfacf7f6992f203e614c93c2a2f223567a6b04280cf895c21567fa300152b328623b642458dd5fcc814ce41c179a736288c1ce508dc12ae800 WHIRLPOOL e96b02d538dad49bcf5e1b1df06f5fd1c7d6e67e7ba71dd2e79cce11b36a3f562b2f92a0f322052d3c3e4f3a4a5e702d1cbdd6749c193d2481a5620331b65993
+MISC ChangeLog 5932 SHA256 bc341cfd77f08414cf05a0ae6a73a318b4ab4e27505369bf5faf9cb1383f1d28 SHA512 bb75c368f9baa00bde2ff94534fcbf939e88d3793d00a56e5fdaf3f4008ee164d61e07902fc39dcea5d8d9ca4d047eeb43d6c315433e7aa503db6f34f1a6eac9 WHIRLPOOL 6c85039f345011227b18d5d29f2038812dceb64f9c5ba467737ae32159c2504d59d74541ade296b606ff1293dbf174d19959719bd44dc549318a46a5dd65ec0d
MISC metadata.xml 1584 SHA256 4d06db7368b155db1484a6c0792a366b37541260e700248ccf542e5fe28ffbc7 SHA512 b0bbd1fdd37e35ccc0cd4d34bb9afa09910b56a14daa078148aefcce4dc13408c1a5d5a40b865a37bc917764f5b91e266256b9ca83e0f8009859d955b68fe6a8 WHIRLPOOL ff65f1a03910b4fa5758d5537d898c733971e5f339dcd8150bc1596dfcf490b4de2be7f520405a47274e1e9827eddc3d8a1324f2f169d575d1e4584dc01e9787
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.22 (GNU/Linux)
+Version: GnuPG v2
-iEYEAREIAAYFAlOiWlEACgkQf15tZKyRylIM6ACfdTtxRMOh1NKHvFIklJKy9BrO
-lrcAnRp2ZnNB9qt+k/gglZiwdvt1Uhzq
-=xR3j
+iEYEAREIAAYFAlO1a+QACgkQf15tZKyRylLIFQCeLtx2twrjtnDUv1vMHPzwhBPw
+b60AnAipCl+/gK+XJbG7s2poY/+/ArdP
+=+3+K
-----END PGP SIGNATURE-----
diff --git a/sci-physics/lammps/lammps-20140628.ebuild b/sci-physics/lammps/lammps-20140628.ebuild
new file mode 100644
index 000000000000..e1f8b0aeb71a
--- /dev/null
+++ b/sci-physics/lammps/lammps-20140628.ebuild
@@ -0,0 +1,188 @@
+# 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-20140628.ebuild,v 1.1 2014/07/03 14:42:40 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 ~x86"
+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-asphere
+ emake -C src yes-body
+ emake -C src yes-class2
+ emake -C src yes-colloid
+ emake -C src yes-dipole
+ emake -C src yes-fld
+ #emake -C src yes-gpu
+ emake -C src yes-granular
+ # Need OpenKIM external dependency.
+ #emake -C src yes-kim
+ # Need Kokkos external dependency.
+ #emake -C src yes-kokkos
+ emake -C src yes-kspace
+ emake -C src yes-manybody
+ emake -C src yes-mc
+ lmp_emake -C src yes-meam
+ lmp_emake -j1 -C lib/meam -f Makefile.gfortran
+ emake -C src yes-misc
+ emake -C src yes-molecule
+ #emake -C src yes-mpiio
+ emake -C src yes-opt
+ emake -C src yes-peri
+ #emake -C src yes-poems
+ #lmp_emake -j1 -C lib/poems -f Makefile.g++
+ emake -C src yes-reax
+ lmp_emake -j1 -C lib/reax -f Makefile.gfortran
+ emake -C src yes-replica
+ emake -C src yes-rigid
+ emake -C src yes-shock
+ emake -C src yes-srd
+ emake -C src yes-voronoi
+ emake -C src yes-xtc
+
+ 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
+}