pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/php langphp: add support for php81



details:   https://anonhg.NetBSD.org/pkgsrc/rev/365cdc3da8d7
branches:  trunk
changeset: 770234:365cdc3da8d7
user:      taca <taca%pkgsrc.org@localhost>
date:      Sun Nov 28 00:37:24 2021 +0000

description:
langphp: add support for php81

Oops, forgot to commit this.  Noted by wiz@, thanks much.

diffstat:

 lang/php/phpversion.mk |  26 +++++++++++++++++---------
 1 files changed, 17 insertions(+), 9 deletions(-)

diffs (99 lines):

diff -r 2fb254bdc722 -r 365cdc3da8d7 lang/php/phpversion.mk
--- a/lang/php/phpversion.mk    Sat Nov 27 23:40:57 2021 +0000
+++ b/lang/php/phpversion.mk    Sun Nov 28 00:37:24 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: phpversion.mk,v 1.347 2021/11/19 14:29:04 taca Exp $
+# $NetBSD: phpversion.mk,v 1.348 2021/11/28 00:37:24 taca Exp $
 #
 # This file selects a PHP version, based on the user's preferences and
 # the installed packages. It does not add a dependency on the PHP
@@ -10,7 +10,7 @@
 #      The PHP version to choose when more than one is acceptable to
 #      the package.
 #
-#      Possible: 56 73 74 80
+#      Possible: 56 73 74 80 81
 #      Default: 74
 #
 # === Infrastructure variables ===
@@ -27,13 +27,13 @@
 # PHP_VERSIONS_ACCEPTED
 #      The PHP versions that are accepted by the package.
 #
-#      Possible: 56 73 74 80
-#      Default: 73 56 74 80
+#      Possible: 56 73 74 80 81
+#      Default: 73 56 74 80 81
 #
 # PHP_VERSIONS_INCOMPATIBLE
 #      The PHP versions that are not supported by the package.
 #
-#      Possible: 56 73 74 80
+#      Possible: 56 73 74 80 81
 #      Default: (empty)
 #
 # PHP_CHECK_INSTALLED
@@ -48,7 +48,7 @@
 # PKG_PHP_VERSION
 #      The selected PHP version.
 #
-#      Possible: 56 73 74 80
+#      Possible: 56 73 74 80 81
 #      Default: ${PHP_VERSION_DEFAULT}
 #
 # PHP_BASE_VERS
@@ -72,7 +72,7 @@
 # PHP_PKG_PREFIX
 #      The prefix that is prepended to the package name.
 #
-#      Example: php56 php73 php74 php80
+#      Example: php56 php73 php74 php80 php81
 #
 # PHP_EXTENSION_DIR
 #      Relative path to ${PREFIX} for PHP's extensions.  It is derived from
@@ -91,12 +91,14 @@
 PHP73_VERSION= 7.3.33
 PHP74_VERSION= 7.4.26
 PHP80_VERSION= 8.0.13
+PHP81_VERSION= 8.1.0
 
 # Define initial release of major version.
 PHP56_RELDATE= 20140828
 PHP73_RELDATE= 20181200
 PHP74_RELDATE= 20191128
 PHP80_RELDATE= 20201124
+PHP81_RELDATE= 20211125
 
 _VARGROUPS+=   php
 _USER_VARS.php=        PHP_VERSION_DEFAULT
@@ -107,7 +109,7 @@
 .include "../../mk/bsd.prefs.mk"
 
 PHP_VERSION_DEFAULT?=          74
-PHP_VERSIONS_ACCEPTED?=                73 74 56 80
+PHP_VERSIONS_ACCEPTED?=                73 74 56 80 81
 .for pv in ${PHP_VERSIONS_ACCEPTED}
 .  if empty(PHP_VERSIONS_INCOMPATIBLE:M${pv})
 _PHP_VERSIONS_ACCEPTED+=       ${pv}
@@ -120,7 +122,10 @@
 .endfor
 
 # check what is installed
-.if exists(${LOCALBASE}/lib/php/${PHP80_RELDATE})
+.if exists(${LOCALBASE}/lib/php/${PHP81_RELDATE})
+_PHP_VERSION_81_INSTALLED=     yes
+_PHP_INSTALLED=                        yes
+.elif exists(${LOCALBASE}/lib/php/${PHP80_RELDATE})
 _PHP_VERSION_80_INSTALLED=     yes
 _PHP_INSTALLED=                        yes
 .elif exists(${LOCALBASE}/lib/php/${PHP74_RELDATE})
@@ -214,6 +219,9 @@
 .elif ${_PHP_VERSION} == "80"
 PHP_VERSION=           ${PHP80_VERSION}
 PHP_EXTENSION_DIR=     lib/php/${PHP80_RELDATE}
+.elif ${_PHP_VERSION} == "81"
+PHP_VERSION=           ${PHP81_VERSION}
+PHP_EXTENSION_DIR=     lib/php/${PHP81_RELDATE}
 .else
 # force an error
 PKG_FAIL_REASON+=      "${PKG_PHP} is not a valid package"



Home | Main Index | Thread Index | Old Index