SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
43
devel/pecl-xdebug/Makefile
Normal file
43
devel/pecl-xdebug/Makefile
Normal file
|
@ -0,0 +1,43 @@
|
|||
COMMENT= debug and development tools for PHP
|
||||
|
||||
GH_ACCOUNT= xdebug
|
||||
GH_PROJECT= xdebug
|
||||
GH_TAGNAME= 3.2.0
|
||||
|
||||
CATEGORIES= devel
|
||||
|
||||
HOMEPAGE= https://xdebug.org/
|
||||
|
||||
# own license based on PHP's, see LICENSE
|
||||
PERMIT_PACKAGE= Yes
|
||||
|
||||
WANTLIB= m z
|
||||
|
||||
COMPILER= base-clang ports-gcc
|
||||
CONFIGURE_STYLE= gnu
|
||||
|
||||
MODULES= lang/php/pecl
|
||||
FLAVORS= php80 php81 php82
|
||||
MODPHP_DO_SAMPLE=
|
||||
PV= ${MODPHP_VERSION}
|
||||
MODULE_NAME= xdebug
|
||||
SUBST_VARS+= PV MODULE_NAME
|
||||
|
||||
post-install:
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/php-${MODPHP_VERSION}
|
||||
${INSTALL_DATA} ${WRKSRC}/xdebug.ini \
|
||||
${PREFIX}/share/examples/php-${MODPHP_VERSION}/
|
||||
|
||||
TEST_DEPENDS= lang/php/${MODPHP_VERSION},-cgi \
|
||||
lang/php/${MODPHP_VERSION},-dbg
|
||||
|
||||
do-test:
|
||||
@echo '[main]' > ${WRKDIR}/php.ini
|
||||
@echo 'zend_extension=${MODPHP_LIBDIR}/modules/opcache.so' >> ${WRKDIR}/php.ini
|
||||
@echo 'zend_extension=${WRKSRC}/modules/xdebug.so' >> ${WRKDIR}/php.ini
|
||||
@echo 'xdebug.mode=debug' >> ${WRKDIR}/php.ini
|
||||
cd ${WRKSRC}; ${SET_ENV} \
|
||||
${ALL_TEST_ENV} PHPRC=${WRKDIR}/php.ini PHP_INI_SCAN_DIR=no \
|
||||
${MODPHP_BIN} run-xdebug-tests.php -q
|
||||
|
||||
.include <bsd.port.mk>
|
2
devel/pecl-xdebug/distinfo
Normal file
2
devel/pecl-xdebug/distinfo
Normal file
|
@ -0,0 +1,2 @@
|
|||
SHA256 (xdebug-3.2.0.tar.gz) = pZefIGC5I3VSNmL0Ub/r12txgRaSHGC8346HvgxY3XI=
|
||||
SIZE (xdebug-3.2.0.tar.gz) = 449500
|
15
devel/pecl-xdebug/patches/patch-xdebug_ini
Normal file
15
devel/pecl-xdebug/patches/patch-xdebug_ini
Normal file
|
@ -0,0 +1,15 @@
|
|||
Index: xdebug.ini
|
||||
--- xdebug.ini.orig
|
||||
+++ xdebug.ini
|
||||
@@ -1,5 +1,9 @@
|
||||
-; This file is generated by the 'xdebug.org:html/docs/convert.php' robot
|
||||
-; for Xdebug 3.2.0 — do not modify by hand
|
||||
+zend_extension=xdebug.so
|
||||
+#xdebug.mode=develop,profile
|
||||
+
|
||||
+# paths are relative to /var/www if chroot is used
|
||||
+#xdebug.log=/logs/xdebug.log
|
||||
+#xdebug.output_dir=/tmp
|
||||
|
||||
; -----------------------------------------------------------------------------
|
||||
; xdebug.cli_color
|
23
devel/pecl-xdebug/pkg/DESCR
Normal file
23
devel/pecl-xdebug/pkg/DESCR
Normal file
|
@ -0,0 +1,23 @@
|
|||
Xdebug is an extension for PHP, and provides a range of features to
|
||||
improve the PHP development experience.
|
||||
|
||||
Step Debugging:
|
||||
A way to step through your code in your IDE or editor while
|
||||
the script is executing.
|
||||
|
||||
Improvements to PHP's error reporting:
|
||||
An improved var_dump() function, stack traces for Notices, Warnings,
|
||||
Errors and Exceptions to highlight the code path to the error.
|
||||
|
||||
Tracing:
|
||||
Writes every function call, with arguments and invocation location
|
||||
to disk. Optionally also includes every variable assignment and
|
||||
return value for each function.
|
||||
|
||||
Profiling:
|
||||
Allows you, with the help of visualisation tools, to analyse the
|
||||
performance of your PHP application and find bottlenecks.
|
||||
|
||||
Code Coverage Analysis:
|
||||
To show which parts of your code base are executed when running
|
||||
unit tests with PHP Unit.
|
4
devel/pecl-xdebug/pkg/PLIST
Normal file
4
devel/pecl-xdebug/pkg/PLIST
Normal file
|
@ -0,0 +1,4 @@
|
|||
@extra ${SYSCONFDIR}/php-${MODPHP_VERSION}/${MODULE_NAME}.ini
|
||||
@so lib/php-${MODPHP_VERSION}/modules/${MODULE_NAME}.so
|
||||
share/examples/php-${MODPHP_VERSION}/${MODULE_NAME}.ini
|
||||
@sample ${SYSCONFDIR}/php-${MODPHP_VERSION}.sample/${MODULE_NAME}.ini
|
Loading…
Add table
Add a link
Reference in a new issue