gnu: python-xdo: Hardcode the path of 'libxdo.so'.

* gnu/packages/python.scm (python-xdo)[arguments]: Add 'patch-libxdo-path'
phase.
This commit is contained in:
宋文武 2017-01-28 12:27:58 +08:00
parent 0b5e08637e
commit 736cfc10f0
No known key found for this signature in database
GPG Key ID: 26525665AE727D37
1 changed files with 13 additions and 1 deletions

View File

@ -8855,7 +8855,19 @@ normally the case.")
"1vqh1n5yy5dhnq312kwrl90fnck4v26is3lq3lxdvcn60vv19da0"))))
(build-system python-build-system)
(arguments
`(#:tests? #f)) ; no tests provided
'(#:phases
(modify-phases %standard-phases
(add-before 'install 'patch-libxdo-path
;; Hardcode the path of dynamically loaded libxdo library.
(lambda* (#:key inputs #:allow-other-keys)
(let ((libxdo (string-append
(assoc-ref inputs "xdotool")
"/lib/libxdo.so")))
(substitute* "xdo/_xdo.py"
(("find_library\\(\"xdo\"\\)")
(simple-format #f "\"~a\"" libxdo)))
#t))))
#:tests? #f)) ; no tests provided
(propagated-inputs
`(("python-six" ,python-six)))
(inputs