mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-30 02:41:17 +02:00
55 lines
1.5 KiB
Plaintext
55 lines
1.5 KiB
Plaintext
# Contributor: Andy Postnikov <apostnikov@gmail.com>
|
|
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
|
|
|
|
pkgname=php7-xhprof
|
|
_pkgreal=xhprof
|
|
pkgver=2.0.5
|
|
pkgrel=0
|
|
pkgdesc="A Hierarchical Profiler for PHP"
|
|
url="https://github.com/longxinH/xhprof"
|
|
arch="all !s390x"
|
|
license="Apache-2.0"
|
|
depends="php7 php7-ctype"
|
|
makedepends="php7-dev autoconf"
|
|
subpackages="$pkgname-assets::noarch"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/longxinH/xhprof/archive/v$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pkgreal-$pkgver"
|
|
|
|
build() {
|
|
cd "$builddir"/extension
|
|
phpize7
|
|
./configure --with-php-config=php-config7
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd "$builddir"/extension
|
|
make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 -f Makefile.local test_with_exit_status
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"/extension
|
|
make INSTALL_ROOT="$pkgdir"/ install
|
|
local confdir="$pkgdir/etc/php7/conf.d"
|
|
install -d "$confdir"
|
|
cat > "$confdir"/$_pkgreal.ini <<-EOF
|
|
extension=$_pkgreal.so
|
|
xhprof.output_dir=/tmp
|
|
EOF
|
|
local installdir="$pkgdir"/usr/share/php7/xhprof
|
|
install -d "$installdir"
|
|
cp -R "$builddir"/xhprof_lib "$installdir"
|
|
}
|
|
|
|
assets() {
|
|
pkgdesc="A Hierarchical Profiler for PHP (UI assets)"
|
|
depends="$pkgname graphviz ghostscript-fonts"
|
|
|
|
local installdir="$subpkgdir"/usr/share/php7/xhprof
|
|
install -d "$installdir"
|
|
cp -R "$builddir"/xhprof_html "$installdir"
|
|
cp -R "$builddir"/examples "$installdir"
|
|
}
|
|
|
|
sha512sums="299b5075727112e393425b9a5ed075c06f264c92012d5f49ac9cc52df673766c6bcc796835624327c5ec0f99d687d4d5d22151ac9caf8d276edea597bd564146 php7-xhprof-2.0.5.tar.gz"
|