commit:     4397e13a63de7dd92455f9fd407b9b5a1193a052
Author:     Christoph Junghans <ottxor <AT> gentoo <DOT> org>
AuthorDate: Fri Nov 21 20:43:48 2014 +0000
Commit:     Christoph Junghans <ottxor <AT> gentoo <DOT> org>
CommitDate: Fri Nov 21 20:43:48 2014 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=4397e13a

fixed install location

Package-Manager: portage-2.2.8-r2

---
 dev-cpp/icnc/ChangeLog        |  3 +++
 dev-cpp/icnc/icnc-9999.ebuild | 20 +++++++++++++++++++-
 2 files changed, 22 insertions(+), 1 deletion(-)

diff --git a/dev-cpp/icnc/ChangeLog b/dev-cpp/icnc/ChangeLog
index 2b0943a..93bd943 100644
--- a/dev-cpp/icnc/ChangeLog
+++ b/dev-cpp/icnc/ChangeLog
@@ -2,6 +2,9 @@
 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+  21 Nov 2014; Christoph Junghans <ott...@gentoo.org> icnc-9999.ebuild:
+  fixed install location
+
   14 Nov 2014; Christoph Junghans <ott...@gentoo.org> icnc-9999.ebuild:
   fully supports mpi
 

diff --git a/dev-cpp/icnc/icnc-9999.ebuild b/dev-cpp/icnc/icnc-9999.ebuild
index b2970ad..68a3a29 100644
--- a/dev-cpp/icnc/icnc-9999.ebuild
+++ b/dev-cpp/icnc/icnc-9999.ebuild
@@ -20,7 +20,7 @@ fi
 
 LICENSE="BSD"
 SLOT="0"
-IUSE="mpi"
+IUSE="doc examples mpi"
 
 DEPEND="
        >=dev-cpp/tbb-4.2
@@ -36,3 +36,21 @@ src_configure() {
        )
        cmake-utils_src_configure
 }
+
+src_install() {
+       cmake-utils_src_install
+       if use doc ; then
+               insinto /usr/share/doc/${P}/html
+               doins -r "${ED}"/usr/doc/api/*
+       fi
+       rm -r "${ED}"/usr/doc/api || die
+       rmdir "${ED}"/usr/doc || die
+       if use examples ; then
+               insinto /usr/share/${PN}/examples
+               doins -r "${ED}"/usr/samples/*
+       fi
+       rm -r "${ED}"/usr/samples || die
+       insinto /usr/share/${PN}/
+       doins -r "${ED}"/usr/misc/*
+       rm -r "${ED}"/usr/misc/ || die
+}

Reply via email to