commit: cd6ac5d6bb69df16d76548f12eed0e0db5daf073 Author: Peter Levine <plevine457 <AT> gmail <DOT> com> AuthorDate: Mon Oct 9 05:14:30 2017 +0000 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> CommitDate: Tue Jan 9 16:10:00 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cd6ac5d6
dev-cpp/gtest: Support install of extra docs Package-Manager: Portage-2.3.10, Repoman-2.3.3 dev-cpp/gtest/gtest-1.8.0.ebuild | 9 ++++++++- dev-cpp/gtest/gtest-9999.ebuild | 9 ++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/dev-cpp/gtest/gtest-1.8.0.ebuild b/dev-cpp/gtest/gtest-1.8.0.ebuild index afb24f111d5..1091001188e 100644 --- a/dev-cpp/gtest/gtest-1.8.0.ebuild +++ b/dev-cpp/gtest/gtest-1.8.0.ebuild @@ -15,7 +15,7 @@ SRC_URI="https://github.com/google/googletest/archive/release-${PV}.tar.gz -> ${ LICENSE="BSD" SLOT="0" 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" -IUSE="examples test" +IUSE="doc examples test" DEPEND="test? ( ${PYTHON_DEPS} )" RDEPEND="!dev-cpp/gmock" @@ -53,6 +53,13 @@ multilib_src_configure() { multilib_src_install_all() { einstalldocs + if use doc; then + docinto googletest + dodoc -r googletest/docs/* + docinto googlemock + dodoc -r googlemock/docs/* + fi + if use examples; then docinto examples dodoc googletest/samples/*.{cc,h} diff --git a/dev-cpp/gtest/gtest-9999.ebuild b/dev-cpp/gtest/gtest-9999.ebuild index 79195676d08..a2c14fe23fd 100644 --- a/dev-cpp/gtest/gtest-9999.ebuild +++ b/dev-cpp/gtest/gtest-9999.ebuild @@ -22,7 +22,7 @@ HOMEPAGE="https://github.com/google/googletest" LICENSE="BSD" SLOT="0" -IUSE="examples test" +IUSE="doc examples test" DEPEND="test? ( ${PYTHON_DEPS} )" RDEPEND="!dev-cpp/gmock" @@ -61,6 +61,13 @@ multilib_src_configure() { multilib_src_install_all() { einstalldocs + if use doc; then + docinto googletest + dodoc -r googletest/docs/* + docinto googlemock + dodoc -r googlemock/docs/* + fi + if use examples; then docinto examples dodoc googletest/samples/*.{cc,h}
