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 "cpp-library": true
}, },
"libedit": {
"source": "libedit",
"static-libs-unix": [
"libedit.a"
],
"lib-depends": [
"ncurses"
]
},
"libevent": { "libevent": {
"source": "libevent", "source": "libevent",
"static-libs-unix": [ "static-libs-unix": [

View File

@ -489,6 +489,16 @@
"path": "COPYING" "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": { "libevent": {
"type": "ghrel", "type": "ghrel",
"repo": "libevent/libevent", "repo": "libevent/libevent",
@ -946,16 +956,6 @@
"path": "LICENSE" "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": { "readline": {
"type": "filelist", "type": "filelist",
"url": "https://ftp.gnu.org/pub/gnu/readline/", "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 public function getUnixConfigureArg(bool $shared = false): string
{ {
return '--with-libedit=' . BUILD_ROOT_PATH . ' --without-readline'; return '--with-libedit --without-readline';
} }
public function buildUnixShared(): void public function buildUnixShared(): void

View File

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