diff options
author | Matthew Kennedy <mkennedy@gentoo.org> | 2006-12-11 06:43:24 +0000 |
---|---|---|
committer | Matthew Kennedy <mkennedy@gentoo.org> | 2006-12-11 06:43:24 +0000 |
commit | 7b272c8336ac9089d1f721382a2ad9bf1eb472b5 (patch) | |
tree | bcc873c68d7577b413b64de28d4731d42d6b9aae /dev-lisp/cmucl/cmucl-19d_p2.ebuild | |
parent | Version bump (diff) | |
download | gentoo-2-7b272c8336ac9089d1f721382a2ad9bf1eb472b5.tar.gz gentoo-2-7b272c8336ac9089d1f721382a2ad9bf1eb472b5.tar.bz2 gentoo-2-7b272c8336ac9089d1f721382a2ad9bf1eb472b5.zip |
New upstream version.
(Portage version: 2.1.2_rc3)
Diffstat (limited to 'dev-lisp/cmucl/cmucl-19d_p2.ebuild')
-rw-r--r-- | dev-lisp/cmucl/cmucl-19d_p2.ebuild | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/dev-lisp/cmucl/cmucl-19d_p2.ebuild b/dev-lisp/cmucl/cmucl-19d_p2.ebuild new file mode 100644 index 000000000000..5a9f8ac22873 --- /dev/null +++ b/dev-lisp/cmucl/cmucl-19d_p2.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lisp/cmucl/cmucl-19d_p2.ebuild,v 1.1 2006/12/11 06:43:24 mkennedy Exp $ + +inherit common-lisp-common-3 eutils toolchain-funcs + +MY_PV=${PV:0:3} +MY_PVL=${PV} + +DESCRIPTION="CMU Common Lisp is an implementation of ANSI Common Lisp" +HOMEPAGE="http://www.cons.org/cmucl/" +SRC_URI="http://common-lisp.net/project/cmucl/downloads/release/${MY_PV}/cmucl-src-${MY_PV}.tar.bz2 + http://common-lisp.net/project/cmucl/downloads/release/${MY_PV}/cmucl-${MY_PV}-x86-linux.tar.bz2" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="~x86" +IUSE="doc lesstif source" + +DEPEND="lesstif? ( x11-libs/lesstif ) + !lesstif? ( x11-libs/openmotif ) + sys-devel/bc" + +PROVIDE="virtual/commonlisp" + +S=${WORKDIR} + +src_unpack() { + unpack ${A} + epatch ${FILESDIR}/${MY_PV}-gentoo.patch || die + epatch ${FILESDIR}/${MY_PV}-cmucl-patch-002.patch || die + find ${S} -type f \( -name \*.sh -o -name linux-nm \) \ + -exec chmod +x '{}' \; + # non-x86 maintainers, add to the the following and verify + if use lesstif || test -d /usr/X11R6/include/lesstif; then + sed -i -e 's,-I/usr/X11R6/include,-I/usr/X11R6/include/lesstif,g' \ + -e 's,-L/usr/X11R6/lib,-L/usr/X11R6/lib/lesstif -L/usr/X11R6/lib,g' \ + src/motif/server/Config.x86 + fi + sed -i -e "s,CC = .*,CC = $(tc-getCC),g" src/lisp/Config.linux_gencgc + sed -i -e 's,"time","",g' src/tools/build.sh + sed -i -e "s,@CFLAGS@,$CFLAGS,g" src/lisp/Config.linux_gencgc src/motif/server/Config.x86 +} + +src_compile() { + export SANDBOX_ON=0 + src/tools/build.sh -C "" -o "bin/lisp -core lib/cmucl/lib/lisp.core -batch -noinit -nositeinit" || die +} + +src_install() { + src/tools/make-dist.sh -g -G root -O root build-4 ${MY_PVL} x86 linux + dodir /usr/share/doc + for i in cmucl-${MY_PVL}-x86-linux.{,extra.}tar.gz; do + tar xzpf $i -C ${D}/usr + done + mv ${D}/usr/doc ${D}/usr/share/doc/${PF} + mv ${D}/usr/man ${D}/usr/share/ + impl-save-timestamp-hack cmucl || die +} + +pkg_postinst() { + standard-impl-postinst cmucl +} + +pkg_postrm() { + standard-impl-postrm cmucl /usr/bin/lisp +} + +# pkg_postrm() { +# if [ ! -x /usr/bin/lisp ]; then +# rm -rf /usr/lib/cmucl/ || die +# fi +# } |