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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Wed Jul 29 11:32:46 2009 UTC (10 years, 2 months ago) by hkbst
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
remove old versions
(Portage version: 2.1.6.13/cvs/Linux x86_64)

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

  ViewVC Help
Powered by ViewVC 1.1.20