1 |
commit: ec5a4f359119a8d3bd186f4f3a24481a0089f98c |
2 |
Author: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 3 03:59:38 2013 +0000 |
4 |
Commit: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 3 03:59:38 2013 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=ec5a4f35 |
7 |
|
8 |
Slightly update live ebuild for master branch |
9 |
|
10 |
Package-Manager: portage-2.2.7 |
11 |
|
12 |
--- |
13 |
sci-chemistry/gromacs/ChangeLog | 3 + |
14 |
sci-chemistry/gromacs/gromacs-9999.ebuild | 280 ++++++++++++++++++------------ |
15 |
2 files changed, 172 insertions(+), 111 deletions(-) |
16 |
|
17 |
diff --git a/sci-chemistry/gromacs/ChangeLog b/sci-chemistry/gromacs/ChangeLog |
18 |
index 9a16c48..fc03b04 100644 |
19 |
--- a/sci-chemistry/gromacs/ChangeLog |
20 |
+++ b/sci-chemistry/gromacs/ChangeLog |
21 |
@@ -2,6 +2,9 @@ |
22 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
23 |
# $Header: $ |
24 |
|
25 |
+ 03 Dec 2013; Alexey Shvetsov <alexxy@g.o> gromacs-9999.ebuild: |
26 |
+ Slightly update live ebuild for master branch |
27 |
+ |
28 |
01 Jun 2013; Christoph Junghans <ottxor@g.o> gromacs-4.6.9999.ebuild: |
29 |
sync with gx86 |
30 |
|
31 |
|
32 |
diff --git a/sci-chemistry/gromacs/gromacs-9999.ebuild b/sci-chemistry/gromacs/gromacs-9999.ebuild |
33 |
index 36a6d2d..706734c 100644 |
34 |
--- a/sci-chemistry/gromacs/gromacs-9999.ebuild |
35 |
+++ b/sci-chemistry/gromacs/gromacs-9999.ebuild |
36 |
@@ -2,28 +2,47 @@ |
37 |
# Distributed under the terms of the GNU General Public License v2 |
38 |
# $Header: $ |
39 |
|
40 |
-EAPI="5" |
41 |
+EAPI=5 |
42 |
|
43 |
-TEST_PV="4.0.4" |
44 |
+TEST_PV="5.0-beta1" |
45 |
+MANUAL_PV="5.0-beta1" |
46 |
|
47 |
-EGIT_REPO_URI="git://git.gromacs.org/gromacs http://repo.or.cz/r/gromacs.git" |
48 |
-EGIT_BRANCH="master" |
49 |
+CMAKE_MAKEFILE_GENERATOR="ninja" |
50 |
|
51 |
-ACCE_IUSE="sse2 sse4_1 avx128fma avx256" |
52 |
+inherit bash-completion-r1 cmake-utils cuda eutils multilib readme.gentoo toolchain-funcs |
53 |
|
54 |
-#to find external blas/lapack |
55 |
-CMAKE_MIN_VERSION="2.8.5-r2" |
56 |
+if [[ $PV = *9999* ]]; then |
57 |
+ EGIT_REPO_URI="git://git.gromacs.org/gromacs.git |
58 |
+ https://gerrit.gromacs.org/gromacs.git |
59 |
+ git://github.com/gromacs/gromacs.git |
60 |
+ http://repo.or.cz/r/gromacs.git" |
61 |
+ EGIT_BRANCH="master" |
62 |
+ inherit git-2 |
63 |
+ LIVE_DEPEND="doc? ( |
64 |
+ dev-texlive/texlive-latex |
65 |
+ dev-texlive/texlive-latexextra |
66 |
+ media-gfx/imagemagick |
67 |
+ sys-apps/coreutils |
68 |
+ )" |
69 |
+else |
70 |
+ SRC_URI="ftp://ftp.gromacs.org/pub/${PN}/${P}.tar.gz |
71 |
+ doc? ( ftp://ftp.gromacs.org/pub/manual/manual-${MANUAL_PV}.pdf -> ${PN}-manual-${MANUAL_PV}.pdf ) |
72 |
+ test? ( http://${PN}.googlecode.com/files/regressiontests-${TEST_PV}.tar.gz )" |
73 |
+ LIVE_DEPEND="" |
74 |
+fi |
75 |
|
76 |
-inherit bash-completion-r1 cmake-utils eutils git-2 multilib toolchain-funcs |
77 |
+ACCE_IUSE="sse2 sse4_1 avx128fma avx256" |
78 |
|
79 |
DESCRIPTION="The ultimate molecular dynamics simulation package" |
80 |
HOMEPAGE="http://www.gromacs.org/" |
81 |
|
82 |
-LICENSE="GPL-2" |
83 |
+# see COPYING for details |
84 |
+# http://repo.or.cz/w/gromacs.git/blob/HEAD:/COPYING |
85 |
+# base, vmd plugins, fftpack from numpy, blas/lapck from netlib, memtestG80 library, mpi_thread lib |
86 |
+LICENSE="LGPL-2.1 UoI-NCSA !mkl? ( !fftw? ( BSD ) !blas? ( BSD ) !lapack? ( BSD ) ) cuda? ( LGPL-3 ) threads? ( BSD )" |
87 |
SLOT="0/${PV}" |
88 |
-KEYWORDS="~alpha ~amd64 ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux" |
89 |
-IUSE="X blas doc -double-precision +fftw gsl lapack mpi +single-precision test |
90 |
-+threads xml zsh-completion ${ACCE_IUSE}" |
91 |
+KEYWORDS="~alpha ~amd64 ~arm ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-macos" |
92 |
+IUSE="X blas cuda doc -double-precision +fftw gsl lapack mkl mpi +offensive openmp +single-precision test +threads zsh-completion ${ACCE_IUSE}" |
93 |
|
94 |
CDEPEND=" |
95 |
X? ( |
96 |
@@ -32,99 +51,121 @@ CDEPEND=" |
97 |
x11-libs/libICE |
98 |
) |
99 |
blas? ( virtual/blas ) |
100 |
+ cuda? ( >=dev-util/nvidia-cuda-toolkit-4.2.9-r1 ) |
101 |
fftw? ( sci-libs/fftw:3.0 ) |
102 |
gsl? ( sci-libs/gsl ) |
103 |
lapack? ( virtual/lapack ) |
104 |
+ mkl? ( sci-libs/mkl ) |
105 |
mpi? ( virtual/mpi ) |
106 |
- xml? ( dev-libs/libxml2:2 )" |
107 |
+ " |
108 |
DEPEND="${CDEPEND} |
109 |
- virtual/pkgconfig" |
110 |
+ virtual/pkgconfig |
111 |
+ ${LIVE_DEPEND}" |
112 |
RDEPEND="${CDEPEND}" |
113 |
|
114 |
-RESTRICT="test" |
115 |
- |
116 |
-src_prepare() { |
117 |
- #add user patches from /etc/portage/patches/sci-chemistry/gromacs |
118 |
- epatch_user |
119 |
- |
120 |
- if use mpi && use threads; then |
121 |
- elog "mdrun uses only threads OR mpi, and gromacs favours the" |
122 |
- elog "use of mpi over threads, so a mpi-version of mdrun will" |
123 |
- elog "be compiled. If you want to run mdrun on shared memory" |
124 |
- elog "machines only, you can safely disable mpi" |
125 |
- fi |
126 |
+REQUIRED_USE=" |
127 |
+ || ( single-precision double-precision ) |
128 |
+ cuda? ( single-precision ) |
129 |
+ mkl? ( !blas !fftw !lapack )" |
130 |
|
131 |
- GMX_DIRS="" |
132 |
- use single-precision && GMX_DIRS+=" float" |
133 |
- use double-precision && GMX_DIRS+=" double" |
134 |
- #if neither single-precision nor double-precision is enabled |
135 |
- #build at least default (single) |
136 |
- [ -z "$GMX_DIRS" ] && GMX_DIRS+=" float" |
137 |
+DOCS=( AUTHORS README ) |
138 |
+HTML_DOCS=( "${ED}"/usr/share/gromacs/html/ ) |
139 |
|
140 |
- for x in ${GMX_DIRS}; do |
141 |
- mkdir -p "${WORKDIR}/${P}_${x}" || die |
142 |
- use test && cp -r "${WORKDIR}"/gmxtest "${WORKDIR}/${P}_${x}" |
143 |
- done |
144 |
+pkg_pretend() { |
145 |
+ [[ $(gcc-version) == "4.1" ]] && die "gcc 4.1 is not supported by gromacs" |
146 |
+ use openmp && ! tc-has-openmp && \ |
147 |
+ die "Please switch to an openmp compatible compiler" |
148 |
} |
149 |
|
150 |
-src_configure() { |
151 |
- local mycmakeargs_pre=( ) |
152 |
- #from gromacs configure |
153 |
- if use fftw; then |
154 |
- mycmakeargs_pre+=("-DGMX_FFT_LIBRARY=fftw3") |
155 |
+src_unpack() { |
156 |
+ if [[ ${PV} != *9999 ]]; then |
157 |
+ default |
158 |
else |
159 |
- mycmakeargs_pre+=("-DGMX_FFT_LIBRARY=fftpack") |
160 |
- ewarn "WARNING: The built-in FFTPACK routines are slow." |
161 |
- ewarn "Are you sure you don\'t want to use FFTW?" |
162 |
- ewarn "It is free and much faster..." |
163 |
+ git-2_src_unpack |
164 |
+ if use doc; then |
165 |
+ EGIT_REPO_URI="git://git.gromacs.org/manual.git" \ |
166 |
+ EGIT_BRANCH="release-4-6" EGIT_NOUNPACK="yes" EGIT_COMMIT="release-4-6" \ |
167 |
+ EGIT_SOURCEDIR="${WORKDIR}/manual"\ |
168 |
+ git-2_src_unpack |
169 |
+ fi |
170 |
+ if use test; then |
171 |
+ EGIT_REPO_URI="git://git.gromacs.org/regressiontests.git" \ |
172 |
+ EGIT_BRANCH="master" EGIT_NOUNPACK="yes" EGIT_COMMIT="master" \ |
173 |
+ EGIT_SOURCEDIR="${WORKDIR}/regressiontests"\ |
174 |
+ git-2_src_unpack |
175 |
+ fi |
176 |
fi |
177 |
+} |
178 |
|
179 |
- if [[ $(gcc-version) == "4.1" ]]; then |
180 |
- eerror "gcc 4.1 is not supported by gromacs" |
181 |
- eerror "please run test suite" |
182 |
- die |
183 |
- fi |
184 |
+src_prepare() { |
185 |
+ #notes/todos |
186 |
+ # -on apple: there is framework support |
187 |
|
188 |
- #note for gentoo-PREFIX on apple: use --enable-apple-64bit |
189 |
- |
190 |
- if use double-precision ; then |
191 |
- #from gromacs manual |
192 |
- elog |
193 |
- elog "For most simulations single precision is accurate enough. In some" |
194 |
- elog "cases double precision is required to get reasonable results:" |
195 |
- elog |
196 |
- elog "-normal mode analysis, for the conjugate gradient or l-bfgs minimization" |
197 |
- elog " and the calculation and diagonalization of the Hessian " |
198 |
- elog "-calculation of the constraint force between two large groups of atoms" |
199 |
- elog "-energy conservation: this can only be done without temperature coupling and" |
200 |
- elog " without cutoffs" |
201 |
- elog |
202 |
- fi |
203 |
+ cmake-utils_src_prepare |
204 |
+ |
205 |
+ use cuda && cuda_src_prepare |
206 |
|
207 |
- if use mpi ; then |
208 |
- elog "You have enabled mpi, only mdrun will make use of mpi, that is why" |
209 |
- elog "we configure/compile gromacs twice (with and without mpi) and only" |
210 |
- elog "install mdrun with mpi support. In addtion you will get libgmx and" |
211 |
- elog "libmd with and without mpi support." |
212 |
+ GMX_DIRS="" |
213 |
+ use single-precision && GMX_DIRS+=" float" |
214 |
+ use double-precision && GMX_DIRS+=" double" |
215 |
+ |
216 |
+ if use test; then |
217 |
+ for x in ${GMX_DIRS}; do |
218 |
+ mkdir -p "${WORKDIR}/${P}_${x}" || die |
219 |
+ cp -al "${WORKDIR}/regressiontests"* "${WORKDIR}/${P}_${x}/tests" || die |
220 |
+ done |
221 |
fi |
222 |
|
223 |
- #go from slowest to fasterest acceleration |
224 |
+ DOC_CONTENTS="Gromacs can use sci-chemistry/vmd to read additional file formats" |
225 |
+} |
226 |
+ |
227 |
+src_configure() { |
228 |
+ local mycmakeargs_pre=( ) extra fft_opts=( ) |
229 |
+ |
230 |
+ #go from slowest to fastest acceleration |
231 |
local acce="None" |
232 |
use sse2 && acce="SSE2" |
233 |
use sse4_1 && acce="SSE4.1" |
234 |
use avx128fma && acce="AVX_128_FMA" |
235 |
use avx256 && acce="AVX_256" |
236 |
|
237 |
+ #to create man pages, build tree binaries are executed (bug #398437) |
238 |
+ [[ ${CHOST} = *-darwin* ]] && \ |
239 |
+ extra+=" -DCMAKE_BUILD_WITH_INSTALL_RPATH=OFF" |
240 |
+ |
241 |
+ if use fftw; then |
242 |
+ fft_opts=( -DGMX_FFT_LIBRARY=fftw3 ) |
243 |
+ elif use mkl && has_version "=sci-libs/mkl-10*"; then |
244 |
+ fft_opts=( -DGMX_FFT_LIBRARY=mkl |
245 |
+ -DMKL_INCLUDE_DIR="${MKLROOT}/include" |
246 |
+ -DMKL_LIBRARIES="$(echo /opt/intel/mkl/10.0.5.025/lib/*/libmkl.so);$(echo /opt/intel/mkl/10.0.5.025/lib/*/libiomp*.so)" |
247 |
+ ) |
248 |
+ elif use mkl; then |
249 |
+ local bits=$(get_libdir) |
250 |
+ fft_opts=( -DGMX_FFT_LIBRARY=mkl |
251 |
+ -DMKL_INCLUDE_DIR="$(echo /opt/intel/*/mkl/include)" |
252 |
+ -DMKL_LIBRARIES="$(echo /opt/intel/*/mkl/lib/*${bits/lib}/libmkl_rt.so)" |
253 |
+ ) |
254 |
+ else |
255 |
+ fft_opts=( -DGMX_FFT_LIBRARY=fftpack ) |
256 |
+ fi |
257 |
+ |
258 |
mycmakeargs_pre+=( |
259 |
+ "${fft_opts[@]}" |
260 |
$(cmake-utils_use X GMX_X11) |
261 |
$(cmake-utils_use blas GMX_EXTERNAL_BLAS) |
262 |
$(cmake-utils_use gsl GMX_GSL) |
263 |
$(cmake-utils_use lapack GMX_EXTERNAL_LAPACK) |
264 |
- $(cmake-utils_use threads GMX_THREADS) |
265 |
- $(cmake-utils_use xml GMX_XML) |
266 |
+ $(cmake-utils_use openmp GMX_OPENMP) |
267 |
+ $(cmake-utils_use offensive GMX_COOL_QUOTES) |
268 |
-DGMX_DEFAULT_SUFFIX=off |
269 |
-DGMX_ACCELERATION="$acce" |
270 |
-DGMXLIB="$(get_libdir)" |
271 |
+ -DGMX_VMD_PLUGIN_PATH="${EPREFIX}/usr/$(get_libdir)/vmd/plugins/*/molfile/" |
272 |
+ -DGMX_PREFIX_LIBMD=ON |
273 |
+ -DGMX_X86_AVX_GCC_MASKLOAD_BUG=OFF |
274 |
+ -DGMX_USE_GCC44_BUG_WORKAROUND=OFF |
275 |
+ ${extra} |
276 |
) |
277 |
|
278 |
for x in ${GMX_DIRS}; do |
279 |
@@ -132,17 +173,32 @@ src_configure() { |
280 |
local suffix="" |
281 |
#if we build single and double - double is suffixed |
282 |
use double-precision && use single-precision && \ |
283 |
- [ "${x}" = "double" ] && suffix="_d" |
284 |
+ [[ ${x} = "double" ]] && suffix="_d" |
285 |
local p |
286 |
- [ "${x}" = "double" ] && p="-DGMX_DOUBLE=ON" || p="-DGMX_DOUBLE=OFF" |
287 |
+ [[ ${x} = "double" ]] && p="-DGMX_DOUBLE=ON" || p="-DGMX_DOUBLE=OFF" |
288 |
+ local cuda=( "-DGMX_GPU=OFF" ) |
289 |
+ [[ ${x} = "float" ]] && use cuda && \ |
290 |
+ cuda=( -DGMX_GPU=ON ) |
291 |
mycmakeargs=( ${mycmakeargs_pre[@]} ${p} -DGMX_MPI=OFF |
292 |
+ $(cmake-utils_use threads GMX_THREAD_MPI) "${cuda[@]}" -DGMX_OPENMM=OFF |
293 |
+ "$(use test && echo -DREGRESSIONTEST_PATH="${WORKDIR}/${P}_${x}/tests")" |
294 |
-DGMX_BINARY_SUFFIX="${suffix}" -DGMX_LIBS_SUFFIX="${suffix}" ) |
295 |
BUILD_DIR="${WORKDIR}/${P}_${x}" cmake-utils_src_configure |
296 |
+ if [[ ${x} = float ]] && use openmm; then |
297 |
+ einfo "Configuring for openmm build" |
298 |
+ mycmakeargs=( ${mycmakeargs_pre[@]} ${p} -DGMX_MPI=OFF |
299 |
+ -DGMX_THREAD_MPI=OFF -DGMX_GPU=OFF -DGMX_OPENMM=ON |
300 |
+ -DOpenMM_PLUGIN_DIR="${EPREFIX}/usr/$(get_libdir)/plugins" |
301 |
+ -DGMX_BINARY_SUFFIX="_openmm" -DGMX_LIBS_SUFFIX="_openmm" ) |
302 |
+ BUILD_DIR="${WORKDIR}/${P}_openmm" \ |
303 |
+ OPENMM_ROOT_DIR="${EPREFIX}/usr" cmake-utils_src_configure |
304 |
+ fi |
305 |
use mpi || continue |
306 |
einfo "Configuring for ${x} precision with mpi" |
307 |
- mycmakeargs=( ${mycmakeargs_pre[@]} ${p} -DGMX_MPI=ON |
308 |
+ mycmakeargs=( ${mycmakeargs_pre[@]} ${p} -DGMX_THREAD_MPI=OFF |
309 |
+ -DGMX_MPI=ON ${cuda} -DGMX_OPENMM=OFF |
310 |
-DGMX_BINARY_SUFFIX="_mpi${suffix}" -DGMX_LIBS_SUFFIX="_mpi${suffix}" ) |
311 |
- BUILD_DIR="${WORKDIR}/${P}_${x}_mpi" cmake-utils_src_configure |
312 |
+ BUILD_DIR="${WORKDIR}/${P}_${x}_mpi" CC="mpicc" cmake-utils_src_configure |
313 |
done |
314 |
} |
315 |
|
316 |
@@ -151,6 +207,11 @@ src_compile() { |
317 |
einfo "Compiling for ${x} precision" |
318 |
BUILD_DIR="${WORKDIR}/${P}_${x}"\ |
319 |
cmake-utils_src_compile |
320 |
+ if [[ ${x} = float ]] && use openmm; then |
321 |
+ einfo "Compiling for openmm build" |
322 |
+ BUILD_DIR="${WORKDIR}/${P}_openmm"\ |
323 |
+ cmake-utils_src_compile mdrun |
324 |
+ fi |
325 |
use mpi || continue |
326 |
einfo "Compiling for ${x} precision with mpi" |
327 |
BUILD_DIR="${WORKDIR}/${P}_${x}_mpi"\ |
328 |
@@ -160,11 +221,8 @@ src_compile() { |
329 |
|
330 |
src_test() { |
331 |
for x in ${GMX_DIRS}; do |
332 |
- local oldpath="${PATH}" |
333 |
- export PATH="${WORKDIR}/${P}_${x}/src/kernel:${S}-{x}/src/tools:${PATH}" |
334 |
- cd "${WORKDIR}/${P}_${x}" |
335 |
- emake -j1 tests || die "${x} Precision test failed" |
336 |
- export PATH="${oldpath}" |
337 |
+ BUILD_DIR="${WORKDIR}/${P}_${x}"\ |
338 |
+ cmake-utils_src_make check |
339 |
done |
340 |
} |
341 |
|
342 |
@@ -172,40 +230,38 @@ src_install() { |
343 |
for x in ${GMX_DIRS}; do |
344 |
BUILD_DIR="${WORKDIR}/${P}_${x}" \ |
345 |
cmake-utils_src_install |
346 |
+ if [[ ${x} = float ]] && use openmm; then |
347 |
+ BUILD_DIR="${WORKDIR}/${P}_openmm" \ |
348 |
+ DESTDIR="${D}" cmake-utils_src_make install-mdrun |
349 |
+ fi |
350 |
+ #manual can only be build after gromacs was installed once in image |
351 |
+ if use doc && [[ $PV = *9999* && ! -d ${WORKDIR}/manual_build ]]; then |
352 |
+ mycmakeargs=( -DGMXBIN="${ED}"/usr/bin -DGMXSRC="${WORKDIR}/${P}" ) |
353 |
+ BUILD_DIR="${WORKDIR}"/manual_build \ |
354 |
+ CMAKE_USE_DIR="${WORKDIR}/manual" cmake-utils_src_configure |
355 |
+ [[ ${CHOST} = *-darwin* ]] && \ |
356 |
+ export DYLD_LIBRARY_PATH="${DYLD_LIBRARY_PATH}${DYLD_LIBRARY_PATH:+:}${ED}/usr/$(get_libdir)" |
357 |
+ BUILD_DIR="${WORKDIR}"/manual_build cmake-utils_src_make |
358 |
+ [[ ${CHOST} = *-darwin* ]] && DYLD_LIBRARY_PATH="${ED}/usr/$(get_libdir)" |
359 |
+ newdoc "${WORKDIR}"/manual_build/gromacs.pdf "${PN}-manual-${PV}.pdf" |
360 |
+ fi |
361 |
use mpi || continue |
362 |
- #cmake-utils_src_install does not support args |
363 |
- #using cmake-utils_src_compile instead |
364 |
BUILD_DIR="${WORKDIR}/${P}_${x}_mpi" \ |
365 |
- cmake-utils_src_make install-mdrun DESTDIR="${D}" |
366 |
+ DESTDIR="${D}" cmake-utils_src_make install-mdrun |
367 |
done |
368 |
|
369 |
- sed -n -e '/^GMXBIN/,/^GMXDATA/p' "${ED}"/usr/bin/GMXRC.bash > "${T}/80gromacs" |
370 |
- echo "VMD_PLUGIN_PATH=${EPREFIX}/usr/$(get_libdir)/vmd/plugins/*/molfile/" >> "${T}/80gromacs" |
371 |
- |
372 |
- doenvd "${T}/80gromacs" |
373 |
- rm -f "${ED}"/usr/bin/GMXRC* |
374 |
- |
375 |
+ use doc && [[ $PV != *9999* ]] && dodoc "${DISTDIR}/${PN}-manual-${MANUAL_PV}.pdf" |
376 |
newbashcomp "${ED}"/usr/bin/completion.bash ${PN} |
377 |
if use zsh-completion ; then |
378 |
insinto /usr/share/zsh/site-functions |
379 |
newins "${ED}"/usr/bin/completion.zsh _${PN} |
380 |
fi |
381 |
- rm -f "${ED}"/usr/bin/completion.* |
382 |
- |
383 |
- # Fix typos in a couple of files. |
384 |
- sed -e "s:+0f:-f:" -i "${ED}"usr/share/gromacs/tutor/gmxdemo/demo \ |
385 |
- || die "Failed to fixup demo script." |
386 |
- |
387 |
- cd "${S}" |
388 |
- dodoc AUTHORS INSTALL* README* |
389 |
- if use doc; then |
390 |
- dohtml -r "${ED}usr/share/gromacs/html/" |
391 |
- insinto /usr/share/gromacs |
392 |
- doins "admin/programs.txt" |
393 |
- ls -1 "${ED}"/usr/bin | sed -e '/_d$/d' > "${T}"/programs.list |
394 |
- doins "${T}"/programs.list |
395 |
- fi |
396 |
- rm -rf "${ED}usr/share/gromacs/html/" |
397 |
+ rm -f "${ED}"usr/bin/completion.* |
398 |
+ rm -rf "${ED}"usr/share/gromacs/html |
399 |
+ rm -f "${ED}"usr/bin/g_options* |
400 |
+ rm -f "${ED}"usr/bin/GMXRC* |
401 |
+ |
402 |
+ readme.gentoo_create_doc |
403 |
} |
404 |
|
405 |
pkg_postinst() { |
406 |
@@ -213,9 +269,11 @@ pkg_postinst() { |
407 |
einfo "Please read and cite:" |
408 |
einfo "Gromacs 4, J. Chem. Theory Comput. 4, 435 (2008). " |
409 |
einfo "http://dx.doi.org/10.1021/ct700301q" |
410 |
+ if use offensive; then |
411 |
+ einfo |
412 |
+ einfo $(g_luck) |
413 |
+ einfo "For more Gromacs cool quotes (gcq) add g_luck to your .bashrc" |
414 |
+ fi |
415 |
einfo |
416 |
- einfo $(g_luck) |
417 |
- einfo "For more Gromacs cool quotes (gcq) add g_luck to your .bashrc" |
418 |
- einfo |
419 |
- elog "Gromacs can use sci-chemistry/vmd to read additional file formats" |
420 |
+ readme.gentoo_print_elog |
421 |
} |