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

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

  ViewVC Help
Powered by ViewVC 1.1.20