From 2c34f5494a203557f7b055577e80a95a297c747c Mon Sep 17 00:00:00 2001 From: David Black Date: Sun, 16 Sep 2012 20:50:24 +0100 Subject: [PATCH] Add srclibs for Color-Picker and another one and change viewpager repo --- fdroidserver/common.py | 32 ++++++++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/fdroidserver/common.py b/fdroidserver/common.py index 8683783d..587b2c2c 100644 --- a/fdroidserver/common.py +++ b/fdroidserver/common.py @@ -709,16 +709,29 @@ def getsrclib(spec, extlib_dir, sdk_path): raise BuildException('Error updating ActionBarSherlock project') return libdir + if name == 'Amazing-ListView': + sdir = os.path.join(extlib_dir, 'Amazing-ListView') + vcs = getvcs('git-svn', + 'http://android-amazing-listview.googlecode.com/svn/trunk', sdir, sdk_path) + vcs.gotorevision(ref) + libdir = os.path.join(sdir, 'AmazingListView') + if subprocess.call([os.path.join(sdk_path, 'tools', 'android'), + 'update', 'project', '-p', + libdir]) != 0: + raise BuildException('Error updating Amazing-ListView project') + return libdir + if name == 'ViewPagerIndicator': sdir = os.path.join(extlib_dir, 'ViewPagerIndicator') vcs = getvcs('git', - 'https://github.com/mariotaku/viewpagerindicator.git', sdir, sdk_path) + 'https://github.com/JakeWharton/Android-ViewPagerIndicator.git', 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', - sdir]) != 0: - raise BuildException('Error updating ViewPagerIndicator project') - return sdir + libdir]) != 0: + raise BuildException('Error updating Android-ViewPagerIndicator project') + return libdir if name == 'UITableView': sdir = os.path.join(extlib_dir, 'UITableView') @@ -807,6 +820,17 @@ def getsrclib(spec, extlib_dir, sdk_path): raise BuildException("Maven build failed for BitcoinJWallet srclib") return sdir + if name == 'Android-Color-Picker': + sdir = os.path.join(extlib_dir, 'Color-Picker') + vcs = getvcs('git', + 'https://github.com/brk3/android-color-picker.git', sdir, sdk_path) + vcs.gotorevision(ref) + if subprocess.call([os.path.join(sdk_path, 'tools', 'android'), + 'update', 'project', '-p', + sdir]) != 0: + raise BuildException('Error updating Color-Picker project') + return sdir + raise BuildException('Unknown srclib ' + name) -- 2.30.2