Add `doc` use flag to dev-util/be ebuild.
authorW. Trevor King <wking@drexel.edu>
Fri, 17 Feb 2012 01:25:50 +0000 (20:25 -0500)
committerW. Trevor King <wking@drexel.edu>
Fri, 17 Feb 2012 01:25:50 +0000 (20:25 -0500)
ChangeLog
Manifest
be-9999.ebuild

index 6df1ded369d8b3c5c9b2919ac4b9d3ac3428cf09..d850873a7d3b064dc4f92dac936b4765f2ee6d46 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,10 @@
 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+*be-9999 (16 Feb 2012)
+  16 Feb 2012; W. Trevor King <wking@drexel.edu> be-9999.
+  Add `doc` use flag.
+
 *be-9999 (25 Jan 2012)
   25 Jan 2012; W. Trevor King <wking@drexel.edu> be-9999.
   Update to `git-2` eclass and EAPI 4, and make a couple of stylistic
index 2c8d430aa577bf322fd061f7778d4d85bd61577e..756537b282cfb450ca8fd361ec5810bfdf879f5f 100644 (file)
--- a/Manifest
+++ b/Manifest
@@ -1,3 +1,3 @@
-EBUILD be-9999.ebuild 1350 RMD160 d6784fe9b5d301f68317b9b25e32a4bf2c80498f SHA1 d8236c51f47f827c9d808fe36401b036087f9756 SHA256 15f14e89d6cc5a937dcdd115be08aad22f27705c59a3adbf97236a8f3781502a
-MISC ChangeLog 2798 RMD160 27fd740239c06a9eec96ed3bd278dd97471a6937 SHA1 1da3d92d05bb33bc071f658a657e59da77e894bf SHA256 45a8e2547f7b428d35ee02feefc32263be1c41a12a4ea3a42833642669670260
+EBUILD be-9999.ebuild 1599 RMD160 adb5fec9b1186227e8b75f96dcad2546e566c304 SHA1 e66cd3a132e8a7cb56f12f562d71c39209b01865 SHA256 70b1612e2ad396aed8c951882282478cb51de5b9fe2bd2e5129ca0412351326b
+MISC ChangeLog 2902 RMD160 d993c9c51c8d1e247e8e84c96d2bc2bb37b4cc15 SHA1 328d0551cda80141926c21b7c017d769e8dba3a9 SHA256 7ebba9b12e3fc419efcada6c5a1f2402082754776f7a8de4e836f17accdddc08
 MISC metadata.xml 321 RMD160 f1c228ca9454d018e84c7fa458cd8a1ddb4a22a0 SHA1 a21e5950c45f5bb268ab86c06f2d52c7a95d15fa SHA256 217043d3419af1b60adbd5e4028a57f1b1de1eebbe44afa9befe33faac60db37
index 312ee5fa1c7dd99bfce788432960521a2cda3282..1a12b87d5da4a9b6b43440a66778f6c4c312e56c 100644 (file)
@@ -25,14 +25,20 @@ HOMEPAGE="http://bugseverywhere.org/"
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
-IUSE="bash-completion"
+IUSE="bash-completion doc"
 
 RDEPEND="dev-lang/python
        dev-python/jinja
        dev-python/pyyaml"
 DEPEND="${RDEPEND}
        dev-vcs/git
-       dev-python/docutils"
+       dev-python/docutils
+       doc? (
+               dev-python/numpydoc
+               dev-util/scons
+       )"
+# dev-python/numpydoc is in the science overlay
+#   http://overlays.gentoo.org/proj/science/wiki/en
 
 src_unpack() {
        if [[ "${PV}" == "9999" ]] ; then
@@ -51,6 +57,9 @@ src_compile() {
        make libbe/_version.py || die "_version.py generation failed"
        emake RST2MAN="/usr/bin/rst2man.py" doc/man/be.1 \
          || die "be.1 generation failed"
+       if use doc ; then
+               make -C doc html
+       fi
        distutils_src_compile
 }
 
@@ -60,6 +69,9 @@ src_install() {
        if [[ "${PV}" != "9999" ]] ; then
                dodoc ChangeLog || die "dodoc failed"
        fi
+       if use doc ; then
+               dohtml -r doc/.build/html/*
+       fi
        if use bash-completion ; then
                insinto /etc/bash_completion.d/
                newins misc/completion/be.bash be