~ubuntu-branches/ubuntu/karmic/calibre/karmic-updates

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-04-05 18:42:16 UTC
  • mfrom: (1.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20090405184216-cyb0x4edrwjcaw33
Tags: 0.5.9+dfsg-1
* New upstream release. (Closes: #525339)
* manpages-installation.patch: Encode generated manpages as UTF-8, to avoid
  UnicodeDecodeErrors when writing them out to files.
* debian/control: Demote calibre dependency of calibre-bin to Recommends:,
  which is sufficient and avoids a circular dependency. (Closes: #522059)
* debian/control: Drop build dependency help2man, current version does not
  need it any more.
* debian/control: Drop versioned build dependency on python-mechanize,
  current sid version is enough.
* debian/rules: Copy "setup.py install" command from cdbs'
  python-distutils.mk, since the current version broke this. This is a
  hackish workaround until #525436 gets fixed.
* debian/rules: Drop using $(wildcard ), use `ls`; the former does not work
  any more.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
include /usr/share/cdbs/1/class/python-distutils.mk
15
15
 
16
16
install/calibre::
 
17
        # cdbs >= 0.4.53 does not call setup.py install any more (#525436);
 
18
        # hackish workaround:
 
19
        [ -e debian/tmp/usr/bin/calibre ] || python setup.py install --root=debian/tmp $(DEB_PYTHON_INSTALL_ARGS_ALL)
 
20
 
17
21
        # remove bundled python libraries which are provided by system
18
22
        # packages
19
23
        rm -r debian/tmp/usr/lib/python*/*-packages/cherrypy
23
27
 
24
28
        # we do need the bundled cssutils' profiles.py, though
25
29
        cp src/cssutils/profiles.py src/calibre/cssutils_profiles.py
26
 
        cp src/cssutils/profiles.py $(wildcard debian/tmp/usr/lib/python*/*-packages)/calibre/cssutils_profiles.py
 
30
        D=`ls -d debian/tmp/usr/lib/python*/*-packages`; cp src/cssutils/profiles.py $$D/calibre/cssutils_profiles.py
27
31
 
28
32
        # remove hardcoded prs500 fonts, so that calibre falls back to
29
33
        # using the liberation ones in /usr/share/fonts/