1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit elisp-common flag-o-matic eutils
9 DESCRIPTION
="GNU Smalltalk"
10 HOMEPAGE
="http://smalltalk.gnu.org"
11 SRC_URI
="http://ftp.gnu.org/gnu/smalltalk/smalltalk-${PV}.tar.gz"
14 KEYWORDS
="~amd64 ~x86"
15 IUSE
="emacs jit +gmp gtk preempt +readline tk"
20 emacs? ( virtual/emacs )
21 readline? ( sys-libs/readline )
23 gtk? ( x11-libs/gtk+:2 )
24 gmp? ( dev-libs/gmp )"
27 S
="${WORKDIR}/smalltalk-${PV}"
29 SITEFILE
=50gnu-smalltalk-gentoo.el
32 replace-flags
'-O3' '-O2'
34 $
(use_with emacs emacs
) \
35 $
(use_with readline readline
) \
37 $
(use_with tk tcl
/usr
/lib
) \
38 $
(use_with tk tk
/usr
/lib
) \
39 $
(use_enable gtk gtk
) \
40 $
(use_enable jit jit
) \
41 $
(use_enable preempt preemption
) || die
"econf failed"
42 emake || die
"emake failed"
43 use emacs
&& elisp-compile
*.el
47 einstall prefix
="${D}/usr" mandir
="${D}/usr/share/man" \
48 infodir
="${D}/usr/share/info" \
49 lispdir
="${D}/usr/share/emacs/site-lisp/gnu-smalltalk" \
50 libdir
="${D}/usr/lib" || die
52 rm -rf "${D}/usr/include/sigsegv.h" \
53 "${D}/usr/include/snprintfv" \
54 "${D}/usr/share/aclocal/snprintfv.m4"
55 rm "${D}"/usr
/lib
/libsigsegv
*
56 dodoc AUTHORS COPYING
* ChangeLog NEWS README THANKS TODO
58 elisp-install
"${PN}" *.
{el
,elc
}
59 elisp-site-file-install
"${FILESDIR}/${SITEFILE}"
61 fperms
0444 /usr
/share
/smalltalk
/packages.xml
65 use emacs
&& elisp-site-regen
69 use emacs
&& elisp-site-regen