Archived
1
0
Fork 0

gnu: python-llvmlite: Repair indentation.

* gnu/packages/llvm.scm (python-llvmlite): Repair automatically reformatted
code.
This commit is contained in:
Ricardo Wurmus 2021-12-31 13:44:46 +01:00
parent b7078d5d49
commit 13c4a85cee
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -1403,110 +1403,63 @@ with that of libgomp, the GNU Offloading and Multi Processing Library.")
(setenv "LDFLAGS" (string-append "-Wl,-rpath=" (setenv "LDFLAGS" (string-append "-Wl,-rpath="
llvm "/lib")))))))) llvm "/lib"))))))))
(inputs (inputs
(list (let* ((patches-commit (list
"a4a19e8af2c5ef9b9901f20193e4be070726da97") ( (let* ((patches-commit
patch-uri ( "a4a19e8af2c5ef9b9901f20193e4be070726da97")
lambda ( (patch-uri (lambda (name)
name) (string-append
(
string-append
"https://raw.githubusercontent.com/numba/" "https://raw.githubusercontent.com/numba/"
"llvmlite/" "llvmlite/"
patches-commit patches-commit
"/conda-recipes/" "/conda-recipes/"
name))) name)))
( (patch-origin (lambda (name hash)
patch-origin ( (origin (method url-fetch)
lambda ( (uri (patch-uri name))
name (sha256 (base32 hash)))))
hash) (arch-independent-patches
( (list (patch-origin
origin (
method
url-fetch)
(
uri (
patch-uri
name))
(
sha256 (
base32
hash)))))
(
arch-independent-patches (
list (
patch-origin
"partial-testing.patch" "partial-testing.patch"
"0g3nkci87knvmn7piqhmh4bcc65ff8r921cvfcibyiv65klv3syg") "0g3nkci87knvmn7piqhmh4bcc65ff8r921cvfcibyiv65klv3syg")
( (patch-origin
patch-origin
"0001-Revert-Limit-size-of-non-GlobalValue-name.patch" "0001-Revert-Limit-size-of-non-GlobalValue-name.patch"
"0n4k7za0smx6qwdipsh6x5lm7bfvzzb3p9r8q1zq1dqi4na21295")))) "0n4k7za0smx6qwdipsh6x5lm7bfvzzb3p9r8q1zq1dqi4na21295"))))
(package (inherit llvm-11) (package
(source (origin (inherit (package-source (inherit llvm-11)
llvm-11)) (source
(patches (if (string=? (origin
"aarch64-linux" (inherit (package-source llvm-11))
( (patches (if (string=? "aarch64-linux" (%current-system))
%current-system))
`(,(patch-origin `(,(patch-origin
"intel-D47188-svml-VF_LLVM9.patch" "intel-D47188-svml-VF_LLVM9.patch"
"0gnnlfxr8p1a7ls93hzcpfqpa8r0icypfwj8l9cmkslq5sz8p64r") ( "0gnnlfxr8p1a7ls93hzcpfqpa8r0icypfwj8l9cmkslq5sz8p64r")
unquote-splicing ,@arch-independent-patches
arch-independent-patches) ,@(origin-patches (package-source llvm-11)))
(
unquote-splicing (
origin-patches (
package-source
llvm-11))))
`(,(patch-origin `(,(patch-origin
"intel-D47188-svml-VF.patch" "intel-D47188-svml-VF.patch"
"0gnnlfxr8p1a7ls93hzcpfqpa8r0icypfwj8l9cmkslq5sz8p64r") ,( "0gnnlfxr8p1a7ls93hzcpfqpa8r0icypfwj8l9cmkslq5sz8p64r")
patch-origin ,(patch-origin
"expect-fastmath-entrypoints-in-add-TLI-mappings.ll.patch" "expect-fastmath-entrypoints-in-add-TLI-mappings.ll.patch"
"0jxhjkkwwi1cy898l2n57l73ckpw0v73lqnrifp7r1mwpsh624nv") "0jxhjkkwwi1cy898l2n57l73ckpw0v73lqnrifp7r1mwpsh624nv")
( ,@arch-independent-patches
unquote-splicing ,@(origin-patches (package-source llvm-11)))))))
arch-independent-patches) (arguments
( (substitute-keyword-arguments (package-arguments llvm-11)
unquote-splicing ( ((#:phases phases)
origin-patches ( `(modify-phases ,phases
package-source (add-after 'unpack 'patch-round-two
llvm-11))))))))
(arguments (substitute-keyword-arguments (
package-arguments
llvm-11)
((#:phases
phases) `(
modify-phases ,
phases
(
add-after '
unpack
'
patch-round-two
;; We have to do the patching in two rounds because we can't ;; We have to do the patching in two rounds because we can't
;; pass '-p1' and '-p2' in the source field. ;; pass '-p1' and '-p2' in the source field.
( (lambda* (#:key inputs #:allow-other-keys)
lambda* ( (invoke "patch"
#:key (assoc-ref inputs "llvm_11_consecutive_registers")
inputs
#:allow-other-keys)
(
invoke
"patch"
(
assoc-ref
inputs
"llvm_11_consecutive_registers")
"-p2"))))))) "-p2")))))))
(native-inputs `(("llvm_11_consecutive_registers" ,( (native-inputs
patch-origin `(("llvm_11_consecutive_registers"
,(patch-origin
"llvm_11_consecutive_registers.patch" "llvm_11_consecutive_registers.patch"
"04msd34dnpr3lpss0pam3mckwnvzrab266z6sml1hya0akv0m3f3")) ( "04msd34dnpr3lpss0pam3mckwnvzrab266z6sml1hya0akv0m3f3"))
unquote-splicing ( ,@(package-native-inputs llvm-11)))))))
package-native-inputs
llvm-11))))))))
(home-page "https://llvmlite.pydata.org") (home-page "https://llvmlite.pydata.org")
(synopsis "Wrapper around basic LLVM functionality") (synopsis "Wrapper around basic LLVM functionality")
(description (description