reorder stuff for readline

This commit is contained in:
henderkes 2025-10-08 08:48:30 +02:00
parent 4e2d4f3f05
commit 31906b36e5
4 changed files with 21 additions and 14 deletions

View File

@ -343,6 +343,15 @@
],
"cpp-library": true
},
"libedit": {
"source": "libedit",
"static-libs-unix": [
"libedit.a"
],
"lib-depends": [
"ncurses"
]
},
"libevent": {
"source": "libevent",
"static-libs-unix": [

View File

@ -489,6 +489,16 @@
"path": "COPYING"
}
},
"libedit": {
"type": "filelist",
"url": "https://thrysoee.dk/editline/",
"regex": "/href=\"(?<file>libedit-(?<version>[^\"]+)\\.tar\\.gz)\"/",
"provide-pre-built": true,
"license": {
"type": "file",
"path": "COPYING"
}
},
"libevent": {
"type": "ghrel",
"repo": "libevent/libevent",
@ -946,16 +956,6 @@
"path": "LICENSE"
}
},
"libedit": {
"type": "filelist",
"url": "https://thrysoee.dk/editline/",
"regex": "/href=\"(?<file>editline-(?<version>[^\"]+)\\.tar\\.gz)\"/",
"provide-pre-built": true,
"license": {
"type": "file",
"path": "COPYING"
}
},
"readline": {
"type": "filelist",
"url": "https://ftp.gnu.org/pub/gnu/readline/",

View File

@ -23,7 +23,7 @@ class readline extends Extension
public function getUnixConfigureArg(bool $shared = false): string
{
return '--with-libedit=' . BUILD_ROOT_PATH . ' --without-readline';
return '--with-libedit --without-readline';
}
public function buildUnixShared(): void

View File

@ -11,9 +11,7 @@ trait libedit
protected function build(): void
{
UnixAutoconfExecutor::create($this)
->configure(
'--with-curses'
)
->configure()
->make();
$this->patchPkgconfPrefix(['libedit.pc']);
}