parent
c753e62913
commit
a0978a6ab4
|
@ -30,7 +30,6 @@ class PlatformNeutralEnv:
|
||||||
self.mesontest_command = [*self.meson_command, "test"]
|
self.mesontest_command = [*self.meson_command, "test"]
|
||||||
self.patch_command = self._detect_command('patch')
|
self.patch_command = self._detect_command('patch')
|
||||||
self.git_command = self._detect_command('git')
|
self.git_command = self._detect_command('git')
|
||||||
self.svn_command = self._detect_command('svn')
|
|
||||||
self.make_command = self._detect_command('make')
|
self.make_command = self._detect_command('make')
|
||||||
self.cmake_command = self._detect_command('cmake')
|
self.cmake_command = self._detect_command('cmake')
|
||||||
self.qmake_command = self._detect_command('qmake', required=False)
|
self.qmake_command = self._detect_command('qmake', required=False)
|
||||||
|
|
|
@ -196,30 +196,6 @@ class GitClone(Source):
|
||||||
self.command('post_prepare_script', self._post_prepare_script)
|
self.command('post_prepare_script', self._post_prepare_script)
|
||||||
|
|
||||||
|
|
||||||
class SvnClone(Source):
|
|
||||||
@property
|
|
||||||
def source_dir(self):
|
|
||||||
return self.svn_dir
|
|
||||||
|
|
||||||
@property
|
|
||||||
def svn_path(self):
|
|
||||||
return pj(neutralEnv('source_dir'), self.svn_dir)
|
|
||||||
|
|
||||||
def _svn_export(self, context):
|
|
||||||
if os.path.exists(self.svn_path):
|
|
||||||
raise SkipCommand()
|
|
||||||
command = [
|
|
||||||
*neutralEnv('svn_command'), "export",
|
|
||||||
self.svn_remote, self.svn_dir
|
|
||||||
]
|
|
||||||
run_command(command, neutralEnv('source_dir'), context)
|
|
||||||
|
|
||||||
def prepare(self):
|
|
||||||
self.command('svnexport', self._svn_export)
|
|
||||||
if hasattr(self, 'patches'):
|
|
||||||
self.command('patch', self._patch)
|
|
||||||
|
|
||||||
|
|
||||||
class Builder:
|
class Builder:
|
||||||
subsource_dir = None
|
subsource_dir = None
|
||||||
dependencies = []
|
dependencies = []
|
||||||
|
|
Loading…
Reference in New Issue