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

Contents of /dev-lisp/clozurecl/clozurecl-1.9_p1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Mon Oct 14 10:48:32 2013 UTC (6 years, 4 months ago) by grozin
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Now installs contrib, closing #484832

(Portage version: 2.2.7/cvs/Linux i686, signed Manifest commit with key 0x3AFFCE974D34BD8C!)

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

  ViewVC Help
Powered by ViewVC 1.1.20