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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Fri Apr 15 19:33:01 2005 UTC (14 years, 6 months ago) by mkennedy
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +1 -1 lines
FILE REMOVED
(Portage version: 2.0.51.19)

1 # Copyright 1999-2005 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.31.ebuild,v 1.10 2005/01/02 07:33:19 mkennedy Exp $
4
5 inherit eutils gcc
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="x86"
14 IUSE="X fastcgi ldap nls postgres readline"
15
16 DEPEND="dev-libs/libsigsegv
17 dev-lisp/common-lisp-controller
18 fastcgi? ( dev-libs/fcgi )
19 postgres? ( dev-db/postgresql )
20 X? ( virtual/x11 )
21 ldap? ( net-nds/openldap )
22 readline? ( sys-libs/readline )
23 nls? ( sys-devel/gettext )"
24
25 src_unpack() {
26 unpack ${A}
27 epatch ${FILESDIR}/${PV}/bindings-glibc-linux.lisp-gentoo.patch
28 epatch ${FILESDIR}/${PV}/bindings-wildcard-fnmatch.c-gentoo.patch
29 epatch ${FILESDIR}/${PV}/fastcgi-Makefile.in-gentoo.patch
30 }
31
32 src_compile() {
33 export CC="$(gcc-getCC) ${CFLAGS}"
34 unset CFLAGS CXXFLAGS
35 local myconf="--with-dynamic-ffi
36 --with-unicode
37 --with-module=regexp
38 --with-module=syscalls
39 --with-module=wildcard
40 --with-module=bindings/glibc"
41 use readline || myconf="${myconf} --with-noreadline"
42 use nls || myconf="${myconf} --with-nogettext"
43 use X && myconf="${myconf} --with-module=clx/new-clx"
44 use postgres && myconf="${myconf} --with-module=postgresql"
45 use fastcgi && myconf="${myconf} --with-module=fastcgi"
46 # the following modules are not supported
47 # use ldap && myconf="${myconf} --with-module=dirkey"
48 # use threads && myconf="${myconf} --with-threads=POSIX_THREADS"
49 ./configure --prefix=/usr ${myconf} build || die "./configure failed"
50 cd build
51 ./makemake ${myconf} >Makefile
52 make config.lisp
53 sed 's,"vi","nano",g' <config.lisp >config.gentoo && mv config.gentoo config.lisp || die
54 make || die
55 }
56
57 src_install() {
58 cd build && make DESTDIR=${D} prefix=/usr install-bin || die
59
60 doman clisp.1
61 dodoc SUMMARY README* NEWS MAGIC.add GNU-GPL COPYRIGHT \
62 ANNOUNCE clisp.dvi clisp.html
63
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
68 # install common-lisp-controller profile
69 exeinto /usr/lib/common-lisp/bin
70 doexe ${FILESDIR}/clisp.sh
71 insinto /usr/lib/clisp
72 doins ${FILESDIR}/install-clc.lisp
73
74 keepdir /usr/lib/common-lisp/clisp
75 }
76
77 pkg_preinst() {
78 local clisp_dir=/usr/lib/clisp
79 local old_mem=$clisp_dir/full/lispinit.mem
80 local new_mem=$clisp_dir/full/lispinit-new.mem
81 local clean_mem=$clisp_dir/full/lispinit-clean.mem
82 local lisp_run=$clisp_dir/full/lisp.run
83
84 rm -f $old_mem $new_mem $clean_mem $lisp_run
85 }
86
87 pkg_postinst() {
88 chown cl-builder:cl-builder /usr/lib/common-lisp/clisp
89 rm -rf /usr/lib/common-lisp/clisp/*
90 /usr/bin/clc-autobuild-impl clisp yes
91 /usr/sbin/register-common-lisp-implementation clisp
92 }
93
94 pkg_prerm() {
95 rm -rf /usr/lib/common-lisp/clisp/*
96 }

  ViewVC Help
Powered by ViewVC 1.1.20