Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-php/pecl-imagick/files/, dev-php/pecl-imagick/
Date: Mon, 14 Jan 2019 14:47:47
Message-Id: 1547477256.507e6ed891234a0078758860bfa6da1c1a067e99.whissi@gentoo
1 commit: 507e6ed891234a0078758860bfa6da1c1a067e99
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 14 14:47:09 2019 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 14 14:47:36 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=507e6ed8
7
8 dev-php/pecl-imagick: bump to snapshot version to add PHP 7.3 support
9
10 Package-Manager: Portage-2.3.55, Repoman-2.3.12
11 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
12
13 dev-php/pecl-imagick/Manifest | 1 +
14 .../pecl-imagick-3.4.3-tsrm_ls-is-undeclared.patch | 18 ++++++++++++
15 .../pecl-imagick-3.4.3_p20181129.ebuild | 32 ++++++++++++++++++++++
16 3 files changed, 51 insertions(+)
17
18 diff --git a/dev-php/pecl-imagick/Manifest b/dev-php/pecl-imagick/Manifest
19 index 0d16e258963..7c89f1f4088 100644
20 --- a/dev-php/pecl-imagick/Manifest
21 +++ b/dev-php/pecl-imagick/Manifest
22 @@ -1 +1,2 @@
23 DIST imagick-3.4.3.tgz 245410 BLAKE2B 778c3b8ad3ad5e698044a832d71409eea220a82041544abeb88b59370d4b719388ce13b277d7aad84e67e40fcbbfa06d66a2458d4d9e8d33bb7358ab46368230 SHA512 2cb2b856cf83a78d3542cdf7c69554dcc063a0541e9092b24e5e1fbd8928066a4a3de154049d0202c35addbc5055ccfbb5910ae92f2f13da80ddfc025340ddcd
24 +DIST pecl-imagick-3.4.3_p20181129.tar.gz 260443 BLAKE2B 43d30514f5faeeaa5894e2eb51d5b2ebbe2940728c7770eec60c41c9f01f86f7423d87a71a9ad2068e388f3994c31e499940c2042994846a6b6ab66542c7ea53 SHA512 7f3719118849857d19b9a35a63de68d4e992780fd41231a041d6d152ab2f0abd3d8215ab2362a998f8fe6a733c087d3c3e5d09fa826480d621739e92f5aeabf2
25
26 diff --git a/dev-php/pecl-imagick/files/pecl-imagick-3.4.3-tsrm_ls-is-undeclared.patch b/dev-php/pecl-imagick/files/pecl-imagick-3.4.3-tsrm_ls-is-undeclared.patch
27 new file mode 100644
28 index 00000000000..ff0a1eb3888
29 --- /dev/null
30 +++ b/dev-php/pecl-imagick/files/pecl-imagick-3.4.3-tsrm_ls-is-undeclared.patch
31 @@ -0,0 +1,18 @@
32 +https://github.com/mkoppanen/imagick/issues/264
33 +
34 +--- a/imagick_file.c
35 ++++ b/imagick_file.c
36 +@@ -160,11 +160,13 @@ static
37 + int php_imagick_read_image_using_imagemagick(php_imagick_object *intern, struct php_imagick_file_t *file, ImagickOperationType type TSRMLS_DC)
38 + {
39 +
40 ++#ifdef ZTS
41 + #ifndef ZEND_ENGINE_3
42 + #if PHP_VERSION_ID >= 50600
43 + // This suppresses an 'unused parameter' warning.
44 + (void)tsrm_ls;
45 + #endif
46 ++#endif
47 + #endif
48 +
49 + if (type == ImagickReadImage) {
50
51 diff --git a/dev-php/pecl-imagick/pecl-imagick-3.4.3_p20181129.ebuild b/dev-php/pecl-imagick/pecl-imagick-3.4.3_p20181129.ebuild
52 new file mode 100644
53 index 00000000000..e1c86fc7343
54 --- /dev/null
55 +++ b/dev-php/pecl-imagick/pecl-imagick-3.4.3_p20181129.ebuild
56 @@ -0,0 +1,32 @@
57 +# Copyright 1999-2019 Gentoo Authors
58 +# Distributed under the terms of the GNU General Public License v2
59 +
60 +EAPI="6"
61 +PHP_EXT_NAME="imagick"
62 +
63 +MY_COMMIT="d57a444766a321fa226266f51f1f42ee2cc29cc7"
64 +
65 +USE_PHP="php5-6 php7-0 php7-1 php7-2 php7-3"
66 +
67 +S="${WORKDIR}/imagick-${MY_COMMIT}"
68 +
69 +inherit php-ext-source-r3
70 +
71 +KEYWORDS="~amd64 ~x86"
72 +
73 +DESCRIPTION="PHP wrapper for the ImageMagick library"
74 +HOMEPAGE="https://pecl.php.net/imagick https://github.com/mkoppanen/imagick"
75 +SRC_URI="https://github.com/mkoppanen/imagick/archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz"
76 +LICENSE="PHP-3.01"
77 +SLOT="0"
78 +IUSE="examples test"
79 +
80 +# imagemagick[-openmp] is needed wrt bug 547922 and upstream
81 +# https://github.com/mkoppanen/imagick#openmp
82 +RDEPEND=">=media-gfx/imagemagick-6.2.4:=[-openmp]"
83 +DEPEND="${RDEPEND}
84 + test? ( >=media-gfx/imagemagick-6.2.4:=[jpeg,png,truetype] )"
85 +
86 +PATCHES=( "${FILESDIR}"/${PN}-3.4.3-tsrm_ls-is-undeclared.patch )
87 +
88 +PHP_EXT_ECONF_ARGS="--with-imagick=${EPREFIX%/}/usr"