chiark / gitweb /
Add srclibs for Color-Picker and another one and
authorDavid Black <david8black@gmail.com>
Sun, 16 Sep 2012 19:50:24 +0000 (20:50 +0100)
committerDavid Black <david8black@gmail.com>
Sun, 16 Sep 2012 19:50:24 +0000 (20:50 +0100)
change viewpager repo

fdroidserver/common.py

index 8683783db3718c90934317934adc6ea496f0c5a8..587b2c2c840336a07f9a44930cfaf214a271f0fe 100644 (file)
@@ -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)