1 |
chiiph 10/06/03 20:13:23 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: clisp-2.48-r2.ebuild |
5 |
Log: |
6 |
CLisp supports db:4.7, update dependency. |
7 |
(Portage version: 2.2_rc67/cvs/Linux i686) |
8 |
|
9 |
Revision Changes Path |
10 |
1.98 dev-lisp/clisp/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lisp/clisp/ChangeLog?rev=1.98&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lisp/clisp/ChangeLog?rev=1.98&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lisp/clisp/ChangeLog?r1=1.97&r2=1.98 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/dev-lisp/clisp/ChangeLog,v |
19 |
retrieving revision 1.97 |
20 |
retrieving revision 1.98 |
21 |
diff -u -r1.97 -r1.98 |
22 |
--- ChangeLog 14 Apr 2010 01:53:24 -0000 1.97 |
23 |
+++ ChangeLog 3 Jun 2010 20:13:23 -0000 1.98 |
24 |
@@ -1,6 +1,11 @@ |
25 |
# ChangeLog for dev-lisp/clisp |
26 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/dev-lisp/clisp/ChangeLog,v 1.97 2010/04/14 01:53:24 chiiph Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/dev-lisp/clisp/ChangeLog,v 1.98 2010/06/03 20:13:23 chiiph Exp $ |
29 |
+ |
30 |
+*clisp-2.48-r2 (03 Jun 2010) |
31 |
+ |
32 |
+ 03 Jun 2010; Tomas Touceda <chiiph@g.o> +clisp-2.48-r2.ebuild: |
33 |
+ CLisp supports db:4.7, update dependency. |
34 |
|
35 |
14 Apr 2010; Tomas Touceda <chiiph@g.o> -clisp-2.48.ebuild: |
36 |
Cleanup old testing ebuild |
37 |
|
38 |
|
39 |
|
40 |
1.1 dev-lisp/clisp/clisp-2.48-r2.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lisp/clisp/clisp-2.48-r2.ebuild?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lisp/clisp/clisp-2.48-r2.ebuild?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: clisp-2.48-r2.ebuild |
46 |
=================================================================== |
47 |
# Copyright 1999-2010 Gentoo Foundation |
48 |
# Distributed under the terms of the GNU General Public License v2 |
49 |
# $Header: /var/cvsroot/gentoo-x86/dev-lisp/clisp/clisp-2.48-r2.ebuild,v 1.1 2010/06/03 20:13:23 chiiph Exp $ |
50 |
|
51 |
EAPI="2" |
52 |
|
53 |
inherit flag-o-matic eutils toolchain-funcs multilib |
54 |
|
55 |
DESCRIPTION="A portable, bytecode-compiled implementation of Common Lisp" |
56 |
HOMEPAGE="http://clisp.sourceforge.net/" |
57 |
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" |
58 |
|
59 |
LICENSE="GPL-2" |
60 |
SLOT="2" |
61 |
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc -sparc ~x86" |
62 |
IUSE="berkdb hyperspec X new-clx dbus fastcgi gdbm gtk pari +pcre postgres +readline svm -threads +unicode +zlib" |
63 |
|
64 |
RDEPEND="virtual/libiconv |
65 |
>=dev-libs/libsigsegv-2.4 |
66 |
>=dev-libs/ffcall-1.10 |
67 |
dbus? ( sys-apps/dbus ) |
68 |
fastcgi? ( dev-libs/fcgi ) |
69 |
gdbm? ( sys-libs/gdbm ) |
70 |
gtk? ( >=x11-libs/gtk+-2.10 >=gnome-base/libglade-2.6 ) |
71 |
pari? ( >=sci-mathematics/pari-2.3.0 ) |
72 |
postgres? ( >=virtual/postgresql-base-8.0 ) |
73 |
readline? ( >=sys-libs/readline-5.0 ) |
74 |
pcre? ( dev-libs/libpcre ) |
75 |
svm? ( sci-libs/libsvm ) |
76 |
zlib? ( sys-libs/zlib ) |
77 |
X? ( new-clx? ( x11-libs/libXpm ) ) |
78 |
hyperspec? ( dev-lisp/hyperspec ) |
79 |
berkdb? ( sys-libs/db:4.7 )" |
80 |
|
81 |
DEPEND="${RDEPEND} |
82 |
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+=" --with-module=${m}" |
93 |
done |
94 |
} |
95 |
|
96 |
BUILDDIR="builddir" |
97 |
|
98 |
# modules not enabled: |
99 |
# * dirkey: fails to compile, requiring windows.h, possibly wrong #ifdefs |
100 |
# * matlab, netica: not in portage |
101 |
# * oracle: can't install oracle-instantclient |
102 |
|
103 |
src_prepare() { |
104 |
# More than -O1 breaks alpha/ia64 |
105 |
if use alpha || use ia64; then |
106 |
sed -i -e 's/-O2//g' src/makemake.in || die |
107 |
fi |
108 |
} |
109 |
|
110 |
src_configure() { |
111 |
# We need this to build on alpha/ia64 |
112 |
if use alpha || use ia64; then |
113 |
replace-flags -O? -O1 |
114 |
append-flags '-D NO_MULTIMAP_SHM -D NO_MULTIMAP_FILE -D NO_SINGLEMAP -D NO_TRIVIALMAP' |
115 |
fi |
116 |
|
117 |
# QA issue with lisp.run |
118 |
append-flags -Wa,--noexecstack |
119 |
|
120 |
# built-in features |
121 |
local myconf="--with-ffcall --without-dynamic-modules" |
122 |
# There's a problem with jit_allocai function |
123 |
# if use jit; then |
124 |
# myconf+=" --with-jitc=lightning" |
125 |
# fi |
126 |
if use threads; then |
127 |
myconf+=" --with-threads=POSIX_THREADS" |
128 |
fi |
129 |
|
130 |
# default modules |
131 |
enable_modules wildcard rawsock |
132 |
# optional modules |
133 |
use elibc_glibc && enable_modules bindings/glibc |
134 |
if use X; then |
135 |
if use new-clx; then |
136 |
enable_modules clx/new-clx |
137 |
else |
138 |
enable_modules clx/mit-clx |
139 |
fi |
140 |
fi |
141 |
if use postgres; then |
142 |
enable_modules postgresql |
143 |
append-flags -I$(pg_config --includedir) |
144 |
fi |
145 |
if use berkdb; then |
146 |
enable_modules berkeley-db |
147 |
append-flags -I/usr/include/db4.7 |
148 |
fi |
149 |
use dbus && enable_modules dbus |
150 |
use fastcgi && enable_modules fastcgi |
151 |
use gdbm && enable_modules gdbm |
152 |
use gtk && enable_modules gtk2 |
153 |
use pari && enable_modules pari |
154 |
use pcre && enable_modules pcre |
155 |
use svm && enable_modules libsvm |
156 |
use zlib && enable_modules zlib |
157 |
|
158 |
if use hyperspec; then |
159 |
CLHSROOT="file:///usr/share/doc/hyperspec/HyperSpec/" |
160 |
else |
161 |
CLHSROOT="http://www.lispworks.com/reference/HyperSpec/" |
162 |
fi |
163 |
|
164 |
# configure chokes on --sysconfdir option |
165 |
local configure="./configure --prefix=/usr --libdir=/usr/$(get_libdir) \ |
166 |
$(use_with readline) $(use_with unicode) \ |
167 |
${myconf} --hyperspec=${CLHSROOT} ${BUILDDIR}" |
168 |
einfo "${configure}" |
169 |
${configure} || die "./configure failed" |
170 |
|
171 |
sed -i 's,"vi","nano",g' "${BUILDDIR}"/config.lisp || die |
172 |
|
173 |
IMPNOTES="file://${ROOT%/}/usr/share/doc/${PN}-${PVR}/html/impnotes.html" |
174 |
sed -i "s,http://clisp.cons.org/impnotes/,${IMPNOTES},g" \ |
175 |
"${BUILDDIR}"/config.lisp || die |
176 |
} |
177 |
|
178 |
src_compile() { |
179 |
export VARTEXFONTS="${T}"/fonts |
180 |
cd "${BUILDDIR}" |
181 |
# parallel build fails |
182 |
emake -j1 || die "emake failed" |
183 |
} |
184 |
|
185 |
src_install() { |
186 |
pushd "${BUILDDIR}" |
187 |
make DESTDIR="${D}" prefix=/usr install-bin || die |
188 |
doman clisp.1 || die |
189 |
dodoc SUMMARY README* NEWS MAGIC.add ANNOUNCE || die |
190 |
fperms a+x /usr/$(get_libdir)/clisp-${PV/_*/}/clisp-link || die |
191 |
# stripping them removes common symbols (defined but uninitialised variables) |
192 |
# which are then needed to build modules... |
193 |
export STRIP_MASK="*/usr/$(get_libdir)/clisp-${PV}/*/*" |
194 |
popd |
195 |
dohtml doc/impnotes.{css,html} doc/regexp.html doc/clisp.png || die |
196 |
dodoc doc/{CLOS-guide,LISP-tutorial}.txt || die |
197 |
} |
198 |
|
199 |
pkg_postinst() { |
200 |
if use threads || use jit; then |
201 |
while read line; do elog ${line}; done <<EOF |
202 |
|
203 |
Upstream considers threads to be of Alpha quality, therefore |
204 |
it is likely that you will encounter bugs in using them. If you do, |
205 |
please report bugs upstream: |
206 |
|
207 |
Mailing list: https://lists.sourceforge.net/lists/listinfo/clisp-devel |
208 |
Bug tracker: http://sourceforge.net/tracker/?atid=101355&group_id=1355 |
209 |
|
210 |
EOF |
211 |
fi |
212 |
} |