gnu: myrepos: Wrap the webcheckout binary.

* gnu/packages/version-control.scm (myrepos)[arguments]: Add a custom
'wrap-webcheckout phase to wrap webcheckout with its perl libraries.
[inputs]: Add perl-encode-locale, perl-html-parser, perl-http-date,
perl-http-message, perl-libwww, perl-try-tiny, perl-uri.
This commit is contained in:
Efraim Flashner 2018-11-04 12:45:04 +02:00
parent f909e21797
commit 30012b7408
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -1741,12 +1741,32 @@ (define-public myrepos
(sha256 (sha256
(base32 "0jphw61plm8cgklja6hs639xhdvxgvjwbr6jpvjwpp7hc5gmhms5")))) (base32 "0jphw61plm8cgklja6hs639xhdvxgvjwbr6jpvjwpp7hc5gmhms5"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(inputs
`(("perl" ,perl)))
(arguments (arguments
'(#:test-target "test" '(#:test-target "test"
#:phases (modify-phases %standard-phases (delete 'configure)) #:make-flags (list (string-append "PREFIX=" %output))
#:make-flags (list (string-append "PREFIX=" %output)))) #:phases
(modify-phases %standard-phases
(delete 'configure)
(add-after 'install 'wrap-webcheckout
(lambda* (#:key inputs outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
(wrap-program (string-append out "/bin/webcheckout")
`("PERL5LIB" ":" prefix
,(map (lambda (i) (string-append (assoc-ref inputs i)
"/lib/perl5/site_perl"))
'("perl-encode-locale" "perl-http-date"
"perl-http-message" "perl-html-parser" "perl-libwww"
"perl-uri" "perl-try-tiny"))))
#t))))))
(inputs
`(("perl" ,perl)
("perl-encode-locale" ,perl-encode-locale)
("perl-html-parser" ,perl-html-parser)
("perl-http-date" ,perl-http-date)
("perl-http-message" ,perl-http-message)
("perl-libwww" ,perl-libwww)
("perl-try-tiny" ,perl-try-tiny)
("perl-uri" ,perl-uri)))
(home-page "https://myrepos.branchable.com/") (home-page "https://myrepos.branchable.com/")
(synopsis "Multiple repository management tool") (synopsis "Multiple repository management tool")
(description (description