[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch wip-desktop updated: gnu: liblouis: Fix execution of python-exten
From: |
guix-commits |
Subject: |
branch wip-desktop updated: gnu: liblouis: Fix execution of python-extension. |
Date: |
Sun, 30 Aug 2020 04:37:44 -0400 |
This is an automated email from the git hooks/post-receive script.
dannym pushed a commit to branch wip-desktop
in repository guix.
The following commit(s) were added to refs/heads/wip-desktop by this push:
new d3f3fe3 gnu: liblouis: Fix execution of python-extension.
d3f3fe3 is described below
commit d3f3fe31c0c87a06230f1ef37c8423563acb8aed
Author: Raghav Gururajan <raghavgururajan@disroot.org>
AuthorDate: Fri Aug 28 22:52:29 2020 -0400
gnu: liblouis: Fix execution of python-extension.
* gnu/packages/language.scm (liblouis)
[arguments]<#:phases>['patch-python-extension]: New phase.
Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
---
gnu/packages/language.scm | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/gnu/packages/language.scm b/gnu/packages/language.scm
index 4959f96..7dab360 100644
--- a/gnu/packages/language.scm
+++ b/gnu/packages/language.scm
@@ -72,6 +72,17 @@
"--enable-ucs4")
#:phases
(modify-phases %standard-phases
+ ;; To fix loading of LibLouis shared library
+ (add-after 'unpack 'patch-python-extension
+ (lambda* (#:key outputs #:allow-other-keys)
+ (substitute* "python/louis/__init__.py.in"
+ (("liblouis = _loader\\[\"###LIBLOUIS_SONAME###\"\\]")
+ (string-append "liblouis = _loader"
+ "[\""
+ (assoc-ref outputs "out")
+ "/lib/liblouis.so"
+ "\"]")))
+ #t))
;; To install the sub-package "python".
(add-after 'install 'install-python-extension
(lambda* (#:key outputs #:allow-other-keys)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch wip-desktop updated: gnu: liblouis: Fix execution of python-extension.,
guix-commits <=