Gentoo Archives: gentoo-commits

From: "Marijn Schouten (hkbst)" <hkbst@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-lisp/clisp: ChangeLog clisp-2.48.ebuild
Date: Wed, 29 Jul 2009 11:29:47
Message-Id: E1MW7Ls-0006lq-I0@stork.gentoo.org
1 hkbst 09/07/29 11:29:44
2
3 Modified: ChangeLog
4 Added: clisp-2.48.ebuild
5 Log:
6 bump, should fix bug 257348 and bug 267784
7 (Portage version: 2.1.6.13/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.93 dev-lisp/clisp/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lisp/clisp/ChangeLog?rev=1.93&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lisp/clisp/ChangeLog?rev=1.93&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lisp/clisp/ChangeLog?r1=1.92&r2=1.93
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-lisp/clisp/ChangeLog,v
19 retrieving revision 1.92
20 retrieving revision 1.93
21 diff -u -r1.92 -r1.93
22 --- ChangeLog 17 Jan 2009 14:09:18 -0000 1.92
23 +++ ChangeLog 29 Jul 2009 11:29:44 -0000 1.93
24 @@ -1,6 +1,11 @@
25 # ChangeLog for dev-lisp/clisp
26 -# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-lisp/clisp/ChangeLog,v 1.92 2009/01/17 14:09:18 nixnut Exp $
28 +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/dev-lisp/clisp/ChangeLog,v 1.93 2009/07/29 11:29:44 hkbst Exp $
30 +
31 +*clisp-2.48 (29 Jul 2009)
32 +
33 + 29 Jul 2009; Marijn Schouten <hkBst@g.o> +clisp-2.48.ebuild:
34 + bump, should fix bug 257348 and bug 267784
35
36 17 Jan 2009; nixnut <nixnut@g.o> clisp-2.47-r1.ebuild:
37 ppc stable #246074
38
39
40
41 1.1 dev-lisp/clisp/clisp-2.48.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lisp/clisp/clisp-2.48.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lisp/clisp/clisp-2.48.ebuild?rev=1.1&content-type=text/plain
45
46 Index: clisp-2.48.ebuild
47 ===================================================================
48 # Copyright 1999-2009 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-lisp/clisp/clisp-2.48.ebuild,v 1.1 2009/07/29 11:29:44 hkbst Exp $
51
52 EAPI=2
53
54 inherit flag-o-matic eutils toolchain-funcs multilib
55
56 DESCRIPTION="A portable, bytecode-compiled implementation of Common Lisp"
57 HOMEPAGE="http://clisp.sourceforge.net/"
58 SRC_URI="mirror://sourceforge/clisp/${P}.tar.bz2"
59 LICENSE="GPL-2"
60
61 SLOT="2"
62 KEYWORDS="~alpha ~amd64 ~ia64 ~ppc -sparc ~x86"
63 IUSE="hyperspec X new-clx dbus fastcgi gdbm gtk pari pcre postgres readline svm zlib"
64
65 RDEPEND="virtual/libiconv
66 >=dev-libs/libsigsegv-2.4
67 >=dev-libs/ffcall-1.10
68 dbus? ( sys-apps/dbus )
69 fastcgi? ( dev-libs/fcgi )
70 gdbm? ( sys-libs/gdbm )
71 gtk? ( >=x11-libs/gtk+-2.10 >=gnome-base/libglade-2.6 )
72 pari? ( >=sci-mathematics/pari-2.3.0 )
73 postgres? ( >=virtual/postgresql-base-8.0 )
74 readline? ( >=sys-libs/readline-5.0 )
75 pcre? ( dev-libs/libpcre )
76 svm? ( sci-libs/libsvm )
77 zlib? ( sys-libs/zlib )
78 X? ( new-clx? ( x11-libs/libXpm ) )
79 hyperspec? ( dev-lisp/hyperspec )"
80 # berkdb? ( sys-libs/db:4.5 )
81
82 DEPEND="${RDEPEND} X? ( new-clx? ( x11-misc/imake x11-proto/xextproto ) )"
83
84 PDEPEND="dev-lisp/gentoo-init"
85
86 PROVIDE="virtual/commonlisp"
87
88 enable_modules() {
89 [[ $# = 0 ]] && die "${FUNCNAME[0]} must receive at least one argument"
90 for m in "$@" ; do
91 einfo "enabling module $m"
92 myconf="${myconf} --with-module=${m}"
93 done
94 }
95
96 BUILDDIR="builddir"
97
98 # modules not enabled:
99 # * berkdb: must figure out a way to make the configure script pick up the
100 # currect version of the library and headers
101 # * dirkey: fails to compile, requiring windows.h, possibly wrong #ifdefs
102 # * matlab, netica: not in portage
103 # * oracle: can't install oracle-instantclient
104
105 src_prepare() {
106 # More than -O1 breaks alpha/ia64
107 use alpha || use ia64 && sed -i -e 's/-O2//g' src/makemake.in
108 }
109
110 src_configure() {
111 # built-in features
112 local myconf="--with-ffcall --with-dynamic-modules"
113 use readline || myconf="${myconf} --with-noreadline"
114
115 # We need this to build on alpha/ia64
116 if use alpha || use ia64; then
117 replace-flags -O? -O1
118 append-flags '-D NO_MULTIMAP_SHM -D NO_MULTIMAP_FILE -D NO_SINGLEMAP -D NO_TRIVIALMAP'
119 fi
120 # default modules
121 enable_modules wildcard rawsock
122 # optional modules
123 use elibc_glibc && enable_modules bindings/glibc
124 if use X; then
125 if use new-clx; then
126 enable_modules clx/new-clx
127 else
128 enable_modules clx/mit-clx
129 fi
130 fi
131 if use postgres; then
132 enable_modules postgresql
133 CPPFLAGS="-I $(pg_config --includedir)"
134 fi
135 # if use berkdb; then
136 # enable_modules berkley-db
137 # CPPFLAGS="${CPPFLAGS} -I /usr/include/db4.5"
138 # fi
139 use dbus && enable_modules dbus
140 use fastcgi && enable_modules fastcgi
141 use gdbm && enable_modules gdbm
142 use gtk && enable_modules gtk2
143 use pari && enable_modules pari
144 use pcre && enable_modules pcre
145 use svm && enable_modules libsvm
146 use zlib && enable_modules zlib
147
148 if use hyperspec; then
149 CLHSROOT="file:///usr/share/doc/hyperspec/HyperSpec/"
150 else
151 CLHSROOT="http://www.lispworks.com/reference/HyperSpec/"
152 fi
153
154 # configure chokes on --sysconfdir option
155 local configure="./configure --prefix=/usr --libdir=/usr/$(get_libdir) \
156 ${myconf} --hyperspec=${CLHSROOT} ${BUILDDIR}"
157 einfo "${configure}"
158 ${configure} || die "./configure failed"
159
160 sed -i 's,"vi","nano",g' "${BUILDDIR}"/config.lisp
161
162 IMPNOTES="file://${ROOT%/}/usr/share/doc/${PN}-${PVR}/html/impnotes.html"
163 sed -i "s,http://clisp.cons.org/impnotes/,${IMPNOTES},g" "${BUILDDIR}"/config.lisp
164 }
165
166 src_compile() {
167 cd "${BUILDDIR}"
168 # parallel build fails
169 emake -j1 || die "emake failed"
170 }
171
172 src_install() {
173 pushd "${BUILDDIR}"
174 make DESTDIR="${D}" prefix=/usr install-bin || die
175 doman clisp.1
176 dodoc SUMMARY README* NEWS MAGIC.add ANNOUNCE clisp.dvi clisp.html
177 chmod a+x "${D}"/usr/$(get_libdir)/clisp-${PV/_*/}/clisp-link
178 # stripping them removes common symbols (defined but uninitialised variables)
179 # which are then needed to build modules...
180 export STRIP_MASK="*/usr/$(get_libdir)/clisp-${PV}/*/*"
181 popd
182 dohtml doc/impnotes.{css,html} doc/regexp.html doc/clisp.png
183 dodoc doc/{CLOS-guide,LISP-tutorial}.txt
184 }