commit:     4e913efa0dde9674b465f7741b6e00f0212649cd
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 27 14:47:17 2021 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Wed Jan 27 15:10:48 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4e913efa

app-text/ghostscript-gpl: allow building without media-libs/openjpeg

Closes: https://bugs.gentoo.org/609222
Package-Manager: Portage-3.0.14, Repoman-3.0.2
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>

 app-text/ghostscript-gpl/ghostscript-gpl-9.53.3-r5.ebuild | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/app-text/ghostscript-gpl/ghostscript-gpl-9.53.3-r5.ebuild 
b/app-text/ghostscript-gpl/ghostscript-gpl-9.53.3-r5.ebuild
index 2fe475b2c8f..cdb280036d2 100644
--- a/app-text/ghostscript-gpl/ghostscript-gpl-9.53.3-r5.ebuild
+++ b/app-text/ghostscript-gpl/ghostscript-gpl-9.53.3-r5.ebuild
@@ -24,7 +24,7 @@ fi
 LICENSE="AGPL-3 CPL-1.0"
 SLOT="0/$(ver_cut 1-2)"
 KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 
sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
-IUSE="cups dbus gtk l10n_de static-libs unicode X"
+IUSE="cups dbus gtk +jpeg2k l10n_de static-libs unicode X"
 
 LANGS="ja ko zh-CN zh-TW"
 for X in ${LANGS} ; do
@@ -38,13 +38,13 @@ DEPEND="
        >=media-libs/jbig2dec-0.19:=
        >=media-libs/lcms-2.6:2
        >=media-libs/libpng-1.6.2:0=
-       >=media-libs/openjpeg-2.1.0:2=
        >=media-libs/tiff-4.0.1:0=
        >=sys-libs/zlib-1.2.7
        virtual/jpeg:0
        cups? ( >=net-print/cups-1.3.8 )
        dbus? ( sys-apps/dbus )
        gtk? ( || ( x11-libs/gtk+:3 x11-libs/gtk+:2 ) )
+       jpeg2k? ( >=media-libs/openjpeg-2.1.0:2= )
        unicode? ( net-dns/libidn:0= )
        X? ( x11-libs/libXt x11-libs/libXext )
 "
@@ -142,7 +142,7 @@ src_configure() {
                --enable-dynamic \
                --enable-freetype \
                --enable-fontconfig \
-               --enable-openjpeg \
+               $(use_enable jpeg2k openjpeg) \
                --disable-compile-inits \
                --with-drivers=ALL \
                --with-fontpath="$FONTPATH" \

Reply via email to