From 37c46e6b36fbff884280159d19ff31b2eebc5262 Mon Sep 17 00:00:00 2001 From: David Aguilar Date: Fri, 18 Apr 2008 01:54:22 -0700 Subject: [PATCH] debian: comment the debian/rules Signed-off-by: David Aguilar --- debian/rules | 34 +++++++++++++++++++++++++--------- 1 file changed, 25 insertions(+), 9 deletions(-) diff --git a/debian/rules b/debian/rules index a10569a6..697a3fcd 100755 --- a/debian/rules +++ b/debian/rules @@ -6,26 +6,42 @@ # dh-make output file, you may use that output file without restriction. # This special exception was added by Craig Small in version 0.37 of dh-make. +# ugit installs its libraries in /usr/share/ugit/. +# A possible wrinkle are the are the .py[co] files. +# python 2.5 doesn't seem to care that they were compiled +# with 2.4, but YMMV. To solve this we could just +# configure+make+make install twice in the install target. +# env PYTHON=/usr/bin/python2.4 ./configure ... && .. && .. +# env PYTHON=/usr/bin/python2.5 ./configure ... && .. && .. +# the only change to support this entails changing ugit's wscript to +# install its libraries into: +# '/usr/lib/python'+distutils.sysconfig.version+'/site-packages' +# instead of '/usr/share/ugit' + # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 -# We run configure + make install twice: -# once for every supported Python version -configure: configure-stamp -configure-stamp: +DEBIAN=$(CURDIR)/debian +BUILD=$(DEBIAN)/bld + +configure: $(BUILD)/configure-stamp +$(BUILD)/configure-stamp: ./configure \ --prefix=/usr \ - --blddir=$(CURDIR)/debian/bld \ - --destdir=$(CURDIR)/debian/ugit + --blddir=$(BUILD) \ + --destdir=$(DEBIAN)/ugit + touch $(BUILD)/configure-stamp -build: build-stamp -build-stamp: configure-stamp +build: $(BUILD)/build-stamp +$(BUILD)/build-stamp: $(BUILD)/configure-stamp $(MAKE) + touch $(BUILD)/build-stamp clean: dh_testdir dh_testroot dh_clean + rm -f $(BUILD) install: build @@ -35,7 +51,7 @@ binary-indep: build install dh_testroot dh_clean -k dh_installdirs - $(MAKE) DESTDIR=$(CURDIR)/debian/ugit install + $(MAKE) DESTDIR=$(DEBIAN)/ugit install dh_fixperms dh_installdeb dh_gencontrol -- 2.11.4.GIT