1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-09-17 10:40:12 +02:00

ShowCaseView (Androzic fork thereof) srclib

This commit is contained in:
David Black 2013-05-02 12:21:16 +01:00
parent 48670b9e6c
commit 149cdff204

View File

@ -1785,6 +1785,20 @@ def getsrclib(spec, extlib_dir, sdk_path, basepath=False):
vcs.gotorevision(ref)
return sdir
if name == 'ShowCase-Androzic':
sdir = os.path.join(extlib_dir, 'ShowCase-Androzic')
vcs = getvcs('git',
'https://github.com/andreynovikov/ShowcaseView', sdir, sdk_path)
vcs.gotorevision(ref)
libdir = os.path.join(sdir, 'library')
if subprocess.call([os.path.join(sdk_path, 'tools', 'android'),
'update', 'project', '-p',
libdir]) != 0:
raise BuildException('Error updating ShowCase project')
if basepath:
return sdir
return libdir
raise BuildException('Unknown srclib ' + name)