-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy path__init__.py
More file actions
26 lines (18 loc) · 801 Bytes
/
__init__.py
File metadata and controls
26 lines (18 loc) · 801 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
from portable_python import ModuleBuilder
class GettextTiny(ModuleBuilder):
"""Prevents libintl getting picked up from /usr/local"""
@property
def url(self):
return self.cfg_url(self.version) or f"https://github.com/sabotage-linux/gettext-tiny/archive/refs/tags/v{self.version}.tar.gz"
@property
def version(self):
# Check https://github.com/sabotage-linux/gettext-tiny/releases
return self.cfg_version("0.3.2")
def _do_linux_compile(self):
self.run_make("LIBINTL=NOOP")
self.run_make("LIBINTL=NOOP", f"DESTDIR={self.deps}", "prefix=/", "install")
class Toolchain(ModuleBuilder):
"""Additional libs we compile to ensure portable build is possible"""
@classmethod
def candidate_modules(cls):
yield GettextTiny