fritzkink
2023-12-25 a266d3ceda23426e3aab3d4ec731204df366f60d
php-8_2-ext-imagick - new package for php 8.2

6 files added
210 ■■■■■ changed files
components/web/php/php-8_2-ext-imagick/Makefile 83 ●●●●● patch | view | raw | blame | history
components/web/php/php-8_2-ext-imagick/imagick.ini 2 ●●●●● patch | view | raw | blame | history
components/web/php/php-8_2-ext-imagick/manifests/sample-manifest.p5m 27 ●●●●● patch | view | raw | blame | history
components/web/php/php-8_2-ext-imagick/php-8_2-ext-imagick.p5m 33 ●●●●● patch | view | raw | blame | history
components/web/php/php-8_2-ext-imagick/pkg5 12 ●●●●● patch | view | raw | blame | history
components/web/php/php-8_2-ext-imagick/test/results-all.master 53 ●●●●● patch | view | raw | blame | history
components/web/php/php-8_2-ext-imagick/Makefile
New file
@@ -0,0 +1,83 @@
#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL)". You may
# only use this file in accordance with the terms of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source. A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#
#
# Copyright (c) 2023 Stephan Althaus
# Copyright (c) 2023 Friedrich Kink
#
BUILD_BITS=        64
OPENSSL_VERSION=    3.1
include ../../../../make-rules/shared-macros.mk
COMPONENT_NAME=        php-8.2-ext-imagick
COMPONENT_VERSION=    3.7.0
COMPONENT_SUMMARY=    ImageMagick for PHP
COMPONENT_PROJECT_URL=    https://pecl.php.net/package/imagick
COMPONENT_SRC=        imagick-$(COMPONENT_VERSION)
COMPONENT_ARCHIVE=    $(COMPONENT_NAME)-$(COMPONENT_VERSION).tgz
COMPONENT_ARCHIVE_HASH=    sha256:5a364354109029d224bcbb2e82e15b248be9b641227f45e63425c06531792d3e
COMPONENT_ARCHIVE_URL=    https://pecl.php.net/get/$(COMPONENT_SRC).tgz
COMPONENT_FMRI=        web/php-82/extension/php-imagick
COMPONENT_CLASSIFICATION=    Development/PHP
COMPONENT_LICENSE=    Apache v2.0
COMPONENT_LICENSE_FILE=    LICENSE
include $(WS_MAKE_RULES)/common.mk
COMPONENT_TEST_TARGETS = test
COMPONENT_TEST_ENV += NO_INTERACTION=yes
COMPONENT_TEST_TRANSFORMS += \
    '-e "/^make/d" ' \
    '-e "/^Time taken/d" ' \
    '-e "/^TEST RESULT SUMMARY$$/,\$$p" ' \
    '-e "/.*/d" '
CLEAN_PATHS +=  package.xml
PHP_PREFIX=/usr/php/8.2
PHP_SYSCONFDIR=/etc/php/8.2
PHP_DATADIR=/var/php/8.2
# Configure Options
CONFIGURE_OPTIONS  +=   --prefix=$(PHP_PREFIX)
CONFIGURE_OPTIONS  +=   --bindir=$(PHP_PREFIX)/bin
CONFIGURE_OPTIONS  +=   --sbindir=$(PHP_PREFIX)/bin
CONFIGURE_OPTIONS  +=   --libdir=$(PHP_PREFIX)/lib/$(MACH64)
CONFIGURE_OPTIONS  +=   --libexecdir=$(PHP_PREFIX)/libexec
CONFIGURE_OPTIONS  +=   --includedir=$(PHP_PREFIX)/include
CONFIGURE_OPTIONS  +=   --sysconfdir=$(PHP_SYSCONFDIR)
CONFIGURE_OPTIONS  +=   --datadir=$(PHP_DATADIR)
CONFIGURE_OPTIONS  +=   --mandir=$(PHP_PREFIX)/share/man
CONFIGURE_OPTIONS  +=   --localstatedir=$(PHP_DATADIR)
CONFIGURE_OPTIONS  +=    --build=x86_64-pc-solaris2.10
CONFIGURE_OPTIONS  +=    --with-php-config=$(PHP_PREFIX)/bin/php-config
CFLAGS             +=    -I$(PHP_PREFIX)/include
CPPFLAG            +=    $(CFLAGS)
LDFLAGS            +=    -L$(PHP_PREFIX)/lib/$(MACH64) -R$(PHP_PREFIX)/lib/$(MACH64)
CONFIGURE_SCRIPT   =    $(@D)/configure
COMPONENT_PRE_CONFIGURE_ACTION     =    cp -R $(SOURCE_DIR)/* $(@D) ; cd $(@D) ; $(PHP_PREFIX)/bin/phpize
COMPONENT_PRE_BUILD_ACTION = ( sed -i 's/"tar/"gtar/g'  $(@D)/build/gen_stub.php )
COMPONENT_INSTALL_ARGS        +=    INSTALL_ROOT=$(PROTO_DIR)
# manually added dependencies
REQUIRED_PACKAGES += web/php-82/php-common
# Auto-generated dependencies
REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
REQUIRED_PACKAGES += image/imagemagick
REQUIRED_PACKAGES += system/library
components/web/php/php-8_2-ext-imagick/imagick.ini
New file
@@ -0,0 +1,2 @@
[imagick]
extension=imagick.so
components/web/php/php-8_2-ext-imagick/manifests/sample-manifest.p5m
New file
@@ -0,0 +1,27 @@
#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source.  A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#
#
# Copyright 2023 <contributor>
#
set name=pkg.fmri value=pkg:/$(COMPONENT_FMRI)@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
set name=pkg.human-version value=$(HUMAN_VERSION)
set name=pkg.summary value="$(COMPONENT_SUMMARY)"
set name=info.classification value="$(COMPONENT_CLASSIFICATION)"
set name=info.upstream-url value=$(COMPONENT_PROJECT_URL)
set name=info.source-url value=$(COMPONENT_ARCHIVE_URL)
set name=org.opensolaris.consolidation value=$(CONSOLIDATION)
license $(COMPONENT_LICENSE_FILE) license='$(COMPONENT_LICENSE)'
file path=usr/php/8.2/extensions/imagick.so
file path=usr/php/8.2/include/php/ext/imagick/php_imagick_shared.h
components/web/php/php-8_2-ext-imagick/php-8_2-ext-imagick.p5m
New file
@@ -0,0 +1,33 @@
#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source.  A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#
#
# Copyright (c) 2023 Stephan Althaus
# Copyright (c) 2023 Friedrich Kink
#
set name=pkg.fmri value=pkg:/$(COMPONENT_FMRI)@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
set name=pkg.human-version value=$(HUMAN_VERSION)
set name=pkg.summary value="$(COMPONENT_SUMMARY)"
set name=info.classification value="$(COMPONENT_CLASSIFICATION)"
set name=info.upstream-url value=$(COMPONENT_PROJECT_URL)
set name=info.source-url value=$(COMPONENT_ARCHIVE_URL)
set name=org.opensolaris.consolidation value=$(CONSOLIDATION)
license $(COMPONENT_LICENSE_FILE) license='$(COMPONENT_LICENSE)'
<transform file path=usr/php/8.2/extensions/.*\.so -> \
    add pkg.linted.userland.action001.2 true>
file imagick.ini path=etc/php/8.2/conf.d/imagick.ini preserve=true mode=0644
file path=usr/php/8.2/extensions/imagick.so
file path=usr/php/8.2/include/php/ext/imagick/php_imagick_shared.h
components/web/php/php-8_2-ext-imagick/pkg5
New file
@@ -0,0 +1,12 @@
{
    "dependencies": [
        "image/imagemagick",
        "system/library",
        "system/library/gcc-13-runtime",
        "web/php-82/php-common"
    ],
    "fmris": [
        "web/php-82/extension/php-imagick"
    ],
    "name": "php-8.2-ext-imagick"
}
components/web/php/php-8_2-ext-imagick/test/results-all.master
New file
@@ -0,0 +1,53 @@
TEST RESULT SUMMARY
---------------------------------------------------------------------
Exts skipped    :    0
Exts tested     :   31
---------------------------------------------------------------------
Number of tests :  332               319
Tests skipped   :   13 (  3.9%) --------
Tests warned    :    3 (  0.9%) (  0.9%)
Tests failed    :   20 (  6.0%) (  6.3%)
Expected fail   :    1 (  0.3%) (  0.3%)
Tests passed    :  295 ( 88.9%) ( 92.5%)
---------------------------------------------------------------------
=====================================================================
=====================================================================
EXPECTED FAILED TEST SUMMARY
---------------------------------------------------------------------
Test Imagick, affineTransformImage [tests/031_Imagick_affineTransformImage_basic.phpt]  XFAIL REASON: I don't understand what values are returned in which elements of getImageChannelStatistics
=====================================================================
=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
Test Imagick, annotateImage [tests/034_Imagick_annotateImage_basic.phpt]
Test ImagickDraw, composite [tests/177_ImagickDraw_composite_basic.phpt]
Test ImagickDraw, setFontSize [tests/206_ImagickDraw_setFontSize_basic.phpt]
Test ImagickDraw, setFontFamily [tests/207_ImagickDraw_setFontFamily_basic.phpt]
Test ImagickDraw, setFontStretch [tests/208_ImagickDraw_setFontStretch_basic.phpt]
Test ImagickDraw, setFontWeight [tests/209_ImagickDraw_setFontWeight_basic.phpt]
Test ImagickDraw, setFontStyle [tests/210_ImagickDraw_setFontStyle_basic.phpt]
Test ImagickDraw, setGravity [tests/212_ImagickDraw_setGravity_basic.phpt]
Test ImagickDraw, setTextAlignment [tests/222_ImagickDraw_setTextAlignment_basic.phpt]
Test ImagickDraw, setTextAntialias [tests/223_ImagickDraw_setTextAntialias_basic.phpt]
Test ImagickDraw, setTextUnderColor [tests/224_ImagickDraw_setTextUnderColor_basic.phpt]
Test ImagickDraw, setTextDecoration [tests/225_ImagickDraw_setTextDecoration_basic.phpt]
Test Tutorial, psychedelicFont [tests/241_Tutorial_psychedelicFont_basic.phpt]
Test Tutorial, psychedelicFontGif [tests/244_Tutorial_psychedelicFontGif_basic.phpt]
Test ImagickDraw, getTextDirection [tests/264_ImagickDraw_getTextDirection_basic.phpt]
Test ImagickDraw, getFontResolution [tests/266_ImagickDraw_getFontResolution_basic.phpt]
Test ImagickDraw:: setTextInterlineSpacing [tests/279_ImagickDraw_setTextInterlineSpacing.phpt]
Test Imagick, polaroidImage [tests/327_Imagick_polaroidImage_basic.phpt]
Test Imagick, polaroidWithTextAndMethod [tests/328_Imagick_polaroidImageWithTextAndMethod_basic.phpt]
Test PHP bug #59378 writing to php://memory is incomplete [tests/bug59378.phpt]
=====================================================================
=====================================================================
WARNED TEST SUMMARY
---------------------------------------------------------------------
Test ImagickDraw, getDensity [tests/268_ImagickDraw_getDensity_basic.phpt] (warn: XFAIL section but test passes)
Test Imagick, GetImageChannelRange basic [tests/287_Imagick_GetImageChannelRange_basic.phpt] (warn: XFAIL section but test passes)
ImagickPixel iterator [tests/bug_73840.phpt] (warn: XFAIL section but test passes)
=====================================================================