Add libedit

This commit is contained in:
crazywhalecc 2026-02-03 10:17:13 +08:00
parent 2e8f6bbb31
commit 6688819605
No known key found for this signature in database
GPG Key ID: 1F4BDD59391F2680
2 changed files with 17 additions and 2 deletions

View File

@ -0,0 +1,15 @@
libedit:
type: library
artifact:
source:
type: filelist
url: 'https://thrysoee.dk/editline/'
regex: '/href="(?<file>libedit-(?<version>[^"]+)\.tar\.gz)"/'
binary: hosted
metadata:
license-files: ['COPYING']
license: BSD-3-Clause
static-libs@unix:
- libedit.a
depends:
- ncurses

View File

@ -4,9 +4,9 @@ declare(strict_types=1);
namespace Package\Library;
use StaticPHP\Attribute\Package\BeforeStage;
use StaticPHP\Attribute\Package\BuildFor;
use StaticPHP\Attribute\Package\Library;
use StaticPHP\Attribute\Package\PatchBeforeBuild;
use StaticPHP\Package\LibraryPackage;
use StaticPHP\Runtime\Executor\UnixAutoconfExecutor;
use StaticPHP\Util\FileSystem;
@ -14,7 +14,7 @@ use StaticPHP\Util\FileSystem;
#[Library('libedit')]
class libedit extends LibraryPackage
{
#[BeforeStage(stage: 'build')]
#[PatchBeforeBuild]
public function patchBeforeBuild(): void
{
FileSystem::replaceFileRegex(