1 | |
---|
2 | PortSystem 1.0 |
---|
3 | name php5-xdebug |
---|
4 | version 2.0.0 |
---|
5 | |
---|
6 | categories www net devel |
---|
7 | platforms darwin freebsd openbsd |
---|
8 | maintainers emory.smith@gmail.com openmaintainer@macports.org |
---|
9 | homepage http://www.xdebug.org/index.php |
---|
10 | description php5 extension for php debugging |
---|
11 | long_description \ |
---|
12 | Xdebug is a php extension that helps you debug your scripts. It \ |
---|
13 | provides valuable debug information, including error stack traces and \ |
---|
14 | memory allocation summaries. It can generate profiling information \ |
---|
15 | about your php scripts, to be used for script execution analysis and \ |
---|
16 | optimization. It also supports debugging interactively using the dbg \ |
---|
17 | debug client. |
---|
18 | |
---|
19 | master_sites http://www.xdebug.org/files/ |
---|
20 | checksums md5 0f9ecb9c5331d0041b04be9566763171 |
---|
21 | distname xdebug-${version} |
---|
22 | extract.suffix .tgz |
---|
23 | depends_lib port:php5 |
---|
24 | configure.args --enable-xdebug --with-php-config=${prefix}/bin/php-config |
---|
25 | |
---|
26 | pre-configure { |
---|
27 | cd ${worksrcpath} |
---|
28 | system "${prefix}/bin/phpize" |
---|
29 | } |
---|
30 | |
---|
31 | destroot.destdir INSTALL_ROOT=${destroot} |
---|
32 | |
---|
33 | post-install { |
---|
34 | |
---|
35 | set ini_file "${prefix}/etc/php.ini" |
---|
36 | set extension_file "${prefix}/lib/php/extensions/no-debug-non-zts-20060613/xdebug.so" |
---|
37 | set xdebug_docs "http://www.xdebug.org/docs/" |
---|
38 | |
---|
39 | ui_msg " |
---|
40 | *************************************************************************** |
---|
41 | * To enable the xdebug extension in php, add or edit the following |
---|
42 | * lines in ${ini_file}: |
---|
43 | * |
---|
44 | * zend_extension=\"${extension_file}\" |
---|
45 | * |
---|
46 | * Once the extension is installed, you can get a list of the available |
---|
47 | * configuration settings with the following command: |
---|
48 | * |
---|
49 | * % php --ri xdebug |
---|
50 | * |
---|
51 | * For more information and details about configuration settings, see |
---|
52 | * ${xdebug_docs} |
---|
53 | ***************************************************************************" |
---|
54 | } |
---|