Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
aports
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
alpine
aports
Merge requests
!17213
testing/php7-pdlib: upgrade to 1.0.2 and modernize
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
testing/php7-pdlib: upgrade to 1.0.2 and modernize
andypost/aports:php7-pdlib
into
master
Overview
0
Commits
1
Pipelines
2
Changes
1
Merged
Andy Postnikov
requested to merge
andypost/aports:php7-pdlib
into
master
4 years ago
Overview
0
Commits
1
Pipelines
2
Changes
1
Expand
https://github.com/goodspb/pdlib/releases
Modernizing to prepare to php8
Related to
!7177 (closed)
Edited
4 years ago
by
Andy Postnikov
0
0
Merge request reports
Compare
master
version 1
29859bea
4 years ago
master (base)
and
latest version
latest version
75491cc6
1 commit,
4 years ago
version 1
29859bea
1 commit,
4 years ago
1 file
+
17
−
19
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
testing/php7-pdlib/APKBUILD
+
17
−
19
Options
# 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
=
"
$pkg
name
-
$pkgver
.tar.gz::https://github.com/goodspb/
$_
pkgreal
/archive/v
$pkgver
.tar.gz"
builddir
=
"
$srcdir
/
$_
pkgreal
-
$pkgver
"
source
=
"
php-
$_ext
name
-
$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
php
7
-pdlib-1.0.tar.gz"
sha512sums
=
"
7222eeaedad8bfe8d0deb327c4d1deaea172994cfb2f2d43fb10f6b862ccc56e05bb459e0d2c94ed79f222eed8eb7c1974c15f862549bf563b132b531acf1cd3
php-pdlib-1.0.
2.
tar.gz"
Loading