aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTBK <tbk@jjtc.eu>2019-05-10 02:58:34 +0200
committerAndy Postnikov <apostnikov@gmail.com>2019-05-11 15:52:15 +0300
commite2c8dff99172aab2e1eebbe521b636c7c033025c (patch)
tree87d06bb9f4cdb85844692f07bdd5447d9c0694f0
parenta367acffc935e559db1885434723a0318965d557 (diff)
downloadaports-e2c8dff99172aab2e1eebbe521b636c7c033025c.tar.gz
aports-e2c8dff99172aab2e1eebbe521b636c7c033025c.tar.bz2
aports-e2c8dff99172aab2e1eebbe521b636c7c033025c.tar.xz
testing/php7-brotli: upgrade to 0.7.0
-rw-r--r--testing/php7-brotli/APKBUILD17
-rw-r--r--testing/php7-brotli/fix-skip-steams_006.patch10
2 files changed, 19 insertions, 8 deletions
diff --git a/testing/php7-brotli/APKBUILD b/testing/php7-brotli/APKBUILD
index ca9313194f..05b6aaa397 100644
--- a/testing/php7-brotli/APKBUILD
+++ b/testing/php7-brotli/APKBUILD
@@ -2,19 +2,21 @@
# Maintainer: TBK <alpine@jjtc.eu>
pkgname=php7-brotli
_pkgreal=brotli
-pkgver=0.6.2
+pkgver=0.7.0
pkgrel=0
pkgdesc="Brotli Extension for PHP"
url="https://github.com/kjdev/php-ext-brotli"
arch="all"
license="MIT"
depends="php7-common"
-makedepends="php7-dev autoconf brotli-dev re2c"
-source="$pkgname-$pkgver.tar.gz::https://github.com/kjdev/php-ext-brotli/archive/$pkgver.tar.gz"
+makedepends="autoconf brotli-dev php7-dev re2c"
+checkdepends="php7-cgi"
+source="$pkgname-$pkgver.tar.gz::https://github.com/kjdev/php-ext-brotli/archive/$pkgver.tar.gz
+ fix-skip-steams_006.patch
+ "
builddir="$srcdir/php-ext-brotli-$pkgver"
build() {
- cd "$builddir"
phpize7
./configure \
--prefix=/usr \
@@ -24,15 +26,14 @@ build() {
}
check() {
- cd "$builddir"
- make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test
+ make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 SKIP_ONLINE_TESTS=1 test
}
package() {
- cd "$builddir"
make INSTALL_ROOT="$pkgdir"/ install
install -d "$pkgdir"/etc/php7/conf.d
echo "extension=$_pkgreal.so" > "$pkgdir"/etc/php7/conf.d/50_$_pkgreal.ini
}
-sha512sums="5ebb992a9e2038a9d3f9ad38627bf83d0afadc58f46b3cab39c25d58fc50bebf31881421f837f8a00fc880f664e5f13d54763261b25da40b4bc978a06e756604 php7-brotli-0.6.2.tar.gz"
+sha512sums="4d345fb4ed668ceec7cfb90e300ee5de883be142292a138333edee014169c17f2ba012e42e746d00af4c6fac889c15cbd8f9956d89246a55b42fb32b013a4e81 php7-brotli-0.7.0.tar.gz
+daa8078c48f6c1a32661c05d374419bfa690ac8b7326a8fdac86106d6e6142719393b0a2f3b82f33212da78a8fa7c6bebcdda1573419ef555ec69cd6b483971f fix-skip-steams_006.patch"
diff --git a/testing/php7-brotli/fix-skip-steams_006.patch b/testing/php7-brotli/fix-skip-steams_006.patch
new file mode 100644
index 0000000000..82f0c85c3a
--- /dev/null
+++ b/testing/php7-brotli/fix-skip-steams_006.patch
@@ -0,0 +1,10 @@
+--- a/tests/streams_006.phpt
++++ b/tests/streams_006.phpt
+@@ -3,6 +3,7 @@
+ --SKIPIF--
+ <?php
+ if (version_compare(PHP_VERSION, '5.4', '<')) die('skip PHP is too old');
++if (getenv("SKIP_ONLINE_TESTS")) die('skip online test');
+ ?>
+ --INI--
+ allow_url_fopen=0