dev-cpp/gtest: Support install of extra docs

Package-Manager: Portage-2.3.10, Repoman-2.3.3
This commit is contained in:
Peter Levine
2017-10-09 01:14:30 -04:00
committed by Mike Gilbert
parent c611133fd6
commit cd6ac5d6bb
2 changed files with 16 additions and 2 deletions

View File

@@ -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}

View File

@@ -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}