Add dev:lint-config to replace sort-config command

This commit is contained in:
crazywhalecc 2026-02-02 14:13:05 +08:00
parent 455d42d162
commit f4a29c4830
No known key found for this signature in database
GPG Key ID: 1F4BDD59391F2680
8 changed files with 45 additions and 44 deletions

View File

@ -1,7 +1,5 @@
attr:
type: library
static-libs@unix:
- libattr.a
artifact:
source:
type: url
@ -10,5 +8,7 @@ attr:
type: url
url: 'https://mirror.souseiseki.middlendian.com/nongnu/attr/attr-2.5.2.tar.gz'
metadata:
license-files: ['doc/COPYING.LGPL']
license-files: [doc/COPYING.LGPL]
license: LGPL-2.1-or-later
static-libs@unix:
- libattr.a

View File

@ -1,11 +1,5 @@
brotli:
type: library
pkg-configs:
- libbrotlicommon
- libbrotlidec
- libbrotlienc
headers:
- brotli
artifact:
source:
type: ghtagtar
@ -13,5 +7,11 @@ brotli:
match: 'v1\.\d.*'
binary: hosted
metadata:
license-files: ['LICENSE']
license-files: [LICENSE]
license: MIT
headers:
- brotli
pkg-configs:
- libbrotlicommon
- libbrotlidec
- libbrotlienc

View File

@ -1,9 +1,5 @@
bzip2:
type: library
static-libs@unix:
- libbz2.a
headers:
- bzlib.h
artifact:
source:
type: url
@ -15,4 +11,8 @@ bzip2:
binary: hosted
metadata:
license-files: ['{registry_root}/src/globals/licenses/bzip2.txt']
license: bzip2-1.0.6
license: bzip2-1.0.6
headers:
- bzlib.h
static-libs@unix:
- libbz2.a

View File

@ -1,14 +1,14 @@
fastlz:
type: library
static-libs@unix:
- libfastlz.a
headers:
- fastlz.h
artifact:
source:
type: git
url: 'https://github.com/ariya/FastLZ.git'
rev: master
metadata:
license-files: ['LICENSE.MIT']
license: MIT
license-files: [LICENSE.MIT]
license: MIT
headers:
- fastlz.h
static-libs@unix:
- libfastlz.a

View File

@ -1,11 +1,5 @@
gmp:
type: library
static-libs@unix:
- libgmp.a
headers:
- gmp.h
pkg-configs:
- gmp
artifact:
source:
type: filelist
@ -17,3 +11,9 @@ gmp:
metadata:
license-files: ['@/gmp.txt']
license: Custom
headers:
- gmp.h
pkg-configs:
- gmp
static-libs@unix:
- libgmp.a

View File

@ -1,16 +1,10 @@
openssl:
type: library
static-libs@unix:
- libssl.a
- libcrypto.a
headers: ['openssl']
depends:
- zlib
artifact:
source:
type: ghrel
repo: openssl/openssl
match: 'openssl.+\.tar\.gz'
match: openssl.+\.tar\.gz
prefer-stable: true
source-mirror:
type: filelist
@ -18,5 +12,12 @@ openssl:
regex: '/href="(?<file>openssl-(?<version>[^"]+)\.tar\.gz)"/'
binary: hosted
metadata:
license-files: ['LICENSE.txt']
license-files: [LICENSE.txt]
license: OpenSSL
depends:
- zlib
headers:
- openssl
static-libs@unix:
- libssl.a
- libcrypto.a

View File

@ -1,16 +1,16 @@
zlib:
type: library
static-libs@unix:
- libz.a
headers:
- zlib.h
- zconf.h
artifact:
source:
type: ghrel
repo: madler/zlib
match: 'zlib.+\.tar\.gz'
match: zlib.+\.tar\.gz
binary: hosted
metadata:
license-files: ['{registry_root}/src/globals/licenses/zlib.txt']
license: Zlib-Custom
license: Zlib-Custom
headers:
- zlib.h
- zconf.h
static-libs@unix:
- libz.a

View File

@ -8,8 +8,8 @@ use StaticPHP\Command\BuildLibsCommand;
use StaticPHP\Command\BuildTargetCommand;
use StaticPHP\Command\Dev\EnvCommand;
use StaticPHP\Command\Dev\IsInstalledCommand;
use StaticPHP\Command\Dev\LintConfigCommand;
use StaticPHP\Command\Dev\ShellCommand;
use StaticPHP\Command\Dev\SortConfigCommand;
use StaticPHP\Command\DoctorCommand;
use StaticPHP\Command\DownloadCommand;
use StaticPHP\Command\DumpLicenseCommand;
@ -62,7 +62,7 @@ class ConsoleApplication extends Application
new ShellCommand(),
new IsInstalledCommand(),
new EnvCommand(),
new SortConfigCommand(),
new LintConfigCommand(),
]);
// add additional commands from registries