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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sat Mar 31 10:17:47 2012 UTC (7 years, 9 months ago) by grozin
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Version bump

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

1 # Copyright 1999-2010 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.6.ebuild,v 1.2 2010/12/17 20:18:11 ulm Exp $
4
5 EAPI=3
6 inherit eutils
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_prepare() {
31 find "${S}" -type d -name .svn -exec rm -rf {} ';' &>/dev/null
32 find "${S}" -type f -name .cvsignore -delete &>/dev/null
33 }
34
35 src_configure() {
36 if use x86; then
37 CCL_RUNTIME=lx86cl; CCL_HEADERS=x86-headers
38 elif use amd64; then
39 CCL_RUNTIME=lx86cl64; CCL_HEADERS=x86-headers64
40 elif use ppc; then
41 CCL_RUNTIME=ppccl; CCL_HEADERS=headers
42 elif use ppc64; then
43 CCL_RUNTIME=ppccl64; CCL_HEADERS=headers64
44 fi
45 }
46
47 src_compile() {
48 unset CCL_DEFAULT_DIRECTORY
49 ./${CCL_RUNTIME} -n -b -Q -e '(ccl:rebuild-ccl :full t)' -e '(ccl:quit)' || die "Compilation failed"
50
51 # remove non-owner write permissions on the full-image
52 chmod go-w ${CCL_RUNTIME}{,.image}
53 }
54
55 src_install() {
56 local install_dir=/usr/$(get_libdir)/${PN}
57
58 exeinto ${install_dir}
59 # install executable
60 doexe ${CCL_RUNTIME}
61 # install core image
62 cp ${CCL_RUNTIME}.image "${D}"/${install_dir} || die
63 # install optional libraries
64 dodir ${install_dir}/tools
65 cp tools/*fsl "${D}"/${install_dir}/tools || die
66
67 # until we figure out which source files are necessary for runtime
68 # optional features and which aren't, we install all sources
69 find . -type f -name '*fsl' -delete
70 cp -a compiler level-0 level-1 lib library \
71 lisp-kernel scripts tools xdump \
72 "${D}"/${install_dir} || die
73 cp -a ${CCL_HEADERS} "${D}"/${install_dir} || die
74
75 make_wrapper ccl "${install_dir}/${CCL_RUNTIME}"
76
77 echo "CCL_DEFAULT_DIRECTORY=${install_dir}" > "${ENVD}"
78 doenvd "${ENVD}"
79
80 dodoc doc/release-notes.txt
81 dohtml doc/ccl-documentation.html
82 use doc && dohtml -r examples
83 }

  ViewVC Help
Powered by ViewVC 1.1.20