Browse Source

gnu: pep-json-adapter: Update to 2.1.0-rc19

* gnu/packages/pep.scm(java-pep-adapter): Update to 2.1.0-rc19
  [source]: Change to git repo.
main
Hartmut Goebel 1 year ago
parent
commit
62c50ee7fd
1 changed files with 64 additions and 67 deletions
  1. +64
    -67
      pEp/nightly.scm

+ 64
- 67
pEp/nightly.scm View File

@ -21,7 +21,6 @@
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix git-download)
#:use-module (guix hg-download)
#:use-module (guix build-system cargo)
#:use-module (guix build-system gnu)
#:use-module (guix build-system python)
@ -354,56 +353,54 @@ JAVA_HOME=~a
(define-public pep-json-adapter
(let ((version "2.1.0-rc15")
(changeset "3fbef79722a1") ;; r 1103
(checksum "1zphbz5gk9n9ba1dz9sf2fpzyw6iqb8n113qwv0911r09mxjawdm"))
(package
(name "pep-json-adapter")
(version (string-append version "-" changeset))
(source
(origin
(method hg-fetch)
(uri (hg-reference
(url "https://pep.foundation/dev/repos/pEpJSONServerAdapter")
(changeset changeset)))
(file-name (string-append name "-" version "-checkout"))
(sha256 (base32 checksum))))
(build-system gnu-build-system)
(arguments
`(#:test-target "test"
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'unpack-googletest
;; Copy the googletest sources
(lambda* (#:key inputs #:allow-other-keys)
(let ((source (assoc-ref inputs "googletest-source"))
(target "googletest"))
(mkdir-p target)
(copy-recursively source target)
#t)))
(add-before 'configure 'chdir
(lambda _
(chdir "server")
#t))
(delete 'check)
(add-after 'install 'check
(lambda* (#:key inputs outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
;; The adapter must be installed for trunning the tests
(invoke "make" "test")
;; uninstall the unittest file
(delete-file (string-append out "/bin/unittests"))
#t)))
(replace 'configure
;; pEpJSONAdapter does not use autotools and configure,
;; but a local.conf. We need to tweak the values there.
(lambda* (#:key inputs outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out"))
(googletest (string-append (getcwd) "/../googletest"))
)
(with-output-to-file "local.conf"
(lambda ()
(format #t "
(package
(name "pep-json-adapter")
(version "2.1.0-RC19")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://gitea.pep.foundation/pEp.foundation/pEpJSONServerAdapter")
(commit (string-append "Release_" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0x7xaahifm0kczm0im02ihfjjgzrhxlwbg6ndl044jd4s5riawfd"))))
(build-system gnu-build-system)
(arguments
`(#:test-target "test"
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'unpack-googletest
;; Copy the googletest sources
(lambda* (#:key inputs #:allow-other-keys)
(let ((source (assoc-ref inputs "googletest-source"))
(target "googletest"))
(mkdir-p target)
(copy-recursively source target)
#t)))
(add-before 'configure 'chdir
(lambda _
(chdir "server")
#t))
(delete 'check)
(add-after 'install 'check
(lambda* (#:key inputs outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
;; The adapter must be installed for trunning the tests
(invoke "make" "test")
;; uninstall the unittest file
(delete-file (string-append out "/bin/unittests"))
#t)))
(replace 'configure
;; pEpJSONAdapter does not use autotools and configure,
;; but a local.conf. We need to tweak the values there.
(lambda* (#:key inputs outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out"))
(googletest (string-append (getcwd) "/../googletest"))
)
(with-output-to-file "local.conf"
(lambda ()
(format #t "
PREFIX=~a
HTML_DIRECTORY=$(PREFIX)/share/pEp/json-adapter/html
GTEST_DIR=~a/googletest
@ -415,20 +412,20 @@ ETPAN_LIB=
EVENT_INC=
EVENT_LIB=
"
out googletest)))
#t))))))
(native-inputs
`(("pkg-config" ,pkg-config)))
(inputs
`(("boost" ,boost)
("libpepadapter" ,libpepadapter)
("googletest-source" ,(package-source googletest))
("libetpan" ,fdik-libetpan)
("libevent" ,libevent)
("pep-engine" ,pep-engine)
("util-linux" ,util-linux "lib"))) ;; uuid.h
(home-page "https://pep.foundation/")
(synopsis "p≡p JSON adapter")
(description "The pp JSON adapter is an adaptor interface to the pp
out googletest)))
#t))))))
(native-inputs
`(("pkg-config" ,pkg-config)))
(inputs
`(("boost" ,boost)
("libpepadapter" ,libpepadapter)
("googletest-source" ,(package-source googletest))
("libetpan" ,fdik-libetpan)
("libevent" ,libevent)
("pep-engine" ,pep-engine)
("util-linux" ,util-linux "lib"))) ;; uuid.h
(home-page "https://pep.foundation/")
(synopsis "p≡p JSON adapter")
(description "The pp JSON adapter is an adaptor interface to the pp
(pretty Easy privacy) Engine.")
(license license:gpl3))))
(license license:gpl3)))

Loading…
Cancel
Save