Merge branch 'master' into slapos
[slapos.git] / component / pdftk / buildout.cfg
1 [buildout]
2 # Note: Locally provided gcc with gcj is used, as there is high unstability
3 # in how gcj is functional on many operating systems.
4 # Because of this the only way to have portable pdftk profile it is required
5 # to provide working gcj and then have it used for pdftk compilation.
6 extends =
7   ../fastjar/buildout.cfg
8   ../gcc/buildout.cfg
9
10 parts = pdftk
11
12 [pdftk-1.44-Makefile.Base.patch]
13 recipe = hexagonit.recipe.download
14 url = ${:_profile_base_location_}/${:filename}
15 download-only = true
16 md5sum = 04a3607213e4e638c1fd993321804499
17 filename = pdftk-1.44-Makefile.Base.patch
18
19 [pdftk-hooks-download]
20 recipe = hexagonit.recipe.download
21 url = ${:_profile_base_location_}/${:filename}
22 filename = pdftk-hooks.py
23 md5sum = d2a067b98953ad30ba1230f87dfb8b92
24 download-only = true
25
26 [pdftk]
27 recipe = hexagonit.recipe.cmmi
28 url = http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/pdftk-1.44-src.zip
29 md5sum = 9eb50fffcd621a627d387750c60982b4
30 configure-command = true
31 patches =
32   ${pdftk-1.44-Makefile.Base.patch:location}/${pdftk-1.44-Makefile.Base.patch:filename}
33 patch-options = -p1
34 # pdftk does not work correcly with parallel building
35 make-options =
36   -j1
37   -f Makefile.Redhat
38   DEST=${buildout:parts-directory}/${:_buildout_section_name_}
39
40 pre-make-hook = ${pdftk-hooks-download:location}/${pdftk-hooks-download:filename}:pre_make_hook
41 environment =
42   PATH=${gcc-java:location}/bin:${fastjar:location}/bin:%(PATH)s
43   LDFLAGS=-L${gcc-java:location}/lib -Wl,-rpath=${gcc-java:location}/lib -L${gcc-java:location}/lib64 -Wl,-rpath=${gcc-java:location}/lib64
44   LD_LIBRARY_PATH=${gcc-java:location}/lib:${gcc-java:location}/lib64