Build and install documentation when USE includes doc in simulavr.
authorW. Trevor King <wking@tremily.us>
Wed, 15 Aug 2012 15:02:43 +0000 (11:02 -0400)
committerW. Trevor King <wking@tremily.us>
Wed, 15 Aug 2012 15:02:43 +0000 (11:02 -0400)
Manifest
simulavr-9999.ebuild

index ea52e91371eb2cda15b323452e237634d6fb422e..343f3f66c8aae2f68825f72ced71dd2090f62473 100644 (file)
--- a/Manifest
+++ b/Manifest
@@ -1,4 +1,4 @@
 AUX 9999-0010-update_poisoned_interrupt_vectors.patch 5946 RMD160 4d186938c7cf930da1b8ee8a6e9b14c136d242ed SHA1 153f81002eb44bc1404a8f6c86b00e8f93a44895 SHA256 f74d0dacdc77c1bd0e88ea6c47be08659f778b5c9f4263d98333bda19e2f9a9b
-EBUILD simulavr-9999.ebuild 2034 RMD160 687a9018277cea2a00d483592816282dc1aee550 SHA1 aef8cd7605da54f7c64ce25d9d055c59242c0e46 SHA256 a2070b8906823745b527bb25270f6b0161d4c92f635dee618cbc0874a18bdbb2
+EBUILD simulavr-9999.ebuild 2404 RMD160 f19e9535b12ac240a94c16fca245f033e1a59ba7 SHA1 f9b2a94f8edf32b4dba259f74ed510dcc9b5690c SHA256 93927cff9eafeaf2115bc665a41ce97a5db8a90cf8800a0111e421fe46efce0f
 MISC ChangeLog 601 RMD160 56171751910f8d3564700e61b478729aca7fbd84 SHA1 14323d44d908388575f06ffc0690ea4d92d88f2c SHA256 b41cd1718171fed8744d6fc386c7277b760222e49a517cdcb2479ae06aa9a837
 MISC metadata.xml 247 RMD160 f6a3debfa8f70e039ec74fe92be0de687c8cec20 SHA1 30c46f34b3a777a6ff4f46dd4590b94677594948 SHA256 30b3270d8e655f6c190d3148f49b9364795beb41991502630e6631886ef107ea
index 8bf0a9ef82c7712548b2524537ecd5648676827a..b1ce8f3241971c9351c25d4ca3f589894ae52b05 100644 (file)
@@ -26,7 +26,7 @@ IUSE="doc python static-libs tcl verilog"
 RDEPEND="sys-libs/ncurses"
 DEPEND="${RDEPEND}
        >=dev-lang/swig-2.0.0
-       doc? ( app-doc/doxygen[dot] )
+       doc? ( app-doc/doxygen[dot] dev-python/sphinx )
        python? ( >=dev-lang/python-2.4 )
        tcl? ( dev-lang/tcl dev-tcltk/itcl )
        verilog? ( sci-electronics/iverilog )"
@@ -68,5 +68,23 @@ src_configure() {
        my_conf="${my_conf} $(use_enable tcl)"
        my_conf="${my_conf} $(use_enable verilog)"
        my_conf="${my_conf} $(use_enable doc doxygen-doc)"
+       my_conf="${my_conf} $(use_enable doc doxygen-html)"
        LDFLAGS="-Wl,-rpath=${BINUTILS_PATH},--enable-new-dtags ${LDFLAGS}" econf ${my_conf} --docdir="${EPREFIX}/usr/share/${P}"
 }
+
+src_compile() {
+       emake
+       if use doc; then
+               make web-html
+               make doxygen-doc
+       fi
+}
+
+src_install() {
+       emake DESTDIR="${D}" install
+       dodoc NEWS README* AUTHORS SUPPORT TODO ChangeLog
+       if use doc; then
+               dohtml -r doc/web_build/html/*
+               _E_DOCDESTTREE_="doxygen" dohtml -r doc/doxygen-doc/html/*
+       fi
+}