[Python-modules-commits] r4759 - in packages/matplotlib/trunk/debian (changelog rules)

certik-guest at users.alioth.debian.org certik-guest at users.alioth.debian.org
Sun Mar 9 15:32:40 UTC 2008


    Date: Sunday, March 9, 2008 @ 15:32:39
  Author: certik-guest
Revision: 4759

debian/rules simplified

Modified:
  packages/matplotlib/trunk/debian/changelog
  packages/matplotlib/trunk/debian/rules

Modified: packages/matplotlib/trunk/debian/changelog
===================================================================
--- packages/matplotlib/trunk/debian/changelog	2008-03-09 11:24:53 UTC (rev 4758)
+++ packages/matplotlib/trunk/debian/changelog	2008-03-09 15:32:39 UTC (rev 4759)
@@ -6,8 +6,9 @@
   * Standards-Version bumped to 3.7.3
   * python-numarray and python-numeric removed from build-depends and
     debian/rules fixed to make the package compile
+  * debian/rules polished 
 
- -- Ondrej Certik <ondrej at certik.cz>  Sat, 08 Mar 2008 19:10:55 +0100
+ -- Ondrej Certik <ondrej at certik.cz>  Sun, 09 Mar 2008 16:24:56 +0100
 
 matplotlib (0.90.1-3.1) unstable; urgency=medium
 

Modified: packages/matplotlib/trunk/debian/rules
===================================================================
--- packages/matplotlib/trunk/debian/rules	2008-03-09 11:24:53 UTC (rev 4758)
+++ packages/matplotlib/trunk/debian/rules	2008-03-09 15:32:39 UTC (rev 4759)
@@ -12,24 +12,15 @@
 p   := python-matplotlib
 pdata := python-matplotlib-data
 
-#users_guide_ver := 0.87.1
-users_guide := users_guide_*.pdf
-
 # Include dpatch stuff.
 include /usr/share/dpatch/dpatch.make
 
-#users_guide := $(shell wget http://matplotlib.sourceforge.net/index.html && grep 'users_guide_.*\.pdf' index.html | sed s/'.*\(users_guide_.*\.pdf\).*'/'\1'/; rm -f index.html)
-
 # build
 build: patch-stamp build-arch build-indep
 
 build-indep: build-indep-stamp
 build-indep-stamp:
 	dh_testdir
-	## Building documentation...
-	#mkdir -p doc
-	#which xvfb-run && sh -c "cd doc; xvfb-run epydoc -n matplotlib ../lib/matplotlib/*; cd -;" || true
-	#wget http://matplotlib.sourceforge.net/$(users_guide)
 	touch build-indep-stamp
 
 build-arch:$(PYVERS:%=build-stamp-%)
@@ -45,13 +36,11 @@
 clean-patched: patch
 	dh_testdir
 	dh_testroot
-	#python2.3 ./setup.py clean --all
 	for i in $(PYVERS); do python$(i) ./setup.py clean --all; done
 	-rm -f *-stamp*
 	-rm -rf build *.pyc *.pyo
 	find ./lib -name '*.pyc' -exec rm {} \;
 	dh_clean
-	#sh $(CURDIR)/debian/mkcopyright.sh
 
 # install
 install-arch: build-arch $(PYVERS:%=install-stamp-%)
@@ -72,21 +61,13 @@
 	dh_testdir -i
 	dh_testroot -i
 	dh_clean -k
-	dh_install -p python-matplotlib-data
-##	python ./setup.py install --no-compile --prefix $(CURDIR)/debian/$(pdata)/usr
+	dh_install -p $(pdata)
 	rm -fr $(CURDIR)/debian/$(pdata)/usr/share/matplotlib/mpl-data/fonts/ttf/Vera*.ttf
 	rm -fr $(CURDIR)/debian/$(pdata)/usr/share/matplotlib/mpl-data/fonts/ttf/*.TXT
 	rm -fr $(CURDIR)/debian/$(pdata)/usr/share/matplotlib/mpl-data/fonts/ttf/local.conf
 	rm -fr $(CURDIR)/debian/$(pdata)/usr/share/matplotlib/mpl-data/fonts/pdfcorefonts/readme.txt
 
-	# make svg images not executable:
-##	chmod 644 $(CURDIR)/debian/$(pdata)/usr/share/matplotlib/mpl-data/*.svg
 
-	# move .matplotlibrc to /etc
-##	mkdir $(CURDIR)/debian/$(pdata)/etc/
-##	mv $(CURDIR)/debian/$(pdata)/usr/share/matplotlib/mpl-data/matplotlibrc \
-##		$(CURDIR)/debian/$(pdata)/etc/matplotlibrc
-
 # binary
 binary-indep: build-indep install-indep
 	dh_testdir -i
@@ -94,7 +75,6 @@
 	dh_installchangelogs -i CHANGELOG
 	dh_installdocs -p$(pd) -i
 	dh_installexamples -p$(pd) -i examples/*
-##	dh_install -p$(pd) -i ./$(users_guide) usr/share/doc/$(pd)/pdf 
 	dh_compress -i -Xexamples -Xexamples/data -Xpdf
 	dh_fixperms -i
 	dh_installdeb -i




More information about the Python-modules-commits mailing list