~ubuntu-branches/ubuntu/karmic/sugar-toolkit/karmic

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Jonas Smedegaard
  • Date: 2008-08-07 19:43:09 UTC
  • mfrom: (0.1.2 lenny) (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080807194309-03302c4lj0j0ipze
Tags: 0.82.0-1
* New upstream release.
* Unfuzz patch 2991.
* Add DEB_MAINTAINER_MODE in debian/rules (thanks to Romain Beauxis).
* Update copyright-hints.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
 
  
 
2
# -*- mode: makefile; coding: utf-8 -*-
 
3
# Copyright © 2008 Jonas Smedegaard <dr@jones.dk>
 
4
 
 
5
# NB! Local CDBS tweaks in use. More info in README.cdbs-tweaks
 
6
DEB_BUILDDIR = build
 
7
DEB_PYTHON_SYSTEM = pycentral
 
8
ifneq (,$(DEB_MAINTAINER_MODE))
 
9
  # Enable stuff not policy compliant (eg. unsuitable for build daemons)
 
10
  DEB_COPYRIGHT_CHECK_STRICT = yes
 
11
  DEB_AUTO_UPDATE_DEBIAN_CONTROL = yes
 
12
endif
 
13
include debian/cdbs/1/rules/upstream-tarball.mk
 
14
include /usr/share/cdbs/1/rules/patchsys-quilt.mk
 
15
include debian/cdbs/1/rules/copyright-check.mk
 
16
include debian/cdbs/1/class/python-autotools.mk
3
17
include /usr/share/cdbs/1/rules/debhelper.mk
4
 
include /usr/share/cdbs/1/class/autotools.mk
5
 
 
6
 
binary-install/sugar-toolkit::
7
 
        dh_pycentral
 
18
include debian/cdbs/1/rules/buildinfo.mk
 
19
 
 
20
pkg = python-sugar-toolkit
 
21
 
 
22
DEB_UPSTREAM_URL = http://dev.laptop.org/pub/sugar/sources/$(DEB_UPSTREAM_PACKAGE)
 
23
DEB_UPSTREAM_TARBALL_EXTENSION = tar.bz2
 
24
DEB_UPSTREAM_TARBALL_MD5 = 6e760d49098bbb82151a63030fb58334
 
25
 
 
26
# Drop created dir if empty to please lintian
 
27
binary-post-install/$(pkg)::
 
28
        rmdir --ignore-fail-on-non-empty --parents $(DEB_DESTDIR)/usr/share/locale
 
29
 
 
30
# Strip hardcoded rpath
 
31
binary-strip/$(pkg)::
 
32
        find $(DEB_DESTDIR)/usr/lib -type f -name '*.so' -exec chrpath -d '{}' ';'
 
33
 
 
34
# Needed by upstream build process
 
35
CDBS_BUILD_DEPENDS := $(CDBS_BUILD_DEPENDS), libglib2.0-dev, python-gtk2-dev, gettext, intltool, libxml-parser-perl
 
36
 
 
37
# Needed for our packaging
 
38
CDBS_BUILD_DEPENDS := $(CDBS_BUILD_DEPENDS), chrpath
 
39
 
 
40
# Merge duplicate build-dependencies
 
41
include debian/cdbs/1/rules/package-relations.mk