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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.20