summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2012-06-27 17:30:22 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2012-06-27 17:30:22 +0000
commit57026642eebd0db1f8cc9660b094db7ca3259c94 (patch)
treeaa437d5fbb5b5df3f69edd5de3b37d8253f20a5b /app-doc
parentFix PYTHON invocation, thanks to Arfrever for the report (diff)
downloadhistorical-57026642eebd0db1f8cc9660b094db7ca3259c94.tar.gz
historical-57026642eebd0db1f8cc9660b094db7ca3259c94.tar.bz2
historical-57026642eebd0db1f8cc9660b094db7ca3259c94.zip
import to the main tree. keyword ~amd64-linux and ~x86-linux. cleaning
Package-Manager: portage-2.2.01.20430-prefix/cvs/Linux x86_64
Diffstat (limited to 'app-doc')
-rw-r--r--app-doc/root-docs/ChangeLog45
-rw-r--r--app-doc/root-docs/Manifest24
-rw-r--r--app-doc/root-docs/files/root-docs-5.32-makehtml.patch44
-rw-r--r--app-doc/root-docs/files/root-docs-5.34-makehtml.patch52
-rw-r--r--app-doc/root-docs/metadata.xml9
-rw-r--r--app-doc/root-docs/root-docs-5.32.03.ebuild97
-rw-r--r--app-doc/root-docs/root-docs-5.32.ebuild25
-rw-r--r--app-doc/root-docs/root-docs-5.34.00.ebuild96
8 files changed, 355 insertions, 37 deletions
diff --git a/app-doc/root-docs/ChangeLog b/app-doc/root-docs/ChangeLog
index 852777306a81..952b9ff27eb4 100644
--- a/app-doc/root-docs/ChangeLog
+++ b/app-doc/root-docs/ChangeLog
@@ -1,11 +1,52 @@
# ChangeLog for app-doc/root-docs
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-doc/root-docs/ChangeLog,v 1.18 2012/03/13 17:15:19 bicatali Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-doc/root-docs/ChangeLog,v 1.19 2012/06/27 17:30:22 bicatali Exp $
+
+ 27 Jun 2012; Sebastien Fabbro <fabbros@gentoo.org> -root-docs-5.32.ebuild,
+ +root-docs-5.32.03.ebuild, +files/root-docs-5.32-makehtml.patch,
+ +root-docs-5.34.00.ebuild, +files/root-docs-5.34-makehtml.patch,
+ metadata.xml:
+ import to the main tree. keyword ~amd64-linux and ~x86-linux. cleaning
+
+*root-docs-5.32.03 (20 Jun 2012)
+
+ 20 Jun 2012; Andrew Savchenko <bircoph@gmail.com> -root-docs-5.32.ebuild,
+ +root-docs-5.32.03.ebuild, +files/root-docs-5.32-makehtml.patch:
+ Backport htmldoc generation fixes for 5.32 branch.
+
+*root-docs-5.34.00 (19 Jun 2012)
+
+ 19 Jun 2012; Andrew Savchenko <bircoph@gmail.com> +root-docs-5.34.00.ebuild:
+ Version bump based on live ebuild.
+
+*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 (13 Mar 2012)
13 Mar 2012; SĂ©bastien Fabbro <bicatali@gentoo.org> +root-docs-5.32.ebuild:
- Version bump
+ Import to the main tree.
+
+*root-docs-5.32 (03 Dec 2011)
+
+ 03 Dec 2011; Andrew Savchenko <bircoph@gmail.com> -root-docs-5.30.ebuild,
+ +root-docs-5.32.ebuild:
+ Version bump.
+ Remove useless html/html32/ patch chunk, thus html files will be
+ installed directly into /usr/share/doc/${PF}/.
+
+*root-docs-5.30 (02 Aug 2011)
+
+ 02 Aug 2011; Andrew Savchenko <bircoph@gmail.com> +root-docs-5.30.ebuild,
+ +metadata.xml:
+ Version bump.
*root-docs-5.28-r1 (17 May 2011)
diff --git a/app-doc/root-docs/Manifest b/app-doc/root-docs/Manifest
index 76bfc34fae9e..641dc2ff9fe3 100644
--- a/app-doc/root-docs/Manifest
+++ b/app-doc/root-docs/Manifest
@@ -1,18 +1,22 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
-DIST html526.tar.gz 542192666 RMD160 3d7ff4da3731ee8321fd6c37dfff806e722bda1a SHA1 c74de77e097006459d01120a474f1d63215bab59 SHA256 9e5e9d10e93cb8be6b6e0dc63b0bc4848c2b9762459102be205d9269f81748d9
-DIST html528.tar.gz 1145194061 RMD160 f5d837d764e047898a1be6b163e14824e262e8c8 SHA1 605f1e8bf561bb62ae157020c6af331b1619844b SHA256 424ea6ec6fd1606c27379cf56f63ab52a99b7e3ac3b98f8b08a50841069ade5a
-DIST html532.tar.gz 868144440 RMD160 6de2c739cc7c56923338d34547d19258ccae13db SHA1 d2ca8298ca85067bac28609432c020e53168478b SHA256 9797ffc762acbe121a1be903a03de08b9e2254f7cae673cd9bf59664c6135108
+AUX root-docs-5.32-makehtml.patch 1074 RMD160 66a5184f36aec74b3f04f93ec3d7790eb221f25a SHA1 c4c760be51f90995b5a859b582fd62ab5fa7cee3 SHA256 cc5fc9fb780357c50137bbf1adb1630688abd288f3d337c06b154709e581a8de
+AUX root-docs-5.34-makehtml.patch 1389 RMD160 ab7affbe7b525bdfa7822784e6aa8619604417c8 SHA1 3cd6f5fd9495c75e0b24dc008d94072943f68e2c SHA256 dc0395adc808432506d4c18fdd56bf20e2e51a414c6cf4345d45e657889763e1
+DIST html526.tar.gz 77517004 RMD160 3b4c338a69ec7f0aeca390fc301c6d0c0e513826 SHA1 0c36e5882dd13199c2ea96c63b57d922bed01703 SHA256 42d53d8165e4fa8c5230783f0324d85c3449a8dace8f9649df6a3fb3436a142e
+DIST html528.tar.gz 36758631 RMD160 f5097ac71590edbee3fb00950d782c6a184c70ee SHA1 f22bb8a7f032033b92745788fcdf064ce2fc5163 SHA256 d4577426e22c1b1b2a4c99f4e0ffde615bb29915b0a8980c703bd0ed428f8f7a
+DIST root_v5.32.03.source.tar.gz 55529362 RMD160 90ee828638f322c169875135b51231810dada383 SHA1 cc1125660073918d0f47e209a069be2b9e849dc3 SHA256 575057c429625df69f0fa5c303287acefff185cda8cf8d1e9a6b2d21097d5ae6
+DIST root_v5.34.00.source.tar.gz 56214534 RMD160 6089493c70f94a1c4edd87ebe79adb9f3570f903 SHA1 e7c8352d92be8510b36001efb020f3eb0bf22ed1 SHA256 808e04876dbc9cfbfea54ee11ba35e90382e8ff4219dbdbe2d2236a9dadf7df1
EBUILD root-docs-5.26.00.ebuild 641 RMD160 c9f236399f511ae3307bacf3bd8ad0930085c9d1 SHA1 bb4571b80f4428c8f3df8c2c9f0c97861451928d SHA256 544ee35b699132146e0878c5a3f559da433d511e893e5236c4f34350c2c2fb90
EBUILD root-docs-5.28-r1.ebuild 644 RMD160 890e8ab96a7c1f88a909832918a4e20c08558b68 SHA1 1c480c2f82d522c6f06c93248776007ad0c4e272 SHA256 2f00f97a50db54e2284e1a940afac20ce4b99c1fdcbb487b3efddc4ce452e33d
-EBUILD root-docs-5.32.ebuild 644 RMD160 e8b74f863c37ed407f87f8ddee31483e95af7732 SHA1 21fd94e6793687b3816cfda641ac93ffa56e409a SHA256 9c5e5a8ffb4c416cc93d6d428af721317fbc81bb4f52a58840be961b69fba801
-MISC ChangeLog 2318 RMD160 93ff5439b5e82f17fb8c409d0e53659e557736ad SHA1 b8e48280dcc75ce666eb9258da5f9af93872fbed SHA256 ef99906352943918f0a1803288b4c5691bc9becace7b147d6b82dfc85bd457f6
-MISC metadata.xml 164 RMD160 6e4c63a6f70f174f40277eed39ac05fba4a49566 SHA1 e1af6f2028e69dee3c76e7e85353a144c83d3383 SHA256 9eddaccbdd2f6b3f93213d72782f07518dff1625fd8d63faf61dc97bd328b5e7
+EBUILD root-docs-5.32.03.ebuild 2742 RMD160 fa67e87e3a91f1c8820e3cf05a5a7a4efa345c88 SHA1 0a1b8b9756cc2f2fa3fc2b21f4d55a9980c90cad SHA256 b86299b8f979e00a991eb7adfc22baa11a50d6ac9d34c33881f3b59f61535789
+EBUILD root-docs-5.34.00.ebuild 2680 RMD160 49fa4a3adf1c2a54ed349e43acdee84cbac5e6c8 SHA1 c14c03e379c99fc99b74e8351d57441c120036aa SHA256 8b2ccf034b1bfa42ba4ed96e0931245582e62849599362eab933df36710600e5
+MISC ChangeLog 4000 RMD160 baba9d96aa5e833b93b11bdc45d2798898e4ad18 SHA1 d0470184a307e609d23f59235f4d40d700901bff SHA256 852992f4f2a2b819c66a69da4d03e319322bea9e1bf396939dbcd3b4129f17e3
+MISC metadata.xml 445 RMD160 7c03cc156077e890bc7051bb37a7bda72c4425b0 SHA1 85cd2df4d36e312634491d536aefc51d629d64a8 SHA256 00cd4d82a3a02cc4a2ac6dc347b57713f3772635f9be6987d05bb024ad9f3b72
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.18 (GNU/Linux)
+Version: GnuPG v2.0.19 (GNU/Linux)
-iEUEARECAAYFAk9fgLAACgkQ1ycZbhPLE2CNtgCdH7ZBHVCHOBHGHX6D6bj6coRP
-2zEAmImDYAHUDmUV/l3t7L4k5bE6+GM=
-=O2DQ
+iEYEARECAAYFAk/rQ2kACgkQ1ycZbhPLE2CDGgCfc+lrIycKpyATyvlhgE8WRkMU
+CcgAoK1bqDMGQAcMFzzCRttpLZlCYqbE
+=gEFD
-----END PGP SIGNATURE-----
diff --git a/app-doc/root-docs/files/root-docs-5.32-makehtml.patch b/app-doc/root-docs/files/root-docs-5.32-makehtml.patch
new file mode 100644
index 000000000000..5cad0102a4fa
--- /dev/null
+++ b/app-doc/root-docs/files/root-docs-5.32-makehtml.patch
@@ -0,0 +1,44 @@
+--- root/Makefile.orig 2012-05-23 21:07:07.000000000 +0400
++++ root/Makefile 2012-05-23 22:47:48.935680301 +0400
+@@ -1039,8 +1039,7 @@
+ releasenotes:
+ @$(MAKERELNOTES)
+
+-html: $(ROOTEXE) changelog releasenotes
+- @$(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/files/root-docs-5.34-makehtml.patch b/app-doc/root-docs/files/root-docs-5.34-makehtml.patch
new file mode 100644
index 000000000000..57fb69b37b4a
--- /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/metadata.xml b/app-doc/root-docs/metadata.xml
index 131ee598cb70..8d64e524d20f 100644
--- a/app-doc/root-docs/metadata.xml
+++ b/app-doc/root-docs/metadata.xml
@@ -1,5 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
+<maintainer>
+ <email>bircoph@gmail.com</email>
+ <name>Andrew Savchenko</name>
+ <description>Maintainer. Assign bugs to him</description>
+</maintainer>
<herd>sci-physics</herd>
+<longdescription lang="en">
+ This package contains the automatically generated ROOT class
+ documentation.
+</longdescription>
</pkgmetadata>
diff --git a/app-doc/root-docs/root-docs-5.32.03.ebuild b/app-doc/root-docs/root-docs-5.32.03.ebuild
new file mode 100644
index 000000000000..c63aef3ba5aa
--- /dev/null
+++ b/app-doc/root-docs/root-docs-5.32.03.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.32.03.ebuild,v 1.1 2012/06/27 17:30:22 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]
+ >=sci-physics/root-5.32.03-r3[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.32.ebuild b/app-doc/root-docs/root-docs-5.32.ebuild
deleted file mode 100644
index 9be24d0fd0b8..000000000000
--- a/app-doc/root-docs/root-docs-5.32.ebuild
+++ /dev/null
@@ -1,25 +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.ebuild,v 1.1 2012/03/13 17:15:19 bicatali Exp $
-
-EAPI=3
-inherit versionator
-
-DESCRIPTION="An Object-Oriented Data Analysis Framework"
-MYP=html$(replace_version_separator 1 '')
-
-SRC_URI="ftp://root.cern.ch/root/${MYP}.tar.gz"
-HOMEPAGE="http://root.cern.ch/"
-
-SLOT="0"
-LICENSE="as-is"
-IUSE=""
-KEYWORDS="~amd64 ~x86"
-
-S=${WORKDIR}/htmldoc
-
-src_install() {
- insinto /usr/share/doc/${PF}/html
- # use mv, there is too much to copy
- mv ${MYP}/* "${ED}"/usr/share/doc/${PF}/
-}
diff --git a/app-doc/root-docs/root-docs-5.34.00.ebuild b/app-doc/root-docs/root-docs-5.34.00.ebuild
new file mode 100644
index 000000000000..ec6d87aeff92
--- /dev/null
+++ b/app-doc/root-docs/root-docs-5.34.00.ebuild
@@ -0,0 +1,96 @@
+# 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.34.00.ebuild,v 1.1 2012/06/27 17:30:22 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=""
+
+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}
+}