You've already forked OpenUxAS-bootstrap
mirror of
https://github.com/AdaCore/OpenUxAS-bootstrap.git
synced 2026-02-12 13:07:23 -08:00
36 lines
1.0 KiB
Plaintext
36 lines
1.0 KiB
Plaintext
from e3.anod.loader import spec
|
|
from e3.fs import cp
|
|
|
|
|
|
class GitHub(spec('common')):
|
|
|
|
has_local_patch = False
|
|
|
|
@property
|
|
def build_source_list(self):
|
|
result = [self.Source(name=self.github_project,
|
|
publish=True,
|
|
dest='')]
|
|
if self.has_local_patch:
|
|
result.append(self.Source(name=self.github_project + '.patch',
|
|
publish=True,
|
|
unpack_cmd=cp,
|
|
dest='patches'))
|
|
return result
|
|
|
|
@property
|
|
def source_pkg_build(self):
|
|
|
|
def fullname(*args, **kwargs):
|
|
return "%s-src.tar.gz" % self.github_project
|
|
|
|
result = [
|
|
self.SourceBuilder(
|
|
name=self.github_project,
|
|
fullname=fullname,
|
|
checkout=[self.github_project])]
|
|
if self.has_local_patch:
|
|
result.append(self.LocalSourceBuilder(
|
|
name=self.github_project + '.patch'))
|
|
return result
|