mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-11 21:59:08 -05:00
gnu: i2pd: Update to 2.50.0.
* gnu/packages/i2p.scm (i2pd): Update to 2.50.0. [native-inputs]: Add pkg-config, check. [arguments]: Use G-Expressions. <#:configure-flags>: Drop obsolete and defaulted flags. Enable testing with cmake. <#:phases>: Drop obsolete 'check replacement. Signed-off-by: Guillaume Le Vaillant <glv@posteo.net> Change-Id: If276d475587fa9431fbb9b55b051e71a2f5d39e3
This commit is contained in:
parent
51c0490267
commit
9dbb618a80
1 changed files with 12 additions and 32 deletions
|
@ -21,9 +21,12 @@
|
||||||
|
|
||||||
(define-module (gnu packages i2p)
|
(define-module (gnu packages i2p)
|
||||||
#:use-module (gnu packages boost)
|
#:use-module (gnu packages boost)
|
||||||
|
#:use-module (gnu packages check)
|
||||||
#:use-module (gnu packages compression)
|
#:use-module (gnu packages compression)
|
||||||
|
#:use-module (gnu packages pkg-config)
|
||||||
#:use-module (gnu packages tls)
|
#:use-module (gnu packages tls)
|
||||||
#:use-module (gnu packages upnp)
|
#:use-module (gnu packages upnp)
|
||||||
|
#:use-module (guix gexp)
|
||||||
#:use-module (guix packages)
|
#:use-module (guix packages)
|
||||||
#:use-module (guix git-download)
|
#:use-module (guix git-download)
|
||||||
#:use-module (guix build-system cmake)
|
#:use-module (guix build-system cmake)
|
||||||
|
@ -32,7 +35,7 @@ (define-module (gnu packages i2p)
|
||||||
(define-public i2pd
|
(define-public i2pd
|
||||||
(package
|
(package
|
||||||
(name "i2pd")
|
(name "i2pd")
|
||||||
(version "2.44.0")
|
(version "2.50.0")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
|
@ -41,41 +44,18 @@ (define-public i2pd
|
||||||
(commit version)))
|
(commit version)))
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "0fwaalfxqdahgvx5rfkvdmf6gl10w328a18ddhyn5kvpmp9x7fgl"))))
|
(base32 "1vr251mgffawi3rj51dzlnv3fs1ssz6gl17qbsyhfr5fcd7s0hc5"))))
|
||||||
(build-system cmake-build-system)
|
(build-system cmake-build-system)
|
||||||
|
(native-inputs (list check pkg-config))
|
||||||
(inputs
|
(inputs
|
||||||
(list boost miniupnpc openssl zlib))
|
(list boost miniupnpc openssl zlib))
|
||||||
(arguments
|
(arguments
|
||||||
'(#:configure-flags
|
(list
|
||||||
(let ((source (assoc-ref %build-inputs "source")))
|
#:configure-flags
|
||||||
(list (string-append "-S" source "/build")
|
#~(list (string-append "-S" #$source "/build")
|
||||||
"-DWITH_PCH=OFF"
|
"-DWITH_UPNP=ON"
|
||||||
"-DWITH_STATIC=OFF"
|
"-DBUILD_SHARED_LIBS=ON"
|
||||||
"-DWITH_UPNP=ON"
|
"-DBUILD_TESTING=ON")))
|
||||||
"-DWITH_LIBRARY=ON"
|
|
||||||
"-DBUILD_SHARED_LIBS=ON"
|
|
||||||
"-DWITH_BINARY=ON"))
|
|
||||||
#:phases
|
|
||||||
(modify-phases %standard-phases
|
|
||||||
(replace 'check
|
|
||||||
(lambda* (#:key
|
|
||||||
tests?
|
|
||||||
(make-flags '())
|
|
||||||
(parallel-tests? #t)
|
|
||||||
#:allow-other-keys)
|
|
||||||
(let ((source (assoc-ref %build-inputs "source")))
|
|
||||||
(when tests?
|
|
||||||
(copy-recursively (string-append source "/tests")
|
|
||||||
"./tests")
|
|
||||||
(with-directory-excursion "tests"
|
|
||||||
(substitute* "Makefile"
|
|
||||||
(("../libi2pd") (string-append source "/libi2pd")))
|
|
||||||
(apply invoke "make" "all"
|
|
||||||
`(,@(if parallel-tests?
|
|
||||||
`("-j" ,(number->string
|
|
||||||
(parallel-job-count)))
|
|
||||||
'())
|
|
||||||
,@make-flags))))))))))
|
|
||||||
(home-page "https://i2pd.website/")
|
(home-page "https://i2pd.website/")
|
||||||
(synopsis "Router for an end-to-end encrypted and anonymous internet")
|
(synopsis "Router for an end-to-end encrypted and anonymous internet")
|
||||||
(description "i2pd is a client for the anonymous I2P network, upon which
|
(description "i2pd is a client for the anonymous I2P network, upon which
|
||||||
|
|
Loading…
Reference in a new issue