aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Postnikov <apostnikov@gmail.com>2021-01-21 15:16:32 +0200
committerTBK <tbk@jjtc.eu>2021-01-21 22:52:08 +0000
commit75491cc680059a9261f8b7f56d1f598069eb01db (patch)
treebc509b4cede441eb1798745d77495fdd526edeb0
parentc858e682cd24aeff2bb0bb5c93eca7b4a8fe4b61 (diff)
downloadaports-75491cc680059a9261f8b7f56d1f598069eb01db.tar.gz
aports-75491cc680059a9261f8b7f56d1f598069eb01db.tar.bz2
aports-75491cc680059a9261f8b7f56d1f598069eb01db.tar.xz
testing/php7-pdlib: upgrade to 1.0.2 and modernize
-rw-r--r--testing/php7-pdlib/APKBUILD36
1 files changed, 17 insertions, 19 deletions
diff --git a/testing/php7-pdlib/APKBUILD b/testing/php7-pdlib/APKBUILD
index b04471a16b..5807db150a 100644
--- a/testing/php7-pdlib/APKBUILD
+++ b/testing/php7-pdlib/APKBUILD
@@ -1,17 +1,17 @@
# Contributor: goodspb <goodspb.luo@gmail.com>
# Maintainer: Adriaan Groenenboom <agboom@pm.me>
pkgname=php7-pdlib
-_pkgreal=pdlib
-pkgver=1.0
-pkgrel=1
-pkgdesc="PHP extension for Dlib"
+_extname=pdlib
+pkgver=1.0.2
+pkgrel=0
+pkgdesc="PHP 7 extension for Dlib"
url="https://github.com/goodspb/pdlib"
arch="all !ppc64le !mips !mips64" # build fails https://github.com/goodspb/pdlib/issues/19
license="MIT"
depends="php7-common dlib"
makedepends="php7-dev pkgconf php7-bz2"
-source="$pkgname-$pkgver.tar.gz::https://github.com/goodspb/$_pkgreal/archive/v$pkgver.tar.gz"
-builddir="$srcdir/$_pkgreal-$pkgver"
+source="php-$_extname-$pkgver.tar.gz::https://github.com/goodspb/$_extname/archive/v$pkgver.tar.gz"
+builddir="$srcdir/$_extname-$pkgver"
build() {
phpize7
@@ -20,23 +20,21 @@ build() {
}
check() {
- # Remove broken tests https://github.com/goodspb/pdlib/issues/14
- rm \
- tests/chinese_whispers_wrong_arg_type_error.phpt \
- tests/cnn_face_detection_ctor_error.phpt \
- tests/face_landmark_detection_ctor_error.phpt \
- tests/face_recognition_ctor_error.phpt \
- tests/integration_face_recognition.phpt # Downloads huge images
-
# Tests require bz2 extension which is not bundled
- sed -i 's#PHP_TEST_SHARED_EXTENSIONS = `#PHP_TEST_SHARED_EXTENSIONS = -d extension=/usr/lib/php7/modules/bz2.so `#' Makefile
- make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test
+ local _modules=/usr/lib/php7/modules
+ make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test \
+ TESTS=--show-diff SKIP_ONLINE_TESTS=1 \
+ PHP_TEST_SHARED_EXTENSIONS=" \
+ -d extension=$_modules/bz2.so \
+ -d extension=modules/$_extname.so"
+ php7 -dextension=modules/$_extname.so --ri $_extname
}
package() {
make INSTALL_ROOT="$pkgdir" install
- install -d "$pkgdir"/etc/php7/conf.d
- echo "extension=$_pkgreal.so" > "$pkgdir"/etc/php7/conf.d/$_pkgreal.ini
+ local _confdir="$pkgdir"/etc/php7/conf.d
+ install -d $_confdir
+ echo "extension=$_extname" > $_confdir/$_extname.ini
}
-sha512sums="1ff8c3b55d69321e1b1bcec6f8f41240138adfe0298269f857f5ee9655d783324f16a371f61b8eb97638d7014a724faa4c80e81b67b51c34e6203a309abeacae php7-pdlib-1.0.tar.gz"
+sha512sums="7222eeaedad8bfe8d0deb327c4d1deaea172994cfb2f2d43fb10f6b862ccc56e05bb459e0d2c94ed79f222eed8eb7c1974c15f862549bf563b132b531acf1cd3 php-pdlib-1.0.2.tar.gz"