Gentoo Archives: gentoo-commits

From: Christoph Junghans <ottxor@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-chemistry/votca-csg/
Date: Wed, 30 Jan 2013 05:28:15
Message-Id: 1359523673.791b1a7e08cd16a7f36b7494e50e462dbb28f27c.ottxor@gentoo
1 commit: 791b1a7e08cd16a7f36b7494e50e462dbb28f27c
2 Author: Christoph Junghans <ottxor <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jan 30 05:27:53 2013 +0000
4 Commit: Christoph Junghans <ottxor <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 30 05:27:53 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=791b1a7e
7
8 clean up + merge csg-{manual,tutorials}
9
10 Package-Manager: portage-2.2.0_alpha161
11
12 ---
13 sci-chemistry/votca-csg/ChangeLog | 5 ++-
14 sci-chemistry/votca-csg/votca-csg-9999.ebuild | 43 +++++++++++++++++++-----
15 2 files changed, 38 insertions(+), 10 deletions(-)
16
17 diff --git a/sci-chemistry/votca-csg/ChangeLog b/sci-chemistry/votca-csg/ChangeLog
18 index bd1f2d3..0e965ae 100644
19 --- a/sci-chemistry/votca-csg/ChangeLog
20 +++ b/sci-chemistry/votca-csg/ChangeLog
21 @@ -1,7 +1,10 @@
22 # ChangeLog for sci-chemistry/votca-csg
23 -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
24 +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
25 # $Header: $
26
27 + 30 Jan 2013; Christoph Junghans <ottxor@g.o> votca-csg-9999.ebuild:
28 + clean up + merge csg-{manual,tutorials}
29 +
30 31 Dec 2012; Christoph Junghans <ottxor@g.o> votca-csg-9999.ebuild:
31 update EHG_REPO_URI
32
33
34 diff --git a/sci-chemistry/votca-csg/votca-csg-9999.ebuild b/sci-chemistry/votca-csg/votca-csg-9999.ebuild
35 index 10953bc..2a3c943 100644
36 --- a/sci-chemistry/votca-csg/votca-csg-9999.ebuild
37 +++ b/sci-chemistry/votca-csg/votca-csg-9999.ebuild
38 @@ -1,8 +1,8 @@
39 -# Copyright 1999-2012 Gentoo Foundation
40 +# Copyright 1999-2013 Gentoo Foundation
41 # Distributed under the terms of the GNU General Public License v2
42 # $Header: $
43
44 -EAPI=4
45 +EAPI=5
46
47 inherit bash-completion-r1 cmake-utils multilib
48
49 @@ -17,8 +17,6 @@ else
50 SRC_URI=""
51 inherit mercurial
52 EHG_REPO_URI="https://code.google.com/p/votca.csg/"
53 - PDEPEND="${PDEPEND} doc? ( =app-doc/${PN}-manual-${PV} )
54 - examples? ( =sci-chemistry/${PN}-tutorials-${PV} )"
55 fi
56
57 DESCRIPTION="Votca coarse-graining engine"
58 @@ -29,17 +27,38 @@ SLOT="0"
59 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-macos"
60
61 RDEPEND="=sci-libs/votca-tools-${PV}
62 - gromacs? ( sci-chemistry/gromacs )
63 + gromacs? ( sci-chemistry/gromacs:= )
64 dev-lang/perl
65 app-shells/bash"
66
67 DEPEND="${RDEPEND}
68 - doc? ( || ( <app-doc/doxygen-1.7.6.1[-nodot] >=app-doc/doxygen-1.7.6.1[dot] ) )
69 + doc? (
70 + || ( <app-doc/doxygen-1.7.6.1[-nodot] >=app-doc/doxygen-1.7.6.1[dot] )
71 + dev-texlive/texlive-latexextra
72 + virtual/latex-base
73 + dev-tex/pgf
74 + )
75 >=app-text/txt2tags-2.5
76 virtual/pkgconfig"
77
78 DOCS=( README NOTICE )
79
80 +src_unpack() {
81 + if [[ ${PV} != *9999 ]]; then
82 + default
83 + else
84 + mercurial_src_unpack
85 + use doc && mercurial_fetch \
86 + https://code.google.com/p/votca.csg-manual/ \
87 + votca.csg-manual \
88 + "${WORKDIR}/manual"
89 + use examples && mercurial_fetch \
90 + https://code.google.com/p/votca.csg-tutorials/ \
91 + votca.csg-tutorials \
92 + "${WORKDIR}/${PN}-tutorials"
93 + fi
94 +}
95 +
96 src_configure() {
97 local GMX_DEV="OFF" GMX_DOUBLE="OFF" extra
98
99 @@ -56,6 +75,7 @@ src_configure() {
100 $(cmake-utils_use_with gromacs GMX)
101 -DWITH_GMX_DEVEL="${GMX_DEV}"
102 -DGMX_DOUBLE="${GMX_DOUBLE}"
103 + -DCMAKE_INSTALL_RPATH="\\\$ORIGIN/../$(get_libdir)"
104 ${extra}
105 -DWITH_RC_FILES=OFF
106 -DLIB=$(get_libdir)
107 @@ -67,17 +87,22 @@ src_install() {
108 newbashcomp scripts/csg-completion.bash ${PN}
109 cmake-utils_src_install
110 if use doc; then
111 - if [ -n "${PV##*9999}" ]; then
112 + if [[ ${PV} = *9999* ]]; then
113 + pushd "${WORKDIR}"/manual
114 + emake PATH="${PATH}:${ED}/usr/bin"
115 + newdoc manual.pdf "${PN}-manual-${PV}.pdf"
116 + popd > /dev/null
117 + else
118 dodoc "${DISTDIR}/${PN}-manual-${PV}.pdf"
119 fi
120 cd "${CMAKE_BUILD_DIR}" || die
121 emake html
122 dohtml -r share/doc/html/*
123 fi
124 - if use examples && [ -n "${PV##*9999}" ]; then
125 + if use examples; then
126 insinto "/usr/share/doc/${PF}/tutorials"
127 docompress -x "/usr/share/doc/${PF}/tutorials"
128 - doins -r "${WORKDIR}/${PN}-tutorials-${PV}"/*
129 + doins -r "${WORKDIR}/${PN}"-tutorials*/*
130 fi
131 }