#!/usr/bin/make -f # -*- makefile -*- DEB_PYTHON_SYSTEM=pysupport # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 PYDEF=$(shell pyversions -d) PYVERS=$(shell pyversions -r) build: build-stamp build-stamp: dh_testdir $(MAKE) -f /usr/share/quilt/quilt.make patch set -e; \ for python in $(PYVERS); do \ python=$$(echo $$python | sed "s/$(PYDEF)/python/"); \ $$python setup.py build; \ done msgfmt exe/locale/qcv/exe_qcv.po -o exe/locale/qcv/LC_MESSAGES/exe.mo touch build-stamp debian/PKG-INFO: ${SETUP_PY} @echo generating $@; \ python -c 'import sys; from distutils.core import run_setup; \ run_setup(sys.argv[1]).metadata.write_pkg_info("debian")' $< clean: dh_testdir $(MAKE) -f /usr/share/quilt/quilt.make unpatch dh_testroot rm -f debian/PKG-INFO for python in $(PYVERS); do \ python=$$(echo $$python | sed "s/$(PYDEF)/python/"); \ $$python setup.py clean; \ done find . -name "*.pyc" -exec rm {} \; -rm -rf build build-stamp *.pyc dist rm -f exe/locale/qcv/LC_MESSAGES/exe.mo dh_clean install: build dh_testdir dh_testroot dh_prep dh_installdirs for python in $(PYVERS); do \ python=$$(echo $$python | sed "s/$(PYDEF)/python/"); \ $$python setup.py install --root=debian/python-exe --install-layout=deb --single-version-externally-managed; \ done rm debian/python-exe/usr/share/exe/COPYING rm debian/python-exe/usr/share/exe/scripts/tinymce/jscripts/tiny_mce/license.txt rm debian/python-exe/usr/share/exe/images/maths/binary\ oprations/Thumbs.db rm debian/python-exe/usr/share/exe/images/maths/relations/Thumbs.db chmod +x debian/python-exe/usr/share/exe/twisted/web/test/test_distrib.py #chmod +x debian/python-exe/usr/share/python-support/python-exe/exe/application.py #chmod +x debian/python-exe/usr/share/python-support/python-exe/exe/engine/feedparser.py #chmod +x debian/python-exe/usr/share/python-support/python-exe/exe/engine/version.py #chmod +x debian/python-exe/usr/share/python-support/python-exe/exe/webui/browser.py #chmod +x debian/python-exe/usr/share/python-support/python-exe/exe/webui/webserver.py chmod -x debian/python-exe/usr/share/exe/docs/splash.xulTemplate chmod -x debian/python-exe/usr/share/exe/images/mp3player.swf chmod -x debian/python-exe/usr/share/exe/images/info.gif chmod -x debian/python-exe/usr/share/exe/templates/mimetex-darwin.cgi chmod -x debian/python-exe/usr/share/exe/nevow/Canvas.swf # removing void locales dirs rm -Rf debian/python-exe/usr/share/exe/locale/{tr,hr,le,qa,da,fi,hr,ig,le,lo,qu,ru,tg,tr,yo}/LC_MESSAGES rm -Rf debian/python-exe/usr/share/exe/locale/{tr,hr,le,qa,da,fi,hr,ig,le,lo,qu,ru,tg,tr,yo}/ rm -Rf debian/python-exe/usr/share/exe/locale/tr/ rm -Rf debian/python-exe/usr/share/exe/locale/hr/ rm -Rf debian/python-exe/usr/share/exe/locale/le/ rm -Rf debian/python-exe/usr/share/exe/locale/qu/ rm -Rf debian/python-exe/usr/share/exe/locale/da/ rm -Rf debian/python-exe/usr/share/exe/locale/fi/ rm -Rf debian/python-exe/usr/share/exe/locale/hr/ rm -Rf debian/python-exe/usr/share/exe/locale/ig/ rm -Rf debian/python-exe/usr/share/exe/locale/le/ rm -Rf debian/python-exe/usr/share/exe/locale/lo/ rm -Rf debian/python-exe/usr/share/exe/locale/qu/ rm -Rf debian/python-exe/usr/share/exe/locale/ru/ rm -Rf debian/python-exe/usr/share/exe/locale/tg/ rm -Rf debian/python-exe/usr/share/exe/locale/tr/ rm -Rf debian/python-exe/usr/share/exe/locale/yo/ find debian/python-exe/usr/share/exe/locale/ -name "*.po" -exec rm {} \; mv debian/run-exe.sh debian/python-exe/usr/bin/run-exe binary-indep: build install dh_lintian binary-arch: build install dh_testdir dh_testroot dh_pysupport dh_installdocs dh_installchangelogs dh_installman #dh_python dh_link dh_strip dh_compress dh_fixperms #dh_shlibdeps --exclude=_c_urlarg.so --exclude=cBanana.so dh_installdeb dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install configure .PHONY: dummy-package real-packages