gnu: lcsync: Update to 0.2.1.
* gnu/packages/networking.scm (lcsync): Update to 0.2.1. [arguments]: #:configure-flags Pass --prefix. Drop 'remove-network-tests and 'remove-immintrin.h phase. Add 'use-prefix-from-configure-in-doc-makefile phase. [inputs]: Add lcrq. [native-inputs]: Remove simde. Signed-off-by: Christopher Baines <mail@cbaines.net>
This commit is contained in:
parent
3e354ea9bd
commit
5f672aaa0c
1 changed files with 14 additions and 26 deletions
|
@ -289,7 +289,7 @@ the RFC.")
|
||||||
(define-public lcsync
|
(define-public lcsync
|
||||||
(package
|
(package
|
||||||
(name "lcsync")
|
(name "lcsync")
|
||||||
(version "0.0.1")
|
(version "0.2.1")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
(uri (git-reference
|
(uri (git-reference
|
||||||
|
@ -298,45 +298,33 @@ the RFC.")
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"0s038b4xg9nlzhrganzjyfvc6n6cgd6kilnpik4axp62j2n5q11q"))))
|
"0bsd3dkir2i647nmrmyb7skbv16v0f6f3gfwkpxz8g42978dlms5"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:parallel-tests? #f
|
`(#:parallel-tests? #f
|
||||||
|
#:configure-flags
|
||||||
|
(list
|
||||||
|
(string-append "--prefix="
|
||||||
|
(assoc-ref %outputs "out")))
|
||||||
#:make-flags (let ((target ,(%current-target-system)))
|
#:make-flags (let ((target ,(%current-target-system)))
|
||||||
(list ,(string-append "CC="
|
(list ,(string-append "CC="
|
||||||
(cc-for-target))
|
(cc-for-target))))
|
||||||
;; avoid running setcap in the install process
|
|
||||||
"SETCAP_PROGRAM=true"
|
|
||||||
(string-append "prefix="
|
|
||||||
(assoc-ref %outputs "out"))))
|
|
||||||
#:test-target "test"
|
#:test-target "test"
|
||||||
#:phases (modify-phases %standard-phases
|
#:phases (modify-phases %standard-phases
|
||||||
(delete 'configure) ;no configure script
|
(add-after 'unpack 'use-prefix-from-configure-in-doc-makefile
|
||||||
(add-before 'check 'remove-network-tests
|
;; Use prefix from configure. Fixed upstream:
|
||||||
|
;; https://codeberg.org/librecast/lcsync/commit/4ba00f6
|
||||||
|
;; XXX: Remove for 0.2.2+
|
||||||
(lambda _
|
(lambda _
|
||||||
;; these tests require networking
|
(substitute* "doc/Makefile.in"
|
||||||
(delete-file "./test/0000-0027.c")
|
(("PREFIX .= /usr/local") "PREFIX ?= @prefix@"))))
|
||||||
(delete-file "./test/0000-0049.c")
|
|
||||||
(delete-file "./test/0000-0074.c")))
|
|
||||||
(add-after 'unpack 'remove-immintrin.h
|
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
|
||||||
(substitute* "Makefile"
|
|
||||||
(("CFLAGS :=")
|
|
||||||
(string-append "CFLAGS := -I" (search-input-directory
|
|
||||||
inputs "include/simde"))))
|
|
||||||
(substitute* (find-files "src")
|
|
||||||
((".*immintrin\\.h.*")
|
|
||||||
(string-append "#include <simde-features.h>\n"
|
|
||||||
"#include <x86/ssse3.h>\n"))
|
|
||||||
(("__m128i") "simde__m128i"))))
|
|
||||||
(add-before 'build 'add-library-paths
|
(add-before 'build 'add-library-paths
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
(let* ((librecast (assoc-ref inputs "librecast")))
|
(let* ((librecast (assoc-ref inputs "librecast")))
|
||||||
(substitute* (list "./src/Makefile" "./test/Makefile")
|
(substitute* (list "./src/Makefile" "./test/Makefile")
|
||||||
(("-llibrecast")
|
(("-llibrecast")
|
||||||
(string-append "-L" librecast "/lib -llibrecast")))))))))
|
(string-append "-L" librecast "/lib -llibrecast")))))))))
|
||||||
(inputs (list librecast libsodium))
|
(inputs (list lcrq librecast libsodium))
|
||||||
(native-inputs (list simde))
|
|
||||||
(home-page "https://librecast.net/lcsync.html")
|
(home-page "https://librecast.net/lcsync.html")
|
||||||
(synopsis "Librecast file and data syncing tool")
|
(synopsis "Librecast file and data syncing tool")
|
||||||
(description
|
(description
|
||||||
|
|
Reference in a new issue