From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: [PATCH] gnu: libreoffice: Add 'libreoffice' symlink. Date: Tue, 6 Dec 2016 20:04:44 +0000 Message-ID: <20161206200444.24200-2-ng0@libertad.pw> References: <20161206195241.23575-1-ng0@libertad.pw> <20161206200444.24200-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]:49032) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cELzP-0000h8-U1 for guix-devel@gnu.org; Tue, 06 Dec 2016 15:05:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cELzM-0005nl-PQ for guix-devel@gnu.org; Tue, 06 Dec 2016 15:05:23 -0500 Received: from aibo.runbox.com ([91.220.196.211]:50325) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cELzM-0005nJ-Ja for guix-devel@gnu.org; Tue, 06 Dec 2016 15:05:20 -0500 Received: from [10.9.9.211] (helo=mailfront11.runbox.com) by bars.runbox.com with esmtp (Exim 4.71) (envelope-from ) id 1cELzL-0002df-7J for guix-devel@gnu.org; Tue, 06 Dec 2016 21:05:19 +0100 In-Reply-To: <20161206200444.24200-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 | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/gnu/packages/libreoffice.scm b/gnu/packages/libreoffice.scm index e02e4f4cd..5f1435745 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,7 +829,15 @@ and to return information on pronunciations, meanings and synonyms.") (symlink (string-append out "/lib/libreoffice/program/soffice") (string-append bin "/soffice"))) - #t))) + #t)) + (add-after 'bin-install 'symlink-libreoffice + ;; Create a symlink bin/libreoffice to the executable script. + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out"))) + (with-directory-excursion + (string-append (assoc-ref outputs "out") "/bin") + (symlink "soffice" "libreoffice")) + #t))) #:configure-flags (list "--enable-release-build" -- 2.11.0