summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Bock <nicolasbock@gentoo.org>2014-01-27 18:20:39 +0000
committerNicolas Bock <nicolasbock@gentoo.org>2014-01-27 18:20:39 +0000
commitc33c34e85c45e35e3ab387b9cace0c3e3043f7de (patch)
treee009c512a7c449561ac526d53cf874d490033c9b /sci-physics
parentInclude <stdio.h> for type name "FILE" wrt #499480 by Andreas Proteus (diff)
downloadgentoo-2-c33c34e85c45e35e3ab387b9cace0c3e3043f7de.tar.gz
gentoo-2-c33c34e85c45e35e3ab387b9cace0c3e3043f7de.tar.bz2
gentoo-2-c33c34e85c45e35e3ab387b9cace0c3e3043f7de.zip
sci-physics/lammps: Added new version.
Diffstat (limited to 'sci-physics')
-rw-r--r--sci-physics/lammps/Manifest12
-rw-r--r--sci-physics/lammps/lammps-20140129.ebuild114
2 files changed, 116 insertions, 10 deletions
diff --git a/sci-physics/lammps/Manifest b/sci-physics/lammps/Manifest
index b3dff3ed5656..eb5ea64a4178 100644
--- a/sci-physics/lammps/Manifest
+++ b/sci-physics/lammps/Manifest
@@ -1,20 +1,12 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA256
-
DIST lammps-16Dec13.tar.gz 57769723 SHA256 178fa012ddb7f6b476fa5a951da04e8929bd383c4a5d8ca09c510f73a5644432 SHA512 672c7575f96c2ef03813d161c27757b17282b58f3dea466ae7297394a6519962fe72c8b4a501c193dc41398c7e49f8b1bd1059e8f4ed31600fcc813d88f3aa12 WHIRLPOOL 0976b1a2b49f09b39c2c45f4373291a5da91b0b206d691579f3324c427f4931bd358941fffe890194490ad20b1805ef69be58342b75af33c1cb935942fdf4b0f
DIST lammps-17Dec13.tar.gz 57780188 SHA256 857b577b857b12144823249ba010b4d58029bc8616c1e4a9203fe9be3b551eda SHA512 f8a715e876f68429e9ddbb7ad67f9b9c128e3c6639436ff97f3d37b36eff3e3a51ec3ce8cafb11f526afd43ae30989f783a742393a72e698653f1e47843183bc WHIRLPOOL 5a4478e457a382031ca98cdbed32bfaeb2f37cffc5c1494f46cfbda2f04381ead09c124e0b2b2972b5ef4442bb9e88c5035e72f038833034cf1fe0f826db4bab
DIST lammps-1Dec13.tar.gz 57750078 SHA256 44ef69f31f2066fec31a6b7c9511395c21ead00030d3a5e00efa7eb27e6314d9 SHA512 1c5b0f5e9e2e09243f6ec3ac045021f8506626f8311082fb57314246f25f7ea6bd90dacd3d89db6561d5f0039f6476fd1d9e6d09c57c1bcc63be53ac519aec07 WHIRLPOOL ea3796dbca79f97eb7f9fc5f72972a882357108792f7bb96a8a5e7f3f1614917b452e129143b4e12964e51aeaa80dde6e414ec3f4a89220a3d36d012a829f2d7
DIST lammps-22Jan14.tar.gz 57835694 SHA256 207facd4b2721523dc9b79d4b09b3a5d1760272d234fb2dd3ae0b2b512aebfd8 SHA512 416c35415341b77b958a9df1dd4ccffcb25e437a4516f18f1eaae47a43ce99be5dc63cfc7c160d5c7cd3b923f8136dcde254d35e25abab4bb399b71cb64065ee WHIRLPOOL 7a3a099bcd66a6bfd6dbc19b280eb20c8b53c63fd8df5a2f8d3202a38d55cccffbd04c51e79dc8b0360e6d323fa7f7bc82cdc61d286bfb848521b477a0b7072a
+DIST lammps-29Jan14.tar.gz 57869284 SHA256 37f139d14cc1033f3ce646e33b4f9c86c2aa8b29f015b324183e83727502507d SHA512 451b2293513dbfbfa0bc84e3fe62f0df9a7c0f6c78118044be178c401268eb378d41340f9f8fa45861984766f8b87656e48cc241d462d7bb0556a3e7c634638c WHIRLPOOL 1524a16c63b0de830375ecdc7b3cf88f6ae93614febd675234b2ee1a596cc302f30fdf64d97c59fff9dc06612030bf1d52b59a079dc29c36ea4ef4c55ded75e4
EBUILD lammps-20131201.ebuild 2474 SHA256 925f71e93c35ec790934a90fd62bd7cbc593b4a8eb0c7e760d4200ff4d180112 SHA512 0c446476fb6f9a01e8f6483da2e3ba505406b806603f353905d577bfecbe3a7ed927efd9f6ba40391c47691ebe0a14fa818b65bbf6b4b0c29c694ab6d228f979 WHIRLPOOL 7309933f4f9ddbb55cb1931b2777db04fef22aad50f8029099c2f5b4fd083e1958fbb36353aa3b068d590adb40624821e98fdc4f4dbfc30d484c4e12c54f43ca
EBUILD lammps-20131216.ebuild 2474 SHA256 49f3dbdcf423853793cd8a4021f5417822d2248996a9d1bb71ebf690faeda992 SHA512 c03bac1ac24de176e460f7122990b2176b7d7b4f093498bfd1bb855bd34590cc110286c3eee39a9d7ca3a5bc1eec8dd15e89b026a9923be9b184f117beccd690 WHIRLPOOL f15e43d03f39e76ee6f15428ef74f84bbe682f22e62b54b171c8943bcb0df2f6e0d6c5d4d515e446b7bd76037fb7d4349fbae9a6eef2e91971dfb5c5f947a4ed
EBUILD lammps-20131217.ebuild 2474 SHA256 3599a83ee2758399a24f74653e273ccf3622328227fdd6cdc8296f70081b5e00 SHA512 acfa9044fdb2fc2caf552822a2f96c367d396cbec3647a08c91cf0f2546f1775b402bbda7f2efb708a55795bf08393e9d37334d6afb91bc96fa529ec33ea29d5 WHIRLPOOL 29f044da2bc1dc5c4726774f65221fd212c61ba6100287f276df51a343926e09456883e311a477804f087cb223442f83720aa9d52e1b7bf9d9c38eb4bf448593
EBUILD lammps-20140122.ebuild 2474 SHA256 94a81baba6198d54abe16f846b388520548831a0a0b0341681e7a0923fcd9df6 SHA512 62c953d4fb698f7c4d346da06769619de1851010ad51eb628188402e1d6761197ab104bb73eaf64e721765999775ffe495ad14ab8b456e2023c5e322a8a7dcff WHIRLPOOL e739866b637522c94e7a71f9503aa42c03f8130deac64d56fa24ea1268b4d0f7797cb726562a8c6c82050fb50e008f7bfdac83dc399c2b074d10c826d2ab001e
+EBUILD lammps-20140129.ebuild 2474 SHA256 94a81baba6198d54abe16f846b388520548831a0a0b0341681e7a0923fcd9df6 SHA512 62c953d4fb698f7c4d346da06769619de1851010ad51eb628188402e1d6761197ab104bb73eaf64e721765999775ffe495ad14ab8b456e2023c5e322a8a7dcff WHIRLPOOL e739866b637522c94e7a71f9503aa42c03f8130deac64d56fa24ea1268b4d0f7797cb726562a8c6c82050fb50e008f7bfdac83dc399c2b074d10c826d2ab001e
MISC ChangeLog 1359 SHA256 441a1c8a3b0e6fe5b9e5e814f075413457a351348e7239913b76bd81821962a0 SHA512 3b4381e815911cab58c2e0af282df72be2d49655c1001767183036cba7b8b614e1a068d7e340d175c076de4b366d9ae69468f983c5bb874e9456a89e5cbf2ed1 WHIRLPOOL ba3f7f79c54504bd32fe66672af235a903bf20833b4f9fbd188b6b9a46405ff00519418bd228d7616a4720aa8887894eea7b83207230b31eaff2f7653d433fba
MISC metadata.xml 1271 SHA256 13d0a7560a575fe9a4f48aca305ce4e502015f51f618a7d1220d5350ed3ae7a8 SHA512 acbf9c0171363f84ea55c91e56b8ed72a94c783f837e23efcb0f8aea464eb36caa5a60df44b39fa2f3b00c68b24c5dae48477745ca05d135e353822ebfa41868 WHIRLPOOL 84aecb76dcc915d26ab5729f6eaa582951b95045addf1f3c61961668b4e43d297e671b6ebd06013fc6c2a5a651ebcfb373bd7f60653494947d039a2a196b0de3
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.22 (GNU/Linux)
-
-iEYEAREIAAYFAlLfwQUACgkQf15tZKyRylIV5wCfRwI81dKtSIkOKttWbcr/2Wwp
-jTAAn1u1fcmyxbFjIll7FXPvLDo2IFDm
-=si88
------END PGP SIGNATURE-----
diff --git a/sci-physics/lammps/lammps-20140129.ebuild b/sci-physics/lammps/lammps-20140129.ebuild
new file mode 100644
index 000000000000..518c0e74643c
--- /dev/null
+++ b/sci-physics/lammps/lammps-20140129.ebuild
@@ -0,0 +1,114 @@
+# 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-20140129.ebuild,v 1.1 2014/01/27 18:20:39 nicolasbock 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}-$((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 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"
+
+ local LAMMPS_POTENTIALS="/usr/share/${PF}/potentials"
+ insinto "${LAMMPS_POTENTIALS}"
+ doins potentials/*
+ echo "LAMMPS_POTENTIALS=${LAMMPS_POTENTIALS}" > 99lammps
+ doenvd 99lammps
+
+ if use examples; then
+ local LAMMPS_EXAMPLES="/usr/share/${PF}/examples"
+ insinto "${LAMMPS_EXAMPLES}"
+ doins -r examples/*
+ fi
+
+ dodoc README
+ if use doc; then
+ dodoc doc/Manual.pdf
+ dohtml -r doc/*
+ fi
+}