| 1 | |
| 2 | == Installazione di collective.sendaspdf == |
| 3 | - aggiungere in parts = |
| 4 | wkhtmltopdf |
| 5 | wkhtmltopdf_executable |
| 6 | |
| 7 | - aggiungere tra gli eggs = |
| 8 | collective.sendaspdf |
| 9 | |
| 10 | - in environment-vars = |
| 11 | WKHTMLTOPDF_PATH ${wkhtmltopdf:location}/wkhtmltopdf |
| 12 | |
| 13 | - [wkhtmltopdf] |
| 14 | recipe = hexagonit.recipe.download |
| 15 | url = https://wkhtmltopdf.googlecode.com/files/wkhtmltopdf-0.9.9-static-i386.tar.bz2 |
| 16 | hash-name=false |
| 17 | download-only=True |
| 18 | filename = wkhtmltopdf.tar.bz2 |
| 19 | |
| 20 | - [wkhtmltopdf_executable] |
| 21 | recipe = collective.recipe.cmd |
| 22 | on_install = true |
| 23 | on_update = true |
| 24 | cmds = |
| 25 | tar jxvf ${wkhtmltopdf:destination}/${wkhtmltopdf:filename} -C ${wkhtmltopdf:destination} |
| 26 | cd ${buildout:directory}/parts/wkhtmltopdf |
| 27 | mv wkhtmltopdf-i386 wkhtmltopdf |
| 28 | chmod +x wkhtmltopdf |
| 29 | |
| 30 | ---- |