diff options
author | Raghav Gururajan <raghavgururajan@disroot.org> | 2020-08-28 22:52:29 -0400 |
---|---|---|
committer | Danny Milosavljevic <dannym@scratchpost.org> | 2020-08-30 10:37:27 +0200 |
commit | d3f3fe31c0c87a06230f1ef37c8423563acb8aed (patch) | |
tree | dfa0151a7998b6f0dec629c101af6a7344b795ab /gnu | |
parent | 1a1c0904b849d13535acce6f841b48081e31a4e9 (diff) | |
download | guix-d3f3fe31c0c87a06230f1ef37c8423563acb8aed.tar.gz |
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>
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/language.scm | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gnu/packages/language.scm b/gnu/packages/language.scm index 4959f96a19..7dab360056 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) |