From: | "Nicolas Bock (nicolasbock)" <nicolasbock@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in sci-physics/lammps: lammps-20140122.ebuild ChangeLog |
Date: | Wed, 22 Jan 2014 13:00:54 |
Message-Id: | 20140122130049.865632004C@flycatcher.gentoo.org |
1 | nicolasbock 14/01/22 13:00:49 |
2 | |
3 | Modified: ChangeLog |
4 | Added: lammps-20140122.ebuild |
5 | Log: |
6 | sci-physics/lammps: Version bump. |
7 | |
8 | (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key AC91CA52) |
9 | |
10 | Revision Changes Path |
11 | 1.7 sci-physics/lammps/ChangeLog |
12 | |
13 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/lammps/ChangeLog?rev=1.7&view=markup |
14 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/lammps/ChangeLog?rev=1.7&content-type=text/plain |
15 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/lammps/ChangeLog?r1=1.6&r2=1.7 |
16 | |
17 | Index: ChangeLog |
18 | =================================================================== |
19 | RCS file: /var/cvsroot/gentoo-x86/sci-physics/lammps/ChangeLog,v |
20 | retrieving revision 1.6 |
21 | retrieving revision 1.7 |
22 | diff -u -r1.6 -r1.7 |
23 | --- ChangeLog 2 Jan 2014 18:10:16 -0000 1.6 |
24 | +++ ChangeLog 22 Jan 2014 13:00:49 -0000 1.7 |
25 | @@ -1,6 +1,11 @@ |
26 | # ChangeLog for sci-physics/lammps |
27 | # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
28 | -# $Header: /var/cvsroot/gentoo-x86/sci-physics/lammps/ChangeLog,v 1.6 2014/01/02 18:10:16 nicolasbock Exp $ |
29 | +# $Header: /var/cvsroot/gentoo-x86/sci-physics/lammps/ChangeLog,v 1.7 2014/01/22 13:00:49 nicolasbock Exp $ |
30 | + |
31 | +*lammps-20140122 (22 Jan 2014) |
32 | + |
33 | + 22 Jan 2014; Nicolas Bock <nicolasbock@g.o> +lammps-20140122.ebuild: |
34 | + sci-physics/lammps: Version bump. |
35 | |
36 | 02 Jan 2014; Nicolas Bock <nicolasbock@g.o> -lammps-20130526.ebuild: |
37 | sci-physics/lammps: Removing old version. |
38 | |
39 | |
40 | |
41 | 1.1 sci-physics/lammps/lammps-20140122.ebuild |
42 | |
43 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/lammps/lammps-20140122.ebuild?rev=1.1&view=markup |
44 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/lammps/lammps-20140122.ebuild?rev=1.1&content-type=text/plain |
45 | |
46 | Index: lammps-20140122.ebuild |
47 | =================================================================== |
48 | # Copyright 1999-2014 Gentoo Foundation |
49 | # Distributed under the terms of the GNU General Public License v2 |
50 | # $Header: /var/cvsroot/gentoo-x86/sci-physics/lammps/lammps-20140122.ebuild,v 1.1 2014/01/22 13:00:49 nicolasbock Exp $ |
51 | |
52 | EAPI=5 |
53 | |
54 | FORTRAN_NEEDED="package-meam" |
55 | |
56 | inherit eutils fortran-2 |
57 | |
58 | convert_month() { |
59 | case $1 in |
60 | 01) echo Jan |
61 | ;; |
62 | 02) echo Feb |
63 | ;; |
64 | 03) echo Mar |
65 | ;; |
66 | 04) echo Apr |
67 | ;; |
68 | 05) echo May |
69 | ;; |
70 | 06) echo Jun |
71 | ;; |
72 | 07) echo Jul |
73 | ;; |
74 | 08) echo Aug |
75 | ;; |
76 | 09) echo Sep |
77 | ;; |
78 | 10) echo Oct |
79 | ;; |
80 | 11) echo Nov |
81 | ;; |
82 | 12) echo Dec |
83 | ;; |
84 | *) echo unknown |
85 | ;; |
86 | esac |
87 | } |
88 | |
89 | MY_P=${PN}-$((10#${PV:6:2}))$(convert_month ${PV:4:2})${PV:2:2} |
90 | |
91 | DESCRIPTION="Large-scale Atomic/Molecular Massively Parallel Simulator" |
92 | HOMEPAGE="http://lammps.sandia.gov/" |
93 | SRC_URI="http://lammps.sandia.gov/tars/${MY_P}.tar.gz" |
94 | |
95 | LICENSE="GPL-2" |
96 | SLOT="0" |
97 | KEYWORDS="~amd64" |
98 | IUSE="doc examples gzip lammps-memalign mpi package-dipole package-meam package-rigid" |
99 | |
100 | DEPEND="mpi? ( virtual/mpi )" |
101 | RDEPEND="${DEPEND}" |
102 | |
103 | S="${WORKDIR}/${MY_P}" |
104 | |
105 | lmp_emake() { |
106 | local LAMMPS_INCLUDEFLAGS="$(usex gzip '-DLAMMPS_GZIP' '')" |
107 | LAMMPS_INCLUDEFLAGS+="$(usex lammps-memalign ' -DLAMMPS_MEMALIGN' '')" |
108 | |
109 | # Note: The lammps makefile uses CC to indicate the C++ compiler. |
110 | emake \ |
111 | ARCHIVE=$(tc-getAR) \ |
112 | CC=$(usex mpi "mpic++" "$(tc-getCXX)") \ |
113 | F90=$(usex mpi "mpif90" "$(tc-getFC)") \ |
114 | LINK=$(usex mpi "mpic++" "$(tc-getCXX)") \ |
115 | CCFLAGS="${CXXFLAGS}" \ |
116 | F90FLAGS="${FCFLAGS}" \ |
117 | LINKFLAGS="${LDFLAGS}" \ |
118 | LMP_INC="${LAMMPS_INCLUDEFLAGS}" \ |
119 | MPI_INC=$(usex mpi '' "-I../STUBS") \ |
120 | MPI_PATH=$(usex mpi '' '-L../STUBS') \ |
121 | MPI_LIB=$(usex mpi '' '-lmpi_stubs') \ |
122 | "$@" |
123 | } |
124 | |
125 | src_compile() { |
126 | # Compile stubs for serial version. |
127 | use mpi || lmp_emake -C src stubs |
128 | |
129 | # Build optional packages. |
130 | if use package-meam; then |
131 | lmp_emake -C src yes-meam |
132 | lmp_emake -j1 -C lib/meam -f Makefile.gfortran |
133 | fi |
134 | use package-dipole && emake -C src yes-dipole |
135 | use package-rigid && emake -C src yes-rigid |
136 | |
137 | # Compile. |
138 | lmp_emake -C src serial |
139 | } |
140 | |
141 | src_install() { |
142 | newbin "src/lmp_serial" "lmp" |
143 | |
144 | local LAMMPS_POTENTIALS="/usr/share/${PF}/potentials" |
145 | insinto "${LAMMPS_POTENTIALS}" |
146 | doins potentials/* |
147 | echo "LAMMPS_POTENTIALS=${LAMMPS_POTENTIALS}" > 99lammps |
148 | doenvd 99lammps |
149 | |
150 | if use examples; then |
151 | local LAMMPS_EXAMPLES="/usr/share/${PF}/examples" |
152 | insinto "${LAMMPS_EXAMPLES}" |
153 | doins -r examples/* |
154 | fi |
155 | |
156 | dodoc README |
157 | if use doc; then |
158 | dodoc doc/Manual.pdf |
159 | dohtml -r doc/* |
160 | fi |
161 | } |