From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E79491382C5 for ; Thu, 3 Jun 2021 19:13:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3953AE086E; Thu, 3 Jun 2021 19:13:24 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 21E90E086E for ; Thu, 3 Jun 2021 19:13:24 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A7977340B9C for ; Thu, 3 Jun 2021 19:13:22 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0A6567A1 for ; Thu, 3 Jun 2021 19:13:21 +0000 (UTC) From: "Andreas K. Hüttel" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas K. Hüttel" Message-ID: <1622747586.d64978d1cee9c2d894b12e03e602d00772508dce.dilfridge@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-perl/GD/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-perl/GD/GD-2.730.0-r1.ebuild X-VCS-Directories: dev-perl/GD/ X-VCS-Committer: dilfridge X-VCS-Committer-Name: Andreas K. Hüttel X-VCS-Revision: d64978d1cee9c2d894b12e03e602d00772508dce X-VCS-Branch: master Date: Thu, 3 Jun 2021 19:13:21 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 50b35484-7210-4393-9b21-7ccbb0e48bd8 X-Archives-Hash: f51f85fd323489057b44cc4947ef15db commit: d64978d1cee9c2d894b12e03e602d00772508dce Author: Andreas K. Hüttel gentoo org> AuthorDate: Thu Jun 3 19:12:18 2021 +0000 Commit: Andreas K. Hüttel gentoo org> CommitDate: Thu Jun 3 19:13:06 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d64978d1 dev-perl/GD: Force-enable gif,jpeg,png Closes: https://bugs.gentoo.org/623542 Closes: https://bugs.gentoo.org/635830 Closes: https://bugs.gentoo.org/661634 Package-Manager: Portage-3.0.18, Repoman-3.0.2 Signed-off-by: Andreas K. Hüttel gentoo.org> dev-perl/GD/GD-2.730.0-r1.ebuild | 75 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) diff --git a/dev-perl/GD/GD-2.730.0-r1.ebuild b/dev-perl/GD/GD-2.730.0-r1.ebuild new file mode 100644 index 00000000000..6d099c37daa --- /dev/null +++ b/dev-perl/GD/GD-2.730.0-r1.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DIST_AUTHOR=RURBAN +DIST_VERSION=2.73 +DIST_EXAMPLES=("demos/*") +inherit perl-module + +DESCRIPTION="Interface to Thomas Boutell's gd library" + +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~sparc" +IUSE="animgif fcgi test truetype xpm" + +RDEPEND=" + >=media-libs/gd-2.2.3[png,jpeg] + media-libs/giflib + media-libs/libpng:0 + sys-libs/zlib + virtual/jpeg:0 + truetype? ( + media-libs/gd[truetype] + media-libs/freetype:2 + ) + xpm? ( + media-libs/gd[xpm] + x11-libs/libXpm + ) + fcgi? ( + dev-libs/fcgi + ) +" +DEPEND="${RDEPEND} +" +BDEPEND="${RDEPEND} + >=virtual/perl-ExtUtils-Constant-0.230.0 + dev-perl/ExtUtils-PkgConfig + virtual/perl-ExtUtils-MakeMaker + test? ( + >=dev-perl/Test-Fork-0.20.0 + >=virtual/perl-Test-Simple-0.880.0 + ) +" + +RESTRICT="!test? ( test )" + +src_prepare() { + perl-module_src_prepare + sed -i "s/use Getopt::Long;/use Getopt::Long qw(:config pass_through);/" \ + "${S}"/Makefile.PL || die +} + +src_configure() { + local myconf + myconf="VERSION_33,GD_UNCLOSEDPOLY,GD_FTCIRCLE" # Per line 284 of Makefile.PL + + # The following flags do not work properly. This is why we force-enable + # at least some of them. See bug 787404 as tracker. + use gif && use animgif && myconf+=",ANIMGIF" + myconf+=",JPEG" + use truetype && myconf+=",FT" + myconf+=",PNG" + use xpm && myconf+=",XPM" + myconf+=",GIF" + myconf="-options '${myconf}'" + use fcgi && myconf+=" --fcgi" + perl-module_src_configure +} + +src_test() { + perl_rm_files t/z_*.t + perl-module_src_test +}