mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 19:25:25 +03:00
49 lines
1.5 KiB
Text
49 lines
1.5 KiB
Text
# Contributor: Andy Postnikov <apostnikov@gmail.com>
|
|
# Contributor: Valery Kartel <valery.kartel@gmail.com>
|
|
# Contributor: Fabio Ribeiro <fabiorphp@gmail.com>
|
|
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
|
|
pkgname=php7-pecl-xdebug
|
|
_extname=xdebug
|
|
pkgver=3.1.6
|
|
pkgrel=0
|
|
pkgdesc="PHP extension that provides functions for function traces and profiling - PECL"
|
|
url="https://pecl.php.net/package/xdebug"
|
|
arch="all"
|
|
license="PHP-3.0"
|
|
depends="php7-common"
|
|
makedepends="php7-dev"
|
|
source="php-pecl-$_extname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz"
|
|
builddir="$srcdir/$_extname-$pkgver"
|
|
provides="php7-xdebug=$pkgver-r$pkgrel" # for backward compatibility
|
|
replaces="php7-xdebug" # for backward compatibility
|
|
|
|
build() {
|
|
phpize7
|
|
./configure --prefix=/usr --with-php-config=php-config7
|
|
make
|
|
}
|
|
|
|
check() {
|
|
# PECL package has no test suite.
|
|
php7 -d zend_extension="$builddir"/modules/xdebug.so -r 'xdebug_info();'
|
|
}
|
|
|
|
package() {
|
|
make INSTALL_ROOT="$pkgdir" install
|
|
|
|
local _confdir="$pkgdir"/etc/php7/conf.d
|
|
mkdir -p $_confdir
|
|
# should go after opcache
|
|
cat > $_confdir/50_$_extname.ini <<-EOF
|
|
; Uncomment and configure mode https://xdebug.org/docs/all_settings#xdebug.mode
|
|
;zend_extension=$_extname.so
|
|
;xdebug.mode=off
|
|
EOF
|
|
|
|
install -D -m644 -t "$pkgdir"/usr/share/php8/xdebug/ contrib/tracefile-analyser.php
|
|
install -D -m644 -t "$pkgdir"/usr/share/vim/vimfiles/syntax/ contrib/xt.vim
|
|
}
|
|
|
|
sha512sums="
|
|
5e9c185ff742b31fb25516b88f298e6c24e3c8dcf3848c1b5f8ffa10075a3027f4d48dac5429177acdb833c13c63348977787eb718ef4b0c57d635dcb8d254c1 php-pecl-xdebug-3.1.6.tgz
|
|
"
|