[SCM] jack-mixer/master: Switch to DH7-pure form, allow jack-mixer to build with all supported Python versions.
alessio at users.alioth.debian.org
alessio at users.alioth.debian.org
Fri Jun 10 10:16:15 UTC 2011
The following commit has been merged in the master branch:
commit f58d684cc6021248a3f5db534b6818421c7217bb
Author: Alessio Treglia <alessio at debian.org>
Date: Fri Jun 10 12:14:07 2011 +0200
Switch to DH7-pure form, allow jack-mixer to build with all supported Python versions.
The change of the packaging style was agreed by Rosea.
diff --git a/debian/control b/debian/control
index ddae566..ed8e2ba 100644
--- a/debian/control
+++ b/debian/control
@@ -4,9 +4,8 @@ Priority: optional
Maintainer: Debian Multimedia Maintainers <pkg-multimedia-maintainers at lists.alioth.debian.org>
Uploaders: Alessio Treglia <alessio at debian.org>,
rosea grammostola <rosea.grammostola at gmail.com>
-Build-Depends: cdbs,
+Build-Depends: autotools-dev,
debhelper (>= 7),
- autotools-dev,
libjack-dev,
python-all-dev (>= 2.6.6-3~),
python-gtk2-dev,
diff --git a/debian/rules b/debian/rules
index ad4d5e5..69b757b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,21 +1,36 @@
#!/usr/bin/make -f
-include /usr/share/cdbs/1/rules/debhelper.mk
-include /usr/share/cdbs/1/class/autotools.mk
+PYVERS=$(shell pyversions -s)
-# Add here any variable or target overrides you need.
+%:
+ dh $@ --parallel --with autotools-dev,python2
-DEB_INSTALL_CHANGELOGS_ALL := NEWS
-
-binary-install/jack-mixer::
+override_dh_install:
+override_dh_auto_configure:
+override_dh_auto_build:
+override_dh_auto_install:
+ for pyver in $(PYVERS); do \
+ PYTHON="$$pyver" ./configure \
+ --prefix=/usr \
+ --includedir=\${prefix}/include \
+ --mandir=\${prefix}/share/man \
+ --infodir=\${prefix}/share/info \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --libexecdir=\${prefix}/lib/jack-mixer \
+ --disable-dependency-tracking && \
+ $(MAKE) && $(MAKE) install \
+ DESTDIR=$(CURDIR)/debian/jack-mixer && \
+ $(MAKE) clean ; \
+ done
+ dh_install
# Properly rename the application directory
# Move the executable into the application directory
# Move gconf schemas files into the proper path
# ..and finally purge empty /etc directory
- cd $(DEB_DESTDIR) && \
+ cd debian/jack-mixer && \
mv usr/share/jack_mixer usr/share/jack-mixer && \
mv usr/bin/jack_mixer.py usr/share/jack-mixer/ && \
mv etc/gconf/schemas/* usr/share/gconf/schemas/ && \
rm -rf etc && \
find -type f -name '*.la' -delete
- dh_python2 --no-guessing-versions
--
jack-mixer packaging
More information about the pkg-multimedia-commits
mailing list