From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E1D921396D0 for ; Fri, 6 Oct 2017 21:21:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4BADC2BC004; Fri, 6 Oct 2017 21:21:09 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2E99F2BC004 for ; Fri, 6 Oct 2017 21:21:08 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 36FF9341712 for ; Fri, 6 Oct 2017 21:21:08 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B7FCF9096 for ; Fri, 6 Oct 2017 21:21:06 +0000 (UTC) From: "José María Alonso" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "José María Alonso" Message-ID: <1507324866.cb8aca55c8e7964608b8d2ebc27a19ec455c4df9.nimiux@gentoo> Subject: [gentoo-commits] proj/lisp:master commit in: eclass/ X-VCS-Repository: proj/lisp X-VCS-Files: eclass/common-lisp-3.eclass X-VCS-Directories: eclass/ X-VCS-Committer: nimiux X-VCS-Committer-Name: José María Alonso X-VCS-Revision: cb8aca55c8e7964608b8d2ebc27a19ec455c4df9 X-VCS-Branch: master Date: Fri, 6 Oct 2017 21:21:06 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 57c0a225-9a8f-4033-bd70-e75c237e25c8 X-Archives-Hash: 8af58cf3acd27da8286ce698df5f5906 commit: cb8aca55c8e7964608b8d2ebc27a19ec455c4df9 Author: Chema Alonso Josa gentoo org> AuthorDate: Fri Oct 6 21:21:06 2017 +0000 Commit: José María Alonso gentoo org> CommitDate: Fri Oct 6 21:21:06 2017 +0000 URL: https://gitweb.gentoo.org/proj/lisp.git/commit/?id=cb8aca55 common-lisp-3.eclass: Adds CLIMPLEMENTATIONS variable and common-lisp-find-lisp-impl function eclass/common-lisp-3.eclass | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/eclass/common-lisp-3.eclass b/eclass/common-lisp-3.eclass index f0f0b0da..9acf17e3 100644 --- a/eclass/common-lisp-3.eclass +++ b/eclass/common-lisp-3.eclass @@ -15,6 +15,11 @@ inherit eutils # so it's useless to mirror them RESTRICT="mirror" +# @ECLASS-VARIABLE: CLIMPLEMENTATIONS +# @DESCRIPTION: +# Common Lisp implementations +CLIMPLEMENTATIONS="sbcl clisp clozurecl cmucl ecls gcl" + # @ECLASS-VARIABLE: CLSOURCEROOT # @DESCRIPTION: # Default path of Common Lisp libraries sources. Sources will @@ -165,11 +170,23 @@ common-lisp-3_src_install() { done } +# @FUNCTION: common-lisp-find-lisp-impl +# @USAGE: common-lisp-find-lisp-impl +# @DESCRIPTION: +# Outputs an installed Common Lisp implementation. Transverses +# CLIMPLEMENTATIONS to find it. +common-lisp-find-lisp-impl() { + for lisp in ${CLIMPLEMENTATIONS} ; do + [[ "$(best_version dev-lisp/${lisp})" ]] && echo "${lisp}" && return + done + die "No CommonLisp implementation found" +} + # @FUNCTION: common-lisp-export-impl-args # @USAGE: common-lisp-export-impl-args # @DESCRIPTION: -# Export a few variables containing the switches necessary -# to make the CL implementation perform basic functions: +# Export a few variables containing the switches necessary +# to make the CL implementation perform basic functions: # * CL_BINARY: Common Lisp implementation # * CL_NORC: don't load syste-wide or user-specific initfiles # * CL_LOAD: load a certain file