1 |
commit: cd6ac5d6bb69df16d76548f12eed0e0db5daf073 |
2 |
Author: Peter Levine <plevine457 <AT> gmail <DOT> com> |
3 |
AuthorDate: Mon Oct 9 05:14:30 2017 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 9 16:10:00 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cd6ac5d6 |
7 |
|
8 |
dev-cpp/gtest: Support install of extra docs |
9 |
|
10 |
Package-Manager: Portage-2.3.10, Repoman-2.3.3 |
11 |
|
12 |
dev-cpp/gtest/gtest-1.8.0.ebuild | 9 ++++++++- |
13 |
dev-cpp/gtest/gtest-9999.ebuild | 9 ++++++++- |
14 |
2 files changed, 16 insertions(+), 2 deletions(-) |
15 |
|
16 |
diff --git a/dev-cpp/gtest/gtest-1.8.0.ebuild b/dev-cpp/gtest/gtest-1.8.0.ebuild |
17 |
index afb24f111d5..1091001188e 100644 |
18 |
--- a/dev-cpp/gtest/gtest-1.8.0.ebuild |
19 |
+++ b/dev-cpp/gtest/gtest-1.8.0.ebuild |
20 |
@@ -15,7 +15,7 @@ SRC_URI="https://github.com/google/googletest/archive/release-${PV}.tar.gz -> ${ |
21 |
LICENSE="BSD" |
22 |
SLOT="0" |
23 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos" |
24 |
-IUSE="examples test" |
25 |
+IUSE="doc examples test" |
26 |
|
27 |
DEPEND="test? ( ${PYTHON_DEPS} )" |
28 |
RDEPEND="!dev-cpp/gmock" |
29 |
@@ -53,6 +53,13 @@ multilib_src_configure() { |
30 |
multilib_src_install_all() { |
31 |
einstalldocs |
32 |
|
33 |
+ if use doc; then |
34 |
+ docinto googletest |
35 |
+ dodoc -r googletest/docs/* |
36 |
+ docinto googlemock |
37 |
+ dodoc -r googlemock/docs/* |
38 |
+ fi |
39 |
+ |
40 |
if use examples; then |
41 |
docinto examples |
42 |
dodoc googletest/samples/*.{cc,h} |
43 |
|
44 |
diff --git a/dev-cpp/gtest/gtest-9999.ebuild b/dev-cpp/gtest/gtest-9999.ebuild |
45 |
index 79195676d08..a2c14fe23fd 100644 |
46 |
--- a/dev-cpp/gtest/gtest-9999.ebuild |
47 |
+++ b/dev-cpp/gtest/gtest-9999.ebuild |
48 |
@@ -22,7 +22,7 @@ HOMEPAGE="https://github.com/google/googletest" |
49 |
|
50 |
LICENSE="BSD" |
51 |
SLOT="0" |
52 |
-IUSE="examples test" |
53 |
+IUSE="doc examples test" |
54 |
|
55 |
DEPEND="test? ( ${PYTHON_DEPS} )" |
56 |
RDEPEND="!dev-cpp/gmock" |
57 |
@@ -61,6 +61,13 @@ multilib_src_configure() { |
58 |
multilib_src_install_all() { |
59 |
einstalldocs |
60 |
|
61 |
+ if use doc; then |
62 |
+ docinto googletest |
63 |
+ dodoc -r googletest/docs/* |
64 |
+ docinto googlemock |
65 |
+ dodoc -r googlemock/docs/* |
66 |
+ fi |
67 |
+ |
68 |
if use examples; then |
69 |
docinto examples |
70 |
dodoc googletest/samples/*.{cc,h} |