add ext-gearman

This commit is contained in:
henderkes
2026-05-06 11:39:08 +07:00
parent 8537ad7b19
commit 90d7fe46d7
11 changed files with 199 additions and 84 deletions

View File

@@ -0,0 +1,20 @@
<?php
declare(strict_types=1);
namespace Package\Extension;
use StaticPHP\Attribute\Package\CustomPhpConfigureArg;
use StaticPHP\Attribute\Package\Extension;
use StaticPHP\Package\PackageInstaller;
#[Extension('gearman')]
class gearman
{
#[CustomPhpConfigureArg('Linux')]
#[CustomPhpConfigureArg('Darwin')]
public function getUnixConfigureArg(bool $shared, PackageInstaller $installer): string
{
return '--with-gearman=' . ($shared ? 'shared,' : '') . $installer->getLibraryPackage('libgearman')->getBuildRootPath();
}
}