[sagenb] 01/01: Replace with newer debhelper rules

Ximin Luo infinity0 at debian.org
Mon Mar 7 19:17:05 UTC 2016


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

infinity0 pushed a commit to branch master
in repository sagenb.

commit d1f82d3080e640cd565e748e5d6367f055ee3613
Author: Ximin Luo <infinity0 at pwned.gg>
Date:   Mon Mar 7 20:15:41 2016 +0100

    Replace with newer debhelper rules
    
    - tests temporarily disabled
---
 debian/compat  |  2 +-
 debian/control | 10 +++-------
 debian/rules   | 60 +++++-----------------------------------------------------
 3 files changed, 9 insertions(+), 63 deletions(-)

diff --git a/debian/compat b/debian/compat
index 7f8f011..ec63514 100644
--- a/debian/compat
+++ b/debian/compat
@@ -1 +1 @@
-7
+9
diff --git a/debian/control b/debian/control
index e7f8fb0..4837add 100644
--- a/debian/control
+++ b/debian/control
@@ -3,15 +3,11 @@ Section: math
 Priority: optional
 Maintainer: Debian Science Team <debian-science-maintainers at lists.alioth.debian.org>
 Uploaders: Felix Salfelder <felix at salfelder.org>
-Build-Depends: debhelper (>= 7), dh-python, python-dev, python-setuptools,
- python-flask, python-babel
-Standards-Version: 3.9.1
-XS-Python-Version: 2.7
-XB-Python-Version: 2.7
+Build-Depends: debhelper (>= 9), dh-python, python-dev, python-setuptools,
+ python-flask, python-babel, python-flask-oldsessions
+Standards-Version: 3.9.7
 
 Package: python-sagenb
 Architecture: any
 Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}
 Description: sage-notebook
-
-
diff --git a/debian/rules b/debian/rules
index 1ca103c..f64011f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,58 +1,8 @@
 #!/usr/bin/make -f
 
-PYDEF=$(shell pyversions -d)
-PYVERS=$(shell pyversions -rv)
+%:
+	dh "$@" --with python2 --buildsystem=pybuild
 
-build-stamp-%:
-	dh_testdir
-	python$* setup.py build
-	touch $@
-
-build-%: build-stamp-%
-	@echo $@ done
-
-clean:
-	dh_testdir
-	for p in $(PYVERS); do \
-		# python=$$(echo $$python | sed "s/$(PYDEF)/python/"); \
-		python$$p setup.py clean; \
-	done
-	rm -rf build-stamp* build
-	dh_clean
-
-$(PYVERS:%=install-%): install-%: build-stamp-%
-	dh_testdir
-	dh_testroot
-	dh_prep
-	dh_installdirs
-
-	python$* setup.py install --root=debian/python-sagenb --prefix=/usr --install-layout=deb
-	sed 's/flaskext\.babel/flask_babel/' -i \
-		debian/python-sagenb/usr/lib/python2.7/dist-packages/sagenb/notebook/*.py
-	dh_python2
-	#dh_auto_install --destdir=debian/python-sagenb
-
-build: $(PYVERS:%=build-%)
-
-binary: binary-arch
-
-# Build architecture-dependent files here.
-binary-arch: install-2.7
-	dh_testdir
-	dh_testroot
-#	[...]
-	dh_installchangelogs
-	dh_installdocs
-	dh_install
-	dh_link
-	dh_strip
-	dh_shlibdeps
-	dh_compress
-	dh_fixperms
-	dh_installdeb
-#	dh_pycentral
-	dh_gencontrol
-	dh_md5sums
-	dh_builddeb
-
-.PHONY: $(PYVERS:%=install-%) build binary $(PYVERS:%=build-%)
+# TODO: temporarily disabled for now; requires the "sage" binary
+override_dh_auto_test:
+	true

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



More information about the debian-science-commits mailing list