gnu: arcanist: Update to 0.0.0-2.ceb082e.
* gnu/packages/phabricator.scm (arcanist): Update to 0.0.0-2.ceb082e. [inputs]: Remove libphutil. [arguments]: Adjust custom 'install phase for removed input. Wrap binary with php. [license]: Add license of vendored library.
This commit is contained in:
parent
44f93ed6ed
commit
c4c625b386
@ -1,5 +1,6 @@
|
|||||||
;;; GNU Guix --- Functional package management for GNU
|
;;; GNU Guix --- Functional package management for GNU
|
||||||
;;; Copyright © 2018 Robin Templeton <robin@igalia.com>
|
;;; Copyright © 2018 Robin Templeton <robin@igalia.com>
|
||||||
|
;;; Copyright © 2020 Efraim Flashner <efraim@flashner.co.il>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
@ -64,8 +65,8 @@ PHP.")
|
|||||||
(license (list license:asl2.0 license:expat)))))
|
(license (list license:asl2.0 license:expat)))))
|
||||||
|
|
||||||
(define-public arcanist
|
(define-public arcanist
|
||||||
(let ((commit "45a8d22c74a62624e69f5cd6ce901c9ab2658904")
|
(let ((commit "ceb082ef6b2919d76a90d4a53ca84f5b1e0c2c06")
|
||||||
(revision "1"))
|
(revision "2"))
|
||||||
(package
|
(package
|
||||||
(name "arcanist")
|
(name "arcanist")
|
||||||
(version (git-version "0.0.0" revision commit))
|
(version (git-version "0.0.0" revision commit))
|
||||||
@ -77,8 +78,9 @@ PHP.")
|
|||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"13vswhqy9sap6841y93j4mj71dl27vhcivcn3rzyi0cchkhg2ac9"))))
|
"16590nywh3cpm2yq4igw3nfa8g84kwza215mrnqr2k6b2cqzjak3"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
|
;; TODO: Unbundle jsonlint
|
||||||
(arguments
|
(arguments
|
||||||
'(#:tests? #f
|
'(#:tests? #f
|
||||||
#:phases
|
#:phases
|
||||||
@ -86,22 +88,20 @@ PHP.")
|
|||||||
(delete 'configure)
|
(delete 'configure)
|
||||||
(delete 'build)
|
(delete 'build)
|
||||||
(replace 'install
|
(replace 'install
|
||||||
(lambda _
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
(let ((bin (string-append %output "/bin"))
|
(let* ((out (assoc-ref outputs "out"))
|
||||||
(lib (string-append %output "/lib/arcanist")))
|
(bin (string-append out "/bin"))
|
||||||
|
(lib (string-append out "/lib/arcanist")))
|
||||||
(mkdir-p lib)
|
(mkdir-p lib)
|
||||||
(copy-recursively "." lib)
|
(copy-recursively "." lib)
|
||||||
(mkdir-p bin)
|
(mkdir-p bin)
|
||||||
(symlink (string-append lib "/bin/arc")
|
(symlink (string-append lib "/bin/arc")
|
||||||
(string-append bin "/arc"))
|
(string-append bin "/arc"))
|
||||||
(wrap-program (string-append bin "/arc")
|
(wrap-program (string-append bin "/arc")
|
||||||
`("ARC_PHUTIL_PATH" =
|
|
||||||
(,(string-append (assoc-ref %build-inputs "libphutil")
|
|
||||||
"/lib/libphutil")))
|
|
||||||
`("PATH" ":" prefix
|
`("PATH" ":" prefix
|
||||||
(,@(map (lambda (i)
|
(,@(map (lambda (i)
|
||||||
(string-append (assoc-ref %build-inputs i) "/bin"))
|
(string-append (assoc-ref %build-inputs i) "/bin"))
|
||||||
'("git" "mercurial" "subversion"))))))
|
'("php" "git" "mercurial" "subversion"))))))
|
||||||
#t))
|
#t))
|
||||||
(add-before 'reset-gzip-timestamps 'make-compressed-files-writable
|
(add-before 'reset-gzip-timestamps 'make-compressed-files-writable
|
||||||
(lambda _
|
(lambda _
|
||||||
@ -110,7 +110,6 @@ PHP.")
|
|||||||
#t)))))
|
#t)))))
|
||||||
(inputs
|
(inputs
|
||||||
`(("php" ,php)
|
`(("php" ,php)
|
||||||
("libphutil" ,libphutil)
|
|
||||||
("git" ,git)
|
("git" ,git)
|
||||||
("mercurial" ,mercurial)
|
("mercurial" ,mercurial)
|
||||||
("subversion" ,subversion)))
|
("subversion" ,subversion)))
|
||||||
@ -121,4 +120,5 @@ PHP.")
|
|||||||
development service. It allows you to interact with Phabricator installs to
|
development service. It allows you to interact with Phabricator installs to
|
||||||
send code for review, download patches, transfer files, view status, make API
|
send code for review, download patches, transfer files, view status, make API
|
||||||
calls, and various other things.")
|
calls, and various other things.")
|
||||||
(license license:asl2.0))))
|
;; Bundled libraries are expat-licensed.
|
||||||
|
(license (list license:asl2.0 license:expat)))))
|
||||||
|
Loading…
Reference in New Issue
Block a user