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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (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.9: +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.41.ebuild,v 1.9 2007/09/09 18:01:53 josejx Exp $
4
5 inherit flag-o-matic 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 new-clx fastcgi pcre postgres readline zlib"
15
16 RDEPEND=">=dev-libs/libsigsegv-2.4
17 sys-devel/gettext
18 virtual/tetex
19 fastcgi? ( dev-libs/fcgi )
20 postgres? ( >=dev-db/postgresql-8.0 )
21 readline? ( sys-libs/readline )
22 pcre? ( dev-libs/libpcre )
23 zlib? ( sys-libs/zlib )
24 X? ( new-clx? ( x11-libs/libXpm ) )"
25
26 DEPEND="${RDEPEND}
27 X? ( new-clx? ( x11-misc/imake x11-proto/xextproto ) )"
28
29 PROVIDE="virtual/commonlisp"
30
31 pkg_setup() {
32 if use X; then
33 if use new-clx; then
34 elog "CLISP will be built with NEW-CLX support which is a C binding to Xorg libraries."
35 else
36 elog "CLISP will be built with MIT-CLX support."
37 fi
38 fi
39 }
40
41 src_unpack() {
42 unpack ${A}
43 cd "${S}"
44 epatch ${FILESDIR}/2.41-fastcgi-Makefile-gentoo.patch
45 epatch ${FILESDIR}/2.41-fastcgi-build.patch
46 epatch ${FILESDIR}/2.41-linux-headers.patch
47 }
48
49 src_compile() {
50 CC="$(tc-getCC)"
51 local myconf="--with-dynamic-ffi
52 --with-module=wildcard
53 --with-module=rawsock"
54 use elibc_glibc && myconf="${myconf} --with-module=bindings/glibc"
55 use readline || myconf="${myconf} --with-noreadline"
56 if use X; then
57 if use new-clx; then
58 myconf="${myconf} --with-module=clx/new-clx"
59 else
60 myconf="${myconf} --with-module=clx/mit-clx"
61 fi
62 fi
63 if use postgres; then
64 myconf="${myconf} --with-module=postgresql"
65 CC="${CC} -I $(pg_config --includedir)"
66 fi
67 use fastcgi && myconf="${myconf} --with-module=fastcgi"
68 use pcre && myconf="${myconf} --with-module=pcre"
69 use zlib && myconf="${myconf} --with-module=zlib"
70 einfo "Configuring with ${myconf}"
71 ./configure --prefix=/usr ${myconf} build || die "./configure failed"
72 cd build
73 ./makemake ${myconf} >Makefile
74 emake -j1 config.lisp
75 sed -i 's,"vi","nano",g' config.lisp
76 sed -i 's,http://www.lisp.org/HyperSpec/,http://www.lispworks.com/reference/HyperSpec/,g' config.lisp
77 emake -j1 || die
78 }
79
80 src_install() {
81 pushd build
82 make DESTDIR=${D} prefix=/usr install-bin || die
83 doman clisp.1
84 dodoc SUMMARY README* NEWS MAGIC.add GNU-GPL COPYRIGHT \
85 ANNOUNCE clisp.dvi clisp.html
86 chmod a+x ${D}/usr/lib/clisp/clisp-link
87 popd
88 dohtml doc/impnotes.{css,html}
89 dohtml build/clisp.html
90 dohtml doc/clisp.png
91 dodoc build/clisp.ps
92 dodoc doc/{editors,CLOS-guide,LISP-tutorial}.txt
93 }

  ViewVC Help
Powered by ViewVC 1.1.20