Ensure that gettext bin can be found

This commit is contained in:
Jelle Spijker 2022-10-25 02:41:35 +02:00
parent 10710fe838
commit f1936dc37c
No known key found for this signature in database
GPG Key ID: 6662DC033BE6B99A

View File

@ -296,7 +296,7 @@ class CuraConan(ConanFile):
for po_file in self.source_path.joinpath("resources", "i18n").glob("**/*.po"): for po_file in self.source_path.joinpath("resources", "i18n").glob("**/*.po"):
mo_file = self.build_path.joinpath(po_file.with_suffix('.mo').relative_to(self.source_path)) mo_file = self.build_path.joinpath(po_file.with_suffix('.mo').relative_to(self.source_path))
mkdir(self, str(unix_path(self, mo_file.parent))) mkdir(self, str(unix_path(self, mo_file.parent)))
self.run(f"msgfmt {po_file} -o {mo_file} -f", env="conanbuild") self.run(f"msgfmt {po_file} -o {mo_file} -f", env="conanbuild", run_environment=True)
# FIXME: once m4, autoconf, automake are Conan V2 ready self.win_bash = None # FIXME: once m4, autoconf, automake are Conan V2 ready self.win_bash = None
@ -322,7 +322,7 @@ class CuraConan(ConanFile):
for po_file in self.source_path.joinpath("resources", "i18n").glob("**/*.po"): for po_file in self.source_path.joinpath("resources", "i18n").glob("**/*.po"):
pot_file = self.source_path.joinpath("resources", "i18n", po_file.with_suffix('.pot').name) pot_file = self.source_path.joinpath("resources", "i18n", po_file.with_suffix('.pot').name)
mkdir(self, str(unix_path(self, pot_file.parent))) mkdir(self, str(unix_path(self, pot_file.parent)))
self.run(f"msgmerge --no-wrap --no-fuzzy-matching -width=140 -o {po_file} {po_file} {pot_file}", env = "conanbuild") self.run(f"msgmerge --no-wrap --no-fuzzy-matching -width=140 -o {po_file} {po_file} {pot_file}", env = "conanbuild", run_environment=True)
def imports(self): def imports(self):