From 1326166ebe15be3936c1a0497fd860f2fe69b5fa Mon Sep 17 00:00:00 2001 From: Brendan Tildesley Date: Tue, 16 May 2017 10:53:44 +1000 Subject: gnu: calibre: Don't create uninstaller. * gnu/packages/ebook.scm (calibre)[arguments]<#:phases>. Add 'patch-source' phase. Co-authored-by: Marius Bakke --- gnu/packages/ebook.scm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gnu/packages/ebook.scm b/gnu/packages/ebook.scm index 9db553620d..1d64e9b69f 100644 --- a/gnu/packages/ebook.scm +++ b/gnu/packages/ebook.scm @@ -142,6 +142,12 @@ #: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")) -- cgit v1.2.3