commit:     d2be0cf2f7a25081ed26081f5822c3843b3ae31a
Author:     Holger Hoffstätte <holger <AT> applied-asynchrony <DOT> com>
AuthorDate: Sun Sep  4 12:10:00 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Sep 10 11:17:49 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d2be0cf2

media-gfx/graphicsmagick: enable threads by default

This follows upstream's default behaviour and mimicks ImageMagick.

Closes: https://bugs.gentoo.org/868360
Signed-off-by: Holger Hoffstätte <holger <AT> applied-asynchrony.com>
Closes: https://github.com/gentoo/gentoo/pull/27136
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../{graphicsmagick-9999.ebuild => graphicsmagick-1.3.38-r3.ebuild}  | 5 +++--
 media-gfx/graphicsmagick/graphicsmagick-9999.ebuild                  | 4 ++--
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/media-gfx/graphicsmagick/graphicsmagick-9999.ebuild 
b/media-gfx/graphicsmagick/graphicsmagick-1.3.38-r3.ebuild
similarity index 97%
copy from media-gfx/graphicsmagick/graphicsmagick-9999.ebuild
copy to media-gfx/graphicsmagick/graphicsmagick-1.3.38-r3.ebuild
index 889ce23dc4ff..926e23f0152b 100644
--- a/media-gfx/graphicsmagick/graphicsmagick-9999.ebuild
+++ b/media-gfx/graphicsmagick/graphicsmagick-1.3.38-r3.ebuild
@@ -28,7 +28,7 @@ LICENSE="MIT"
 SLOT="0/${PV%.*}"
 
 IUSE="bzip2 +cxx debug dynamic-loading fpx heif imagemagick jbig jpeg jpegxl 
lcms lzma"
-IUSE+=" openmp perl png postscript q16 q32 static-libs svg tcmalloc threads 
tiff truetype"
+IUSE+=" openmp perl png postscript q16 q32 static-libs svg tcmalloc tiff 
truetype"
 IUSE+=" webp wmf X zlib zstd"
 
 RDEPEND="
@@ -67,6 +67,7 @@ DEPEND="${RDEPEND}"
 PATCHES=(
        "${FILESDIR}"/${PN}-1.3.36-flags.patch
        "${FILESDIR}"/${PN}-1.3.19-perl.patch
+       "${FILESDIR}"/${P}-configure-bashism.patch
 )
 
 pkg_pretend() {
@@ -97,7 +98,7 @@ src_configure() {
                $(use_enable debug gcov)
                $(use_enable imagemagick magick-compat)
                $(use_enable openmp)
-               $(use_with threads)
+               --with-threads
                $(use_with dynamic-loading modules)
                --with-quantum-depth=${depth}
                --without-frozenpaths

diff --git a/media-gfx/graphicsmagick/graphicsmagick-9999.ebuild 
b/media-gfx/graphicsmagick/graphicsmagick-9999.ebuild
index 889ce23dc4ff..e67843f1b019 100644
--- a/media-gfx/graphicsmagick/graphicsmagick-9999.ebuild
+++ b/media-gfx/graphicsmagick/graphicsmagick-9999.ebuild
@@ -28,7 +28,7 @@ LICENSE="MIT"
 SLOT="0/${PV%.*}"
 
 IUSE="bzip2 +cxx debug dynamic-loading fpx heif imagemagick jbig jpeg jpegxl 
lcms lzma"
-IUSE+=" openmp perl png postscript q16 q32 static-libs svg tcmalloc threads 
tiff truetype"
+IUSE+=" openmp perl png postscript q16 q32 static-libs svg tcmalloc tiff 
truetype"
 IUSE+=" webp wmf X zlib zstd"
 
 RDEPEND="
@@ -97,7 +97,7 @@ src_configure() {
                $(use_enable debug gcov)
                $(use_enable imagemagick magick-compat)
                $(use_enable openmp)
-               $(use_with threads)
+               --with-threads
                $(use_with dynamic-loading modules)
                --with-quantum-depth=${depth}
                --without-frozenpaths

Reply via email to