gnu: shflags: Use the GNU-BUILD-SYSTEM.
The TRIVIAL-BUILD-SYSTEM doesn't really save any effort and is actually slightly longer. * gnu/packages/version-control.scm (shflags)[build-system: Use GNU-BUILD-SYSTEM. [arguments]: Adjust accordingly and prefer INSTALL-FILE over COPY-FILE.
This commit is contained in:
parent
79f0561f43
commit
dcb06ac9cf
|
@ -645,27 +645,21 @@ default) of the repository.")
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"0zxw12haylaq60a335xlqcs4afw2zrgwqymmpw0m21r51w6irdmr"))))
|
"0zxw12haylaq60a335xlqcs4afw2zrgwqymmpw0m21r51w6irdmr"))))
|
||||||
(build-system trivial-build-system)
|
(build-system gnu-build-system)
|
||||||
(native-inputs `(("tar" ,tar)
|
(native-inputs `(("tar" ,tar)
|
||||||
("gzip" ,gzip)))
|
("gzip" ,gzip)))
|
||||||
(arguments
|
(arguments
|
||||||
`(#:modules ((guix build utils))
|
`(#:tests? #f ; no tests
|
||||||
#:builder (begin
|
#:phases
|
||||||
(use-modules (guix build utils))
|
(modify-phases %standard-phases
|
||||||
(let* ((source (assoc-ref %build-inputs "source"))
|
(delete 'configure) ; nothing to configure
|
||||||
(tar (assoc-ref %build-inputs "tar"))
|
(delete 'build) ; nothing to build
|
||||||
(gzip (assoc-ref %build-inputs "gzip"))
|
(replace 'install
|
||||||
(output (assoc-ref %outputs "out"))
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
(srcdir (string-append output "/src")))
|
(let* ((out (assoc-ref outputs "out"))
|
||||||
(begin
|
(src (string-append out "/src")))
|
||||||
(setenv "PATH" (string-append gzip "/bin"))
|
(install-file "src/shflags" src)
|
||||||
(system* (string-append tar "/bin/tar") "xzf"
|
#t))))))
|
||||||
source)
|
|
||||||
(chdir ,(string-append name "-" version))
|
|
||||||
(mkdir-p srcdir)
|
|
||||||
(copy-file "src/shflags"
|
|
||||||
(string-append srcdir "/shflags"))
|
|
||||||
#t)))))
|
|
||||||
(home-page "https://github.com/kward/shflags")
|
(home-page "https://github.com/kward/shflags")
|
||||||
(synopsis "Command-line flags library for shell scripts")
|
(synopsis "Command-line flags library for shell scripts")
|
||||||
(description
|
(description
|
||||||
|
|
Loading…
Reference in New Issue