/[gentoo-x86]/dev-lisp/cmucl/cmucl-19d_p2.ebuild
Gentoo

Contents of /dev-lisp/cmucl/cmucl-19d_p2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Wed Oct 24 19:07:00 2012 UTC (23 months, 4 weeks ago) by ulm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +3 -3 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-19d_p2.ebuild,v 1.5 2010/12/17 20:17:43 ulm Exp $
4
5 EAPI=1
6
7 inherit common-lisp-common-3 eutils toolchain-funcs
8
9 MY_PV=${PV:0:3}
10 MY_PVL=${PV}
11
12 DESCRIPTION="CMU Common Lisp is an implementation of ANSI Common Lisp"
13 HOMEPAGE="http://www.cons.org/cmucl/"
14 SRC_URI="http://common-lisp.net/project/cmucl/downloads/release/${MY_PV}/cmucl-src-${MY_PV}.tar.bz2
15 http://common-lisp.net/project/cmucl/downloads/release/${MY_PV}/cmucl-${MY_PV}-x86-linux.tar.bz2"
16
17 LICENSE="public-domain"
18 SLOT="0"
19 KEYWORDS="~x86"
20 IUSE=""
21
22 DEPEND=">=x11-libs/motif-2.3:0
23 sys-devel/bc"
24
25 S=${WORKDIR}
26
27 src_unpack() {
28 unpack ${A}
29 epatch "${FILESDIR}/${MY_PV}-gentoo.patch"
30 epatch "${FILESDIR}/${MY_PV}-cmucl-patch-002.patch"
31 find "${S}" -type f \( -name \*.sh -o -name linux-nm \) \
32 -exec chmod +x '{}' \;
33 sed -i -e "s,CC = .*,CC = $(tc-getCC),g" src/lisp/Config.linux_gencgc
34 sed -i -e 's,"time","",g' src/tools/build.sh
35 sed -i -e "s,@CFLAGS@,$CFLAGS,g" src/lisp/Config.linux_gencgc src/motif/server/Config.x86
36 }
37
38 src_compile() {
39 export SANDBOX_ON=0
40 src/tools/build.sh -C "" -o "bin/lisp -core lib/cmucl/lib/lisp.core -batch -noinit -nositeinit" || die
41 }
42
43 src_install() {
44 src/tools/make-dist.sh -g -G root -O root build-4 ${MY_PVL} x86 linux
45 dodir /usr/share/doc
46 for i in cmucl-${MY_PVL}-x86-linux.{,extra.}tar.gz; do
47 tar xzpf $i -C "${D}"/usr
48 done
49 mv "${D}"/usr/doc "${D}"/usr/share/doc/${PF}
50 mv "${D}"/usr/man "${D}"/usr/share/
51 impl-save-timestamp-hack cmucl || die
52 }
53
54 pkg_postinst() {
55 standard-impl-postinst cmucl
56 }
57
58 pkg_postrm() {
59 standard-impl-postrm cmucl /usr/bin/lisp
60 }
61
62 # pkg_postrm() {
63 # if [ ! -x /usr/bin/lisp ]; then
64 # rm -rf /usr/lib/cmucl/ || die
65 # fi
66 # }

  ViewVC Help
Powered by ViewVC 1.1.20