gnu: calibre: Don't create uninstaller.
authorBrendan Tildesley <brendan.tildesley@openmailbox.org>
Tue, 16 May 2017 00:53:44 +0000 (10:53 +1000)
committerMarius Bakke <mbakke@fastmail.com>
Fri, 19 May 2017 21:49:21 +0000 (23:49 +0200)
* gnu/packages/ebook.scm (calibre)[arguments]<#:phases>. Add 'patch-source' phase.

Co-authored-by: Marius Bakke <mbakke@fastmail.com>
gnu/packages/ebook.scm

index 9db5536..1d64e9b 100644 (file)
        #:use-setuptools? #f
        #:phases
        (modify-phases %standard-phases
+         (add-after 'unpack 'patch-source
+           (lambda _
+             (substitute* "src/calibre/linux.py"
+               ;; We can't use the uninstaller in Guix. Don't build it.
+               (("self\\.create_uninstaller()") ""))
+             #t))
          (add-before 'build 'configure
           (lambda* (#:key inputs #:allow-other-keys)
             (let ((podofo (assoc-ref inputs "podofo"))