aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Goncalves Martins (rafaelmartins) <rafael@rafaelmartins.eng.br>2010-08-04 13:30:40 -0300
committerRafael Goncalves Martins (rafaelmartins) <rafael@rafaelmartins.eng.br>2010-08-04 13:30:40 -0300
commit293a8ee95775f049edaa7a608f4c69a5463ba8df (patch)
tree0a7fbbdc9ab58fe02762b74c52134780d859153d /app-portage/g-octave/g-octave-9999.ebuild
parent[app-portage/g-octave] Version bump (diff)
downloadsci-293a8ee95775f049edaa7a608f4c69a5463ba8df.tar.gz
sci-293a8ee95775f049edaa7a608f4c69a5463ba8df.tar.bz2
sci-293a8ee95775f049edaa7a608f4c69a5463ba8df.zip
[app-portage/g-octave] Updated the live ebuild. Added the USE flag 'doc'
(Portage version: 2.2_rc67/git/Linux x86_64) (Unsigned Manifest commit)
Diffstat (limited to 'app-portage/g-octave/g-octave-9999.ebuild')
-rw-r--r--app-portage/g-octave/g-octave-9999.ebuild16
1 files changed, 14 insertions, 2 deletions
diff --git a/app-portage/g-octave/g-octave-9999.ebuild b/app-portage/g-octave/g-octave-9999.ebuild
index 17c39939f..7bec90ae5 100644
--- a/app-portage/g-octave/g-octave-9999.ebuild
+++ b/app-portage/g-octave/g-octave-9999.ebuild
@@ -16,19 +16,31 @@ EGIT_REPO_URI="git://git.overlays.gentoo.org/proj/g-octave.git"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS=""
-IUSE="test"
+IUSE="doc test"
-DEPEND=">=dev-python/docutils-0.6"
+DEPEND=">=dev-python/docutils-0.6
+ doc? ( >=dev-python/sphinx-1.0 )"
RDEPEND="sys-apps/portage"
S="${WORKDIR}/${PN}"
PYTHON_MODNAME="g_octave"
+src_compile() {
+ distutils_src_compile
+ if use doc; then
+ emake -C docs html
+ fi
+}
+
src_install() {
distutils_src_install
dohtml ${PN}.html
doman ${PN}.1
+ if use doc; then
+ mv docs/_build/{html,sphinx}
+ dohtml -r docs/_build/sphinx
+ fi
}
src_test() {