pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/php80 lang/php80: add version 8.0.3 package



details:   https://anonhg.NetBSD.org/pkgsrc/rev/76178685de47
branches:  trunk
changeset: 448333:76178685de47
user:      taca <taca%pkgsrc.org@localhost>
date:      Sun Mar 07 13:41:36 2021 +0000

description:
lang/php80: add version 8.0.3 package

Add php80 package version 8.0.3 (PHP 8.0.3) with current PHP framework
of pkgsrc.

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.

PHP 8.0 comes with numerous improvements and new features such as

* Union Types
* Named Arguments
* Match Expressions
* Attributes
* Constructor Property Promotion
* Nullsafe Operator
* Weak Maps
* Just In Time Compilation
* And much much more...

diffstat:

 lang/php80/DESCR                                    |   18 +
 lang/php80/MESSAGE                                  |   11 +
 lang/php80/Makefile                                 |   77 +++++
 lang/php80/Makefile.common                          |   32 ++
 lang/php80/Makefile.php                             |   57 +++
 lang/php80/PLIST                                    |  297 ++++++++++++++++++++
 lang/php80/buildlink3.mk                            |   15 +
 lang/php80/distinfo                                 |   19 +
 lang/php80/options.mk                               |   74 ++++
 lang/php80/patches/patch-build_libtool.m4           |   75 +++++
 lang/php80/patches/patch-configure                  |   67 ++++
 lang/php80/patches/patch-disable-filter-url         |   30 ++
 lang/php80/patches/patch-ext_enchant_enchant.c      |   15 +
 lang/php80/patches/patch-ext_phar_Makefile.frag     |   15 +
 lang/php80/patches/patch-ext_tidy_config.m4         |   15 +
 lang/php80/patches/patch-ext_xsl_php__xsl.h         |   15 +
 lang/php80/patches/patch-php.ini-development        |   34 ++
 lang/php80/patches/patch-php.ini-production         |   34 ++
 lang/php80/patches/patch-sapi_cgi_Makefile.frag     |   18 +
 lang/php80/patches/patch-sapi_cli_Makefile.frag     |   19 +
 lang/php80/patches/patch-sapi_fpm_fpm_events_port.c |   49 +++
 lang/php80/patches/patch-sapi_fpm_php-fpm.conf.in   |   15 +
 22 files changed, 1001 insertions(+), 0 deletions(-)

diffs (truncated from 1089 to 300 lines):

diff -r 5d4c035fd14e -r 76178685de47 lang/php80/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/php80/DESCR  Sun Mar 07 13:41:36 2021 +0000
@@ -0,0 +1,18 @@
+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.
+
+PHP 8.0 comes with numerous improvements and new features such as
+
+* Union Types
+* Named Arguments
+* Match Expressions
+* Attributes
+* Constructor Property Promotion
+* Nullsafe Operator
+* Weak Maps
+* Just In Time Compilation
+* And much much more...
diff -r 5d4c035fd14e -r 76178685de47 lang/php80/MESSAGE
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/php80/MESSAGE        Sun Mar 07 13:41:36 2021 +0000
@@ -0,0 +1,11 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1 2021/03/07 13:41:36 taca 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.
+
+===========================================================================
diff -r 5d4c035fd14e -r 76178685de47 lang/php80/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/php80/Makefile       Sun Mar 07 13:41:36 2021 +0000
@@ -0,0 +1,77 @@
+# $NetBSD: Makefile,v 1.1 2021/03/07 13:41:36 taca Exp $
+
+#
+# We can't omit PKGNAME here to handle PKG_OPTIONS.
+#
+PKGNAME=               php-${PHP_VERSION:S/RC/rc/}
+
+COMMENT=               PHP Hypertext Preprocessor version 8.0
+LICENSE=               php
+
+TEST_TARGET=           test
+
+USE_TOOLS+=            gmake lex
+LIBTOOL_OVERRIDE=      # empty
+PHP_CHECK_INSTALLED=   No
+
+PHP_VERSIONS_ACCEPTED=         80
+
+.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}"
+
+# taken from devel/pkgconf/Makefile
+PKGCONFIG_PATHS=       ${PREFIX}/lib/pkgconfig
+PKGCONFIG_PATHS+=      ${PREFIX}/share/pkgconfig
+PKGCONFIG_PATHS+=      /usr/lib/pkgconfig
+
+# At this point, PREFIX is not set yet.
+.if ${LOCALBASE} != ${X11BASE}
+PKGCONFIG_PATHS+=      ${X11BASE}/lib/pkgconfig
+.endif
+
+PHP_PKGCONFIG_PATH=    ${PKGCONFIG_PATHS:ts:}
+
+REPLACE_PHP=           ext/phar/phar/phar.php run-tests.php
+
+SUBST_CLASSES+=                path
+SUBST_MESSAGE.path=    Fixing common paths.
+SUBST_STAGE.path=      pre-configure
+SUBST_FILES.path=      configure
+SUBST_FILES.path+=     php.ini-development php.ini-production
+SUBST_FILES.path+=     sapi/cgi/Makefile.frag
+SUBST_VARS.path=       CGIDIR
+SUBST_VARS.path+=      PREFIX
+SUBST_VARS.path+=      TOOLS_PATH.pkg-config PHP_PKGCONFIG_PATH
+
+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-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}
+
+.include "../../lang/php/replace.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 5d4c035fd14e -r 76178685de47 lang/php80/Makefile.common
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/php80/Makefile.common        Sun Mar 07 13:41:36 2021 +0000
@@ -0,0 +1,32 @@
+# $NetBSD: Makefile.common,v 1.1 2021/03/07 13:41:36 taca Exp $
+# used by lang/php80/Makefile.php
+# used by lang/php/ext.mk
+# used by meta-pkgs/php80-extensions/Makefile
+
+PHP_VERSION_REQD=      80
+
+.include "../../lang/php/common.mk"
+
+CATEGORIES+=           www
+MAINTAINER?=           pkgsrc-users%NetBSD.org@localhost
+
+USE_TOOLS+=            pkg-config
+
+# needed due to (broken?) configure checks in php-xmlrpc and php5-dom
+CONFIGURE_ENV+=                PHP_LIBXML_SHARED="1"
+
+.if ${OPSYS} == "NetBSD"
+CONFIGURE_ARGS+=       ax_cv_have_func_attribute_ifunc=no
+.endif
+
+.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
+
+# not every extension actually depend on PCRE, and those which do
+# don't use internal pcre structures, so default to build-time
+# dependency only
+BUILDLINK_DEPMETHOD.pcre2?=    build
+.include "../../devel/pcre2/buildlink3.mk"
diff -r 5d4c035fd14e -r 76178685de47 lang/php80/Makefile.php
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/php80/Makefile.php   Sun Mar 07 13:41:36 2021 +0000
@@ -0,0 +1,57 @@
+# $NetBSD: Makefile.php,v 1.1 2021/03/07 13:41:36 taca Exp $
+# used by lang/php80/Makefile
+# used by www/ap-php/Makefile
+# used by www/php-fpm/Makefile
+
+# segfaults when buidling with many compilers
+# https://bugs.php.net/bug.php?id=74527
+# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86236
+.if ${MACHINE_ARCH} == "i386"
+CONFIGURE_ARGS+=       --disable-gcc-global-regs
+.endif
+
+# the binary actually needs full dep on PCRE
+BUILDLINK_DEPMETHOD.pcre2=     full
+
+USE_LIBTOOL=           YES
+USE_LANGUAGES=         c c++
+GNU_CONFIGURE=         YES
+BUILD_DEFS+=           VARBASE
+PLIST_VARS+=           dtrace
+
+.include "../../lang/php80/Makefile.common"
+
+DISTINFO_FILE= ${.CURDIR}/../../lang/php80/distinfo
+PATCHDIR=      ${.CURDIR}/../../lang/php80/patches
+
+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-sqlite3
+CONFIGURE_ARGS+=       --with-external-pcre
+
+CONFIGURE_ARGS+=       --disable-intl
+CONFIGURE_ARGS+=       --disable-posix
+CONFIGURE_ARGS+=       --disable-opcache
+CONFIGURE_ARGS+=       --disable-pdo
+
+CONFIGURE_ARGS+=       --enable-cgi
+CONFIGURE_ARGS+=       --enable-mysqlnd
+CONFIGURE_ARGS+=       --enable-xml
+#CONFIGURE_ARGS+=      --with-libxml-dir=${PREFIX}
+
+CONFIGURE_ENV+=                EXTENSION_DIR="${PREFIX}/${PHP_EXTENSION_DIR}"
+
+.include "../../textproc/libxml2/buildlink3.mk"
+
+#CONFIGURE_ARGS+=      --with-pcre-regex=${BUILDLINK_PREFIX.pcre2}
+
+.include "options.mk"
+
+DL_AUTO_VARS=          yes
+.include "../../mk/dlopen.buildlink3.mk"
diff -r 5d4c035fd14e -r 76178685de47 lang/php80/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/php80/PLIST  Sun Mar 07 13:41:36 2021 +0000
@@ -0,0 +1,297 @@
+@comment $NetBSD: PLIST,v 1.1 2021/03/07 13:41:36 taca Exp $
+bin/phar
+bin/phar.phar
+bin/php
+bin/php-config
+bin/phpdbg
+bin/phpize
+include/php/TSRM/TSRM.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_attributes.h
+include/php/Zend/zend_attributes_arginfo.h
+include/php/Zend/zend_bitset.h
+include/php/Zend/zend_build.h
+include/php/Zend/zend_builtin_functions.h
+include/php/Zend/zend_builtin_functions_arginfo.h
+include/php/Zend/zend_closures.h
+include/php/Zend/zend_closures_arginfo.h
+include/php/Zend/zend_compile.h
+include/php/Zend/zend_config.h
+include/php/Zend/zend_config.w32.h
+include/php/Zend/zend_constants.h
+include/php/Zend/zend_cpuinfo.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_exceptions_arginfo.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_gdb.h
+include/php/Zend/zend_generators.h
+include/php/Zend/zend_generators_arginfo.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_interfaces_arginfo.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_map_ptr.h
+include/php/Zend/zend_modules.h
+include/php/Zend/zend_multibyte.h
+include/php/Zend/zend_multiply.h
+include/php/Zend/zend_object_handlers.h
+include/php/Zend/zend_objects.h
+include/php/Zend/zend_objects_API.h
+include/php/Zend/zend_observer.h
+include/php/Zend/zend_operators.h
+include/php/Zend/zend_portability.h
+include/php/Zend/zend_ptr_stack.h
+include/php/Zend/zend_range_check.h
+include/php/Zend/zend_signal.h
+include/php/Zend/zend_smart_str.h
+include/php/Zend/zend_smart_str_public.h
+include/php/Zend/zend_smart_string.h
+include/php/Zend/zend_smart_string_public.h
+include/php/Zend/zend_sort.h
+include/php/Zend/zend_stack.h
+include/php/Zend/zend_stream.h
+include/php/Zend/zend_string.h
+include/php/Zend/zend_strtod.h



Home | Main Index | Thread Index | Old Index