Gentoo Archives: gentoo-commits

From: "Andrew Savchenko (bircoph)" <bircoph@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-doc/root-docs: metadata.xml ChangeLog root-docs-5.34.26.ebuild
Date: Mon, 02 Mar 2015 08:25:19
Message-Id: 20150302082514.45C3C12DD5@oystercatcher.gentoo.org
1 bircoph 15/03/02 08:25:14
2
3 Modified: metadata.xml ChangeLog
4 Added: root-docs-5.34.26.ebuild
5 Log:
6 version bump (sci-physics/root will be committed shortly)
7
8 Signed-off-by: Andrew Savchenko <bircoph@g.o>
9 (Portage version: 2.2.17/cvs/Linux i686, signed Manifest commit with key 565953B95372756C)
10
11 Revision Changes Path
12 1.11 app-doc/root-docs/metadata.xml
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-doc/root-docs/metadata.xml?rev=1.11&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-doc/root-docs/metadata.xml?rev=1.11&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-doc/root-docs/metadata.xml?r1=1.10&r2=1.11
17
18 Index: metadata.xml
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/app-doc/root-docs/metadata.xml,v
21 retrieving revision 1.10
22 retrieving revision 1.11
23 diff -u -r1.10 -r1.11
24 --- metadata.xml 11 Nov 2014 18:58:47 -0000 1.10
25 +++ metadata.xml 2 Mar 2015 08:25:14 -0000 1.11
26 @@ -12,7 +12,8 @@
27 </longdescription>
28 <use>
29 <flag name="api">Generate html API documentation</flag>
30 - <flag name="math">Downloads all math related documentation</flag>
31 - <flag name="metric">Default to A4 paper size and metric measurement</flag>
32 + <flag name="http">Build HttpServer documentation</flag>
33 + <flag name="math">Provide all math related documentation</flag>
34 + <flag name="metric">Default to A4 paper size and metric measurement. Letter will be used otherwise</flag>
35 </use>
36 </pkgmetadata>
37
38
39
40 1.44 app-doc/root-docs/ChangeLog
41
42 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-doc/root-docs/ChangeLog?rev=1.44&view=markup
43 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-doc/root-docs/ChangeLog?rev=1.44&content-type=text/plain
44 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-doc/root-docs/ChangeLog?r1=1.43&r2=1.44
45
46 Index: ChangeLog
47 ===================================================================
48 RCS file: /var/cvsroot/gentoo-x86/app-doc/root-docs/ChangeLog,v
49 retrieving revision 1.43
50 retrieving revision 1.44
51 diff -u -r1.43 -r1.44
52 --- ChangeLog 11 Nov 2014 18:58:47 -0000 1.43
53 +++ ChangeLog 2 Mar 2015 08:25:14 -0000 1.44
54 @@ -1,6 +1,13 @@
55 # ChangeLog for app-doc/root-docs
56 -# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
57 -# $Header: /var/cvsroot/gentoo-x86/app-doc/root-docs/ChangeLog,v 1.43 2014/11/11 18:58:47 bircoph Exp $
58 +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
59 +# $Header: /var/cvsroot/gentoo-x86/app-doc/root-docs/ChangeLog,v 1.44 2015/03/02 08:25:14 bircoph Exp $
60 +
61 +*root-docs-5.34.26 (02 Mar 2015)
62 +
63 + 02 Mar 2015; Andrew Savchenko <bircoph@g.o> +root-docs-5.34.26.ebuild,
64 + +files/root-docs-6.00.01-fillpatterns.patch,
65 + +files/root-docs-6.00.01-makehtml.patch, metadata.xml:
66 + Version bump (from science overlay).
67
68 11 Nov 2014; Andrew Savchenko <bircoph@×××××.com> metadata.xml:
69 Package is now directly maintained instead of proxy-maintaining.
70
71
72
73 1.1 app-doc/root-docs/root-docs-5.34.26.ebuild
74
75 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-doc/root-docs/root-docs-5.34.26.ebuild?rev=1.1&view=markup
76 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-doc/root-docs/root-docs-5.34.26.ebuild?rev=1.1&content-type=text/plain
77
78 Index: root-docs-5.34.26.ebuild
79 ===================================================================
80 # Copyright 1999-2015 Gentoo Foundation
81 # Distributed under the terms of the GNU General Public License v2
82 # $Header: /var/cvsroot/gentoo-x86/app-doc/root-docs/root-docs-5.34.26.ebuild,v 1.1 2015/03/02 08:25:14 bircoph Exp $
83
84 EAPI=5
85
86 ROOT_PN="root"
87 ROOFIT_DOC_PV=2.91-33
88 ROOFIT_QS_DOC_PV=3.00
89 TMVA_DOC_PV=4.2.0
90
91 if [[ ${PV} == "9999" ]] ; then
92 inherit git-r3
93 EVCS_OFFLINE=yes # we need exactly the same checkout as root itself
94 EGIT_REPO_URI="http://root.cern.ch/git/root.git"
95 KEYWORDS=""
96 else
97 SRC_URI="ftp://root.cern.ch/${ROOT_PN}/${ROOT_PN}_v${PV}.source.tar.gz"
98 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
99 S="${WORKDIR}/${ROOT_PN}"
100 fi
101
102 inherit eutils multilib virtualx
103
104 DESCRIPTION="Documentation for ROOT Data Analysis Framework"
105 HOMEPAGE="http://root.cern.ch/drupal"
106 SRC_URI="${SRC_URI}
107 math? (
108 http://tmva.sourceforge.net/docu/TMVAUsersGuide.pdf -> TMVAUsersGuide-v${TMVA_DOC_PV}.pdf
109 http://root.cern.ch/download/doc/RooFit_Users_Manual_${ROOFIT_DOC_PV}.pdf
110 http://root.cern.ch/drupal/sites/default/files/roofit_quickstart_${ROOFIT_QS_DOC_PV}.pdf )
111 api? (
112 ${HOMEPAGE}/sites/all/themes/newsflash/images/blue/root-banner.png
113 ${HOMEPAGE}/sites/all/themes/newsflash/images/info.png )"
114
115 SLOT="0"
116 LICENSE="LGPL-2.1"
117 IUSE="api +math +metric http"
118
119 VIRTUALX_REQUIRED="api"
120
121 DEPEND="
122 ~sci-physics/root-${PV}[X,graphviz,opengl]
123 app-text/pandoc
124 app-text/texlive
125 dev-haskell/pandoc-citeproc[bibutils]
126 media-fonts/dejavu
127 virtual/pkgconfig"
128 RDEPEND=""
129
130 DOC_DIR="/usr/share/doc/${ROOT_PN}-${PV}"
131
132 src_unpack() {
133 if [[ ${PV} == "9999" ]] ; then
134 # we need to force sci-physics/root checkout here
135 git-r3_checkout "${EGIT_REPO_URI}" "${WORKDIR}/${P}" "sci-physics/root/0"
136 else
137 default
138 fi
139 }
140
141 src_prepare() {
142 use api && epatch \
143 "${FILESDIR}/${PN}-6.00.01-makehtml.patch" \
144 "${FILESDIR}/${PN}-6.00.01-fillpatterns.patch"
145 # prefixify the configure script
146 sed -i \
147 -e "s:/usr:${EPREFIX}/usr:g" \
148 configure || die "prefixify configure failed"
149 }
150
151 src_configure() {
152 # we need only to setup paths here, html docs doesn't depend on USE flags
153 if use api; then
154 ./configure \
155 --prefix="${EPREFIX}/usr" \
156 --etcdir="${EPREFIX}/etc/root" \
157 --libdir="${EPREFIX}/usr/$(get_libdir)/${PN}" \
158 --docdir="${EPREFIX}/usr/share/doc/${PF}" \
159 --tutdir="${EPREFIX}/usr/share/doc/${PF}/examples/tutorials" \
160 --testdir="${EPREFIX}/usr/share/doc/${PF}/examples/tests" \
161 --with-llvm-config="${EPREFIX}/usr/bin/llvm-config" \
162 --with-sys-iconpath="${EPREFIX}/usr/share/pixmaps" \
163 --nohowto
164 fi
165 }
166
167 src_compile() {
168 pdf_target=( primer users-guide )
169 local pdf_size=pdfa4
170 use metric || pdf_size=pdfletter
171 use math && pdf_target+=( minuit2 spectrum )
172 use http && pdf_target+=( HttpServer JSROOT )
173
174 for (( i=0; i<${#pdf_target[@]}; i++ )); do
175 emake -C documentation/"${pdf_target[i]}" "${pdf_size}"
176 done
177
178 if use api; then
179 # video drivers may want to access hardware devices
180 cards=$(echo -n /dev/dri/card* /dev/ati/card* /dev/nvidiactl* | sed 's/ /:/g')
181 [[ -n "${cards}" ]] && addpredict "${cards}"
182
183 ROOTSYS="${S}" Xemake html
184 # if root.exe crashes, return code will be 0 due to gdb attach,
185 # so we need to check if last html file was generated;
186 # this check is volatile and can't catch crash on the last file.
187 [[ -f htmldoc/tableDescriptor_st.html ]] || die "html doc generation crashed"
188 fi
189 }
190
191 src_install() {
192 insinto "${DOC_DIR}"
193
194 for (( i=0; i<${#pdf_target[@]}; i++ )); do
195 doins documentation/"${pdf_target[i]}"/*.pdf
196 done
197 unset pdf_target
198
199 use math && doins \
200 "${DISTDIR}/RooFit_Users_Manual_${ROOFIT_DOC_PV}.pdf" \
201 "${DISTDIR}/roofit_quickstart_${ROOFIT_QS_DOC_PV}.pdf" \
202 "${DISTDIR}/TMVAUsersGuide-v${TMVA_DOC_PV}.pdf"
203
204 if use api; then
205 # Install offline replacements for online messages
206 cp "${DISTDIR}"/{root-banner.png,info.png} htmldoc/ || die "cp failed"
207 # too large data to copy
208 dodir "${DOC_DIR}/html"
209 mv htmldoc/* "${ED}${DOC_DIR}/html/" || die
210 docompress -x ${DOC_DIR}/html
211 fi
212 }