From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QYzgf-0000lo-7X for garchives@archives.gentoo.org; Tue, 21 Jun 2011 12:04:09 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 51D1D1C224; Tue, 21 Jun 2011 12:03:42 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 0867F1C222 for ; Tue, 21 Jun 2011 12:03:41 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 48B771B401E for ; Tue, 21 Jun 2011 12:03:39 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 50C7680040 for ; Tue, 21 Jun 2011 12:03:38 +0000 (UTC) From: "Stelian Ionescu" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Stelian Ionescu" Message-ID: <615cb9af8eab48c4ec28c1afbad8cc743bfa19ea.fenlix@gentoo> Subject: [gentoo-commits] proj/lisp:master commit in: dev-lisp/clozure/, dev-lisp/clozure/files/ X-VCS-Repository: proj/lisp X-VCS-Files: dev-lisp/clozure/clozure-1.6-r1.ebuild dev-lisp/clozure/files/fix_user-homedir-pathname.patch X-VCS-Directories: dev-lisp/clozure/ dev-lisp/clozure/files/ X-VCS-Committer: fenlix X-VCS-Committer-Name: Stelian Ionescu X-VCS-Revision: 615cb9af8eab48c4ec28c1afbad8cc743bfa19ea Date: Tue, 21 Jun 2011 12:03:38 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 4a8a00b345b228ed0afa5081dc8622c2 commit: 615cb9af8eab48c4ec28c1afbad8cc743bfa19ea Author: Stelian Ionescu cddr org> AuthorDate: Tue Jun 21 11:01:24 2011 +0000 Commit: Stelian Ionescu cddr org> CommitDate: Tue Jun 21 11:01:24 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/lisp.git;a=3D= commit;h=3D615cb9af Rename dev-lisp/clozurecl to clozure, use ASDF2 and gentoo-init-1.0 --- dev-lisp/clozure/clozure-1.6-r1.ebuild | 86 ++++++++++++++= ++++++ .../clozure/files/fix_user-homedir-pathname.patch | 13 +++ 2 files changed, 99 insertions(+), 0 deletions(-) diff --git a/dev-lisp/clozure/clozure-1.6-r1.ebuild b/dev-lisp/clozure/cl= ozure-1.6-r1.ebuild new file mode 100644 index 0000000..99a81a0 --- /dev/null +++ b/dev-lisp/clozure/clozure-1.6-r1.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=3D3 +inherit eutils + +MY_PN=3Dccl +MY_P=3D${MY_PN}-${PV} + +DESCRIPTION=3D"ClozureCL is a Common Lisp implementation, derived from D= igitool's MCL product" +HOMEPAGE=3D"http://ccl.clozure.com/" +SRC_URI=3D"x86? ( ftp://ftp.clozure.com/pub/release/${PV}/${MY_P}-linu= xx86.tar.gz ) + amd64? ( ftp://ftp.clozure.com/pub/release/${PV}/${MY_P}-linuxx86.tar= .gz )" + # ppc? ( ftp://ftp.clozure.com/pub/release/${PV}/${MY_P}-linuxppc.t= ar.gz ) + # ppc64? ( ftp://ftp.clozure.com/pub/release/${PV}/${MY_P}-linuxppc.t= ar.gz )" + +LICENSE=3D"LLGPL-2.1" +SLOT=3D"0" +# KEYWORDS=3D"~amd64 ~ppc ~ppc64 ~x86" +KEYWORDS=3D"~amd64 ~x86" +IUSE=3D"+asdf doc" + +DEPEND=3D"!dev-lisp/openmcl + !dev-lisp/clozurecl" + +RDEPEND=3D"asdf? ( >=3Ddev-lisp/gentoo-init-1.0 )" + +S=3D"${WORKDIR}"/${MY_PN} + +ENVD=3D"${T}"/50ccl + +src_prepare() { + find "${S}" -type d -name .svn -exec rm -rf {} ';' &>/dev/null + find "${S}" -type f -name .cvsignore -delete &>/dev/null +} + +src_configure() { + if use x86; then + CCL_RUNTIME=3Dlx86cl; CCL_HEADERS=3Dx86-headers + elif use amd64; then + CCL_RUNTIME=3Dlx86cl64; CCL_HEADERS=3Dx86-headers64 + elif use ppc; then + CCL_RUNTIME=3Dppccl; CCL_HEADERS=3Dheaders + elif use ppc64; then + CCL_RUNTIME=3Dppccl64; CCL_HEADERS=3Dheaders64 + fi +} + +src_compile() { + unset CCL_DEFAULT_DIRECTORY + ./${CCL_RUNTIME} -n -b -Q -e '(ccl:rebuild-ccl :full t)' -e '(ccl:quit)= ' || die "Compilation failed" + + # remove non-owner write permissions on the full-image + chmod go-w ${CCL_RUNTIME}{,.image} +} + +src_install() { + local install_dir=3D/usr/$(get_libdir)/${PN} + + exeinto ${install_dir} + # install executable + doexe ${CCL_RUNTIME} + # install core image + cp ${CCL_RUNTIME}.image "${D}"/${install_dir} || die + # install optional libraries + dodir ${install_dir}/tools + cp tools/*fsl "${D}"/${install_dir}/tools || die + + # until we figure out which source files are necessary for runtime + # optional features and which aren't, we install all sources + find . -type f -name '*fsl' -delete + cp -a compiler level-0 level-1 lib library \ + lisp-kernel scripts tools xdump \ + "${D}"/${install_dir} || die + cp -a ${CCL_HEADERS} "${D}"/${install_dir} || die + + make_wrapper ccl "${install_dir}/${CCL_RUNTIME}" + + echo "CCL_DEFAULT_DIRECTORY=3D${install_dir}" > "${ENVD}" + doenvd "${ENVD}" + + dodoc doc/release-notes.txt + dohtml doc/ccl-documentation.html + use doc && dohtml -r examples +} diff --git a/dev-lisp/clozure/files/fix_user-homedir-pathname.patch b/dev= -lisp/clozure/files/fix_user-homedir-pathname.patch new file mode 100644 index 0000000..d69a58f --- /dev/null +++ b/dev-lisp/clozure/files/fix_user-homedir-pathname.patch @@ -0,0 +1,13 @@ +Index: level-1/l1-pathnames.lisp +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D +--- level-1/l1-pathnames.lisp (revision 11951) ++++ level-1/l1-pathnames.lisp (working copy) +@@ -624,7 +624,7 @@ + (let* ((native + (ignore-errors + (truename +- (native-to-directory-pathname (or #+ccl-0711 (getenv "HOME= ") ++ (native-to-directory-pathname (or (getenv "HOME") + (get-user-home-dir (getu= id)))))))) + (if (and native (eq :absolute (car (pathname-directory native)))) + native