From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: [PATCH] gnu: libreoffice: Add 'libreoffice' symlink. Date: Tue, 6 Dec 2016 19:52:41 +0000 Message-ID: <20161206195241.23575-2-ng0@libertad.pw> References: <8737i0ubva.fsf@gmail.com> <20161206195241.23575-1-ng0@libertad.pw> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44750) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cELnf-0002Ra-Nn for guix-devel@gnu.org; Tue, 06 Dec 2016 14:53:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cELne-0001YA-Od for guix-devel@gnu.org; Tue, 06 Dec 2016 14:53:15 -0500 Received: from aibo.runbox.com ([91.220.196.211]:49078) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cELne-0001Y0-Ih for guix-devel@gnu.org; Tue, 06 Dec 2016 14:53:14 -0500 Received: from [10.9.9.210] (helo=mailfront10.runbox.com) by bars.runbox.com with esmtp (Exim 4.71) (envelope-from ) id 1cELnd-0007Jt-GS for guix-devel@gnu.org; Tue, 06 Dec 2016 20:53:13 +0100 In-Reply-To: <20161206195241.23575-1-ng0@libertad.pw> 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" To: guix-devel@gnu.org * gnu/packages/libreoffice.scm (libreoffice)[arguments]: Create symlink to libreoffice in new phase. --- gnu/packages/libreoffice.scm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gnu/packages/libreoffice.scm b/gnu/packages/libreoffice.scm index e02e4f4cd..8e08450a1 100644 --- a/gnu/packages/libreoffice.scm +++ b/gnu/packages/libreoffice.scm @@ -2,6 +2,7 @@ ;;; Copyright © 2014 John Darrington ;;; Copyright © 2015 Andreas Enge ;;; Copyright © 2016 Efraim Flashner +;;; Copyright © 2016 ng0 ;;; ;;; This file is part of GNU Guix. ;;; @@ -828,6 +829,14 @@ and to return information on pronunciations, meanings and synonyms.") (symlink (string-append out "/lib/libreoffice/program/soffice") (string-append bin "/soffice"))) + #t)) + (add-after 'bin-install 'symlink-soffice + ;; Create a symlink bin/libreoffice to the executable script. + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bin (string-append out "/bin")) + (soffice (string-append bin "/soffice"))) + (symlink soffice (string-append bin "/libreoffice")) #t))) #:configure-flags (list -- 2.11.0