From ef9d4d0a57b04318d710f951b4dec5db2fb6b19c Mon Sep 17 00:00:00 2001 From: Sebastien Fabbro Date: Wed, 26 Mar 2014 20:38:21 +0000 Subject: Added standard root docs and trigger html api doc with api flag. Clean up. (Portage version: 2.2.8-prefix/cvs/Linux x86_64, signed Manifest commit with key 0x13CB1360) --- app-doc/root-docs/ChangeLog | 11 +- .../root-docs/files/root-docs-5.34.18-html.patch | 12 ++ app-doc/root-docs/metadata.xml | 5 + app-doc/root-docs/root-docs-5.32.04.ebuild | 96 -------------- app-doc/root-docs/root-docs-5.34.09.ebuild | 76 ----------- app-doc/root-docs/root-docs-5.34.10.ebuild | 77 ------------ app-doc/root-docs/root-docs-5.34.13.ebuild | 77 ------------ app-doc/root-docs/root-docs-5.34.15.ebuild | 81 ------------ app-doc/root-docs/root-docs-5.34.18-r1.ebuild | 139 +++++++++++++++++++++ 9 files changed, 166 insertions(+), 408 deletions(-) create mode 100644 app-doc/root-docs/files/root-docs-5.34.18-html.patch delete mode 100644 app-doc/root-docs/root-docs-5.32.04.ebuild delete mode 100644 app-doc/root-docs/root-docs-5.34.09.ebuild delete mode 100644 app-doc/root-docs/root-docs-5.34.10.ebuild delete mode 100644 app-doc/root-docs/root-docs-5.34.13.ebuild delete mode 100644 app-doc/root-docs/root-docs-5.34.15.ebuild create mode 100644 app-doc/root-docs/root-docs-5.34.18-r1.ebuild (limited to 'app-doc/root-docs') diff --git a/app-doc/root-docs/ChangeLog b/app-doc/root-docs/ChangeLog index 1526c45bad30..1993d21aa61a 100644 --- a/app-doc/root-docs/ChangeLog +++ b/app-doc/root-docs/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for app-doc/root-docs # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-doc/root-docs/ChangeLog,v 1.40 2014/03/18 19:19:00 bicatali Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-doc/root-docs/ChangeLog,v 1.41 2014/03/26 20:38:20 bicatali Exp $ + +*root-docs-5.34.18-r1 (26 Mar 2014) + + 26 Mar 2014; Sébastien Fabbro + +files/root-docs-5.34.18-html.patch, +root-docs-5.34.18-r1.ebuild, + -root-docs-5.32.04.ebuild, -root-docs-5.34.09.ebuild, + -root-docs-5.34.10.ebuild, -root-docs-5.34.13.ebuild, + -root-docs-5.34.15.ebuild, metadata.xml: + Added standard root docs and trigger html api doc with api flag. Clean up. *root-docs-5.34.18 (18 Mar 2014) diff --git a/app-doc/root-docs/files/root-docs-5.34.18-html.patch b/app-doc/root-docs/files/root-docs-5.34.18-html.patch new file mode 100644 index 000000000000..3b80b39cda49 --- /dev/null +++ b/app-doc/root-docs/files/root-docs-5.34.18-html.patch @@ -0,0 +1,12 @@ +--- root/html/src/THtml.cxx.orig 2012-05-25 16:18:10.000000000 +0400 ++++ root/html/src/THtml.cxx 2012-05-29 19:22:40.810563296 +0400 +@@ -1913,6 +1913,9 @@ + void THtml::CreateStyleSheet() const { + // Write the default ROOT style sheet. + CopyFileFromEtcDir("ROOT.css"); ++ CopyFileFromEtcDir("info.png"); ++ CopyFileFromEtcDir("root-banner.png"); ++ CopyFileFromEtcDir("rootdrawing-logo.png"); + CopyFileFromEtcDir("shadowAlpha.png"); + CopyFileFromEtcDir("shadow.gif"); + } diff --git a/app-doc/root-docs/metadata.xml b/app-doc/root-docs/metadata.xml index ad9781f995fa..d95f701ec14e 100644 --- a/app-doc/root-docs/metadata.xml +++ b/app-doc/root-docs/metadata.xml @@ -12,4 +12,9 @@ This package contains the automatically generated ROOT class documentation. + + Generate html API documentation + Downloads all math related documentation + Default to A4 paper size and metric measurement + diff --git a/app-doc/root-docs/root-docs-5.32.04.ebuild b/app-doc/root-docs/root-docs-5.32.04.ebuild deleted file mode 100644 index 10e30771f8b3..000000000000 --- a/app-doc/root-docs/root-docs-5.32.04.ebuild +++ /dev/null @@ -1,96 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-doc/root-docs/root-docs-5.32.04.ebuild,v 1.1 2012/10/26 15:39:53 bicatali Exp $ - -EAPI=4 - -ROOT_PN="root" -PATCH_PV="5.32" - -if [[ ${PV} == "9999" ]] ; then - _SVN_DEP="dev-vcs/subversion" - SRC_URI="" - KEYWORDS="" -else - SRC_URI="ftp://root.cern.ch/${ROOT_PN}/${ROOT_PN}_v${PV}.source.tar.gz" - KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" -fi - -inherit eutils multilib toolchain-funcs virtualx - -DESCRIPTION="API documentation for ROOT (An Object-Oriented Data Analysis Framework)" -HOMEPAGE="http://root.cern.ch/" - -SLOT="0" -LICENSE="LGPL-2.1" -IUSE="" - -S="${WORKDIR}/${ROOT_PN}" -VIRTUALX_REQUIRED="always" - -DEPEND=" - ~sci-physics/root-${PV}[X,doc,graphviz,htmldoc,opengl] - virtual/pkgconfig - ${_SVN_DEP}" -RDEPEND="" - -pkg_setup() { - # sandboxed user can't access video hardware, so xorg-x11 implementation - # should be used - GL_IMPLEM=$(eselect opengl show) - eselect opengl set xorg-x11 -} - -src_unpack() { - # can't use subversion eclass functions, - # we need to svn export the same root tree: - # 1) svn revisions for root and root-docs must be the same; - # 2) no need to abuse server twice. - if [[ ${PV} == "9999" ]] ; then - addpredict "${PORTAGE_ACTUAL_DISTDIR:-${DISTDIR}}/svn-src/${ROOT_PN}/trunk/.svn" - svn export "${PORTAGE_ACTUAL_DISTDIR:-${DISTDIR}}/svn-src/${ROOT_PN}/trunk" \ - "${S}" || die "svn export failed" - else - default - fi -} - -src_prepare() { - epatch "${FILESDIR}"/${PN}-${PATCH_PV}-makehtml.patch -} - -src_configure() { - # we need only to setup paths here, html docs doesn't depend on USE flags - ./configure \ - --prefix="${EPREFIX}"/usr \ - --etcdir="${EPREFIX}"/etc/root \ - --libdir="${EPREFIX}"/usr/$(get_libdir)/${PN} \ - --docdir="${EPREFIX}"/usr/share/doc/${PF} \ - --tutdir="${EPREFIX}"/usr/share/doc/${PF}/examples/tutorials \ - --testdir="${EPREFIX}"/usr/share/doc/${PF}/examples/tests \ - --with-cc=$(tc-getCC) \ - --with-cxx=$(tc-getCXX) \ - --with-f77=$(tc-getFC) \ - --with-ld=$(tc-getCXX) \ - --with-afs-shared=yes \ - --with-llvm-config="${EPREFIX}"/usr/bin/llvm-config \ - --with-sys-iconpath="${EPREFIX}"/usr/share/pixmaps -} - -src_compile() { - ROOTSYS="${S}" Xemake html - # if root.exe crashes, return code will be 0 due to gdb attach, - # so we need to check if last html file was generated; - # this check is volatile and can't catch crash on the last file. - [[ -f htmldoc/timespec.html ]] || die "looks like html doc generation crashed" -} - -src_install() { - dodir /usr/share/doc/${PF} - # too large data to copy - mv htmldoc/* "${ED}usr/share/doc/${PF}/" -} - -pkg_postinst() { - eselect opengl set ${GL_IMPLEM} -} diff --git a/app-doc/root-docs/root-docs-5.34.09.ebuild b/app-doc/root-docs/root-docs-5.34.09.ebuild deleted file mode 100644 index 79ffdb76afc9..000000000000 --- a/app-doc/root-docs/root-docs-5.34.09.ebuild +++ /dev/null @@ -1,76 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-doc/root-docs/root-docs-5.34.09.ebuild,v 1.1 2013/06/29 10:44:38 xmw Exp $ - -EAPI=5 - -ROOT_PN="root" -PATCH_PV="5.34.01" - -if [[ ${PV} == "9999" ]] ; then - _GIT=git-2 - SRC_URI="" - KEYWORDS="" -else - SRC_URI="ftp://root.cern.ch/${ROOT_PN}/${ROOT_PN}_v${PV}.source.tar.gz" - KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" -fi - -inherit eutils multilib toolchain-funcs virtualx ${_GIT} - -DESCRIPTION="API documentation for ROOT (An Object-Oriented Data Analysis Framework)" -HOMEPAGE="http://root.cern.ch/" - -SLOT="0" -LICENSE="LGPL-2.1" -IUSE="" - -S="${WORKDIR}/${ROOT_PN}" -VIRTUALX_REQUIRED="always" - -DEPEND=" - ~sci-physics/root-${PV}[X,doc,graphviz,htmldoc,opengl] - virtual/pkgconfig - ${_GIT_DEP}" -RDEPEND="" - -src_prepare() { - epatch "${FILESDIR}"/${PN}-${PATCH_PV}-makehtml.patch -} - -src_configure() { - # we need only to setup paths here, html docs doesn't depend on USE flags - ./configure \ - --prefix="${EPREFIX}"/usr \ - --etcdir="${EPREFIX}"/etc/root \ - --libdir="${EPREFIX}"/usr/$(get_libdir)/${PN} \ - --docdir="${EPREFIX}"/usr/share/doc/${PF} \ - --tutdir="${EPREFIX}"/usr/share/doc/${PF}/examples/tutorials \ - --testdir="${EPREFIX}"/usr/share/doc/${PF}/examples/tests \ - --with-cc=$(tc-getCC) \ - --with-cxx=$(tc-getCXX) \ - --with-f77=$(tc-getFC) \ - --with-ld=$(tc-getCXX) \ - --with-afs-shared=yes \ - --with-llvm-config="${EPREFIX}"/usr/bin/llvm-config \ - --with-sys-iconpath="${EPREFIX}"/usr/share/pixmaps -} - -src_compile() { - # video drivers may want to access hardware devices - cards=$(echo -n /dev/dri/card* /dev/ati/card* /dev/nvidiactl* | sed 's/ /:/g') - [[ -n "${cards}" ]] && addpredict "${cards}" - - ROOTSYS="${S}" Xemake html - # if root.exe crashes, return code will be 0 due to gdb attach, - # so we need to check if last html file was generated; - # this check is volatile and can't catch crash on the last file. - [[ -f htmldoc/timespec.html ]] || die "looks like html doc generation crashed" -} - -src_install() { - dodir /usr/share/doc/${PF} - # too large data to copy - mv htmldoc/* "${ED}usr/share/doc/${PF}/" - docompress -x "${EPREFIX}/usr/share/doc/${PF}/" -} diff --git a/app-doc/root-docs/root-docs-5.34.10.ebuild b/app-doc/root-docs/root-docs-5.34.10.ebuild deleted file mode 100644 index cac16f9fc1a5..000000000000 --- a/app-doc/root-docs/root-docs-5.34.10.ebuild +++ /dev/null @@ -1,77 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-doc/root-docs/root-docs-5.34.10.ebuild,v 1.2 2013/12/05 17:34:49 bicatali Exp $ - -EAPI=5 - -ROOT_PN="root" -PATCH_PV="5.34.01" - -if [[ ${PV} == "9999" ]] ; then - _GIT=git-2 - SRC_URI="" - KEYWORDS="" -else - SRC_URI="ftp://root.cern.ch/${ROOT_PN}/${ROOT_PN}_v${PV}.source.tar.gz" - KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" -fi - -inherit eutils multilib toolchain-funcs virtualx ${_GIT} - -DESCRIPTION="API documentation for ROOT (An Object-Oriented Data Analysis Framework)" -HOMEPAGE="http://root.cern.ch/" - -SLOT="0" -LICENSE="LGPL-2.1" -IUSE="" - -S="${WORKDIR}/${ROOT_PN}" -VIRTUALX_REQUIRED="always" - -DEPEND=" - ~sci-physics/root-${PV}[X,doc,graphviz,htmldoc,opengl] - virtual/pkgconfig - ${_GIT_DEP}" -RDEPEND="" - -src_prepare() { - epatch "${FILESDIR}"/${PN}-${PATCH_PV}-makehtml.patch -} - -src_configure() { - # we need only to setup paths here, html docs doesn't depend on USE flags - ./configure \ - --prefix="${EPREFIX}"/usr \ - --etcdir="${EPREFIX}"/etc/root \ - --libdir="${EPREFIX}"/usr/$(get_libdir)/${PN} \ - --docdir="${EPREFIX}"/usr/share/doc/${PF} \ - --tutdir="${EPREFIX}"/usr/share/doc/${PF}/examples/tutorials \ - --testdir="${EPREFIX}"/usr/share/doc/${PF}/examples/tests \ - --with-cc=$(tc-getCC) \ - --with-cxx=$(tc-getCXX) \ - --with-f77=$(tc-getFC) \ - --with-ld=$(tc-getCXX) \ - --with-afs-shared=yes \ - --with-llvm-config="${EPREFIX}"/usr/bin/llvm-config \ - --with-sys-iconpath="${EPREFIX}"/usr/share/pixmaps \ - --nohowto -} - -src_compile() { - # video drivers may want to access hardware devices - cards=$(echo -n /dev/dri/card* /dev/ati/card* /dev/nvidiactl* | sed 's/ /:/g') - [[ -n "${cards}" ]] && addpredict "${cards}" - - ROOTSYS="${S}" Xemake html - # if root.exe crashes, return code will be 0 due to gdb attach, - # so we need to check if last html file was generated; - # this check is volatile and can't catch crash on the last file. - [[ -f htmldoc/timespec.html ]] || die "looks like html doc generation crashed" -} - -src_install() { - dodir /usr/share/doc/${PF} - # too large data to copy - mv htmldoc/* "${ED}usr/share/doc/${PF}/" - docompress -x "${EPREFIX}/usr/share/doc/${PF}/" -} diff --git a/app-doc/root-docs/root-docs-5.34.13.ebuild b/app-doc/root-docs/root-docs-5.34.13.ebuild deleted file mode 100644 index 312500ece71d..000000000000 --- a/app-doc/root-docs/root-docs-5.34.13.ebuild +++ /dev/null @@ -1,77 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-doc/root-docs/root-docs-5.34.13.ebuild,v 1.1 2013/12/05 17:34:49 bicatali Exp $ - -EAPI=5 - -ROOT_PN="root" -PATCH_PV="5.34.01" - -if [[ ${PV} == "9999" ]] ; then - _GIT=git-2 - SRC_URI="" - KEYWORDS="" -else - SRC_URI="ftp://root.cern.ch/${ROOT_PN}/${ROOT_PN}_v${PV}.source.tar.gz" - KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" -fi - -inherit eutils multilib toolchain-funcs virtualx ${_GIT} - -DESCRIPTION="API documentation for ROOT (An Object-Oriented Data Analysis Framework)" -HOMEPAGE="http://root.cern.ch/" - -SLOT="0" -LICENSE="LGPL-2.1" -IUSE="" - -S="${WORKDIR}/${ROOT_PN}" -VIRTUALX_REQUIRED="always" - -DEPEND=" - ~sci-physics/root-${PV}[X,doc,graphviz,htmldoc,opengl] - virtual/pkgconfig - ${_GIT_DEP}" -RDEPEND="" - -src_prepare() { - epatch "${FILESDIR}"/${PN}-${PATCH_PV}-makehtml.patch -} - -src_configure() { - # we need only to setup paths here, html docs doesn't depend on USE flags - ./configure \ - --prefix="${EPREFIX}"/usr \ - --etcdir="${EPREFIX}"/etc/root \ - --libdir="${EPREFIX}"/usr/$(get_libdir)/${PN} \ - --docdir="${EPREFIX}"/usr/share/doc/${PF} \ - --tutdir="${EPREFIX}"/usr/share/doc/${PF}/examples/tutorials \ - --testdir="${EPREFIX}"/usr/share/doc/${PF}/examples/tests \ - --with-cc=$(tc-getCC) \ - --with-cxx=$(tc-getCXX) \ - --with-f77=$(tc-getFC) \ - --with-ld=$(tc-getCXX) \ - --with-afs-shared=yes \ - --with-llvm-config="${EPREFIX}"/usr/bin/llvm-config \ - --with-sys-iconpath="${EPREFIX}"/usr/share/pixmaps \ - --nohowto -} - -src_compile() { - # video drivers may want to access hardware devices - cards=$(echo -n /dev/dri/card* /dev/ati/card* /dev/nvidiactl* | sed 's/ /:/g') - [[ -n "${cards}" ]] && addpredict "${cards}" - - ROOTSYS="${S}" Xemake html - # if root.exe crashes, return code will be 0 due to gdb attach, - # so we need to check if last html file was generated; - # this check is volatile and can't catch crash on the last file. - [[ -f htmldoc/timespec.html ]] || die "looks like html doc generation crashed" -} - -src_install() { - dodir /usr/share/doc/${PF} - # too large data to copy - mv htmldoc/* "${ED}usr/share/doc/${PF}/" - docompress -x "${EPREFIX}/usr/share/doc/${PF}/" -} diff --git a/app-doc/root-docs/root-docs-5.34.15.ebuild b/app-doc/root-docs/root-docs-5.34.15.ebuild deleted file mode 100644 index 0154ded87a68..000000000000 --- a/app-doc/root-docs/root-docs-5.34.15.ebuild +++ /dev/null @@ -1,81 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-doc/root-docs/root-docs-5.34.15.ebuild,v 1.1 2014/02/24 00:04:41 bicatali Exp $ - -EAPI=5 - -ROOT_PN="root" -PATCH_PV="5.34.01" - -if [[ ${PV} == "9999" ]] ; then - _GIT=git-r3 - SRC_URI="" - KEYWORDS="" -else - SRC_URI="ftp://root.cern.ch/${ROOT_PN}/${ROOT_PN}_v${PV}.source.tar.gz" - KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" -fi - -inherit eutils multilib toolchain-funcs virtualx ${_GIT} - -DESCRIPTION="API documentation for ROOT (An Object-Oriented Data Analysis Framework)" -HOMEPAGE="http://root.cern.ch/" - -SLOT="0" -LICENSE="LGPL-2.1" -IUSE="" - -S="${WORKDIR}/${ROOT_PN}" -VIRTUALX_REQUIRED="always" - -DEPEND=" - ~sci-physics/root-${PV}[X,doc,graphviz,htmldoc,opengl] - virtual/pkgconfig - ${_GIT_DEP}" -RDEPEND="" - -src_prepare() { - epatch "${FILESDIR}"/${PN}-${PATCH_PV}-makehtml.patch - # prefixify the configure script - sed -i \ - -e 's:/usr:${EPREFIX}/usr:g' \ - configure || die "prefixify configure failed" -} - -src_configure() { - # we need only to setup paths here, html docs doesn't depend on USE flags - ./configure \ - --prefix="${EPREFIX}"/usr \ - --etcdir="${EPREFIX}"/etc/root \ - --libdir="${EPREFIX}"/usr/$(get_libdir)/${PN} \ - --docdir="${EPREFIX}"/usr/share/doc/${PF} \ - --tutdir="${EPREFIX}"/usr/share/doc/${PF}/examples/tutorials \ - --testdir="${EPREFIX}"/usr/share/doc/${PF}/examples/tests \ - --with-cc=$(tc-getCC) \ - --with-cxx=$(tc-getCXX) \ - --with-f77=$(tc-getFC) \ - --with-ld=$(tc-getCXX) \ - --with-afs-shared=yes \ - --with-llvm-config="${EPREFIX}"/usr/bin/llvm-config \ - --with-sys-iconpath="${EPREFIX}"/usr/share/pixmaps \ - --nohowto -} - -src_compile() { - # video drivers may want to access hardware devices - cards=$(echo -n /dev/dri/card* /dev/ati/card* /dev/nvidiactl* | sed 's/ /:/g') - [[ -n "${cards}" ]] && addpredict "${cards}" - - ROOTSYS="${S}" Xemake html - # if root.exe crashes, return code will be 0 due to gdb attach, - # so we need to check if last html file was generated; - # this check is volatile and can't catch crash on the last file. - [[ -f htmldoc/timespec.html ]] || die "looks like html doc generation crashed" -} - -src_install() { - dodir /usr/share/doc/${PF} - # too large data to copy - mv htmldoc/* "${ED}usr/share/doc/${PF}/" - docompress -x "${EPREFIX}/usr/share/doc/${PF}/" -} diff --git a/app-doc/root-docs/root-docs-5.34.18-r1.ebuild b/app-doc/root-docs/root-docs-5.34.18-r1.ebuild new file mode 100644 index 000000000000..2efcdb98797b --- /dev/null +++ b/app-doc/root-docs/root-docs-5.34.18-r1.ebuild @@ -0,0 +1,139 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-doc/root-docs/root-docs-5.34.18-r1.ebuild,v 1.1 2014/03/26 20:38:20 bicatali Exp $ + +EAPI=5 + +ROOT_PN="root" +ROOFIT_DOC_PV=2.91-33 +TMVA_DOC_PV=4.2.0 + +if [[ ${PV} == "9999" ]] ; then + inherit git-r3 + SRC_URI="" + KEYWORDS="" +else + SRC_URI="ftp://root.cern.ch/${ROOT_PN}/${ROOT_PN}_v${PV}.source.tar.gz" + KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +fi + +inherit eutils multilib toolchain-funcs virtualx + +DESCRIPTION="Documentation for ROOT Data Analysis Framework" +HOMEPAGE="http://root.cern.ch/drupal" +DOC_URI="ftp://root.cern.ch/root" +SRC_URI="${SRC_URI} + math? ( + http://tmva.sourceforge.net/docu/TMVAUsersGuide.pdf -> TMVAUsersGuide-v${TMVA_DOC_PV}.pdf + ${DOC_URI}/RooFit_Users_Manual_${ROOFIT_DOC_PV}.pdf + metric? ( ${DOC_URI}/spectrum/Spectrum.pdf -> Spectrum-${PV}.pdf ) + !metric? ( ${DOC_URI}/spectrum/SpectrumLetter.pdf -> SpectrumLetter-${PV}.pdf ) ) + metric? ( + ${DOC_URI}/ROOTUsersGuideA4.pdf -> ROOTUsersGuideA4-${PV}.pdf + ${DOC_URI}/primer/ROOTPrimer.pdf -> ROOTPrimer-${PV}.pdf ) + !metric? ( + ${DOC_URI}/ROOTUsersGuideLetter.pdf -> ROOTUsersGuideLetter-${PV}.pdf + ${DOC_URI}/primer/ROOTPrimerLetter.pdf -> ROOTPrimerLetter-${PV}.pdf ) + api? ( + ${HOMEPAGE}/sites/default/files/rootdrawing-logo.png + ${HOMEPAGE}/sites/all/themes/newsflash/images/blue/root-banner.png + ${HOMEPAGE}/sites/all/themes/newsflash/images/info.png )" + +SLOT="0" +LICENSE="LGPL-2.1" +IUSE="api +math +metric" + +VIRTUALX_REQUIRED="api" + +DEPEND=" + ~sci-physics/root-${PV}[X,graphviz,opengl] + virtual/pkgconfig" +RDEPEND="" + +S="${WORKDIR}/${ROOT_PN}" +DOC_DIR="/usr/share/doc/${ROOT_PN}-${PV}" + +src_prepare() { + # Make html docs self-consistent for offline work (based on Fedora spec) + if use api; then + epatch \ + "${FILESDIR}"/${PN}-5.34.01-makehtml.patch \ + "${FILESDIR}"/${PN}-5.34.18-html.patch + # make images local + sed -i \ + -e 's!http://root.cern.ch/drupal/sites/all/themes/newsflash/images/blue/!!' \ + etc/html/ROOT.css || die "html sed failed" + sed -i \ + -e 's!http://root.cern.ch/drupal/sites/all/themes/newsflash/images/!!' \ + etc/html/ROOT.css || die "html sed failed" + sed -i \ + -e 's!http://root.cern.ch/drupal/sites/default/files/!!' \ + etc/html/header.html || die "html sed failed" + + cp "${DISTDIR}"/{rootdrawing-logo.png,root-banner.png,info.png} \ + etc/html || die "html preparation failed" + fi + # prefixify the configure script + sed -i \ + -e "s:/usr:${EPREFIX}/usr:g" \ + configure || die "prefixify configure failed" +} + +src_configure() { + # we need only to setup paths here, html docs doesn't depend on USE flags + if use api; then + ./configure \ + --prefix="${EPREFIX}/usr" \ + --etcdir="${EPREFIX}/etc/root" \ + --libdir="${EPREFIX}/usr/$(get_libdir)/${PN}" \ + --docdir="${EPREFIX}/usr/share/doc/${PF}" \ + --tutdir="${EPREFIX}/usr/share/doc/${PF}/examples/tutorials" \ + --testdir="${EPREFIX}/usr/share/doc/${PF}/examples/tests" \ + --with-cc="$(tc-getCC)" \ + --with-cxx="$(tc-getCXX)" \ + --with-f77="$(tc-getFC)" \ + --with-ld="$(tc-getCXX)" \ + --with-afs-shared=yes \ + --with-llvm-config="${EPREFIX}/usr/bin/llvm-config" \ + --with-sys-iconpath="${EPREFIX}/usr/share/pixmaps" \ + --nohowto + fi +} + +src_compile() { + if use html; then + # video drivers may want to access hardware devices + cards=$(echo -n /dev/dri/card* /dev/ati/card* /dev/nvidiactl* | sed 's/ /:/g') + [[ -n "${cards}" ]] && addpredict "${cards}" + + ROOTSYS="${S}" Xemake html + # if root.exe crashes, return code will be 0 due to gdb attach, + # so we need to check if last html file was generated; + # this check is volatile and can't catch crash on the last file. + [[ -f htmldoc/timespec.html ]] || die "html doc generation crashed" + fi +} + +src_install() { + insinto ${DOC_DIR} + + if use metric; then + doins "${DISTDIR}"/ROOTUsersGuideA4-${PV}.pdf + doins "${DISTDIR}"/ROOTPrimer-${PV}.pdf + use math && doins "${DISTDIR}"/Spectrum-${PV}.pdf + else + doins "${DISTDIR}"/ROOTUsersGuideLetter-${PV}.pdf + doins "${DISTDIR}"/ROOTPrimerLetter-${PV}.pdf + use math && doins "${DISTDIR}"/SpectrumLetter-${PV}.pdf + fi + use math && doins \ + "${DISTDIR}"/RooFit_Users_Manual_${ROOFIT_DOC_PV}.pdf \ + "${DISTDIR}"/TMVAUsersGuide-v${TMVA_DOC_PV}.pdf + + if use api; then + # too large data to copy + dodir ${DOC_DIR}/html + mv htmldoc/* "${ED}${DOC_DIR}/html/" || die + docompress -x ${DOC_DIR}/html + fi +} -- cgit v1.2.3-65-gdbad