From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1331855-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 470EC158087
	for <garchives@archives.gentoo.org>; Tue, 19 Oct 2021 07:44:14 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 3ECFEE0855;
	Tue, 19 Oct 2021 07:44:13 +0000 (UTC)
Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4])
	(using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 2A685E0855
	for <gentoo-commits@lists.gentoo.org>; Tue, 19 Oct 2021 07:44:13 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 0910634397D
	for <gentoo-commits@lists.gentoo.org>; Tue, 19 Oct 2021 07:44:12 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 66227156
	for <gentoo-commits@lists.gentoo.org>; Tue, 19 Oct 2021 07:44:10 +0000 (UTC)
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" <sam@gentoo.org>
Message-ID: <1634629436.d728b9ed05a9d047aafa61253780355f05d3ac8c.sam@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: app-antivirus/clamav/
X-VCS-Repository: repo/gentoo
X-VCS-Files: app-antivirus/clamav/clamav-0.104.0-r1.ebuild
X-VCS-Directories: app-antivirus/clamav/
X-VCS-Committer: sam
X-VCS-Committer-Name: Sam James
X-VCS-Revision: d728b9ed05a9d047aafa61253780355f05d3ac8c
X-VCS-Branch: master
Date: Tue, 19 Oct 2021 07:44:10 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: aaec7da7-c57a-4e87-aeef-52cb8a8034fd
X-Archives-Hash: bfb8945769dde959ba022e862b889411

commit:     d728b9ed05a9d047aafa61253780355f05d3ac8c
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 19 07:39:34 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Oct 19 07:43:56 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d728b9ed

app-antivirus/clamav: remove man pages if USE=libclamav-only

Man pages are now always installed, but let's remove them
if they're irrelevant (USE=libclamav-only). No man pages
exist for libclamav, and we don't want man pages for
the utiltiies to be installed if the tools themselves
aren't selected.

Closes: https://bugs.gentoo.org/818892
Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-antivirus/clamav/clamav-0.104.0-r1.ebuild | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/app-antivirus/clamav/clamav-0.104.0-r1.ebuild b/app-antivirus/clamav/clamav-0.104.0-r1.ebuild
index 138b4e8373b..3fb0c27cd99 100644
--- a/app-antivirus/clamav/clamav-0.104.0-r1.ebuild
+++ b/app-antivirus/clamav/clamav-0.104.0-r1.ebuild
@@ -167,10 +167,11 @@ src_install() {
 	if use doc ; then
 		local HTML_DOCS=( docs/html/. )
 		einstalldocs
+	fi
 
-		if ! use libclamav-only ; then
-			doman docs/man/*.[1-8]
-		fi
+	# Don't install man pages for utilities we didn't install
+	if use libclamav-only ; then
+		rm -r "${ED}"/usr/share/man || die
 	fi
 
 	find "${ED}" -name '*.la' -delete || die