|
|
| |
DESCRIPTION="A portable, bytecode-compiled implementation of Common Lisp" | DESCRIPTION="A portable, bytecode-compiled implementation of Common Lisp" |
HOMEPAGE="http://clisp.sourceforge.net/" | HOMEPAGE="http://clisp.sourceforge.net/" |
SRC_URI="mirror://sourceforge/clisp/${P}.tar.bz2" |
SRC_URI="mirror://sourceforge/clisp/${P}.tar.gz" |
| |
LICENSE="GPL-2" | LICENSE="GPL-2" |
SLOT="2" | SLOT="2" |
KEYWORDS="amd64 ~ppc ~ppc64 -sparc x86" |
KEYWORDS="~amd64 ~ppc ~ppc64 -sparc ~x86" |
IUSE="X new-clx fastcgi gdbm gtk pcre postgres readline svm zlib" |
IUSE="hyperspec X new-clx fastcgi gdbm gtk pcre postgres readline svm zlib" |
| |
RDEPEND="dev-lisp/gentoo-init | RDEPEND="dev-lisp/gentoo-init |
|
virtual/libiconv |
>=dev-libs/libsigsegv-2.4 | >=dev-libs/libsigsegv-2.4 |
virtual/tetex |
>=dev-libs/ffcall-1.10 |
fastcgi? ( dev-libs/fcgi ) | fastcgi? ( dev-libs/fcgi ) |
gdbm? ( sys-libs/gdbm ) | gdbm? ( sys-libs/gdbm ) |
gtk? ( >=x11-libs/gtk+-2.10 >=gnome-base/libglade-2.6 ) | gtk? ( >=x11-libs/gtk+-2.10 >=gnome-base/libglade-2.6 ) |
|
|
pcre? ( dev-libs/libpcre ) | pcre? ( dev-libs/libpcre ) |
svm? ( sci-libs/libsvm ) | svm? ( sci-libs/libsvm ) |
zlib? ( sys-libs/zlib ) | zlib? ( sys-libs/zlib ) |
X? ( new-clx? ( x11-libs/libXpm ) )" |
X? ( new-clx? ( x11-libs/libXpm ) ) |
|
hyperspec? ( dev-lisp/hyperspec )" |
# * GNU gettext | # * GNU gettext |
# + Not needed on systems with glibc 2.2 or newer, but recommended on all | # + Not needed on systems with glibc 2.2 or newer, but recommended on all |
# other systems: needed if you want clisp with native language support. | # other systems: needed if you want clisp with native language support. |
|
|
BUILDDIR="builddir" | BUILDDIR="builddir" |
| |
src_compile() { | src_compile() { |
CC="$(tc-getCC)" |
|
|
|
# built-in features | # built-in features |
local myconf="--with-dynamic-ffi" |
local myconf="--with-ffcall" |
use readline || myconf="${myconf} --with-noreadline" | use readline || myconf="${myconf} --with-noreadline" |
| |
# default modules | # default modules |
|
|
fi | fi |
if use postgres; then | if use postgres; then |
enable_modules postgresql | enable_modules postgresql |
CC="${CC} -I $(pg_config --includedir)" |
CPPFLAGS="-I $(pg_config --includedir)" |
fi | fi |
use fastcgi && enable_modules fastcgi | use fastcgi && enable_modules fastcgi |
use gdbm && enable_modules gdbm | use gdbm && enable_modules gdbm |
|
|
./configure --prefix=/usr --libdir=/usr/$(get_libdir) \ | ./configure --prefix=/usr --libdir=/usr/$(get_libdir) \ |
${myconf} ${BUILDDIR} || die "./configure failed" | ${myconf} ${BUILDDIR} || die "./configure failed" |
cd ${BUILDDIR} | cd ${BUILDDIR} |
./makemake ${myconf} > Makefile |
sed -i 's,"vi","nano",g' config.lisp |
# emake config.lisp |
if use hyperspec; then |
# sed -i 's,"vi","nano",g' config.lisp |
CLHSROOT="file:///usr/share/doc/hyperspec/HyperSpec/" |
|
else |
|
CLHSROOT="http://www.lispworks.com/reference/HyperSpec/" |
|
fi |
|
sed -i 's,http://www.lisp.org/HyperSpec/,${CLHSROOT},g' config.lisp |
# parallel build fails | # parallel build fails |
emake -j1 || die "emake failed" | emake -j1 || die "emake failed" |
} | } |