From 014209f2a022f6d141d18faf4f464406bf187acb Mon Sep 17 00:00:00 2001 From: Daniel Pielmeier Date: Sun, 3 May 2026 10:36:23 +0200 Subject: [PATCH] net-print/hplip: Adjust driver requirements with USE minimal Closes: https://bugs.gentoo.org/973434 Signed-off-by: Daniel Pielmeier --- net-print/hplip/hplip-3.25.8-r1.ebuild | 6 +++--- net-print/hplip/hplip-3.25.8.ebuild | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/net-print/hplip/hplip-3.25.8-r1.ebuild b/net-print/hplip/hplip-3.25.8-r1.ebuild index 0bfa242916ac9..114d59333ff6b 100644 --- a/net-print/hplip/hplip-3.25.8-r1.ebuild +++ b/net-print/hplip/hplip-3.25.8-r1.ebuild @@ -72,7 +72,8 @@ RDEPEND=" REQUIRED_USE=" ${PYTHON_REQUIRED_USE} - || ( hpcups hpijs ) + !minimal? ( || ( hpcups hpijs ) ) + minimal? ( ^^ ( hpcups hpijs ) ) " PATCHES=( @@ -99,8 +100,7 @@ pkg_setup() { if use minimal ; then ewarn "Installing driver portions only, make sure you know what you are doing." ewarn "Depending on the USE flags set for hpcups or hpijs the appropriate driver" - ewarn "is installed. If both USE flags are set hpijs overrides hpcups." - ewarn "This also disables fax, network and scanner support!" + ewarn "is installed. This also disables fax, network and scanner support!" fi if has_version "<=net-print/hplip-3.25.8[qt5]" ; then diff --git a/net-print/hplip/hplip-3.25.8.ebuild b/net-print/hplip/hplip-3.25.8.ebuild index 9a8d26653845f..e7db625a2f4c0 100644 --- a/net-print/hplip/hplip-3.25.8.ebuild +++ b/net-print/hplip/hplip-3.25.8.ebuild @@ -76,7 +76,8 @@ RDEPEND=" REQUIRED_USE=" ${PYTHON_REQUIRED_USE} - || ( hpcups hpijs ) + !minimal? ( || ( hpcups hpijs ) ) + minimal? ( ^^ ( hpcups hpijs ) ) " PATCHES=( @@ -103,8 +104,7 @@ pkg_setup() { if use minimal ; then ewarn "Installing driver portions only, make sure you know what you are doing." ewarn "Depending on the USE flags set for hpcups or hpijs the appropriate driver" - ewarn "is installed. If both USE flags are set hpijs overrides hpcups." - ewarn "This also disables fax, network, scanner and gui support!" + ewarn "is installed. This also disables fax, network, scanner and gui support!" fi }