ddt: add v23.0.4 -> v24.0.3 (#45861)

* ddt: add v23.0.4 -> v24.0.3
* ddt: fix url_for_version for 22.1.3

---------

Co-authored-by: Lydéric Debusschère <lyderic.de@gmail.com>
This commit is contained in:
Wouter Deconinck 2024-08-23 11:12:42 -05:00 committed by GitHub
parent bd627465f3
commit 5a9dbcc0c4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,7 +14,8 @@ class Ddt(Package):
behavior to achieve lightning-fast performance at all scales."""
homepage = "https://arm.com"
url = "https://downloads.linaroforge.com/22.1.3/arm-forge-22.1.3-linux-x86_64.tar"
url = "https://downloads.linaroforge.com/22.1.3/linaro-forge-22.1.3-linux-x86_64.tar"
list_url = "https://www.linaroforge.com/download-documentation"
maintainers("robgics")
@ -22,6 +23,9 @@ class Ddt(Package):
license_files = ["./licences/ddt.lic"]
# Versions before 22.0 have a security vulnerability. Do not install them.
version("24.0.3", sha256="1796559fb86220d5e17777215d3820f4b04aba271782276b81601d5065284526")
version("23.1.2", sha256="675d2d8e4510afefa0405eecb46ac8bf440ff35a5a40d5507dc12d29678a22bf")
version("23.0.4", sha256="41a81840a273ea9a232efb4f031149867c5eff7a6381d787e18195f1171caac4")
version("22.1.3", sha256="4f8a8b1df6ad712e89c82eedf4bd85b93b57b3c8d5b37d13480ff058fa8f4467")
version(
"22.0.2",
@ -29,6 +33,14 @@ class Ddt(Package):
deprecated=True,
)
def url_for_version(self, version):
if version <= Version("22.1.3"):
return (
f"https://downloads.linaroforge.com/{version}/arm-forge-{version}-linux-x86_64.tar"
)
else:
return f"https://downloads.linaroforge.com/{version}/linaro-forge-{version}-linux-x86_64.tar"
def setup_run_environment(self, env):
env.prepend_path("PATH", join_path(self.prefix, "bin"))