mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
php8.0: update to 8.0.25, add php8.0-pear subpackage.
This commit is contained in:
parent
3f2effb3e2
commit
a52a5b108d
4 changed files with 32 additions and 7 deletions
1
srcpkgs/php8.0-pear
Symbolic link
1
srcpkgs/php8.0-pear
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
php8.0
|
|
@ -7,7 +7,7 @@ index 794d3e8ddb..c7acf9c883 100644
|
||||||
|
|
||||||
; UNIX: "/path1:/path2"
|
; UNIX: "/path1:/path2"
|
||||||
-;include_path = ".:/php/includes"
|
-;include_path = ".:/php/includes"
|
||||||
+include_path = ".:/usr/share/pear"
|
+include_path = ".:/usr/share/pear8.0"
|
||||||
;
|
;
|
||||||
; Windows: "\path1;\path2"
|
; Windows: "\path1;\path2"
|
||||||
;include_path = ".;c:\php\includes"
|
;include_path = ".;c:\php\includes"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Template file for 'php8.0'
|
# Template file for 'php8.0'
|
||||||
pkgname=php8.0
|
pkgname=php8.0
|
||||||
version=8.0.23
|
version=8.0.25
|
||||||
revision=1
|
revision=1
|
||||||
_php_version=8.0
|
_php_version=8.0
|
||||||
hostmakedepends="bison pkg-config apache-devel"
|
hostmakedepends="bison pkg-config apache-devel"
|
||||||
|
@ -14,15 +14,17 @@ maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
|
||||||
license="PHP-3.01"
|
license="PHP-3.01"
|
||||||
homepage="https://www.php.net"
|
homepage="https://www.php.net"
|
||||||
changelog="https://raw.githubusercontent.com/php/php-src/php-${version}/NEWS"
|
changelog="https://raw.githubusercontent.com/php/php-src/php-${version}/NEWS"
|
||||||
distfiles="https://www.php.net/distributions/php-${version}.tar.gz"
|
# this is the source where the www.php.net code pulls the tarballs it serves
|
||||||
checksum=a2dd50e9c4a0328d921b6bc914e8b4e6572f94f09867318f88acca5ac4fa76c7
|
# at https://www.php.net/distributions/
|
||||||
|
distfiles="https://github.com/php/web-php-distributions/raw/master/php-${version}.tar.gz"
|
||||||
|
checksum=349a2b5a01bfccbc9af8afdf183e57bed3349706a084f3c4694aa4c7ff7cb2e9
|
||||||
|
|
||||||
conf_files="/etc/php${_php_version}/php.ini"
|
conf_files="/etc/php${_php_version}/php.ini"
|
||||||
|
|
||||||
lib32disabled=yes
|
lib32disabled=yes
|
||||||
|
|
||||||
if [ -n "$CROSS_BUILD" ]; then
|
if [ -n "$CROSS_BUILD" ]; then
|
||||||
# phar needs php to build
|
# phar and pear need php to build
|
||||||
hostmakedepends+=" php${_php_version}"
|
hostmakedepends+=" php${_php_version}"
|
||||||
CFLAGS+=" -DHAVE_LIBDL
|
CFLAGS+=" -DHAVE_LIBDL
|
||||||
-DHAVE_DLOPEN
|
-DHAVE_DLOPEN
|
||||||
|
@ -89,7 +91,7 @@ do_build() {
|
||||||
--with-mysqli=shared,mysqlnd \
|
--with-mysqli=shared,mysqlnd \
|
||||||
--with-openssl=shared \
|
--with-openssl=shared \
|
||||||
--with-external-pcre \
|
--with-external-pcre \
|
||||||
--without-pear \
|
--with-pear=/usr/share/pear${_php_version}
|
||||||
--with-pdo-mysql=shared,mysqlnd \
|
--with-pdo-mysql=shared,mysqlnd \
|
||||||
--with-pdo-odbc=shared,unixODBC,$XBPS_CROSS_BASE/usr \
|
--with-pdo-odbc=shared,unixODBC,$XBPS_CROSS_BASE/usr \
|
||||||
--with-pdo-pgsql=shared,$XBPS_CROSS_BASE/usr \
|
--with-pdo-pgsql=shared,$XBPS_CROSS_BASE/usr \
|
||||||
|
@ -111,7 +113,7 @@ do_build() {
|
||||||
|
|
||||||
EXTENSION_DIR="/usr/lib/php${_php_version}/modules"
|
EXTENSION_DIR="/usr/lib/php${_php_version}/modules"
|
||||||
export EXTENSION_DIR
|
export EXTENSION_DIR
|
||||||
PEAR_INSTALLDIR=/usr/share/pear
|
PEAR_INSTALLDIR=/usr/share/pear${_php_version}
|
||||||
export PEAR_INSTALLDIR
|
export PEAR_INSTALLDIR
|
||||||
EXTRA_LIBS="-ldl"
|
EXTRA_LIBS="-ldl"
|
||||||
export EXTRA_LIBS
|
export EXTRA_LIBS
|
||||||
|
@ -217,6 +219,27 @@ php8.0-embed_package() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
php8.0-pear_package() {
|
||||||
|
lib32disabled=yes
|
||||||
|
depends="php${_php_version}-${version}_${revision}
|
||||||
|
php${_php_version}-devel-${version}_${revision} autoconf"
|
||||||
|
short_desc+=' - PHP Extension and Application Repository'
|
||||||
|
conf_files="/etc/php${_php_version}/pear.conf"
|
||||||
|
pkg_install() {
|
||||||
|
cd ${wrksrc}/build
|
||||||
|
local _env="INSTALL_ROOT=${PKGDESTDIR} PHP_PEAR_PHP_BIN=php${_php_version}"
|
||||||
|
if [ -n "$CROSS_BUILD" ]; then
|
||||||
|
_env+=" PEAR_PHP=/usr/bin/php${_php_version}"
|
||||||
|
fi
|
||||||
|
make install-pear ${_env}
|
||||||
|
rm -rf ${PKGDESTDIR}/.{channels,depdb,depdblock,filemap,lock,registry}
|
||||||
|
rm -rf ${PKGDESTDIR}/usr/share/pear/.{channels,depdb,depdblock,filemap,lock,registry}
|
||||||
|
mv ${PKGDESTDIR}/usr/bin/pear{,${_php_version}}
|
||||||
|
mv ${PKGDESTDIR}/usr/bin/peardev{,${_php_version}}
|
||||||
|
mv ${PKGDESTDIR}/usr/bin/pecl{,${_php_version}}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
php8.0-enchant_package() {
|
php8.0-enchant_package() {
|
||||||
lib32disabled=yes
|
lib32disabled=yes
|
||||||
depends="php${_php_version}-${version}_${revision}"
|
depends="php${_php_version}-${version}_${revision}"
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
pkgname=php
|
pkgname=php
|
||||||
ignore="8.[1-9].*"
|
ignore="8.[1-9].*"
|
||||||
|
site="https://www.php.net/distributions/"
|
||||||
|
|
Loading…
Add table
Reference in a new issue