From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1243290-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 8E9D51382C5
	for <garchives@archives.gentoo.org>; Tue, 19 Jan 2021 18:14:56 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id D2A58E085A;
	Tue, 19 Jan 2021 18:14:55 +0000 (UTC)
Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id BAD45E085A
	for <gentoo-commits@lists.gentoo.org>; Tue, 19 Jan 2021 18:14:55 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 335CA340FFF
	for <gentoo-commits@lists.gentoo.org>; Tue, 19 Jan 2021 18:14:54 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 8A4764A0
	for <gentoo-commits@lists.gentoo.org>; Tue, 19 Jan 2021 18:14:52 +0000 (UTC)
From: "Georgy Yakovlev" <gyakovlev@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, "Georgy Yakovlev" <gyakovlev@gentoo.org>
Message-ID: <1611080083.5fc4b2c3355efac3d2543edc617eab71bb4d8cd7.gyakovlev@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/groff/
X-VCS-Repository: repo/gentoo
X-VCS-Files: sys-apps/groff/groff-1.22.4.ebuild sys-apps/groff/metadata.xml
X-VCS-Directories: sys-apps/groff/
X-VCS-Committer: gyakovlev
X-VCS-Committer-Name: Georgy Yakovlev
X-VCS-Revision: 5fc4b2c3355efac3d2543edc617eab71bb4d8cd7
X-VCS-Branch: master
Date: Tue, 19 Jan 2021 18:14:52 +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: 60f6d010-7c59-4463-a643-8eb1cbb35c2f
X-Archives-Hash: 98b19ac7ccecd765f8b96fc378c097e2

commit:     5fc4b2c3355efac3d2543edc617eab71bb4d8cd7
Author:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 19 18:11:39 2021 +0000
Commit:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
CommitDate: Tue Jan 19 18:14:43 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5fc4b2c3

sys-apps/groff: add uchardet flag to prevent automagic dep

Bug: https://bugs.gentoo.org/750032
Closes: https://bugs.gentoo.org/709720
Package-Manager: Portage-3.0.14, Repoman-3.0.2
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>

 sys-apps/groff/groff-1.22.4.ebuild | 4 +++-
 sys-apps/groff/metadata.xml        | 3 +++
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/sys-apps/groff/groff-1.22.4.ebuild b/sys-apps/groff/groff-1.22.4.ebuild
index 8ddffb88863..0d89c116a83 100644
--- a/sys-apps/groff/groff-1.22.4.ebuild
+++ b/sys-apps/groff/groff-1.22.4.ebuild
@@ -16,9 +16,10 @@ LICENSE="GPL-2"
 SLOT="0"
 [[ "${PV}" == *_rc* ]] || \
 KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
-IUSE="examples X"
+IUSE="examples uchardet X"
 
 RDEPEND="
+	uchardet? ( app-i18n/uchardet )
 	X? (
 		x11-libs/libX11
 		x11-libs/libXt
@@ -62,6 +63,7 @@ src_prepare() {
 src_configure() {
 	local myeconfargs=(
 		--with-appresdir="${EPREFIX}"/usr/share/X11/app-defaults
+		$(use_with uchardet)
 		$(use_with X x)
 	)
 	econf "${myeconfargs[@]}"

diff --git a/sys-apps/groff/metadata.xml b/sys-apps/groff/metadata.xml
index 56c12441305..b96055e1c5a 100644
--- a/sys-apps/groff/metadata.xml
+++ b/sys-apps/groff/metadata.xml
@@ -5,4 +5,7 @@
 	<email>base-system@gentoo.org</email>
 	<name>Gentoo Base System</name>
 </maintainer>
+<use>
+	<flag name="uchardet">Enable automatic encoding detection via <pkg>app-i18n/uchardet</pkg></flag>
+</use>
 </pkgmetadata>