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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Jun 7 17:31:50 2012 UTC (7 years, 8 months ago) by zmedico
Branch: MAIN
Changes since 1.1: +2 -2 lines
inherit multilib for get_libdir

(Portage version: 2.2.0_alpha110/cvs/Linux i686)

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

  ViewVC Help
Powered by ViewVC 1.1.20