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

Contents of /dev-lisp/clisp/clisp-2.38-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (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.5: +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.38-r2.ebuild,v 1.5 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
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 elog "CLISP will be built with NEW-CLX support which is a C binding to Xorg libraries."
36 else
37 elog "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 # Let CLISP use its own set of optimizations
49 unset CFLAGS CXXFLAGS
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 rm -f ${D}/usr/lib/clisp/base/*
87 (cd ${D}/usr/lib/clisp/base && ln -s ../full/* .)
88 chmod a+x ${D}/usr/lib/clisp/clisp-link
89 popd
90 # install common-lisp-controller profile
91 exeinto /usr/lib/common-lisp/bin
92 doexe ${FILESDIR}/${PV}/clisp.sh
93 insinto /usr/lib/clisp
94 doins ${FILESDIR}/${PV}/install-clc.lisp
95 dodoc ${FILESDIR}/${PV}/README.Gentoo
96 keepdir /usr/lib/common-lisp/clisp
97
98 dohtml doc/impnotes.{css,html}
99 dohtml build/clisp.html
100 dohtml doc/clisp.png
101 dodoc build/clisp.{ps,pdf}
102 dodoc doc/{editors,CLOS-guide,LISP-tutorial}.txt
103 }
104
105 pkg_preinst() {
106 local clisp_dir=/usr/lib/clisp
107 local old_mem=$clisp_dir/full/lispinit.mem
108 local new_mem=$clisp_dir/full/lispinit-new.mem
109 local clean_mem=$clisp_dir/full/lispinit-clean.mem
110 local lisp_run=$clisp_dir/full/lisp.run
111 rm -f $old_mem $new_mem $clean_mem $lisp_run
112 }
113
114 pkg_postinst() {
115 standard-impl-postinst clisp
116 }
117
118 pkg_postrm() {
119 standard-impl-postrm clisp /usr/bin/clisp
120 }
121
122 pkg_postrm() {
123 if [ ! -x /usr/bin/clisp ]; then
124 rm -rf /usr/lib/clisp/ || die
125 fi
126 }

  ViewVC Help
Powered by ViewVC 1.1.20