1 |
commit: e0b38273977b99aad7dd94c460f5783c98bb46a9 |
2 |
Author: Reinis Danne <rei4dan <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri Jan 22 13:16:08 2016 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Feb 19 12:55:38 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=e0b38273 |
7 |
|
8 |
sci-chemistry/ambertools: Bump to EAPI=6, cleanup |
9 |
|
10 |
- Remove unused eclass imports |
11 |
- Fix symlink creation |
12 |
- Declare loop variable local |
13 |
- Use proper functions for library installation |
14 |
|
15 |
sci-chemistry/ambertools/ambertools-15_p6.ebuild | 56 ++++++++++++++++------ |
16 |
.../ambertools/files/ambertools-15-gentoo.patch | 31 ++++-------- |
17 |
2 files changed, 50 insertions(+), 37 deletions(-) |
18 |
|
19 |
diff --git a/sci-chemistry/ambertools/ambertools-15_p6.ebuild b/sci-chemistry/ambertools/ambertools-15_p6.ebuild |
20 |
index c3a46c5..a80390c 100644 |
21 |
--- a/sci-chemistry/ambertools/ambertools-15_p6.ebuild |
22 |
+++ b/sci-chemistry/ambertools/ambertools-15_p6.ebuild |
23 |
@@ -2,11 +2,11 @@ |
24 |
# Distributed under the terms of the GNU General Public License v2 |
25 |
# $Id$ |
26 |
|
27 |
-EAPI=5 |
28 |
+EAPI=6 |
29 |
|
30 |
PYTHON_COMPAT=( python2_7 ) |
31 |
|
32 |
-inherit eutils fortran-2 multilib python-r1 toolchain-funcs |
33 |
+inherit fortran-2 python-r1 toolchain-funcs |
34 |
|
35 |
DESCRIPTION="A suite for carrying out complete molecular mechanics investigations" |
36 |
HOMEPAGE="http://ambermd.org/#AmberTools" |
37 |
@@ -49,11 +49,12 @@ pkg_setup() { |
38 |
} |
39 |
|
40 |
src_prepare() { |
41 |
- epatch \ |
42 |
- "${FILESDIR}"/${PN}-15-gentoo.patch \ |
43 |
+ eapply \ |
44 |
+ "${FILESDIR}"/${PN}-15-gentoo.patch |
45 |
+ eapply -p0 \ |
46 |
"${FILESDIR}"/${PN}-15-update.{1..6}.patch |
47 |
|
48 |
- epatch_user |
49 |
+ eapply_user |
50 |
|
51 |
cd "${S}"/AmberTools/src || die |
52 |
rm -r \ |
53 |
@@ -116,19 +117,20 @@ src_configure() { |
54 |
gnu || die |
55 |
} |
56 |
|
57 |
-src_test() { |
58 |
- source ${AMBERHOME}/amber.sh |
59 |
- |
60 |
- emake test |
61 |
-} |
62 |
- |
63 |
src_compile() { |
64 |
emake \ |
65 |
CC=$(tc-getCC) \ |
66 |
FC=$(tc-getFC) |
67 |
} |
68 |
|
69 |
+src_test() { |
70 |
+ source ${AMBERHOME}/amber.sh |
71 |
+ |
72 |
+ emake test |
73 |
+} |
74 |
+ |
75 |
src_install() { |
76 |
+ local x |
77 |
for x in bin/* |
78 |
do |
79 |
[ ! -d ${x} ] && dobin ${x} |
80 |
@@ -143,16 +145,40 @@ src_install() { |
81 |
dodir /usr/share/${PN}/bin |
82 |
cd "${ED}/usr/bin" || die |
83 |
for x in * |
84 |
- do dosym /usr/bin/${x} ../share/${PN}/bin/${x} |
85 |
+ do |
86 |
+ dosym ../../../bin/${x} /usr/share/${PN}/bin/${x} |
87 |
done |
88 |
cd "${S}" || die |
89 |
|
90 |
dodoc doc/Amber15.pdf |
91 |
- dolib.a lib/*{.a,.so} |
92 |
- insinto /usr/$(get_libdir) |
93 |
- doins -r lib/python2.7 |
94 |
+ |
95 |
+ dolib.a lib/*.a |
96 |
+ dolib.so lib/*.so |
97 |
+ |
98 |
+ local m=( |
99 |
+ chemistry |
100 |
+ compat24.py |
101 |
+ cpinutils |
102 |
+ fortranformat |
103 |
+ interface |
104 |
+ mcpb |
105 |
+ mdoutanalyzer |
106 |
+ MMPBSA_mods |
107 |
+ ParmedTools |
108 |
+ pymsmtexp.py |
109 |
+ pymsmtlib |
110 |
+ pymsmtmol |
111 |
+ sander |
112 |
+ sanderles |
113 |
+ ) |
114 |
+ for x in ${m[@]} |
115 |
+ do |
116 |
+ python_domodule lib/${EPYTHON}/site-packages/${x} |
117 |
+ done |
118 |
+ |
119 |
insinto /usr/include/${PN} |
120 |
doins include/* |
121 |
+ |
122 |
insinto /usr/share/${PN} |
123 |
doins -r dat |
124 |
cd AmberTools || die |
125 |
|
126 |
diff --git a/sci-chemistry/ambertools/files/ambertools-15-gentoo.patch b/sci-chemistry/ambertools/files/ambertools-15-gentoo.patch |
127 |
index f949a49..76be4f8 100644 |
128 |
--- a/sci-chemistry/ambertools/files/ambertools-15-gentoo.patch |
129 |
+++ b/sci-chemistry/ambertools/files/ambertools-15-gentoo.patch |
130 |
@@ -1,5 +1,5 @@ |
131 |
diff --git a/AmberTools/src/Makefile b/AmberTools/src/Makefile |
132 |
-index 3d69773..c2a5045 100644 |
133 |
+index 3d69773..71c794c 100644 |
134 |
--- a/AmberTools/src/Makefile |
135 |
+++ b/AmberTools/src/Makefile |
136 |
@@ -15,12 +15,6 @@ install: $(INSTALLTYPE) |
137 |
@@ -36,26 +36,26 @@ index 3d69773..c2a5045 100644 |
138 |
(cd pbsa && $(MAKE) libinstall ) |
139 |
(cd rism && $(MAKE) $(RISM) ) |
140 |
(cd cifparse && $(MAKE) install ) |
141 |
-@@ -144,12 +131,6 @@ parallel: configured_parallel THIRDPARTY |
142 |
+@@ -144,12 +131,7 @@ parallel: configured_parallel THIRDPARTY |
143 |
# (cd pbsa && $(MAKE) clean && $(MAKE) install.parallel ) |
144 |
(cd pbsa && $(MAKE) libinstall ) |
145 |
$(MAKE) cpptraj |
146 |
- (cd byacc && $(MAKE) install ) |
147 |
- (cd ucpp-1.3 && $(MAKE) $(UCPP) ) |
148 |
-- (cd cifparse && $(MAKE) install ) |
149 |
+ (cd cifparse && $(MAKE) install ) |
150 |
- (cd arpack && $(MAKE) install ); |
151 |
- (cd lapack && $(MAKE) $(LAPACK) ) |
152 |
- (cd blas && $(MAKE) $(BLAS) ) |
153 |
(cd mdgx && $(MAKE) $(MDGX) ) |
154 |
(if [ "$(RISM)" = "yes" ]; then \ |
155 |
cd rism && $(MAKE) install_mpi ; \ |
156 |
-@@ -215,18 +196,11 @@ netcdf_uninstall: |
157 |
+@@ -215,18 +197,12 @@ netcdf_uninstall: |
158 |
-/bin/rm -f netcdf_config.log ../lib/libnetcdf* ../include/netcdf.* |
159 |
|
160 |
clean:: |
161 |
- -(cd ucpp-1.3 && $(MAKE) clean ) |
162 |
- -(cd byacc && $(MAKE) clean ) |
163 |
-- -(cd cifparse && $(MAKE) clean ) |
164 |
+ -(cd cifparse && $(MAKE) clean ) |
165 |
-(cd nab && $(MAKE) clean ) |
166 |
-(cd sff && $(MAKE) clean ) |
167 |
-(cd nss && $(MAKE) clean ) |
168 |
@@ -68,7 +68,7 @@ index 3d69773..c2a5045 100644 |
169 |
-(cd etc && $(MAKE) clean ) |
170 |
-(cd chamber && $(MAKE) clean ) |
171 |
-(cd pbsa && $(MAKE) clean ) |
172 |
-@@ -236,15 +210,12 @@ clean:: |
173 |
+@@ -236,15 +212,12 @@ clean:: |
174 |
-(cd lib && $(MAKE) clean ) |
175 |
-(cd ptraj && $(MAKE) clean ) |
176 |
-(cd cpptraj && $(MAKE) clean) |
177 |
@@ -84,7 +84,7 @@ index 3d69773..c2a5045 100644 |
178 |
-(cd mmpbsa_py && /bin/rm -fr MMPBSA.py.MPI build/ mpi4py-1.2.2/) |
179 |
-(cd mm_pbsa && $(MAKE) clean ) |
180 |
-(cd FEW && $(MAKE) clean ) |
181 |
-@@ -315,7 +286,7 @@ $(LIBDIR)/libxblas-amb.a: |
182 |
+@@ -315,7 +288,7 @@ $(LIBDIR)/libxblas-amb.a: |
183 |
$(LIBDIR)/libfftw3.a $(LIBDIR)/libfftw3_mpi.a: |
184 |
cd fftw-3.3 && $(MAKE) && $(MAKE) -j 1 install; |
185 |
|
186 |
@@ -447,19 +447,6 @@ index 12acf35..4f26593 100644 |
187 |
$(FC) $(FPPFLAGS) $(FFLAGS) $(AMBERFFLAGS) -o quasih$(SFX) \ |
188 |
quasih.o fileio.o thermo.o mexit.o \ |
189 |
$(LIBOBJ) binpos.o ../lib/sys.a -L$(LIBDIR) $(FLIBSF) \ |
190 |
-diff --git a/AmberTools/src/parmed/chemistry/unit/unit.py b/AmberTools/src/parmed/chemistry/unit/unit.py |
191 |
-index 7767f39..a8d8a47 100644 |
192 |
---- a/AmberTools/src/parmed/chemistry/unit/unit.py |
193 |
-+++ b/AmberTools/src/parmed/chemistry/unit/unit.py |
194 |
-@@ -612,7 +612,7 @@ class UnitSystem(object): |
195 |
- to_base_units[m][n] = power |
196 |
- try: |
197 |
- self.from_base_units = ~to_base_units |
198 |
-- except ArithmeticError, e: |
199 |
-+ except ArithmeticError as e: |
200 |
- raise ArithmeticError("UnitSystem is not a valid basis set. " + str(e)) |
201 |
- |
202 |
- def __iter__(self): |
203 |
diff --git a/AmberTools/src/pbsa/Makefile b/AmberTools/src/pbsa/Makefile |
204 |
index 1b2c09a..6dc65a6 100644 |
205 |
--- a/AmberTools/src/pbsa/Makefile |
206 |
@@ -517,7 +504,7 @@ index df789e8..48227d5 100644 |
207 |
netlib: |
208 |
cd ../lapack && $(MAKE) $(LAPACK) |
209 |
diff --git a/AmberTools/src/sander/Makefile b/AmberTools/src/sander/Makefile |
210 |
-index 9b9488c..67fe45a 100644 |
211 |
+index 9b9488c..de25fc7 100644 |
212 |
--- a/AmberTools/src/sander/Makefile |
213 |
+++ b/AmberTools/src/sander/Makefile |
214 |
@@ -90,7 +90,7 @@ APBSOBJ= \ |
215 |
@@ -651,7 +638,7 @@ index 9b9488c..67fe45a 100644 |
216 |
-o rand2.o ../sff/rand2.c |
217 |
|
218 |
+dsarpack.o: ../sff/dsarpack.f |
219 |
-+ $(CC) -c -DSQM $(CNOOPTFLAGS) $(CFLAGS) $(AMBERCFLAGS) \ |
220 |
++ $(FC) -c $(FPPFLAGS) $(CFLAGS) $(AMBERFFLAGS) \ |
221 |
+ -o dsarpack.o ../sff/dsarpack.f |
222 |
+ |
223 |
lmodC.o: ../sff/lmodC.c |