mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2025-02-18 01:21:47 +00:00
aedi: move unrar target to tool tier 2
This commit is contained in:
parent
47e18aa2aa
commit
caa8227497
3 changed files with 17 additions and 17 deletions
|
@ -117,11 +117,11 @@ def targets():
|
||||||
NinjaTarget(),
|
NinjaTarget(),
|
||||||
P7ZipTarget(),
|
P7ZipTarget(),
|
||||||
PkgConfigTarget(),
|
PkgConfigTarget(),
|
||||||
UnrarTarget(),
|
|
||||||
YasmTarget(),
|
YasmTarget(),
|
||||||
|
|
||||||
# Tools without binaries stored in the repo, can be outdated
|
# Tools without binaries stored in the repo, can be outdated
|
||||||
PbzxTarget(),
|
PbzxTarget(),
|
||||||
|
UnrarTarget(),
|
||||||
ZipTarget(),
|
ZipTarget(),
|
||||||
|
|
||||||
# Special
|
# Special
|
||||||
|
|
|
@ -163,22 +163,6 @@ class PkgConfigTarget(ConfigureMakeDependencyTarget):
|
||||||
self.copy_to_bin(state, new_filename=self.name + '.exe')
|
self.copy_to_bin(state, new_filename=self.name + '.exe')
|
||||||
|
|
||||||
|
|
||||||
class UnrarTarget(MakeTarget):
|
|
||||||
def __init__(self, name='unrar'):
|
|
||||||
super().__init__(name)
|
|
||||||
|
|
||||||
def prepare_source(self, state: BuildState):
|
|
||||||
state.download_source(
|
|
||||||
'https://www.rarlab.com/rar/unrarsrc-6.0.7.tar.gz',
|
|
||||||
'a7029942006cbcced3f3b7322ec197683f8e7be408972ca08099b196c038f518')
|
|
||||||
|
|
||||||
def post_build(self, state: BuildState):
|
|
||||||
self.copy_to_bin(state)
|
|
||||||
|
|
||||||
def detect(self, state: BuildState) -> bool:
|
|
||||||
return state.has_source_file('rar.hpp')
|
|
||||||
|
|
||||||
|
|
||||||
class YasmTarget(ConfigureMakeDependencyTarget):
|
class YasmTarget(ConfigureMakeDependencyTarget):
|
||||||
def __init__(self, name='yasm'):
|
def __init__(self, name='yasm'):
|
||||||
super().__init__(name)
|
super().__init__(name)
|
||||||
|
|
|
@ -34,6 +34,22 @@ class PbzxTarget(SingleExeCTarget):
|
||||||
return state.has_source_file('pbzx.c')
|
return state.has_source_file('pbzx.c')
|
||||||
|
|
||||||
|
|
||||||
|
class UnrarTarget(MakeTarget):
|
||||||
|
def __init__(self, name='unrar'):
|
||||||
|
super().__init__(name)
|
||||||
|
|
||||||
|
def prepare_source(self, state: BuildState):
|
||||||
|
state.download_source(
|
||||||
|
'https://www.rarlab.com/rar/unrarsrc-6.0.7.tar.gz',
|
||||||
|
'a7029942006cbcced3f3b7322ec197683f8e7be408972ca08099b196c038f518')
|
||||||
|
|
||||||
|
def post_build(self, state: BuildState):
|
||||||
|
self.copy_to_bin(state)
|
||||||
|
|
||||||
|
def detect(self, state: BuildState) -> bool:
|
||||||
|
return state.has_source_file('rar.hpp')
|
||||||
|
|
||||||
|
|
||||||
class ZipTarget(SingleExeCTarget):
|
class ZipTarget(SingleExeCTarget):
|
||||||
def __init__(self, name='zip'):
|
def __init__(self, name='zip'):
|
||||||
super().__init__(name)
|
super().__init__(name)
|
||||||
|
|
Loading…
Reference in a new issue