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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed Apr 14 01:53:24 2010 UTC (9 years, 6 months ago) by chiiph
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Cleanup old testing ebuild
(Portage version: 2.2_rc67/cvs/Linux i686)

1 # Copyright 1999-2009 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.48.ebuild,v 1.2 2009/07/29 14:22:17 hkbst Exp $
4
5 EAPI=2
6
7 inherit flag-o-matic eutils toolchain-funcs multilib
8
9 DESCRIPTION="A portable, bytecode-compiled implementation of Common Lisp"
10 HOMEPAGE="http://clisp.sourceforge.net/"
11 SRC_URI="mirror://sourceforge/clisp/${P}.tar.bz2"
12 LICENSE="GPL-2"
13
14 SLOT="2"
15 KEYWORDS="~alpha ~amd64 ~ia64 ~ppc -sparc ~x86"
16 IUSE="hyperspec X new-clx dbus fastcgi gdbm gtk pari +pcre postgres +readline svm +unicode +zlib" #threads
17
18 RDEPEND="virtual/libiconv
19 >=dev-libs/libsigsegv-2.4
20 >=dev-libs/ffcall-1.10
21 dbus? ( sys-apps/dbus )
22 fastcgi? ( dev-libs/fcgi )
23 gdbm? ( sys-libs/gdbm )
24 gtk? ( >=x11-libs/gtk+-2.10 >=gnome-base/libglade-2.6 )
25 pari? ( >=sci-mathematics/pari-2.3.0 )
26 postgres? ( >=virtual/postgresql-base-8.0 )
27 readline? ( >=sys-libs/readline-5.0 )
28 pcre? ( dev-libs/libpcre )
29 svm? ( sci-libs/libsvm )
30 zlib? ( sys-libs/zlib )
31 X? ( new-clx? ( x11-libs/libXpm ) )
32 hyperspec? ( dev-lisp/hyperspec )"
33 # berkdb? ( sys-libs/db:4.5 )
34
35 DEPEND="${RDEPEND} X? ( new-clx? ( x11-misc/imake x11-proto/xextproto ) )"
36
37 PDEPEND="dev-lisp/gentoo-init"
38
39 PROVIDE="virtual/commonlisp"
40
41 enable_modules() {
42 [[ $# = 0 ]] && die "${FUNCNAME[0]} must receive at least one argument"
43 for m in "$@" ; do
44 einfo "enabling module $m"
45 myconf+=" --with-module=${m}"
46 done
47 }
48
49 BUILDDIR="builddir"
50
51 # modules not enabled:
52 # * berkdb: must figure out a way to make the configure script pick up the
53 # currect version of the library and headers
54 # * dirkey: fails to compile, requiring windows.h, possibly wrong #ifdefs
55 # * matlab, netica: not in portage
56 # * oracle: can't install oracle-instantclient
57
58 src_prepare() {
59 # More than -O1 breaks alpha/ia64
60 use alpha || use ia64 && sed -i -e 's/-O2//g' src/makemake.in
61 }
62
63 src_configure() {
64 # built-in features
65 local myconf="--with-ffcall --with-dynamic-modules"
66 # use threads && myconf+=" --with-threads=POSIX_THREADS"
67
68 # We need this to build on alpha/ia64
69 if use alpha || use ia64; then
70 replace-flags -O? -O1
71 append-flags '-D NO_MULTIMAP_SHM -D NO_MULTIMAP_FILE -D NO_SINGLEMAP -D NO_TRIVIALMAP'
72 fi
73 # default modules
74 enable_modules wildcard rawsock
75 # optional modules
76 use elibc_glibc && enable_modules bindings/glibc
77 if use X; then
78 if use new-clx; then
79 enable_modules clx/new-clx
80 else
81 enable_modules clx/mit-clx
82 fi
83 fi
84 if use postgres; then
85 enable_modules postgresql
86 CPPFLAGS="-I $(pg_config --includedir)"
87 fi
88 # if use berkdb; then
89 # enable_modules berkley-db
90 # CPPFLAGS="${CPPFLAGS} -I /usr/include/db4.5"
91 # fi
92 use dbus && enable_modules dbus
93 use fastcgi && enable_modules fastcgi
94 use gdbm && enable_modules gdbm
95 use gtk && enable_modules gtk2
96 use pari && enable_modules pari
97 use pcre && enable_modules pcre
98 use svm && enable_modules libsvm
99 use zlib && enable_modules zlib
100
101 if use hyperspec; then
102 CLHSROOT="file:///usr/share/doc/hyperspec/HyperSpec/"
103 else
104 CLHSROOT="http://www.lispworks.com/reference/HyperSpec/"
105 fi
106
107 # configure chokes on --sysconfdir option
108 local configure="./configure --prefix=/usr --libdir=/usr/$(get_libdir) \
109 $(use_with readline) $(use_with unicode) \
110 ${myconf} --hyperspec=${CLHSROOT} ${BUILDDIR}"
111 einfo "${configure}"
112 ${configure} || die "./configure failed"
113
114 sed -i 's,"vi","nano",g' "${BUILDDIR}"/config.lisp
115
116 IMPNOTES="file://${ROOT%/}/usr/share/doc/${PN}-${PVR}/html/impnotes.html"
117 sed -i "s,http://clisp.cons.org/impnotes/,${IMPNOTES},g" "${BUILDDIR}"/config.lisp
118 }
119
120 src_compile() {
121 export VARTEXFONTS="${T}"/fonts
122 cd "${BUILDDIR}"
123 # parallel build fails
124 emake -j1 || die "emake failed"
125 }
126
127 src_install() {
128 pushd "${BUILDDIR}"
129 make DESTDIR="${D}" prefix=/usr install-bin || die
130 doman clisp.1
131 dodoc SUMMARY README* NEWS MAGIC.add ANNOUNCE
132 chmod a+x "${D}"/usr/$(get_libdir)/clisp-${PV/_*/}/clisp-link
133 # stripping them removes common symbols (defined but uninitialised variables)
134 # which are then needed to build modules...
135 export STRIP_MASK="*/usr/$(get_libdir)/clisp-${PV}/*/*"
136 popd
137 dohtml doc/impnotes.{css,html} doc/regexp.html doc/clisp.png
138 dodoc doc/{CLOS-guide,LISP-tutorial}.txt
139 }

  ViewVC Help
Powered by ViewVC 1.1.20