;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2012 Nikita Karetnikov ;;; Copyright © 2012, 2013, 2014, 2015, 2016 Ludovic Courtès ;;; Copyright © 2015 Mathieu Lirzin ;;; Copyright © 2014 Manolis Fragkiskos Ragkousis ;;; Copyright © 2015 Mark H Weaver ;;; ;;; This file is part of GNU Guix. ;;; ;;; GNU Guix is free software; you can redistribute it and/or modify it ;;; under the terms of the GNU General Public License as published by ;;; the Free Software Foundation; either version 3 of the License, or (at ;;; your option) any later version. ;;; ;;; GNU Guix is distributed in the hope that it will be useful, but ;;; WITHOUT ANY WARRANTY; without even the implied warranty of ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;;; GNU General Public License for more details. ;;; ;;; You should have received a copy of the GNU General Public License ;;;
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2019-12-09 18:06:38 +0100
committerRicardo Wurmus <rekado@elephly.net>2019-12-09 18:11:19 +0100
commit73827e8431061afe1efb057c0ee4a8ea2981a102 (patch)
treea622b2dca6334b91f93ffb24b443f55cf5f46682
parent5e97576bc1407c19dc22bc95af36ad98574d2671 (diff)
downloadguix-73827e8431061afe1efb057c0ee4a8ea2981a102.tar.gz
guix-73827e8431061afe1efb057c0ee4a8ea2981a102.zip
gnu: r-energy: Update to 1.7-7.
* gnu/packages/cran.scm (r-energy): Update to 1.7-7.
-p bin) ;; Symlink all the binaries but `autoconf'. (with-directory-excursion bin (for-each (lambda (file) (unless (string=? (basename file) "autoconf") (symlink file (basename file)))) (find-files (dirname autoconf) ".*"))) ;; Add an `autoconf' binary that wraps the real one. (call-with-output-file (string-append bin "/autoconf") (lambda (port) ;; Shamefully, Guile can be used in shebangs only if a ;; single argument is passed (-ds); otherwise it gets ;; them all as a single argument and fails to parse them. (format port "#!~a export GUILE_LOAD_PATH=\"~a\" export GUILE_LOAD_COMPILED_PATH=\"~a\" exec ~a --no-auto-compile \"$0\" \"$@\" !#~%" sh modules modules guile) (write `(begin (use-modules (guix build utils)) (let ((result (apply system* ,autoconf (cdr (command-line))))) (when (and (file-exists? "configure") (not (file-exists? "/bin/sh"))) ;; Patch regardless of RESULT, because `autoconf ;; -Werror' can both create a `configure' file and ;; return a non-zero exit code. (patch-shebang "configure")) (exit (status:exit-val result)))) port))) (chmod (string-append bin "/autoconf") #o555))))))) (define-public autobuild (package (name "autobuild") (version "5.3") (source (origin (method url-fetch) (uri (string-append "mirror://savannah/autobuild/autobuild-" version ".tar.gz")) (sha256 (base32 "0gv7g61ja9q9zg1m30k4snqwwy1kq7b4df6sb7d2qra7kbdq8af1")))) (build-system gnu-build-system) (inputs `(("perl" ,perl))) (synopsis "Process generated build logs") (description "Autobuild is a package that processes build logs generated when building software. Autobuild is primarily focused on packages using Autoconf and Automake, but can be used with other build systems too. Autobuild generates an HTML summary file, containing links to each build log. The summary includes project name, version, build hostname, host type (cross compile aware), date of build, and indication of success or failure. The output is indexed in many ways to simplify browsing.") (home-page "http://josefsson.org/autobuild/") (license gpl3+))) (define-public automake (package (name "automake") (version "1.15") (source (origin (method url-fetch) (uri (string-append "mirror://gnu/automake/automake-" version ".tar.xz")) (sha256 (base32 "0dl6vfi2lzz8alnklwxzfz624b95hb1ipjvd3mk177flmddcf24r")) (patches (map search-patch '("automake-regexp-syntax.patch" "automake-skip-amhello-tests.patch"))))) (build-system gnu-build-system) (native-inputs `(("autoconf" ,(autoconf-wrapper)) ("perl" ,perl))) (native-search-paths (list (search-path-specification (variable "ACLOCAL_PATH") (files '("share/aclocal"))))) (arguments '(#:modules ((guix build gnu-build-system) (guix build utils) (srfi srfi-1) (srfi srfi-26) (rnrs io ports)) #:phases (alist-cons-before 'patch-source-shebangs 'patch-tests-shebangs (lambda _ (let ((sh (which "sh"))) (substitute* (find-files "t" "\\.(sh|tap)$") (("#![[:blank:]]?/bin/sh") (string-append "#!" sh))) ;; Set these variables for all the `configure' runs ;; that occur during the test suite. (setenv "SHELL" sh) (setenv "CONFIG_SHELL" sh))) ;; Files like `install-sh', `mdate.sh', etc. must use ;; #!/bin/sh, otherwise users could leak erroneous shebangs ;; in the wild. See for an ;; example. (alist-cons-after 'install 'unpatch-shebangs (lambda* (#:key outputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out")) (dir (string-append out "/share"))) (define (starts-with-shebang? file) (equal? (call-with-input-file file (lambda (p) (list (get-u8 p) (get-u8 p)))) (map char->integer '(#\# #\!)))) (for-each (lambda (file) (when (and (starts-with-shebang? file) (executable-file? file)) (format #t "restoring shebang on `~a'~%" file) (substitute* file (("^#!.*/bin/sh") "#!/bin/sh") (("^#!.*/bin/env(.*)$" _ args) (string-append "#!/usr/bin/env" args))))) (find-files dir ".*")))) %standard-phases)))) (home-page "http://www.gnu.org/software/automake/") (synopsis "Making GNU standards-compliant Makefiles") (description "Automake the part of the GNU build system for producing standards-compliant Makefiles. Build requirements are entered in an intuitive format and then Automake works with Autoconf to produce a robust Makefile, simplifying the entire process for the developer.") (license gpl2+))) ; some files are under GPLv3+ (define-public libtool (package (name "libtool") (version "2.4.6") (source (origin (method url-fetch) (uri (string-append "mirror://gnu/libtool/libtool-" version ".tar.xz")) (sha256 (base32 "0vxj52zm709125gwv9qqlw02silj8bnjnh4y07arrz60r31ai1vw")) (patches (list (search-patch "libtool-skip-tests2.patch"))))) (build-system gnu-build-system) (propagated-inputs `(("m4" ,m4))) (native-inputs `(("m4" ,m4) ("perl" ,perl) ("automake" ,automake) ;some tests rely on 'aclocal' ("autoconf" ,(autoconf-wrapper)))) ;others on 'autom4te' (arguments `(;; Libltdl is provided as a separate package, so don't install it here. #:configure-flags '("--disable-ltdl-install") ;; XXX: There are test failures on mips64el-linux starting from 2.4.4: ;; . #:tests? ,(not (string-prefix? "mips64" (or (%current-target-system) (%current-system)))) #:phases (alist-cons-before 'check 'pre-check (lambda* (#:key inputs #:allow-other-keys) ;; Run the test suite in parallel, if possible. (setenv "TESTSUITEFLAGS" (string-append "-j" (number->string (parallel-job-count)))) ;; Path references to /bin/sh. (let ((bash (assoc-ref inputs "bash"))) (substitute* "tests/testsuite" (("/bin/sh") (string-append bash "/bin/bash"))))) %standard-phases))) (synopsis "Generic shared library support tools") (description "GNU Libtool helps in the creation and use of shared libraries, by presenting a single consistent, portable interface that hides the usual complexity of working with shared libraries across platforms.") (license gpl3+) (home-page "http://www.gnu.org/software/libtool/"))) (define-public libltdl ;; This is a libltdl package separate from the libtool package. This is ;; useful because, unlike libtool, it has zero extra dependencies (making it ;; readily usable during bootstrap), and it builds very quickly since ;; Libtool's extensive test suite isn't run. (package (name "libltdl") (version "2.4.6") (source (origin (method url-fetch) (uri (string-append "mirror://gnu/libtool/libtool-" version ".tar.xz")) (sha256 (base32 "0vxj52zm709125gwv9qqlw02silj8bnjnh4y07arrz60r31ai1vw")))) (build-system gnu-build-system) (arguments '(#:configure-flags '("--enable-ltdl-install") ;really install it #:phases (alist-cons-before 'configure 'change-directory (lambda _ (chdir "libltdl")) %standard-phases))) (synopsis "System-independent dlopen wrapper of GNU libtool") (description (package-description libtool)) (home-page (package-home-page libtool)) (license lgpl2.1+)))