1 |
commit: 37071047f278b2e7d1d282bca001d053478af489 |
2 |
Author: Honza Macháček <Hloupy.Honza <AT> centrum <DOT> cz> |
3 |
AuthorDate: Fri Jun 27 13:27:13 2014 +0000 |
4 |
Commit: Honza Macháček <Hloupy.Honza <AT> centrum <DOT> cz> |
5 |
CommitDate: Fri Jun 27 13:27:13 2014 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=37071047 |
7 |
|
8 |
The Abinit patches incorporated in sci-libs/bigdft-abi-1.0.4-r3.ebuild. When compiling against sci-libs/scalapack, made to use ScaLAPACK as BLACS as well, not to break sci-physics/abinit by defining fake BLACS routines. Testing removed to appease repoman and avoid copying of all the old test suite over the current broken version. |
9 |
|
10 |
Package-Manager: portage-2.2.10 |
11 |
|
12 |
--- |
13 |
sci-libs/bigdft-abi/ChangeLog | 12 +++- |
14 |
...-1.0.4-r2.ebuild => bigdft-abi-1.0.4-r3.ebuild} | 70 ++++++++++++--------- |
15 |
.../files/bigdft-abi-1.0.4-tests.tar.bz2 | Bin 402968 -> 0 bytes |
16 |
sci-libs/bigdft-abi/metadata.xml | 14 ++++- |
17 |
4 files changed, 62 insertions(+), 34 deletions(-) |
18 |
|
19 |
diff --git a/sci-libs/bigdft-abi/ChangeLog b/sci-libs/bigdft-abi/ChangeLog |
20 |
index c443870..8647391 100644 |
21 |
--- a/sci-libs/bigdft-abi/ChangeLog |
22 |
+++ b/sci-libs/bigdft-abi/ChangeLog |
23 |
@@ -1,7 +1,17 @@ |
24 |
# ChangeLog for sci-libs/bigdft-abi |
25 |
-# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
26 |
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
27 |
# $Header: $ |
28 |
|
29 |
+*bigdft-abi-1.0.4-r3 (27 Jun 2014) |
30 |
+ |
31 |
+ 27 Jun 2014; Honza Macháček <Hloupy.Honza@×××××××.cz> |
32 |
+ +bigdft-abi-1.0.4-r3.ebuild: |
33 |
+ The Abinit patches incorporated in sci-libs/bigdft-abi-1.0.4-r3.ebuild. When |
34 |
+ compiling against sci-libs/scalapack, made to use ScaLAPACK as BLACS as well, |
35 |
+ not to break sci-physics/abinit by defining fake BLACS routines. Testing removed |
36 |
+ to appease repoman and avoid copying of all the old test suite over the current |
37 |
+ broken version. |
38 |
+ |
39 |
23 Sep 2013; Honza Macháček <Hloupy.Honza@×××××××.cz> |
40 |
bigdft-abi-1.0.4-r2.ebuild, +metadata.xml: |
41 |
Previously announced change actually done. Added a metadata file. Dealing |
42 |
|
43 |
diff --git a/sci-libs/bigdft-abi/bigdft-abi-1.0.4-r2.ebuild b/sci-libs/bigdft-abi/bigdft-abi-1.0.4-r3.ebuild |
44 |
similarity index 78% |
45 |
rename from sci-libs/bigdft-abi/bigdft-abi-1.0.4-r2.ebuild |
46 |
rename to sci-libs/bigdft-abi/bigdft-abi-1.0.4-r3.ebuild |
47 |
index 98d8212..511361c 100644 |
48 |
--- a/sci-libs/bigdft-abi/bigdft-abi-1.0.4-r2.ebuild |
49 |
+++ b/sci-libs/bigdft-abi/bigdft-abi-1.0.4-r3.ebuild |
50 |
@@ -16,7 +16,7 @@ SRC_URI="http://forge.abinit.org/fallbacks/${P}.tar.gz" |
51 |
LICENSE="GPL-3" |
52 |
SLOT="0" |
53 |
KEYWORDS="~amd64 ~x86 ~amd64-linux" |
54 |
-IUSE="cuda doc etsf_io mpi netcdf openmp opencl test" |
55 |
+IUSE="cuda doc etsf_io glib mpi netcdf openmp opencl scalapack test" |
56 |
|
57 |
RDEPEND=" |
58 |
>=sci-libs/libxc-1.2.0-r1[fortran] |
59 |
@@ -27,12 +27,14 @@ RDEPEND=" |
60 |
mpi? ( virtual/mpi ) |
61 |
cuda? ( dev-util/nvidia-cuda-sdk ) |
62 |
opencl? ( virtual/opencl ) |
63 |
+ glib? ( >=dev-libs/glib-2.22 ) |
64 |
etsf_io? ( >=sci-libs/etsf_io-1.0.3-r2 ) |
65 |
netcdf? ( || ( |
66 |
sci-libs/netcdf[fortran] |
67 |
sci-libs/netcdf-fortran |
68 |
) |
69 |
- )" |
70 |
+ ) |
71 |
+ scalapack? ( virtual/scalapack )" |
72 |
DEPEND="${RDEPEND} |
73 |
virtual/pkgconfig |
74 |
>=sys-devel/autoconf-2.59 |
75 |
@@ -72,43 +74,54 @@ pkg_setup() { |
76 |
if use openmp; then FORTRAN_NEED_OPENMP=1; fi |
77 |
|
78 |
fortran-2_pkg_setup |
79 |
- python-any-r1_pkg_setup |
80 |
-} |
81 |
- |
82 |
-src_prepare() { |
83 |
- epatch \ |
84 |
- "${FILESDIR}"/"${P}"-CUDA_gethostname.patch |
85 |
|
86 |
- tar -xjf "${FILESDIR}"/"${P}"-tests.tar.bz2 -C "${S}"/tests/DFT/ |
87 |
- eautoreconf |
88 |
-} |
89 |
- |
90 |
-src_configure() { |
91 |
- local openmp="" |
92 |
if use openmp; then |
93 |
# based on _fortran-has-openmp() of fortran-2.eclass |
94 |
+ local openmp="" |
95 |
local fcode=ebuild-openmp-flags.f |
96 |
local _fc=$(tc-getFC) |
97 |
|
98 |
+ pushd "${T}" |
99 |
cat <<- EOF > "${fcode}" |
100 |
1 call omp_get_num_threads |
101 |
2 end |
102 |
EOF |
103 |
|
104 |
for openmp in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do |
105 |
- ${_fc} ${openmp} "${fcode}" -o "${fcode}.x" && break |
106 |
+ "${_fc}" "${openmp}" "${fcode}" -o "${fcode}.x" && break |
107 |
done |
108 |
|
109 |
rm -f "${fcode}.*" |
110 |
+ popd |
111 |
+ |
112 |
+ append-flags "${openmp}" |
113 |
fi |
114 |
+ |
115 |
+ python-any-r1_pkg_setup |
116 |
+} |
117 |
+ |
118 |
+src_prepare() { |
119 |
+ epatch \ |
120 |
+ "${FILESDIR}"/"${P}"-0002.patch \ |
121 |
+ "${FILESDIR}"/"${P}"-0003.patch \ |
122 |
+ "${FILESDIR}"/"${P}"-0004.patch \ |
123 |
+ "${FILESDIR}"/"${P}"-0005.patch \ |
124 |
+ "${FILESDIR}"/"${P}"-0006.patch \ |
125 |
+ "${FILESDIR}"/"${P}"-0007.patch \ |
126 |
+ "${FILESDIR}"/"${P}"-CUDA_gethostname.patch |
127 |
+ |
128 |
+ eautoreconf |
129 |
+} |
130 |
+ |
131 |
+src_configure() { |
132 |
local modules="${EPREFIX}/usr/include" |
133 |
-# local Imodules="-I${modules}" |
134 |
- local Imodules="" |
135 |
local netcdff_libs="-lnetcdff" |
136 |
filter-flags '-m*' '-O*' "-pipe" |
137 |
local nvcflags="${CFLAGS}" |
138 |
_filter-var nvcflags '-m*' '-O*' "-pipe" "-W*" |
139 |
use cuda && filter-ldflags '-m*' '-O*' "-pipe" "-W*" |
140 |
+ local mylapack="lapack" |
141 |
+ use scalapack && mylapack="scalapack" |
142 |
local myeconfargs=( |
143 |
$(use_enable mpi) |
144 |
--enable-optimised-convolution |
145 |
@@ -119,10 +132,8 @@ src_configure() { |
146 |
--disable-internal-libyaml |
147 |
--enable-internal-libabinit |
148 |
--with-moduledir="${modules}" |
149 |
- --with-ext-linalg="$($(tc-getPKG_CONFIG) --libs-only-l lapack) \ |
150 |
- $($(tc-getPKG_CONFIG) --libs-only-l blas)" |
151 |
- --with-ext-linalg-path="$($(tc-getPKG_CONFIG) --libs-only-L lapack) \ |
152 |
- $($(tc-getPKG_CONFIG) --libs-only-L blas)" |
153 |
+ --with-ext-linalg="$($(tc-getPKG_CONFIG) --libs-only-l "${mylapack}")" |
154 |
+ --with-ext-linalg-path="$($(tc-getPKG_CONFIG) --libs-only-L "${mylapack}")" |
155 |
--with-libxc="yes" |
156 |
--disable-internal-libxc |
157 |
$(use_enable cuda cuda-gpu) |
158 |
@@ -131,8 +142,13 @@ src_configure() { |
159 |
$(use_enable opencl) |
160 |
$(use_with etsf_io etsf-io) |
161 |
"$(use etsf_io && echo "--with-netcdf-libs=$($(tc-getPKG_CONFIG) --libs netcdf) ${netcdff_libs}")" |
162 |
+ $(use_with glib gobject) |
163 |
+ $(use_with scalapack) |
164 |
+ $(use_with scalapack scalapack-path "${EPREFIX}/usr/$(get_libdir)") |
165 |
+ $(use_with scalapack blacs) |
166 |
+ $(use_with scalapack blacs-path "${EPREFIX}/usr/$(get_libdir)") |
167 |
PKG_CONFIG="$(tc-getPKG_CONFIG)" |
168 |
- FCFLAGS="${FCFLAGS} ${openmp} ${Imodules}" |
169 |
+ FCFLAGS="${FCFLAGS}" |
170 |
LD="$(tc-getLD)" |
171 |
CPP="$(tc-getCPP)" |
172 |
) |
173 |
@@ -155,15 +171,7 @@ src_compile() { |
174 |
} |
175 |
|
176 |
src_test() { |
177 |
- if use test; then |
178 |
- #autotools-utils_src_test() expanded |
179 |
- _check_build_dir |
180 |
- pushd "${BUILD_DIR}" > /dev/null || die |
181 |
- # Run default src_test as defined in ebuild.sh |
182 |
- cd tests |
183 |
- emake -j1 check |
184 |
- popd > /dev/null |
185 |
- fi |
186 |
+ ewarn "The tests broken upstream. NOT testing" |
187 |
} |
188 |
|
189 |
src_install() { |
190 |
|
191 |
diff --git a/sci-libs/bigdft-abi/files/bigdft-abi-1.0.4-tests.tar.bz2 b/sci-libs/bigdft-abi/files/bigdft-abi-1.0.4-tests.tar.bz2 |
192 |
deleted file mode 100644 |
193 |
index 40f7ca5..0000000 |
194 |
Binary files a/sci-libs/bigdft-abi/files/bigdft-abi-1.0.4-tests.tar.bz2 and /dev/null differ |
195 |
|
196 |
diff --git a/sci-libs/bigdft-abi/metadata.xml b/sci-libs/bigdft-abi/metadata.xml |
197 |
index f3d1274..8b5a755 100644 |
198 |
--- a/sci-libs/bigdft-abi/metadata.xml |
199 |
+++ b/sci-libs/bigdft-abi/metadata.xml |
200 |
@@ -15,10 +15,20 @@ to serve as a library for sci-physics/abinit. |
201 |
<use> |
202 |
<flag name="etsf_io"> |
203 |
Enable support for reading and writing the European Theoretical |
204 |
- Spectroscopy facility (ETSF) file format. |
205 |
+ Spectroscopy facility (ETSF) file format |
206 |
</flag> |
207 |
</use> |
208 |
<use> |
209 |
- <flag name="opencl">Enable support for OpenCL GPU acceleration.</flag> |
210 |
+ <flag name="glib"> |
211 |
+ Compile with GLib Object System support |
212 |
+ </flag> |
213 |
+ </use> |
214 |
+ <use> |
215 |
+ <flag name="opencl">Enable support for OpenCL GPU acceleration</flag> |
216 |
+ </use> |
217 |
+ <use> |
218 |
+ <flag name="scalapack"> |
219 |
+ Use ScaLAPACK, a subset of LAPACK routines redesigned for heterogenous computing |
220 |
+ </flag> |
221 |
</use> |
222 |
</pkgmetadata> |