[Pkg-utopia-commits] r2376 - in /packages/unstable/dbus-python/debian: changelog rules
smcv at users.alioth.debian.org
smcv at users.alioth.debian.org
Wed Jul 23 16:25:16 UTC 2008
Author: smcv
Date: Wed Jul 23 16:25:16 2008
New Revision: 2376
URL: http://svn.debian.org/wsvn/pkg-utopia/?sc=1&rev=2376
Log:
Only build the documentation once, not once per version
Modified:
packages/unstable/dbus-python/debian/changelog
packages/unstable/dbus-python/debian/rules
Modified: packages/unstable/dbus-python/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-utopia/packages/unstable/dbus-python/debian/changelog?rev=2376&op=diff
==============================================================================
--- packages/unstable/dbus-python/debian/changelog (original)
+++ packages/unstable/dbus-python/debian/changelog Wed Jul 23 16:25:16 2008
@@ -3,6 +3,7 @@
* New upstream release.
* Use my debian.org address in Uploaders
* Add doc-base files for the API reference and the tutorial; closes: #473500
+ * Only build the documentation once, not once per version
-- Simon McVittie <smcv at debian.org> Wed, 23 Jul 2008 17:09:27 +0100
Modified: packages/unstable/dbus-python/debian/rules
URL: http://svn.debian.org/wsvn/pkg-utopia/packages/unstable/dbus-python/debian/rules?rev=2376&op=diff
==============================================================================
--- packages/unstable/dbus-python/debian/rules (original)
+++ packages/unstable/dbus-python/debian/rules Wed Jul 23 16:25:16 2008
@@ -27,6 +27,9 @@
--prefix=/usr \
--docdir=/usr/share/doc/deleteme
+# Don't bother building documentation if the Python version is not Debian's
+# default. We want to build the documentation exactly once, and the Debian
+# default version is as good as any.
build-%/configure-stamp:
dh_testdir
mkdir -p build-$*
@@ -36,7 +39,12 @@
export CFLAGS; \
;; \
esac; \
- cd build-$* && PYTHON=/usr/bin/python$* ../configure $(CONFIGURE_FLAGS)
+ maybe_disable_doc="--disable-html-docs --disable-api-docs"; \
+ if test $(PYDEFAULTVER) = $*; then \
+ maybe_disable_doc=""; \
+ fi; \
+ cd build-$* && PYTHON=/usr/bin/python$* ../configure \
+ $(CONFIGURE_FLAGS) $$maybe_disable_doc
touch $@
build-%/build-stamp: build-%/configure-stamp
More information about the Pkg-utopia-commits
mailing list