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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (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.2: +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-r1.ebuild,v 1.2 2007/12/22 19:18:34 nixnut 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 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 src_unpack() {
38 unpack ${A}
39 # Fix module install path: 2.41.1 -> 2.42
40 sed -i 's:2\.41\.1:2\.42:' "${S}"/src/{configure,version.h}
41 }
42
43 enable_modules() {
44 [[ $# = 0 ]] && die "${FUNCNAME[0]} must receive at least one argument"
45 for m in "$@" ; do
46 einfo "enabling module $m"
47 myconf="${myconf} --with-module=${m}"
48 done
49 }
50
51 BUILDDIR="builddir"
52
53 src_compile() {
54 CC="$(tc-getCC)"
55
56 # built-in features
57 local myconf="--with-dynamic-ffi"
58 use readline || myconf="${myconf} --with-noreadline"
59
60 # default modules
61 enable_modules wildcard rawsock i18n
62 # optional modules
63 use elibc_glibc && enable_modules bindings/glibc
64 if use X; then
65 if use new-clx; then
66 enable_modules clx/new-clx
67 else
68 enable_modules clx/mit-clx
69 fi
70 fi
71 if use postgres; then
72 enable_modules postgresql
73 CC="${CC} -I $(pg_config --includedir)"
74 fi
75 use fastcgi && enable_modules fastcgi
76 use gdbm && enable_modules gdbm
77 use gtk && enable_modules gtk2
78 use pcre && enable_modules pcre
79 use svm && enable_modules libsvm
80 use zlib && enable_modules zlib
81
82 # configure chokes on --infodir option
83 ./configure --prefix=/usr --libdir=/usr/$(get_libdir) \
84 ${myconf} ${BUILDDIR} || die "./configure failed"
85 cd ${BUILDDIR}
86 ./makemake ${myconf} > Makefile
87 # emake config.lisp
88 # sed -i 's,"vi","nano",g' config.lisp
89 # parallel build fails
90 emake -j1 || die "emake failed"
91 }
92
93 src_install() {
94 pushd ${BUILDDIR}
95 make DESTDIR="${D}" prefix=/usr install-bin || die
96 doman clisp.1
97 dodoc SUMMARY README* NEWS MAGIC.add ANNOUNCE clisp.dvi clisp.html
98 chmod a+x "${D}"/usr/$(get_libdir)/clisp/clisp-link
99 popd
100 dohtml doc/impnotes.{css,html} ${BUILDDIR}/clisp.html doc/clisp.png
101 dodoc ${BUILDDIR}/clisp.ps doc/{editors,CLOS-guide,LISP-tutorial}.txt
102 }

  ViewVC Help
Powered by ViewVC 1.1.20