From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id C29741381F3 for ; Fri, 19 Jul 2013 15:55:10 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 58A47E0933; Fri, 19 Jul 2013 15:55:10 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EEE7BE0933 for ; Fri, 19 Jul 2013 15:55:09 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id EFF3933BEBF for ; Fri, 19 Jul 2013 15:55:08 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 35594E4B05 for ; Fri, 19 Jul 2013 15:55:07 +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: <1374249285.ac52b7b3c6eb8e6d9c0faeae8b318771eb68120b.nimiux@gentoo> Subject: [gentoo-commits] proj/lisp:master commit in: dev-lisp/cl-unicode/ X-VCS-Repository: proj/lisp X-VCS-Files: dev-lisp/cl-unicode/cl-unicode-0.1.4.ebuild X-VCS-Directories: dev-lisp/cl-unicode/ X-VCS-Committer: nimiux X-VCS-Committer-Name: José María Alonso X-VCS-Revision: ac52b7b3c6eb8e6d9c0faeae8b318771eb68120b X-VCS-Branch: master Date: Fri, 19 Jul 2013 15:55:07 +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: e9fb5c96-f0de-4731-9441-3cd80399b798 X-Archives-Hash: 4e9a266575e259d4e2d0c00166b9f01e commit: ac52b7b3c6eb8e6d9c0faeae8b318771eb68120b Author: Chema Alonso gentoo org> AuthorDate: Fri Jul 19 15:54:45 2013 +0000 Commit: José María Alonso gentoo org> CommitDate: Fri Jul 19 15:54:45 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/lisp.git;a=commit;h=ac52b7b3 dev-lisp/cl-unicode: fix first build --- dev-lisp/cl-unicode/cl-unicode-0.1.4.ebuild | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/dev-lisp/cl-unicode/cl-unicode-0.1.4.ebuild b/dev-lisp/cl-unicode/cl-unicode-0.1.4.ebuild index 4b601bc..f16f8d9 100644 --- a/dev-lisp/cl-unicode/cl-unicode-0.1.4.ebuild +++ b/dev-lisp/cl-unicode/cl-unicode-0.1.4.ebuild @@ -17,10 +17,30 @@ SLOT="0" KEYWORDS="~amd64 ~ppc ~sparc ~x86" IUSE="" +DEPEND="dev-lisp/flexi-streams" RDEPEND="dev-lisp/cl-ppcre" +COMMONLISPS="sbcl clisp clozurecl cmucl ecls openmcl" + +find-lisp-impl() { + for lisp in ${COMMONLISPS} ; do + [[ "$(best_version dev-lisp/${lisp})" ]] && echo "${lisp}" && return + done + die "No CommonLisp implementation found" +} + +src_compile() { + # cl-unicode builds parts of its source code automatically the first time it + # is compiled, so we compile it here. + local lispimpl=$(find-lisp-impl) + local initclunicode="(progn (push \"${S}/\" asdf:*central-registry*) (require :${PN}))" + common-lisp-export-impl-args "${lispimpl}" + ${lispimpl} ${CL_EVAL} "${initclunicode}" +} + src_install() { common-lisp-install-sources *.lisp test/ + common-lisp-install-sources -t all build/ common-lisp-install-asdf dodoc CHANGELOG.txt dohtml doc/index.html