Gentoo Archives: gentoo-commits

From: "Andrey Grozin (grozin)" <grozin@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-lisp/cmucl: ChangeLog cmucl-20e.ebuild
Date: Thu, 06 Feb 2014 12:57:31
Message-Id: 20140206125726.AD80A2004E@flycatcher.gentoo.org
1 grozin 14/02/06 12:57:26
2
3 Modified: ChangeLog
4 Added: cmucl-20e.ebuild
5 Log:
6 Version bump
7
8 (Portage version: 2.2.8-r1/cvs/Linux i686, signed Manifest commit with key 0x3AFFCE974D34BD8C!)
9
10 Revision Changes Path
11 1.43 dev-lisp/cmucl/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lisp/cmucl/ChangeLog?rev=1.43&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lisp/cmucl/ChangeLog?rev=1.43&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lisp/cmucl/ChangeLog?r1=1.42&r2=1.43
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-lisp/cmucl/ChangeLog,v
20 retrieving revision 1.42
21 retrieving revision 1.43
22 diff -u -r1.42 -r1.43
23 --- ChangeLog 12 May 2013 11:06:44 -0000 1.42
24 +++ ChangeLog 6 Feb 2014 12:57:26 -0000 1.43
25 @@ -1,6 +1,13 @@
26 # ChangeLog for dev-lisp/cmucl
27 -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-lisp/cmucl/ChangeLog,v 1.42 2013/05/12 11:06:44 patrick Exp $
29 +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/dev-lisp/cmucl/ChangeLog,v 1.43 2014/02/06 12:57:26 grozin Exp $
31 +
32 +*cmucl-20e (06 Feb 2014)
33 +
34 + 06 Feb 2014; Andrey Grozin <grozin@g.o> +cmucl-20e.ebuild,
35 + +files/20e-customize-lisp-implementation-version.patch,
36 + +files/20e-execstack-fixes.patch:
37 + Version bump
38
39 12 May 2013; Patrick Lauer <patrick@g.o> cmucl-20d-r3.ebuild:
40 Fix inherit
41
42
43
44 1.1 dev-lisp/cmucl/cmucl-20e.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lisp/cmucl/cmucl-20e.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lisp/cmucl/cmucl-20e.ebuild?rev=1.1&content-type=text/plain
48
49 Index: cmucl-20e.ebuild
50 ===================================================================
51 # Copyright 1999-2014 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/dev-lisp/cmucl/cmucl-20e.ebuild,v 1.1 2014/02/06 12:57:26 grozin Exp $
54
55 EAPI=5
56 inherit eutils toolchain-funcs multilib
57
58 MY_PV=${PV:0:3}
59
60 DESCRIPTION="CMU Common Lisp is an implementation of ANSI Common Lisp"
61 HOMEPAGE="http://www.cons.org/cmucl/"
62 SRC_URI="http://common-lisp.net/project/cmucl/downloads/release/${MY_PV}/cmucl-src-${MY_PV}.tar.bz2
63 http://common-lisp.net/project/cmucl/downloads/release/${MY_PV}/cmucl-${MY_PV}-x86-linux.tar.bz2"
64
65 LICENSE="public-domain"
66 SLOT="0"
67 KEYWORDS="~x86"
68 IUSE="X source sse2"
69
70 CDEPEND=">=dev-lisp/asdf-2.33-r3:=
71 x11-libs/motif:0"
72 DEPEND="${CDEPEND}
73 sys-devel/bc"
74 RDEPEND="${CDEPEND}"
75
76 S="${WORKDIR}"
77
78 TARGET=linux-4
79
80 src_prepare() {
81 epatch "${FILESDIR}"/${MY_PV}-execstack-fixes.patch
82 epatch "${FILESDIR}"/${MY_PV}-customize-lisp-implementation-version.patch
83
84 cp /usr/share/common-lisp/source/asdf/build/asdf.lisp src/contrib/asdf/ || die
85 }
86
87 src_compile() {
88 local cmufpu cmuopts
89
90 if use sse2; then
91 cmufpu=sse2
92 else
93 cmufpu=x87
94 fi
95
96 if use X; then
97 cmuopts="-f ${cmufpu}"
98 else
99 cmuopts="-u -f ${cmufpu}"
100 fi
101
102 local buildimage="bin/lisp -core lib/cmucl/lib/lisp-${cmufpu}.core -noinit -nositeinit -batch"
103
104 env CC="$(tc-getCC)" bin/build.sh -v "-gentoo-${PR}" -C "" -o "${buildimage}" ${cmuopts} || die "Cannot build the compiler"
105
106 # Compile up the asdf and defsystem modules
107 ${TARGET}/lisp/lisp -noinit -nositeinit -batch << EOF || die
108 (in-package :cl-user)
109 (setf (ext:search-list "target:")
110 '("$TARGET/" "src/"))
111 (setf (ext:search-list "modules:")
112 '("target:contrib/"))
113
114 (compile-file "modules:asdf/asdf")
115 (compile-file "modules:defsystem/defsystem")
116 EOF
117 }
118
119 src_install() {
120 env MANDIR=share/man/man1 DOCDIR=share/doc/${PF} \
121 bin/make-dist.sh -S -g -G root -O root ${TARGET} ${MY_PV} x86 linux \
122 || die "Cannot build installation archive"
123 # Necessary otherwise tar will fail
124 dodir /usr
125 pushd "${D}"/usr > /dev/null
126 tar xzpf "${WORKDIR}"/cmucl-${MY_PV}-x86-linux.tar.gz \
127 || die "Cannot install main system"
128 if use X ; then
129 tar xzpf "${WORKDIR}"/cmucl-${MY_PV}-x86-linux.extra.tar.gz \
130 || die "Cannot install extra files"
131 fi
132 if use source; then
133 # Necessary otherwise tar will fail
134 dodir /usr/share/common-lisp/source/${PN}
135 cd "${D}"/usr/share/common-lisp/source/${PN}
136 tar --strip-components 1 -xzpf "${WORKDIR}"/cmucl-src-${MY_PV}.tar.gz \
137 || die "Cannot install sources"
138 fi
139 popd > /dev/null
140
141 # Install site config file
142 sed "s,@PF@,${PF},g ; s,@VERSION@,$(date +%F),g" \
143 < "${FILESDIR}"/site-init.lisp.in \
144 > "${D}"/usr/$(get_libdir)/cmucl/site-init.lisp \
145 || die "Cannot fix site-init.lisp"
146 insinto /etc/common-lisp
147 doins "${FILESDIR}"/cmuclrc || die "Failed to install cmuclrc"
148 }