/[gentoo-x86]/dev-lisp/clisp/clisp-2.38.ebuild
Gentoo

Contents of /dev-lisp/clisp/clisp-2.38.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Tue May 13 11:36:55 2008 UTC (11 years, 5 months ago) by hkbst
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
drop old versions
(Portage version: 2.1.5_rc10)

1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-lisp/clisp/clisp-2.38.ebuild,v 1.5 2007/07/22 10:36:10 grobian Exp $
4
5 inherit flag-o-matic common-lisp-common-2 eutils toolchain-funcs
6
7 DESCRIPTION="A portable, bytecode-compiled implementation of Common Lisp"
8 HOMEPAGE="http://clisp.sourceforge.net/"
9 SRC_URI="mirror://sourceforge/clisp/${P}.tar.bz2"
10
11 LICENSE="GPL-2"
12 SLOT="2"
13 KEYWORDS="~amd64 ppc -sparc x86"
14 IUSE="X fastcgi pcre postgres readline zlib"
15
16 RDEPEND="dev-libs/libsigsegv
17 >=dev-lisp/common-lisp-controller-4.27
18 sys-devel/gettext
19 virtual/tetex
20 fastcgi? ( dev-libs/fcgi )
21 postgres? ( >=dev-db/postgresql-8.0 )
22 X? ( x11-libs/libXpm )
23 readline? ( sys-libs/readline )
24 pcre? ( dev-libs/libpcre )
25 zlib? ( sys-libs/zlib )"
26 DEPEND="${RDEPEND}
27 X? ( x11-proto/xextproto )"
28
29 PROVIDE="virtual/commonlisp"
30
31 src_compile() {
32 # Let CLISP use its own set of optimizations
33 unset CFLAGS CXXFLAGS
34 CC="$(tc-getCC)"
35 local myconf="--with-dynamic-ffi
36 --with-module=wildcard
37 --with-module=rawsock"
38 use elibc_glibc && myconf="${myconf} --with-module=bindings/glibc"
39 use readline || myconf="${myconf} --with-noreadline"
40 use X && myconf="${myconf} --with-module=clx/new-clx"
41 if use postgres; then
42 myconf="${myconf} --with-module=postgresql"
43 CC="${CC} -I $(pg_config --includedir)"
44 fi
45 use fastcgi && myconf="${myconf} --with-module=fastcgi"
46 use pcre && myconf="${myconf} --with-module=pcre"
47 use zlib && myconf="${myconf} --with-module=zlib"
48 einfo "Configuring with ${myconf}"
49 ./configure --prefix=/usr ${myconf} build || die "./configure failed"
50 cd build
51 ./makemake ${myconf} >Makefile
52 emake -j1 config.lisp
53 sed -i 's,"vi","nano",g' config.lisp
54 sed -i 's,http://www.lisp.org/HyperSpec/,http://www.lispworks.com/reference/HyperSpec/,g' config.lisp
55 emake -j1 || die
56 }
57
58 src_install() {
59 pushd build
60 make DESTDIR=${D} prefix=/usr install-bin || die
61 doman clisp.1
62 dodoc SUMMARY README* NEWS MAGIC.add GNU-GPL COPYRIGHT \
63 ANNOUNCE clisp.dvi clisp.html
64 rm -f ${D}/usr/lib/clisp/base/*
65 (cd ${D}/usr/lib/clisp/base && ln -s ../full/* .)
66 chmod a+x ${D}/usr/lib/clisp/clisp-link
67 popd
68 # install common-lisp-controller profile
69 exeinto /usr/lib/common-lisp/bin
70 doexe ${FILESDIR}/${PV}/clisp.sh
71 insinto /usr/lib/clisp
72 doins ${FILESDIR}/${PV}/install-clc.lisp
73 dodoc ${FILESDIR}/${PV}/README.Gentoo
74 keepdir /usr/lib/common-lisp/clisp
75
76 dohtml doc/impnotes.{css,html}
77 dohtml build/clisp.html
78 dohtml doc/clisp.png
79 dodoc build/clisp.{ps,pdf}
80 dodoc doc/{editors,CLOS-guide,LISP-tutorial}.txt
81 }
82
83 pkg_preinst() {
84 local clisp_dir=/usr/lib/clisp
85 local old_mem=$clisp_dir/full/lispinit.mem
86 local new_mem=$clisp_dir/full/lispinit-new.mem
87 local clean_mem=$clisp_dir/full/lispinit-clean.mem
88 local lisp_run=$clisp_dir/full/lisp.run
89 rm -f $old_mem $new_mem $clean_mem $lisp_run
90 }
91
92 pkg_postinst() {
93 standard-impl-postinst clisp
94 }
95
96 pkg_postrm() {
97 standard-impl-postrm clisp /usr/bin/clisp
98 }
99
100 pkg_postrm() {
101 if [ ! -x /usr/bin/clisp ]; then
102 rm -rf /usr/lib/clisp/ || die
103 fi
104 }

  ViewVC Help
Powered by ViewVC 1.1.20