add readline support

This commit is contained in:
crazywhalecc
2023-04-30 15:04:50 +08:00
parent d73cefc280
commit b3296842b7
8 changed files with 126 additions and 6 deletions

View File

@@ -235,13 +235,9 @@
},
"readline": {
"type": "builtin",
"arg-type": "with",
"arg-type": "with-prefix",
"lib-depends": [
"readline"
],
"lib-suggests": [
"libedit",
"ncurses"
]
},
"redis": {

View File

@@ -15,6 +15,21 @@
"brotli"
]
},
"ncurses": {
"source": "ncurses",
"static-libs-unix": [
"libncursesw.a"
]
},
"readline": {
"source": "readline",
"static-libs-unix": [
"libreadline.a"
],
"lib-depends": [
"ncurses"
]
},
"bzip2": {
"source": "bzip2",
"static-libs-unix": [

View File

@@ -41,6 +41,24 @@
"path": "LICENSE"
}
},
"ncurses": {
"type": "filelist",
"url": "https://ftp.gnu.org/pub/gnu/ncurses/",
"regex": "/href=\"(?<file>ncurses-(?<version>[^\"]+)\\.tar\\.gz)\"/",
"license": {
"type": "file",
"path": "COPYING"
}
},
"readline": {
"type": "filelist",
"url": "https://ftp.gnu.org/pub/gnu/readline/",
"regex": "/href=\"(?<file>readline-(?<version>[^\"]+)\\.tar\\.gz)\"/",
"license": {
"type": "file",
"path": "COPYING"
}
},
"ext-zstd": {
"type": "git",
"path": "php-src/ext/zstd",