From 3ecc603770701ce3c318338be05ea0655ba820be Mon Sep 17 00:00:00 2001 From: Jerry Ma Date: Tue, 30 Apr 2024 13:57:44 +0800 Subject: [PATCH] Fix ncurses pkg-config bug temporarily (#432) * Fix ncurses pkg-config bug temporarily * Add tests --- config/source.json | 10 +++++++--- src/globals/test-extensions.php | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/config/source.json b/config/source.json index 9d5fb36e8..d8aa9b841 100644 --- a/config/source.json +++ b/config/source.json @@ -480,9 +480,13 @@ } }, "ncurses": { - "type": "filelist", - "url": "https://ftp.gnu.org/pub/gnu/ncurses/", - "regex": "/href=\"(?ncurses-(?[^\"]+)\\.tar\\.gz)\"/", + "alt": { + "type": "filelist", + "url": "https://ftp.gnu.org/pub/gnu/ncurses/", + "regex": "/href=\"(?ncurses-(?[^\"]+)\\.tar\\.gz)\"/" + }, + "type": "url", + "url": "https://ftp.gnu.org/pub/gnu/ncurses/ncurses-6.4.tar.gz", "license": { "type": "file", "path": "COPYING" diff --git a/src/globals/test-extensions.php b/src/globals/test-extensions.php index a94d50e41..aeed4c94a 100644 --- a/src/globals/test-extensions.php +++ b/src/globals/test-extensions.php @@ -13,7 +13,7 @@ // If you want to test your added extensions and libs, add below (comma separated, example `bcmath,openssl`). $extensions = match (PHP_OS_FAMILY) { - 'Linux', 'Darwin' => 'imagick', + 'Linux', 'Darwin' => 'readline', 'Windows' => 'mbstring,pdo_sqlite,mbregex', };