Commit bcd371c6 authored by Daniele Tricoli's avatar Daniele Tricoli 🦀

Move cmap files outside dist-packages and rework install files

parent d8df3b82
usr/lib/python*/*-packages/pdfminer/cmap/*.pickle.gz /usr/share/pdfminer/
/usr/share/pdfminer/
/usr/bin/dumppdf
/usr/bin/latin2ascii
/usr/bin/pdf2txt
/usr/lib/python*/*-packages/pdfminer-*.egg-info
/usr/lib/python*/*-packages/pdfminer/*.py
......@@ -3,6 +3,10 @@
export PYBUILD_NAME=pdfminer
export PYTHONWARNINGS=d
debroot = debian/tmp/
py2_libdir = /usr/lib/python2.7/dist-packages
py3_libdir = /usr/lib/python3/dist-packages
%:
dh $@ --with python2 --buildsystem=pybuild
......@@ -10,9 +14,15 @@ override_dh_auto_build:
$(MAKE) cmap
dh_auto_build
override_dh_install:
rename.ul .py '' debian/tmp/usr/bin/*.py
dh_install
override_dh_auto_install:
pybuild --install -p 2.7
rename.ul .py '' debian/python-pdfminer/usr/bin/*.py
# Move cmap files outside dist-packages
mkdir -p $(debroot)/usr/share/pdfminer/
mv debian/python-pdfminer/$(py2_libdir)/pdfminer/cmap/*.pickle.gz \
$(debroot)/usr/share/pdfminer/
override_dh_installman:
$(MAKE) -C debian/manpages/
......
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