mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 12:54:52 +08:00
Add libedit
This commit is contained in:
parent
2e8f6bbb31
commit
6688819605
15
config/pkg/lib/libedit.yml
Normal file
15
config/pkg/lib/libedit.yml
Normal 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
|
||||
@ -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(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user