/[gentoo-x86]/dev-lisp/clozurecl/clozurecl-1.10.ebuild
Gentoo

Contents of /dev-lisp/clozurecl/clozurecl-1.10.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Sat Mar 21 14:21:02 2015 UTC (5 years, 3 months ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +13 -12 lines
use esvn_clean

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!)

1 jlec 1.2 # Copyright 1999-2015 Gentoo Foundation
2 grozin 1.1 # Distributed under the terms of the GNU General Public License v2
3 jlec 1.2 # $Header: /var/cvsroot/gentoo-x86/dev-lisp/clozurecl/clozurecl-1.10.ebuild,v 1.1 2014/09/14 09:57:58 grozin Exp $
4 grozin 1.1
5     EAPI=5
6 jlec 1.2
7 grozin 1.1 inherit eutils multilib toolchain-funcs
8    
9     MY_PN=ccl
10     MY_P=${MY_PN}-${PV}
11    
12 jlec 1.2 DESCRIPTION="Common Lisp implementation, derived from Digitool's MCL product"
13 grozin 1.1 HOMEPAGE="http://ccl.clozure.com/"
14 jlec 1.2 SRC_URI="
15     x86? ( ftp://ftp.clozure.com/pub/release/${PV}/${MY_P}-linuxx86.tar.gz )
16     amd64? ( ftp://ftp.clozure.com/pub/release/${PV}/${MY_P}-linuxx86.tar.gz )"
17     # ppc? ( ftp://ftp.clozure.com/pub/release/${PV}/${MY_P}-linuxppc.tar.gz )
18     # ppc64? ( ftp://ftp.clozure.com/pub/release/${PV}/${MY_P}-linuxppc.tar.gz )"
19 grozin 1.1
20     LICENSE="LLGPL-2.1"
21     SLOT="0"
22     # KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
23     KEYWORDS="~amd64 ~x86"
24     IUSE="doc"
25    
26     RDEPEND=">=dev-lisp/asdf-2.33-r3:="
27     DEPEND="${RDEPEND}
28     !dev-lisp/openmcl"
29    
30     S="${WORKDIR}"/${MY_PN}
31    
32     ENVD="${T}"/50ccl
33    
34     src_configure() {
35     if use x86; then
36     CCL_RUNTIME=lx86cl; CCL_HEADERS=x86-headers; CCL_KERNEL=linuxx8632
37     elif use amd64; then
38     CCL_RUNTIME=lx86cl64; CCL_HEADERS=x86-headers64; CCL_KERNEL=linuxx8664
39     elif use ppc; then
40     CCL_RUNTIME=ppccl; CCL_HEADERS=headers; CCL_KERNEL=linuxppc
41     elif use ppc64; then
42     CCL_RUNTIME=ppccl64; CCL_HEADERS=headers64; CCL_KERNEL=linuxppc64
43     fi
44     }
45    
46     src_prepare() {
47     cp /usr/share/common-lisp/source/asdf/build/asdf.lisp tools/ || die
48     }
49    
50     src_compile() {
51     emake -C lisp-kernel/${CCL_KERNEL} clean
52     emake -C lisp-kernel/${CCL_KERNEL} all CC="$(tc-getCC)"
53    
54     unset CCL_DEFAULT_DIRECTORY
55     ./${CCL_RUNTIME} -n -b -Q -e '(ccl:rebuild-ccl :full t)' -e '(ccl:quit)' || die "Compilation failed"
56    
57     # remove non-owner write permissions on the full-image
58 jlec 1.2 chmod go-w ${CCL_RUNTIME}{,.image} || die
59 grozin 1.1
60 jlec 1.2 esvn_clean
61 grozin 1.1 }
62    
63     src_install() {
64     local install_dir=/usr/$(get_libdir)/${PN}
65    
66     exeinto ${install_dir}
67     # install executable
68     doexe ${CCL_RUNTIME}
69     # install core image
70     cp ${CCL_RUNTIME}.image "${D}"/${install_dir} || die
71     # install optional libraries
72     dodir ${install_dir}/tools
73     cp tools/*fsl "${D}"/${install_dir}/tools || die
74    
75     # until we figure out which source files are necessary for runtime
76     # optional features and which aren't, we install all sources
77 jlec 1.2 find . -type f -name '*fsl' -delete || die
78     rm -f lisp-kernel/${CCL_KERNEL}/*.o || die
79 grozin 1.1 cp -a compiler level-0 level-1 lib library \
80     lisp-kernel scripts tools xdump contrib \
81     "${D}"/${install_dir} || die
82     cp -a ${CCL_HEADERS} "${D}"/${install_dir} || die
83    
84     make_wrapper ccl "${install_dir}/${CCL_RUNTIME}"
85    
86     echo "CCL_DEFAULT_DIRECTORY=${install_dir}" > "${ENVD}"
87     doenvd "${ENVD}"
88    
89     dodoc doc/release-notes.txt
90     dohtml doc/ccl-documentation.html
91     use doc && dohtml -r examples
92     }

  ViewVC Help
Powered by ViewVC 1.1.20