# Description: Do not compress manpages with bz2 (debhelper compresses them with gzip), and do not put them into section "1calibre" but "1". Index: calibre-0.7.32+dfsg/src/calibre/linux.py =================================================================== --- calibre-0.7.32+dfsg.orig/src/calibre/linux.py 2010-12-03 19:22:22.000000000 +0100 +++ calibre-0.7.32+dfsg/src/calibre/linux.py 2010-12-05 12:32:55.786806001 +0100 @@ -297,7 +297,7 @@ def install_man_pages(self): # {{{ try: from calibre.utils.help2man import create_man_page - if isfreebsd: + if False and isfreebsd: manpath = os.path.join(self.opts.staging_root, 'man/man1') else: manpath = os.path.join(self.opts.staging_sharedir, 'man/man1') @@ -313,7 +313,7 @@ continue parser = parser() raw = create_man_page(prog, parser) - if isfreebsd: + if True or isfreebsd: manfile = os.path.join(manpath, prog+'.1') else: manfile = os.path.join(manpath, prog+'.1'+__appname__+'.bz2') Index: calibre-0.7.32+dfsg/src/calibre/utils/help2man.py =================================================================== --- calibre-0.7.32+dfsg.orig/src/calibre/utils/help2man.py 2010-12-03 19:22:22.000000000 +0100 +++ calibre-0.7.32+dfsg/src/calibre/utils/help2man.py 2010-12-05 12:32:46.946806000 +0100 @@ -58,7 +58,7 @@ lines = [x if isinstance(x, unicode) else unicode(x, 'utf-8', 'replace') for x in lines] - if not isfreebsd: + if False and not isfreebsd: return bz2.compress((u'\n'.join(lines)).encode('utf-8')) else: return (u'\n'.join(lines)).encode('utf-8')