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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (hide annotations) (download) (vendor branch)
Wed Nov 30 10:08:20 2005 UTC (13 years, 11 months ago) by chriswhite
Changes since 1.1: +2 -2 lines
*** empty log message ***

1 mkennedy 1.1 # Copyright 1999-2005 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 chriswhite 1.1.1.1 # $Header: /var/cvsroot/gentoo-x86/dev-lisp/clisp/clisp-2.35.ebuild,v 1.2 2005/11/15 14:21:15 gustavoz Exp $
4 mkennedy 1.1
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 chriswhite 1.1.1.1 KEYWORDS="~x86 ~ppc ~ppc-macos ~amd64 -sparc"
14 mkennedy 1.1 IUSE="X fastcgi pcre postgres readline zlib"
15    
16     DEPEND="dev-libs/libsigsegv
17     dev-lisp/common-lisp-controller
18     sys-devel/gettext
19     virtual/tetex
20     fastcgi? ( dev-libs/fcgi )
21     postgres? ( dev-db/postgresql )
22     X? ( virtual/x11 )
23     readline? ( sys-libs/readline )
24     pcre? ( dev-libs/libpcre )
25     zlib? ( sys-libs/zlib )"
26    
27     PROVIDE="virtual/commonlisp"
28    
29     src_compile() {
30     # Let CLISP use its own set of optimizations
31     unset CFLAGS CXXFLAGS
32     CC="$(tc-getCC)"
33     local myconf="--with-dynamic-ffi
34     --with-module=wildcard
35     --with-module=rawsock"
36     use ppc-macos || myconf="${myconf} --with-module=bindings/glibc"
37     use readline || myconf="${myconf} --with-noreadline"
38     use X && myconf="${myconf} --with-module=clx/new-clx"
39     if use postgres; then
40     myconf="${myconf} --with-module=postgresql"
41     CC="${CC} -I $(pg_config --includedir)"
42     fi
43     use fastcgi && myconf="${myconf} --with-module=fastcgi"
44     use pcre && myconf="${myconf} --with-module=pcre"
45     use zlib && myconf="${myconf} --with-module=zlib"
46     einfo "Configuring with ${myconf}"
47     ./configure --prefix=/usr ${myconf} build || die "./configure failed"
48     cd build
49     ./makemake ${myconf} >Makefile
50     emake -j1 config.lisp
51     sed -i 's,"vi","nano",g' config.lisp
52     sed -i 's,http://www.lisp.org/HyperSpec/,http://www.lispworks.com/reference/HyperSpec/,g' config.lisp
53     emake -j1 || die
54     }
55    
56     src_install() {
57     pushd build
58     make DESTDIR=${D} prefix=/usr install-bin || die
59     doman clisp.1
60     dodoc SUMMARY README* NEWS MAGIC.add GNU-GPL COPYRIGHT \
61     ANNOUNCE clisp.dvi clisp.html
62     rm -f ${D}/usr/lib/clisp/base/*
63     (cd ${D}/usr/lib/clisp/base && ln -s ../full/* .)
64     chmod a+x ${D}/usr/lib/clisp/clisp-link
65     popd
66     # install common-lisp-controller profile
67     exeinto /usr/lib/common-lisp/bin
68     doexe ${FILESDIR}/${PV}/clisp.sh
69     insinto /usr/lib/clisp
70     doins ${FILESDIR}/${PV}/install-clc.lisp
71     dodoc ${FILESDIR}/${PV}/README.Gentoo
72     keepdir /usr/lib/common-lisp/clisp
73     }
74    
75     pkg_preinst() {
76     local clisp_dir=/usr/lib/clisp
77     local old_mem=$clisp_dir/full/lispinit.mem
78     local new_mem=$clisp_dir/full/lispinit-new.mem
79     local clean_mem=$clisp_dir/full/lispinit-clean.mem
80     local lisp_run=$clisp_dir/full/lisp.run
81     rm -f $old_mem $new_mem $clean_mem $lisp_run
82     }
83    
84     pkg_postinst() {
85     standard-impl-postinst clisp
86     }
87    
88     pkg_postrm() {
89     standard-impl-postrm clisp /usr/bin/clisp
90     }
91    
92     pkg_postrm() {
93     if [ ! -x /usr/bin/clisp ]; then
94     rm -rf /usr/lib/clisp/ || die
95     fi
96     }

  ViewVC Help
Powered by ViewVC 1.1.20