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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (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.3: +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.42.ebuild,v 1.3 2007/10/17 14:09:32 hkbst Exp $
4
5 inherit flag-o-matic eutils toolchain-funcs multilib
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 new-clx fastcgi pcre postgres readline zlib"
15
16 RDEPEND=">=dev-libs/libsigsegv-2.4
17 virtual/tetex
18 fastcgi? ( dev-libs/fcgi )
19 postgres? ( >=dev-db/postgresql-8.0 )
20 readline? ( sys-libs/readline )
21 pcre? ( dev-libs/libpcre )
22 zlib? ( sys-libs/zlib )
23 X? ( new-clx? ( x11-libs/libXpm ) )"
24 # * GNU gettext
25 # + Not needed on systems with glibc 2.2 or newer, but recommended on all
26 # other systems: needed if you want clisp with native language support.
27 # sys-devel/gettext
28
29 DEPEND="${RDEPEND} X? ( new-clx? ( x11-misc/imake x11-proto/xextproto ) )"
30
31 PROVIDE="virtual/commonlisp"
32
33 BUILDDIR="builddir"
34
35 src_compile() {
36 CC="$(tc-getCC)"
37 local myconf="--with-dynamic-ffi --with-module=wildcard --with-module=rawsock"
38 use elibc_glibc && myconf="${myconf} --with-module=bindings/glibc"
39 use readline || myconf="${myconf} --with-noreadline"
40 if use X; then
41 if use new-clx; then
42 myconf="${myconf} --with-module=clx/new-clx"
43 else
44 myconf="${myconf} --with-module=clx/mit-clx"
45 fi
46 fi
47 if use postgres; then
48 myconf="${myconf} --with-module=postgresql"
49 CC="${CC} -I $(pg_config --includedir)"
50 fi
51 use fastcgi && myconf="${myconf} --with-module=fastcgi"
52 use pcre && myconf="${myconf} --with-module=pcre"
53 use zlib && myconf="${myconf} --with-module=zlib"
54
55 # configure chokes on --infodir option
56 ./configure --prefix=/usr --libdir=/usr/$(get_libdir) \
57 ${myconf} ${BUILDDIR} || die "./configure failed"
58 cd ${BUILDDIR}
59 ./makemake ${myconf} >Makefile
60 emake config.lisp
61 sed -i 's,"vi","nano",g' config.lisp
62 # parallel build fails
63 emake -j1 || die "emake failed"
64 }
65
66 src_install() {
67 pushd ${BUILDDIR}
68 make DESTDIR="${D}" prefix=/usr install-bin || die
69 doman clisp.1
70 dodoc SUMMARY README* NEWS MAGIC.add ANNOUNCE clisp.dvi clisp.html
71 chmod a+x "${D}"/usr/$(get_libdir)/clisp/clisp-link
72 popd
73 dohtml doc/impnotes.{css,html} ${BUILDDIR}/clisp.html doc/clisp.png
74 dodoc ${BUILDDIR}/clisp.ps doc/{editors,CLOS-guide,LISP-tutorial}.txt
75 }

  ViewVC Help
Powered by ViewVC 1.1.20