<pre style='margin:0'>
Chris Jones (cjones051073) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/fdfb9a1c504b2d8792542d9ef17b5be09deccf0f">https://github.com/macports/macports-ports/commit/fdfb9a1c504b2d8792542d9ef17b5be09deccf0f</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new fdfb9a1 Remove php 1.0 PortGroup
</span>fdfb9a1 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit fdfb9a1c504b2d8792542d9ef17b5be09deccf0f
</span>Author: Christopher Chavez <chrischavez@gmx.us>
AuthorDate: Sat Apr 27 11:37:25 2019 -0500
<span style='display:block; white-space:pre;color:#404040;'> Remove php 1.0 PortGroup
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Was deprecated by d69375b419
</span>---
_resources/port1.0/group/php-1.0.tcl | 293 -----------------------------------
1 file changed, 293 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/_resources/port1.0/group/php-1.0.tcl b/_resources/port1.0/group/php-1.0.tcl
</span>deleted file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index e91d57f..0000000
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/_resources/port1.0/group/php-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,293 +0,0 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# This PortGroup automatically sets up the standard environment for building
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# a PHP extension.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# Usage:
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# PortGroup php 1.0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# php.setup extension version source
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# php.branches 5.3 5.4
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# where extension is the name of the extension (e.g. APC), version is its
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# version, and if the extension is hosted at PECL, source is "pecl"; otherwise
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# don't use source.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# php.branches must be set to the list of PHP branches for which this extension
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# should be made available.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# If this is a Zend extension, use
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# php.type zend
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# The php 1.0 PortGroup is DEPRECATED. Please do not use for new development.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# Please switch any existing ports using it to the php 1.1 PortGroup at your
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# earliest convenience.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# The php 1.0 PortGroup was only used briefly for official ports; all official
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# ports using it have already been switched to the php 1.1 PortGroup and the
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# php 1.0 PortGroup will be removed once it is believed that all users have
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# upgraded and are no longer using those old port versions.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# Options that relate to the PHP extension.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-options php.branches
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-option_proc php.branches php._set_branches
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-options php.build_dirs
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-default php.build_dirs {[php.build_dirs_proc]}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-options php.default_branch
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-default php.default_branch {[lindex ${php.branches} end]}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-options php.extension_ini
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-default php.extension_ini {${php.rootname}.ini}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-options php.extensions
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-options php.pecl_livecheck_stable
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-default php.pecl_livecheck_stable yes
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-option_proc php.pecl_livecheck_stable php._set_pecl_livecheck_stable
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-options php.rootname
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-default php.rootname {[lindex ${php.extensions} 0]}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-options php.type
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-default php.type php
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# Options that relate to the branch of PHP being used by a subport.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-options php
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-default php {php${php.suffix}}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-options php.branch
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-default php.branch {[php.branch_from_subport]}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-options php.config
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-default php.config {${prefix}/bin/php-config${php.suffix}}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-options php.extension_dir
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-default php.extension_dir {[exec ${php.config} --extension-dir 2>/dev/null]}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-options php.ini
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-default php.ini {${prefix}/etc/${php}/php.ini}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-options php.ini_dir
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-default php.ini_dir {${prefix}/var/db/${php}}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-options php.ize
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-default php.ize {${prefix}/bin/phpize${php.suffix}}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-options php.suffix
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-default php.suffix {[php.suffix_from_branch ${php.branch}]}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# Private options you don't need to worry about.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-options php._bundled
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-default php._bundled {[string equal ${name} "php"]}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-proc php._set_branches {option action args} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {"set" != ${action}} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Sort the values so we can use lindex 0 and end to get the min and max branches respectively.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- option ${option} [lsort -command vercmp [option ${option}]]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- global php.default_branch php.rootname php._bundled name subport
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {[regexp {^php-} ${name}]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Legacy dist_subdir to match old php5- port layout.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {!${php._bundled}} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {[lindex [split [lindex [option ${option}] 0] .] 0] == "5"} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- dist_subdir php5-${php.rootname}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Create subport for each PHP branch.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach branch [option ${option}] {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- subport php[php.suffix_from_branch ${branch}]-${php.rootname} {}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Set up stub port.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {${name} == ${subport}} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- supported_archs noarch
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- depends_run port:php[php.suffix_from_branch ${php.default_branch}]-${php.rootname}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- fetch {}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- checksum {}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- extract {}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- patch {}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- use_configure no
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- build {}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- test {}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- destroot {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${subport}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- system "echo \"${subport} is a stub port\" > ${destroot}${prefix}/share/doc/${subport}/README"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-proc php._set_pecl_livecheck_stable {option action args} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- global livecheck.regex
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {"set" != ${action}} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {${args}} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- livecheck.regex {>([0-9a-zA-Z.]+)</a></th>\s*<[^>]+>stable<}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- } else {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- livecheck.regex {>([0-9a-zA-Z.]+)</a></th>}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-proc php.setup {extensions version {source ""}} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- global php php.branch php.branches php.build_dirs php.config php.extension_ini php.extensions php.homepage php.ini_dir php.rootname php._bundled
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- global destroot name subport
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Use "set" to preserve the list structure.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set php.extensions ${extensions}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {![info exists name]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- name php-${php.rootname}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- version ${version}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- categories php
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {${name} != ${subport}} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Set up distfiles for non-bundled extensions.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {!${php._bundled}} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- distname ${php.rootname}-${version}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- depends_lib-append port:${php}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # These are set only for the convenience of subports that want to access
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # these variables directly, e.g. the ${php}-openssl subport which wants
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # to move a file in ${build.dir} in a post-extract block.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.dir [lindex ${php.build_dirs} 0]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- build.dir [lindex ${php.build_dirs} 0]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- destroot.dir [lindex ${php.build_dirs} 0]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.pre_args-append --with-php-config=${php.config}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.universal_args-delete --disable-dependency-tracking
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- variant debug description {Enable debug support (useful to analyze a PHP-related core dump)} {}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- pre-configure {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set php_debug_variant [regexp {/debug-[^/]+$} ${php.extension_dir}]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {${php_debug_variant} && ![variant_isset debug]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_error "${subport} cannot be installed without the debug variant because ${php} is installed with the debug variant."
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return -code error "incompatible variant selection"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- } elseif {[variant_isset debug] && !${php_debug_variant}} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_error "${subport} cannot be installed with the debug variant because ${php} is installed without the debug variant."
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return -code error "incompatible variant selection"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach dir ${php.build_dirs} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_debug "Generating configure script in [file tail ${dir}]"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- system -W ${dir} "${php.ize}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach configure.dir ${php.build_dirs} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_debug "Configuring in [file tail ${configure.dir}]"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- portconfigure::configure_main
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- build {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach build.dir ${php.build_dirs} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_debug "Building in [file tail ${build.dir}]"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- portbuild::build_main
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- destroot.destdir INSTALL_ROOT=${destroot}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- destroot {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach destroot.dir ${php.build_dirs} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_debug "Staging in [file tail ${destroot.dir}]"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- portdestroot::destroot_main
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- xinstall -m 0755 -d ${destroot}${php.ini_dir}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {"zend" == ${php.type}} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set extension_prefix "zend_extension=${php.extension_dir}/"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- } else {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set extension_prefix "extension="
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set fp [open ${destroot}${php.ini_dir}/${php.extension_ini} w]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- puts $fp "; Do not edit this file; it is automatically generated by MacPorts."
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- puts $fp "; Any changes you make will be lost if you upgrade or uninstall ${subport}."
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- puts $fp "; To configure ${php}, edit ${php.ini}."
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach extension ${php.extensions} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- puts $fp "${extension_prefix}${extension}.so"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- close $fp
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- post-install {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {[file exists ${php.ini}]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set count 0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set fp [open ${php.ini} r]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- while {![eof $fp]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set line [gets $fp]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- regexp {^extension_dir *= *"?([^\"]*)"?} $line -> php_ini_extension_dir
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {[info exists php_ini_extension_dir]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_debug "Found extension_dir ${php_ini_extension_dir} in ${php.ini}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {${php_ini_extension_dir} != ${php.extension_dir}} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {0 == ${count}} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_msg "Your php.ini contains a line that will prevent ${subport}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_msg "and other ${php} extensions from working. To fix this,"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_msg "edit ${php.ini} and delete this line:"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_msg ""
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_msg ${line}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- incr count
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- unset php_ini_extension_dir
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- close $fp
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {"pecl" == ${source}} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- global php.pecl_livecheck_stable
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set php.homepage https://pecl.php.net/package/${php.rootname}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- homepage ${php.homepage}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- master_sites https://pecl.php.net/get/
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- extract.suffix .tgz
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- livecheck.type regexm
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- livecheck.url ${php.homepage}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- php.pecl_livecheck_stable yes
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# Return the list of directories we need to phpize / configure / make in.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-proc php.build_dirs_proc {} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- global php.extensions php._bundled worksrcpath
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {${php._bundled}} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set dirs {}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach extension ${php.extensions} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- lappend dirs ${worksrcpath}/ext/${extension}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return ${dirs}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return ${worksrcpath}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# Calculate suffix from given branch.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-proc php.suffix_from_branch {branch} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return [strsed ${branch} {g/\\.//}]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# Calculate branch from given suffix.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-proc php.branch_from_suffix {suffix} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return [string index ${suffix} 0].[string range ${suffix} 1 end]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# Calculate branch from subport.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-proc php.branch_from_subport {} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- global php.default_branch subport
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # For the subports, get the branch from ${subport}.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- regexp {^php(\d+)} ${subport} -> suffix
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {[info exists suffix]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return [php.branch_from_suffix ${suffix}]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # For the stub port, use the default branch.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return ${php.default_branch}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span></pre><pre style='margin:0'>
</pre>