Lines 6-21
Link Here
|
6 |
|
6 |
|
7 |
DESCRIPTION="A portable, bytecode-compiled implementation of Common Lisp" |
7 |
DESCRIPTION="A portable, bytecode-compiled implementation of Common Lisp" |
8 |
HOMEPAGE="http://clisp.sourceforge.net/" |
8 |
HOMEPAGE="http://clisp.sourceforge.net/" |
9 |
SRC_URI="mirror://sourceforge/clisp/${P}.tar.bz2" |
9 |
SRC_URI="mirror://sourceforge/clisp/${P}.tar.gz" |
10 |
|
10 |
|
11 |
LICENSE="GPL-2" |
11 |
LICENSE="GPL-2" |
12 |
SLOT="2" |
12 |
SLOT="2" |
13 |
KEYWORDS="amd64 ~ppc ~ppc64 -sparc x86" |
13 |
KEYWORDS="~amd64 ~ppc ~ppc64 -sparc ~x86" |
14 |
IUSE="X new-clx fastcgi gdbm gtk pcre postgres readline svm zlib" |
14 |
IUSE="hyperspec X new-clx fastcgi gdbm gtk pcre postgres readline svm zlib" |
15 |
|
15 |
|
16 |
RDEPEND="dev-lisp/gentoo-init |
16 |
RDEPEND="dev-lisp/gentoo-init |
|
|
17 |
virtual/libiconv |
17 |
>=dev-libs/libsigsegv-2.4 |
18 |
>=dev-libs/libsigsegv-2.4 |
18 |
virtual/tetex |
19 |
>=dev-libs/ffcall-1.10 |
19 |
fastcgi? ( dev-libs/fcgi ) |
20 |
fastcgi? ( dev-libs/fcgi ) |
20 |
gdbm? ( sys-libs/gdbm ) |
21 |
gdbm? ( sys-libs/gdbm ) |
21 |
gtk? ( >=x11-libs/gtk+-2.10 >=gnome-base/libglade-2.6 ) |
22 |
gtk? ( >=x11-libs/gtk+-2.10 >=gnome-base/libglade-2.6 ) |
Lines 24-30
Link Here
|
24 |
pcre? ( dev-libs/libpcre ) |
25 |
pcre? ( dev-libs/libpcre ) |
25 |
svm? ( sci-libs/libsvm ) |
26 |
svm? ( sci-libs/libsvm ) |
26 |
zlib? ( sys-libs/zlib ) |
27 |
zlib? ( sys-libs/zlib ) |
27 |
X? ( new-clx? ( x11-libs/libXpm ) )" |
28 |
X? ( new-clx? ( x11-libs/libXpm ) ) |
|
|
29 |
hyperspec? ( dev-lisp/hyperspec )" |
28 |
# * GNU gettext |
30 |
# * GNU gettext |
29 |
# + Not needed on systems with glibc 2.2 or newer, but recommended on all |
31 |
# + Not needed on systems with glibc 2.2 or newer, but recommended on all |
30 |
# other systems: needed if you want clisp with native language support. |
32 |
# other systems: needed if you want clisp with native language support. |
Lines 45-54
Link Here
|
45 |
BUILDDIR="builddir" |
47 |
BUILDDIR="builddir" |
46 |
|
48 |
|
47 |
src_compile() { |
49 |
src_compile() { |
48 |
CC="$(tc-getCC)" |
|
|
49 |
|
50 |
# built-in features |
50 |
# built-in features |
51 |
local myconf="--with-dynamic-ffi" |
51 |
local myconf="--with-ffcall" |
52 |
use readline || myconf="${myconf} --with-noreadline" |
52 |
use readline || myconf="${myconf} --with-noreadline" |
53 |
|
53 |
|
54 |
# default modules |
54 |
# default modules |
Lines 64-70
Link Here
|
64 |
fi |
64 |
fi |
65 |
if use postgres; then |
65 |
if use postgres; then |
66 |
enable_modules postgresql |
66 |
enable_modules postgresql |
67 |
CC="${CC} -I $(pg_config --includedir)" |
67 |
CPPFLAGS="-I $(pg_config --includedir)" |
68 |
fi |
68 |
fi |
69 |
use fastcgi && enable_modules fastcgi |
69 |
use fastcgi && enable_modules fastcgi |
70 |
use gdbm && enable_modules gdbm |
70 |
use gdbm && enable_modules gdbm |
Lines 77-85
Link Here
|
77 |
./configure --prefix=/usr --libdir=/usr/$(get_libdir) \ |
77 |
./configure --prefix=/usr --libdir=/usr/$(get_libdir) \ |
78 |
${myconf} ${BUILDDIR} || die "./configure failed" |
78 |
${myconf} ${BUILDDIR} || die "./configure failed" |
79 |
cd ${BUILDDIR} |
79 |
cd ${BUILDDIR} |
80 |
./makemake ${myconf} > Makefile |
80 |
sed -i 's,"vi","nano",g' config.lisp |
81 |
# emake config.lisp |
81 |
if use hyperspec; then |
82 |
# sed -i 's,"vi","nano",g' config.lisp |
82 |
CLHSROOT="file:///usr/share/doc/hyperspec/HyperSpec/" |
|
|
83 |
else |
84 |
CLHSROOT="http://www.lispworks.com/reference/HyperSpec/" |
85 |
fi |
86 |
sed -i 's,http://www.lisp.org/HyperSpec/,${CLHSROOT},g' config.lisp |
83 |
# parallel build fails |
87 |
# parallel build fails |
84 |
emake -j1 || die "emake failed" |
88 |
emake -j1 || die "emake failed" |
85 |
} |
89 |
} |