diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-08-22 03:45:27 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-08-22 03:45:27 +0100 |
commit | 102518876412b49c154cd247f5891927304dd8cc (patch) | |
tree | 02ee78597f043d94b8f33d37622352c7d9c3276f /media-libs/gd | |
parent | d51fe7680c5270ddf8d324bbe11caab6d1e27ade (diff) |
gentoo auto-resync : 22:08:2023 - 03:45:27
Diffstat (limited to 'media-libs/gd')
-rw-r--r-- | media-libs/gd/Manifest | 2 | ||||
-rw-r--r-- | media-libs/gd/files/gd-2.3.3-GD_BICUBIC.patch | 31 | ||||
-rw-r--r-- | media-libs/gd/gd-2.3.3-r4.ebuild | 96 |
3 files changed, 129 insertions, 0 deletions
diff --git a/media-libs/gd/Manifest b/media-libs/gd/Manifest index 655627a5c65f..29bfcdc7a2a2 100644 --- a/media-libs/gd/Manifest +++ b/media-libs/gd/Manifest @@ -1,6 +1,8 @@ AUX gd-2.3.0-disable-flaky-tests.patch 792 BLAKE2B 81d4d56f0365e51fd1f406f3f27cd788a670bc091e13c8d39e8fb8234dd934896d6161940e010e2c0118000a36012bc2f878674a7409bcc19662686afaf99cb3 SHA512 285c542ca60f25597c29c040c95bd1885dbd3c29d3c1af52123646bc06abbd271bd37d4dedc1fc0bb218a84063814c8d8176a30c1da8a19445064469e26a5ea6 +AUX gd-2.3.3-GD_BICUBIC.patch 1304 BLAKE2B bb5fa7abf5bd36fa13bec3d88e2621fcf6ad4b483b05d742709d449d8addefe6971278bb9e0202782840f3bd17016793608880250dcf546f27e8601addfa6563 SHA512 ae1baab2fb33fffc01c5d788032974f93907ebeb3220f009829c655bf039621666b47faf2a541f17702ff6d98398e99015e98cddade169d985825b0f260dd15a DIST libgd-2.3.2.tar.xz 2821096 BLAKE2B a126fbac1c20113fe8f27187e70b1b81712212b7da01c9a0b3e5e38fb4d4356b7992a0cfd7db55a2f94877f6ecf82d775c39977a523db1f948cf215c6c0d7672 SHA512 a31c6dbb64e7b725b63f3b400f7bebc289e2d776bdca0595af23006841660dc93a56c2247b98f8a584438a826f9e9ff0bea17d0b3900e48e281580b1308794d2 DIST libgd-2.3.3.tar.xz 2809056 BLAKE2B bde7a3218e5b07758b0beb96a654a44a97ba79abfe1ebe115ffd44aa34301be8e76f33840824362826dbfe93b16a4c4403b00b34aa631a0b18398cd46a09889d SHA512 aa49d4381d604a4360d556419d603df2ffd689a6dcc10f8e5e1d158ddaa3ab89912f6077ca77da4e370055074007971cf6d356ec9bf26dcf39bcff3208bc7e6c EBUILD gd-2.3.2-r3.ebuild 2608 BLAKE2B 009edb04e41d0a0c31ec12677345a911e1ce13980ad4bfa8db7add62c052b3faddb57c42f2088d1acf4c2e869d778387b3177832194dac0f8dcd8893732c1e50 SHA512 3656cb25eb597f520366c9c437dc90605a7bc9a3415e6a8244bb5cd959ce64711efd5d52088aa42cd8e42e23b272fa1acc15ec02dbdbfed48bf32d21f67802f0 EBUILD gd-2.3.3-r3.ebuild 2756 BLAKE2B 1942bdfe68264227dcd77e8177dfd880cece41a5aa8ee73df21f9d2dcc68eebb48ca90c7a3cd12bfd31106d81ef18c74565a4ef7ff16effe326996e3670f5c34 SHA512 6ed991308e524ac3bc6e0dc43a0756bede673323a274aaf7c0d0295833bc8b537fff832207e13196880b8df153631029a07b5866a892b70163601e1946d10101 +EBUILD gd-2.3.3-r4.ebuild 2801 BLAKE2B dff18bf4ad94ad678361a6255688849c5a534c9352192d09c7152851f0e2097de5e75d2488a9dbd99231e9d024e2ca14cd0855afdf90b2d6e4472e8df5ab4ff9 SHA512 ed64402212e6874f2f691bae2015ce299dd957676b2549561e5406f262d3e37ed6b371134153fdf1f49b8ca542b1a75221ba3b30288ea1aa3f0ae6c5018624e8 MISC metadata.xml 1541 BLAKE2B 6536dcfa7b699aaae04e9a82ab5a906edcf16a8eb52230a4b1eace06f4c85cf642f2bdc6ec28f205fd0f054164a43fe6133ee607c01f6c52aa1aa71bc7d07610 SHA512 7495ad24e974fbdf6dd7b632f38435b91bdc471541b042aa75c7bf885b3a1521b8b01691796677c4aa829b6cf3e1bd4b7d147b2f67bac9d21e72ca2cb60574a3 diff --git a/media-libs/gd/files/gd-2.3.3-GD_BICUBIC.patch b/media-libs/gd/files/gd-2.3.3-GD_BICUBIC.patch new file mode 100644 index 000000000000..e89df284df9c --- /dev/null +++ b/media-libs/gd/files/gd-2.3.3-GD_BICUBIC.patch @@ -0,0 +1,31 @@ +From a5f5698a6832fc1f8179a9257f0b91c9a8ef496b Mon Sep 17 00:00:00 2001 +From: Cyprien Nicolas <cyprien@octopuce.fr> +Date: Thu, 27 Oct 2022 14:36:33 +0200 +Subject: [PATCH] Fix #847: enable back GD_BICUBIC* interpolation methods + +(cherry picked from commit 39abd7238cea2ba8baa4bcac1d6fc01c6cb8afab) +--- + src/gd_interpolation.c | 5 +++++ + tests/gdimagesetinterpolationmethod/.gitignore | 1 + + tests/gdimagesetinterpolationmethod/CMakeLists.txt | 1 + + tests/gdimagesetinterpolationmethod/Makemodule.am | 3 ++- + .../gdimagesetinterpolationmethod/github_bug_00847.c | 12 ++++++++++++ + 5 files changed, 21 insertions(+), 1 deletion(-) + create mode 100644 tests/gdimagesetinterpolationmethod/github_bug_00847.c + +diff --git a/src/gd_interpolation.c b/src/gd_interpolation.c +index 1f625dd22..cf77da7c8 100644 +--- a/src/gd_interpolation.c ++++ b/src/gd_interpolation.c +@@ -2257,6 +2257,11 @@ BGD_DECLARE(int) gdImageSetInterpolationMethod(gdImagePtr im, gdInterpolationMet + case GD_BESSEL: + im->interpolation = filter_bessel; + break; ++ case GD_BICUBIC_FIXED: ++ case GD_BICUBIC: ++ /* no interpolation as gdImageScale calls a dedicated function */ ++ im->interpolation = NULL; ++ break; + case GD_BLACKMAN: + im->interpolation = filter_blackman; + break; diff --git a/media-libs/gd/gd-2.3.3-r4.ebuild b/media-libs/gd/gd-2.3.3-r4.ebuild new file mode 100644 index 000000000000..e6ad85f655c5 --- /dev/null +++ b/media-libs/gd/gd-2.3.3-r4.ebuild @@ -0,0 +1,96 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools flag-o-matic multilib-minimal + +DESCRIPTION="Graphics library for fast image creation" +HOMEPAGE="https://libgd.org/ https://www.boutell.com/gd/" +SRC_URI="https://github.com/libgd/libgd/releases/download/${P}/lib${P}.tar.xz" +S="${WORKDIR}/lib${P}" + +LICENSE="gd IJG HPND BSD" +SLOT="2/3" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" +IUSE="avif cpu_flags_x86_sse fontconfig +jpeg heif +png static-libs test tiff truetype webp xpm zlib" +RESTRICT="!test? ( test )" + +# fontconfig has prefixed font paths, details see bug #518970 +REQUIRED_USE=" + prefix? ( fontconfig ) + test? ( png ) +" + +BDEPEND="virtual/pkgconfig" +RDEPEND=" + avif? ( media-libs/libavif:=[${MULTILIB_USEDEP}] ) + fontconfig? ( >=media-libs/fontconfig-2.10.92[${MULTILIB_USEDEP}] ) + jpeg? ( media-libs/libjpeg-turbo[${MULTILIB_USEDEP}] ) + heif? ( media-libs/libheif:=[${MULTILIB_USEDEP}] ) + png? ( >=media-libs/libpng-1.6.10:0=[${MULTILIB_USEDEP}] ) + tiff? ( media-libs/tiff:=[${MULTILIB_USEDEP}] ) + truetype? ( >=media-libs/freetype-2.5.0.1[${MULTILIB_USEDEP}] ) + webp? ( media-libs/libwebp:=[${MULTILIB_USEDEP}] ) + xpm? ( + >=x11-libs/libXpm-3.5.10-r1[${MULTILIB_USEDEP}] + >=x11-libs/libXt-1.1.4[${MULTILIB_USEDEP}] + ) + zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] ) +" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}/${PN}-2.3.0-disable-flaky-tests.patch" + "${FILESDIR}/${P}-GD_BICUBIC.patch" +) + +src_prepare() { + default + eautoreconf +} + +multilib_src_configure() { + # bug 603360, https://github.com/libgd/libgd/blob/fd06f7f83c5e78bf5b7f5397746b4e5ee4366250/docs/README.TESTING#L65 + if use cpu_flags_x86_sse ; then + append-cflags -msse -mfpmath=sse + else + append-cflags -ffloat-store + fi + + # bug 632076, https://github.com/libgd/libgd/issues/278 + if use arm64 || use ppc64 || use s390 ; then + append-cflags -ffp-contract=off + fi + + # we aren't actually {en,dis}abling X here ... the configure + # script uses it just to add explicit -I/-L paths which we + # don't care about on Gentoo systems. + local myeconfargs=( + --disable-werror + --without-x + --without-liq + $(use_enable static-libs static) + $(use_with avif) + $(use_with fontconfig) + $(use_with png) + $(use_with tiff) + $(use_with truetype freetype) + $(use_with heif) + $(use_with jpeg) + $(use_with webp) + $(use_with xpm) + $(use_with zlib) + ) + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" +} + +multilib_src_test() { + # See https://github.com/libgd/libgd/issues/763 (although it still passed without it here?) + TMPDIR="${T}" default +} + +multilib_src_install_all() { + dodoc README.md + find "${ED}" -name '*.la' -delete || die +} |