Lines 12-27
Link Here
|
12 |
LICENSE="GPL-2" |
12 |
LICENSE="GPL-2" |
13 |
SLOT="0" |
13 |
SLOT="0" |
14 |
KEYWORDS="~amd64 ~ppc ~x86" |
14 |
KEYWORDS="~amd64 ~ppc ~x86" |
15 |
IUSE="mpi test" |
15 |
IUSE="mpi test fox gsl fftw" |
16 |
|
16 |
|
17 |
RDEPEND="sci-libs/bigdft |
17 |
RDEPEND="sci-libs/bigdft |
18 |
sci-libs/etsf_io |
18 |
sci-libs/etsf_io |
19 |
sci-libs/libxc |
19 |
sci-libs/libxc |
20 |
sci-libs/fox |
20 |
fox? ( sci-libs/fox ) |
21 |
sci-libs/netcdf |
21 |
sci-libs/netcdf |
22 |
sci-libs/wannier90 |
22 |
sci-libs/wannier90 |
23 |
virtual/blas |
23 |
virtual/blas |
24 |
virtual/lapack |
24 |
virtual/lapack |
|
|
25 |
gsl? ( sci-libs/gsl ) |
26 |
fftw? ( sci-libs/fftw:2.1 ) |
25 |
mpi? ( virtual/mpi )" |
27 |
mpi? ( virtual/mpi )" |
26 |
DEPEND="${RDEPEND}" |
28 |
DEPEND="${RDEPEND}" |
27 |
|
29 |
|
Lines 30-48
Link Here
|
30 |
|
32 |
|
31 |
src_prepare() { |
33 |
src_prepare() { |
32 |
epatch "${FILESDIR}"/5.3.4-change-default-directories.patch |
34 |
epatch "${FILESDIR}"/5.3.4-change-default-directories.patch |
|
|
35 |
epatch "${FILESDIR}"/5.7.3-fftw.patch |
33 |
eautoreconf |
36 |
eautoreconf |
34 |
} |
37 |
} |
35 |
|
38 |
|
36 |
src_configure() { |
39 |
src_configure() { |
37 |
local libs="-L/usr/$(get_libdir)" |
40 |
local libs="-L/usr/$(get_libdir)" |
38 |
local modules="-I/usr/$(get_libdir)/finclude" |
41 |
local modules="-I/usr/$(get_libdir)/finclude" |
|
|
42 |
local FoX_libs="-lFoX_dom -lFoX_sax -lFoX_wcml -lFoX_wxml -lFoX_common -lFoX_utils -lFoX_fsys" |
39 |
econf \ |
43 |
econf \ |
40 |
$(use_enable mpi) \ |
44 |
$(use_enable mpi) \ |
|
|
45 |
$(use_enable fox) \ |
46 |
$(use_enable gsl) \ |
47 |
$(use_enable fftw) \ |
48 |
$(use_enable fftw fftw-threads) \ |
41 |
--with-linalg-libs="${libs} -lblas -llapack" \ |
49 |
--with-linalg-libs="${libs} -lblas -llapack" \ |
42 |
--with-netcdf-includes="-I/usr/include" \ |
50 |
--with-netcdf-includes="-I/usr/include" \ |
43 |
--with-netcdf-libs="${libs} -lnetcdff" \ |
51 |
--with-netcdf-libs="${libs} -lnetcdff" \ |
44 |
--with-fox-includes="${modules}" \ |
52 |
--with-fox-includes="${modules}" \ |
45 |
--with-fox-libs="${libs} -lwcml" \ |
53 |
--with-fox-libs="${libs} ${FoX_libs}" \ |
46 |
--with-etsf-io-includes="${modules}" \ |
54 |
--with-etsf-io-includes="${modules}" \ |
47 |
--with-etsf-io-libs="${libs} -letsf_io -letsf_io_low_level -letsf_io_utils" \ |
55 |
--with-etsf-io-libs="${libs} -letsf_io -letsf_io_low_level -letsf_io_utils" \ |
48 |
--with-etsf-xc-includes="${modules}" \ |
56 |
--with-etsf-xc-includes="${modules}" \ |
Lines 55-60
Link Here
|
55 |
--with-cc-optflags="${CFLAGS}" \ |
63 |
--with-cc-optflags="${CFLAGS}" \ |
56 |
--with-fc-optflags="${FCFLAGS:- ${FFLAGS:- -O2}}" \ |
64 |
--with-fc-optflags="${FCFLAGS:- ${FFLAGS:- -O2}}" \ |
57 |
--with-fc-ld-optlibs='-lpthread' \ |
65 |
--with-fc-ld-optlibs='-lpthread' \ |
|
|
66 |
--with-fftw-includes="-I/usr/include" \ |
67 |
--with-fftw-libs="-L/usr/lib -lfftw_threads -ldfftw -lrt -lm" \ |
68 |
--with-gsl-includes="$(pkg-config --cflags gsl)" \ |
69 |
--with-gsl-libs="$(pkg-config --libs gsl)" \ |
58 |
FC="${FORTRANC}" \ |
70 |
FC="${FORTRANC}" \ |
59 |
CC="$(tc-getCC)" \ |
71 |
CC="$(tc-getCC)" \ |
60 |
LD="$(tc-getLD)" |
72 |
LD="$(tc-getLD)" |
Lines 78-98
Link Here
|
78 |
for REPORT in $(find . -name report); do |
90 |
for REPORT in $(find . -name report); do |
79 |
REPORT=${REPORT#*/} |
91 |
REPORT=${REPORT#*/} |
80 |
elog "Parameters and unusual results for ${REPORT%%/*} tests" |
92 |
elog "Parameters and unusual results for ${REPORT%%/*} tests" |
|
|
93 |
echo "Parameters and unusual results for ${REPORT%%/*} tests" >>tests_summary.txt |
81 |
while read line; do |
94 |
while read line; do |
82 |
elog "${line}" |
95 |
elog "${line}" |
|
|
96 |
echo "${line}" >>tests_summary.txt |
83 |
done \ |
97 |
done \ |
84 |
< <(grep -v -e succeeded -e passed ${REPORT}) |
98 |
< <(grep -v -e succeeded -e passed ${REPORT}) |
85 |
done |
99 |
done |
86 |
|
100 |
|
87 |
elog "The full test results will be installed as summary_tests.tar.gz." |
101 |
local testdir |
|
|
102 |
find . -name ",,test*" -print | \ |
103 |
while read testdir; do |
104 |
if [ -e summary_tests.tar ]; then |
105 |
tar rvf summary_tests.tar ${testdir} |
106 |
else tar cvf summary_tests.tar ${testdir} |
107 |
fi |
108 |
done |
109 |
|
110 |
elog "The full test results will be installed as summary_tests.tar.bz2." |
111 |
elog "Also a concise report tests_summary.txt is installed." |
88 |
} |
112 |
} |
89 |
|
113 |
|
90 |
src_install() { |
114 |
src_install() { |
91 |
emake DESTDIR="${D}" install || die |
115 |
emake DESTDIR="${D}" install || die "make install failed" |
92 |
|
116 |
|
93 |
if use test; then |
117 |
if use test; then |
94 |
dodoc tests/summary_tests.tar.gz || die |
118 |
dodoc tests/tests_summary.txt || die "Copying tests summary failed" |
|
|
119 |
dodoc tests/summary_tests.tar || die "Copying tests summary failed" |
95 |
fi |
120 |
fi |
96 |
|
121 |
|
97 |
dodoc KNOWN_PROBLEMS README || die |
122 |
dodoc KNOWN_PROBLEMS README || die "Copying doc files failed" |
|
|
123 |
} |
124 |
|
125 |
pkg_postinst() { |
126 |
if use test; then |
127 |
elog "The full test results will be installed as summary_tests.tar.bz2." |
128 |
elog "Also a concise report tests_summary.txt is installed." |
129 |
fi |
98 |
} |
130 |
} |