mirror of
https://github.com/php-gnupg/php-gnupg.git
synced 2026-07-27 16:12:40 +00:00
Add PIE support (GH-56)
Add a composer.json with the `php-ext` type and metadata required by PIE (https://github.com/php/pie), the modern replacement for PECL, so the extension can be installed via `pie install php-gnupg/gnupg`. The `configure-options` mirror the flags exposed by config.m4 (`--with-gnupg`, `--with-gpg`). Windows is excluded via `os-families-exclude` since GpgME builds supported by PHP are unavailable there. Document the PIE install method in the README. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
9ccd9aadfa
commit
c9dcd34f33
2 changed files with 43 additions and 0 deletions
34
composer.json
Normal file
34
composer.json
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{
|
||||
"name": "php-gnupg/gnupg",
|
||||
"description": "A wrapper around the GpgME library that provides access to GnuPG.",
|
||||
"type": "php-ext",
|
||||
"license": "BSD-2-Clause",
|
||||
"keywords": ["gnupg", "gpg", "gpgme", "encryption", "signing", "extension"],
|
||||
"homepage": "https://github.com/php-gnupg/php-gnupg",
|
||||
"support": {
|
||||
"issues": "https://github.com/php-gnupg/php-gnupg/issues",
|
||||
"source": "https://github.com/php-gnupg/php-gnupg",
|
||||
"docs": "https://www.php.net/manual/en/book.gnupg.php"
|
||||
},
|
||||
"require": {
|
||||
"php": "^7.2 || ^8.0"
|
||||
},
|
||||
"php-ext": {
|
||||
"extension-name": "gnupg",
|
||||
"support-zts": true,
|
||||
"support-nts": true,
|
||||
"os-families-exclude": ["windows"],
|
||||
"configure-options": [
|
||||
{
|
||||
"name": "with-gnupg",
|
||||
"description": "Include gnupg support, optionally specifying the path to the GpgME installation (directory containing include/gpgme.h)",
|
||||
"needs-value": true
|
||||
},
|
||||
{
|
||||
"name": "with-gpg",
|
||||
"description": "Path to the gpg v1.x binary",
|
||||
"needs-value": true
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue