commit:     d70091da796cbcb5b69eafc0fa657e081b11ce92
Author:     Christoph Junghans <ottxor <AT> gentoo <DOT> org>
AuthorDate: Sun Feb  8 21:07:12 2015 +0000
Commit:     Christoph Junghans <ottxor <AT> gentoo <DOT> org>
CommitDate: Sun Feb  8 21:07:31 2015 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=d70091da

fix bug #539318

Package-Manager: portage-2.2.14

---
 dev-cpp/icnc/ChangeLog        |  5 ++++-
 dev-cpp/icnc/icnc-9999.ebuild | 11 +++++++----
 2 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/dev-cpp/icnc/ChangeLog b/dev-cpp/icnc/ChangeLog
index 7f3c6d5..8de9e15 100644
--- a/dev-cpp/icnc/ChangeLog
+++ b/dev-cpp/icnc/ChangeLog
@@ -1,7 +1,10 @@
 # ChangeLog for dev-cpp/icnc
-# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+  08 Feb 2015; Christoph Junghans <ott...@gentoo.org> icnc-9999.ebuild:
+  fix bug #539318
+
   11 Dec 2014; Christoph Junghans <ott...@gentoo.org> icnc-9999.ebuild:
   sync with upstream
 

diff --git a/dev-cpp/icnc/icnc-9999.ebuild b/dev-cpp/icnc/icnc-9999.ebuild
index cc65021..5e953fa 100644
--- a/dev-cpp/icnc/icnc-9999.ebuild
+++ b/dev-cpp/icnc/icnc-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2015 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Header: $
 
@@ -31,6 +31,7 @@ RDEPEND="
        "
 DEPEND="
        ${RDEPEND}
+       doc? ( app-doc/doxygen )
        test? ( ${PYTHON_DEPS} )
        "
 
@@ -38,6 +39,7 @@ src_configure() {
        local mycmakeargs=(
                $(cmake-utils_use mpi BUILD_LIBS_FOR_MPI)
                -DLIB=$(get_libdir)
+               $(cmake-utils_use_find_package doc Doxygen)
                $(cmake-utils_use test ENABLE_TESTING)
                -DRUN_DIST=OFF
        )
@@ -46,8 +48,9 @@ src_configure() {
 
 src_install() {
        cmake-utils_src_install
-       mv "${ED}"/usr/share/{icnc/doc/api,doc/${P}/html} || die
-       rmdir "${ED}"/usr/share/icnc/doc || die
-       use doc || rm -r "${ED}"/usr/share/doc/${P}/html || die
+       if use doc; then
+               mv "${ED}"/usr/share/{icnc/doc/api,doc/${P}/html} || die
+               rmdir "${ED}"/usr/share/icnc/doc || die
+       fi
        use examples || rm -r "${ED}"/usr/share/icnc/samples || die
 }

Reply via email to