From 28afbc48ab3553b19e2fd9b521204ec6cd48dee3 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Wed, 3 Jan 2024 10:33:15 +0200 Subject: [PATCH] aedi: add m4 target, version 1.4.19 --- aedi/target/__init__.py | 1 + aedi/target/tool_tier2.py | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/aedi/target/__init__.py b/aedi/target/__init__.py index f60c226e..3158f4b8 100644 --- a/aedi/target/__init__.py +++ b/aedi/target/__init__.py @@ -125,6 +125,7 @@ def targets(): # Tools without binaries stored in the repo, can be outdated DzipTarget(), GlslangTarget(), + M4Target(), P7ZipTarget(), PbzxTarget(), QPakManTarget(), diff --git a/aedi/target/tool_tier2.py b/aedi/target/tool_tier2.py index c3e4fd88..c7066109 100644 --- a/aedi/target/tool_tier2.py +++ b/aedi/target/tool_tier2.py @@ -70,6 +70,16 @@ class GlslangTarget(base.CMakeStaticDependencyTarget): os.unlink(lib_cmake_path / entry) +class M4Target(base.ConfigureMakeDependencyTarget): + def __init__(self, name='m4'): + super().__init__(name) + + def prepare_source(self, state: BuildState): + state.download_source( + 'https://ftp.gnu.org/gnu/m4/m4-1.4.19.tar.xz', + '63aede5c6d33b6d9b13511cd0be2cac046f2e70fd0a07aa9573a04a82783af96') + + class P7ZipTarget(base.CMakeTarget): def __init__(self, name='p7zip'): super().__init__(name)