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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Wed Oct 24 19:07:00 2012 UTC (17 months, 3 weeks ago) by ulm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +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-19c.ebuild,v 1.10 2010/12/17 20:17:43 ulm Exp $
4
5 EAPI=1
6
7 inherit common-lisp-common-2 eutils toolchain-funcs
8
9 DEB_PV=1
10 MY_PV=${PV}-release-20051115
11
12 DESCRIPTION="CMU Common Lisp is an implementation of ANSI Common Lisp"
13 HOMEPAGE="http://www.cons.org/cmucl/
14 http://packages.debian.org/unstable/devel/cmucl.html"
15 SRC_URI="mirror://gentoo/cmucl_${MY_PV}.orig.tar.gz
16 mirror://gentoo/cmucl_${MY_PV}-${DEB_PV}.diff.gz
17 mirror://gentoo/${P}-x86-linux.tar.bz2"
18
19 LICENSE="public-domain"
20 SLOT="0"
21 KEYWORDS="x86"
22 IUSE="doc nosource"
23
24 DEPEND=">=dev-lisp/common-lisp-controller-4
25 doc? ( virtual/latex-base )
26 >=x11-libs/motif-2.3:0
27 sys-devel/bc"
28
29 S=${WORKDIR}/cmucl-${MY_PV}.orig
30
31 src_unpack() {
32 unpack ${A}
33 epatch cmucl_${MY_PV}-${DEB_PV}.diff
34 epatch "${FILESDIR}/${PV}/herald-save.lisp-gentoo.patch"
35
36 find "${S}" -type f \( -name \*.sh -o -name linux-nm \) \
37 -exec chmod +x '{}' \;
38 }
39
40 src_compile() {
41 export SANDBOX_ON=0
42
43 sed -i -e "s,CC = .*,CC = $(tc-getCC),g" \
44 src/lisp/Config.linux_gencgc
45
46 PATH=${WORKDIR}/bin:$PATH CMUCLCORE=${WORKDIR}/lib/cmucl/lib/lisp.core make || die
47
48 if use doc; then
49 make -C src/docs
50 fi
51 }
52
53 src_install() {
54 insinto /usr/lib/cmucl/include
55 doins src/lisp/*.h target/lisp/*.h target/lisp/*.map target/lisp/*.nm
56 insinto /usr/lib/cmucl
57 cp target/lisp/lisp.core lisp-dist.core
58 doins lisp-dist.core
59
60 dodoc target/lisp/lisp.{nm,map}
61 doman src/general-info/{cmucl,lisp}.1
62
63 dobin target/lisp/lisp
64 dobin own-work/Demos/lisp-start
65
66 insinto /usr/lib/cmucl
67 doins own-work/install-clc.lisp
68 exeinto /usr/lib/common-lisp/bin
69 newexe own-work/cmucl-script.sh cmucl.sh
70
71 insinto /etc/common-lisp/cmucl
72 sed "s,@PF@,${PF},g" <"${FILESDIR}/${PV}/site-init.lisp.in" >site-init.lisp
73 doins site-init.lisp
74 dosym /etc/common-lisp/cmucl/site-init.lisp /usr/lib/cmucl/site-init.lisp
75
76 dodir /etc/env.d
77 cat >"${D}"/etc/env.d/50cmucl <<EOF
78 # CMUCLLIB=/usr/lib/cmucl
79 EOF
80 [ -f /etc/lisp-config.lisp ] || touch "${D}"/etc/lisp-config.lisp
81
82 insinto /usr/share/doc/${P}/html/Basic-tutorial
83 doins own-work/tutorials/Basic-tutorial/*
84 insinto /usr/share/doc/${P}/html/Clos
85 doins own-work/tutorials/Clos/*
86 docinto notes
87 dodoc own-work/tutorials/notes/*
88
89 insinto /usr/lib/cmucl
90 doins own-work/hemlock11.*
91
92 if use doc; then
93 dodoc src/docs/*/*.{ps,pdf}
94 fi
95
96 exeinto /usr/lib/cmucl
97 doexe target/motif/server/motifd
98
99 # subsystems
100 insinto /usr/lib/cmucl/subsystems/
101 doins target/interface/clm-library.x86f \
102 target/pcl/simple-streams-library.x86f \
103 target/pcl/iodefs-library.x86f \
104 target/pcl/gray-compat-library.x86f \
105 target/hemlock/hemlock-library.x86f \
106 target/pcl/gray-streams-library.x86f \
107 target/clx/clx-library.x86f
108
109 # Previously installed from dev-lisp/cmucl-source
110 if ! use nosource; then
111 dodir /usr/share/common-lisp/source/cmucl
112 (cd src ; find . -name \*.lisp -and -type f | tar --create --file=- --files-from=- ) |\
113 tar --extract --file=- -C "${D}"/usr/share/common-lisp/source/cmucl
114 dodir /usr/share/common-lisp/systems
115 fi
116
117 # cmucl-graystream
118 insinto /usr/share/common-lisp/source/cmucl-graystream
119 doins src/pcl/gray-streams* own-work/cmucl-graystream.asd
120 dosym /usr/share/common-lisp/source/cmucl-graystream/cmucl-graystream.asd \
121 /usr/share/common-lisp/systems/
122
123 # cmucl-clx
124 insinto /usr/share/common-lisp/source/cmucl-clx
125 cp -r src/clx/*.lisp own-work/cmucl-clx.asd \
126 src/code/clx-ext.lisp \
127 src/hemlock/charmacs.lisp \
128 src/hemlock/key-event.lisp \
129 src/hemlock/keysym-defs.lisp \
130 "${D}"/usr/share/common-lisp/source/cmucl-clx
131 insinto /usr/share/common-lisp/source/cmucl-clx/debug
132 doins src/clx/debug/*.lisp
133 insinto /usr/share/common-lisp/source/cmucl-clx/demo
134 doins src/clx/demo/*.lisp
135 insinto /usr/share/common-lisp/source/cmucl-clx/test
136 doins src/clx/test/*.lisp
137 # find ${D}/usr/share/common-lisp/source/cmucl-clx -type f -print0 | xargs -0 chmod 644
138 # find ${D}/usr/share/common-lisp/source/cmucl-clx -type d -print0 | xargs -0 chmod 755
139 dosym /usr/share/common-lisp/source/cmucl-clx/cmucl-clx.asd \
140 /usr/share/common-lisp/systems/
141
142 keepdir /usr/lib/common-lisp/cmucl
143 impl-save-timestamp-hack cmucl || die
144 }
145
146 pkg_postinst() {
147 standard-impl-postinst cmucl
148 register-common-lisp-source cmucl-graystream
149 register-common-lisp-source cmucl-clx
150 }
151
152 pkg_prerm() {
153 standard-impl-postrm cmucl /usr/bin/lisp
154 unregister-common-lisp-source cmucl-graystream
155 unregister-common-lisp-source cmucl-clx
156 }
157
158 pkg_postrm() {
159 if [ ! -x /usr/bin/lisp ]; then
160 rm -rf /usr/lib/cmucl/ || die
161 fi
162 }

  ViewVC Help
Powered by ViewVC 1.1.20