buildout.cfg 1.46 KB
Newer Older
1
[buildout]
2

Guillaume Bottex's avatar
Guillaume Bottex committed
3
parts =
4
  java
5

6
[java]
7 8 9
<= java-re

[java-re]
10
<= java-re-7
11

12
[java-re-7]
13 14 15 16 17 18 19 20
recipe = slapos.recipe.build
slapos_promisee =
  directory:bin
  directory:lib
  directory:man
  directory:plugin
  file:lib/rt.jar
  file:bin/java
21 22 23
# http://java.com/en/download/manual_java7.jsp
x86 = http://javadl.sun.com/webapps/download/AutoDL?BundleId=97798 90a6b9e2a32d06c18a3f16b485f0d1ea
x86-64 = http://javadl.sun.com/webapps/download/AutoDL?BundleId=97800 7605134662f6c87131eca5745895fe84
24 25
script =
  if not self.options.get('url'): self.options['url'], self.options['md5sum'] = self.options[guessPlatform()].split(' ')
26
  extract_dir = self.extract(self.download(self.options['url'], self.options.get('md5sum')))
27
  workdir = guessworkdir(extract_dir)
28
  self.copyTree(workdir, "%(location)s")
29

30
[java-re-8]
31 32 33 34 35 36
recipe = slapos.recipe.build
slapos_promisee =
  directory:bin
  directory:lib
  directory:man
  directory:plugin
37
  file:lib/rt.jar
38
  file:bin/java
39 40 41
# http://java.com/en/download/manual_java7.jsp
x86 = http://javadl.sun.com/webapps/download/AutoDL?BundleId=97358 22d970566c418499d331a2099d77c548
x86-64 = http://javadl.sun.com/webapps/download/AutoDL?BundleId=97360 f4f7f7335eaf2e7b5ff455abece9d5ed
42 43
script =
  if not self.options.get('url'): self.options['url'], self.options['md5sum'] = self.options[guessPlatform()].split(' ')
44
  extract_dir = self.extract(self.download(self.options['url'], self.options.get('md5sum')))
45
  workdir = guessworkdir(extract_dir)
46
  self.copyTree(workdir, "%(location)s")