pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/php71 Add php 7.1.0beta1
details: https://anonhg.NetBSD.org/pkgsrc/rev/1f003815fa80
branches: trunk
changeset: 350749:1f003815fa80
user: jdolecek <jdolecek%pkgsrc.org@localhost>
date: Thu Aug 04 14:09:03 2016 +0000
description:
Add php 7.1.0beta1
PHP 7.1.x builds upon 7.0.x, adding new features (so far)
* Iterable type.
* HTTP/2 Server Push Support in ext/curl & other ext/curl improvements
* Fix inconsistent behavior in $this variable
* Square bracket syntax for array destructuring assignment
* Create closure from callable
* More precise float values
* Asynchronous Signal Handling (without ticks) in ext/pcntl.
* Additional Context in pcntl_signal Handler
NOTE: this is BETA, not suitable for production environment
diffstat:
lang/php71/DESCR | 19 +
lang/php71/MESSAGE | 13 +
lang/php71/Makefile | 71 +++
lang/php71/Makefile.common | 22 +
lang/php71/Makefile.php | 92 ++++
lang/php71/PLIST | 283 +++++++++++++++
lang/php71/buildlink3.mk | 15 +
lang/php71/distinfo | 27 +
lang/php71/patches/patch-acinclude.m4 | 13 +
lang/php71/patches/patch-configure | 91 ++++
lang/php71/patches/patch-ext_gd_config.m4 | 49 ++
lang/php71/patches/patch-ext_imap_config.m4 | 28 +
lang/php71/patches/patch-ext_pcre_pcrelib_config.h | 26 +
lang/php71/patches/patch-ext_pdo__mysql_config.m4 | 13 +
lang/php71/patches/patch-ext_pdo_config.m4 | 25 +
lang/php71/patches/patch-ext_phar_Makefile.frag | 13 +
lang/php71/patches/patch-ext_phar_phar_phar.php | 10 +
lang/php71/patches/patch-ext_recode_recode.c | 22 +
lang/php71/patches/patch-ext_sqlite3_libsqlite_sqlite3.c | 13 +
lang/php71/patches/patch-ext_standard_basic__functions.c | 13 +
lang/php71/patches/patch-ext_standard_php__dns.h | 23 +
lang/php71/patches/patch-makedist | 13 +
lang/php71/patches/patch-php.ini-development | 33 +
lang/php71/patches/patch-php.ini-production | 33 +
lang/php71/patches/patch-run-tests.php | 10 +
lang/php71/patches/patch-sapi_cgi_Makefile.frag | 16 +
lang/php71/patches/patch-sapi_cli_Makefile.frag | 19 +
lang/php71/patches/patch-sapi_fpm_fpm_events_port.c | 45 ++
lang/php71/patches/patch-sapi_fpm_php-fpm.conf.in | 13 +
29 files changed, 1063 insertions(+), 0 deletions(-)
diffs (truncated from 1179 to 300 lines):
diff -r abdd7c624b1a -r 1f003815fa80 lang/php71/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/php71/DESCR Thu Aug 04 14:09:03 2016 +0000
@@ -0,0 +1,19 @@
+PHP is a widely-used open source general-purpose scripting language
+that is especially suited for web development and can be embedded
+into HTML. It is modular, and object-oriented. Much of its syntax
+is borrowed from C, Java and Perl with a couple of unique PHP-specific
+features thrown in. The language is designed to allow web developers
+to write dynamically generated pages quickly.
+
+This package provides PHP version 7.1.x.
+
+PHP 7.1.x builds upon 7.0.x, adding new features:
+
+* Iterable type.
+* HTTP/2 Server Push Support in ext/curl & other ext/curl improvements
+* Fix inconsistent behavior in $this variable
+* Square bracket syntax for array destructuring assignment
+* Create closure from callable
+* More precise float values
+* Asynchronous Signal Handling (without ticks) in ext/pcntl.
+* Additional Context in pcntl_signal Handler
diff -r abdd7c624b1a -r 1f003815fa80 lang/php71/MESSAGE
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/php71/MESSAGE Thu Aug 04 14:09:03 2016 +0000
@@ -0,0 +1,13 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1 2016/08/04 14:09:03 jdolecek Exp $
+
+To process PHP scripts, you will need a PHP-enabled HTTP server. You may
+either configure the HTTP server to use the PHP CGI binary located in
+
+ ${CGIDIR}/php
+
+or you may install a PHP module for your HTTP server, e.g. www/ap-php.
+
+WARNING:
+PHP 7.1 is BETA, THIS IS A DEVELOPMENT PREVIEW - DO NOT USE IT IN PRODUCTION!
+===========================================================================
diff -r abdd7c624b1a -r 1f003815fa80 lang/php71/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/php71/Makefile Thu Aug 04 14:09:03 2016 +0000
@@ -0,0 +1,71 @@
+# $NetBSD: Makefile,v 1.1 2016/08/04 14:09:03 jdolecek Exp $
+
+#
+# We can't omit PKGNAME here to handle PKG_OPTIONS.
+#
+PKGNAME= php-${PHP_VERSION}
+CATEGORIES= lang
+
+HOMEPAGE= http://www.php.net/
+COMMENT= PHP Hypertext Preprocessor version 7.1
+LICENSE= php
+
+# 7.1 is in beta, available only on dev location
+MASTER_SITES= https://downloads.php.net/~ab/
+
+TEST_TARGET= test
+
+USE_TOOLS+= gmake lex pkg-config
+LIBTOOL_OVERRIDE= # empty
+PHP_CHECK_INSTALLED= No
+
+PHP_VERSIONS_ACCEPTED= 71
+
+.include "Makefile.php"
+
+CGIDIR= ${PREFIX}/libexec/cgi-bin
+EGDIR= ${PREFIX}/share/examples/php
+MESSAGE_SUBST+= CGIDIR=${CGIDIR}
+
+CONFIGURE_ENV+= lt_cv_path_SED=${SED:Q}
+MAKE_ENV+= INSTALL_ROOT=${DESTDIR}
+
+CONF_FILES= ${EGDIR}/php.ini-production ${PKG_SYSCONFDIR}/php.ini
+PLIST_SUBST+= PHPEXTDIR="${PHP_EXTENSION_DIR}"
+
+SUBST_CLASSES+= path
+SUBST_MESSAGE.path= Fixing common paths.
+SUBST_STAGE.path= pre-configure
+SUBST_FILES.path= ext/phar/phar/phar.php
+SUBST_FILES.path+= php.ini-development php.ini-production run-tests.php
+SUBST_FILES.path+= sapi/cgi/Makefile.frag
+SUBST_SED.path= -e 's,@CGIDIR@,${CGIDIR},g'
+SUBST_SED.path+= -e 's,@PREFIX@,${PREFIX},g'
+
+INSTALLATION_DIRS+= ${CGIDIR} ${PHP_EXTENSION_DIR} ${EGDIR} share/php
+
+# Make sure modules can link correctly
+.if ${OPSYS} == "Darwin"
+INSTALL_UNSTRIPPED= yes
+.endif
+
+# Darwin < 9 (Mac OS X < 10.5 "Leopard") doesn't have gethostuuid(2)
+# and lacks the zone memory allocator
+.if !empty(MACHINE_PLATFORM:MDarwin-[0-8].*-*)
+CFLAGS+= -DSQLITE_ENABLE_LOCKING_STYLE=0 -DSQLITE_WITHOUT_ZONEMALLOC
+.endif
+
+post-extract:
+ cd ${WRKSRC} && \
+ ${FIND} . -xdev -type f -name '*.orig' -exec ${RM} -f {} \;
+
+post-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/sapi/cli/php ${DESTDIR}${PREFIX}/bin/php
+ ${INSTALL_DATA} ${WRKSRC}/sapi/cli/php.1 \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/php.1
+ ${INSTALL_PROGRAM} ${WRKSRC}/sapi/cgi/php-cgi ${DESTDIR}${CGIDIR}/php
+ cd ${WRKSRC}; ${INSTALL_DATA} php.ini-development php.ini-production \
+ ${DESTDIR}${EGDIR}
+ ${INSTALL_DATA} ${WRKSRC}/php.gif ${DESTDIR}${PREFIX}/share/php
+
+.include "../../mk/bsd.pkg.mk"
diff -r abdd7c624b1a -r 1f003815fa80 lang/php71/Makefile.common
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/php71/Makefile.common Thu Aug 04 14:09:03 2016 +0000
@@ -0,0 +1,22 @@
+# $NetBSD: Makefile.common,v 1.1 2016/08/04 14:09:03 jdolecek Exp $
+# used by lang/php71/Makefile.php
+# used by lang/php/ext.mk
+# used by meta-pkgs/php71-extensions/Makefile
+
+PHP_VERSION_REQD= 71
+
+.include "../../lang/php/common.mk"
+
+CATEGORIES+= www
+MAINTAINER?= pkgsrc-users%NetBSD.org@localhost
+
+# needed due to (broken?) configure checks in php-xmlrpc and php5-dom
+CONFIGURE_ENV+= PHP_LIBXML_SHARED="1"
+
+EXTRACT_USING= gtar
+
+.include "../../mk/compiler.mk"
+.if !empty(PKGSRC_COMPILER:Mclang)
+# configure test gets confused by wrappers dropping -R /usr/lib
+CONFIGURE_ARGS+= php_cv_cc_dashr=no
+.endif
diff -r abdd7c624b1a -r 1f003815fa80 lang/php71/Makefile.php
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/php71/Makefile.php Thu Aug 04 14:09:03 2016 +0000
@@ -0,0 +1,92 @@
+# $NetBSD: Makefile.php,v 1.1 2016/08/04 14:09:03 jdolecek Exp $
+# used by lang/php71/Makefile
+# used by www/ap-php/Makefile
+# used by www/php-fpm/Makefile
+
+.include "../../lang/php71/Makefile.common"
+
+DISTINFO_FILE= ${.CURDIR}/../../lang/php71/distinfo
+PATCHDIR= ${.CURDIR}/../../lang/php71/patches
+
+USE_LIBTOOL= YES
+USE_LANGUAGES= c c++
+GNU_CONFIGURE= YES
+BUILD_DEFS+= VARBASE
+PLIST_VARS+= dtrace
+
+CONFIGURE_ENV+= EXTENSION_DIR="${PREFIX}/${PHP_EXTENSION_DIR}"
+
+.include "../../mk/bsd.prefs.mk"
+
+CONFIGURE_ARGS+= --with-config-file-path=${PKG_SYSCONFDIR}
+CONFIGURE_ARGS+= --with-config-file-scan-dir=${PKG_SYSCONFDIR}/php.d
+CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
+CONFIGURE_ARGS+= --localstatedir=${VARBASE}
+
+CONFIGURE_ARGS+= --without-mysqli
+CONFIGURE_ARGS+= --without-iconv
+CONFIGURE_ARGS+= --without-pear
+#CONFIGURE_ARGS+= --without-intl
+
+CONFIGURE_ARGS+= --disable-posix
+CONFIGURE_ARGS+= --disable-dom
+CONFIGURE_ARGS+= --disable-opcache
+CONFIGURE_ARGS+= --disable-pdo
+CONFIGURE_ARGS+= --disable-json
+
+CONFIGURE_ARGS+= --enable-cgi
+CONFIGURE_ARGS+= --enable-mysqlnd
+CONFIGURE_ARGS+= --enable-xml
+CONFIGURE_ARGS+= --with-libxml-dir=${PREFIX}
+.include "../../textproc/libxml2/buildlink3.mk"
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.${PHP_PKG_PREFIX}
+PKG_SUPPORTED_OPTIONS+= inet6 ssl maintainer-zts readline
+PKG_SUGGESTED_OPTIONS+= inet6 ssl
+
+.if ${OPSYS} == "SunOS" || ${OPSYS} == "Darwin" || ${OPSYS} == "FreeBSD"
+PKG_SUPPORTED_OPTIONS+= dtrace
+.endif
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Minet6)
+CONFIGURE_ARGS+= --enable-ipv6
+.else
+CONFIGURE_ARGS+= --disable-ipv6
+.endif
+
+.if !empty(PKG_OPTIONS:Mssl)
+. include "../../security/openssl/buildlink3.mk"
+. if ${OPSYS} == "SunOS"
+CONFIGURE_ARGS+= --with-openssl=yes
+LIBS.SunOS+= -lcrypto
+. else
+CONFIGURE_ARGS+= --with-openssl=${BUILDLINK_PREFIX.openssl}
+. endif
+.else
+CONFIGURE_ARGS+= --without-openssl
+.endif
+
+.if !empty(PKG_OPTIONS:Mmaintainer-zts)
+CONFIGURE_ARGS+= --enable-maintainer-zts
+.endif
+
+.if !empty(PKG_OPTIONS:Mreadline)
+USE_GNU_READLINE= yes
+.include "../../devel/readline/buildlink3.mk"
+CONFIGURE_ARGS+= --with-readline=${BUILDLINK_PREFIX.readline}
+.else
+CONFIGURE_ARGS+= --without-readline
+.endif
+
+.if !empty(PKG_OPTIONS:Mdtrace)
+PLIST.dtrace= yes
+CONFIGURE_ARGS+= --enable-dtrace
+
+# See https://bugs.php.net/bug.php?id=61268
+INSTALL_MAKE_FLAGS+= -r
+.endif
+
+DL_AUTO_VARS= yes
+.include "../../mk/dlopen.buildlink3.mk"
diff -r abdd7c624b1a -r 1f003815fa80 lang/php71/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/php71/PLIST Thu Aug 04 14:09:03 2016 +0000
@@ -0,0 +1,283 @@
+@comment $NetBSD: PLIST,v 1.1 2016/08/04 14:09:03 jdolecek Exp $
+bin/phar
+bin/phar.phar
+bin/php
+bin/php-config
+bin/phpdbg
+bin/phpize
+include/php/TSRM/TSRM.h
+include/php/TSRM/readdir.h
+include/php/TSRM/tsrm_config.h
+include/php/TSRM/tsrm_config.w32.h
+include/php/TSRM/tsrm_config_common.h
+include/php/TSRM/tsrm_nw.h
+include/php/TSRM/tsrm_strtok_r.h
+include/php/TSRM/tsrm_win32.h
+include/php/Zend/zend.h
+include/php/Zend/zend_API.h
+include/php/Zend/zend_alloc.h
+include/php/Zend/zend_alloc_sizes.h
+include/php/Zend/zend_arena.h
+include/php/Zend/zend_ast.h
+include/php/Zend/zend_bitset.h
+include/php/Zend/zend_build.h
+include/php/Zend/zend_builtin_functions.h
+include/php/Zend/zend_closures.h
+include/php/Zend/zend_compile.h
+include/php/Zend/zend_config.h
+include/php/Zend/zend_config.nw.h
+include/php/Zend/zend_config.w32.h
+include/php/Zend/zend_constants.h
+include/php/Zend/zend_dtrace.h
+${PLIST.dtrace}include/php/Zend/zend_dtrace_gen.h
+include/php/Zend/zend_errors.h
+include/php/Zend/zend_exceptions.h
+include/php/Zend/zend_execute.h
+include/php/Zend/zend_extensions.h
+include/php/Zend/zend_float.h
+include/php/Zend/zend_gc.h
+include/php/Zend/zend_generators.h
+include/php/Zend/zend_globals.h
+include/php/Zend/zend_globals_macros.h
+include/php/Zend/zend_hash.h
+include/php/Zend/zend_highlight.h
+include/php/Zend/zend_inheritance.h
+include/php/Zend/zend_ini.h
+include/php/Zend/zend_ini_parser.h
+include/php/Zend/zend_ini_scanner.h
+include/php/Zend/zend_ini_scanner_defs.h
+include/php/Zend/zend_interfaces.h
+include/php/Zend/zend_istdiostream.h
+include/php/Zend/zend_iterators.h
+include/php/Zend/zend_language_parser.h
+include/php/Zend/zend_language_scanner.h
+include/php/Zend/zend_language_scanner_defs.h
+include/php/Zend/zend_list.h
+include/php/Zend/zend_llist.h
+include/php/Zend/zend_long.h
+include/php/Zend/zend_modules.h
+include/php/Zend/zend_multibyte.h
Home |
Main Index |
Thread Index |
Old Index