Commit 3c8104a3 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

wkhtmltopdf: use more libraries from SlapOS explicitly.

parent 822bdf80
[buildout] [buildout]
extends = extends =
../freetype/buildout.cfg
../fontconfig/buildout.cfg ../fontconfig/buildout.cfg
../xz-utils/buildout.cfg ../libpng/buildout.cfg
../tar/buildout.cfg ../tar/buildout.cfg
../xorg/buildout.cfg ../xorg/buildout.cfg
../xz-utils/buildout.cfg
../zlib/buildout.cfg
parts = parts =
wkhtmltopdf wkhtmltopdf
...@@ -44,7 +47,7 @@ script = ...@@ -44,7 +47,7 @@ script =
wrapper_location = os.path.join("%(location)s", "wkhtmltopdf") wrapper_location = os.path.join("%(location)s", "wkhtmltopdf")
wrapper = open(wrapper_location, 'w') wrapper = open(wrapper_location, 'w')
wrapper.write("""#!${dash:location}/bin/dash wrapper.write("""#!${dash:location}/bin/dash
export LD_LIBRARY_PATH=%(location)s/lib/:${libXrender:location}/lib/:${fontconfig:location}/lib/:${libX11:location}/lib/:${libXext:location}/lib/ export LD_LIBRARY_PATH=%(location)s/lib:${fontconfig:location}/lib:${freetype:location}/lib:${libX11:location}/lib:${libXext:location}/lib:${libXrender:location}/lib:${libpng12:location}/lib:${zlib:location}/lib
export PATH=${fontconfig:location}/bin:$PATH export PATH=${fontconfig:location}/bin:$PATH
exec %(location)s/bin/wkhtmltopdf "$@" exec %(location)s/bin/wkhtmltopdf "$@"
""") """)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment