me
/
guix
Archived
1
0
Fork 0

gnu: sunxi-tools: Update to 1.4.1.

* gnu/packages/admin.scm (sunxi-tools): Update to 1.4.1.
[arguments]: Add "CC=gcc" "all" to #:make-flags.  Remove 'fix-Makefile'
phase.  Add 'install' phase.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
master
Danny Milosavljevic 2016-11-03 00:58:56 +01:00 committed by Ludovic Courtès
parent 6cb02e6e00
commit b054b26a48
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 11 additions and 13 deletions

View File

@ -1859,14 +1859,14 @@ Kerberos and Heimdal and FAST is supported with recent MIT Kerberos.")
(define-public sunxi-tools (define-public sunxi-tools
(package (package
(name "sunxi-tools") (name "sunxi-tools")
(version "1.3") (version "1.4.1")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (string-append "https://github.com/linux-sunxi/" (uri (string-append "https://github.com/linux-sunxi/"
"sunxi-tools/archive/v" version ".tar.gz")) "sunxi-tools/archive/v" version ".tar.gz"))
(sha256 (sha256
(base32 "1iazm28gws1i8sls3gxwc5p108n56ags287zmh1rpvkn2k1az81a")) (base32 "06qd2b4dlzbmzfy4q9n8v5rkkbmgcfdbv4nkkcp4nysi10k7cpfs"))
(modules '((guix build utils))) (modules '((guix build utils)))
(snippet (snippet
;; Remove binaries contained in the tarball which are only for the ;; Remove binaries contained in the tarball which are only for the
@ -1882,19 +1882,16 @@ Kerberos and Heimdal and FAST is supported with recent MIT Kerberos.")
`(#:tests? #f ; no tests exist `(#:tests? #f ; no tests exist
#:make-flags (list (string-append "PREFIX=" #:make-flags (list (string-append "PREFIX="
(assoc-ref %outputs "out")) (assoc-ref %outputs "out"))
"TARGET_TOOLS=sunxi-pio sunxi-meminfo" "CROSS_COMPILE="
"CROSS_COMPILE=") "CC=gcc"
"all")
#:phases #:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after 'unpack 'fix-Makefile (delete 'configure)
(lambda _ (replace 'install
(substitute* "Makefile" (lambda* (#:key make-flags #:allow-other-keys)
;; Upstream adds Makefile and config.h as dependencies (zero? (apply system* "make" "install-all" "install-misc"
;; of all their tools which means $^ would pass them to gcc. make-flags)))))))
;; gcc won't know what to do with a Makefile.
(("-o [$][@] [$]\\^") "-o $@ meminfo.c"))
#t))
(delete 'configure))))
(home-page "https://github.com/linux-sunxi/sunxi-tools") (home-page "https://github.com/linux-sunxi/sunxi-tools")
(synopsis "Hardware management tools for Allwinner computers") (synopsis "Hardware management tools for Allwinner computers")
(description "This package contains tools for Allwinner devices: (description "This package contains tools for Allwinner devices:
@ -1910,5 +1907,6 @@ bootloader) parameters.
@item @command{sunxi-pio}: Sets GPIO parameters and oscillates a GPIO @item @command{sunxi-pio}: Sets GPIO parameters and oscillates a GPIO
in order to be able to find it. in order to be able to find it.
@item @command{sunxi-meminfo}: Prints memory bus settings. @item @command{sunxi-meminfo}: Prints memory bus settings.
@item @command{sunxi-nand-image-builder}: Prepares raw NAND images.
@end enumerate") @end enumerate")
(license license:gpl2+))) (license license:gpl2+)))