[Python-modules-commits] r598 - in /packages/turbogears/branches/0.9/debian: changelog rules

kov at users.alioth.debian.org kov at users.alioth.debian.org
Sat May 13 21:54:03 UTC 2006


Author: kov
Date: Sat May 13 21:54:00 2006
New Revision: 598

URL: http://svn.debian.org/wsvn/python-modules/?sc=1&rev=598
Log:
  - do not use python-distutils cdbs class, run setup by hand
    so creating the three packages will work

Modified:
    packages/turbogears/branches/0.9/debian/changelog
    packages/turbogears/branches/0.9/debian/rules

Modified: packages/turbogears/branches/0.9/debian/changelog
URL: http://svn.debian.org/wsvn/python-modules/packages/turbogears/branches/0.9/debian/changelog?rev=598&op=diff
==============================================================================
--- packages/turbogears/branches/0.9/debian/changelog (original)
+++ packages/turbogears/branches/0.9/debian/changelog Sat May 13 21:54:00 2006
@@ -21,6 +21,9 @@
   * debian/copyright:
   - updated to mention the copyright information for the json
     plugin
+  * debian/rules:
+  - do not use python-distutils cdbs class, run setup by hand
+    so creating the three packages will work
 
  -- Gustavo Noronha Silva <kov at debian.org>  Sat, 13 May 2006 17:17:45 -0300
 

Modified: packages/turbogears/branches/0.9/debian/rules
URL: http://svn.debian.org/wsvn/python-modules/packages/turbogears/branches/0.9/debian/rules?rev=598&op=diff
==============================================================================
--- packages/turbogears/branches/0.9/debian/rules (original)
+++ packages/turbogears/branches/0.9/debian/rules Sat May 13 21:54:00 2006
@@ -1,19 +1,38 @@
 #!/usr/bin/make -f
 
 include /usr/share/cdbs/1/rules/buildcore.mk
-# python-distutils before debhelper to avoid it calling dh_python
-# itself
-include /usr/share/cdbs/1/class/python-distutils.mk
 include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/cdbs/1/rules/simple-patchsys.mk
 
-DEB_PYTHON_INSTALL_ARGS_ALL = --single-version-externally-managed --no-compile -O0 --install-lib usr/share/python-support/turbogears
+DEB_PYTHON_INSTALL_ARGS_ALL = --single-version-externally-managed --no-compile -O0
+DEB_PYTHON_INSTALL_ARGS_python-turbogears = --install-lib usr/share/python-support/python-turbogears
+DEB_PYTHON_INSTALL_ARGS_python-turbokid = --install-lib usr/share/python-support/python-turbokid
+DEB_PYTHON_INSTALL_ARGS_python-turbojson = --install-lib usr/share/python-support/python-turbojson
 
-common-binary-post-install-indep::
+DEB_PYTHON_REAL_LIB_PACKAGES :=
+DEB_PYTHON_SIMPLE_PACKAGES := python-turbogears
+
+clean::
+	# hack (CDBS bug -- see #300149)
+	-rm -rf build build-kid build-json
+	-find . -name '*.py[co]' -exec rm {} \;
+
+build/python-turbogears::
+	python setup.py build --build-base="$(CURDIR)/build"
+install/python-turbogears::
+	python setup.py install --root=debian/python-turbogears $(DEB_PYTHON_INSTALL_ARGS_ALL) $(DEB_PYTHON_INSTALL_ARGS_python-turbogears)
+
+build/python-turbokid::
+	cd plugins/kid && python setup.py build --build-base="$(CURDIR)/build-kid"
+install/python-turbokid::
+	cd plugins/kid && python setup.py install --root=../../debian/python-turbokid $(DEB_PYTHON_INSTALL_ARGS_ALL) $(DEB_PYTHON_INSTALL_ARGS_python-turbokid)
+
+build/python-turbojson::
+	cd plugins/json && python setup.py build --build-base="$(CURDIR)/build-json"
+install/python-turbojson::
+	cd plugins/json && python setup.py install --root=../../debian/python-turbojson $(DEB_PYTHON_INSTALL_ARGS_ALL) $(DEB_PYTHON_INSTALL_ARGS_python-turbojson)
+
+binary-post-install/python-turbogears::
 	install -D -o root -g root -m 644 debian/python-support.version \
 		debian/python-turbogears/usr/share/python-support/turbogears/.version
 	sed -i 's,/usr/bin/python,/usr/bin/python2.4,g' debian/python-turbogears/usr/bin/tg-admin
-
-clean::
-	# hack (CDBS bug -- see #300149)
-	-rm -rf build




More information about the Python-modules-commits mailing list