[skip build]
[skip test]
This commit is contained in:
alexey.lysiuk 2023-03-23 16:13:00 +02:00
parent 4898dd6ccc
commit 4a19344c62
1 changed files with 10 additions and 11 deletions

View File

@ -140,18 +140,17 @@ class RizinTarget(base.MesonTarget):
def detect(self, state: BuildState) -> bool: def detect(self, state: BuildState) -> bool:
return state.has_source_file('binrz/man/rizin.1') return state.has_source_file('binrz/man/rizin.1')
# def configure(self, state: BuildState): def configure(self, state: BuildState):
# super().configure(state) 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)
# 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): class SeverZipTarget(base.MakeTarget):