[iep] 03/04: d/rules: add missing Python 3 versions listing

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Mon Feb 2 14:50:22 UTC 2015


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch master
in repository iep.

commit 9c273e6f3011b60c3429cc9a236960dab8930b99
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Mon Feb 2 14:24:04 2015 +0000

    d/rules: add missing Python 3 versions listing
---
 debian/rules | 18 +++++++++++-------
 1 file changed, 11 insertions(+), 7 deletions(-)

diff --git a/debian/rules b/debian/rules
index 8f31d2b..66f27d0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,34 +6,38 @@
 
 export PYBUILD_NAME=ieplib
 export PYBUILD_DESTDIR_python3=debian/python3-$(PYBUILD_NAME)
-
 IEP_DESTDIR=debian/iep
 
+# To be used until dh_python3 pyremove is backported to all supported
+# distributions.
+PY3VERS := $(shell py3versions -vr)
+
 %:
 	dh $@ --with python3 --buildsystem=pybuild
 
 override_dh_auto_build:
 	dh_auto_build
-	# generate application icon
+	# Generate application icon
 	convert $(CURDIR)/iep/resources/appicons/ieplogo32.png -resize 32 \
 		$(CURDIR)/debian/ieplogo.xpm	
 
 override_dh_auto_install:
 	dh_auto_install
-	# install common package files
+	# Install common package files
 	dh_install --package=iep-common iep/resources usr/share/$(PYBUILD_NAME)
 	dh_install --package=iep-common iep/*.txt usr/share/$(PYBUILD_NAME)
-	# install launcher 
+	# Install launcher 
 	dh_install --sourcedir=$(CURDIR)/$(PYBUILD_DESTDIR_python3) \
 		--package=iep usr/bin
 	rm -rf $(CURDIR)/$(PYBUILD_DESTDIR_python3)/usr/bin
-	# install desktop file
+	# Install desktop file
 	mkdir -p $(CURDIR)/$(IEP_DESTDIR)/usr/share/applications
 	cp $(CURDIR)/debian/iep.desktop $(CURDIR)/$(IEP_DESTDIR)/usr/share/applications
-	# install icon
+	# Install icon
 	mkdir -p $(CURDIR)/$(IEP_DESTDIR)/usr/share/pixmaps
 	cp $(CURDIR)/debian/ieplogo.xpm $(CURDIR)/$(IEP_DESTDIR)/usr/share/pixmaps
-	# remove unwanted files, needed for distributions with old dh_python3
+	# Remove unwanted files, needed for distributions without dh_python3
+	# pyremove
 	for v in $(PY3VERS); do \
 		rm -rf $(CURDIR)/$(PYBUILD_DESTDIR_python3)/usr/lib/python$$v/dist-packages/iep/resources ;\
 		rm -rf $(CURDIR)/$(PYBUILD_DESTDIR_python3)/usr/lib/python$$v/dist-packages/iep/*.txt ;\

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/iep.git



More information about the debian-science-commits mailing list