add inotify

This commit is contained in:
crazywhalecc 2023-04-08 18:55:23 +08:00
parent 54efec60b8
commit 000ebef28b
No known key found for this signature in database
GPG Key ID: 1F4BDD59391F2680
4 changed files with 16 additions and 31 deletions

View File

@ -298,6 +298,10 @@
],
"unix-only": true
},
"inotify": {
"type": "external",
"source": "inotify"
},
"swow": {
"type": "external",
"source": "swow",

View File

@ -205,6 +205,16 @@
"path": "LICENSE"
}
},
"inotify": {
"type": "url",
"url": "http://pecl.php.net/get/inotify",
"path": "php-src/ext/inotify",
"filename": "inotify.tgz",
"license": {
"type": "file",
"path": "LICENSE"
}
},
"pthreads4w": {
"type": "git",
"rev": "master",

View File

@ -25,8 +25,8 @@
| gettext | | | |
| gmp | untested | untested | |
| hash | yes | yes | |
| iconv | untested | | |
| inotify | | | |
| iconv | yes | | |
| inotify | yes | yes | |
| mbstring | yes | yes | |
| mcrypt | | [faulty](https://github.com/crazywhalecc/static-php-cli/issues/32) | |
| mongodb | untested | | |

View File

@ -1,29 +0,0 @@
<?php
declare(strict_types=1);
namespace SPC\builder\linux\library;
/**
* is a template library class for unix
*/
class libuv extends LinuxLibraryBase
{
public const NAME = 'libuv';
protected function build()
{
[,,$destdir] = SEPARATED_PATH;
shell()->cd($this->source_dir)
->exec('./autogen.sh')
->exec(
"{$this->builder->configure_env} ./configure " .
'--enable-static --disable-shared ' .
'--prefix='
)
->exec('make clean')
->exec("make -j{$this->builder->concurrency}")
->exec("make install DESTDIR={$destdir}");
}
}