sm-commit AT lists.ibiblio.org
Subject: Source Mage code commit list
List archive
[[SM-Commit] ] GIT changes to master grimoire by Remko van der Vossen (1f4213b620a73f68bccef82af76a20d6cd9ef751)
- From: Remko van der Vossen <scm AT sourcemage.org>
- To: sm-commit AT lists.ibiblio.org, sm-commit AT lists.sourcemage.org
- Subject: [[SM-Commit] ] GIT changes to master grimoire by Remko van der Vossen (1f4213b620a73f68bccef82af76a20d6cd9ef751)
- Date: Wed, 10 Dec 2025 11:11:16 +0000
GIT changes to master grimoire by Remko van der Vossen <wich AT sourcemage.org>:
ChangeLog | 4
php-pear/php/CONFLICTS | 1
php-pear/php/HISTORY | 3
php-pear/php8/BUILD | 53 ++++++++
php-pear/php8/CONFIGURE | 149 +++++++++++++++++++++++
php-pear/php8/CONFLICTS | 6
php-pear/php8/DEPENDS | 268
++++++++++++++++++++++++++++++++++++++++++
php-pear/php8/DETAILS | 24 +++
php-pear/php8/HISTORY | 2
php-pear/php8/INSTALL | 6
php-pear/php8/POST_REMOVE | 26 ++++
php-pear/php8/PRE_REMOVE | 7 +
php-pear/php8/PRE_SUB_DEPENDS | 5
php-pear/php8/PROVIDES | 1
php-pear/php8/SUB_DEPENDS | 4
php-pear/php8/TRIGGERS | 4
16 files changed, 563 insertions(+)
New commits:
commit 1f4213b620a73f68bccef82af76a20d6cd9ef751
Author: Remko van der Vossen <wich AT sourcemage.org>
Commit: Remko van der Vossen <wich AT sourcemage.org>
php8: new spell, version 8 of php
diff --git a/ChangeLog b/ChangeLog
index bc50413..ed1dc47 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2025-12-10 Remko van der Vossen <wich AT sourcemage.org>
+ * php-pear/php8: new spell, version 8 of php as separate spell because
+ not backwards compatible
+
2025-12-06 Pavel Vinogradov <public AT sourcemage.org>
* wm-addons/hyprtoolkit: new spell, a modern Wayland GUI toolkit
* libs/hyprwire: new spell, a fast and consistent wire protocol for
IPC
diff --git a/php-pear/php/CONFLICTS b/php-pear/php/CONFLICTS
index f512999..17d33a0 100755
--- a/php-pear/php/CONFLICTS
+++ b/php-pear/php/CONFLICTS
@@ -2,4 +2,5 @@
conflicts php-dev &&
conflicts php4 &&
+conflicts php8 &&
conflicts fileinfo y
diff --git a/php-pear/php/HISTORY b/php-pear/php/HISTORY
index ae9835d..5937be2 100644
--- a/php-pear/php/HISTORY
+++ b/php-pear/php/HISTORY
@@ -1,3 +1,6 @@
+2025-12-10 Remko van der Vossen <wich AT sourcemage.org>
+ * CONFLICTS: php8
+
2019-05-18 Ismael Luceno <ismael AT sourcemage.org>
* DEPENDS: Update dependency; s/gettext/GETTEXT/
diff --git a/php-pear/php8/BUILD b/php-pear/php8/BUILD
new file mode 100755
index 0000000..1f939c0
--- /dev/null
+++ b/php-pear/php8/BUILD
@@ -0,0 +1,53 @@
+. "$GRIMOIRE/FUNCTIONS" &&
+
+cd "${SOURCE_DIRECTORY}" &&
+OPTS="${PHP_OPTS} ${OPTS}" &&
+
+if [[ $PHP_SAPI == cgi ]]; then
+ # If the CGI or FastCGI SAPI (or both) are selected, enable
'force-cgi-redirect'
+ if list_find "${OPTS}" "--enable-cgi" || list_find "${OPTS}"
"--enable-fastcgi"; then
+ message "${MESSAGE_COLOR}CGI or FastCGI SAPI enabled, enabling
force-cgi-redirect${DEFAULT_COLOR}" &&
+ OPTS="--enable-force-cgi-redirect ${OPTS}"
+ fi
+else
+ case "${PHP_APACHE}" in
+ handler)
+ if httpd -v | grep -q "Apache/2\."; then
+ message "${MESSAGE_COLOR}Configuring for Apache 2.x${DEFAULT_COLOR}"
&&
+ OPTS="--with-apxs2 ${OPTS}"
+ else
+ message "${MESSAGE_COLOR}Configuring for Apache 1.x${DEFAULT_COLOR}"
&&
+ OPTS="--with-apxs ${OPTS}"
+ fi
+ ;;
+
+ filter)
+ OPTS="--with-apxs2filter ${OPTS}"
+ ;;
+ esac
+fi &&
+
+# Check to see if internal GD requested
+if [[ "${PHP_GD}" == "internal" ]]; then
+ OPTS="--with-gd --enable-gd-native-ttf ${OPTS}"
+fi &&
+
+CFLAGS="${CFLAGS//-ffast-math}" &&
+
+OPTS="--with-config-file-path=${INSTALL_ROOT}/etc \
+ --disable-rpath \
+ --enable-bcmath \
+ --enable-inline-optimization \
+ --with-layout=GNU \
+ ${OPTS}" &&
+default_build &&
+
+# safety precaution against earlier PHP installations removing httpd.conf
+pushd "${INSTALL_LOGS}" &>/dev/null &&
+local log &&
+for log in ${SPELL}-*; do
+ if [[ -f "${log}" ]]; then
+ sedit 's|.*/httpd\.conf.*||g' "${log}"
+ fi
+done &&
+popd &>/dev/null
diff --git a/php-pear/php8/CONFIGURE b/php-pear/php8/CONFIGURE
new file mode 100755
index 0000000..ef0f72b
--- /dev/null
+++ b/php-pear/php8/CONFIGURE
@@ -0,0 +1,149 @@
+. "$GRIMOIRE/FUNCTIONS" &&
+
+message "${MESSAGE_COLOR}PEAR support will enable the CLI version and force
depends on libxml2" &&
+message "It will also enable some PCRE support (internal
recommended)${DEFAULT_COLOR}" &&
+# prior pear enabledness
+if list_find "$PHP_OPTS" "--enable-pear" ; then
+ PHP_PEAR="y"
+fi &&
+
+config_query PHP_PEAR "Do you want PEAR support?" y &&
+
+config_query_option PHP_OPTS "Enable IPv6?" n \
+ "--enable-ipv6" "--disable-ipv6" &&
+
+config_query_option PHP_OPTS "Enable sockets support?" y \
+ "--enable-sockets" "--disable-sockets" &&
+
+config_query_option PHP_OPTS "Enable FTP support?" y \
+ "--enable-ftp" "--disable-ftp" &&
+
+config_query_option PHP_OPTS "Enable calendar support?" y \
+ "--enable-calendar" "--disable-calendar" &&
+
+config_query_option PHP_OPTS "Enable pcntl support (Only affects CLI/CGI)" n
\
+ "--enable-pcntl" "--disable-pcntl" &&
+
+message "${MESSAGE_COLOR}Apache-based and *CGI SAPIs are mutually exclusive
(though both FastCGI and CGI can be enabled at the same
time)${DEFAULT_COLOR}" &&
+
+config_query_list PHP_SAPI "What SAPI do you want to use?" \
+ apache cgi none &&
+
+if [[ $PHP_SAPI == cgi ]]; then
+ list_add "PHP_OPTS" "--enable-cgi --without-apxs --without-apxs2" &&
+
+ if is_version_less "${VERSION}" 5.3; then
+ config_query_option PHP_OPTS "Enable FastCGI SAPI?" n \
+ "--enable-fastcgi" "--disable-fastcgi"
+ else
+ message "${MESSAGE_COLOR}The FastCGI SAPI is now always enabled since
PHP 5.3.0${DEFAULT_COLOR}"
+ fi
+elif [[ $PHP_SAPI == apache ]]; then
+ config_query_list PHP_APACHE "Which Apache module to build?" \
+ handler filter
+fi &&
+
+if [[ "${PHP_PEAR}" == "y" ]] || list_find "$PHP_OPTS" "--enable-cgi" ||
list_find "$PHP_OPTS" "--enable-fastcgi" ; then
+ message "${MESSAGE_COLOR}Enabling CLI version for PEAR/CGI/FastCGI
support${DEFAULT_COLOR}" &&
+ list_add "PHP_OPTS" "--enable-cli"
+else
+ config_query_option PHP_OPTS "Enable CLI version?" y \
+ "--enable-cli" \
+ "--disable-cli"
+fi &&
+
+config_query_option PHP_OPTS "Enable multibyte support?" n \
+ "--enable-mbstring --enable-mbregex" \
+ "--disable-mbstring --disable-mbregex" &&
+
+message "${MESSAGE_COLOR}See http://us.php.net/dba.installation for more
info${DEFAULT_COLOR}" &&
+message "${MESSAGE_COLOR}Not recommended: dbm, ndbm. NOTE: qdbm conflicts
with dbm and gdbm${DEFAULT_COLOR}" &&
+config_query_multi PHP_DBA_DRIVERS "Select dbm-style database drivers (if
any)" none gdbm db4 flatfile inifile qdbm &&
+
+if ! list_find "${PHP_DBA_DRIVERS}" "none"; then
+ list_add "PHP_OPTS" "--enable-dba" &&
+
+ if list_find "${PHP_DBA_DRIVERS}" "flatfile"; then
+ list_add "PHP_OPTS" "--enable-inifile"
+ else
+ list_add "PHP_OPTS" "--disable-inifile"
+ fi &&
+
+ if list_find "${PHP_DBA_DRIVERS}" "flatfile"; then
+ list_add "PHP_OPTS" "--enable-flatfile"
+ else
+ list_add "PHP_OPTS" "--disable-flatfile"
+ fi
+else
+ list_add "PHP_OPTS" "--disable-dba"
+fi &&
+
+# get the native simple drivers (5.4 drops SQLite 2 support)
+local DB_DRIVERS="mysql mysqli pgsql sqlite3 firebird unixODBC iODBC" &&
+
+config_query_multi PHP_DATABASE_DRIVERS "Select vendor specific database
drivers to install (if any)" \
+ none all $DB_DRIVERS &&
+
+# for PDO-only drivers
+if list_find "${PHP_DATABASE_DRIVERS}" "sqlite3" || list_find
"${PHP_DATABASE_DRIVERS}" "firebird"; then
+ list_add "PHP_OPTS" "--enable-pdo"
+else
+ # ask if they want the PDO drivers for the drivers they selected
+ config_query_option PHP_OPTS "Enable PHP Data Objects?" y \
+ "--enable-pdo" \
+ "--disable-pdo"
+fi &&
+
+if list_find "$PHP_OPTS" "--enable-pdo"; then
+ local PDO_DRIVERS="mysql pgsql unixODBC iODBC" &&
+
+ for foo in $PDO_DRIVERS; do
+ if list_find "${PHP_DATABASE_DRIVERS}" "$foo" || list_find
"${PHP_DATABASE_DRIVERS}" "all"; then
+ # odbc special case
+ if [[ "$foo" == "unixODBC" ]]; then
+ config_query_option PHP_OPTS "Enable PDO driver for unixodbc?" n \
+
"--with-pdo-odbc=unixODBC,${INSTALL_ROOT}/usr" \
+ ""
+ elif [[ "$foo" == "iODBC" ]]; then
+ config_query_option PHP_OPTS "Enable PDO driver for libiodbc?" n \
+
"--with-pdo-odbc=iODBC,${INSTALL_ROOT}/usr" \
+ ""
+ else
+ config_query_option PHP_OPTS "Enable PDO driver for $foo?" n \
+ "--with-pdo-$foo=${INSTALL_ROOT}/usr" \
+ "--without-pdo-$foo"
+ fi
+ else
+ if [[ "$foo" != "unixODBC" ]] && [[ "$foo" != "iODBC" ]]; then
+ # be sure that the PDO driver is disabled
+ list_add "PHP_OPTS" "--without-pdo-$foo"
+ fi
+ fi
+ done
+fi &&
+
+config_query_option PHP_OPTS "Enable shmop support?" n \
+ "--enable-shmop" "--disable-shmop" &&
+
+config_query_option PHP_OPTS "Enable ZIP support?" n \
+ "--enable-zip" "--disable-zip" &&
+
+config_query_option PHP_OPTS "Enable System V message queues support?" n \
+ "--enable-sysvmsg" "--disable-sysvmsg" &&
+
+config_query_option PHP_OPTS "Enable System V semaphore support?" n \
+ "--enable-sysvsem" "--disable-sysvsem" &&
+
+config_query_option PHP_OPTS "Enable System V shared memory support?" n \
+ "--enable-sysvshm" "--disable-sysvshm" &&
+
+config_query_list PHP_GD "Which GD library to use?" \
+ none internal external &&
+
+if [[ "$PHP_PEAR" == "y" ]]; then
+ config_query_list PHP_PCRE "Which PCRE library to use (internal
reccomended)?" \
+ internal external
+else
+ config_query_list PHP_PCRE "Which PCRE library to use (internal
reccomended)?" \
+ internal external none
+fi
diff --git a/php-pear/php8/CONFLICTS b/php-pear/php8/CONFLICTS
new file mode 100755
index 0000000..0d30d86
--- /dev/null
+++ b/php-pear/php8/CONFLICTS
@@ -0,0 +1,6 @@
+. "$GRIMOIRE/FUNCTIONS" &&
+
+conflicts php &&
+conflicts php-dev &&
+conflicts php4 &&
+conflicts fileinfo y
diff --git a/php-pear/php8/DEPENDS b/php-pear/php8/DEPENDS
new file mode 100755
index 0000000..15a07cf
--- /dev/null
+++ b/php-pear/php8/DEPENDS
@@ -0,0 +1,268 @@
+. ${GRIMOIRE}/FUNCTIONS &&
+
+# takes two params
+# $1 is the driver name
+# $2 is the spell name (for depending)
+function db_driver_depends() {
+ local db_driver="$1"
+ local db_spell="$2"
+
+ if list_find "$PHP_DATABASE_DRIVERS" "$db_driver" || list_find
"$PHP_DATABASE_DRIVERS" "all"; then
+ depends $db_spell "--with-$db_driver"
+ else
+ list_add "PHP_OPTS" "--without-$db_driver"
+ fi
+}
+
+depends flex &&
+depends oniguruma &&
+# Officially these are optional, but we require them because some other
+# optional extensions depend on it, and they're omnipresent anyway
+depends readline "--with-readline" &&
+depends zlib "--with-zlib" &&
+
+optional_depends bzip2 \
+ "--with-bz2" "--without-bz2" \
+ "for compression support" &&
+
+if [[ "$PHP_PEAR" == "y" ]]; then
+ depends libxml2 '--enable-xml --enable-dom --with-xmlrpc'
+else
+ optional_depends libxml2 \
+ "--enable-xml --enable-dom --with-xmlrpc" \
+ "--disable-xml --disable-dom --without-xmlrpc
--disable-xmlreader --disable-xmlwriter --disable-simplexml" \
+ "For XML support (required for SOAP)"
+fi &&
+
+optional_depends libxslt \
+ "--with-xsl" "--without-xsl" \
+ "for XSLT support" &&
+
+if is_depends_enabled $SPELL libxml2 ; then
+ config_query_option PHP_OPTS "Enable SOAP support?" n \
+ "--enable-soap" "--disable-soap"
+else
+ list_add "PHP_OPTS" "--disable-soap"
+fi &&
+
+optional_depends pth \
+ "--with-tsrm-pth=${INSTALL_ROOT}/usr"
"--with-tsrm-pthreads" \
+ "use GNU Portable Threads instead of POSIX threads" &&
+
+if [[ $PHP_SAPI == apache ]]; then
+ case "${PHP_APACHE}" in
+ handler) depends APACHE;;
+ filter) depends APACHE2 '--with-apxs2 --without-apxs';;
+ esac &&
+
+ if [[ "$(get_spell_provider $SPELL APACHE)" == 'apache1' ]]; then
+ list_add "PHP_OPTS" "--with-apxs --without-apxs2"
+ else
+ list_add "PHP_OPTS" "--with-apxs2 --without-apxs"
+ fi
+fi &&
+
+if [[ "$PHP_PCRE" == "none" ]]; then
+ list_add "PHP_OPTS" "--without-pcre-regex --without-pcre"
+elif [[ "$PHP_PCRE" == "external" ]]; then
+ depends pcre "--with-pcre-regex=${INSTALL_ROOT}/usr"
+fi &&
+
+optional_depends C-CLIENT \
+ "--with-imap=${INSTALL_ROOT}/usr" "--without-imap" \
+ "for IMAP support" &&
+
+optional_depends SSL \
+ "--with-openssl" "--without-openssl" \
+ "for OpenSSL support" &&
+
+if is_depends_enabled $SPELL $(get_spell_provider $SPELL C-CLIENT); then
+ if is_depends_enabled $SPELL $(get_spell_provider $SPELL SSL); then
+ list_add "PHP_OPTS" "--with-imap-ssl"
+ else
+ optional_depends SSL \
+ "--with-imap-ssl" \
+ "--without-imap-ssl" \
+ "for SSL support with IMAP (but not elsewhere)"
+ fi
+fi &&
+
+optional_depends MAIL-TRANSPORT-AGENT "" "" "for SMTP support" &&
+
+optional_depends aspell \
+ "--with-pspell" "--without-pspell" \
+ "use aspell for spelling functions" &&
+
+optional_depends mhash \
+ "--with-mhash" "--without-mhash" \
+ "for hash functions support" &&
+
+optional_depends enchant \
+ "--with-enchant" "--without-enchant" \
+ "use enchant for spelling functions?" &&
+
+optional_depends icu \
+ "--enable-intl --with-icu-dir=${INSTALL_ROOT}/usr" \
+ "--disable-intl --without-icu-dir" \
+ "for ICU unicode (internationalization) support" &&
+
+optional_depends libmcrypt \
+ "--with-mcrypt" "--without-mcrypt" \
+ "for crypto library" &&
+
+optional_depends curl \
+ "--with-curl" "--without-curl" \
+ "for cURL URL stream functions" &&
+
+optional_depends net-snmp \
+ "--with-snmp" "--without-snmp" \
+ "for SNMP support" &&
+
+if is_depends_enabled $SPELL curl; then
+ config_query_option PHP_OPTS "Do you want to use cURL for URL streams in
core PHP functions?" n \
+ "--with-curlwrappers" "--without-curlwrappers" &&
+ depends -sub NO_ARES curl '--with-curl'
+fi &&
+
+optional_depends gmp \
+ "--with-gmp" "--without-gmp" \
+ "GNU multi-precision library support" &&
+
+optional_depends krb5 \
+ "--with-kerberos" "--without-kerberos" \
+ "for Kerberos support" &&
+
+optional_depends GETTEXT \
+ "--with-gettext" "--without-gettext" \
+ "for GNU gettext support" &&
+
+# new database madness
+# DB_DRIVERS="mysql mysqli pgsql sqlite sqlite3 firebird unixODBC iODBC"
+# PDO_DRIVERS="mysql pgsql firebird unixODBC iODBC"
+if list_find "$PHP_DATABASE_DRIVERS" "mysql" || list_find
"$PHP_DATABASE_DRIVERS" "all"; then
+ depends MYSQL &&
+
+ if is_version_less 5.2.9999 "${VERSION}"; then
+ config_query PHP_MYSQLND "Do you want to use the MySQL Native Driver
[mysqlnd]? (expiremental)" n &&
+
+ if [[ "${PHP_MYSQLND}" == "y" ]]; then
+ list_add "PHP_OPTS" "--with-mysql=mysqlnd"
+ else
+ list_add "PHP_OPTS" "--with-mysql=${INSTALL_ROOT}/usr"
+ fi
+ else
+ list_add "PHP_OPTS" "--with-mysql=${INSTALL_ROOT}/usr"
+ fi
+else
+ list_add "PHP_OPTS" "--without-mysql"
+fi &&
+
+db_driver_depends "mysqli" "MYSQL" &&
+db_driver_depends "pgsql" "postgresql" &&
+db_driver_depends "sqlite3" "sqlite" &&
+
+if list_find "${PHP_DATABASE_DRIVERS}" "firebird"; then
+ depends firebird "--with-pdo-firebird=${INSTALL_ROOT}/usr"
+else
+ list_add "PHP_OPTS" "--without-pdo-firebird"
+fi &&
+
+if list_find "${PHP_DATABASE_DRIVERS}" "sqlite3"; then
+ depends sqlite "--with-pdo-sqlite=${INSTALL_ROOT}/usr"
+else
+ list_add "PHP_OPTS" "--without-pdo-sqlite"
+fi &&
+
+# unixODBC and iODBC are mutually exclusive... first one in wins?
+if list_find "$PHP_DATABASE_DRIVERS" "unixODBC" || list_find
"$PHP_DATABASE_DRIVERS" "all"; then
+ depends unixodbc "--with-unixODBC=${INSTALL_ROOT}/usr --without-iodbc"
+elif list_find "$PHP_DATABASE_DRIVERS" "iODBC"; then
+ depends unixodbc "--with-iodbc=${INSTALL_ROOT}/usr --without-unixODBC"
+else
+ list_add "PHP_OPTS" "--without-iodbc --without-unixODBC"
+fi &&
+
+# DBA drivers
+if list_find "${PHP_OPTS}" "--enable-dba"; then
+ for foo in $PHP_DBA_DRIVERS; do
+ if [[ $foo != none ]]; then
+ # handle the few special cases
+ if [[ "$foo" == "db4" ]]; then
+ depends db "--with-db4"
+ elif [[ "$foo" != "flatfile" ]] && [[ "$foo" != "inifile" ]]; then
+ depends $foo "--with-$foo"
+ fi
+ fi
+ done
+fi &&
+
+optional_depends openldap \
+ "--with-ldap" "--without-ldap" \
+ "for LDAP support" &&
+
+if is_depends_enabled $SPELL openldap; then
+ optional_depends LIBSASL \
+ "--with-ldap-sasl" "--without-ldap-sasl" \
+ "for LDAP with Cyrus SASL support" &&
+
+ if list_find "${PHP_OPTS}" "--with-ldap-sasl"; then
+ depends -sub openldap SASL
+ fi
+fi &&
+
+optional_depends mm \
+ "--with-mm" "--without-mm" \
+ "for sharing memory between related processes" &&
+
+optional_depends tidy \
+ "--with-tidy" "--without-tidy" \
+ "for HTML Tidy support" &&
+
+optional_depends re2c \
+ "" "" \
+ "to regenerate PHP parsers" &&
+
+optional_depends libexif \
+ "--enable-exif" "--disable-exif" \
+ "for image metadata support" &&
+
+if [[ "${PHP_GD}" == "external" ]]; then
+ depends gd "--with-gd=${INSTALL_ROOT}/usr --enable-gd-native-ttf"
+fi &&
+
+if [[ "${PHP_GD}" != "none" ]]; then
+ optional_depends libxpm \
+ "--with-xpm-dir=${INSTALL_ROOT}/usr" \
+ "--without-xpm-dir" \
+ "for XPM image support" &&
+
+ if [[ "${PHP_GD}" == "internal" ]]; then
+ depends JPEG "--with-jpeg-dir=${INSTALL_ROOT}/usr" &&
+ depends libpng "--with-png-dir=${INSTALL_ROOT}/usr"
+ else
+ optional_depends JPEG \
+ "--with-jpeg-dir=${INSTALL_ROOT}/usr" \
+ "--without-jpeg-dir" \
+ "for JPEG support (for GD)" &&
+
+ optional_depends libpng \
+ "--with-png-dir=${INSTALL_ROOT}/usr" \
+ "--without-png-dir" \
+ "for PNG support (for GD)"
+ fi &&
+
+ optional_depends t1lib \
+ "--with-t1lib=${INSTALL_ROOT}/usr" \
+ "--without-t1lib" \
+ "for t1lib support" &&
+
+ optional_depends freetype2 \
+ "--with-freetype-dir=${INSTALL_ROOT}/usr" \
+ "--without-freetype-dir" \
+ "for freetype2 support" &&
+
+ optional_depends font-jis-misc \
+ "--enable-gd-jis-conv" \
+ "--disable-gd-jis-conv" \
+ "for JIS-mapped Japanese font support"
+fi
diff --git a/php-pear/php8/DETAILS b/php-pear/php8/DETAILS
new file mode 100755
index 0000000..df9ec2e
--- /dev/null
+++ b/php-pear/php8/DETAILS
@@ -0,0 +1,24 @@
+ SPELL=php8
+ VERSION=8.5.0
+
SOURCE_HASH=sha512:61e4d1128b320b3dd98ac739ffa28e9ed4a1f2e27b4f2d76189c6288bdec89126c9dcbd1203f31e3e6e4bd021011c7b269c1548bd990b954b71180fa6650046b
+ SOURCE=php-$VERSION.tar.bz2
+ SOURCE_URL[0]=http://static.php.net/www.php.net/distributions/$SOURCE
+SOURCE_DIRECTORY="$BUILD_DIRECTORY/php-$VERSION"
+ WEB_SITE=http://www.php.net/
+ ENTERED=20250407
+ LICENSE[0]=http://www.php.net/license/3_0.txt
+ KEYWORDS="php"
+ SHORT="Hypertext Preprocessor (PHP) scripting language"
+cat << EOF
+PHP is a widely-used Open Source general-purpose scripting language
+that is especially suited for Web development and can be embedded
+into HTML. Its syntax draws upon C, Java, and Perl, and is easy to
+learn. PHP runs on many different platforms and can be used as a
+standalone executable or as a module under a variety of Web servers.
+It has excellent support for databases, XML, LDAP, IMAP, Java,
+various Internet protocols, and general data manipulation, and is
+extensible via its powerful API. It is actively developed and
+supported by a talented and energetic international team. Numerous
+Open Source and commercial PHP-based application packages are
+available.
+EOF
diff --git a/php-pear/php8/HISTORY b/php-pear/php8/HISTORY
new file mode 100644
index 0000000..ee4973a
--- /dev/null
+++ b/php-pear/php8/HISTORY
@@ -0,0 +1,2 @@
+2025-12-10 Remko van der Vossen <wich AT sourcemage.org>
+ * all: created spell
diff --git a/php-pear/php8/INSTALL b/php-pear/php8/INSTALL
new file mode 100755
index 0000000..0a11fde
--- /dev/null
+++ b/php-pear/php8/INSTALL
@@ -0,0 +1,6 @@
+. "$GRIMOIRE/FUNCTIONS" &&
+
+default_install &&
+
+install_config_file "$SOURCE_DIRECTORY/php.ini-production" \
+ "$INSTALL_ROOT/etc/php.ini"
diff --git a/php-pear/php8/POST_REMOVE b/php-pear/php8/POST_REMOVE
new file mode 100755
index 0000000..9267ad0
--- /dev/null
+++ b/php-pear/php8/POST_REMOVE
@@ -0,0 +1,26 @@
+## TODO
+# How about we print a warning instead of doing this fugly voodoo?
+
+if [[ -f /etc/httpd/httpd.conf.sorcerybackup ]]; then
+ mv -v /etc/httpd/httpd.conf.sorcerybackup /etc/httpd/httpd.conf
+fi &&
+
+if [[ -f /etc/httpsd/httpd.conf.sorcerybackup ]]; then
+ mv -v /etc/httpsd/httpd.conf.sorcerybackup /etc/httpsd/httpd.conf
+fi &&
+
+if [[ -e /etc/httpd/httpd.conf ]]; then
+ cp -v /etc/httpd/httpd.conf /tmp/httpd.conf
+ grep -v "LoadModule php5_module libexec/libphp5.so" /tmp/httpd.conf >
/tmp/conf.tmp1
+ grep -v "AddType application/x-httpd-php .php .phtml" /tmp/conf.tmp1 >
/tmp/conf.tmp2
+ grep -v "AddModule mod_php5.c" /tmp/conf.tmp2 >/etc/httpd/httpd.conf
+ rm -f /tmp/httpd.conf /tmp/conf.tmp*
+fi &&
+
+if [[ -e /etc/httpsd/httpd.conf ]]; then
+ cp -v /etc/httpsd/httpd.conf /tmp/httpd.conf
+ grep -v "LoadModule php5_module libexec/libphp5.so" /tmp/httpd.conf >
/tmp/conf.tmp1
+ grep -v "AddType application/x-httpd-php .php .phtml" /tmp/conf.tmp1 >
/tmp/conf.tmp2
+ grep -v "AddModule mod_php5.c" /tmp/conf.tmp2 > /etc/httpsd/httpd.conf
+ rm -f /tmp/httpd.conf /tmp/conf.tmp*
+fi
diff --git a/php-pear/php8/PRE_REMOVE b/php-pear/php8/PRE_REMOVE
new file mode 100755
index 0000000..77913ee
--- /dev/null
+++ b/php-pear/php8/PRE_REMOVE
@@ -0,0 +1,7 @@
+if [[ -f "${INSTALL_ROOT}/etc/httpd/httpd.conf" ]]; then
+ cp -v "${INSTALL_ROOT}/etc/httpd/httpd.conf"
"${INSTALL_ROOT}/etc/httpd/httpd.conf.sorcerybackup"
+fi &&
+
+if [[ -f "${INSTALL_ROOT}/etc/httpsd/httpd.conf" ]]; then
+ cp -v "${INSTALL_ROOT}/etc/httpsd/httpd.conf"
"${INSTALL_ROOT}/etc/httpsd/httpd.conf.sorcerybackup"
+fi
diff --git a/php-pear/php8/PRE_SUB_DEPENDS b/php-pear/php8/PRE_SUB_DEPENDS
new file mode 100755
index 0000000..991ce23
--- /dev/null
+++ b/php-pear/php8/PRE_SUB_DEPENDS
@@ -0,0 +1,5 @@
+case $THIS_SUB_DEPENDS in
+ CURL) is_depends_enabled $SPELL curl && return 0 ;;
+ *) echo "Unknown sub_depends!" ;;
+esac
+return 1
diff --git a/php-pear/php8/PROVIDES b/php-pear/php8/PROVIDES
new file mode 100755
index 0000000..0d5d187
--- /dev/null
+++ b/php-pear/php8/PROVIDES
@@ -0,0 +1 @@
+PHP
diff --git a/php-pear/php8/SUB_DEPENDS b/php-pear/php8/SUB_DEPENDS
new file mode 100755
index 0000000..41ee38d
--- /dev/null
+++ b/php-pear/php8/SUB_DEPENDS
@@ -0,0 +1,4 @@
+case $THIS_SUB_DEPENDS in
+ CURL) depends curl '--with-curl' ;;
+ *) echo "Unknown sub_depends $THIS_SUB_DEPENDS"; false ;;
+esac
diff --git a/php-pear/php8/TRIGGERS b/php-pear/php8/TRIGGERS
new file mode 100755
index 0000000..f44e5a2
--- /dev/null
+++ b/php-pear/php8/TRIGGERS
@@ -0,0 +1,4 @@
+local dep
+for dep in $(show_up_depends $SPELL 1); do
+ on_cast ${dep} check_self
+done
- [[SM-Commit] ] GIT changes to master grimoire by Remko van der Vossen (1f4213b620a73f68bccef82af76a20d6cd9ef751), Remko van der Vossen, 12/10/2025
Archive powered by MHonArc 2.6.24.