From 829aeb245ab1acb403130a58c054e0f1b4c7cbba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Nowak?= <luke@nexedi.com> Date: Thu, 25 Nov 2010 14:16:45 +0000 Subject: [PATCH] - hooks needed by jbigkit git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40690 20353a03-c40f-0410-a6d1-a30d3c3de9de --- buildout/hooks/jbigkit-hooks.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 buildout/hooks/jbigkit-hooks.py diff --git a/buildout/hooks/jbigkit-hooks.py b/buildout/hooks/jbigkit-hooks.py new file mode 100644 index 0000000000..52968ed559 --- /dev/null +++ b/buildout/hooks/jbigkit-hooks.py @@ -0,0 +1,15 @@ +import os +import shutil +def post_make_hook(options, buildout): + destination = options['location'] + directory_list = ['include', 'lib'] + for d in directory_list: + dd = os.path.join(destination, d) + if not os.path.isdir(dd): + os.mkdir(dd) + for include in ['jbig.h', 'jbig85.h', 'jbig_ar.h']: + shutil.copyfile(os.path.join(os.curdir, 'libjbig', include), + os.path.join(destination, 'include', include)) + for so in ['libjbig85.so', 'libjbig.so']: + shutil.copyfile(os.path.join(os.curdir, 'libjbig', so), + os.path.join(destination, 'lib', so)) -- 2.30.9