summaryrefslogtreecommitdiff
path: root/dev-perl/Image-Imlib2
diff options
context:
space:
mode:
Diffstat (limited to 'dev-perl/Image-Imlib2')
-rw-r--r--dev-perl/Image-Imlib2/Image-Imlib2-2.30.0-r3.ebuild48
-rw-r--r--dev-perl/Image-Imlib2/Manifest3
-rw-r--r--dev-perl/Image-Imlib2/files/Image-Imlib2-2.30.0-r2-imlib2-pkg-config.patch28
-rw-r--r--dev-perl/Image-Imlib2/files/Image-Imlib2-2.30.0-r2-respect-PKG_CONFIG-and-error.patch21
4 files changed, 100 insertions, 0 deletions
diff --git a/dev-perl/Image-Imlib2/Image-Imlib2-2.30.0-r3.ebuild b/dev-perl/Image-Imlib2/Image-Imlib2-2.30.0-r3.ebuild
new file mode 100644
index 000000000000..79d1493d3e00
--- /dev/null
+++ b/dev-perl/Image-Imlib2/Image-Imlib2-2.30.0-r3.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DIST_AUTHOR=LBROCARD
+DIST_VERSION=2.03
+DIST_TEST="do verbose"
+inherit perl-module toolchain-funcs
+
+DESCRIPTION="Interface to the Imlib2 image library"
+
+SLOT="0"
+KEYWORDS="~alpha amd64 ~ppc x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND=">=media-libs/imlib2-1"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ ${RDEPEND}
+ >=dev-perl/Module-Build-0.28
+ virtual/pkgconfig
+ test? (
+ >=media-libs/imlib2-1[jpeg,png]
+ )
+"
+
+PERL_RM_FILES=(
+ t/pod.t
+ t/pod_coverage.t
+
+ # not ok 12
+ # Failed test at t/simple.t line 68.
+ # got: '0'
+ # expected: '1'
+ t/simple.t
+)
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-2.30.0-r2-imlib2-pkg-config.patch
+ "${FILESDIR}"/${PN}-2.30.0-r2-respect-PKG_CONFIG-and-error.patch
+)
+
+src_configure() {
+ tc-export PKG_CONFIG
+ perl-module_src_configure
+}
diff --git a/dev-perl/Image-Imlib2/Manifest b/dev-perl/Image-Imlib2/Manifest
index 2a9ada37bb34..95982fcdbfc0 100644
--- a/dev-perl/Image-Imlib2/Manifest
+++ b/dev-perl/Image-Imlib2/Manifest
@@ -1,3 +1,6 @@
+AUX Image-Imlib2-2.30.0-r2-imlib2-pkg-config.patch 748 BLAKE2B 1e83a9fff5cbd8d7f4aae157cd7558b110131a705d547a217e309011b0002bbdb4d849ee9e3a5c98872239e268f022071ea91f7416d39eb6c6c14e7958ecb9b2 SHA512 41e4f3a69b994220b92d6a5bf3c2aac01652a8b92f17995aecfc403475c897e0d93b20587f5ade087631fa68f243a8d801d94870368dec30970ff71847cceab6
+AUX Image-Imlib2-2.30.0-r2-respect-PKG_CONFIG-and-error.patch 541 BLAKE2B 023dbec5e0d5f43e59b1a624cf757b8d9d66683d0e1ce993ea2f4dc83b5d7b8da0b491c4c72689745b7fcaaec7a5aa5e371694e40e80590750450ffe9a047f6c SHA512 fa042a80c48dc90ae9b18f5ec4e61c013197cfdf6aca202a4bd6f2f715b2a81a331e367e67037ed6c0532b2a9b5725adc8709bcba0b9bc59f67d29cbb24d6071
DIST Image-Imlib2-2.03.tar.gz 36014 BLAKE2B 15284aab0b702431efb09caf73a4103851aff88f2fdeb560a34c37ed984cfe6d238e31b09fe0515be420ea50de13e029009e9fa467c50fbc275ae86f85f5cc25 SHA512 d38eba0da1d9fe46244400454f55d2d4d682a7aff78c123c01476c14f30de3fc4699a1f926fc82fea09341f0577f943d82fe73cd40225bc69a06e1c710383d60
EBUILD Image-Imlib2-2.30.0-r2.ebuild 502 BLAKE2B 7275b757ee0032abb6b2b6c28c9f3dc614d23dd023f08b03e629dbd8188969b33f39a641c6a2dcb698559d5956f7e27610f1c7ba4ac8305698d14a92a4d8da36 SHA512 ad6bf6b9167538d691bd0da024e82d19323df4f6f1dc6ddc1d9edb9e00d841893444098ab863b010abfe4bf526c275c532c7a4d2be9760f6a9ef9acfdcd8ac81
+EBUILD Image-Imlib2-2.30.0-r3.ebuild 876 BLAKE2B 5b7a63f329ea665948b4184c3fb59186216269839fb2d39ca3db61998973c69b20f187102ff9c2e650916968e15b2ffd5af7d8e001484b64c11689b3eda54661 SHA512 4a95862c1e41edb5bf26b3a9ea01d3e164f6e497e3b2bd6e869cceb6574fdc0d470bcd8951b82efd349b8ae31e759562bef0345f830657f222128fdbb9cebaa4
MISC metadata.xml 397 BLAKE2B a479be85625a3079abf7a99ed6eade1f32814bac030941d01f1e9776a006b0e590b32571ec68a77b1b77eadb30f59f41e4d3339b462124b7de058f22e2f1d3d5 SHA512 b28d5dd40d319191b27aad376e4dcfc8d7b9a52bbe2c51411018e7255a67683f4204afb6d3f201da18c7fd3fd29859cdf658fc3fc3af9c31caafcfc297394761
diff --git a/dev-perl/Image-Imlib2/files/Image-Imlib2-2.30.0-r2-imlib2-pkg-config.patch b/dev-perl/Image-Imlib2/files/Image-Imlib2-2.30.0-r2-imlib2-pkg-config.patch
new file mode 100644
index 000000000000..ca1470a5ce25
--- /dev/null
+++ b/dev-perl/Image-Imlib2/files/Image-Imlib2-2.30.0-r2-imlib2-pkg-config.patch
@@ -0,0 +1,28 @@
+https://rt.cpan.org/Public/Bug/Display.html?id=149742
+
+From 319db4d47493f7ef3909efc1b3904c134c90af5e Mon Sep 17 00:00:00 2001
+From: Sergei Zhmylev <zhmylove@cpan.org>
+Date: Mon, 11 Sep 2023 21:29:17 +0300
+Subject: [PATCH] Make Build.PL compatible with Imlib2 v1.7.5+
+
+--- a/Build.PL
++++ b/Build.PL
+@@ -1,10 +1,14 @@
+ use Module::Build;
+ use strict;
+
+-# We need to find imlib2-config
+-my $CONFIG = "imlib2-config";
++my $CONFIG = "pkg-config imlib2";
+
+ my $version = `$CONFIG --version`;
++if (!$version) {
++ # Try deprecated imlib2-config
++ $CONFIG = "imlib2-config";
++ $version = `$CONFIG --version`;
++}
+ if (!$version) {
+ warn 'You must install the imlib2 library before you can install
+ Image::Imlib2. You can obtain imlib2 from
+--
+2.40.0
diff --git a/dev-perl/Image-Imlib2/files/Image-Imlib2-2.30.0-r2-respect-PKG_CONFIG-and-error.patch b/dev-perl/Image-Imlib2/files/Image-Imlib2-2.30.0-r2-respect-PKG_CONFIG-and-error.patch
new file mode 100644
index 000000000000..270919b068e6
--- /dev/null
+++ b/dev-perl/Image-Imlib2/files/Image-Imlib2-2.30.0-r2-respect-PKG_CONFIG-and-error.patch
@@ -0,0 +1,21 @@
+--- a/Build.PL
++++ b/Build.PL
+@@ -1,7 +1,8 @@
+ use Module::Build;
+ use strict;
+
+-my $CONFIG = "pkg-config imlib2";
++my $PKG_CONFIG = $ENV{PKG_CONFIG} || 'pkg-config';
++my $CONFIG = "${PKG_CONFIG} imlib2";
+
+ my $version = `$CONFIG --version`;
+ if (!$version) {
+@@ -18,7 +19,7 @@ Alternatively, if you have downloaded and installed imlib2 and this
+ still will not work, modify the $CONFIG variable inside Build.PL to
+ point to the imlib2-config program that provides.
+ ';
+- exit 0;
++ exit 1;
+ } else {
+ print "Found imlib2 $version";
+ }