File: rules

package info (click to toggle)
genshi 0.7-5
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 5,132 kB
  • ctags: 4,961
  • sloc: python: 16,522; ansic: 618; xml: 45; cs: 31; sh: 21; makefile: 6
file content (44 lines) | stat: -rwxr-xr-x 1,565 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-

export PYBUILD_NAME=genshi
#export PYBUILD_VERBOSE=1

%:
	dh $@ --with python2,python3 --buildsystem=pybuild

override_dh_clean:
	dh_clean -O--buildsystem=pybuild
	rm -f genshi/_speedups.so

## SVN snapshot (changelog entry with a version: a.b.c~svnREVISION-d)
## Get the source  from the SVN upstream repository,  then generate the
## documentation (which is  in the release tarballs but  not in the SVN
## repository and requires  python-docutils and python-epydoc packages)
## and finally create the tarball
#SVN_URL := https://svn.edgewall.org/repos/genshi/trunk
#SVN_REVISION := $(shell echo $(DEB_UPSTREAM_VERSION)|sed 's/.*~svn\([0-9]*\)/\1/')
#SVN_DEB_TARBALL_DIR := $(CURDIR)/debian/$(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION)
#SVN_DEB_TARBALL :=  $(CURDIR)/../$(DEB_SOURCE_PACKAGE)_$(DEB_UPSTREAM_VERSION).orig.tar.gz
#
## Adapted to CDBS and Genshi from:
##  http://wiki.debian.org/SandroTosi/Svn_get-orig-source
#get-orig-source:
#	-rm -rf $(SVN_DEB_TARBALL_DIR) $(SVN_DEB_TARBALL)
#
#	svn export -r $(SVN_REVISION) $(SVN_URL) $(SVN_DEB_TARBALL_DIR)
#
#	( cd $(SVN_DEB_TARBALL_DIR) && python setup.py build_doc )
#
#	# Get rid of byte-compile files created when building the
#	# documentation
#	find $(SVN_DEB_TARBALL_DIR) -name '*.pyc' -exec rm '{}' \;
#
#	GZIP='--best --no-name' tar czf $(SVN_DEB_TARBALL) -C $(SVN_DEB_TARBALL_DIR)/../ \
#		$(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION)
#
#	-rm -rf $(SVN_DEB_TARBALL_DIR)
#
#	echo "Created: $(SVN_DEB_TARBALL)"
#
#.PHONY: get-orig-source