Gentoo Archives: gentoo-commits

From: Christoph Junghans <kleiner_otti@×××.de>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-physics/espresso/
Date: Sun, 27 Nov 2011 21:11:30
Message-Id: cbca231ab055584591ed3615fb930e7013bca38f.kleiner_otti@gentoo
1 commit: cbca231ab055584591ed3615fb930e7013bca38f
2 Author: Christoph Junghans <ottxor <AT> gentoo <DOT> org>
3 AuthorDate: Sun Nov 27 21:11:01 2011 +0000
4 Commit: Christoph Junghans <kleiner_otti <AT> gmx <DOT> de>
5 CommitDate: Sun Nov 27 21:11:01 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=cbca231a
7
8 [sci-physics/espresso] live ebuild update
9
10 (Portage version: 2.2.0_alpha78/git/Linux i686, signed Manifest commit with key C2000586)
11
12 ---
13 sci-physics/espresso/espresso-9999.ebuild | 20 +++++++++++++-------
14 1 files changed, 13 insertions(+), 7 deletions(-)
15
16 diff --git a/sci-physics/espresso/espresso-9999.ebuild b/sci-physics/espresso/espresso-9999.ebuild
17 index 9c22425..6522b90 100644
18 --- a/sci-physics/espresso/espresso-9999.ebuild
19 +++ b/sci-physics/espresso/espresso-9999.ebuild
20 @@ -37,8 +37,13 @@ DEPEND="${RDEPEND}
21 app-doc/doxygen[-nodot]
22 virtual/latex-base )"
23
24 +DOCS=( AUTHORS NEWS README ChangeLog )
25 +
26 src_prepare() {
27 autotools-utils_src_prepare
28 + sed -i -e '/^[^S]/s/tutorials/tutorial/g' \
29 + -e 's/cd tutorial/&s/' doc/Makefile.am \
30 + || die "sed of Makefile.am failed"
31 eautoreconf
32 restore_config myconfig.h
33 }
34 @@ -55,15 +60,13 @@ src_configure() {
35
36 src_compile() {
37 autotools-utils_src_compile
38 - if use doc; then
39 - autotools-utils_src_compile doc || die "emake doc failed"
40 - fi
41 + use doc && autotools-utils_src_compile doc
42 }
43
44 src_install() {
45 - autotools-utils_src_install
46 + local i
47
48 - dodoc AUTHORS NEWS README ChangeLog
49 + autotools-utils_src_install
50
51 insinto /usr/share/${PN}
52 doins ${AUTOTOOLS_BUILD_DIR}/myconfig-sample.h
53 @@ -74,8 +77,11 @@ src_install() {
54 local where="."
55 [ "${PV%9999}" != "${PV}" ] && where="${AUTOTOOLS_BUILD_DIR}"
56 newdoc ${where}/doc/ug/ug.pdf user_guide.pdf
57 - dohtml -r ${AUTOTOOLS_BUILD_DIR}/doc/dg/html/*
58 - newdoc ${where}/doc/tutorials/tut2/tut2.pdf tutorial.pdf
59 + newdoc ${where}/doc/dg/dg.pdf developer_guide.pdf
60 + dohtml -r ${AUTOTOOLS_BUILD_DIR}/doc/doxygen/html/*
61 + for i in ${where}/doc/tutorials/*/[0-9]*.pdf; do
62 + newdoc ${i} tutorial_${i##*/}
63 + done
64 fi
65
66 if use examples; then