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-20b_p001.ebuild metadata.xml
Date: Thu, 28 Apr 2011 20:21:45
Message-Id: 20110428202133.CA0382004B@flycatcher.gentoo.org
1 grozin 11/04/28 20:21:33
2
3 Modified: ChangeLog metadata.xml
4 Added: cmucl-20b_p001.ebuild
5 Log:
6 Version bump from the lisp overlay
7
8 (Portage version: 2.2.0_alpha30/cvs/Linux i686)
9
10 Revision Changes Path
11 1.36 dev-lisp/cmucl/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lisp/cmucl/ChangeLog?rev=1.36&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lisp/cmucl/ChangeLog?rev=1.36&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lisp/cmucl/ChangeLog?r1=1.35&r2=1.36
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-lisp/cmucl/ChangeLog,v
20 retrieving revision 1.35
21 retrieving revision 1.36
22 diff -u -r1.35 -r1.36
23 --- ChangeLog 17 Dec 2010 20:17:43 -0000 1.35
24 +++ ChangeLog 28 Apr 2011 20:21:33 -0000 1.36
25 @@ -1,6 +1,15 @@
26 # ChangeLog for dev-lisp/cmucl
27 -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-lisp/cmucl/ChangeLog,v 1.35 2010/12/17 20:17:43 ulm Exp $
29 +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/dev-lisp/cmucl/ChangeLog,v 1.36 2011/04/28 20:21:33 grozin Exp $
31 +
32 +*cmucl-20b_p001 (29 Apr 2011)
33 +
34 + 29 Apr 2011; Andrey Grozin <grozin@g.o>
35 + +files/20b-customize-lisp-implementation-version.patch,
36 + +cmucl-20b_p001.ebuild, +files/20b-execstack-fixes.patch,
37 + +files/20b-nositeinit-build.patch, +files/20b-patch001.patch,
38 + files/site-init.lisp.in, metadata.xml:
39 + Version bump from the lisp overlay
40
41 17 Dec 2010; Ulrich Mueller <ulm@g.o> cmucl-19c.ebuild,
42 cmucl-19d_p2.ebuild, cmucl-20a.ebuild:
43
44
45
46 1.4 dev-lisp/cmucl/metadata.xml
47
48 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lisp/cmucl/metadata.xml?rev=1.4&view=markup
49 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lisp/cmucl/metadata.xml?rev=1.4&content-type=text/plain
50 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lisp/cmucl/metadata.xml?r1=1.3&r2=1.4
51
52 Index: metadata.xml
53 ===================================================================
54 RCS file: /var/cvsroot/gentoo-x86/dev-lisp/cmucl/metadata.xml,v
55 retrieving revision 1.3
56 retrieving revision 1.4
57 diff -u -r1.3 -r1.4
58 --- metadata.xml 28 Jul 2008 18:50:04 -0000 1.3
59 +++ metadata.xml 28 Apr 2011 20:21:33 -0000 1.4
60 @@ -1,6 +1,10 @@
61 <?xml version="1.0" encoding="UTF-8"?>
62 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
63 <pkgmetadata>
64 +<maintainer>
65 +<email>grozin@g.o</email>
66 +<name>Andrey Grozin</name>
67 +</maintainer>
68 <herd>common-lisp</herd>
69 <longdescription>
70 CMUCL is a free implementation of the Common Lisp programming language
71 @@ -28,5 +32,6 @@
72 </longdescription>
73 <use>
74 <flag name='nosource'>Don't include source code for CMUCL in installation</flag>
75 +<flag name='source'>Include source code for CMUCL in installation</flag>
76 </use>
77 </pkgmetadata>
78
79
80
81 1.1 dev-lisp/cmucl/cmucl-20b_p001.ebuild
82
83 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lisp/cmucl/cmucl-20b_p001.ebuild?rev=1.1&view=markup
84 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lisp/cmucl/cmucl-20b_p001.ebuild?rev=1.1&content-type=text/plain
85
86 Index: cmucl-20b_p001.ebuild
87 ===================================================================
88 # Copyright 1999-2011 Gentoo Foundation
89 # Distributed under the terms of the GNU General Public License v2
90 # $Header: /var/cvsroot/gentoo-x86/dev-lisp/cmucl/cmucl-20b_p001.ebuild,v 1.1 2011/04/28 20:21:33 grozin Exp $
91
92 EAPI=3
93 inherit eutils toolchain-funcs
94
95 MY_PV=${PV:0:3}
96
97 DESCRIPTION="CMU Common Lisp is an implementation of ANSI Common Lisp"
98 HOMEPAGE="http://www.cons.org/cmucl/"
99 SRC_URI="http://common-lisp.net/project/cmucl/downloads/release/${MY_PV}/cmucl-src-${MY_PV}.tar.bz2
100 http://common-lisp.net/project/cmucl/downloads/release/${MY_PV}/cmucl-${MY_PV}-x86-linux.tar.bz2"
101
102 LICENSE="public-domain"
103 SLOT="0"
104 KEYWORDS="~x86"
105 IUSE="X source sse2"
106
107 RDEPEND="x11-libs/openmotif"
108 DEPEND="${RDEPEND}
109 sys-devel/bc"
110 PDEPEND="dev-lisp/gentoo-init"
111
112 S="${WORKDIR}"
113
114 # glo_usev flagname [<if_yes> [<if_no>]]
115 # If $(use FLAGNAME) return true, echo IF_YES to standard output,
116 # otherwise echo IF_NO. IF_YES defaults to FLAGNAME if not specified
117 glo_usev() {
118 if [[ $# < 1 || $# > 3 ]]; then
119 echo "Usage: ${0} flag [if_yes [if_no]]"
120 die "${0}: wrong number of arguments: $#"
121 fi
122 local if_yes="${2:-${1}}" if_no="${3}"
123 if useq ${1} ; then
124 printf "%s" "${if_yes}"
125 return 0
126 else
127 printf "%s" "${if_no}"
128 return 1
129 fi
130 }
131
132 src_prepare() {
133 epatch "${FILESDIR}"/${MY_PV}-patch001.patch
134 epatch "${FILESDIR}"/fix-man-and-doc-installation.patch
135 epatch "${FILESDIR}"/${MY_PV}-execstack-fixes.patch
136 epatch "${FILESDIR}"/${MY_PV}-customize-lisp-implementation-version.patch
137 epatch "${FILESDIR}"/${MY_PV}-nositeinit-build.patch
138 }
139
140 src_compile() {
141 local cmufpu=$(glo_usev sse2 sse2 x87)
142 local cmuopts="$(glo_usev !X -u) -f ${cmufpu}"
143 local buildimage="bin/lisp -core lib/cmucl/lib/lisp-${cmufpu}.core -noinit -nositeinit -batch"
144 env CC="$(tc-getCC)" src/tools/build.sh -v "-gentoo-${PR}" -C "" -o "${buildimage}" ${cmuopts} || die "Cannot build the compiler"
145 }
146
147 src_install() {
148 env MANDIR=share/man/man1 DOCDIR=share/doc/${PF} \
149 src/tools/make-dist.sh -S -g -G root -O root build-4 ${MY_PV} x86 linux \
150 || die "Cannot build installation archive"
151 # Necessary otherwise tar will fail
152 dodir /usr
153 pushd "${D}"/usr
154 tar xzpf "${WORKDIR}"/cmucl-${MY_PV}-x86-linux.tar.gz \
155 || die "Cannot install main system"
156 if use X ; then
157 tar xzpf "${WORKDIR}"/cmucl-${MY_PV}-x86-linux.extra.tar.gz \
158 || die "Cannot install extra files"
159 fi
160 if use source; then
161 # Necessary otherwise tar will fail
162 dodir /usr/share/common-lisp/source/${PN}
163 cd "${D}"/usr/share/common-lisp/source/${PN}
164 tar --strip-components 1 -xzpf "${WORKDIR}"/cmucl-src-${MY_PV}.tar.gz \
165 || die "Cannot install sources"
166 fi
167 popd
168
169 # Install site config file
170 sed "s,@PF@,${PF},g ; s,@VERSION@,$(date +%F),g" \
171 < "${FILESDIR}"/site-init.lisp.in \
172 > "${D}"/usr/$(get_libdir)/cmucl/site-init.lisp \
173 || die "Cannot fix site-init.lisp"
174 insinto /etc
175 doins "${FILESDIR}"/cmuclrc || die "Failed to install cmuclrc"
176 }