28 lines
573 B
PHP
Raw Normal View History

2023-04-30 15:04:50 +08:00
<?php
declare(strict_types=1);
namespace SPC\builder\unix\library;
use SPC\exception\FileSystemException;
use SPC\exception\RuntimeException;
2025-06-09 19:32:31 +08:00
use SPC\util\executor\UnixAutoconfExecutor;
2023-04-30 15:04:50 +08:00
trait readline
{
/**
* @throws RuntimeException
* @throws FileSystemException
*/
protected function build(): void
2023-04-30 15:04:50 +08:00
{
2025-06-09 19:32:31 +08:00
UnixAutoconfExecutor::create($this)
->configure(
'--with-curses',
'--enable-multibyte=yes',
2023-04-30 15:04:50 +08:00
)
2025-06-09 19:32:31 +08:00
->make();
2023-04-30 15:04:50 +08:00
$this->patchPkgconfPrefix(['readline.pc']);
}
}