debian swirl logo

Back to the packages list simpleparse

#!/usr/bin/make -f

DEB_PYTHON_SYSTEM= pysupport

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

binary-predeb/python-simpleparse-doc::
		chmod 0644 $(CURDIR)/debian/python-simpleparse-doc/usr/share/doc/python-simpleparse-doc/examples/*

install/python-simpleparse::
		for PY in $(shell pyversions -r); do \
			mkdir -p debian/tmp/usr/lib/$$PY ; \
			ln -s ../../../../../$$(echo $$(echo build/lib.*-$$(echo $$PY | sed 's/python//'))) \
					debian/tmp/usr/lib/$$PY/site-packages ; \
		done
ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
		ln -s ../test_printers_garbage.py tests/test_printers_garbage.py
		for PY in $(shell pyversions -r); do \
				$$PY debian/runtests.py debian/tmp || exit 1 ; \
		done
		rm -f tests/test_printers_garbage.py
endif

clean::
		rm -f tests/test_printers_garbage.py
		rm -rf build

Builds:

python-simpleparse
a simple parser generator for python
python-simpleparse-doc
documentation for simpleparse, a simple parser generator for python
python-simpleparse-mxtexttools
a simple parser generator for python - architecture dependent files