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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (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.4: +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.43.ebuild,v 1.4 2007/12/08 16:54:36 drac 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 ~ppc64 -sparc ~x86"
14 IUSE="X new-clx fastcgi gdbm gtk pcre postgres readline svm zlib"
15
16 RDEPEND="dev-lisp/gentoo-init
17 >=dev-libs/libsigsegv-2.4
18 virtual/tetex
19 fastcgi? ( dev-libs/fcgi )
20 gdbm? ( sys-libs/gdbm )
21 gtk? ( >=x11-libs/gtk+-2.10 >=gnome-base/libglade-2.6 )
22 postgres? ( >=dev-db/postgresql-8.0 )
23 readline? ( sys-libs/readline )
24 pcre? ( dev-libs/libpcre )
25 svm? ( sci-libs/libsvm )
26 zlib? ( sys-libs/zlib )
27 X? ( new-clx? ( x11-libs/libXpm ) )"
28 # * GNU gettext
29 # + Not needed on systems with glibc 2.2 or newer, but recommended on all
30 # other systems: needed if you want clisp with native language support.
31 # sys-devel/gettext
32
33 DEPEND="${RDEPEND} X? ( new-clx? ( x11-misc/imake x11-proto/xextproto ) )"
34
35 PROVIDE="virtual/commonlisp"
36
37 enable_modules() {
38 [[ $# = 0 ]] && die "${FUNCNAME[0]} must receive at least one argument"
39 for m in "$@" ; do
40 einfo "enabling module $m"
41 myconf="${myconf} --with-module=${m}"
42 done
43 }
44
45 BUILDDIR="builddir"
46
47 src_compile() {
48 CC="$(tc-getCC)"
49
50 # built-in features
51 local myconf="--with-dynamic-ffi"
52 use readline || myconf="${myconf} --with-noreadline"
53
54 # default modules
55 enable_modules wildcard rawsock i18n
56 # optional modules
57 use elibc_glibc && enable_modules bindings/glibc
58 if use X; then
59 if use new-clx; then
60 enable_modules clx/new-clx
61 else
62 enable_modules clx/mit-clx
63 fi
64 fi
65 if use postgres; then
66 enable_modules postgresql
67 CC="${CC} -I $(pg_config --includedir)"
68 fi
69 use fastcgi && enable_modules fastcgi
70 use gdbm && enable_modules gdbm
71 use gtk && enable_modules gtk2
72 use pcre && enable_modules pcre
73 use svm && enable_modules libsvm
74 use zlib && enable_modules zlib
75
76 # configure chokes on --infodir option
77 ./configure --prefix=/usr --libdir=/usr/$(get_libdir) \
78 ${myconf} ${BUILDDIR} || die "./configure failed"
79 cd ${BUILDDIR}
80 ./makemake ${myconf} > Makefile
81 # emake config.lisp
82 # sed -i 's,"vi","nano",g' config.lisp
83 # parallel build fails
84 emake -j1 || die "emake failed"
85 }
86
87 src_install() {
88 pushd ${BUILDDIR}
89 make DESTDIR="${D}" prefix=/usr install-bin || die
90 doman clisp.1
91 dodoc SUMMARY README* NEWS MAGIC.add ANNOUNCE clisp.dvi clisp.html
92 chmod a+x "${D}"/usr/$(get_libdir)/clisp/clisp-link
93 popd
94 dohtml doc/impnotes.{css,html} ${BUILDDIR}/clisp.html doc/clisp.png
95 dodoc ${BUILDDIR}/clisp.ps doc/{editors,CLOS-guide,LISP-tutorial}.txt
96 }

  ViewVC Help
Powered by ViewVC 1.1.20