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

Contents of /dev-lisp/clisp/clisp-2.39.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, 6 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.39.ebuild,v 1.4 2007/07/22 10:36:10 grobian Exp $
4
5 inherit flag-o-matic common-lisp-common-2 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 >=dev-lisp/common-lisp-controller-4.27
18 sys-devel/gettext
19 virtual/tetex
20 fastcgi? ( dev-libs/fcgi )
21 postgres? ( >=dev-db/postgresql-8.0 )
22 readline? ( sys-libs/readline )
23 pcre? ( dev-libs/libpcre )
24 zlib? ( sys-libs/zlib )
25 X? ( new-clx? ( x11-libs/libXpm ) )"
26
27 DEPEND="${RDEPEND}
28 X? ( new-clx? ( x11-misc/imake x11-proto/xextproto ) )"
29
30 PROVIDE="virtual/commonlisp"
31
32 pkg_setup() {
33 if use X; then
34 if use new-clx; then
35 einfo "CLISP will be built with NEW-CLX support which is a C binding to Xorg libraries."
36 else
37 einfo "CLISP will be built with MIT-CLX support."
38 fi
39 fi
40 }
41
42 src_unpack() {
43 unpack ${A}
44 epatch ${FILESDIR}/${PV}/fastcgi-Makefile-gentoo.patch
45 }
46
47 src_compile() {
48 CC="$(tc-getCC)"
49 local myconf="--with-dynamic-ffi
50 --with-module=wildcard
51 --with-module=rawsock"
52 use elibc_glibc && myconf="${myconf} --with-module=bindings/glibc"
53 use readline || myconf="${myconf} --with-noreadline"
54 if use X; then
55 if use new-clx; then
56 myconf="${myconf} --with-module=clx/new-clx"
57 else
58 myconf="${myconf} --with-module=clx/mit-clx"
59 fi
60 fi
61 if use postgres; then
62 myconf="${myconf} --with-module=postgresql"
63 CC="${CC} -I $(pg_config --includedir)"
64 fi
65 use fastcgi && myconf="${myconf} --with-module=fastcgi"
66 use pcre && myconf="${myconf} --with-module=pcre"
67 use zlib && myconf="${myconf} --with-module=zlib"
68 einfo "Configuring with ${myconf}"
69 ./configure --prefix=/usr ${myconf} build || die "./configure failed"
70 cd build
71 ./makemake ${myconf} >Makefile
72 emake -j1 config.lisp
73 sed -i 's,"vi","nano",g' config.lisp
74 sed -i 's,http://www.lisp.org/HyperSpec/,http://www.lispworks.com/reference/HyperSpec/,g' config.lisp
75 emake -j1 || die
76 }
77
78 src_install() {
79 pushd build
80 make DESTDIR=${D} prefix=/usr install-bin || die
81 doman clisp.1
82 dodoc SUMMARY README* NEWS MAGIC.add GNU-GPL COPYRIGHT \
83 ANNOUNCE clisp.dvi clisp.html
84 rm -f ${D}/usr/lib/clisp/base/*
85 (cd ${D}/usr/lib/clisp/base && ln -s ../full/* .)
86 chmod a+x ${D}/usr/lib/clisp/clisp-link
87 popd
88 # install common-lisp-controller profile
89 exeinto /usr/lib/common-lisp/bin
90 doexe ${FILESDIR}/${PV}/clisp.sh
91 insinto /usr/lib/clisp
92 doins ${FILESDIR}/${PV}/install-clc.lisp
93 dodoc ${FILESDIR}/${PV}/README.Gentoo
94 keepdir /usr/lib/common-lisp/clisp
95
96 dohtml doc/impnotes.{css,html}
97 dohtml build/clisp.html
98 dohtml doc/clisp.png
99 dodoc build/clisp.{ps,pdf}
100 dodoc doc/{editors,CLOS-guide,LISP-tutorial}.txt
101 }
102
103 pkg_preinst() {
104 local clisp_dir=/usr/lib/clisp
105 local old_mem=$clisp_dir/full/lispinit.mem
106 local new_mem=$clisp_dir/full/lispinit-new.mem
107 local clean_mem=$clisp_dir/full/lispinit-clean.mem
108 local lisp_run=$clisp_dir/full/lisp.run
109 rm -f $old_mem $new_mem $clean_mem $lisp_run
110 }
111
112 pkg_postinst() {
113 standard-impl-postinst clisp
114 }
115
116 pkg_postrm() {
117 standard-impl-postrm clisp /usr/bin/clisp
118 }
119
120 pkg_postrm() {
121 if [ ! -x /usr/bin/clisp ]; then
122 rm -rf /usr/lib/clisp/ || die
123 fi
124 }

  ViewVC Help
Powered by ViewVC 1.1.20