dev-cpp/gtest: Support install of extra docs
authorPeter Levine <plevine457@gmail.com>
Mon, 9 Oct 2017 05:14:30 +0000 (01:14 -0400)
committerMike Gilbert <floppym@gentoo.org>
Tue, 9 Jan 2018 16:10:00 +0000 (11:10 -0500)
Package-Manager: Portage-2.3.10, Repoman-2.3.3

dev-cpp/gtest/gtest-1.8.0.ebuild
dev-cpp/gtest/gtest-9999.ebuild

index afb24f111d5cf10404018b6fdd696043e9206d60..1091001188eecf1c45841fe9734aad771ae2acfd 100644 (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}
index 79195676d089b384907b18a202eb742410204fd0..a2c14fe23fd6fe30289533f2d05b11e994d25e9c 100644 (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}