From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: [PATCH] gnu: magit: Update to 2.2.0. Date: Mon, 17 Aug 2015 21:56:19 +0300 Message-ID: <87zj1pd9rg.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43025) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZRPa6-0004cZ-Dn for guix-devel@gnu.org; Mon, 17 Aug 2015 14:56:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZRPa3-0003Ud-65 for guix-devel@gnu.org; Mon, 17 Aug 2015 14:56:26 -0400 Received: from mail-la0-x232.google.com ([2a00:1450:4010:c03::232]:35056) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZRPa2-0003UK-OZ for guix-devel@gnu.org; Mon, 17 Aug 2015 14:56:23 -0400 Received: by lahi9 with SMTP id i9so84768788lah.2 for ; Mon, 17 Aug 2015 11:56:21 -0700 (PDT) Received: from leviafan ([217.107.192.146]) by smtp.gmail.com with ESMTPSA id jl4sm4118879lbc.14.2015.08.17.11.56.19 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Aug 2015 11:56:20 -0700 (PDT) List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org --=-=-= Content-Type: text/plain Thanks, Mark, for the hint about using (package-version emacs-dash) to define its elisp directory. --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: attachment; filename=0001-gnu-magit-Update-to-2.2.0.patch Content-Transfer-Encoding: quoted-printable >From 55e67d4f3867f11a77b9a91d4c3c54599846cc83 Mon Sep 17 00:00:00 2001 From: Alex Kost Date: Mon, 17 Aug 2015 21:44:40 +0300 Subject: [PATCH] gnu: magit: Update to 2.2.0. * gnu/packages/emacs.scm (magit): Update to 2.2.0. [inputs]: Remove 'git:gui'. [propagated-inputs]: Add 'dash', remove 'git-modes'. [arguments]: Enable tests. Add VERSION, PREFIX and DASH_DIR to 'make-flags'. Remove 'configure', 'augment-load-path' and 'post-install' phases. --- gnu/packages/emacs.scm | 69 ++++++++++++++++++----------------------------= ---- 1 file changed, 25 insertions(+), 44 deletions(-) diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm index b73d80c..56083f2 100644 --- a/gnu/packages/emacs.scm +++ b/gnu/packages/emacs.scm @@ -2,7 +2,7 @@ ;;; Copyright =C2=A9 2014 Taylan Ulrich Bayirli/Kammer ;;; Copyright =C2=A9 2013, 2014, 2015 Ludovic Court=C3=A8s ;;; Copyright =C2=A9 2014, 2015 Mark H Weaver -;;; Copyright =C2=A9 2014 Alex Kost +;;; Copyright =C2=A9 2014, 2015 Alex Kost ;;; Copyright =C2=A9 2015 Federico Beffa ;;; Copyright =C2=A9 2015 Ricardo Wurmus ;;; @@ -311,21 +311,21 @@ configuration files, such as .gitattributes, .gitigno= re, and .git/config.") (define-public magit (package (name "magit") - (version "1.4.2") + (version "2.2.0") (source (origin - (method url-fetch) - (uri (string-append - "https://github.com/magit/magit/releases/download/" - version "/" name "-" version ".tar.gz")) - (sha256 - (base32 - "1g3bxvgabiis2y338jziycx4b61vrim4lzmqnzv78094s8azzb52")))) + (method url-fetch) + (uri (string-append + "https://github.com/magit/magit/archive/" + version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1jfak9yypvhlbxjdvpl9w28zz0lyymz0pm9fvb6cpnss3nb4fz4l")))) (build-system gnu-build-system) (native-inputs `(("texinfo" ,texinfo) ("emacs" ,emacs-no-x))) - (inputs `(("git" ,git) - ("git:gui" ,git "gui"))) - (propagated-inputs `(("git-modes" ,git-modes))) + (inputs `(("git" ,git))) + (propagated-inputs `(("dash" ,emacs-dash))) (arguments `(#:modules ((guix build gnu-build-system) (guix build utils) @@ -334,45 +334,26 @@ configuration files, such as .gitattributes, .gitigno= re, and .git/config.") (guix build emacs-utils)) =20 #:test-target "test" - #:tests? #f ;'tests/magit-tests.el' is mis= sing =20 - #:make-flags (list - ;; Don't put .el files in a sub-directory. - (string-append "lispdir=3D" (assoc-ref %outputs "out") - "/share/emacs/site-lisp")) + #:make-flags + (list (string-append "VERSION=3D" ,version) + (string-append "PREFIX=3D" %output) + ;; Don't put .el files in a sub-directory. + (string-append "lispdir=3D" %output "/share/emacs/site-lisp") + (string-append "DASH_DIR=3D" + (assoc-ref %build-inputs "dash") + "/share/emacs/site-lisp/guix.d/dash-" + ,(package-version emacs-dash))) =20 #:phases (modify-phases %standard-phases - (replace - 'configure - (lambda* (#:key outputs #:allow-other-keys) - (let ((out (assoc-ref outputs "out"))) - (substitute* "Makefile" - (("/usr/local") out) - (("/etc") (string-append out "/etc")))))) + (delete 'configure) (add-before 'build 'patch-exec-paths (lambda* (#:key inputs #:allow-other-keys) - (let ((git (assoc-ref inputs "git")) - (git:gui (assoc-ref inputs "git:gui"))) - (emacs-substitute-variables "magit.el" - ("magit-git-executable" (string-append git "/bin/git")) - ("magit-gitk-executable" (string-append git:gui - "/bin/gitk")))))) - (add-before - 'build 'augment-load-path - (lambda* (#:key inputs #:allow-other-keys) - ;; Allow git-commit-mode.el & co. to be found. - (let ((git-modes (assoc-ref inputs "git-modes"))) - (setenv "EMACSLOADPATH" - (string-append ":" git-modes "/share/emacs/site-lisp= ")) - #t))) - (add-after - 'install 'post-install - (lambda* (#:key outputs #:allow-other-keys) - (emacs-generate-autoloads - ,name (string-append (assoc-ref outputs "out") - "/share/emacs/site-lisp/"))))))) + (let ((git (assoc-ref inputs "git"))) + (emacs-substitute-variables "lisp/magit-git.el" + ("magit-git-executable" (string-append git "/bin/git")))))= )))) (home-page "http://magit.github.io/") (synopsis "Emacs interface for the Git version control system") (description --=20 2.4.3 --=-=-=--