buildout.cfg 1.84 KB
Newer Older
Vivien Alger's avatar
Vivien Alger committed
1
[buildout]
2
extends =
3
  ../alsa/buildout.cfg
4 5
  ../xorg/buildout.cfg
  ../fontconfig/buildout.cfg
6
  ../dbus/buildout.cfg
7
  ../gtk-2/buildout.cfg
8
  ../libpng/buildout.cfg
9 10
  ../dash/buildout.cfg
  ../openssl/buildout.cfg
11

Vivien Alger's avatar
Vivien Alger committed
12 13 14
parts =
  firefox

15
[firefox]
16 17 18 19 20
recipe = slapos.recipe.build
slapos_promise =
  file:firefox
  file:firefox-bin

21 22 23 24
depends =
  ${liberation-fonts:location}
  ${ipaex-fonts:location}

25 26
x86 = http://releases.mozilla.org/pub/mozilla.org/firefox/releases/18.0.2/linux-i686/en-US/firefox-18.0.2.tar.bz2 9eb4dcf2e9578203a16da3c70817ccb2
x86-64 = http://releases.mozilla.org/pub/mozilla.org/firefox/releases/18.0.2/linux-x86_64/en-US/firefox-18.0.2.tar.bz2 29903172f6fd788f04dbeb27b9193fe6
27

28 29 30 31 32
script =
  if not self.options.get('url'): self.options['url'], self.options['md5sum'] = self.options[guessPlatform()].split(' ')
  extract_dir = self.extract(self.download(self.options['url'], self.options.get('md5sum')))
  workdir = guessworkdir(extract_dir)
  self.copyTree(workdir, "%(location)s")
33 34
  wrapper_location = os.path.join("%(location)s", "firefox-slapos")
  wrapper = open(wrapper_location, 'w')
35
  wrapper.write("""#!${dash:location}/bin/dash
36
  cd %(location)s
37
  export LD_LIBRARY_PATH=%(location)s:${libXrender:location}/lib:${dbus:location}/lib:${dbus-glib:location}/lib:${freetype:location}/lib:${fontconfig:location}/lib:${libX11:location}/lib:${bzip2:location}/lib:${libXext:location}/lib:${libXt:location}/lib:${zlib:location}/lib:${libXcursor:location}/lib:${gtk-2:location}/lib:${cairo:location}/lib:${pango:location}/lib:${glib:location}/lib:${atk:location}/lib:${gdk-pixbuf:location}/lib:${alsa:location}/lib:${libpng15:location}/lib:${libSM:location}/lib:${libICE:location}/lib:${libxml2:location}/lib:${openssl:location}/lib
38
  export PATH=${fontconfig:location}/bin:$PATH
Romain Courteaud's avatar
Romain Courteaud committed
39
  exec %(location)s/firefox $*""")
40
  wrapper.close()
41
  os.chmod(wrapper_location, 0755)
42