1 |
commit: b40f4c4be3de95f231af23b9391be21788d02338 |
2 |
Author: Christoph Junghans <ottxor <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jan 28 04:46:34 2013 +0000 |
4 |
Commit: Christoph Junghans <ottxor <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 28 04:46:34 2013 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=b40f4c4b |
7 |
|
8 |
added app-doc/gromacs-manual in here |
9 |
|
10 |
Package-Manager: portage-2.2.0_alpha161 |
11 |
|
12 |
--- |
13 |
sci-chemistry/gromacs/ChangeLog | 3 ++ |
14 |
sci-chemistry/gromacs/gromacs-4.6.9999.ebuild | 40 ++++++++++++++++++------ |
15 |
2 files changed, 33 insertions(+), 10 deletions(-) |
16 |
|
17 |
diff --git a/sci-chemistry/gromacs/ChangeLog b/sci-chemistry/gromacs/ChangeLog |
18 |
index e8db884..4b96245 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 |
+ 28 Jan 2013; Christoph Junghans <ottxor@g.o> gromacs-4.6.9999.ebuild: |
26 |
+ added app-doc/gromacs-manual in here |
27 |
+ |
28 |
21 Jan 2013; Christoph Junghans <ottxor@g.o> gromacs-4.6.9999.ebuild: |
29 |
sci-chemistry/gromacs: use cuda.eclass |
30 |
|
31 |
|
32 |
diff --git a/sci-chemistry/gromacs/gromacs-4.6.9999.ebuild b/sci-chemistry/gromacs/gromacs-4.6.9999.ebuild |
33 |
index eae143b..e808073 100644 |
34 |
--- a/sci-chemistry/gromacs/gromacs-4.6.9999.ebuild |
35 |
+++ b/sci-chemistry/gromacs/gromacs-4.6.9999.ebuild |
36 |
@@ -18,7 +18,6 @@ if [[ $PV = *9999* ]]; then |
37 |
http://repo.or.cz/r/gromacs.git" |
38 |
EGIT_BRANCH="release-4-6" |
39 |
inherit git-2 |
40 |
- PDEPEND="doc? ( ~app-doc/${PN}-manual-${PV} )" |
41 |
else |
42 |
SRC_URI="ftp://ftp.gromacs.org/pub/${PN}/${P}.tar.gz |
43 |
doc? ( ftp://ftp.gromacs.org/pub/manual/manual-${MANUAL_PV}.pdf -> ${PN}-manual-${MANUAL_PV}.pdf ) |
44 |
@@ -54,9 +53,15 @@ CDEPEND=" |
45 |
openmm? ( |
46 |
>=dev-util/nvidia-cuda-toolkit-4.2.9-r1 |
47 |
sci-libs/openmm[cuda,opencl] |
48 |
- )" |
49 |
+ ) |
50 |
+ !app-doc/gromac-manual" |
51 |
DEPEND="${CDEPEND} |
52 |
- virtual/pkgconfig" |
53 |
+ virtual/pkgconfig |
54 |
+ doc? ( |
55 |
+ dev-texlive/texlive-latex |
56 |
+ media-gfx/imagemagick |
57 |
+ sys-apps/coreutils |
58 |
+ )" |
59 |
RDEPEND="${CDEPEND}" |
60 |
|
61 |
REQUIRED_USE=" |
62 |
@@ -77,6 +82,12 @@ src_unpack() { |
63 |
default |
64 |
else |
65 |
git-2_src_unpack |
66 |
+ if use doc; then |
67 |
+ EGIT_REPO_URI="git://git.gromacs.org/manual.git" \ |
68 |
+ EGIT_BRANCH="release-4-6" EGIT_NOUNPACK="yes" EGIT_COMMIT="release-4-6" \ |
69 |
+ EGIT_SOURCEDIR="${WORKDIR}/manual"\ |
70 |
+ git-2_src_unpack |
71 |
+ fi |
72 |
if use test; then |
73 |
EGIT_REPO_URI="git://git.gromacs.org/regressiontests.git" \ |
74 |
EGIT_BRANCH="master" EGIT_NOUNPACK="yes" EGIT_COMMIT="master" \ |
75 |
@@ -229,8 +240,6 @@ src_install() { |
76 |
DESTDIR="${D}" cmake-utils_src_make install-mdrun |
77 |
done |
78 |
|
79 |
- rm -f "${ED}"/usr/bin/GMXRC* |
80 |
- |
81 |
newbashcomp "${ED}"/usr/bin/completion.bash ${PN} |
82 |
if use zsh-completion ; then |
83 |
insinto /usr/share/zsh/site-functions |
84 |
@@ -243,15 +252,26 @@ src_install() { |
85 |
if use doc; then |
86 |
dohtml -r "${ED}usr/share/gromacs/html/" |
87 |
if [[ $PV = *9999* ]]; then |
88 |
- insinto /usr/share/gromacs |
89 |
- doins "admin/programs.txt" |
90 |
- ls -1 "${ED}"/usr/bin | sed -e '/_d$/d' > "${T}"/programs.list |
91 |
- doins "${T}"/programs.list |
92 |
+ local progs |
93 |
+ for x in "${ED}"/usr/bin/*; do |
94 |
+ [[ $x = *_d ]] || progs+=" ${x##*/}" |
95 |
+ done |
96 |
+ sed -e "/^PROGRAMS=/s/=.*/='${progs## }'/" \ |
97 |
+ -e "/INSTALLED_OPTIONS_PROGRAM_NAME=/s:=.*:=${ED}/usr/bin/g_options:" \ |
98 |
+ -i "${WORKDIR}"/manual/mkman || die |
99 |
+ mycmakeargs=( -DGMXBIN="${ED}"/usr/bin -DGMXSRC="${WORKDIR}/${P}" ) |
100 |
+ BUILD_DIR="${WORKDIR}"/manual_build \ |
101 |
+ CMAKE_USE_DIR="${WORKDIR}/manual" cmake-utils_src_configure |
102 |
+ BUILD_DIR="${WORKDIR}"/manual_build cmake-utils_src_make |
103 |
+ newdoc "${WORKDIR}"/manual_build/gromacs.pdf "${PN}-manual-${PV}.pdf" |
104 |
else |
105 |
dodoc "${DISTDIR}/${PN}-manual-${MANUAL_PV}.pdf" |
106 |
fi |
107 |
fi |
108 |
- rm -rf "${ED}usr/share/gromacs/html/" |
109 |
+ rm -rf "${ED}"/usr/share/gromacs/html/ |
110 |
+ |
111 |
+ rm -f "${ED}"/usr/bin/g_options* |
112 |
+ rm -f "${ED}"/usr/bin/GMXRC* |
113 |
} |
114 |
|
115 |
pkg_postinst() { |