diff options
author | 2012-06-20 00:19:17 +0400 | |
---|---|---|
committer | 2012-06-20 00:19:17 +0400 | |
commit | f19e5c8fab523ace9a4b548048c01ec35375933c (patch) | |
tree | 48f4231478543cffb46041594bef744de116a248 /app-doc | |
parent | sci-physics/root: fix repoman warnings and update manifest (diff) | |
download | sci-f19e5c8fab523ace9a4b548048c01ec35375933c.tar.gz sci-f19e5c8fab523ace9a4b548048c01ec35375933c.tar.bz2 sci-f19e5c8fab523ace9a4b548048c01ec35375933c.zip |
app-doc/root-docs: separate htmldoc from root package
Diffstat (limited to 'app-doc')
-rw-r--r-- | app-doc/root-docs/ChangeLog | 12 | ||||
-rw-r--r-- | app-doc/root-docs/Manifest | 5 | ||||
-rw-r--r-- | app-doc/root-docs/files/root-docs-5.34-makehtml.patch | 52 | ||||
-rw-r--r-- | app-doc/root-docs/root-docs-9999.ebuild | 97 |
4 files changed, 165 insertions, 1 deletions
diff --git a/app-doc/root-docs/ChangeLog b/app-doc/root-docs/ChangeLog index a2798b57d..08580803e 100644 --- a/app-doc/root-docs/ChangeLog +++ b/app-doc/root-docs/ChangeLog @@ -1,7 +1,17 @@ # ChangeLog for app-doc/root-docs -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ +*root-docs-9999 (19 Jun 2012) + + 19 Jun 2012; Andrew Savchenko <bircoph@gmail.com> + +files/root-docs-5.34-makehtml.patch, +root-docs-9999.ebuild: + htmldoc generation for root must be separated, because it is + supposed to be run only root was installed to the live + filesystem. It can't be faked easily in the sandbox environment, + because ROOTSYS is not respected when --prefix or --*dir are + used for configure script. + *root-docs-5.32 (03 Dec 2011) 03 Dec 2011; Andrew Savchenko <bircoph@gmail.com> -root-docs-5.30.ebuild, diff --git a/app-doc/root-docs/Manifest b/app-doc/root-docs/Manifest index d20c0db1c..30de6317d 100644 --- a/app-doc/root-docs/Manifest +++ b/app-doc/root-docs/Manifest @@ -1 +1,6 @@ +AUX root-docs-5.34-makehtml.patch 1389 RMD160 ab7affbe7b525bdfa7822784e6aa8619604417c8 SHA1 3cd6f5fd9495c75e0b24dc008d94072943f68e2c SHA256 dc0395adc808432506d4c18fdd56bf20e2e51a414c6cf4345d45e657889763e1 DIST html532.tar.gz 868144440 RMD160 6de2c739cc7c56923338d34547d19258ccae13db SHA1 d2ca8298ca85067bac28609432c020e53168478b SHA256 9797ffc762acbe121a1be903a03de08b9e2254f7cae673cd9bf59664c6135108 +EBUILD root-docs-5.32.ebuild 647 RMD160 13ec32169f61265338ec6bd3cd9565c2d2120091 SHA1 550dcc4862605d04abc14cf90ecb1009f63b3a60 SHA256 2cb28751e7f28be261f635b9805996c56ef7f3faf0d65571497ab5239404689f +EBUILD root-docs-9999.ebuild 2689 RMD160 a34459ccd2002b0a7ede2c07e01205bb842d255a SHA1 9123d6916390beda5207eb582d994c4c72646d6c SHA256 8db4b13106fc81e618776d19b8f7bce306ade63ac86881b994f67984c0a26b62 +MISC ChangeLog 952 RMD160 035559972efb7d6d4c9dff3f0ea78ff1676c34ec SHA1 a16ce5d027e00b50d4a9454ba24a52d4a81d071b SHA256 f80525dfc3f1a1c1e4d5ee2996c2c1173b4d7b8d514ca391f4ca34018cdc48a7 +MISC metadata.xml 164 RMD160 6e4c63a6f70f174f40277eed39ac05fba4a49566 SHA1 e1af6f2028e69dee3c76e7e85353a144c83d3383 SHA256 9eddaccbdd2f6b3f93213d72782f07518dff1625fd8d63faf61dc97bd328b5e7 diff --git a/app-doc/root-docs/files/root-docs-5.34-makehtml.patch b/app-doc/root-docs/files/root-docs-5.34-makehtml.patch new file mode 100644 index 000000000..57fb69b37 --- /dev/null +++ b/app-doc/root-docs/files/root-docs-5.34-makehtml.patch @@ -0,0 +1,52 @@ +--- root/Makefile.orig 2012-05-30 00:50:46.000000000 +0400 ++++ root/Makefile 2012-05-30 00:51:05.839679686 +0400 +@@ -1088,16 +1088,7 @@ + releasenotes: + @$(MAKERELNOTES) + +-html: $(ROOTEXE) changelog releasenotes +-ifneq ($(USECONFIG),FALSE) +- @if [ "x`which root.exe`" != "x$(DESTDIR)$(BINDIR)/root.exe" ] \ +- || [ "`which root.exe`" -ot "bin/root.exe" ]; then \ +- echo 'ERROR: root.exe has not been installed by this build.'; \ +- echo ' Run "make install" before running "make html".'; \ +- exit 1; \ +- fi +-endif +- @$(MAKELOGHTML) ++html: compiledata releasenotes + @$(MAKEHTML) + + # Use DESTDIR to set a sandbox prior to calling "make install", e.g.: +--- root/build/unix/makehtml.sh.orig 2012-06-18 06:44:59.000000000 +0400 ++++ root/build/unix/makehtml.sh 2012-06-18 19:39:41.262064654 +0400 +@@ -1,17 +1,17 @@ + #! /bin/sh + +-ROOT=bin/root.exe ++ROOT=root.exe + + dir=`pwd` + cd tutorials + # we need tutorials/hsimple.root + if [ ! -f hsimple.root ]; then +- $ROOT -l -b -q hsimple.C ++ $ROOT -l -b -q hsimple.C && exit 1 + fi + cd tree + # we need tutorials/tree/cernstaff.root + if [ ! -f cernstaff.root ]; then +- $ROOT -l -b -q cernbuild.C ++ $ROOT -l -b -q cernbuild.C || exit 1 + fi + cd $dir + +@@ -19,7 +19,7 @@ + echo "Generating doc in directory htmldoc/..." + echo "" + +-$ROOT -l <<makedoc ++$ROOT -l <<makedoc || exit 1 + THtml h; + h.LoadAllLibs(); + h.MakeAll(); diff --git a/app-doc/root-docs/root-docs-9999.ebuild b/app-doc/root-docs/root-docs-9999.ebuild new file mode 100644 index 000000000..a4c77b178 --- /dev/null +++ b/app-doc/root-docs/root-docs-9999.ebuild @@ -0,0 +1,97 @@ +# 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.28-r1.ebuild,v 1.1 2011/05/17 17:51:07 bicatali Exp $ + +EAPI=4 + +ROOT_PN="root" +PATCH_PV="5.34" + +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" +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="" +KEYWORDS="~amd64 ~x86" + +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() { + mkdir -p "${ED}usr/share/doc/${PF}/" + # too large data to copy + mv htmldoc/* "${ED}usr/share/doc/${PF}/" +} + +pkg_postinst() { + eselect opengl set ${GL_IMPLEM} +} |