[iep] 04/04: d/rules: move arch indep files to /usr/share
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Thu Jan 29 23:56:01 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 739d38b5317de83284f69bfac368e2c5261c184e
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date: Thu Jan 29 23:14:14 2015 +0000
d/rules: move arch indep files to /usr/share
---
debian/rules | 34 +++++++++++++++++++---------------
1 file changed, 19 insertions(+), 15 deletions(-)
diff --git a/debian/rules b/debian/rules
index 2d2bd3f..7e6453b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,26 +5,30 @@
#export DH_VERBOSE=1
export PYBUILD_NAME=ieplib
-#export PYBUILD_BUILD_ARGS=--no-doc
-#export PYBUILD_INSTALL_ARGS=--no-doc
+export PYBUILD_DESTDIR_python3=debian/python3-$(PYBUILD_NAME)
+
+IEP_DESTDIR=debian/iep
%:
dh $@ --with python3 --buildsystem=pybuild
-#override_dh_auto_build:
-# dh_auto_build
-# PYTHONPATH=. http_proxy='localhost' sphinx-build -N -bhtml doc/ build/html # HTML generator
-
override_dh_auto_install:
dh_auto_install
- # install the iep package
- dh_install --sourcedir=$(CURDIR)/debian/python3-ieplib \
+ # move arch-indep files to /usr/share
+ find . -type d -name __pycache__ | xargs rm -rf
+ mkdir -p $(CURDIR)/$(PYBUILD_DESTDIR_python3)/usr/share/$(PYBUILD_NAME)
+ mv $(CURDIR)/$(PYBUILD_DESTDIR_python3)/usr/lib/python3.4/dist-packages/iep/resources \
+ $(CURDIR)/$(PYBUILD_DESTDIR_python3)/usr/share/$(PYBUILD_NAME)/
+ mv $(CURDIR)/$(PYBUILD_DESTDIR_python3)/usr/lib/python3.4/dist-packages/iep/*.txt \
+ $(CURDIR)/$(PYBUILD_DESTDIR_python3)/usr/share/$(PYBUILD_NAME)/
+ # move script to separate iep package
+ dh_install --sourcedir=$(CURDIR)/$(PYBUILD_DESTDIR_python3) \
--package=iep usr/bin
- rm -rf $(CURDIR)/debian/python3-ieplib/usr/bin
- # install the .desktop
- mkdir -p $(CURDIR)/debian/iep/usr/share/applications
- cp $(CURDIR)/debian/iep.desktop $(CURDIR)/debian/iep/usr/share/applications
- # generate and install the application icon
- mkdir -p $(CURDIR)/debian/iep/usr/share/pixmaps
+ rm -rf $(CURDIR)/$(PYBUILD_DESTDIR_python3)/usr/bin
+ # install desktop file
+ mkdir -p $(CURDIR)/$(IEP_DESTDIR)/usr/share/applications
+ cp $(CURDIR)/debian/iep.desktop $(CURDIR)/$(IEP_DESTDIR)/usr/share/applications
+ # generate and install icon
+ mkdir -p $(CURDIR)/$(IEP_DESTDIR)/usr/share/pixmaps
convert $(CURDIR)/iep/resources/appicons/ieplogo32.png -resize 32 \
- $(CURDIR)/debian/iep/usr/share/pixmaps/ieplogo.xpm
+ $(CURDIR)/$(IEP_DESTDIR)/usr/share/pixmaps/ieplogo.xpm
--
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