perl-json: add optional dependency on perl-json-xs (#45050)

This commit is contained in:
Julien Cortial 2024-07-15 14:23:25 +02:00 committed by GitHub
parent 613fa56bfc
commit cee3e5436b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -16,3 +16,12 @@ class PerlJson(PerlPackage):
version("4.10", sha256="df8b5143d9a7de99c47b55f1a170bd1f69f711935c186a6dc0ab56dd05758e35")
version("2.97001", sha256="e277d9385633574923f48c297e1b8acad3170c69fa590e31fa466040fc6f8f5a")
variant(
"json-xs",
default=True,
description="""Makes the preferred backend JSON::XS available to avoid defaulting to the
slower JSON::PP""",
)
depends_on("perl-json-xs", when="+json-xs", type=("run"))