Skip to content
Snippets Groups Projects
Commit cc5428c1 authored by Leo's avatar Leo
Browse files

testing/php7-pecl-decimal: rebuild against libmpdecimal.so.3

parent 60677a64
No related branches found
No related tags found
1 merge request!17821testing/mpdecimal: upgrade to 2.5.1
......@@ -2,13 +2,16 @@
pkgname=php7-pecl-decimal
_pkgreal=decimal
pkgver=2.0.0
pkgrel=1
pkgrel=2
pkgdesc="Correctly-rounded arbitrary precision decimal floating-point arithmetic in PHP."
# Some tests fail until 2.0.0 is released
# https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/17821#note_140064
options="!check"
url="https://pecl.php.net/package/decimal"
arch="all !x86 !ppc64le !armv7 !armhf" # mpdecimal missing
license="MIT"
depends="php7-json"
makedepends="php7-dev re2c mpdecimal"
makedepends="php7-dev mpdecimal-dev"
source="https://pecl.php.net/get/$_pkgreal-$pkgver.tgz
fix-build.patch
fix-test.patch
......@@ -26,7 +29,8 @@ build() {
check() {
# waiting upstream release
rm -f tests/Decimal/operators.phpt tests/Number/operators.phpt tests/Rational/operators.phpt
make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test PHP_TEST_SHARED_EXTENSIONS=" \
make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 TESTS="--show-diff" \
test PHP_TEST_SHARED_EXTENSIONS=" \
-d extension=/usr/lib/php7/modules/json.so \
-d extension=modules/$_pkgreal.so"
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment