debian swirl logo

Back to the packages list pisa

#!/usr/bin/make -f

DEB_PYTHON_SYSTEM := pysupport

include /usr/share/cdbs/1/rules/dpatch.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/python-distutils.mk

DEB_INSTALL_DOCS_python-pisa = CHANGELOG.txt README.txt doc/*
DEB_INSTALL_EXAMPLES_python-pisa = demo/*
DEB_INSTALL_MANPAGES_python-pisa = xhtml2pdf.1
DEB_PYTHON_INSTALL_ARGS_ALL += --single-version-externally-managed
DEB_COMPRESS_EXCLUDE := .py

PYVER= $(shell pyversions -vd)
DB2MAN= http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
XP= xsltproc --nonet --novalid

clean::
		-rm -rf build/
		-rm -f $(DEB_INSTALL_MANPAGES_python-pisa)

common-build-indep:: $(DEB_INSTALL_MANPAGES_python-pisa)

# /usr/bin/xhtml2pdf and /usr/bin/pisa are the same thing,
# let's only install the one, that is documented
common-binary-post-install-indep::
		rm $(DEB_DESTDIR)/usr/bin/pisa
		rm $(DEB_DESTDIR)/usr/share/doc/python-pisa/examples/djangoproject/._views.py

%.1: debian/%.dbk
		$(XP) $(DB2MAN) $<

Builds:

python-pisa
pdf generator using html and css (python module)