/[gentoo-x86]/dev-lisp/cmucl/cmucl-20a.ebuild
Gentoo

Contents of /dev-lisp/cmucl/cmucl-20a.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Wed Oct 24 19:07:00 2012 UTC (17 months, 4 weeks ago) by ulm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +2 -2 lines
Update dependency after package move from x11-libs/openmotif to x11-libs/motif.

(Portage version: 2.1.11.30/cvs/Linux x86_64, signed Manifest commit with key E7BE08CA7DC6EA25)

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/cmucl/cmucl-20a.ebuild,v 1.5 2012/06/07 17:33:19 zmedico Exp $
4
5 EAPI="3"
6
7 inherit eutils multilib toolchain-funcs
8
9 MY_PV=${PV:0:3}
10
11 DESCRIPTION="CMU Common Lisp is an implementation of ANSI Common Lisp"
12 HOMEPAGE="http://www.cons.org/cmucl/"
13 SRC_URI="http://common-lisp.net/project/cmucl/downloads/release/${MY_PV}/cmucl-src-${MY_PV}.tar.bz2
14 http://common-lisp.net/project/cmucl/downloads/release/${MY_PV}/cmucl-${MY_PV}-x86-linux.tar.bz2"
15 RESTRICT="mirror"
16
17 LICENSE="public-domain"
18 SLOT="0"
19 KEYWORDS="~x86"
20 IUSE="X source sse2"
21
22 RDEPEND=">=x11-libs/motif-2.3:0"
23 DEPEND="${RDEPEND}
24 sys-devel/bc"
25 PDEPEND="dev-lisp/gentoo-init"
26
27 S="${WORKDIR}"
28
29 src_prepare() {
30 epatch "${FILESDIR}"/fix-man-and-doc-installation.patch
31 epatch "${FILESDIR}"/${MY_PV}-patch000.patch
32 epatch "${FILESDIR}"/${MY_PV}-multiplefixes.patch
33 }
34
35 src_compile() {
36 local cfpu="sse2"
37 if ! use sse2; then
38 cfpu="x87"
39 fi
40
41 einfo ${cfpu}
42
43 local copts="-u"
44
45 if use X; then
46 copts=""
47 fi
48
49 copts+=" -f ${cfpu}"
50
51 local buildimage="bin/lisp -core lib/cmucl/lib/lisp-${cfpu}.core -batch -noinit -nositeinit"
52 env CC="$(tc-getCC)" src/tools/build.sh -C "" -o "${buildimage}" ${copts} || die "Cannot build the compiler"
53 }
54
55 src_install() {
56 env MANDIR=share/man/man1 DOCDIR=share/doc/${PF} \
57 src/tools/make-dist.sh -S -g -G root -O root build-4 ${MY_PV} x86 linux || die "Cannot build installation archive"
58
59 dodir /usr || die "dodir failed"
60
61 tar xzpf cmucl-${MY_PV}-x86-linux.tar.gz -C "${D}"/usr || die "Cannot install main system"
62 if use X ; then
63 tar xzpf cmucl-${MY_PV}-x86-linux.extra.tar.gz -C "${D}"/usr || die "Cannot install extra files"
64 fi
65 if use source; then
66 dodir /usr/share/common-lisp/source/${PN} || die "dodir failed"
67 tar --strip-components 1 -xzpf cmucl-src-${MY_PV}.tar.gz \
68 -C "${D}"/usr/share/common-lisp/source/${PN} \
69 || die "tar failed"
70 fi
71
72 # Install site config file
73 sed "s,@PF@,${PF},g ; s,@VERSION@,$(date +%F),g" \
74 < "${FILESDIR}"/site-init.lisp.in \
75 > "${D}"/usr/$(get_libdir)/cmucl/site-init.lisp || die "sed failed"
76 insinto /etc
77 doins "${FILESDIR}"/cmuclrc || die "doins failed"
78 }

  ViewVC Help
Powered by ViewVC 1.1.20