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

Add kivy requirements to buildserver

This commit is contained in:
Ciaran Gultnieks 2013-11-24 22:11:02 +00:00
parent da0af33bf4
commit 752105c884
2 changed files with 41 additions and 1 deletions

View File

@ -0,0 +1,35 @@
user = node[:settings][:user]
%w{cython python-pygame python-opengl python-gst0.10 python-enchant libgl1-mesa-dev libgles2-mesa-dev}.each do |pkg|
package pkg do
action :install
end
end
script "install-kivy" do
cwd "/tmp"
interpreter "bash"
code "
tar xf /vagrant/cache/Kivy-1.7.2.tar.gz
cd Kivy-1.7.2
sudo python setup.py install
cd ..
rm -rf Kivy*
"
not_if "python -c 'import kivy'"
end
script "install-p4a" do
cwd "/home/vagrant"
interpreter "bash"
code "
git clone git://github.com/kivy/python-for-android
cd python-for-android
git checkout ca369d774e2
"
not_if "test -d /home/vagrant/python-for-android"
end

View File

@ -64,7 +64,11 @@ cachefiles = [
'4077575c98075480e0156c10e48a1521e31c7952768271a206870e6813057f4f'),
('gradle-1.8-bin.zip',
'http://services.gradle.org/distributions/gradle-1.8-bin.zip',
'a342bbfa15fd18e2482287da4959588f45a41b60910970a16e6d97959aea5703')]
'a342bbfa15fd18e2482287da4959588f45a41b60910970a16e6d97959aea5703'),
('Kivy-1.7.2.tar.gz',
'http://pypi.python.org/packages/source/K/Kivy/Kivy-1.7.2.tar.gz',
'0485e2ef97b5086df886eb01f8303cb542183d2d71a159466f99ad6c8a1d03f1')
]
if config['arch64']:
cachefiles.extend([
('android-ndk-r9-linux-x64_64.tar.bz2',
@ -131,6 +135,7 @@ vagrantfile += """
chef.add_recipe "fdroidbuild-general"
chef.add_recipe "android-sdk"
chef.add_recipe "android-ndk"
chef.add_recipe "kivy"
end
end
"""