The android-sdk-update-manager seem to run from the command line quite fine. In particular, I would like to install android SDKs it on my built server. However, this server doesn't have X and actually I wouldn't like to refrain from installing any X dependencies. However, android-sdk-update-manager statically depends on dev-java/swt, which depends on cairo, etc. I tricked portage into installing android-sdk-update-manage without installing dev-java/swt (--nodeps and friends). When I tried to run it, it complained that the env-variable ANDROID_SWT wasn't set. However, after that variable pointed to a valid directory, the android command succeeded in downloading and installed android SDKs. For example: ANDROID_SWT="/tmp/" android update sdk -u worked without a hassle. So I would appreciate a headless flag, along with some simple patches to make the wrapper scripts in case swt isn't installed. I will try to find somebody upstream to implement proper support. Reproducible: Always
When installing swt, I noticed that it has several use flags (including gnome and cairo). If you take those off, does it result in a smaller build? It's not headless, but it might be more lightweight. Would be cool to not need it for a server environment, though, since you can do most things from the command line.
Created attachment 276209 [details] ebuild for android-sdk-update-manager-11 I just hack the ebuild to : - to use the X useflag to switch the dependencies on/off - be dependant on swt-3.5 or swt-3.6 Note : when you use the -X flag the following commands may break : ddms, android, emulator