fix ncurses 6.5 build (#439)

This commit is contained in:
Jerry Ma 2024-05-06 14:11:50 +08:00 committed by GitHub
parent 0fee628842
commit 954f8f4ddc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 11 deletions

View File

@ -480,13 +480,9 @@
} }
}, },
"ncurses": { "ncurses": {
"alt": { "type": "filelist",
"type": "filelist", "url": "https://ftp.gnu.org/pub/gnu/ncurses/",
"url": "https://ftp.gnu.org/pub/gnu/ncurses/", "regex": "/href=\"(?<file>ncurses-(?<version>[^\"]+)\\.tar\\.gz)\"/",
"regex": "/href=\"(?<file>ncurses-(?<version>[^\"]+)\\.tar\\.gz)\"/"
},
"type": "url",
"url": "https://ftp.gnu.org/pub/gnu/ncurses/ncurses-6.4.tar.gz",
"license": { "license": {
"type": "file", "type": "file",
"path": "COPYING" "path": "COPYING"

View File

@ -17,7 +17,7 @@ trait ncurses
'--with-curses-h ' . '--with-curses-h ' .
'--enable-pc-files ' . '--enable-pc-files ' .
'--enable-echo ' . '--enable-echo ' .
// '--enable-widec ' . '--disable-widec ' .
'--with-normal ' . '--with-normal ' .
'--with-ticlib ' . '--with-ticlib ' .
'--without-tests ' . '--without-tests ' .

View File

@ -13,13 +13,13 @@ declare(strict_types=1);
// If you want to test your added extensions and libs, add below (comma separated, example `bcmath,openssl`). // If you want to test your added extensions and libs, add below (comma separated, example `bcmath,openssl`).
$extensions = match (PHP_OS_FAMILY) { $extensions = match (PHP_OS_FAMILY) {
'Linux', 'Darwin' => 'curl', 'Linux', 'Darwin' => 'readline,pgsql,xml,dom,mbstring,mbregex,pdo_pgsql',
'Windows' => 'mbstring,pdo_sqlite,mbregex', 'Windows' => 'mbstring,pdo_sqlite,mbregex',
}; };
// If you want to test lib-suggests feature with extension, add them below (comma separated, example `libwebp,libavif`). // If you want to test lib-suggests feature with extension, add them below (comma separated, example `libwebp,libavif`).
$with_libs = match (PHP_OS_FAMILY) { $with_libs = match (PHP_OS_FAMILY) {
'Linux', 'Darwin' => 'xz', 'Linux', 'Darwin' => '',
'Windows' => '', 'Windows' => '',
}; };
@ -27,7 +27,7 @@ $with_libs = match (PHP_OS_FAMILY) {
// You can use `common`, `bulk`, `minimal` or `none`. // You can use `common`, `bulk`, `minimal` or `none`.
// note: combination is only available for *nix platform. Windows must use `none` combination // note: combination is only available for *nix platform. Windows must use `none` combination
$base_combination = match (PHP_OS_FAMILY) { $base_combination = match (PHP_OS_FAMILY) {
'Linux', 'Darwin' => 'minimal', 'Linux', 'Darwin' => 'none',
'Windows' => 'none', 'Windows' => 'none',
}; };