dev-libs/nettle: remove dohtml
authorAlon Bar-Lev <alonbl@gentoo.org>
Fri, 3 Feb 2017 22:22:13 +0000 (00:22 +0200)
committerAlon Bar-Lev <alonbl@gentoo.org>
Sat, 4 Feb 2017 01:30:43 +0000 (03:30 +0200)
Package-Manager: portage-2.3.3

dev-libs/nettle/nettle-3.3.ebuild

index 222b8b25badc383009272494c034b4aca1177109..6de65452986e68fbef781be1638f54e7284ec82e 100644 (file)
@@ -27,6 +27,18 @@ MULTILIB_WRAPPED_HEADERS=(
        /usr/include/nettle/version.h
 )
 
+DOCS=()
+HTML_DOCS=()
+
+pkg_setup() {
+       use doc && DOCS+=(
+               nettle.pdf
+       )
+       use doc && HTML_DOCS+=(
+               nettle.html
+       )
+}
+
 src_prepare() {
        default
 
@@ -53,11 +65,3 @@ multilib_src_configure() {
                $(use_enable neon arm-neon) \
                $(use_enable cpu_flags_x86_aes x86-aesni)
 }
-
-multilib_src_install_all() {
-       einstalldocs
-       if use doc ; then
-               dohtml nettle.html
-               dodoc nettle.pdf
-       fi
-}