Skip to content

Commit

Permalink
media-gfx/zbar: fix configure logic for imagemagick<->graphicsmagick
Browse files Browse the repository at this point in the history
 - tested on stable amd64.

Closes: https://bugs.gentoo.org/784362
Signed-off-by: Joonas Niilola <[email protected]>
  • Loading branch information
juippis committed Aug 2, 2022
1 parent 627e3ef commit 48c9cda
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions media-gfx/zbar/zbar-0.23.90.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ DEPEND="${COMMON_DEPEND}

BDEPEND="
app-text/xmlto
sys-devel/gettext
virtual/pkgconfig
gtk? ( dev-util/glib-utils )
nls? (
Expand Down Expand Up @@ -146,12 +147,12 @@ multilib_src_configure() {

if multilib_is_native_abi; then
# both must be enabled to use GraphicsMagick
if use graphicsmagick; then
if use imagemagick && use graphicsmagick; then
myeconfargs+=(
--with-graphicsmagick
--without-imagemagick
)
elif use imagemagick; then
elif ! use graphicsmagick && use imagemagick; then
myeconfargs+=(
--with-imagemagick
--without-graphicsmagick
Expand Down

0 comments on commit 48c9cda

Please sign in to comment.