mirror of
https://git.freebsd.org/ports.git
synced 2025-06-06 05:10:29 -04:00
Ports using USES=php:phpize, php:ext, php:zend, and php:pecl are now flavored. They will automatically get flavors (php56, php70, php71, php72) depending of the versions they support (set with IGNORE_WITH_PHP). As a consequence, ports using USES=pear and USES=horde are also flavored. PR: 226242 Submitted by: mat Exp-run by: antoine Approved by: portmgr Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D14208
45 lines
1.4 KiB
Makefile
45 lines
1.4 KiB
Makefile
# Created by: Gasol Wu <gasol.wu@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= PHP_CodeCoverage
|
|
DISTVERSION= 5.2.2
|
|
CATEGORIES= devel pear
|
|
|
|
MAINTAINER= joneum@FreeBSD.org
|
|
COMMENT= Library that provides PHP code coverage information
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
BUILD_DEPENDS= ${PEAR_PKGNAMEPREFIX}File_Iterator>=1.4.2:devel/pear-File_Iterator@${PHP_FLAVOR} \
|
|
${PEAR_PKGNAMEPREFIX}PHP_TokenStream>=1.4.11:devel/pear-PHP_TokenStream@${PHP_FLAVOR} \
|
|
${PEAR_PKGNAMEPREFIX}Text_Template>=1.2.0:textproc/pear-Text_Template@${PHP_FLAVOR}
|
|
RUN_DEPENDS= ${PEAR_PKGNAMEPREFIX}File_Iterator>=1.4.2:devel/pear-File_Iterator@${PHP_FLAVOR} \
|
|
${PEAR_PKGNAMEPREFIX}PHP_TokenStream>=1.4.11:devel/pear-PHP_TokenStream@${PHP_FLAVOR} \
|
|
${PEAR_PKGNAMEPREFIX}Text_Template>=1.2.0:textproc/pear-Text_Template@${PHP_FLAVOR}
|
|
|
|
USES= pear:env
|
|
PEAR_CHANNEL= phpunit
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= sebastianbergmann
|
|
GH_PROJECT= php-code-coverage
|
|
|
|
NO_BUILD= yes
|
|
|
|
OPTIONS_DEFINE= DOM XDEBUG
|
|
DOM_DESC= Enable DOM support
|
|
XDEBUG_DESC= Enable Xdebug support
|
|
|
|
DOM_USE= PHP=dom
|
|
XDEBUG_RUN_DEPENDS= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/xdebug.so:devel/pecl-xdebug@${PHP_FLAVOR}
|
|
|
|
PHP_DIR= share/PHP
|
|
|
|
PLIST_FILES= ${PHP_DIR}/${PORTNAME}/CodeCoverage.php
|
|
|
|
do-install:
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/${PHP_DIR}/${PORTNAME}
|
|
${INSTALL_SCRIPT} ${WRKSRC}/src/CodeCoverage.php \
|
|
${STAGEDIR}${PREFIX}/${PHP_DIR}/${PORTNAME}
|
|
|
|
.include <bsd.port.mk>
|