[buildout] # Note: Locally provided gcc with gcj is used, as there is high unstability # in how gcj is functional on many operating systems. # Because of this the only way to have portable pdftk profile it is required # to provide working gcj and then have it used for pdftk compilation. extends = fastjar.cfg gcc.cfg parts = pdftk [pdftk-patch-download] recipe = hexagonit.recipe.download url = http://www.nexedi.org/static/patches/${:filename} download-only = true [pdftk-1.44-Makefile.Base-DEST-LDFLAGS.patch] <= pdftk-patch-download md5sum = 7b8268061f011c9b63613a078ac941ae filename = pdftk-1.44-Makefile.Base-DEST-LDFLAGS.patch [pdftk-hooks-download] recipe = hexagonit.recipe.download url = http://www.nexedi.org/static/buildout-hooks/pdftk-hooks.py-r38757 filename = pdftk-hooks.py md5sum = b4b4a31ded6b59888e2a56d1b5726c99 download-only = true [pdftk] recipe = hexagonit.recipe.cmmi url = http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/pdftk-1.44-src.zip md5sum = 9eb50fffcd621a627d387750c60982b4 configure-command = true patches = ${pdftk-1.44-Makefile.Base-DEST-LDFLAGS.patch:location}/${pdftk-1.44-Makefile.Base-DEST-LDFLAGS.patch:filename} patch-options = -p1 # pdftk does not work correcly with parallel building make-options = -j1 -f Makefile.Redhat DEST=${buildout:parts-directory}/${:_buildout_section_name_} pre-make-hook = ${pdftk-hooks-download:location}/${pdftk-hooks-download:filename}:pre_make_hook environment = PATH=${gcc-java:location}/bin:${fastjar:location}/bin:%(PATH)s LDFLAGS=-L${gcc-java:location}/lib -Wl,-rpath -Wl,${gcc-java:location}/lib -L${gcc-java:location}/lib64 -Wl,-rpath -Wl,${gcc-java:location}/lib64 LD_LIBRARY_PATH=${gcc-java:location}/lib:${gcc-java:location}/lib64