[SCM] Packaging of CAM::PDF in Debian branch, master, updated. debian/1.58-2-11-g1e4835d
Xavier Guimard
x.guimard at free.fr
Thu Jan 24 21:29:53 UTC 2013
The following commit has been merged in the master branch:
commit b12d7b105c7f1df2f30e813e3da09d812d1bd124
Author: Xavier Guimard <x.guimard at free.fr>
Date: Thu Jan 24 22:27:05 2013 +0100
Clean debian/rules and change scripts names inside manages
diff --git a/debian/rules b/debian/rules
index 813c3a6..a3dc27e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,11 +1,26 @@
#!/usr/bin/make -f
+PACKAGE = $(shell dh_listpackages)
+TMP = $(CURDIR)/debian/$(PACKAGE)
+
%:
dh $@
override_dh_auto_install:
dh_auto_install
- for a in setpdfpage setpdfbackground listimages listfonts changepagestring getpdfpage getpdfpageobject extractallimages getpdftext extractjpgs revertpdf getpdffontobject rewritepdf crunchjpgs changerefkeys readpdf renderpdf appendpdf deillustrate uninlinepdfimages deletepdfpage changepdfstring fillpdffields listpdffields stamppdf replacepdfobj; do mv debian/libcam-pdf-perl/usr/bin/$$a.pl debian/libcam-pdf-perl/usr/bin/$$a; done
- mv debian/libcam-pdf-perl/usr/bin/pdfinfo.pl debian/libcam-pdf-perl/usr/bin/pdfinfo.cam-pdf
- chmod a-x debian/libcam-pdf-perl/usr/bin/crunchjpg_tmpl.pdf
- mv debian/libcam-pdf-perl/usr/bin/crunchjpg_tmpl.pdf debian/libcam-pdf-perl/usr/share/libcam-pdf-perl/
+ # Remove asciify, unnecessary script written for tcsh
+ rm -f $(TMP)/usr/bin/asciify
+ # Change scripts.pl to script
+ prename 's/\.pl//' $(TMP)/usr/bin/*.pl $(TMP)/usr/share/man/man1/*.pl*
+ # Rename pdfinfo into pdfinfo.cam-pdf
+ prename 's/pdfinfo/pdfinfo.cam-pdf/' $(TMP)/usr/bin/pdfinfo $(TMP)/usr/share/man/man1/pdfinfo*
+ # Same change inside manpages
+ perl -i -pe 'BEGIN{$$i=join("|",split(/\s+/,"'"$$(ls $(TMP)/usr/bin)"'"));} \
+ s/($$i)\.pl/$$1/g; \
+ s/pdfinfo/pdfinfo.cam-pdf/g' $(TMP)/usr/share/man/man1/*
+ # mv template into /usr/share/libcam-pdf-perl/
+ mv $(TMP)/usr/bin/crunchjpg_tmpl.pdf $(TMP)/usr/share/libcam-pdf-perl/
+
+override_dh_fixperms:
+ dh_fixperms
+ chmod a-x $(TMP)/usr/share/libcam-pdf-perl/crunchjpg_tmpl.pdf
--
Packaging of CAM::PDF in Debian
More information about the Pkg-perl-cvs-commits
mailing list