mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-12 18:59:50 +03:00
testing/php85-pecl-igbinary: new aport
This commit is contained in:
parent
71b85650d1
commit
74ca20ddd7
2 changed files with 60 additions and 0 deletions
49
testing/php85-pecl-igbinary/APKBUILD
Normal file
49
testing/php85-pecl-igbinary/APKBUILD
Normal file
|
@ -0,0 +1,49 @@
|
|||
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
|
||||
pkgname=php85-pecl-igbinary
|
||||
_extname=igbinary
|
||||
pkgver=3.2.16
|
||||
pkgrel=0
|
||||
pkgdesc="Igbinary is a drop in replacement for the standard PHP 8.5 serializer - PECL"
|
||||
url="https://pecl.php.net/package/igbinary"
|
||||
arch="all"
|
||||
license="BSD-3-Clause"
|
||||
_phpv=85
|
||||
_php=php$_phpv
|
||||
depends="$_php-common"
|
||||
makedepends="$_php-dev $_php-pecl-apcu"
|
||||
checkdepends="$_php-session" # sessions needs work https://github.com/igbinary/igbinary/issues/116
|
||||
source="php-pecl-$_extname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz
|
||||
fix-test.patch"
|
||||
builddir="$srcdir/$_extname-$pkgver"
|
||||
|
||||
install_if="php-$_extname php$_phpv"
|
||||
|
||||
build() {
|
||||
phpize$_phpv
|
||||
./configure --prefix=/usr --with-php-config=php-config$_phpv
|
||||
make
|
||||
}
|
||||
|
||||
check() {
|
||||
local _modules="/usr/lib/$_php/modules"
|
||||
# Tests require extra extensions which are not bundled
|
||||
make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test \
|
||||
TESTS=--show-diff \
|
||||
PHP_TEST_SHARED_EXTENSIONS=" \
|
||||
-d extension=$_modules/apcu.so \
|
||||
-d extension=$_modules/session.so \
|
||||
-d extension=modules/$_extname.so"
|
||||
$_php -d extension="$builddir"/modules/$_extname.so --ri $_extname
|
||||
}
|
||||
|
||||
package() {
|
||||
make INSTALL_ROOT="$pkgdir" install
|
||||
local _confdir="$pkgdir"/etc/$_php/conf.d
|
||||
install -d $_confdir
|
||||
echo "extension=$_extname" > $_confdir/10_$_extname.ini
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
ad806ad42398e2355b18d7f99da6ac176a8d5de829cc9d7c0c38a211f4092cafdde80f6fa989dbdc77ea912e054ce88825675c727afd3a6e0d3150b3796a7bcd php-pecl-igbinary-3.2.16.tgz
|
||||
dabbf960d5889b4c4aa468c2e7b6e35be582168c88dff908258801be4b191c70c9796946c2c5c42d771ca801f2f9c8e8f669d7c821eeae9ea15cdf9ebd31e528 fix-test.patch
|
||||
"
|
11
testing/php85-pecl-igbinary/fix-test.patch
Normal file
11
testing/php85-pecl-igbinary/fix-test.patch
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- a/tests/igbinary_009b_php8.phpt
|
||||
+++ b/tests/igbinary_009b_php8.phpt
|
||||
@@ -12,7 +12,7 @@
|
||||
pcre.jit=0
|
||||
--FILE--
|
||||
<?php
|
||||
-error_reporting(E_ALL|E_STRICT);
|
||||
+error_reporting(E_ALL);
|
||||
// Verify that $type[0] is the same zval as $type[0][0][0], but different from $type[0]
|
||||
function test_cyclic2($type, $variable) {
|
||||
$serialized = igbinary_serialize($variable);
|
Loading…
Add table
Add a link
Reference in a new issue