pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/www/php-glpi Take care for php56 case, depending on ww...
details: https://anonhg.NetBSD.org/pkgsrc/rev/0a140ee8eafb
branches: trunk
changeset: 365533:0a140ee8eafb
user: taca <taca%pkgsrc.org@localhost>
date: Wed Jul 19 03:06:00 2017 +0000
description:
Take care for php56 case, depending on www/php-apcu4 instead of
www/php-apcu_bc.
diffstat:
www/php-glpi/Makefile | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diffs (32 lines):
diff -r eaa6428026ac -r 0a140ee8eafb www/php-glpi/Makefile
--- a/www/php-glpi/Makefile Wed Jul 19 02:44:45 2017 +0000
+++ b/www/php-glpi/Makefile Wed Jul 19 03:06:00 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2017/07/18 14:29:51 hauke Exp $
+# $NetBSD: Makefile,v 1.2 2017/07/19 03:06:00 taca Exp $
DISTNAME= glpi-${GLPI_VERSION}
GLPI_VERSION= 9.1.5
@@ -21,7 +21,6 @@
DEPENDS+= ${PHP_PKG_PREFIX}-imap>=5.4:../../mail/php-imap
DEPENDS+= ${PHP_PKG_PREFIX}-xmlrpc>=5.4:../../net/php-xmlrpc
DEPENDS+= ${PHP_PKG_PREFIX}-json>=5.4:../../textproc/php-json
-DEPENDS+= ${PHP_PKG_PREFIX}-apcu_bc>=1.0:../../www/php-apcu_bc
DEPENDS+= ${PHP_PKG_PREFIX}-curl>=5.4:../../www/php-curl
DEPENDS+= freefont-ttf-[0-9]*:../../fonts/freefont-ttf
@@ -78,6 +77,14 @@
INSTALLATION_DIRS+= ${GLPI_DIR} ${EGDIR}
+.include "../../lang/php/phpversion.mk"
+
+.if ${PKG_PHP_VERSION} == 56
+DEPENDS+= ${PHP_PKG_PREFIX}-apcu>=4.0:../../www/php-apcu4
+.else
+DEPENDS+= ${PHP_PKG_PREFIX}-apcu_bc>=1.0:../../www/php-apcu_bc
+.endif
+
post-extract:
for ddd in config_path.php crontab.sample httpd-glpi.conf ; do \
${CP} ${FILESDIR}/$${ddd} ${WRKSRC}/config ; \
Home |
Main Index |
Thread Index |
Old Index