From 4a19344c6246eadb179221c189534d859815ea51 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Thu, 23 Mar 2023 16:13:00 +0200 Subject: [PATCH] wip [skip build] [skip test] --- aedi/target/tool_tier2.py | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/aedi/target/tool_tier2.py b/aedi/target/tool_tier2.py index c2e94868..78120520 100644 --- a/aedi/target/tool_tier2.py +++ b/aedi/target/tool_tier2.py @@ -140,18 +140,17 @@ class RizinTarget(base.MesonTarget): def detect(self, state: BuildState) -> bool: return state.has_source_file('binrz/man/rizin.1') - # def configure(self, state: BuildState): - # super().configure(state) - # - # # Fix absolute paths in r_userconf.h - # search_subpath = str(state.install_path) - # replace_subpath = '/usr/local' - # - # def fix_paths(line: str): - # return line.replace(search_subpath, replace_subpath) if search_subpath in line else line - # - # self.update_text_file(state.build_path / 'rz_userconf.h', fix_paths) + def configure(self, state: BuildState): + super().configure(state) + # Fix absolute paths in r_userconf.h + search_subpath = str(state.install_path) + replace_subpath = '/usr/local' + + def fix_paths(line: str): + return line.replace(search_subpath, replace_subpath) if search_subpath in line else line + + self.update_text_file(state.build_path / 'rz_userconf.h', fix_paths) class SeverZipTarget(base.MakeTarget):